The techie in me RSS 2.0
 Sunday, November 21, 2010

How to hard reset HTC Desire to factory setting, some call it factory reset.

I have an HTC Desire Z, I had to hard reset the phone couple of times because of all junk apps I install.

Steps to hard reset, may be helpful for you…

HARD RESET WILL WIPE ALL YOUR PERSONAL DATA, so please do a backup before you start

Turn off your phone,
1. With the phone turned off, press and hold the VOLUME DOWN button, and then briefly press the POWER button.
2. Wait for the screen with the three Android images to appear, and then release the VOLUME DOWN button..
3. Press VOLUME DOWN to select CLEAR STORAGE, and then press POWER.
4. Press VOLUME UP to start the factory reset.

 

I think this is different from what you do thorugh the ‘factory reset’ menu option in setting. ( I am not sure though)

Sunday, November 21, 2010 9:44:00 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Everything | Non MS | Windows Mobile
 Saturday, October 16, 2010

My colleague suggested me a nice UI mock-up tool recently. Balsamiq has a free web version with some limitation, its not very expensive if you want to buy. I like the product though, we can say bye bye to MS paint for UI mock-up also its a nice idea they have built in controls for common windows controls.

-Rujith

Saturday, October 16, 2010 8:15:00 PM (GMT Standard Time, UTC+00:00)  #    Comments [1] -
Everything
 Saturday, October 02, 2010

I am sure that most you have read this in the MSDN documentation, it appears almost everywhere. Recently while brainstorming about a deadlock issue in our project someone raised this topic. ‘Public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe’, and claimed that all Framework type static instances are thread safe.

My opinion is this is bit misleading. This doesn't mean that all type in .NET framework are thread safe in static instance, nor that all static instance of any type is thread safe. If you think for a sec, nothing is thread safe by default, the author has to make a type thread safe, in this case MS has taken the time to verify that they are thread safe (which is very easy if they don't touch shared data). So it is your responsibility to make your class/type is thread safe.

I am sure MS is aware of this confusing statement. In old days it used to be only the two sentences in documentation (as above), but now you can see they are elaborating it bit more. Check here documentation for Array

And check this out, Thread Safety for TaskFactory says,

All public and protected members of TaskFactory are thread-safe and may be used concurrently from multiple threads

Hope that helps.

 

Rujith

Saturday, October 02, 2010 10:23:00 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Coding | Everything
 Monday, August 30, 2010

Recently I was trying to find duplicate records in a table. The records are considered duplicate if two columns in different records has the same value. For example if first name and last name is same in record1 and record2, they considered as duplicate.

The below query will help to find the duplicate records.

SELECT fname, lname, COUNT(*) AS DuplicateCount FROM [Users]
GROUP BY fname, lname HAVING COUNT(*) > 1
ORDER BY COUNT(*), fname.

 

(I know this is pretty simple one, but most of the time you struggle for the simplest query :) so thought of sharing it)

Monday, August 30, 2010 10:13:00 PM (GMT Standard Time, UTC+00:00)  #    Comments [1] -
Database
 Friday, July 23, 2010

I recently found a nice free icon editor called IconFX.  Its really cool and very lightweight, you can simply use the exe no need to install. That’s surprise in this world when you have install (and sometimes reboot ) every single piece of software isn't it ?

Try it out… http://icofx.ro/

Thursday, July 22, 2010 11:17:00 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Everything
 Saturday, April 10, 2010

String.Replace is not case insensitive, so what is the best way to do it. There are several ways, if I think of the quickest one it is using regex.

using System.Text.RegularExpressions;string 
string str = "The quick brown Fox jumps over the lazy dog";
string strReplace = "cat";
string result = Regex.Replace(str, "fox", strReplace, RegexOptions.IgnoreCase);

-Rujith

 

Saturday, April 10, 2010 10:18:00 PM (GMT Standard Time, UTC+00:00)  #    Comments [1] -
Coding
About me
Name : Rujith Anand Send mail to the author(s)
Archive
<November 2010>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
Blogs I read
Disclaimer

Disclaimer
Postings are provided as is with no warranties, and confer no rights. Opinions expressed here are my own delusions; my employers at best shake their heads and sigh, at worst repudiate the content with extreme prejudice, whenever it manages to appear on their radar.

© Copyright 2012
Rujith Anand

Statistics
Advertisement
All Content © 2012, Rujith Anand