Search This Blog

Friday, April 27, 2012

Visual Studio 2010 regexp replace decimal delimiter

I had to replace decimal delimiter using Visual Studio 2010’s regular expression built-in mechanism – i.e. “ctrl+h” or ‘find and replace’ option.

The idea was to replace tags in XML:


I ended up using “tagged expressions” or “back references” in regexp which IS supported by VS built-in regex. To enter a back reference you simply use \1 (for the first back reference) and tag references by surrounding them with {} braces.

Find what:

Replace with:

Possible minus sign is the first back reference, digits before coma are the second reference and digits after coma are the third reference.

Thursday, April 19, 2012

Android 4.0 mount sdcard as drive

With Android 4.0 the option to mount you phone memory and external SD card as drives in Windows just disappeared.

Fortunately on a rooted Android ICS phone you can still do that by installing this application:


Saturday, April 7, 2012

Android ICS 4.0.3 Official XXLPQ for Samsung Galaxy S2 (For Odin)

This is the official Samsung release for Galaxy S2. Requires Odin to flash.
(Odin is included in the package).

Model: Samsung Galaxy S2 I9100
Android: ICS 4.0.3 XXLPQ  kernel 3.0.15

Files [ROM]:


1. Unpack
2. Run "Odin3 v1.83.exe"
3. Enter "Download mode" on your phone - downArrow, Home Key, and power button pressed simultaneously; Press upArrow to "continue"
4. [NOW - after running Odin] - connect the mobile via USB to the PC
5. Click PDA - select "I9100XXLPQ_I9100OXALPQ_I9100XXLPQ_HOME.tar.md5" file
6. DO NOT CHANGE ANY other settings
7. Click start

Your Odin should look like this:

Android 4.0.3 XXLPQ Screen timeout bug

I had an issue with my Android ICS 4.0.3 XXLPQ ROM.
The problem was that the screen did NOT turn itself off after a defined period of time so when
I received an sms or a call the screen remained lit till the time I actually came and turn it off manually.
It was annoying and drained the battery.

I turned out that it was a kernel problem. Updating the kernel to speedmod-kernel-s2 worked like a charm
and resolved my issue. It's supposed to be faster than the stock kernel but what I really cared about was
screen backlight timeout bug.


Working/Confirmed root for Samsung Galaxy S2 stock ROM on Android 4.0.3 version XXLPQ

This is a confirmed root solution (without changing the kernel or using ODIN) for Galaxy S2 ICS stock ROM. You just need to enter CWM (Clockworkmod recovery) and apply some updates.

Model: Samsung Galaxy S2 I9100
ROM: Android 4.0.3 stock ROM XXLPQ

1. download the file below
2. unpack it and copy the content to your SD card
3. enter CWM - upArrow, Home Key, and power button pressed simultaneously
4. search for "Install zip from sdcard"
5. choose ""
6. touch clockworkmod recovery will run
7. search for "Install zip from sdcard"
8. search for and apply the update


Guide for UNROOTING is available inside the package (in short: apply the update)

Tested on stock 4.0.3 LPH & LPQ rom.

Visual/Touch interface Clockworkmod recovery for Galaxy S2

Some of the new *.zip updates to Galaxy S2 need new Clockworkmod recovery and do not work on older (stock) version of this tool. 

To run touch clockworkmod recovery (not wiping your original version) simply:
1. download the file below
2. copy it to your SD card
3. enter CWM - upArrow, Home Key, and power button pressed simultaneously
4. search for "Install zip from sdcard" 
5. choose ""

The new touch Clockworkmod recovery will run.

CWM link: