My (mostly technical) blog

Archive for the ‘Uncategorized’ Category

Blog moved to http://sabbour.me. See you there!

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

Tags:

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=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
---------------------------
OK
---------------------------

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 (TestLBSWS.pro) 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

Today, I was trying to password protect a directory on a website that operated the cPanel software on Bluehost and I went ahead and used the “Generate Password” function which generated this nice looking password

w7WY/a3HIUx>

Now when I was trying to login with this password, whatever I tried to do it gave me a 401 Authorization required. It just didn’t accept my password. I contacted the support of Bluehost but they weren’t able to help!

After some searching, I found this forum post http://forums.cpanel.net/showthread.php?t=112117 which makes me wonder why hasn’t cPanel fixed that bug so far?

If your password or the generated password contains greater than (<) or less than (>) characters (or maybe other ones that I haven’t discovered yet), they will be filtered out by cPanel before the password is saved, effectivley changing the password you set.

As a work around if you really need to use those characters (I liked the generated password :P) you can set it through the shell

htpasswd -n username
New password: w7WY/a3HIUx>
Re-type new password: w7WY/a3HIUx> 

username:hash

Then copy the last line (username:hash) into your .htpasswd file which you can find by editing the .htaccess file in the directory that you were trying to protect. (Does this make sense?)

Tags:

This was my bachelor thesis that I have done as part of my studies for a B.Sc. degree in Computer Science and Engineering from the German University in Cairo.

Download presentation:
Indoor Localization Using Wireless LAN/WiFi Infrastructure

Download thesis:
Indoor Localization using Wireless LAN/WiFi Infrastructure

Abstract:
The rapid advances in wireless technology as well as in the manufacturing of portable devices caused a growing interest in location aware services. A location sensing
system responsible for locating a mobile user, is a crucial factor for the success of such services. With the prevalence of wireless hotspots and wireless area networks, the use of a wireless network infrastructure as basis for an indoor positioning system becomes a viable option. In this work, we propose an indoor guide system that provides information about points of interest and objects within the vicinity of the user. Our system can be deployed on a university campus or inside a museum equipped with a wireless network.

The system uses the fingerprinting technique to associate position dependent information such as the strength of the received signal with a location. A range based matching algorithm for matching the physical signal strength with the fingerprints in the database is used and its performance is compared to an Euclidean distance based matching algorithm. The properties of the wireless signals and their distribution under several controlled experiments are analyzed.

I finally have my own blog!

I have been intending to create one for a long time. I still don’t quite know what will I post here, but I will find something 🙂


Ahmed Sabbour's Facebook profile
August 2017
S M T W T F S
« Jul    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Tweets

RSS StackOverflow

Recently bookmarked