Qt Eclipse Integration

If you are working in CDT and Qt then the Qt Eclipse Integration is quite handy and in my opinion much better than using the standalone Qt designer. Installation is pretty straight forward as described here .

January 13, 2010 · Amit Bahree

A Song of Silicon Valley

Ah, this brings back fond memories of my time in the valley – awesome! :) Credit goes to this post of the NY Times.

January 11, 2010 · Amit Bahree

‘QPainter painter’ has initialiser but incomplete type

If you ever got an error something like [some-class] has initialiser but incomplete type, it basically means the compiler cannot understand the type and you need to add the include for it. 1 2 3 4 5 QPixmap pixmap(20,10); pixmap.fill(Qt::white); QPainter painter(&pixmap); QPen pen(Qt::blue); Take the code snipped above when you compile it you might get an error something along the lines of the following for line 4. ‘QPainter painter’ has initialiser but incomplete type...

January 10, 2010 · Amit Bahree

Permalinks don't support quotes?

I don’t know if this is a feature or a bug or a configuration issue either with WordPress itself or how the web server is configured where this blog is hosted. I just posted something about compiler errors where the permalink had a single quotes in its title like : ‘qpainter-painter’-has-initialiser-but-incomplete-type. While this was handled fine by WordPress (I could successfully preview the post as well), once it was published I got the generic 500 Internal Server Error as shown below....

January 10, 2010 · Amit Bahree

WordPress ping list

I updated the ping list for the blog based on the suggestions from Vladimir which I found via WordPress's documentation site . Not sure if it is of any help or not, but I guess I will find out.

January 7, 2010 · Amit Bahree

Is it time to relook at Facebook again?

I still don’t get Facebook – despite being on it. If I want to talk to someone I will call them, email them, text them, meet them, have dinner with them - get the picture? I am quite worried about the security and privacy elements of it – or rather the lack of it. Those who know me well (anyone?) :-) know I was not always this paranoid but after attending a few Security courses – I cannot bury my head in the sand anymore....

January 6, 2010 · Amit Bahree

Media Centre Pictures

Sorry this took so long (been extremely busy lately), but as promised here are pictures of the media centre during the various stages of being built. Clicking on the thumbnails below, will show you a larger version of the photos. Also given my previous experience with the MCE , the wife is always very sceptical whenever I say anything about ‘fixing’ the MCE. Moral of the story (as I learned the hard way) the MCE is a ‘production’ class machine which does not get touched without adequate planning with fall back options planned....

December 31, 2009 · Amit Bahree

Eclipse CDT Blues

Sigh, why is Eclipse CDT to flaky? Well, there might be a slight exaggeration in that but nevertheless, I did not have so many issues with Visual Studio / VC++. :roll: I have uploaded this particular log file here if anyone is interested. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 # SIGSEGV (0xb) at pc=0xb263d1f7, pid=20331, tid=3085625024 # # JRE version: 6.0\_16-b01 # Java VM: Java HotSpot(TM) Client VM (14....

December 24, 2009 · Amit Bahree

Upgraded to WordPress 2.9

I just upgraded to WordPress 2.9 and wow what a pleasant experience compared to Community Server 2007! Excluding backing up the DB and the site, the actual upgrade took only a few seconds and was so painless! Such a different experience from Community Server 2007, which was so much more difficult. Loving WordPress and all the add-ins and the goodness of the communities! :mrgreen:

December 24, 2009 · Amit Bahree

Making sense of primary-expression error

If you are new to C++ then some of the compiler errors can be a bit confusing and daunting at first. For example if the compiler given you an expected primary-expression error (e.g. expected primary-expression before ‘.’ token), at face value it does not make sense. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 void RGBViewer::accept() { QMessageBox::information(this, "Button Clicked", "You clicked OK", QMessageBox::Ok); QColor color = QColor(Ui_RGBViewerClass....

December 22, 2009 · Amit Bahree

Pan-Fried Asparagus

Yes I am a foodie (quite surprising, a lot of people find that surprising). 8-) Anyways, this is what I intend to cook tonight among other things. I cannot claim credit for this, I found it online some time back and now its stored on my Wiki at home and I don’t know who to give credit for it anymore. Ingredients: 1/4 cup butter 2 tablespoons olive oil 1 teaspoon coarse salt 1/4 teaspoon ground black pepper 3 cloves garlic, minced 1 pound fresh asparagus spears, trimmed Method:...

December 22, 2009 · Amit Bahree

Allowing remote desktop with blank passwords on Win7

I finally got the time to upgrade my MCE with the RTM bits of Win7 (was running an old RC build until now). Given this is a dedicated MCE with nothing else on it and an on an isolated part of the network, I don’t have a password set for the Account I use to login (of course not a recommended practice). Now, I wanted to RDP to the machine and I realised then that Win 7 does not allow RDP with blank passwords by default (Vista behaves in the same fashion)....

December 19, 2009 · Amit Bahree

Thought of the day

Premature optimization is the root of all evil; on the other hand we cannot ignore efficiency. - Knuth and Bentley

December 17, 2009 · Amit Bahree

Opening File explorer from a terminal

In Ubuntu if you want to open File Explorer from a terminal (especially as root) then you need to enter the following command: sudo nautilus If you want this to run as a background process then just add an "&" in the end (without the quotes of course).

December 13, 2009 · Amit Bahree

Extending WCF Adapters in BizTalk

I know a little bit about WCF :) but never really used it in anger in BizTalk and also did not get an opportunity to extend the adapter. I was looking for something else and came across this post form Paolo which explains in a lot of detail how does one go about extending and customizing WCF adapters. If you don’t know anything about WCF the first part explains that in general before going in to the BizTalk specific things....

