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.

Ahh, I’m really feeling much better now. Got up and had a bowl of cereal, good to be back to a healthy snack, even if I’m still up at night lol.

Been using links a lot for web browsing latly. During the big upgrades, heavy browsers like Opera 9 and Firefox3 were a bit to bulky with how much resources the portupgrade program throws ontop of the upgrade script (compared to using FreeBSDs built in tools); I also fouled up glib/gtk at one point, so links came in handy. It renders pages fairly well (but without CSS) and even can do images inline (could use better positioning, but hey it’s a simple browser lol). It also has the virtue of low dependencies: C library, standard libraries for compression & encryption, the standard image libraries (libtiff, libjpeg, libpng), and a small subset of X11 libraries.

The worst thing I can say about links, is it lacks tabbed browsing; other wise I think I would use it everywhere I can lol. It’s rending of webpages could be better but the primary problem it has is CSS support, while Lynx renders webpages as if there was no CSS, and as if it was made for all presentation and layout moved into a stylesheet. That’s the worst thing about Lynx ^_^.

If I could get the experimental JavaScript enabled to see how stable it is, combined with the fact that Links renders web pages very well for such a browser (damn good actually). All I would have to do is patch in a few hooks to allow the stuff I want, wherever links doesn’t provide it. (Easy enough, I know C but don’t know my way around the code base).

What I really should do, is check out Links Hacked, which adds tabbed browsing (yay!) and scripting in Lua. I don’t know Lua, but I could learn it swiftly with good cause. Hmm…. xD

falling down tired

2009-02-10 T07:17:20 UTC

Oh man, so freaking tired. I think I fell asleep like ten minutes into the presidents talk, woke up sometime later and drifted off to bed. Was to tired to get on the computer, was nothing on TV; so I put on my favorite western, El Dorado. Been drifting in and out of consciousness, seeing most of the movie and dreaming of hacking on old computers the rest of the time (lol). Finally got up about half way into the movie.

I’m still to dang tired to do much of anything, just writing this off battery power atm. I’d really like to work through some of my readinf, but I’m to fscking tired to retain it. Been to exhausted most of the day to focus on anything more complex then regular expressions, and even then to far gone to get that right (oy). After El Dorado is over, I ought to go to sleep, but I’m not sure if I’ll be able to go to sleep after all this dozing.

Really, what would be good, is to curl up with a nice novel… only problem, I’ve read most of my collection of fiction, 2 or 3 times each; my memory is also pretty good. I think I’ll see if there is any milk and cereal left, havce a quick gnosh and try and lay down. I’m really happy that I don’t have to be at work tomorrow, until about 1200 – but likewise wish I could just sleep. I really need a good nights sleep, but I never seem to get it.

I’m so darn tired.