403 reputation
310
bio website sourceforge.net/projects/…
location Northeast
age
visits member for 4 years, 4 months
seen 22 hours 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)


Apr
23
comment How to tell rsync to skip files on a damaged hard drive block, instead of being stuck trying to read it
I think @jmreicha has the right idea, but in the future, if you have rsync technical questions, friendly gurus are available on the rsync list: lists.samba.org/mailman/listinfo/rsync
Apr
17
comment kdialog --passivepopup notification only shows up after second message
Yes, it sounds like it should work. My only point is that with yad, you have an active developer and community to talk to if it doesn't perform as desired.
Apr
15
comment How do I remove the header/footer of some pages?
If you use LibreOffice writer to edit this document, you can apply different page styles to different pages. One page style can have headers and footers and another can omit them. You can then save your document in any one of a number of Word formats. This is probably the easiest and most flexible method for handling issues like this.
Apr
15
comment kdialog --passivepopup notification only shows up after second message
If you're not widely distributing this, try coding it with yad instead of kdialog. yad has many great features including support for notify. It is being actively developed and supported. code.google.com/p/yad
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)