Monday, 31 May 2010

Android Phone locked out - how to unlock it without Hard resetting it

I was watching heroes season 3, playing with the unlock schema of my phone (Android(1.6) HTC Magic) drawing strange pattern until I locked it down.

The phone shows a message : wait 30 seconds until next try (translated from french).

I did hit by mistake the recovery button which lead me to a login form asking me for username and password to unlock the device.

My phone is set-up with my google apps account 'login'

I've tryed everything and it fails to unlock telling me 'wrong username or password'...

For example I've tryed :, login, my other gmail address with and without the

I've googled and find why it won't works :

Apparently, the phone needs a wifi internet connection so that the login/password check passes. It's plausible as the login failure is instantaneous while it should take some time to check your password over the internet through a 3G connection

it's said here by ladygrant87 :

but the given solution won't work for me : call yourself, pickup, send you a mail, get it for the drop down menu(top of the screen), click the link, activate wifi, try login/password again to get it unlocked.

I couldn't get the drop down menu.

Any other solution fails (which involve playing with home/menu physical buttons) expect this one which do not involve an Hard Reset of the phone :

type your login address that you use to configure your phone without the @domain.tld extension and as password type the 'null' string without quotes.
(big big security hole btw !)

For example, if you use a address  like, type :


if you use a google apps mail account like, type :


Then it ask a new lock schema. Once it's done, your phone works as before.

(Even if I use solution for backup I didn't want to hardreset !)


Thursday, 27 May 2010

Thecus NAS N4100Pro

I've purchased a year and a half ago a NAS from Thecus. It's the N4100Pro model which you can see on the right.

The purpose of this post is to tell how I'm satisfied with my Thecus NAS !

It's so rare that the product is good and the support by the company is so good that It needs to be shout ! ;)
Usually, what you can read on internet is complains, issue...

Here it's just about satisfaction !

First, the installation and setup was easy, the features was here and working.
Ok it's what I've paid for...

But I've been quite surprised that Thecus was actually updating the firmware and adding functionality regularly which gives some new functionality, new user interface.

Just compare this situation to Sony :  I've bought a laptop half a year ago, with windows vista. I've upgrade to windows 7 :  they offer no support for windows 7 at all for my laptop. No driver, no help. The result : My laptop battery hold 1 hour max. The webcam do not work...

There is plenty of other lack of support : My old mobiles (sony Z5, siemens, samsung U600): very few or no firmware update.

My Current HTC Magic, I'm stuck with Android 1.6 and I can only drool over Android 2.1/2.2...

But let's get back to Thecus.

They've switch the user interface in a major firmware upgrade (2.x to 3.x) to ExtJS which end to a very user-friendly interface, and they recently upgrade it again and it's even nicer, with a flash login interface ! (if no flash is available, a standart interface will replace it)

A module system, which is share with many other products allow to add functionnality to the NAS :

Item Version Date Download
NZB module (wget download style) v1.0.0 2010.04.15
USB & eSATA schedule backup module v1.01 2010.03.05
RAID Volume Replication module v1.0 2010.03.05
Twonky media server module v1.0 2010.03.05
DLM2 module (Bit Torrent Client, FTP Client,
eMule Client)
v1.0.9 2009.10.06
MySQL module v1.00.02 2009.09.23
Web Server module v1.0.4 2009.09.23
Bi-directional USB copy module v1.0.3 2009.09.23
IP CAM module v2.0.1 2009.09.23
Even some modules from 5200PRO are compatible, see this link. Noteworthy : SSH Deamon !

And finally, they've got a JIRA style support interface (it uses software and it's very nice) where you can get help or ask for feature request. They do respond like normal brained human ;)

Here is some screenshots of the web interface  :

