A C programmer can write C in any language, until he gets lazy and remembers Perls regular expressions still work at four thirty in the morning.

Writer’s Block: In a Former Life

Do you believe in reincarnation? If your answer is “yes,” describe some of your past lives.

Live Journals Writer’s Block

Not really, but if there is such a thing… it would be nice to come back as a cat or a dog.

Dogs get to sleep all day, and don’t have to share. Cats get to sleep all day, and always find the best napping spots xD.

Useful way to pass the time

Got bored, have never found something like xkill that I can just say, “xkill somewindowname”. Found xwininfo last week, thought about this hehe:

#!/bin/sh
#
# kill X client by window name
#

if [ -n "$1" ]; then
xwininfo -name "$1" | grep 'Window id:' | awk '{ print $4 }' |
head -n 1 | xargs xkill -id
else
echo "usage: `basename $0` windowname"
fi

xkillname xconsole and poof – the xconsole window is killed, hehe.

Thank or punch?

In regards to JB’s recent question

Good thing:

learned what a ballistic coefficient is
learned about bullet sectional density and form factor
learned a bit about drag coefficients
found a helpful pseudo-constant for standard gravity

bad:

don’t have enough ballistics data
don’t have enough weather data

Spent a few hours in thought that I could have spent in game, but enjoyed the process lol. Hmm, I don’t think I’ve tried anything like that since the cows came home.

Writer’s Block: Dream Job

If you could have any job in the world, what would it be?

Live Journals Writer’s Block

I would take the BEST job in the entire country. Forget the presidency, it’s all about triple dee.

http://www.foodnetwork.com/diners-drive-ins-and-dives/index.html

Come on, Guy Fieri has like the best job in the USA — crusing in a classic ride, and eating ten times his weight in food xD. Better yet, just being his side-kick would be a great job too! As long as it comes with a chance to eat, hahaha.

Hmm, I can just imagine everyone who knows me, rolling their eyes about now lol. (of course it’s gotta involve food)

Common Lisp ?

Hmm, Steel Bank Common Lisp (SBCL – compiled), CLisp (Bytecode), or Armed Bear Common Lisp (Java bytecode)

Decisions, decisions ^_^

Hmm, so far it seems to be a bit of a delemia. links-hacked can’t handle posting to LJ; links lacks many small features. ELinks has them all, except the GUI mode, because it’s forked from a really old version of Links lool

Today was really, the only chance I had to sleep… but like normal, I didn’t
get any rest this morning. Work on the otherhand, went fairly smooth. Came home
and got to record most of my thoughts (and designing a window manager) before
chow time. Later, I just crashed for a nap and woke up a few hours later.

Since then, I’ve been been experimenting with links / links-hacked / elinks
some more. Really, elinks is almost exactly what I want… except for the lack
of GUI support. links-hacked, hmm I’m not so sure about right now; I just don’t
see it’s “hacks” as a big enough improvement over links proper. The minimal
adjustments I would need to make to links 2.2, is working with it’s cookies,
user agent spoofing (well, not neccessary, but desired), and add a few hooks
here and there (text entries, key to open new window, etc). In links-hacked,
I’m not sure yet. links-hacked seems to have much more primitive text area
handling, and much like how links lacks a key to open a new window
(links-hacked also lacks it!), there is apparently no key to just open a new
blank tab. Like, what kind of idiot makes a keyboard command to close a tab,
but doesn’t make one for opening one? (at least, if there is, it sure ain’t
documented, and the ‘t’ command from elinks doesn’t work in links-hacked). I
suppose, I could always find a way to stick that in…

EDIT: done, it now opens new tab, hehe.

Now that was kind of cool, I’m wondering what open_in_new_tab()s second
parameter does, and why it always seems to get passed NULL as the 2nd
parameter. Sure enough, I checked the function defition again — and it doens’t
use it for jack, hahaha.

Tried out links-hacked, nice browser but I think I like links 2.2 better.

I downloaded links-hacked, had to make a few trivial changes to the source, and punch it into the face to make it obey –disable-backtrace as intended. Startup time was a bit slower then links, but stil a quick mover. Keybinds seem to be a bit more minimalist, text fields improved visually and tabbed support is present. I couldn’t get lua support to configure though, which is a shame because I really wanted to try it out.

Overall though, I think links 2.2 is a better browser. If no unexpected “gotchas” pop up, links may soon become my default browser on Dixie. +/- a few custom modifications, hehe 😉

It also gave me an idea, I could use links bookmark manger easy enough to simulate the GOTO URL behavior I want, and always munge together a converter between my bookmarks tool and the netscape format; or just get around to writing the appropirate backend, lol. Hmm, this is interesting xD

Now if I could just get this S.O.B. to allow me to customize keybindings without hitting the sources, and some cookie handling – and it would be perfecto.