- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
And, *poof*, he disappeared.
Whoops, sorry. I'm in the wrong joke.
Admin
Heh - under Linux there's a command-line tool called id3tag (part of libid3, apparently) that does that, but I'm not sure how easily you could get it working under Windows...
Admin
If the thing is formatted with UDF, it could simply be in the middle of the formatting. It takes nearly an hour to format a CD-RW with UDF, and while the process is running, free space slowly creeps from 0 towards the final value. You can add a file as soon as there's enough free space for it.
It's been years when I last used DirectCD, so I can't say for sure, but if the capacity shown is the total number of bytes the disk can contain at the end of the process, it would explain this thing.
Admin
Alternately, since the use of -i suggests that this is GNU locate anyway, then
locate -0 -i bakery | xargs -0 xmms
will do the trick... No need for the perl call, locate is willing to spit out null-terminated strings... As a bonus, this way automatically handles filenames which have newlines too...
Admin
There are plenty of ways to create such a file, as many programs don't respect the whole "- is stdout" idiom... Still, the first time I did this, it took me a whole ten seconds to realise that ./- is unambiguously a filename, and refers to that file which cat doesn't want to know about... (when I did it, I wanted to see what was in the file... I was redirecting some output from somewhere to stdout, and it ended up in that file instead... "cat -" echoes stdin, but "cat ./-" works just fine... same for "rm ./-".)
Admin
Especially fun if the filename is -rf.
(Spoiler: rm -- -rf)
Admin
Heh. Nice to see someone in my family getting their 15 minutes.
Admin
Argh. Nice to see the forum software messing up, too.
Admin
Not every task requires perl...