Uncategorized

Detect SQL server version

Posted on

Sometime we need to provide one script that works on multiple server, here is how to do in for SQL Servers 2000 and 2005. We will use simple technique to detect the server type using the serverproperty(‘ProductVersion’) for a list of options visit SERVERPROPERTY (Transact-SQL). So lets see what are the pros and cons of […]

Uncategorized

Specifying java source and target version in Maven 2

Posted on

While converting from Ant to Maven2 i have came across following error while trying to compile the project generics are not supported in -source 1.4 (try -source 1.5 to enable generics) private Map variables; To fix the problem we need to add the pluggin configuration to our pom.xml <project> … <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> […]

android

Detecting Network Speed and Type on Android (Edge,3G)

Posted on

For better experience for users of my app I wanted to show them different UI based on their network speed, problem here is that there is no way to know what network we are currently on. My first instinct was to use android.net.ConnectivityManager getActiveNetworkInfo() which gives us current network information, but the only thing we […]

Uncategorized

Ozzie and Killer

Posted on

Here are our two cool dogs Ozzie and Killer Ozzie is our German Shepherd and Killer is a little mix of everything. Anna found Killer one day at hers mom house.

android

Carme GPS Tracker for Android

Posted on

My frist Android app, this is simple GPS tracker program that let us record our tracks, store  and share them. This project uses my custom TabWidget for Android. Main features Record Playback Share via Email (Google Earth) Share via Twitter  (in progress) Exporting to SD Card Tagging (in progress) I use icon from http://www.dryicons.com , […]

android

Custom Android Tabs

Posted on

Due to limitation of Android Tab component I created a custom TabWidget that I am using in couple different projects already. The widget allows us to  add custom background and use custom icons, tabs   can be Top/Bottom aligned. Currently tabs can launch new Activity and  Dialog , when starting new Activity we can use  “startActivityForResult” […]