428 reputation
311
bio website sourceforge.net/projects/…
location Northeast
age
visits member for 4 years, 6 months
seen 2 days 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)


Jul
1
comment Can unexpected power loss harm a Linux install?
I don't know exactly how to do it, but you may want to consider making your key applications transaction based. That way, you can have your current file and a backup. You apply the transactions to your current file and if that fails, you can restore the current file from the backup and reapply the transactions. If you switch between current and backup using symlinks or swapping file names, then that can happen very quickly with much less chance of error than with copying. After a successful update, your current file becomes your backup and the backup becomes the current.
Jun
25
answered Different Color for command and output
Apr
28
comment How Can I determine the page count from a postscript file (generated by Opera)?
Here's one document: dl.dropboxusercontent.com/u/54584985/Opera01.ps . It does 'bigbird@ramdass:~/pgm/duplex_proj/devel/test_data$ gs -dNODISPLAY -dBATCH -dNOPAUSE -o /dev/null Opera01.ps|grep -P '^Page'|wc -l 0 ' Here's without the grep 'bigbird@ramdass:~/pgm/duplex_proj/devel/test_data$ gs -dNODISPLAY -dBATCH -dNOPAUSE -o /dev/null Opera01.ps GPL Ghostscript 9.05 (2012-02-08) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. bigbird@ramdass:~/pgm/duplex_proj/devel/test_data$ ' Sorry about format.
Apr
25
comment How Can I determine the page count from a postscript file (generated by Opera)?
Tried it on two test files. One gave 0 for a 3 page document and the other generated a ghostscript error message.
Apr
23
comment Prevent “document expired” message and just show the expired page?
I encounter this a lot when all I'm trying to do is to backup through browsing history to get to somewhere before the problem occurred. Having something to get past this roadblock would be very useful. I know I can use the History button on the main toolbar, but it's often hard to figure out which entry to choose.
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.