Some resources :
Note : unsponsored blog post... I'm really happy with this product and the company!

    Wednesday, 26 May 2010

    Bacula upgrade while updating ubuntu to 10.04

    When you update your ubuntu to 10.04, the upgrade process forgets to update the bacula database which ends with this in bacula logs :

    02-May 17:39 bacula-dir JobId 0: Fatal error: Version error for database "bacula". Wanted 12, got 10
    02-May 17:39 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula".
    02-May 17:39 bacula-dir JobId 0: Fatal error: Version error for database "bacula". Wanted 12, got 10
    02-May 17:39 bacula-dir ERROR TERMINATION
    Please correct configuration file: /etc/bacula/bacula-dir.conf

    to correct this you need to run manuall two SQL scripts to upgrade the database (extracted from sources of bacula).

    First you need to edit ~/.my.cnf so that 'mysql' command use this file to connect to the database :


    or change the scripts so that

    this line :

    if $bindir/mysql $* -f <<END-OF-DATA

    is changed to this line :

    if $bindir/mysql -uroot -p $* -f <<END-OF-DATA

    here is this scripts you need to upgrade the database :

    Download theses files on your server, review what changes it brings (you should always check these kind of things found on internet ;)
    edit these files to update the bacula database name


    and run it :

    root@home:~/upgradeBacula# ./
    This script will update a Bacula MySQL database from version 10 to 11
     which is needed to convert from Bacula version 2.0.x to 3.0.x or higher
    Update of Bacula MySQL tables succeeded.
    root@home:~/upgradeBacula# ./
    This script will update a Bacula MySQL database from version 11 to 12
     which is needed to convert from Bacula Enterprise 2.6 to 4.0 or
     Standard version 3.0 to 5.0
    Update of Bacula MySQL tables succeeded.

    Next, try to start bacula :

    sudo service bacula-director start
    sudo service bacula-fd       start
    sudo service bacula-sd       start

    you should now be able to connect with bconsole and run a job !

    This post was written based on information found on this bug report :

    Tuesday, 11 May 2010

    Ubuntu 10.04 : Install and set Sun JDK as default

    Since ubuntu 10.04, Sun JDK has been dropped and replaced by openjdk.
    Literally replaced, ie : Sun JDK remove, openjdk installed.

    This is performed during the upgrade without explicitly asking you for your consent...
    which is quite ugly... After the upgrade, my tomcat was not working anymore...

    Anyway, in order to install Sun JDK back you just have to :
    vi /etc/apt/sources.list
    and check if the following line is present :
    deb lucid partner
    if not, add it at the end of the file.
    then run
    sudo aptitude update

    to get the package list from the new repo.
    and then run :
    sudo aptitude install sun-java6-jdk
    but after that, if you run java -version, it's still the openjdk version.

    thomas@daisybox:/usr/lib/jvm/java-6-sun$ java -version
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
    OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
    thomas@daisybox:/usr/lib/jvm/java-6-sun$ which java
    thomas@daisybox:/usr/lib/jvm/java-6-sun$ ll /usr/bin/java
    lrwxrwxrwx 1 root root 22 2010-05-11 23:44 /usr/bin/java -> /etc/alternatives/java
    thomas@daisybox:/usr/lib/jvm/java-6-sun$ ll /etc/alternatives/java
    lrwxrwxrwx 1 root root 40 2010-05-11 23:44 /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk/jre/bin/java

    You could try to remove openjdk, but you'll hit some annoying dependency issue.

    Instead of removing you can configure the system to default to Sun JDK

    thomas@daisybox:~$ sudo update-alternatives --config java
    There are 2 choices for the alternative java (providing /usr/bin/java).
      Selection    Path                                      Priority   Status
    * 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
      1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
      2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode
    Press enter to keep the current choice[*], or type selection number: 2
    update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java to provide /usr/bin/java (java) in manual mode.
    thomas@daisybox:/usr/lib/jvm/java-6-sun$ ll /etc/alternatives/java
    lrwxrwxrwx 1 root root 36 2010-05-11 23:48 /etc/alternatives/java -> /usr/lib/jvm/java-6-sun/jre/bin/java
    thomas@daisybox:~$ java -version
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

    Or more directly like "Daniel Bos" suggest in the comments :

    sudo update-java-alternatives -s java-6-sun

    image taken from :

    Default windows 'temp' directory prevents Oracle Universal Installer to launch

    Today I was by a client to proceed on a delicate TIBCO iProcess upgrade, and I encounter a strange issue : Oracle Universal Installer ( or won't launch.

    If you watch in process explorer, you can see a java process (javaw.exe) launch and die.

    I found out that it was the default 'temp' (or tmp) directory that was preventing Oracle Universal Installer to launch.

    On this particular machine, the default setting is :

    %USERPROFILE%\Local Settings\Temp

    which is expanded to (+ oracle path) :

    C:\Documents and Settings\matr1x!\Local Settings\Temp\OraInstall2010-05-11_10-08-17AM\jre\bin

    I've replaced TEMP and TMP environment variable value by 'c:\temp' and I was able to launch the Oracle Installer and perform the installation.
    (using C:\Install\Oracle\client 9i\92010NT_Disk1\install\win32\setup.exe,
    C:\Install\Oracle\client 9i\92010NT_Disk1\setup.exe still wasn't working)

    Tuesday, 16 February 2010

    Week number (on monday) in Google Calendar

    I've been using this calendar to have week number in google calendar :

    But since a few weeks it fails to load. I try to re-add it without success from the webpage.

    I managed to make it work again by tweaking the url :

    replace GOOGLEAPPSDOMAIN.COM by your google apps domain name, paste the link in a browser that have a google apps session open, it will ask for comfirmation before adding this calendar to your calendar, click yes and you have weeks number back in your caledar!

    Sunday, 10 January 2010

    Get up to date nvidia graphical drivers on laptop

    I've recently reinstalled my SONY VAIO laptop (VGN-SZ71E/B) with Windows 7 (with dual boot with Ubuntu 9.10, see this howto from lifehacker).
    When I try to install the last nvidia drivers I get this error :

    "nVidia setup program could not locate any drivers that are compatible with your current hardware. Setup will now exit."

    So I tried the driver finder from nvdia download page, which one told me that the manufacturer (i.e. SONY) requires that the driver should be downloaded from their website.

    So I get to the Sony support page to get their last driver... I was a bit disappointed by the experience :
    They only propose the original driver which is as old as prehistory (November 2007) and 32bit while my windows 7 is 64bit.

    After a google search, I've found laptopvideo2go website which provide a decently recent drivers (v190, July of 2009, while the last from nvidia is v195) and a modified INF file that allow the driver to install on your laptop.

    Go there :

    They ask for an Hardware Id to allow you to download the correct driver.

    You can find this string in the device manager, to get their,
    • hit "windows key"+ pause, 
    • then click the "device manager" link in the upper left corner of the window. 
    • Then go to the "Display adapter" double click on the graphic card (mine was named something like "standard vga graphics adapter" before I install the nvidia driver), 
    • then click on the "details" tab, 
    • set the combo box to "Hardware Ids", 
    • and you'll have the required information :

    (for me, first field : 0427, second field : 9008104D)

    Fill the field, choose your system, click the search button, click on the latest version of the driver,
    on the next page, click "Click here to download driver and INF files." link.
    At the end of the next page, there is 2 links :
    1. "Click here to download the requested driver."
    2. "Click here to download the modified INF file."

    The first will give you a 7Zip auto extractible archive and the second link will give you the modified nv_disp.inf file.

    Double click the exe file to extract it somewhere, replace the nv_disp.inf file from the extracted drivers, run the setup, reboot and It's done, a recent nvidia driver on your laptop.

    Thanks to for their work !