Wednesday, September 17, 2014

Google I/o 2014 source code

https://github.com/google/iosched

https://github.com/google/iosched/blob/master/doc/BUILDING.md

https://github.com/google/iosched/blob/master/doc/CUSTOM.md


print server wireless issue

I have a CISCO router and some times my wireless connection to print server just get lost. I was using D-Link DPR-1260. Then I thought may be the print server is too old.

So I bought a Hawking HMPS2U and found out after I setup for wireless and everything worked fine. But when I power off, then I lost wireless connection.

So I called, the tech guy told me my Cisco router has to be configured to use channel 11, not to use Auto.

So I get to Cisco router and changed the connection to use channel 11, then power off/on both print server and both worked fine.

Oops, I wasted time and money but learned a lesson. My guess is just tuition. Let me see if I can resell this print server or ???

Saturday, September 13, 2014

Android SVG

http://stackoverflow.com/questions/25006511/how-do-i-render-an-svg-in-an-android-app

I managed to display an SVG using a WebView, since that is more than capable of rendering an SVG:
webView.loadUrl("file:///android_res/drawable/file.svg"); // point it to the SVG
webView.setBackgroundColor(0x00000000); // set the background to transparent
This makes it render much like a transparent PNG would in an ImageView. The only caveat is that the SVGmust use the viewBox attribute and not use the height or width attributes, to ensure it resizes properly.

http://www.codeproject.com/Articles/130791/Android-ImageView-with-SVG-Support

http://stackoverflow.com/questions/18356098/having-issue-on-real-device-using-vector-image-in-android-svg-android

use visual studio for android development

http://stackoverflow.com/questions/1371939/how-can-i-use-ms-visual-studio-for-android-development

image viewer

http://stackoverflow.com/questions/24416496/fragment-for-image-viewer-android

http://www.mkyong.com/android/android-imageview-example/