Vacation

laptop-closed-for-vacation

β€œOn vacation, I totally unplug. I don’t bring a laptop with me.”
Will Wright

Posted in Uncategorized | Leave a comment

Android x86 in Hyper-V

This is not a post how to install android x86 in hyper-v, you can find that here: INSTALLING ANDROID-X86 ON HYPER-V WITH WINDOWS 8.1 IN UNDER 5 MINUTES

android

After install you should enable developer mode and allow unknown sources, you can find that here: How to enable Developer Options on your Android phone or tablet and How to sideload an app onto your Android phone or tablet

Now setup the network configuration as described here: Part 2: Screen resolution and Network configuration
In short give the hyper-v virtual ethernet adapter a fixed ip address and on the android start terminal and type:

adb shell
su
dhcpcd -k eth0
dhcpcd -n eth0
netcfg

Android debug bridge

Install ADB and needed drivers from here and start adb in terminal on the android from here:

su
adb tcpip 5555

On your Host machine start a command prompt:

adb connect ip_from_android_netcfg
adb devices

The last command should output the ip address from the android and “device”

Installation of APK files is done with

adb install *.apk

Advanced

Edit the hosts file on the android by making the system read/write in terminal on the android

adb shell
su
mount -o remount,rw /dev/block/stl9 /system
chmod 777 /system/app
exit
exit

On the host machine

adb pull /system/etc/hosts d:\temp\hosts
REM edit with your favorite editor
adb push d:\temp\hosts /system/etc

Debugging log reading on the host machine

adb logcat

Got a lot of E/audio_hw_primary( 1393): no pcm card found? Turn off the touch sounds in settings > sound > uncheck everything (touch sounds, screen lock, dialpad)

Conclusion

This Android port for Hyper-V isn’t as user friendly as Genymotion. Microsoft comes with it’s own Android Emulator for VS2015.
But the project’s goal is not to provide an emulator for development. They want to provide an Android installation for laptops and do that well.

Posted in Tooling | Tagged , | Leave a comment

Week roundup

Last week recap and links:
Image courtesy of kanate / FreeDigitalPhotos.net

Image courtesy of kanate / FreeDigitalPhotos.net

What are your best reads this week? Leave them in the comments below.

Posted in Uncategorized | Tagged , , , , | Leave a comment

Rhino ServiceBus first look

ayendeI’m a huge fan of Rhino Mocks and have written about it on this blog. Today I read that Ayende has an implementation for a Service Bus. Like nServicebus but “free”, even Udi Dahan talks about it. This is a first look at the Rhino ServiceBus.

Nuget

Like everything there is a nuget for Rhino.Servicebus. I’ve used nServicebus last year and the Rhino.Servicebus.Host looks familiar. Also the usage of Structuremap is implemented as a nuget. Easy setup of my projects.

But what is this Common.Logging? Still in active development and maybe worth a further look. After some reading I’ve got it working.

Consumer

Messages are send over an IServiceBus and handled by a Consumer. The Consumers are hooked up using a BootStrapper (StructureMapBootStrapper) and the App.Config. Everything is started from the commandline with the Rhino.ServiceBus.Host.exe as the hosting process. Someone has been paying attention to nServicebus πŸ˜‰

Unit test

Developing consumers for Rhino.Servicebus separates the unit-of-work nicely. This makes unit testing very easy. Unlike nServicebus there is no testing nuget available, but I can mock/stub the IServicebus using Rhino.Mocks. RhinoServiceBusDemo in my github repositories contains tests for 100% code coverage, but involves Microsoft Fakes.

Conclusion

In comparison with nServiceBus the Rhino ServiceBus is rough and misses some descent documentation. Also no updates since June 2013.
But the product is free and the license allows all usage. No arguing there.

References

Learn how to use Rhino Service Bus on Hibernating Rhinos
RhinoServiceBusDemo in my github repositories
BSD-3 license of Rhino ServiceBus
nServiceBus license question on stackoverflow that links to Udi Dahan lists “free alternatives” to NServiceBus on yahoo.

Posted in Development | Tagged , | Leave a comment

Marathon training with Trello

My training for Eindhoven is on schedule. For this I’m using RunInfo (dutch) and Trello.

The schedule from RunInfo can be printed or saved to PDF, but as a developer I prefer a more interactive solution. I created a board that shows the training as cards. With the calendar power-up the schedule is displayed beautiful and adds a iCalendar feed.

Have a look at my Marathon Eindhoven Board.
trello_marathon_eindhoven_lists

trello_marathon_eindhoven_calendar

Now all I have to do is Train, Race, Beer. See you in Eindhoven.

Posted in Uncategorized | Tagged , | 2 Comments