Amazon.ca Widgets

Je suis sur Google Street View!

Cet été lors d'un de mes retour à la maison dans le trafic, immobilisé à l'approche du pont Laporte, j'ai vu la voiture Google passer avec le bras sur le toit, la machine servant à prendre en photo les villes, pour l'application Google Street View.

Puisque leur travail est maintenant terminé dans le secteur de Québec, ils ont rendu disponible le fruit de leur travail.
Je me suis donc rendu au hasard à l'endroit où j'avais croisé la voiture Google… Surprise, elle était en action !
Je suis présent sur 5 photos, je suis tout content !  🙂  Le mec à moto, c'est moi!

Official end of Internet Explorer 6 support

There will be a big party on July 13 2010: That day will be very important for web developers.

On that date, Microsoft will officially end the Internet Explorer 6 support, meaning that no more security updates will be released for this web browser.
Will we be able to remove support for this browser from our application at this date?  
I hope that all retarted organisations will finally upgrade their browser to something else!
this month (september 2009), 49% of our visitors were using Internet Explorer.  And 31% of them are using IE6, that means that around 15% of our visitors are still using the 10 years old IE6.

The Great Windows 7 Mistake

I recently installed Windows 7 64 bits.  I was using Windows Vista 32 bits, so it was a great upgrade.  I can't say if the OS is really faster than Vista during my work process, but I am sure that the boot time is really faster.  I also really like the new taskbar, very useful and easy to use.

But, there is one thing that is really missing from Windows 7, that was included in Vista, and was a really great idea in vista.  This is the Sidebar.  I always work with 2 1600X1050 screens, and on the right side of my second screen, I started using the sidebar.  And after some months, I can say that I can't live without it.  Where I work, we planned to create some gadgets for this bar to integrate our tools with it.
Surprise, in Windows 7, Microsoft decided to change the gadgets behavior.  The Windows Gadgets can now go out of the bar, on the desktop.  But, the bar disappear !  We can't put the gadgets on the bar, there is no longer any sidebar!  What ?  If I put a gadget on the desktop, I will never see it.  If I put it "always on top", it will go over my application.  The sidebar was using a reserved place on the right of the screen, and no windows was going over or under it.  That was great.
You know what?  Because of this, I decided to look at some alternatives, and I realised that Google Desktop application provide a sidebar.  They have similar gadgets.  And, guess what, you can choose (listen to this Microsoft) to the place where you want your gadget, on the bar OR on the desktop.  You have the choice.  Why MS decided that the gadgets now go only on the desktop, and make the sidebar disappear?  That was a great mistake.  
Now our company is planning to create a Google Sidebar Gadget, and we are not sure if we will work on the MS gadget.  I can't believe that MS did that.  They open the door to Google for their sidebar. I plan that Google will really increase their sidebar during the following weeks. 
Suggestion to Google: Create a "stand alone" version of the gadget sidebar, without the indexer (google desktop engine).  I only want to use the sidebar, not the desktop search engine.  I disabled everything related to the indexing in the desktop options, keeping only the sidebar functionalities.

Why not use bing

Bing can be great.  It could be a new tool that will do a real concurrency for google, and concurrency is always good to make products evolve.  But, bing is hiding data.

I just found that, on the home bing.com page, if I type, I get suggestions, normal.  If I start typing "jeff fillion", (a local radio host from quebec), I see it in the suggestions.  If I type "Marissa Mayer", one of vice president of Google, I do not see its name as a suggestion.  But it is certainly one of the top searched name of the internet.  Is Bing hiding informations that come from google?

Windows Update

This morning, I got a new notification from Safari, that wants to install the latest version.  I clicked "install".  10 minutes later, I got a notification from FireFox who wants to do the same.  Yesterday, I got a Adobe Flash update notification.  And 2 days before, a Java update too.  Why do those software ask me my permission to update?  Why would I want to NOT update?  Where is the checkbox to tell those software to update my machine without notifying me?

The same thing is true for the Microsoft Update.  If a Windows Update is available that do NOT need the system to restart, please, just install it and do not notify me that you will install an update, and after, that the update had been installed.  I trust those companies, Sun, Adobe, Apple, Microsoft, and I am sure that they know more than me if the update is important for my machine.
My message to all the software developers in the world that produce updates of their application every month: ALWAYS let us activate an option that will do automatic update without any notification!

Climatiser sa maison en chauffant sa piscine

Cet été nous avons activé l'option "luxe" chez nous.  Pour la piscine, une thermopompe, pour la maison, un climatiseur, afin de se baigner entre 80F et 85F, et d'être à 23C sec à l'intérieur.  Du plaisir et du confort réuni.  Cependant je me demande si j'aurais pu tout faire avec seulement la thermopompe de piscine.  En effet, la température de l'air soufflée par la thermopompe est environ 10 degrés sous la température ambiante, et cet air est sec.  

C'est exactement le type d'air que je veux envoyer dans ma maison pour le confort en été.  Je n'ai rien trouvé pour le moment, mais je me demande bien s'il existe 1 système qui pourrait récupérer cet air froid et l'envoyer directement dans ma maison, au moins en partie, afin que je puisse en profiter, ainsi avoir 2 dans 1 avec un seul appareil.  

