My (mostly technical) blog

Blog moved to See you there!

If you are developing using Qt Creator for the MeeGo/Harmattan target, and upon launching the emulator for your application you get a message like this in the compiler window:

chmod: /opt/MeeGoApp/bin/MeeGoApp: No such file or directory
warning: aegisSessionOpen() - failed to open platsec device (ret=-1)
warning: aegisSessionOpen() - failed to open platsec device (ret=-1)
/opt/MeeGoApp/bin/MeeGoApp: not found
Killing remote process(es)...
Finished running remote process. Exit code was 127.

Make sure your project path has no spaces. For example C:\Qt Projects\MeeGoApp will fail. Notice the space in “Qt Projects”.

I came across some packages compiled for 32-bit, like Adobe Air that I needed to install on my 64-bit ubuntu, the following commands will fix the flags on the .deb package to force install it on a 64-bit system.

Note that it the converted package might install but not work correctly, so you are at luck whether it will work after that or not.

cd ~/Downloads
mkdir tmp
dpkg-deb -x package_i386.deb tmp
dpkg-deb --control package_i386.deb tmp/DEBIAN
sed -i "s/i386/all/" tmp/DEBIAN/
dpkg -b tmp package_64.deb
sudo dpkg -i package_64.deb


As I’m just trying out Microsoft SQL Server Azure Spatial, the following things need to be removed from any generated SQL script in order to make it run on SQL Server Azure as they are not supported:


I will keep this post updated as I discover new booby traps!
For a full list, check: 

Simply, if you get this error:

Microsoft Visual Studio
Could not load type 'Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeDeniedOrNotExistException' from assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Then you probably installed Visual Studio, Visual Studio service pack, then the Team explorer. Doing it in that matter overwrites parts of Visual Studio SP hence giving you such errors.

The correct way to install would be:

  1. Visual Studio (Team Edition)
  2. Team Explorer
  3. Team Foundation 2008 October Power Tools
  4. Visual Studio 2008 Service Pack 1

To fix the error now, just re-install Visual Studio 2008 Service Pack 1.

As a reminder to myself, these are the steps to deploy an Qt application on the mobile phone.

  1. Project settings:
    1. Add new build configuration S60_5th_Edition_SDK_v1.0 (Qt 4.6.0) Release
    2. Change its Tool Chain to be WINSCW

    3. Add a new Run Setting (ProjectName in Symbian Emulator)
    4. Open the project file ( and add the following to enable network usage:
      symbian {
          TARGET.CAPABILITY = NetworkServices
  2. Mobile deployment:
    1. Without smart installer (Qt 4.6.0)
      • Open command prompt
      • Navigate to project path
      • Run:
        qmake && make release-gcce
      • Then run:
        make sis
      • You now have your .sis file ready. Make sure qt in already installed on the device
    2. With smart installer (Qt 4.6.2+) steps

I’ve run across this situation multiple times, where I have for example, an ID that I get in the code behind, and I want to append it to some href in the aspx, and each time I forget how to do it, so as a reminder for myself, here is how to do it and problems I ran into:

Assuming I have a property in the code behind that returns a GUID

protected Guid CustomerId {
 get { return new Guid(); }

And assuming I have a link in my aspx page that I want to append this property to, here is how to do it

<a href="upgrade.aspx?id=<%= CustomerId .ToString() %>">Upgrade</a>

Note that this will not work if you specify a runat=server to the href for any reason, for example. to show the link or hide it according to specific logic.

If you need to show and hide the link, you can enclose it in a place holder and access that placeholder from the code behind

<asp:PlaceHolder ID="UpdgradeLinkPlaceholder" runat="server">
<a href="upgrade.aspx?id=<%= CustomerId .ToString() %>">Upgrade</a>
Ahmed Sabbour's Facebook profile
October 2016
« Jul    


RSS StackOverflow

  • How can I get the selected VALUE out of a QCombobox? January 13, 2010
    In Qt, I can get the selected text of a QComboBox by using the combobox->currentText() method. How can I get the selected value? I checked over for help but I couldn't find a method currentData() which I expected to find. I could only find combobox->currentIndex() Is there a smarter way to do it other tha […]
  • Answer by sabbour for Restrict access to a specific controller by IP address in ASP.NET MVC Beta January 5, 2011
    I know this is an old question, but I needed to have this functionality today so I implemented it and thought about posting it here. Using the IPList class from here ( The filter attribute FilterIPAttribute.cs: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web […]
  • What is the best practices in db design when I want to store a value that is either selected from a dropdown list or user-entered? January 2, 2009
    I am trying to find the best way to design the database in order to allow the following scenario: The user is presented with a dropdown list of Universities (for example) The user selects his/her university from the list if it exists If the university does not exist, he should enter his own university in a text box (sort of like Other: [___________]) how sho […]
  • Answer by sabbour for Uploading images to azure blob storage with windows phone 7 April 20, 2013
    You need to obtain a shared access signature (SAS) from your blob storage to be able to upload. You can do so using your own web service that uses the storage client SDK to get the SAS and send it back to the phone, or you can use the Mobile Service for the same purpose. […]
  • How to compile Qt 4.6.3 for Windows Mobile (Windows CE) under Windows? July 26, 2010
    LNK1112: module machine type ' X86' conflicts with target machine type 'THUMB' I'm trying to build Qt for Windows CE/Windows Mobile and I'm following this guide: These are the steps I took so far: I downloaded qt-everywhere-opensource-src-4.6.3 Extracted to C:\Qt\qt-everywhere-ope […]

Recently bookmarked