393 reputation
210
bio website sourceforge.net/projects/…
location Northeast
age
visits member for 4 years, 2 months
seen 15 mins ago

Long time Linux user (currently kubuntu). Use Windows 98, and 7 when I have to. Programmed in many languages, currently using bash and awk for most things. Learning Python.

Have one project on sourceforge:

Duplex printing emulator for non-duplex printers (Linux)


Mar
12
comment How to count pages in multiple PDF files?
+1 pdfinfo is exactly what I was looking for. I need it for page counts in my duplex printing emulation package.
Feb
25
comment How Can I determine the page count from a postscript file (generated by Opera)?
Oops. I'm working on both at the same time and I get them confused. Those are PDF versions and should be in a separate question. Thanks for noticing.
Feb
20
comment How to “unextract” a zip file?
@mafp I'm sure it does. That's why I also mentioned 2) above - so you can see what an archive will do before it's too late and choose to accept that if it will do what you desire. Still, being able to remove it later is a big plus. Of course, you could simply restore from a backup no matter what an install or other action has done.
Feb
19
comment How Can I determine the page count from a postscript file (generated by Opera)?
Well, now that I got that to work, they came out with PostScript 1.4, 1.5 and 1.6. I came up with a heuristic that works sometimes with 1.4 and 1.5. I didn't see anything in the 1.6 file I examined that looked like it would work. Will your brute force method above still work with these newer versions?
Feb
19
comment Wakeup PC upon mouse click but not mouse move
+1 because it would be a cool feature to have. It's really easy to bump a mouse or touchpad accidentally. A click is a bit less likely to be accidental. I suppose you could write your own screensaver and have it respond (or not respond) to whatever events you desire, but unless you're a really good coder, it would have to be started manually by you - not just from the system input being idle or another power management event.
Feb
19
comment How to “unextract” a zip file?
For future reference, always do one of the following with an unfamiliar archive of any format: 1) Extract it to an empty directory or 2) List it first (unzip -l) before extracting it so you can see if it's nasty like this. Archives made without a top level directory with everything under that are bad form. When done with tar, they are actually called tar bombs, so I guess this could be called a zip bomb.
Feb
19
comment Keyboard Type “th” twice when typing “the”
Pretty weird. It's not auto-complete if it follows keypresses instead of characters. Sounds like it's drivers or hardware. Are there any custom keyboard drivers involved - there must be something for the dvorak layout. Any you can update or uninstall? A mouse should work on any port. Usually ports in different physical locations have their own usb hub. Maybe a hub is bad. I don't use Windows much, so I don't know how to poke any deeper. If you know Linux at all, you might try booting from a live CD. If the problem goes away, then it's probably not hardware.
Feb
11
comment Can't delete folder and I am admin. “You need permission to perform this action. You require permission from…”
That's a bit much for a Windows user (even though I suggested the same thing before I read your answer ;) ), but an rm -rf of the subdirectory tree is sure a lot faster than the other methods! The issue is that something could break when Windows starts up again and the offending process or whatever can't find the folder/files.
Feb
11
comment Can't delete folder and I am admin. “You need permission to perform this action. You require permission from…”
Just a thought: What are the attributes of the folder and everything under it? If something is set to read only (or maybe system), then you would probably have to remove those attributes before you could delete it even if you own it and are an admin. I haven't worked at that level in Windows for a long time, but that's how it used to work.
Feb
11
comment Can't delete folder and I am admin. “You need permission to perform this action. You require permission from…”
No idea why, but if safe mode deletion doesn't work, you could boot your system from a live CD of some sort (like Linux) and go directly into the file system and delete the file. This would undoubtedly work, but if some process is actually using the file, then it might break that process (when you reboot into Windows) with unknown consequences for the rest of your system, so make a backup of the file so you can put it back if things start to go south.
Feb
11
comment solaris 8 init script asks for user password
Don't know Solaris at all, but init must already be running as root, so as @vonbrand says, you need to find out if this script is running as another user. If it is, maybe (don't know how Solaris works) you could use sudo instead of su and add that user (and that specific action or actions) to /etc/sudoers (using visudo). Then it would just go ahead and run without asking for a password. You'd need to be careful what you permit in sudoers so you don't create a security hole. That's why you could tell it to allow that user to use only the necessary commands.
Jan
29
comment How to make sed omit not matching lines?
It doesn't matter for what you really wanted to know, but your pattern should start with ^ so it's anchored to the beginning of the line. As coded, it would match an a or c anywhere in the line as long as it's not the last character.
Jan
21
comment What character encodings were used before 1963?
It's probably mentioned in some of the links in the answers, but one of the first programming codes (not really a "character" code) was invented by Basile Bouchon (1725) and improved by Jacquard for programming looms. en.wikipedia.org/wiki/Basile_Bouchon en.wikipedia.org/wiki/Jacquard_weaving
Jan
15
revised Filter interactive output (top)
Added details
Jan
15
comment Go to directory with unknown name
@DanD. +1 for cool option I didn't know about. I usually just use a gui file manager when something like this has to be dealt with, but it might come in handy if I have to work from a console or within a script.
Jan
15
answered Filter interactive output (top)
Jan
15
comment How to delete all files in a directory except some?
The answers below are a lot better, but you could just make the files to save read-only, delete all, and then change them back to their original permissions (as long as you don't use rm -f). You'd have to know what permissions to restore and you'd have to know that nothing needed write access to them during the process. This is why the other answers are better.
Jan
8
comment How vibration sensitive are hard disk drives?
I have a Toshiba notebook with a vibration sensor on the hard drive. Fortunately, it only works in Windows (and I use Linux almost exclusively) because it goes off when I look at the notebook the wrong way. I don't shock my notebook on purpose, but normal movements - like putting it on my lap never seem to cause a problem, but they do set the vibration sensor off in Windows. So, yes they are sensitive, but they seem to deal with minor vibrations one way or the other. But, adaptors are really cheap. Why not use one?
Jan
8
comment My USB says it has 15.7GB of space used but inside all the folders are empty
Check out card-recovery.biz/us/service.php powerdatarecovery.com z-a-recovery.com Different programs approach it differently, so may have different results.
Jan
1
revised Tackling bandwidth optimization (possibly) through R-Sync
Added details