Amazon.ca Widgets

How to decode a base64 string in VB.NET

Sometimes, we receive an e-mail that we can’t really open directly, but we have the base64 source.

I may receive an attached EML file, that is, an outlook express email attached with another e-mail.  I have all the original source of this file, but I do not have Outlook Express installed.  I created a really simple decoder and it work fine.  You just have to look at the boundary of your email.  Find the beginning of attachment by searching for « filename= » and you’ll have the filename of the attached file.  Then, copy the following code, all the « binary string » code, and only this, without the leading MIME informations, to a text file.  In my sample, I called it « c:base64.txt ».  Then, I saw that the filename is a pdf.  I choose « c:base64.pdf » as my output.  This is the code you can use to decode a base64 attachment.

   Dim bytes() As Byte
   Dim reader As New System.IO.StreamReader("c:base64.txt")
   Dim str As String = reader.ReadToEnd
   reader.Close()
   reader.Dispose()
   bytes = System.Convert.FromBase64String(str)
   Dim writer As New System.IO.BinaryWriter(IO.File.Open("c:base64.pdf", IO.FileMode.Create))
   writer.Write(bytes)
   writer.Close()
That’s all!

Horaire télé automne 2010

Depuis quelques saisons, j'aime bien faire la tournée des sites web des postes de télé québécois pour voir quelles séries j'aimerais bien suivre.  Et, chaque fois, je suis déçu.

