Sunday, January 31, 2010

Ok, what was the name of that thing?

While it's a crossword, it's more a specific type of crossword, without clues to what the words are except knowing their length.

Consider an NxN square, where no cells are blocked, and every row and column contains a whole word.

There's a specific name for those; they're notable because there are few known solutions for each N. I can't remember the name!

Thursday, January 28, 2010

Wait, what?

I'd just received a .hack//SIGN OST 1 audio CD. I love the music, but...

Log spectrum of Yuki Kajiura's "Fake Wings"

This is a zoomed in view of a particular part of the spectrum, as shown in Audacity. It's a solid, loud 16kHz present through nearly all of the song. At the volume I was listening at, it was painful!

I doubt it's an encoding artifact; The CD was ripped to FLAC. Here, I imported the FLAC into Audacity.

I don't know if the master was like this, or if I wound up buying a counterfeit disc.

Wednesday, January 27, 2010

Note to self: Check these out later.

http://www.projectrho.com/rocket/rocket3i.html

http://www.irrationaldesigns.com/TSOD/products.html

http://www.brokenthorn.com/Resources/OSDev7.html

http://www.project-euh.com/word_up/

Colonel Panic!

Most of us who've used Linux for any significant length of time have had a kernel panic. Lately, those events have probably been while in X, making accessing the actual details of the event difficult if you haven't memorized the magic SysRq keys (assuming your kernel was compiled with the relevant support).

A couple workarounds are available to deal with this; You can set up a serial console so that system messages get dumped via good old RS-232 to another machine, or even a console on your parallel port so that the messages get printed.

Don't try that last unless you don't mind going through a ton of paper, and have ways of dealing with the printer noise.

It occurred to me, a few days ago, that x86 systems have a (very) small amount of non-volatile RAM, battery backed by the same battery that keeps your computer from losing time when you power cycle it.

While that amount of memory is very, very small, it may be large enough to hold a Panic message; That'd be a nice place for me to be able to look to investigate why my computer randomly hard-locked one evening while I was away.

Tuesday, January 26, 2010

Some mnemonics for "ls" parameters

It can be a pain remembering all the different options to "ls", but I've found that most of my needs (outside of simple "ls" or "ls -l") fall into one of these three, easy-to-remember mnemonics:

ls -ltr # Sort by time, reversed, show more details.
ls -Ssh # Show and sort by human-readable size.
ls -Ssl # show and sort by human readable size, but show more details.

Graphic background doubles nicely as a desktop background

Multilingual Background

This is one of the images I came up with as a component for images on fundraising items. However, I happen to think it makes an awesome background image. It's made for tiling, not stretching. Enjoy.

(Sorry, I'm keeping the 300dpi version for myself...)

Monday, January 25, 2010

Fast track to a massive parallel computer

The vast majority of people who will read this have Adobe Flash installed. (Most will probably have Adblock or Flashblock installed, which has relevance, but not that much)

I've been thinking about parallel computation for for a while, and looking at different ways to do it. The best explicitly-known parallel computation setup out there are the @home projects like SETI@Home and folding@Home. These projects divide their workload into chunks, pass those chunks around, and programs running on volunteers' computers take these chunks, chew on them and pass them back.

A few weeks ago, I had the idea that someone could distribute an @home-style client as a flash applet using the one distribution mechanism many of us already hate--website banner ads. Have a flash applet distributed via advertising networks that:

  1. Connects to a central server

  2. Grabs a data chunk

  3. Chews on it

  4. Uploads the results to the central server


Flash already allows applets to pull remote files and perform GET requests. (I don't know about POST, though.) All that remains is grabbing and running the workload, and have a server that can verify that the workload results are uncorrupted. (i.e. not tampered with.)

Yes, this results in spinning an end-user's processors more than they would be otherwise, which may cost them a few more cents per month on their electric bill, or a notable reduction in their laptop's battery life. It would be helpful if Flash had a mechanism to change applet resource consumption based on system power state and/or user preferences. Still, yes, it's coopting a user's computer to do something they didn't explicitly agree to. Someone else can deal with the ethics; I'm just spouting an idea.

Also, yes, a large number of pages are only loaded for a very short period of time; The amount of time required to process a chunk of work may well require more time than the page will be loaded (and, thus, more time than the applet will be running). There's a workaround for that, too. First, Flash allows applets from any given domain to store a configurable amount of non-volatile data on the user's machine; That could be used as a data store for intermediate state. Second, the applet could wait a couple minutes before beginning the number crunch, looking for times when a page is left loaded for an extended duration. (Quite likely on sites like Youtube, Pandora and others with streaming media.)