195 reputation
9
bio website
location
age
visits member for 2 years, 11 months
seen Feb 21 '13 at 13:43

May
30
comment App for text and image pop-up
Yes. That's almost what I need if I only could customize that thing. Say make the icon bigger and randomize the location of the popup. I followed some tips on creating a ${HOME}/.notify.osd but it seems that the application ignores that file and my customizations in it. Do you know how to overcome that problem?
May
30
comment App for text and image pop-up
Yep - "over the top of what else is going on with the screen". E.g. you're doing your normal stuff, working etc., and then a text/image appears on the screen.
Mar
12
comment How do I extract an ISO on Linux without root access
You saved my day.
Nov
16
comment Partition formatted with mkfs.ntfs not detected in Windows XP
No, it doesn't show up.
Nov
16
comment A red line indicating current timestamp in Thunderbird's Lightning
I tried that one earlier, its crap. I guess there is no polished plugin yet.
Nov
10
comment A red line indicating current timestamp in Thunderbird's Lightning
You refer to the current day, whereas I need an indicator(as a red line) of current time within a day. Some calendar apps have that feature.
Sep
22
comment External hard drive not detected, what can be done?
Is there any chance I can open both identical drives and just switch the magnet disks without harming the data?
May
30
comment Looking for Windows 3.11 pdf writer application
Hi. Thx for the answer. Do you know any postscript printers for windows 3.11? Ghostscript 4.03 prints only 1 page for some reason. Ghostscript 6 I can't install cause it requires "win32s v1.3" and exactly this version of win32s crashes the system. Adding postscript prnters from the control panel and getting their drivers from the Windows311.iso is Ok but it also prints only 1 page.
May
13
comment cleanup after “dd” operation
Thank you for help, now its clear. I'm more or less new to scripting.
May
12
comment cleanup after “dd” operation
My question is: what if after {fd}>"$out" and between dd there a file gets created with the same name? You'll overwrite it or am I missing something? Btw. why not doing filetest via if [ -e "$file" ]?
May
12
comment cleanup after “dd” operation
You're right. I guess mktemp is indeed better choice, since it guarantees uniqueness of the filename.
May
12
comment cleanup after “dd” operation
sorry, I meant this holds only with first solution in second one the drawback is that the file might get created by dd(say 2G) and then it will discover that such name exists, so it has to delete it. Or maybe I could just return it but with a different name...
May
12
comment cleanup after “dd” operation
The second one is the one I use. In both cases you've described there is a gap between dd and the file existance checking command. If the file gets created in that gap, then we'll overwrite it with dd. If teh excl option is specified with dd then it will not overwrite even in such case. However, on error you won't know whether the file existed and the error occured because of excl or for some other reason. I guess the exit code must be checked, but that's not portable...
May
12
comment cleanup after “dd” operation
${$} is a PID, so its unique. On finishing it is deleted.
May
12
comment cleanup after “dd” operation
in other words create the file with dd and then try to use "mv" it is atomic to rename it to real name, if error occurs then delete the temporerly named file. Put file test before dd to exclude 99% of the cases when file will not be created because it already exists. Trap must be set correctly also, but its minorr
May
12
comment cleanup after “dd” operation
All came up now is this: is safe, but in worst case will create file and then delete it instead of not creating in the first place. set +e; if [ -e "$out" ]; then exit 3; fi; dd if=/dev/zero of="$out${$}" bs=256K count=$(($size*4)) conv=excl || { rm -rf $out${$}; exit 4; } mv -n "$out${$}" "$out" || { rm -rf $out${$}; exit 5; } trap cleanup INT TERM ERR EXIT set -e
May
11
comment Allowing users to mount /dev/loop0
In the end switched to "pmount". It allows mounting anywhere under /media/ if device is listed in /etc/pmount.allow. The discussion about disk group is not relevant. If asking for such thing I probably realize the potential risk out of it and yes I know that one can change rules in udev to make loop devices created with another group etc...
May
10
comment trackpad on laptop in Slackware 13.37 not very sensitive
yeah... 1 mln. $ question
May
7
comment Allowing users to mount /dev/loop0
SOLVED: adding to fstab "/dev/loop0 /mnt/data auto loop,users 0 0"; using losetup -o offset /dev/loop0 hdd.img; mounting like "mount /dev/loop0"; umounting and unbinding like losetup -d /dev/loop0
May
7
comment Allowing users to mount /dev/loop0
No, I can't consider "sudo" solution and adding entries in /etc/sudoers.