Java SE Development Kit 6 Update 19 is availableJava SE Development Kit 6 Update 19 is available

You can download it from this link. Details you can find on Release Notes page.

Share

Using system properties in Java

The System class maintains a Properties object that describes the configuration of the current working environment. System properties include information about the current user,the current version of the Java runtime,and the character used to separate components of a file path name. In this post I am going to show simple example which shows . . . →Read More:Using system properties in Java

Share

Getting system environment variables in JavaGetting system environment variables in Java

I am going to demonstrate example which shows how to get environment variables from Java code

import java.io.IOException;import java.util.Map;public class Main{public static void main(String[] args) throws IOException . . . →Read More:Getting system environment variables in Java

Share

Using Properties in JavaUsing Properties in Java

Java has great API for working with properties. In this post I am going to show example which shows how to work with properties with Properties class. In my work I very often use properties and xml files for configuration. Example will show how to load properties from property file,how to read them,how . . . →Read More:Using Properties in Java

Share

Setting character sets for database in MySQL

MySQL can store data using various character sets. To view the supported character sets in your server run

mysql> show character set;

MySQL allows to set which character set need to use for database

create database some_db character set cp1250;

and for column

varchar(20) character set cp1250

Share

Avoiding problems with Date format in MySQL

If you construct a string with which to populate a date column and that string does not match the expected format,you will receive error. In this case MySQL has function str_to_date which specifies string format

mysql> update …set birth_data = str_to_date(‘FEB-12-1990′,‘%b-%d-%Y’) where …

Formatters:

%a –the short weekday name:Sun,Mon,… . . . →Read More:Avoiding problems with Date format in MySQL

Share

Getting query result in XML in MySQL

MySQL allows to generate XML output from query. It is very useful when you are working with XML data

mysql -u user_name -p –xml database_name

After that you can select data and result will be as an XML document.

Share

Creating and using databases in MySQL

In this post I am going to show simple examples which should help to understand how to create database,table,how to populate,update data in table and how to delete data from table and how to delete database. I will use MySQL database server which you can download from mysql.com.

. . . →Read More:Creating and using databases in MySQL

Share

Getting current time in MySQL

Simple command which shows current time in MySQL server:

mysql> select now();

Share

MOTODEV Studio for Android 1.2 is now available

An new version of MOTODEV Studio for Android is available. This release provides support for the Android 2.1 (Eclair) SDK and includes version 0.9.6 of the Google ADT plugins. Several new features for this release:

the ability to install into your own Eclipse environment 64-bit host support Windows 7 support

Details here.

. . . →Read More:MOTODEV Studio for Android 1.2 is now available

Share

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna.