Maximum number of characters in a Windows path is 260 characters

A Java project compilation went berserk and I ended up with a directory structure of more than 260 characters. I stopped the mad process but it already created more than 50 successive duo of path “build/classes” … Now I had to delete this structure. And, to my surprise, it was impossible. When you try to just press the “Delete” key with the root directory selected in the File Explorer, you get a Path Too Long exception. The reason is that the maximum length of a path according to the Windows API (MAX_PATH variable) is defined as 260 characters. I tried some other methods but all of them failed: ...

February 28, 2012 · 2 min · jepoirrier

ForbidSleepingMode updated

Following some comments on the dependency to version 4 of the .Net framework, I rewrote ForbidSleepingMode in C++. You can open and compile the project with Qt (open source). The source code is of course updated. The mandatory screenshot as well :-) As you can see, I took the opportunity to add a small field where you can specify your own interval at which the program will “tickle” your computer.

August 5, 2011 · 1 min · jepoirrier

forbidSleepingMode

I just put my first small tool on GitHub: forbidSleepingMode. It will forbid your (Windows) computer to enter into sleep mode, acting as if there was activity all the time. I’m sure you can think of 1001 productive uses for such tool. Technically, it just sends a “tickle” to the computer every 10 minutes forcing the display to remain on (hence: don’t set your screensaver to come before 10 minutes). Build it with Visual Studio 10 (I know, I know …). ...

July 19, 2011 · 1 min · jepoirrier

What is my proxy on Windows XP?

" In computer networks, a proxy server is a server (a computer system or an application) that acts as an intermediary for requests from clients seeking resources from other servers." From Wikipedia. This can be useful for a company to force its employees to use a proxy (to filter where they surf, to cache the web content for speed issues, to keep machines on the network anonymous, etc.). This post will look at 3 ways to get the proxy definition for a Windows XP machine in order to use that information in another program. It may work in other Windows-type operating systems. ...

March 29, 2011 · 2 min · jepoirrier

FluTE makefile for wxDev-C++ (Windows)

FluTE is an influenza epidemic simulation model written by Dennis L. Chao at CSQUID. It works out-of-the box on GNU/Linux (just type make and run it). I wanted to see how it works. But since I’m temporarily stuck with a Windows laptop, I downloaded a free C++ compiler for Windows ( wxDev-C++), imported all the files in a project and compiled. For those who want to try, here is the project file and the specific makefile in a zip file (2 kb). Just decompress the FluTE archive (I used version 1.15), copy the two files from the zip file above and launch the IDE. In the project options (Alt+P), specify the custom makefile (in the “Makefile” tab) as the one from the zip file above. Compile (Ctrl+F9). Done. ...

June 25, 2010 · 1 min · jepoirrier

Some useful software for programmers stuck on MS-Windows

Sometimes, even if you mainly develop on Unix/Linux boxes, you are stuck with MS-Windows on your desktop. Moreover, although your are a developer (i.e. someone who is supposed to know how to run a computer), you have no administrator rights so you can’t install the right tools that can improve your productivity and enhance your code stability/security. This is for the sad part. Fortunately, Free Software are there and most of them can even be run without being installed on your machine, just copy the software and use it! Here is a list of some of the software I’m using. Feel free to promote your favourite application in the comments. ...

March 23, 2009 · 2 min · jepoirrier

Firefox 3.0 + Flash on a protected Windows PC

Very often, your company doesn’t allow you to install a new software on your company computer. For this purpose, Portable Apps is a very interesting website: it contains a lot of free software ready to be used, without any installation process. Moreover, it releases latest version of software very quickly. For example, 1 or 2 days after the launch of Mozilla Firefox 3.0, it was already in Portable Apps. Most Firefox plugins (" add-ons") can be installed in the Portable apps version of Firefox, but not all of them. The Adobe Flash plugin is one of the few ones that you can’t install without administrator rights … ...

June 22, 2008 · 1 min · jepoirrier

Performance freeze in Windows Task Manager

I don’t know if it’s a bug or a feature (*) but the Windows Task Manager doesn’t seem to refresh its graphs when we are moving its window. It’s barely noticeable when you usually move it (**) but you can spot this behaviour when one of your other windows is freezing. ( larger screenshot) (*) I know this post is nearly useless but I’m tired of waiting for this freezing software … ...

March 20, 2008 · 1 min · jepoirrier