Older blog entries for pedro (starting at number 104)

PFNA -- Proposal For New Acronym

We already have TLA, for Three Letter Acronym, but I've been thinking for a while that the TLA namespace is almost exhausted, which could result in the catastrophic failure of efficient communication. Either that, or everyone is going to have to start using NAT to allow multiple expressions to hide behind one TLA (... but that's a topic for a separate post.) Anyway, having just encountered the acronym SPOF -- Single Point Of Failure -- I propose the acronym AOFL: Acronym Of Four Letters. You can either speak it as "A-O-F-L" or, as I prefer, as "awful."

Acronym creators should transition to the new AOFL protocol as soon as possible.

Update: I'm reminded by Nick Moffitt about ETLA -- Extended Three Letter Acronym. There's also a list there of other four letter acronym acronyms, and even my favorite, which describes the class of acronyms including things like LASER and SCUBA: VLFLA -- Very Long Five Letter Acronym. So I guess that AOFL will just be a forgotten standard -- the Betamax to ETLA's VHS.

Syndicated 2013-03-28 13:13:58 from off by one

when will I ever learn?

I do a lot of performance testing in the course of my research, and so, like a lot of other people I imagine, I wrote a little test harness to manage running jobs. That harness treats each test as a discrete part of a larger test -- and runs through them individually until complete. The benefit of this is that you can use the model to make sure that your conditions are the same for each test, you can see the progress of the overall tests by looking at the job queue, and you can pick up where you left off if something goes wrong. I've spent a lot of time on that script.

But then, I always forget about it and start a long string of jobs using a nested for loop... and then I lose all those benefits. My tests aren't particularly sensitive to conditions, but since I didn't use a job queue of any kind, I have no idea when the overall tests will end, and if I kill the task, I'll lose all my progress. Gar!

Syndicated 2013-03-20 16:57:47 from off by one

resizing windows in ubuntu

Like many hackers I'm constantly looking at or moving around tons of different terminal windows, which often need to be resized. Compiz in Ubuntu includes the Grid plugin, which at first I thought was super annoying, what with its automatically resizing my windows for no apparent reason. But then I set some hotkeys that make my life easy. Basically, using the modifier <Ctrl><Alt><Shift> and the keys A,Q,W,E,D,C,X,Z and S, I can stuff a window into various quadrants or halves of the screen. It's REALLY handy for lining up two vertical terminals side by side on today's widescreen monitors.

But the other day, I was using a crufty old P4 with an ancient video card do I had to fall back to GNOME. Boy, did I miss grid. But in googling around, I found out that in addition to ALT-leftbutton_drag to move windows, there's also ALT-middlebutton_drag to resize windows. I thought, "that's dumb"... but then I tried it and it's pretty awesome, especially when moving windows from a bigger monitor to a smaller monitor when grid or maximize gets confused. A little middle-button alt dragging and things are just right.

I actually have a whole set of left-hand chording shortcuts for window management that I'll post about at some point later. It makes window management for multiple terminals and desktops super easy.

Syndicated 2013-03-14 16:25:07 from off by one

Quick instructions for bar plots in R

Need to make bar plots quickly in R? It's easy!

Syndicated 2013-03-13 16:46:35 from off by one

What kind of object is this R variable, anyway?

Numerous ideas here, with the first being:

R> typeof(something)

In other news, I've decided to just start posting all the questions I end up looking up, since I often have to find them again, and I believe in "upvoting" them for posterity.

Syndicated 2013-03-13 15:59:46 from off by one

oh yeah!

Run a sequence of SQL statements in a script and spit the output to a file:

shell> mysql db_name < script.sql > output.tab

Syndicated 2013-02-17 03:46:57 from off by one

virtualbox -- assigning multiple cores to guest without hardware virtualization?

Q: Hey pedro, I have an old server with multiple cores, but without AMD-v or VT-x. Can I give a guest machine access to more than one of those CPU cores?

A: No. You need AMD-v or VT-x to assign more than one core to a guest machine.

Syndicated 2013-01-28 18:21:05 from off by one

95 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!