4,005 reputation
513
bio website taz.net.au/blog
location Australia
age 46
visits member for 1 year, 11 months
seen Apr 4 at 2:25
stats profile views 126

Sep
30
reviewed Approve suggested edit on How do I specify the keyserver with GPG?
Sep
30
comment Cannot access disk, partition table broken
It's extremely unlikely that merely shutting of the NAS will have damaged the disk. Doing that may cause filesystem corruption, but not physical damage. Also, the fact that it was stuck at 0% for 2+ minutes indicates that it was probably already defective (or, as Giles suggested, the drive's power or data cables may be loose or faulty).
Sep
30
comment Got less output with print0 option on find?
FYI you can simplify the find expression with: find /some/path -iregex '.*intro.*\.jpe?g'...and since there is now only one expression it will avoid the issue highlighted by cjm.
Sep
29
comment Installing Linux on a SATA partition, with Windows installed on SSD
it would also be possible to use, e.g., gparted to shrink the NTFS partition on the SSD by a few hundred MB (enough for grub and a few kernels and initrd images), and use that space to create a new ext2 /boot partition on the SSD.
Sep
29
comment How do I tell if a folder is actually a symlink and how do I fix it if it's broken?
My guess is that there's some mechanism (possibly a udev rule) to make sure that the /hdd symlink is updated to point at whatever device or share is mounted, so that other programs and scripts can just use /hdd (after testing that the directory it points to is a mounted fs). just out of curiosity, what happens if you mount a second drive or share? Does it make a /hde symlink? or is the dreambox limited to one recording directory?
Sep
29
answered Finding corrupted files
Sep
29
comment Download file linked in MySQL DB, extract text and insert into db with bash script?
as an added bonus, both perl and python have good web robot libraries to help automate downloading and extracting data from remote URLs.
Sep
29
comment Download file linked in MySQL DB, extract text and insert into db with bash script?
There are a number of problems with your script but the most important one is that you are blindly trusting data from a remote website. Even a simple unescaped '; in the txt could update ALL records in the database. and much worse could be done if the remote data was designed to be malicious rather than just accidental. I strongly recommend you look into using Perl and DBI or Python and SQLAlchemy or similar for database work rather than trying to DIY in bash. In particular, you want to use placeholders for all variables being passed to SQL select/insert/update/etc queries.
Sep
29
answered How to know if a file has been written completely?
Sep
29
comment GTK-2 error when installing Glassfish plugin for Eclipse on Fedora 16 64-bit
nice to hear. feel free to upvote or accept the answer if it helped :)
Sep
28
comment GTK-2 error when installing Glassfish plugin for Eclipse on Fedora 16 64-bit
Both Glassfish and Eclipse are available separately (even packaged for various distros). The Glassfish Plugin for Eclipse is also available separately - the link on the site you mentioned is a dead link (it probably got abandoned when Oracle bought Sun and most of Sun's developers left), but a newer version appears to be available at glassfishplugins.java.net
Sep
28
revised Advanced file filtering
added 28 characters in body
Sep
28
comment Advanced file filtering
BTW, it wouldn't be difficult to come up with variations on this that used tar or rsync (that have built-in support for exclude-files) instead of cp. inf fact, using tar or rsync would be a good way to make the script work recursively if history/, inbox/, and backup/ contained subdirectories.
Sep
28
revised Advanced file filtering
added 1 characters in body
Sep
28
answered Advanced file filtering
Sep
28
answered GTK-2 error when installing Glassfish plugin for Eclipse on Fedora 16 64-bit
Sep
28
comment Error when try to install KVM on CentOS
+1. also, enabling virtualisation can often be hidden in a really bizarre location in the BIOS (esp. on name-brand PCs like HP). e.g. on a HP dc7800 (with Intel Core2 Quad Q9450 CPU), it was hidden away in "Security Settings" (or something like that, I can't remember the exact text of the menu item). It would never have occurred to me to look in a security menu for virtualisation options, I only found it by exhaustive search of ALL menu items out of desperation.
Sep
28
comment How do I tell if a folder is actually a symlink and how do I fix it if it's broken?
please don't paste screenshots for text. copy and paste the text instead, and use the pre or code tags or backticks to preserve indentation/formatting. and edit the text down to the minimum required to show whatever it is you're trying to show. BTW, one problem with screenshots is that tiny fonts become even tinier - to the point of unreadable - when viewed on higher resolution screens (e.g. 1920x1200 or 2566x1440)...pixels are fixed, text can be scaled.
Sep
26
comment Tracking what commands were executed after sudo to another user
alternatively, a much simpler version could be put in user nsup's ~/.bash_logout
Sep
26
comment Tracking what commands were executed after sudo to another user
it works regardless of what the user sets HISTFILE to. that was the whole point of writing it. read the script, history -a "$HISTLOG" appends the history to $HISTLOG. doesn't use or care about $HISTFILE.