QuickSort (qsort) Algorithm in Java

QuickSort or qsort is the most fasters sorting algorithm. Here you can see my implementation in Java. The recursively algorithm looks like this:

Here is visualisation: Java source here:  

Image loading in Android.

There a lot libraries for loading images. Lets talk about couple of them. Picasso (http://square.github.io/picasso/) dependency

This library easy to use. To load image from url to ImageView you need do just one line.

Current library have a features which can be useful for your app: Image transformation

Read more…

How to deal with Lucida Grande Regular & Lucida Grande Bold font in ActionScript3

To embed Lucida Grande Regular &/or Lucida Grande Bold font in ActionScript3 you need to do next: …. …. …. // declaring fonts [Embed(source="fonts/Lucida_Grande_Regular.ttf", fontFamily="Lucida_Grande_Regular", fontWeight="normal", mimeType="application/x-font-truetype", embedAsCFF="false")] private var LucidaGrandeRegular:Class; [Embed(source="fonts/Lucida_Grande_Bold.ttf", fontFamily="Lucida_Grande_Bold", fontWeight="normal", mimeType="application/x-font-truetype", embedAsCFF="false")] private var LucidaGrandeBold:Class; …. …. …. …. // For Regular Font // Create TextFormat Read more…

How to use embed font in your ActionScript Flash application

To use embed font in your Flash application you need to do next: 1. Declare font and show TTF font location [Embed(source="../../../../../../assets/fonts/MyFont.ttf", fontFamily="MyFont",fontWeight="normal", mimeType="application/x-font-truetype", embedAsCFF="false")] private var MyFont:Class; take care about embedAsCFF=”false”. This is important part of code. 2. Create TextFormat object and use embed font it in. var textFormat:TextFormat Read more…