December 11, 2009 · Amit Bahree

10 must have WordPress plugins

If you search online you will loads of ‘best plugin lists’ for WordPress, however of the lot that I have seen I truly think that this one is certainly one of the best ones.

December 8, 2009 · Amit Bahree

BizTalk Flat File schema optional attribute issue

I encountered this interesting issue and thanks to Colin we were able to resolve it. There will be situations you will encounter when adding additional optional attributes to a Flat File (FF) schema in BizTalk will cause problems. To get around this you basically will need to set the following properties to relax the parsing of the attributes which break. 1 2 3 - parser_optimization="complexity" - allow_early_termination="true" - early_terminate_optional_fields="true" This got me thinking more and wanting to understand what does changing these attributes mean under the covers....

December 6, 2009 · Amit Bahree

Default QT4 path

If you wanted to know the default path where QT4 is installed (on Ubuntu) then look in /usr/share/qt4/bin.

December 6, 2009 · Amit Bahree

Want Virtual Snow on your site?

If you want virtual snow (probably nicer than the real stuff as there is no slush left to clean up) then check out Snowstorm: JavaScript snow effect for HTML . Be warned though - this uses a lot of CPU on the computer redendering the page and it will slow things down. Quite cool though.

December 5, 2009 · Amit Bahree

Redirects setup

After moving the blog to WordPress, almost all my redirects should work now from the old blog posts to the new one. For example if you click on this old url http://desigeek.com/weblog/amit/archive/2009/10/25/installing-openscenegraph-on-ubuntu.aspx it should redirect you and you see the new and correct url. Overall it was simple to setup via the .htaccess file and some simple regex. The only thing I found the hard way was that I should be using “RedirectMatch” when setting up the regex rule rather than the “Redirect” which is what I was using....

December 2, 2009 · Amit Bahree

Thought of the day

Save the whales. Feed the hungry. Free the mallocs. - Anonymous

December 1, 2009 · Amit Bahree

Cloud computing Risk Assessment

ENISA (European Network & Information Security Agency) – phew that is a mouthful have gotten together with a number of industry leaders and released a Risk assessment for Cloud computing . I have not finished reading this and only eyeballed this, but looks good.

November 27, 2009 · Amit Bahree

Implementing malware with VMs - Subvirt

Microsoft Research (MSR) along with University of Michigan have an interesting paper that showcases a new type of malware specifically for Virtual Machines and hosts running the VM’s (Hper-V, VMWare Server, etc). This malware installs a monitor underneath the host of the VMs as a Virtual Machine Monitor (VMM). All VMM’s run in Ring 0 (kernel mode). Essentially this is similar to a rootkit and they call this a VM based rootkit (VMBR)....

November 27, 2009 · Amit Bahree

Linux Hater blog

I was looking for something else and came across the Linux Hater Blog . I am not a Linux hater (am writing this on Ubuntu). Some people might think this is funny, but there is a dark undercurrent running in the posts. I honestly stopped reading after a couple of posts. I don’t know why is there so much hate against Linux in this blog. Am surprised by the negativity on the blog....

November 26, 2009 · Amit Bahree

Suggestions on how best to configure Permalink Settings?

Any suggestions how best to configure the Permalink settings in WordPress? I still need to fix all my old links from this blog when it was running on Community Server 2007. CS 2007 use to use something like /archive/year/month/day/unique-id. Is that the best way to go now as well or are there better and more flexible options? Also I tried using the %tag% field, but it does not like it and had to revert to using %categories% as you probably can see....

November 26, 2009 · Amit Bahree