Voici mon petit compte rendu de la soirée.  J'ai voulu aller voir ce qu'il y aura cet automne à SRC, V, TVA, TQ, ARTV, Canal Vie, Canal D, Canal Z, Historia, Series +.  
Premièrement, je tiens à dire que toutes les chaines de Astral Média ont un bon site web, qui offre AVANT que la saison ne commence, un PDF simple et complet de l'automne 2010, même si on est à la fin août.  
Canal Vie, Canal D, Canal Z, Historia, Series Plus, les horaires sont PARFAITS.  Noir et blanc, nouveaux épisodes en gras, AVANT que la saison ne débute, un gros bravo.  
Le seul "hic", j'ai dû ouvrir les sites avec Internet Explorer, dans Chrome les pdf ne voulaient pas ouvrir.  Aller ajouter des exceptions à l'anti-popup, c'est dépassé.  Mettre un "href target=_blank" c'est mieux que un "windows.open" qui est bloqué par les anti-popup.
Sur ARTV, on a uniquement l'horaire d'été, impossible de planifier l'écoute pour l'automne et programmer l'enregistreur.
À Radio-Canada, un horaire jour par jour ou au mieux par semaine, sans PDF complet qui indique toute la semaine pour cet automne.
à V, un vidéo à écouter de présentation de l'automne, que ça ne me tente pas d'écouter, je n'ai trouvé aucun PDF ou page d'horaire complet.  Que l'horaire du jour courant.
à TVA, une grille pour la semaine courante, rien qui résume la programmation d'automne.
sur Addik.TV (anciennement Mystère), on a un PDF, mais avec un beau fond noir (allo la dépense d'encre), et une couleur de fond au lieu du caractère gras pour indiquer les première diffusion, donc impossible à lire une fois imprimé en noir et blanc.
à RDI, on a uniquement une grille HTML sur une semaine comme à la SRC.  L'outil semble exactement le même.  Pas possible de savoir s'ils vont passer une grosse série aux grands reportage, comme ils ont fait cet été avec "WWII in HD".
Je n'ai rien trouvé de pratique sur Télétoon.  A propos de télétoon, on nous avais promi "mer et monde" avec teletoon retro.  Où sont Goldoral, Albator, Capitaine Flam, MASK, He-Man, Ulysse 31, Voltron, Transformers, G.I. Joe?  Je suis assez déçu de la programmation de cette chaîne.
Bonne saison télé !

Expédition au Kilimandjaro pour la fondation Gilles Kègle

Étant donné que je m'occupe un peu du site web de la fondation Gilles Kègle, je profite de mon blog pour lancer une perche aux gens qui serait intéressés à se lancer dans l'ascension du mont Kilimanjaro pour une bonne cause. 

C'est la troisière fois que la Fondation crée cette activité de financement.  Cette année nous espérons monter une équipe de 20 personnes qui feraient l'expédition.  Nous avons l'honneur cette année d'avoir parmi les participants M. Jean Soulard du Château Frontenac, qui est président d'honneur de l'expédition, et participant.  Vous aurez plus de détails sur la page officielle de l'expédition 2010.
Merci de votre appui!

How to create 1 big windows 7 themepack with more than 1 themepack

You like Windows 7 Themepack.  You tried Bings's Best, or Canada, Spain, or any other country/theme provided by Microsoft.  

But, you like more than 1 theme.  You would like to have all of your favorites themes build together into 1 big single theme.

This is how you do this.
  • Go to C:Users(username)AppDataLocalMicrosoftWindowsThemes
  • in the search box, type "type:image"
  • Select all JPG images (all in 1920X1200 resolution) (watch out to not select small PNG images)
  • Copy them somewhere
  • open the desktop properties where you choose the Windows 7 theme
  • On the bottom of the configuration page, click to modifiy your Desktop Background
  • Choose "image location", select the folder where you copied all the JPG files
  • Enjoy!

Automatic update for Microsoft Security Essentials and Windows Defender

Hello Friends of Microsoft.

I use these 2 products to protects my computer, they are free and does a good job I think.

These products are Microsoft Security Essentials, and Windows Defender.  (Now the same product, Security Essentials for windows 7, and Defender for windows 8+)
I hope they will stop all these bad software before they do some damage.
But, I don’t understand why the definition updates for these 2 products are part of the « windows update » process.
Like every other antivirus software, like AVG or Avast, they must update without warn me, automatically, and check every hour for new updates if available (or at least once a day), and update without warning me.
I want these 2 products to be always updated, but I do not want them to be part of other windows updates that I want to manually install when I want.
Thank you Microsoft to correct this in a future release of these products.

Comparaison de RDS vs CTV sur Twitter pour les olympiques

Depuis le début des olympiques, pour être au courant de tout ce que font les canadiens le plus vite possible, et pour me faire dire quand il est temps d'aller voir 1 compétition en direct, je me suis inscrit aux fils Twitter de @rdsolympiques et @ctvolympics.

Les 2 compagnies utilisent le même outil web, qui a semble-t-il été développé par MIcrosoft, et vendu à plusieurs réseaux.  NBColympics utilisent le même outil.  Donc, l'équipe informatique possède les mêmes moyens pour mettre en ligne des blogs, rss, vidéo, tout le kit.
Comparons maintenant ce qu'ils font avec leur outil.
Depuis 1 heure, voici ce que @ctvolympics ont "tweeté".
  1. Ladies Super Combined right now on CTV and online! http://ow.ly/18KaC
  2. Difficult day leaves Canada without a medal: It was a day that had everything cross-country skiing can offer – fer… http://bit.ly/aNwYSr
  3. I've seen a few requests for this. The Michael J. Fox 'It's Our Game' Hockey promo piece. Here you go. http://ow.ly/18Jkh
Voici ce que @rdsolympiques ont "tweeté" dans la même période
  1. Attention si vous mordez votre médaille!: Un champion de luge allemand s'est cassé une dent en mordant, pour une p… http://bit.ly/cjxdvG
C'est tout!
Les 2 nous donnent un fait divers sympatique.  
CTV en plus nous donne une information LIVE qui permet de nous dire ce qui se passe actuellement, ce à quoi Twitter devrait servir.  En plus, avec un lien vers leur fil video qui permet de l'écouter en direct.
Aussi, une analyse de la journée d'hier.
RDS? vous êtes où ?  Je suit les 2 depuis quelques jours et je n'a JAMAIS eu une information pertinente du fil de @rdsolympiques qui me disait de me rendre vite soit sur leur site web video ou sur ma tv voir une finale d'Un canadien que je pourrais avoir intérêt à suivre en direct.  Ils sont dans le champ.  Je me demande s'ils savent s'ils ont une zone vidéo sur leur site ou si c'est généré automatiquement!
Message pour RDS: Twitter, c'est fait pour diffuser des informations en temps réel, pas juste un lien vers un blog d'hier.  Dire ce qui se passe ACTUELLEMENT.

Problems with Internet Explorer 8 in Windows 7

Problems:
– Tools > Internet Options is disabled (even when running as administrator)
– On startup, yellow message bar appears saying Protected Mode is turned off even though it is on
– Back button doesn't always work

Solution:
1. Control Panel > Programs and Features > Turn Windows features on or off
2. Uncheck Internet Explorer 8, click OK
3. Reboot
4. Control Panel > Programs and Features > Turn Windows features on or off
5. Check Internet Explorer 8, click OK
6. Reboot

Internet Explorer will be reset and start again as when initially installed (Favorites and history are still available).

From plastic to divx

This is it.  On christmas, if I am a good kid, I'll get a PS3.  The reason I choosed the PS3 is because it seems to be one of the best media player in the industry, for the digital files and for the blu-ray player.  I am not sure if I will even play games on it!  

But, before I receive it, I started converting all of my dvd library (specially the children's one) to digital format.  They will no longer have to manipulate them and destroy the media.
I discovered that converting a movie to divx is not as as easy as I tought.
First of all, I bought the official Divx Converter with the mpeg-2 plug-in for a little $15.  Why is it so cheap? because it DOES NOT WORK.  There is 1 film out of 10 that was fine.  All others have the voice out of sync with the video.  I read on their site that their algorighm is dropping some frame of video, that's why the video becomes out of sync with the audio.
They propose a solution, from someone who created a "batch" process to convert a dvd to divx without sync issue, but there were abount 10 steps to follow to convert them, and I do not want to lose 1 day for each movie I want to convert.
I finally found THE perfect tool.  That's a tool I was already using in the free version, DVDFAB HD Decrypter.  I used this software for a while to copy all my children's dvd to my computer. I need to copy my dvd, that I own and pay, to my computer, because I edit them to extract only the main movie configured with french audio track for my childrens.  At 4 years old, they are not able to skip the ads. go to the menu, select options, choose french, start the movie.  I create them an edited copy of the dvd with DVDShrink, then put it in the reader, and it automatically starts with the french audio track.  
But now, I will use the extended features of this software.  The option I am using is the dvd-to-mobile feature.  This product worth about $100, but to convert all my dvd to dvix, it worth it.
I did some tests with a lot of the pre-configured formats offered in it, and I finally found THE perfect conversion profile.
After selecting the dvd files (vob) as input, I use this profile: dvd to mobile – Avi – generic.divx.avi.audiocopy profile.  I only open the Edit window to choose the 2 pass (high quality) conversion, I left everything else configured by default.
What I like the most about this profile is that the bitrate is automatically configured to get 0.2 bytes per pixel.  If I have more resolution, I have more bitrate.  I do not configure a "locked" 1000 mbps profile that will be better with smaller files and not enough for bigger resolution movies.  With the locked "bytes per pixel" ratio, I always get the exact same quality for every movie.
The default configuration is locked to 0.2 bytes per pixel.  I did not found where it is configured, this is not in the XML profile file, I think that this setting is "hard coded" in the binary file, but that doesnt't matter, because this is the profile I prefer.  A 2 hours movie creates a 1.25 gigabytes file, meaning that the avi file is 4 to 6 times smaller the the original VOB files, with an excellent visual quality.
Second thing I like, is to keep the original audio track.  It does not reconvert it, it keeps the original AC3 5.1 audio track from the dvd and copy it directly into the AVI file without any conversion.  
That creates a really good quality movies that I can only test on my computer for now, on the ps3 in 3 weeks!  
Something is strange, I tried the exact same profile but in the "generic" instead of "avi" section and it did not use the 0.2 b/p ratio.  I also tried the ps3 profile, which creates a 5.1 aac audio and a H264 video, and I really did not like the result.

Windirstat VS Spacemonger

I am an old time user of spacemonger, which is very useful to find what is getting so much space on a hard drive.

Yesterday, from the Tekzilla show, I got the suggestion to use Windirstat.  The screenshot seems to be very neat, so I tried it.  
Let me tell you something: the screenshot of windirstat is the ONLY thing that is better than spacemonger.
First, windirstat scan several directories at the same time.  That is bad and makes the procedure very slow because the hard drive head is going to one place to another to scan every folders and there is a big lack of performance here.  Spacemonger analyse it in 1 thread so the hard drive head is not moving, and the scan is a lot faster.
Second, the result displayed in the virual map is not usable in windirstat.  It represents EVERY file of your disk, it is very slow to render, and it's impossible to select a whole folder from this view, you can only click on a single file.  In SpaceMonger, it shows you a representation of the biggest files or directories from a zone, not every one big like 4 files in 1 pixel.  And you can zoom in by double-clicking to view more, and it's easy to select a containing folder, not its content, from the graphic view of spacemonger, which is impossible to do with WinDirStat.
So, forget windirstat, use spacemonger.  Their latest version 2.1 is offered at 24.95, but they also offer their old version 1.4 which is free, certainly less performant or beautiful, but works really fine, and can be used on Windows Vista and Windoed 7 even if it was created for Windows XP.

Please google, add a « global account search » utility

I use a lot of google services.  

Gmail, Notebook, Documents, Tasks, Calendar, Talk, and more.  In all these services, I can enter informations.  Sometimes, I want to find an information, I know that I wrote something about a subject somewhere, but I don't know where.  Is it in docs, notebook, tasks, or only in a talk conversation with a friend?

I suggest to Google to develop a global account search utility that will search all text of all my google services.  That could be very useful.