Il me semble que l'idée n'est pas si bête, je suis même surpris qu'aucun produit ne soit offert sur le marché pour combler ce besoin.  Comme c'est là, je refroidi l'air d'un côté avec ma piscine, et je la réchauffe de l'autre avec le climatiseur.  Bravo !

Locate Canadian and US AM, FM, TV, XM and Sirius antennas

I have created a very simple web application to help locate physical antennas in your area.

It is based on a public database provided by the Canadian government.  I only extracted the data and created some very simple lists, with links to google maps to see where the antennas are located.
The database contains information of all Canadian, and some Americans and Mexicans antennas, for AM, FM, Television and also Sirius and XM terrestrial repeaters.
The utility is located here: http://www.fredericmalenfant.com/antenna 
You will also get information on the power of the antenna and many other information.
I hope it may be useful to someone!
You can send me your comments on my contact  page.

Belle inspiration les québécois…

Tant qu’à faire une copie, ils auraient pu innnover un peu? Changer la caméra d’angle, ou encore mettre un gars au lieu d’une fille au début, qui ne marche pas de la même manière?

En tout cas… il y a 2 ans, les employés de la compagnie Connected Ventures ont parti 1 nouvelle mode avec ce vidéo., sur le son de la pièce Flagpole Sitta.

Aujourd’hui, notre bon gouvernement nous sort 1 publicité sur la consommation de légumes, sans aucune gêne de faire 1 copie de l’original.

Original: http://www.vimeo.com/173714
Copie: http://fr.youtube.com/watch?v=ovplvvICd98

ASP.NET UrlRewriting with MasterPages and « ~ »

Hello .NET developers.

For the last days I had a lot of trouble doing my own URL Redirection with ASP.NET (3.5), MasterPages and "~" server side redirection for <img src>, <a href>, <link src=css> and other controls.

After a lot of work and searching, I finally found the solution.

My files:
on the root, I have all my aspx.
On the root/Masterpage folder, I have my .master files
And on the root/Usercontrols folder, I have all my ascx files.
my images are on the root/img folder.

/default.aspx
/masterpages/headerfooter.master
/usercontrols/banner.ascx
/img/picture.jpg

First of all, before talking about redirection, let's talk about what .NET do with your "~" or ".." shortcut.

If these html tags are directly in a .master file (example <img src=../img/image.jpg>, then the ".." or "~" characters will be automatically managed by .NET even if the <img> control is not runat=server.  Every html control directly on the .master file will be managed like runat=server objects, to be sure that all the references to other files will work fine, because your aspx files that use these master pages can be anywhere on your web site.

If these html tags are in .ascx files, in user controls, you must add the runat="server", id="something" to every tag you want a clean redirection (<img>, <a> or else).  By doing it, the usercontrol will adapt all its containing html "runat=server" tags to the position of the containing ASPX file.

But, we did not do any url rewriting yet.

If I do url rewriting, let's say, I want to say "http://mysite.com/products/" to redirect to "http://mysite.com/productlist.aspx", the problems begins.  When the "~" or ".." addresses are managed, they are transformed according to the root folder, because my productlist.aspx file is on the root.  For example, if my masterpage have a <img src="../img/picture.jpg"> tag, it will be transformed in "<img src="img/picture.jpg">.  The problem is that the URL shown in the browser is /products", so the browser is looking to find the file at this address: http://mysite.com/products/img/picture.jpg.  It will never find it.

1 solution I tried is to use the <base> tag in the header, but I got some trouble with, and I have to write a <% %> tag in my .master file, and I hate it.

The best solution I found that seems to work really fine is this one:  When you call the "Context.RewritePath" function, with your new url, use this syntax: Context.RewritePath(innerpath, False)

The False tag seems to make all page be calculated from the client url, not from the server url, and that solve every problems !!! It works fine with my page in the designer, in the debug mode with the integrated mini-iis, and with the real IIS too.  That's fantastic!  And, I'm happy to see that I found a solution that even Microsoft themself did not found!  They recently release a urlrewriting utility and they say that they have a known bug, when resolving the "~" addresses !  (look at their "known issue" number 2!)

I tried the solution they told to use, with the Page_Preinit and the use of HTTP_X_ORIGINAL_URL server variable, but it was not working for me, I always have this variable set to nothing.

I hope it may help you.  Have a good coding time!

Keep your old copy of .NET Reflector

To all .NET Developers around the world.  You may be users of the wonderful Lutz Roeder's .NET Reflector, which really helps to find what's not working in our own dll, and somethimes helps us find why the original .NET Framework classes are not acting the way we want.  This tool is really useful for reverse engineering of .NET DLL or EXE.

But recently, Red-Gate put the hand on this product.  They are offering it for free again, but if they do like they did with the SQL Prompt tool, they will start to sell it $300 in a few months.  So, my suggestion to you is to download it right now, keep it in a safe place, like I did for SQL Prompt.  Because I had a copy of it, I can continue use it for free. 

Don't search for the free copy of SQL Prompt on the internet, Red-Gate cleaned all the web to remove the old free versions of SQL Prompt, which is also a very wonderful tool (it enables intellisense in SQL Server tools, like Query Analyser or Management Studio, by displaying table names when you type the "from" keyword, or the fiels list when you type "SELECT tablename.")