Saturday, July 10, 2010

Creating a simple Open Search Provider/Plug-in

Yesterday, I needed to check/search my delicious bookmarks more than once. I then realized that delicious have its a search plug-in as a part of a tool bar (along with other bookmarking tools, few search tools, though), which -I guess- loads all your bookmarks to browser & make them available for search.
As I’m not so much into too much plug-ins, specially if they load lots of data (in contradiction to Pointy-haired Boss) , not to mention that I won’t need bookmarks when I’m offline, anyway, I decided I should create my search provider.

Creating the Provider:

Here’s an example:



Away from the fact that I badly need a WYSIWYG code hi-lighter, let’s check that XML. First the ShortName which appears in your search box, something like this:
Click to Enlarge Description and Tags are obvious, & I think optional too.
Image is the small icon that appear beside when you select your provider (check the pic above again). You can either supply it as a URL to an image file (usually .ico or .png) or you can replace it with the base 64 string of the image (though I wasted quite sometime to make that work), like:



Finally, URL note that I’m using {SearchTerms} to pass the string typed in the search box. You can send other parameters to your search page. You might want add another URL for suggestions, here I’m only providing the search URL.

Using the Provider:

To add the provider to your browser (as far as I’m concerned it works fine for Firefox & IE) you have one of two options:
Adding it as a suggested search provider: This can be done by adding a single line in your page <Head> tag, note that the attribute title in the below tag refers to the name appearing in the list as [Add “title”], check the image below the tag.



Click to Enlarge
Using JavaScript to add the provider: The other available option is to add the provider using scripting, here’s an eg of how you can do that:



Clicking a link like the one above will pop up a windows asking if you want to add the search provider.
References: http://www.opensearch.org

Friday, July 09, 2010

Changing regional settings for System accounts (including ASPNET) in Windows 7

One of the small issues I faced while switching my development machine to windows 7 was a bug/exception in an application I was working on in parsing date format.

After switching my regional settings to the “expected” format, I still got the same exception. After playing a little with the regional settings, I realized that I was switching only my account date format, not the whole machine's date format. To push those settings to other system accounts (like ASPNET, etc), I did the following steps:

After setting your your account regional settings, switch to “Administrative” tab:

Click to Enlarge

From “Welcome screen and new user accounts”, click “Copy setting”:

Click to EnlargeMake sure “Welcome screen and system accounts”  check box is checked, press ok, and Voila!

Sunday, July 04, 2010

FCIH Initiative


Don't wait the chance, Create it
Thinking about your future? Worried about your career?
Thinking that you're far away from real market life and limited by your academic life?
All are talking about financial crises? Need a solution?
Want to be professional but don't know where to start?
Interested to know how do people work and deliver their projects?
Need to gain experience in market? Need to know about Egyptian IT market?
So FCIH Initiative is now here for you
Our goal is you, preparing for you, planning for you.
This summer, we'll be together to make your dreams come true.
To bridge your academic study and your career
To make you start the right planning for your career from now
Join us and enjoy:
Trainings – Research – business experience – technical knowledge – English Club - and more….

FCIH initiative program will start on 17-7, so don't miss the chance.
We're planning to provide:
·        Technical sessions
·        Training program in 3 tracks (java, .net, and PHP)
·        Sessions talking about market, and adding to your personal skills.
·        Program for those who are interested in research.
·        Soft skills program.
·        English club.
Contacts:
FaceBook Event: http://www.facebook.com/event.php?eid=128813070490801&ref=mf

Saturday, June 19, 2010

VS 2008 to TFS 2010 (on windows 7, or may be x64 in general)

Probably you already know that Visual studio (Team explorer) 2008 can connect to TFS 2010 if you installed the right Service Pack (there’s one for VS 2005 too) and types the right server name.

 

Yet, a week (or so) ago I switched to windows 7 (64 bit) which lead to a couple of issues with my development environment (feel free to ask me or share your experience with me on that topic, I’m still struggling at that point). One of these issues was that the Visual Studio 2008 SP 1 Forward Compatibility Update for TFS 2010 wouldn’t work for me.

 

After a long search, & several installs, uninstalls, reinstalls, etc.. I came to the following solution that worked for me & (later) for a couple of my team mates at work. Here’s what you might want to do to fix that:

Try to use the same order above, and make sure you reinstall the above stuff even if you already have them.

Monday, May 17, 2010

Something the Lord Made

Just watched a movie with that name today. The movie was really inspiring, probably the life of Dr Vivien T. Thomas was too. The movie based on his life (probably though his autobiography, published after his death) & his complex relationship with his fellow/teacher Alfred Blalock.

Dr. Thomas life is a great example of how can one live in such miserable conditions & yet achieve great things in life. Though he didn't get enough appreciation until later in his life, Thomas (who had no more than high-school education, even before the civil rights movement; ie he was treated as a "colored person") was able to along with Alfred a cure for Blue baby syndrome through a major heart procedure at a time when the such "insane" procedures weren't the norm.

This is a MUST-watch movie..

Disclaimer

All the opinions expressed on this blog are my own and don't necessarily represent my employer's positions, strategies or opinions.