Thursday, April 30, 2009

Useful hack for running scheduled tasks at a higher frequency than daily in windows xp

http://www.randomtree.org/eric/techblog/archives/2004/09/the_windows_task_scheduler_is_not_a_secondclass_citizen.html

Labels: , ,

Wednesday, April 29, 2009

uni2ascii

If you are ever having issues with g++ compiling code cut and pasted from a website, specifically stuff like "stray \200 on line" or other similar errors, then uni2ascii is for you.

Just take the problem file, and do the following

cat problem.cpp | uni2ascii -B > problem_clean.cpp

The uni2ascii program will do it's very best to convert unicode to ascii where possible.

The new file should compile okay. Remember the -B, if you forget it, you will have lots of random unicode escapes in your output.

Labels: , ,