Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: software

Parsing WFM Oscilloscope files in C

So, I got this Rigol Oscilloscope – I wrote a little instructable about it. One cool feature is the ability to save waveforms to a USB stick. There are many options for the file format, but the default is a WFM file. Now, a true minimalist could just use the CSV option, but the WFM is a binary format that contains a lot more information directly from the scope. I wrote a little C program hosted on github that allows [...]

Extracting M2TS length from a BDMV directory in Linux

I was having the hardest time getting various programs to echo the runtime of m2ts files in Linux, and it turns out someone wrote a parser for the files in the BDMV/PLAYLIST directory, which have all of this information. Get bdtools. I got Version 1.4. You can find it here. ./configure && make && sudo make install Try running mpls_dump. I got this error when running: mpls_dump: error while loading shared libraries: libbd-1.0.so.1: cannot open shared object file: No such [...]

Installing PARI-GP under OpenSUSE 11.2

I have no idea why this package isn’t in the default community repositories. I highly recommend they add it. Use the following commands to add the repository and install the package: sudo zypper ar ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/mkng:/science/openSUSE_11.1/ PARI sudo zypper in pari-gp

Calibre with the Nook on Ubuntu

Calibre is about the best thing since sliced bread. It is able to convert basically any type of Ebook format into EPUB, which is what my Nook reads natively. It seamlessly syncs with the Nook as well, which is a huge plus, and all of this happens in Linux. I highly recommend this software. Just make sure not to queue up too many jobs, or it might DOS your computer for a bit. The PDF conversion is especially intensive. It [...]

Fixing italics in Calibre EPUB output

I converted an ebook from TXT to EPUB today using Calibre, and found that the italics (which in the TXT file are annotated /like this/) are not converted into the HTML equivalent.  I did the following to fix this: unzip ebook.epub -d tmpbook cd tmpbook perl -i.bak -pe ‘s/([\s-,.;\'?:]+)\/(.+?)\/([\s-,.;\'?:]+)/$1<i>$2<\/i>$3/sg;’ *html That will create.bak files just in case anything went wrong.  To revert the changes, do this: for i in *.bak; do mv $i ${i%.bak}; done zip -r ebook.zip * && [...]

Making WordPress live in a subdirectory

I found an interesting article today about WordPress.  It was how to make it live in another directory. I needed that, so I followed the instructions, and it worked. WordPress is so much easier to install and configure than Mephisto.  It’s even easier to use than Mephisto.  I can see almost no reason anyone would want to use Mephisto anymore, other than nostalgia – WordPress has really cleaned up its act.  It seems the most recent public vulnerabilities to it [...]

Macbook Air hacked in under 2 minutes

So, at the PWN2OWN contest, a MacBook Air was hacked in under 2 minutes. A Vista machine was also hacked a little later, but the Ubuntu machine stood strong despite various attempts. Just goes to show that Macs are definitely not as invincible as many people keep saying they are…

HP Uses FBI’s Software?

Installing windows from an OEM recovery CD has never been something I would try, but apparently my friend is brave enough to do it. While he was in his 9th hour of installing today, he decided to come to his senses and just put Ubuntu back on. Lo and behold, he could not cancel the installation. He tried CTRL-ALT-DEL, but to no avail. Then, something magical happened. ALT-TAB produced this: Wow. What is FBI Gui Manager? Why is it packaged [...]