Skip to content

Find new, modified and unversioned Subversion files on Windows

Nobody likes to break the build. When I do it, it is often because I forgot to add a file to the repository. The build server will not get it and the build will break.

This Windows batch file will parse Subversion’s svn up output and show you what files were modified, but also what files should be added.

It looks for C++, C, H, PHP, Python, Java and then some. You can easily add your own to the list.

To use simply call localfiles.bat from any versionned directory. Anything you add to the command line will be passed along to svn up. Try these variations :

  • localfiles.bat -u to see potential update conflicts.
  • localfiles.bat c:\the\path\to\my\project\sources works, you can run the command from anywhere
  • localfiles.bat --ignore-externals or any other Subversion command you can think of

In the sample output (below) you will see

  • New Source Files are source that were added (localy) but never comitted.
  • Modified Source Files are source that are under source control and were modified locally.
  • Unversioned Source Files are source that probably should be under source control.
  • Each file is listed, with (no source file) if it looks ok.
$ localfiles.bat C:\Users\Guillaume\src\Projects\aucun.selfserve

Gathering data...

======================================
 New sourcefiles
======================================
(none found)

======================================
 Modified sourcefiles
======================================
M       C:\Users\Guillaume\src\Projects\aucun.selfserve\GINA\SecurityHelper.cpp
M       C:\Users\Guillaume\src\Projects\aucun.selfserve\GINA\loggedout_dlg.cpp
M       C:\Users\Guillaume\src\Projects\aucun.selfserve\common\Trace.c
M       C:\Users\Guillaume\src\Projects\aucun.selfserve\GINA\GinaHook.c

======================================
 Unversioned files
======================================
?       C:\Users\Guillaume\src\Projects\aucun.selfserve\GINA\StaticPrompt.cpp
?       C:\Users\Guillaume\src\Projects\aucun.selfserve\shellie\shellie_p.c
?       C:\Users\Guillaume\src\Projects\aucun.selfserve\shellie\dlldata.c
?       C:\Users\Guillaume\src\Projects\aucun.selfserve\shellie\shellie_i.c
?       C:\Users\Guillaume\src\Projects\aucun.selfserve\shellie\shellie.h

Here is the file. I gave it a txt extension, in case you are behing a paranoïac corporate proxy.

 

Bug dans le changement de mot de passe SMTP de Videotron

Le site de support à la clientèle de Vidétron offre la possibilité de changer le mot de passe STMP ou POP associé à votre compte. Ce mot de passe n’est pas le même que celui utilisé pour ouvrir une session dans l’espace client. Votre code d’utilisateur débute par VL (en minuscule, pour Videotron lté) vlxxxxxx et vous avez un mot de passe associé pour la réception de courriel SMTP.

J’ai eu à changer ce mot de passe et j’ai bloqué longtemps sur le problème suivant. Et non, je n’ai pas essayé de contacter le support technique à ce sujet, des plans pour qu’ils me demandent de formatter mon PC.

En fait, c’est tout simple. Lorsque vous entrez votre mot de passe dans ce formulaire les majuscules sont converties en minuscules, tout simplement.:

ntd3eFUc

Je me suis douté de quelque chose quand les mots de passe générés par Password Safe ne fonctionnais pas, mais les blasphèmes et insultes marchait tout le temps… Pas de majuscules !

Alors allez vous choisir un nouveau mot de passe SMTP, tout en minuscules. Nous savons tous qu’il n’a pas changé depuis 5 ans au moins !

Activate XP Mode with the latest Virtual Box on Windows 7

Windows XP mode is like a virtual image that allows you to run Windows XP (applications) on Windows 7. It comes with an activation key, in the file key.txt in XP Mode installation folder (C:\Program Files\Windows XP Mode\KEY.txt). It will activate your Windows XP virtual image in Virtual PC or in VMWare player, but it will not work with Virtual Box.

The activation feature itself is not totally broken, it is just that the key supplied is not recognized as a valid one. I don’t know what makes up a valid activation key, but there an easy workaround that might work for you.

Use the activation key of an old computer.

That’s it. No need for any Virtual Box plug-ins and what not. Any activation key that is on any computer that still have their Windows XP sticker, but don’t need it anymore. Maybe you installed Linux on that old desktop that was getting a little slow ? I used the license that came with had a Dell D430 on which I installed my Partner license for demonstration purposes.

From my experience, it looks like Windows XP is less fussy about Windows SKU numbers than Windows 7 is. YMMV.