Friday, March 06, 2015

Installing NAPA Office 365 Development Tools

There is a great instruction on how to install the NAPA Development Tools here:
https://msdn.microsoft.com/en-us/library/office/fp179924%28v=office.15%29.aspx

After installing it's possible to create Apps in NAPA that can be published in the Sharepoint App Store.
 
It's possible to create several different app types:

NAPA has a editor where the code can be edited online:

Introduction to Microsoft Azure websites

Have been watching a lot of online courses last month on Microsoft Virtual Academy on the cloud track on Know It Prove It.

The fundamentals courses by Bob Tabor:
http://www.microsoftvirtualacademy.com/training-courses/microsoft-azure-fundamentals
http://www.microsoftvirtualacademy.com/training-courses/microsoft-azure-fundamentals-websites
showed how easy it is to set up and configure a Microsoft Azure website.

Made a short introduction presentation for our Study group to inspire other developers to start using Azure when doing web development. For those who are interested it's published the presentation on:
http://www.slideshare.net/MathiasWestin/knowit-study-group-rnskldsvik-introduction-to-microsoft-azure-websites

Thursday, February 26, 2015

How to make web site running IIS Express accessible from a Raspberry Pi 2

I wanted to build a web site that is used by a Raspberry Pi 2 from Visual Studio without hosting the site in an IIS.

Was following the following this guide:
http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx

Got some errors, though it could be great for my own memory to write down the steps nessessary:

First step: Edititing the applicationhost.config:



Change "localhost" to the ip-number of the machine running the IIS Express (can be found by using command netconfig in the command prompt) ip-number is for example 192.168.1.2:


Second step: Tell HTTP.SYS that everybody has access to the url:

netsh http add urlacl url=http://myhostname:58763/ user=everybody


If Everything works you get:
URL reservation successfully added


"everybody" needs to be "alla" in a swedish machine otherwise you get the following error message:

Create SDDL failed, Error: 1332 Felaktig parameter.


If you like me forget the / in the url that is write http://myhostname:58763 without trailing / you get the following error message:

Url reservation add failed, Error: 87 Felaktig parameter.


Third step: add an exception in the firewall:

netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=58763 profile=private remoteip=localsubnet action=allow


If Everything works you get:

Ok.


If running the IIS Express from Visual studio you need to run as administrator, otherwise you get an error message that say you need to run as an administrator.

Check that you can access the machine running the IIS Express by entering ping 192.168.1.2 in the command prompt in Raspberry pi. If you can access the machine, start the web browser and enter http://192.168.1.2:58763 in the adress.

Now its possible to access the site.

Sunday, February 01, 2015

Testing f.lux that adjust color temperature of the display

Trying out a tool called f.lux that adjust the color on the computer screen so that the eyes don't get tired so fast when working late evening/night. I found the tool in Scott Hanselman:s ultimate tool list so thanks for sharing. Worth trying out when working late during the winter month. I must admit that I've started adjusting the brightness on the phone and surface after using f.lux a while, because I felt the brightness was too bright for my eyes.

Saturday, November 29, 2014

.Net 4.5 Async Await for a more responsive design

Writing this so I'll remember the details. There is a good resource on the Await and Async keywords in MSDN: http://msdn.microsoft.com/en-us/library/hh191443.aspx

The key thing is that the execution is released back to the event loop until the async method is executed and completed. So there is no blocking of the event loop causing rendering problems in the GUI.

There is a lot of arrows in the sample in MSDN but the summary is that code will go back and resume executing the "continuation" after the async method has completed. This is great for long-running processes like downloading resources.

Saturday, November 22, 2014

Installing the Android Studio Beta

Google is moving to new IDE, Android Studio. it's only in Beta right now but when released it will be the preferred IDE and you will need to merge from Eclipse.

You have to install the java development kit 6 (JDK 6) the 32-bit and the 64-bit version, it that can be found here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Installer for the Android Studio can be downloaded here http://developer.android.com/sdk/installing/studio.html
Unzip

After installing the Android studio you have to add the JDK JAVA_HOME Environment variable setting if the installer script failed to do so, follow the instructions on the site. (the path should be to 32-bit or 64-bit depending on if studio.exe or studio64.exe will be used)

Also install the Android SDK, by downloading "Get the SDK for an existing IDE" http://developer.android.com/sdk/index.html Start the SDK Manager and download according to the instructions on the web site.

Start the Studio.exe in the Android Studio unzipped folder. Set the path to the Android SDK by clicking configure | project setting | project platform and setting the path.


Now you will be able to start a New project... By creating a project you start the IDE:


Found a tutorial that describe the Android Studio here: http://youtu.be/bJ_2_AQboc0

The UX when installing the Android Studio is really bad, hopefully it will be a lot easier to install with all the dependencies when released.

Sunday, November 02, 2014

Compiling Qt code gave: multiple definition of ...

Got an error when compiling our code:

In Windows 7 and visual studio, I at first did not notice the problem, but it was giving a warning:
LNK4042: object specified more than once; extras ignored

In Linux and gcc it gave an error, so I could not compile the code:
multiple definition of `<constructor of class>'
collect2: ld returned 1 exit status

I took som time to figure it out, but turned out to be a bad merge in subversion, 
the *.pro file had the same class twice in

HEADERS += \ Class1.h /
                         Class1.h
SOURCES += \ Class1.cpp /
                         Class1.cpp

Rremoving the second time the class name where entered in the *.pro file solved the problem. See http://stackoverflow.com/questions/4722400/qt-compiler-warning-overriding-commands-for-target-ignoring-old-commands-for 

Friday, October 03, 2014

Been to a lunch seminar about Internet of Things

Went to Sogeti Internet of Things seminar on Wednesday lunch.
I made some notes:

Presenter was: @dagpetersson  

Devices:
  • Electric IMP. Computer, WiFi, inputs for sensors. Very small.
  • iBecon. Localication, triangulation, water resistant.
  • LightBlue Bean. Test card, Temperature sensor, Accelerometer, iBecon. In and output.

IBM MessageSight, uses MQTT protocol. Can support up to 1 miljon devices.

We where also able to test Google glass, very interesting experience.