Friday, November 06, 2009

Android fun :)

Today was playing with all kinds of UI controls customizations. One thing I needed to do is to be able to draw the background shape around image where only right top and bottom corners are rounded.
After some research and trying different things (because that part of APIs pretty much missing any documentation), I found out that it looks like the left and right is messed up in the API. Here is what works :

<corners android:bottomRightRadius="0.1dp" android:topRightRadius="8dp"
android:bottomLeftRadius="8dp"
android:topLeftRadius="0.1dp" />

As you can see I had to use the bottom left radius to make the right corner round and for the rest of the corners I had to use 0.1dp , because 0dp just didn't work and made all corners not rounded.

Good luck ! :)

Wednesday, November 04, 2009

Busybox

Busybox is pretty useful set of tools for Android development as well:
http://www.busybox.net

Running Android tools on Windows 7 x64

Here is a link how to make it happen
http://code.google.com/p/android/issues/detail?id=3917

Friday, October 30, 2009

Simple Things

Today I went to Halloween swim meet with my daughter. She participated in three different kinds of competitions. It was her first time of any kind of the "competitive" swimming.

The funny thing was that I was worrying, how she would do, and that she might get disappointed with results. etc., while she was just having fun swimming with her friends and not caring too much about results. She was excited and smiling after every race, no matter how she did.

I saw the happy human being today.


Happy weekend ! :)

Saturday, October 17, 2009

Firefox strikes back



no comments :)

Wednesday, October 14, 2009

The power of positive reinforcement



...and the rest is here :
http://www.rolighetsteorin.se/en

Tuesday, October 13, 2009

Microsoft SQL Server Database Publishing Wizard

Recently I needed to migrate the database from MS SQL 2005 to MS SQL 2005. By the way, it's not as straight forward as it might look like.

After a little be of searching for solution I stumbled upon the
Microsoft SQL Server Database Publishing Wizard

This tool is pretty good at scripting the whole database structure with data. The name of the tool is not really intuitive. So, I'm saving this link for myself as well on this blog.

How to get the list of installed Android root certificates ?

Today, needed to get the list of trusted root certificates on Android phone to verify which ones are available out of the box.

Here are the easy steps how to do this :

1. get the certificates file
adb pull /system/etc/security/cacerts.bks cacerts.bks

2. download http://bouncycastle.org/download/bcprov-jdk16-141.jar and place it on $JAVA_HOME/jre/lib/ext/

3. run the keytool utility
keytool -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storepass -keystore cacerts.bks -list -v

Enjoy !

Friday, September 18, 2009

Incredible, amazing, awesome Apple

After watching the original Apple presentation I was left with the same feeling of audience being programmed with constant repetition of thee words : "Incredible, amazing, awesome" ....
Today I found this video:



Enjoy !