Sunday, November 15, 2009

SAR values for Nokia mobiles in India as on 15th Nov

Choose the Nokia mobile phone model below for checking SAR rate (radio wave emissions). The SAR value must be below an agreed level (2 W/kg).




Friday, October 23, 2009

i18n support for German Characters in Java

Problem: Issues on Double Byte support - Java platform.

Symptoms: The umlauts characters like ä,ö,ü in German / Spanish / Portuguese languages are garbled in the output stream. Java application receives data over a socket using an InputStreamReader. It reports "Cp1252" from its getEncoding() method:

/* java.net. */ Socket Sock = ...;
InputStreamReader is = new InputStreamReader(Sock.getInputStream());
System.out.println("Character encoding = " + is.getEncoding());
// Prints "Character encoding = Cp1252"

That doesn't necessarily match what the system reports as its code page. For example:

C:\>chcp
Active code page: 850

The application may receive byte 0x81, which in code page 850 represents the character |ü|. The program interprets that byte with code page 1252, which doesn't define any character at that value, so I get a question mark instead.

Solution:

You can work around this problem by using code page 850 i.e., by adding another command-line option:

java.exe -Dfile.encoding=Cp850 ...

ENC=...
java.exe -Dfile.encoding=%ENC% ...


To write at the command line,

> chcp 850
Active code page: 850

> type 1251.txt
abcde xyz
ÓßÔÒõ ²■


Some pointers relevant to this:

> http://illegalargumentexception.blogspot.com/2009/04/i18n-unicode-at-windows-command-prompt.html
> http://stackoverflow.com/questions/1336930/how-do-you-specify-a-java-file-encoding-value-consistent-with-the-underlying-wind

Wednesday, August 26, 2009

Intel Pro Wireless driver installation for Inspiron 1525

> Download the wireless driver for inspiron at http://support.dell.com/support/downloads/format.aspx?c=us&cs=19&l=en&s=dhs&deviceid=9540&libid=5&releaseid=R164255&vercnt=1&formatcnt=0&SystemID=INS_PNT_PM_1525&servicetag=&os=WW1&osl=en&catid=5&impid=-1

> Extract the drivers' .exe file

> Goto .../Intel_multi-device_A12_R164255/XP/Drivers/x64 folder in command prompt

> Assuming that ndiswrapper is already installed, do ndiswrapper -i NETw4x64.INF

> /sbin/insmod /lib/modules/2.6.29.6-217.2.8.fc11.x86_64/kernel/net/wireless/lib80211.ko

> /sbin/insmod /lib/modules/2.6.29.6-217.2.8.fc11.x86_64/extra/wl/wl.ko

> modprobe lib80211

> modprobe wl

> If you have the wireless switch turned on, you will see the network manager searching for wireless driver

> Done !!