By Oleg Mazurashu,on March 25th,2010% 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 By Oleg Mazurashu,on March 25th,2010% 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 By Oleg Mazurashu,on March 24th,2010% 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 By Oleg Mazurashu,on March 24th,2010% 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 By Oleg Mazurashu,on March 24th,2010% 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. By Oleg Mazurashu,on March 24th,2010% 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 By Oleg Mazurashu,on March 24th,2010% Simple command which shows current time in MySQL server: mysql> select now(); By Oleg Mazurashu,on March 24th,2010% 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 By Oleg Mazurashu,on March 22nd,2010% Data streams read and write strings,integers,floating-point numbers,and other data. The DataInputStream and DataOutputStream classes read and write the primitive Java data types (boolean,int,double,etc.) and strings in a particular,well-defined,platform-independent format. Since DataInputStream and DataOutputStream use the same formats,they’re complementary. These classes are especially useful when you need . . . →Read More:Using Data Streams in Java By Oleg Mazurashu,on March 17th,2010% One more solution for capturing audio in Android. You can use existing application which can capture audio for you. I am going to show example which shows how to start Sound Recorder activity: import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.provider.MediaStore;import android.view.View;import android.widget.Button;/** * This class shows how to run Sound Recorder . . . →Read More:Using Sound Recorder activity for capturing audio in Android | A sample text widgetEtiam 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. | "If people do not believe that architecture is simple,it is only because they do not realize how complicated life is." - J.H. von Neumann |
Recent Comments