The slightly safer alternative is $ rm –one-file-system -vrf delme-junk/ There are two additional flags: The -v flag causes “rm” to display the files as it deletes them. This gives the user a chance to stop the process if something completely wrong happens. Not as good as thinking before making the mistake, but much better [...]
“Aw, snap” in Google Chrome happens when a process (or thread?) involved with Chrome dies unexpectedly. I got quite a few of those, and learned to live with them for about a year, as I couldn’t figure out what caused them. It was clear that it had to do with Adobe Flash somehow, and that [...]
I wanted to create a boot USB stick from an Ubuntu 15.04 desktop that was running in a Virtual machine. So I plugged in a clean USB stick, and picked “Startup Disk Creator” from the Launcher. Then picked the USB stick as the target, and waited for 15 minutes. When the utility was done, it [...]
It’s often required to scan a lot of pages in one go, even manually. The problem is that when doing individual scans, there’s a significant delay between each scans, as the computer initializes the scanner for each. The trick is to use scanimage’s batch scan feature. A typical command for scanning an 10 A4 pages [...]
To convert all pdfs into a jpgs with fairly good resolution (Linux, bash): for i in *.pdf ; do convert -density 300 “$i” “${i%%.*}.jpg” ; done Without the -density parameter, the result is pretty lousy. To prepare a lot of image scans for printing, into a single pdf doc: convert *.jpg -colorspace gray -contrast-stretch 1% [...]
Random notes playing with MuseScore 0.9.6 (pun not intended): Installation (after grabbing the RPM file from the web): # yum install –nogpgcheck MuseScore-0.9.6-1.fc12.x86_64.rpm Which installs the file with no signature. Somewhat dangerous in theory, as the RPM could in theory contain malicious code (as if a signature helps in this case). The command line for [...]
Introduction I’ve been annoyed for quite a while by Thunderbird’s strong inclination towards HTML mail. To the extent that if I don’t really, really verify that a mail goes out in plain text, it’s probably going to slip out in HTML. This is bad in particular when sending mails to Linux-related mailing lists. They don’t [...]
Sometimes, there are JavaScript snippets for the sake of obfuscation (hmmm, including this site). This is code made complicated intentionally, to prevent web spiders from harvesting addresses or emails. But hey, what if I’m the one with the spider? The simple, and somewhat dangerous solution, is to run the JavaScript code on a local interpreter. [...]
So there’s this huge pile of source code, with an enormous amount of functions and methods. How can you quickly find where each is defined? IDEs has this functionality built in, but it’s not so easy to push an already existing (and huge) project into an IDE. The solution is so simple. For example, $ [...]
Just a quick summary on how to compile my own cross-compiler in 20 minutes. Download from Buildroot’s home page Run “make xconfig”. The configuration is stored in .config Possibly set BR2_JLEVEL=8 for parallel compilation(even though 0 should just do it right according to the number of processors present) Pick little Endian ARM Cortex-9 for Xillinux [...]