Monday, April 21, 2014

[Windows][Drivers] Install unsigned device drivers on Windows 8

Win8 enforces driver signatures by default. If you have a Win7 driver that worked OK, I suggest the following to disable driver signature enforcement:

From the Metro or Desktop

Bring up Charms by mouseing over to the right of the screen

Go to Settings

More PC Settings

General

Advanced Startup > Restart Now

Trouble shoot

Advanced options

Windows startup options

Restart

Click on 'Disable driver signature enforcement

Reboot

Install the relevant driver, allowing the non signed driver to install.

This has worked OK for me installing various old printer drivers. Just make sure you know the provenance of the driver being installed, as always.

[Qt][Android] In my wildest dreams...(Qt Application on Android)

Yeah! I never thought I would professionally develop for Android! But the powers that pay me, have decided to port our product on to Android and so being the sole person available as of this moment I have been tasked with this enormous task!
Hell, I have even got a time line for this! 15 Days!

Now, I did visited the washroom afterwards and laughed my arse off!!! Some statistics for the task:
Approx 17000 LoC C++ STL/Qt
4-5 shared libraries being used by the project
Cross-platform code (Written for Win/Lin as main platforms)
PostgreSQL database being used
To top it all, the code has never been reviewed, forget about a proper audit. I have worked on parts and I have done my best to clean up about 4000LoC but remaining all is three-four year old crap that would give me nightmares if I dipped my toes in it...
Suddenly life has become a war for survival...:D

Tuesday, April 15, 2014

[Qt] Compiling Qt5.2.1 on Windows 8/VS 2013


Qt5. It's a miasma. It's a beast for me. It's something mysterious. I don't know if I should love Qt5 or hate it.
And I think that summarizes my thoughts about Qt5.

I first stumbled across the fifth iteration when some functionality in the product I was working on couldn't be done in existing Qt version (4.5.3 btw). So after looking around for the Oracle, I came to know that the functionality can be achieved by moving to Qt5.

Now our development platform (WinXP/CentOS 5.3/ Qt 4.5.3) was getting a bit too old. And it was all quite buggy to boot. So we decided to embark on the adventure of upgrading the base. Took us two months to upgrade the Linux side to CentOS6.3/ Qt5.0.1 and port the product to new Qt. But after that other high priority work kept us busy and we never got to get the Windows side up to speed.

But then came the fateful day two weeks ago when our IT Manager announced the upgradation of all our faithful old XP systems into Windows 8. And then as it happens, people go ahead and nobody asks the actual user, our PC's were upgraded to Win 8.

Saturday, April 12, 2014

[Thoughts] Senn HD 439 vs Panasonic ht515

Songs tested against on Samsung Omnia W
Bezuban from abcd
gangnam style
Sun raha hain - female  from Aashiqui 2
Saajna from I, me aur main
Teri jhuki nazar - murder 3

Let me call Panasonic p and sennheiser s.
P sounds good, but not excellent. It had reasonable amount of bass and the soundstage is good. The sound is on the warmer side. And if you haven't heard s then you might think p is great. Yeah its that good.
Now when you plug in s, the first thing you notice id that the highs are much more perfected on s. The bells and thrums of guitar sound fuller. The bass gets punchier. The sound experience becomes better by about 35%.
And that's that straight forward difference you hear. P are not bad headphones. In fact these used to retail at about 30% price of s's. And so these are excellent value for money. The pair I have is about five years old and even though it looks totally plasticky it has held through rough use. The cable is strong and doesn't have slightest cable noise. S's cable is thin and has slight cable noise.

Update: After more than 50 hrs of burning in, the soundstage has opened much more. The frequency response also seems slight different - consistent with the opened soundstage.


Thursday, April 10, 2014

[Qt] Compiling ICU with MSVC (Microsoft Visual Studio)

Text highlighted and notes added


Compiling ICU with MSVC (Microsoft Visual Studio)

   
Qt 5 / QtWebkit requires ICU.
       

Pre-built packages

   
The ICU Project site [site.icu-project.org] provides pre-built packages for MSVC 2010, which should work with compilers too. Anyhow, you have to compile your own version if you want to avoid the MSVC 2010 runtime dependency (because you’re using another MSVC version), or want to tailor the ICU configuration.
   
download.qt-project.org [download.qt-project.org] also hosts packages for MSVC 2012 .
       

Tuesday, April 8, 2014

[PostgreSQL] Server fails to start on Windows 8

Recently stumbled on this problem. We have just upgraded all systems to Windows 8 in my office. The newly installed PostgreSQL was not starting. In PGAdminIII it would ask for password. But fail to proceed further.

On going through logs I came to see this error:

2014-04-08 15:00:10 IST FATAL:  no pg_hba.conf entry for host "::1", user "postgres", database "postgres", SSL off

So after un-commenting the line for IPv6 in pg_hba.conf, and restarting the server, it all started working fine.

The line is :
host     all     all     ::1/128     md5

Interesting point is it used to work fine on Win XP. Maybe Windows 8 has some special handling for IPv6. Don't know.