Sunday, November 30, 2008

Hmm, 20 pushups in about 3 minutes.

Either I really need some damn sleep, or it has been that long since I tried something called exercise :\. Well, Iw as much more active back then... but that's a different story lol.

It's good to have the space again to actually exercise...

Interesting finds

%Windir%\system32\ (typically C:\WINDOWS\system32\)

clipbrd.exe -- ClipBook Viewer

Big question, can I actually use it for anything? (Grrr, vim is better); windows clipboard management out of box seems to suck, or require finding a program almost no ones ever heard of :\

ftype -- manages file associates

very bloody useful - no more need to invoke explorer.exe to play with them.

systeminfo -- quick print useful data

Gotta remember this next time I'm working on a system; msinfo32 provides more info, but for some dang reason always seems to need start.exe or rhe run dialog to launch it. systeminfo gives a good first look, and is easier to grep.

Windows XP does have some useful changes from DOS 5/6 based releases, but I've never actually found a lot that isn't in my MS-DOS reference >_>.

You know you've been using computers to much when....

All of your mental calculations are off by one, because you keep counting form zero.

You surround long strings of written arithmetic in parentheses, based on the Operator Precedence in ANSI C; and wish the rest of the world did the same.

You habitually use semi-colons and comment symbols in documents, as if they were natural.

You can't remember the last time you spoke to someone on the phone.

You give people your Instant Messenger, rather then you're phone number

You can type your login faster then your street address.

Your calculator has it's own programming language, but you can't make it count from zero.

When you forget something, you blame it on your brain not "swapping" the data from short-term to longer-term memory in time.

You think people are backwards, if they don't understand SI

Debating the endianness of various date formats sounds like fun

You have to pause to remember how to write rarely used letters in cursive, because you haven't written on paper in years.

You've named a computer in honour of HAL9000s female counterpart.

Words like grep, parse, regular expression, archive, constant, null, void, port, IP, socket, packet,; are imprinted on your vocabulary. much to your friends annoyance.

You describe the functioning of your brain, as if it was a computer; because you're not a neuro-specialist.

You would rather use /bin/ed then notepad.exe

You have several command prompts open at all times, even on Windows.

You can tell the difference between explorer.exe and My Computer.

You can't tell the difference between explorer.exe and your Windows taskbar, system tray, start menu, and the file manager.

You write corrections to the last message, as if invoking SED.

You use single quotes to define literal text.

You use regular expressions in place of long lists of related identifiers.

You think people are gay, if they don't think the Macbook Pro is sexy.

You write the "show work" for maths questions in pseudo code, showing the algorithm used instead of the numbers.

You know the size of a byte is machine dependent, but never used a machine without an 8bit byte.

You've used 8-bit, 16-bit, 32-bit, and 64-bit systems, but wonder what will cause commodity systems to go 128-bit in the future.

You have more e-mail, then you can shake a stick at (after spam)

You haven't used a real dictionary or encyclopedia in years.

Your desk is a dumping ground for CD-ROM disk jackets, but your home directory is neat as a whistle.

You haven't seen a razor blade in months, but a program got written on time.

telnet and tcpdump are your favorite solutions to networking problems.

You write about network communications, as if they were PF rule sets.

You keep using -> to dereference "mental pointers" in text.

You write encrypted messages in hexadecimals or octal first, then apply a caesar chiper before encrypting them.

After so many years, that rodent with a long tail on your desk is nick named "the rat"

You use the keyboard for damn near everything, short of opening cans.

$ program folder1/folder2/folder3/filename.ext feels more natural then double clicking my computer, double clicking folder1, double clicking folder2, double clicking folder3, and then finally double clicking filename.ext.

Especially when you can type this as prog/f1/f2/f3/file.ext by using the TAB key completion of your shell, using file managers feel clumsy.

Binary files annoy you, because they can't be easily read in text editors

You know Integrated Development Environments exist, but have yet to find one better then a UNIX shell, text editor, and development tools.

Proof reading is your favorite way to debug EIDTENT.

You write things like: let foo = [ item1, item2, item3, item 4]; whenever you want to define a list of data in chats.

You meet an attractive woman, and wonder if she is computer literate.

You can use several different styles of operating system interchangeably without problem.

People ask you for something, but don't tell you how many, and you respond with "enter an integer".

Your bookshelf is full of Science Fiction, Fantasy, Foo Quck References, and Networking books.

You've sent people messages in hexadecimal, more then once.

If you had more money, your bedroom would be like a cave with 50 computers humming.

You remind your dog, that a laptop is not a pillow.

The hum of your file server keeps people awake.

Finding old PC parts is like presents under a Christmas tree


Saturday, November 29, 2008

I can't believe I am reduced to this...

I finally decided to try something I've never bothered with before: X over SSH. Despite it's pro's and con's, I actually do like the X Windows System for the most part, but rarely have time to go spelunking through X.Org.

I installed XMing on my Windows machine (sal1600), booted my laptop (dixie), and ran some tests using Xming.exe / PuTTY.exe - highly successful, and quiet a look on my face, when I saw gVim on FreeBSD, pop up on Windows XP!

Connection link is as follows:

WRT54G Router/Access Point  ->|
                              |  <- WPA Personal /w AES algorithm
dixie   -> ~54Mbps 802.11g  ->|
sal1600 -> ~54Mbps 802.11g  ->|

Personally, I would prefer Gigabit Ethernet connection and some good cat-6 cable, then drop the router for something a bit more direct... but I can't lol.

dixie runs FreeBSD 7-STABLE; sal1600 runs Windows XP MCE (SP3).

A few quick batch files to make calling XMing easier then kicking XLaunch into 'just what I want':

==> xming-1win.bat <==
@echo off
cd /d P:\Network\Remote\Xming

start /B .\Xming.exe -clipboard -keyhook -lesspointer -unixkill -nowinkill -screen 0 1280x800@1 -swcursor

==> xming-multiwin.bat <==
@echo off
cd /d P:\Network\Remote\Xming

start /B .\Xming.exe -clipboard -keyhook -lesspointer -unixkill -nowinkill -swcursor -multiwindow
For SSH, I copied my setup in PuTTY for Dixie; enabling Compression and X tunneling, and bingo -> X11 over SSH. Launch Xming, run PuTTY -load Dixie-X11, and bingo! For the same of speed, I also changed PuTTY to using a faster encryption algorithm then what I normally use for a shell. Adding more fonts is quite a necessity, but rather limiting if you don't like 12px fonts. I can't help but wonder, if Xming would work with fonts installed on X.Org; only two ways I know to find out; grep X or test it. Note to self: double check memory of how X Servers handles fonts, against the documentation (it's been awhile). IMHO running X this way is a liability, even over SSH, and a WLAN even worse. But it is quite nice to see, even under this kind of equipment, it's actually quite usable. I so need a replacement keyboard for my laptop!!!

Wednesday, November 26, 2008

Going ballistic.

Hmm... I wonder, if I yank off my monitors from the desk... scrounge around for an old USB2-PS/2 convertor; I could hook up the desktops keyboard to the laptop.... just maybe.... Mmm, maybe even use the desktops monitor as an external (will need to tweak BIOS/X)

Trade my speedy dual core, 2 gig of ram packing game machine for a little old laptop with crappy sempron, and a slow half gig of ram? To actually have a working environment I can _use_ and not want to hex-edit the executables into the the darkest levels of DooM (*cough* I hate windows *cough* as a work station *cough*).

Yeah, I'd do it in a heart beat....

And I mean both, lol.

Going out of my mind, Phase II.

Grr.... 6+ hours in attempts to allievate the keyboard problem have resulted in a fouled up beyond repair keypad; this means either I find a replacement keyboard, or a replacement laptop.

What worries me is /finding/ a replacement. The laptops about 2 years old, and was "old" at the time, hence why it was on sale to make room for newer packages lol. Even at vendor-side prices, I should be able to afford a new keyboard module, if I can find one! Buying a new laptop, that's a different story... sure as hell ain't room for that in the budget lol... The fact that the most suitable laptop systems (refurb) have gone up in price, over $200 for the holidays don't help either...

My working environment rules out the use of an external keyboard, mouse, or monitor; so any way you slice it, I'm screwed until I get a replacement keyboard. It's only 0135R, and I'm already bored stiff. Played a few maps on [SAS] Proving Grounds #1, nice to see I can still work that games MP5 trigger like an artist for double taps ;-). Played a bit of the new maps on [SAS] Training Grounds #3, good maps and good practice -- but I miss my Dixie :-(

I'm used to being camped out with a laptop all night, terminal on one virtual desktop (with vim sessions), web browser and chat on the second, and the third on standby. Living with Windows until I can get a replacement....


I miss my FreeBSD powered mobile work station....


No wonder I'm typing things like 'tis' so often lately, in vim where 'h' is the key to move te cursor one char to the left; I tried the command '7hr', meaning move 7 char to the left and replace the letter under the cursor with the next typed key-stroke.

I had to type '7hhhhhhhhhhhhhh' on my keyboard to get ONE H !!!!

Now wonder Control+H has been taking so long to backspace over crap....

My laptops h key is starting to ignore keypresses! I tested it in urxvt/screen, vim, firefox3, and xchat; then tried xev and using the system console... same results. This is horrible !!! I'm going to have to dismantle my laptops keyboard later and take a look.... This is _BAD_. I use my laptops keyboard a lot, so muc in fact that tere is no label left on my 'N' key, and the 'D' and 'H' meys labels are half faded out haha.

CRUD !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I don't need many keys, only about 56 -> the average PC keyboard has 104 keys today, but finding 105/107 key models are not uncommon either. With a laptop, I basically demand 12 hours of typing comfort out of the 56 keys I need, same as any other keyboard I use....


Tuesday, November 25, 2008

Writer's Block: Eat, Drink, Be Merry

Thanksgiving is almost here in the U.S., heralding the start of the holiday season and the first of many meals where you might be confronted with a traditional dish that you happen to find disgusting. What holiday food do you hate to see on the table?
Live Journals Writer's Block

!!! TURKEY !!!

There, I've said it! lol. I'm not fond of turkey, because until this year there has always been a 22lbs average of turkey for 4 people -> I like leftovers, but not that much man! I don't really care much for Chicken either, but I eat it when that's what is given. Although I wasn't raised that way, I am the sort of person that will eat what ever is put in front of me, if I consider it palatable enough to stand it.

That reminds me of a family joke; my father telling my mom. that he would do anything for her. To which the rest more or less goes like this:

My mom: "I know one thing you won't do"
My dad: "What's that beautiful?"
My mom: "Cook a turkey!"
My dad: "You're right, I won't do it!"

Like my father, I would prefer a HAM :-). But the turkey is what is on the table, so that's what I eat til the next moon cycle lolololol.

N.B. Stuffing that was cooked in the bird, I don't consider palatable; cooked outside, s'ok.

Monday, November 24, 2008

2008-11-24 T22:46:45 UTC

Kicking back, having fun watching space balls while I dig into stuff from my
laptop. Stuck in the DVD, moved the dresser out of the way (so I can watch the
TV), pulled an old computer core up to the bed for use as a table... Say down
and had some Kellogs. Now I've got my feet resting on the computer, laptop on
an old chessboard (baleneced on my lap), and pillows behind me to give me some
support, & comfort while sitting on the edge of the bed.

I'm not even bothing with X, I'm working in the FreeBSD console. Need to sort
out a quick music for mplayer, I'll leave it running on another virtual
telitype. Ahh, I don't care if the sn goes nova, I'm gonna sit here and enjoy
suff. Work starts tomorrow afternoon, and it's the kinda job that won't leave
me any time to myself (worth mentioning), until I get off work the next day;
his weeks gonna be a general P.I.T.A. until next month, so may as well...

Interesting Article

A gift or hard graft?
We look at outrageously talented and successful people - the Beatles, Mozart, Rockefeller, Bill Gates - and assume there is such a thing as pure genius. Not necessarily, argues Malcolm Gladwell...

Thanks Jonsi.

Note to self about IMAP

Use IMAP to access mail = great idea
Deal with IMAP from code = can be headache

Sunday, November 23, 2008

An old cowpoke went riding out onme dark and windy day
Upon a ridge he rested as he went along his way
When all at once a mighty herd of red eyed cows he saw
A'plowing through the ragged skies and up the cloudy draw
Yippee-yi-yay-yippee-yi-yoh the ghost herd in the sky
Their horns were black and shiny and their hooves were made of steel
Their brands were still on fire and their hot breath he could feel
A bolt of fear shot through him as they thunder through the sky
For he saw the riders coming hard and he heard their mornful cry
Yippee-yi-yay-yippee-yi-yoh the ghost riders in the sky
Their faces gaunt their eyes were blurred their shirts all soaked with sweat
He's riding hard to catch that herd but he ain't caught them yet
'Cause they've got to ride forever on that range up in the sky
On horses snorting fire as they ride on hear their cry
Yippee-yi-yay-yippee-yi-yoh the ghost riders in the sky
As the riders loped on my him he heard one call his name
If you want to save your soul from hell a-riding on our range
Then cowboy change your ways today or with us you will ride
Trying to catch the devil's herd across these endless skies
Yippee-yi-yay-yippee-yi-yoh the ghost riders in the sky
Yippee-yi-yay-yippee-yi-yoh the ghost riders in the sky

-- Ghost Riders in the Sky

What an odd thing to catch on TV, lol.

todo: 2008-11-23

finish nail config
finish changes to vimrc -> commit
check in my vim colour scheme
adopt colour scheme to gvim (which I use on winsucks) or find something comparable
update lj abut 2008-11-22
congratulation the new recruit
hash out keybinds for swat
check, if I currently have any in rvs lol
contemplate what we can do with the traditional tagfile format, and our old friends perl/python (muhauha)
dig through about 300 e-mails

*yawns a mile wide*

Linux distro family tree

Special thanks to MetaCosm of #vim

Never knew suse was descended from good ol'slackware hehe.

Saturday, November 22, 2008

Hmm, mission orders in troff?

You know, it would be interesting to write up my various tasking orders in troff, then generate the desired outputs.

That, or actually find the time to make a proper LaTeX document class and expand my personal style package... to cope with it lol. But troff would be faster.

Friday, November 21, 2008

Determined exhaustion

Very tired atm... but not wiling to give up yet!

For the past week, I've been going to bed > 0500R, past 3~4 days worth I've barely had any sleep at night... When trying to sleep, it's more like time has passed with limited consciousness then ever actually sleeping, last night was the first dreaming I've dne in a awhile now. I'm hoping, with the weekend... I can stop going to bed so late, or at least sleep in for a change lol. I prefer 8 hours, but often live on <=5 :\.

Been playing a bit of SWAT 4 lately, good to finally have some R&R. Spent a part of yesterday teaching a green player the ropes of the server, hopefully enough that they will survive working in an element, and be able to learn more with practice if desired. COT finally made Recruit, hopefully with a bright future. With Dukes help, I'm also getting ready to reintroduce keybinds into my mixture. I should still have my 'English -- Deutsch' style keybinds backed up somewhere, but have been gaming without any textual keybinds since I reformatted sal1600. My controls are quite customized, and I am using the classic command interface for months, so the main problem is where to put things now lol.

sigh, already nearing midnight.
Hmm, arguably I have my bad days, and then I have my worse days...

Tomorrow can't get much worse in terms of work, I hope :\ Nearly 0500R, so no time for a proper days log; I really need to stop staying up so late.

At the moment, I've nearly got nail configured to my needs. The addition of macros and IMAP support is a real improvement over the old Berkeley Mail program. With a little more adjusting, I just might be able to dig into my back-log of mail sometime lol. So far, I only have one major complaint - no line editing at the prompt beyond the most basic level (provided by the terminal). That' not really a problem though, it allows that old ed like terseness, it's easy to keep the commands short.

Software, like physical tools should empower users to get work done efficiently, A little bit of learning how to use the program, is worth it when the reward is productive.

One thing I've also come to enjoy, is a useful trick for generating HTML manual pages. The mail/heirloom-mailx port installs as /usr/local/bin/mailx on FreeBSD, corresponding manual page being /usr/local/man/man1/mailx.1.gz. Because nail has a big manual page, it's worth while to use a web browser or a text editor with tabs, in place of the usual $PAGER used by man.

$ zcat /usr/local/man/man1/mailx.1.gz | groff -Thtml -man > ~/mail.1.html
$ firefox3 ~/mail.1.html &

which is much more fun then my shell alias:

alias   man-nail="man -M /usr/local/man mailx"

Thursday, November 20, 2008

PC-BSD, 3 years of PBI corruption continues!

Username: mrhbit


This is available in FreeBSD ports.

Here some screenshots.

regards Soeren

Username: mrhbit

Or a package for PC-BSD 7.x ?

Username: Gon

have done it. Gimme a week and i will approve it into

Gonzalo Martínez-Sanjuan Sánchez
PC-BSD Core Team Member

Problems with this:

  1. Getting a PBI approved is supposed to involve community testing, and review by those in charge of our PBI'safety (e.g. Gonzalo and a few others on the team page), which should also be impartial auditors - it's called common sense.
  2. This would make Gonzalo a repeat offender in by-passing the normal approval procedures for his own PBIs, if he does what he says he will do.
  3. If he does as his record and choice of words suggests, this is a conflict of interest, which I deem unethical.
  4. This is not the first time. someone involved in the PC-BSD project has "bent" the PBIDir rules, or endorsed doing so... when they are supposed to be enforcing them, for everyone including themselves!
  5. In the past a number of PBI's that have "skipped approval", and have resulted in stinging users or violating the rules of the day (ref: Kris (Realplayer, Java, BSD4Win), Charles (Firefox, Thunderbird), Gonzalo (Gnome, ...)), or just had half assed [lack of] testing that didn't catch obvious problems (ref: the 2nd Amarok PBI, Gnome 2). Considering the state of Documentation (how many general users know how to extract PBI w/o install, or how to reach the scripts before they are run), users will not see the code executed when they install a PBI (and most woulnd't understand it, or the implications), which IMHO is a major security risk -- unaudited PBI.

Is it a wonder, that I never send patches to these people... I wouldn't want my name associated with PC-BSD in any such capacity, period and end of quote. I remember I once compiled a list of the PC-BSD projects deficiencies, and took it up with one of the team members.... That was quite a while ago now; but no actual changes seem to have occured, beyond referencing revisions in the changelog for 7.0.1.

I think, if Gonzalo doesn't go by the book, maybe I will just happen to go public with them this time -- and expand the list!

I've had about enough of watching this chicken shit project. I may have mellowed in my increasing age, but not that far just yet.

Wednesday, November 19, 2008

Miscellaneous ponderings

/bin/ed isn't so bad after all, but hey... knowing how to use ex, vi, and vim helps lol.

The old Berkeley mail interface is very interesting, but seems to lack mutts infinite configuration. Most of the time, I just use webmail. Google Chrome (Windows) or some thing from $BROWSER (*nix) is always open, so typically use that; but some times I do like to work from my terminal hehe. It even looks like the nail/heirlom-mailx program might add the stuff I desire.

TODO: inhale /usr/share/doc/usd/07.Mail (the reference manual), inhale nail documentation.

A testament to American Stupidity, guilt by web crawl!

Is Google Responsible for Cracking HDCP?

Considering it's been about a year and a half, I wonder how it came out. But the idea that could possibly think of sending a C&D for that, is just a way to prove one thing.....


Sometimes, I feel like this country is coming out of an intellectual dark age....

Monday, November 17, 2008

days objectives

  1. finish room
  2. get to / finish work (zzZZZzzZZzz, cake walk)
  3. get dragged out shopping after work (grrr!)
  4. dinner
  5. finish room (if not compelte) / hit the net
  6. work on DBus

with luck, I can get my room mostly done before It's time to leave.


What's left to do:

0/ go through the old strategy guides -- anything to a game I don' have anymore goes out, anything I can't find room for goes out; I don't use strategy guides and there is the internet if I get stuck.

1/ continue sorting books by priority.

2/ move to auxiliary storage point, based on priority.

3/ figure out where my laptop will be stored when not in use

4/ figure out what to do with the pictures from the hallway, which are stuck sitting in the place for my school books (and laptop)!!!

5/ Anyway to get ma's dolls out of here? She's burning up _my_ book space!

6/ sort through the last dresser draw

7/ throw out the trash

8/ dust it all to the max

9/ vacuum

10/ organize the last shelf, side Alpha, right of the A/C

11/ figure out where to put the spare PC (unused), mmm wish I had time to get a spare NIC dirt cheap - could get her online xD

12/ reassess the situation, where do we go from HERE?

ok, list noted, now to get dressed for work, before I get driven more nuts - just for wanting to quickly write my notes at the speed of thought.
Ahh, finally some time to R&R, or should I say as close to it as I actually get.

I've been getting drivin out of my mind, so... I flushed all thoughts and forked a new idea for my day. I've spent most of my day ripping stuff apart and throwing crap out. Heck, I've chucked a few things that are /older/ then I am. I've changed around a lot of things in my room, including dismantling the desk since it was in the way of moving the bed. Due to the change in positioning, I no longer have my usual electicral outlet. So I'm sitting at the foot of the bed, with the dog lol. I think I'll like this new arrangement, one thing I like - rolling to face the wall is on the other side. Often, when I finally do go to sleep, I usually turn away from the rest of the room so my mind doesn't try to focus on it. As it was, doing that would be rolling onto my heart-side, this way it isn't.

It also allows me to walk into the room, without tripping over shit lol.

Well, it will once I finish lol. Got a ton of crap piled up, mostly books that need to need to go out. Namely about ~40 pounds of old school books I've been forbidden to dispose of for years. I've had about enough of this crap, it's _my room_, shouldn't it store _my stuff_ ? The rest is books that used to be in the desk, and have no where else to go for the night. eally, I could finish tonight, would only take 2-3 hours more; but that would require going in/out the front door. And Ma would kill me if I made that much racket while she's trying to sleep lol.

If I'm going to be driven nuts all the time, prevented from getting work _done_, well I am bloody well going to do something constructive !!!!!!

While I've cleaned out most of my stuff, I've kept a fairly minimal amount of things (those that have value, and those that I want). Amazingly, despite the fact that some of my personal belongings go back to before I can remember life, I can still remember virtually each and every piece of crap I found lol. I have a very good context-sensitive memory; I might not know whether to turn left or right at a fork in the road when setting out on the journy, but by the time I get there, I'll know which way to take. Maybe in some ways, i am trying to distance myself from the past, I dunno.

But I know, I do feel much better -- working on stuff beats sitting one ones duff doing nothing, but passing time; that should be spent with a purpose.

Of all of the things I've gone through, I've managed to ge a few sets of things in order, that have had pieces missing for 10-15+ years. Found a reminder of the last time I was in a doctors office (heck, what was that? About 1991?), some old books I should read. Another thing I found was an old "paper weight", that has been sitting in a dresser draw for many years. At least, for as much as my mothers told me it's a model pistol that my father had put together for me. Examining it, I found something rather odd for a model - it has a working single action! I cocked the hammer, that as a boy, I had always thought was fused into place... only to see the cylinder rotate, making ready the next (empty) chamber. To top it off, the rammer along the bottom of the pistol even works. A quick look around the Wikipedia would suggest it's a replica of the M1851 "Navy" Revolver, but on the side of the octagonal barrel it says ".44 Caliber" and notes to only load it with black powder (M1851s were .36 Cal). I can't help but wonder, just how much is model and how much is replica... lol. Even in the civil war though, I couldn't imagine loading one of those things [properly] in a combat situation, then again it was an era where 3 aimed shots a minute was the ideal with an infantry mans musket :\. Hmm, for some reason one of John Waynes comments in True Git comes to mind, hehe.

Tomorrow I need to finish moving stuff, dust, vacuum, and sort the remainders. Work for Monday is gonna be quite light, so hopefully I'll have some peace, I'd kinda like to get some homework done some time this century !!!

Sunday, November 16, 2008

Reboxing the box

To go with the changes in my working environment, a new style for blackbox ;-)

Image Hosted by

Since I left KDE in favor of more compact systems, I've found that I tend to change my layout of things less often. Most of the arrangements are calculated for muscle memory, and my visual patterns, and have become a set of very quick reflexes.

I don't miss a taskbar at all, and have still yet to find an excuse to use the slit or dock in Blackbox lol.

Saturday, November 15, 2008

I love this thing....

Laptop is under abusively heavy load compared to what my much more powerful windows machine does, but it's still in a very usable state. If this system ran Windows XP instead of FreeBSD, it would be slow'n to a crawl lol.

currently running: 155~165 processes, 6 shell sessions, 1 x session, temperature is at 64.0 Celsius

  • X.Org is up and I logged in from GDM.
  • Blackbox is running with bbkeys, dcopserver, gkrellm2, and two rounds of fbpanel in support.
  • Psi, Pidgin, and XChat are running, with a total of 7 networks going between them (1 of which is freenode, with 3 channels open)
  • rxvt-unicode + gnu screen is open with 4 windows
  • linux-flock is running with 5 tabs and the mplayerplug-in streaming music
  • The www/firefox3 port is compiling
  • My vimbuild script is fetching/building a newer version of vim from cvs
  • I am csup'ing my systems copy of the FreeBSD source tree
  • And doing the write/compile/test rinse & repeat in vim ;-)

This kind of workload, is fairly typical for me when running FreeBSD. On the windows machine, I don't even bother - doesn't take well to it :\.

Strange behavior with this bit of C++

It has been a long time since I've had time to do anything in C++. So I figured it would be a useful way to limber up my memory, by implementing a little bit of my favorite Python classes/modules in C++. The only crazy thing, is the result this code has yielded.

// minimal program, using the code involved

extern "C" {
#include <sys/param.h>
#include <unistd.h>

namespace os {
    bool link(const std::string& src, const std::string& dst);

os::link(const std::string& src, const std::string& dst) {
    if (link(src.c_str(), dst.c_str()) != 0) {
        return false;
    return true;

main() {
    std::cout << "link()\t" << std::endl;
        os::link(std::string("./test"), std::string("/tmp/test"));
    return 0;

compilation: /usr/bin/g++ -Wall -ggdb3 os.cpp test.cpp -o test

I compiled on FreeBSD 7 with the systems GCC 4.3.1 and get a segfault, then tried the code on my OpenBSD 4.4 machine. The OpenBSD 4.4 release has shipped with a patched GCC 3.5.3 (propolice) - on OpenBSD it ran perfectly! Trying to feed it through the debuger on FreeBSD wasn't pretty either:

  • FreeBSD 7, system GCC 4.3.1 -> test program dies with a Segmentation Fault.
  • FreeBSD 7, system GDB 6.1.1 -> Endless stepping when used with a break point, or SIG SEGV in libc's malloc() when run.
  • OpenBSD 4.4, system GCC 3.5.3 -> prints proper message from std::perror() as expected, when the program is executed.

If I change os::link to os::link_x and recompile on FreeBSD, it works the same as it does on OpenBSD, when unmodified that is. In a few tests on FreeBSD, When I run the program under GCC, it tells me

Program received signal SIGSEGV, Segmentation fault.
0x281fabc3 in malloc () from /lib/

if I set a break point in test.cpp on the os::link() call, and step through it into os::link() in os.cpp. If I keep stepping after the link(), I get returned to the os::link() call in main and can step through it all again. Like an endless loop of stepping into/out of the os::link() function call in test.cpp's main(), and the if-conditional in os.cpp's os::link(), geeze.

At least looking at the results I've had tonight, I know I'm not freaking nuts... lol. I still shouldn't write code when I'm half asleep, but hey... It's the only time I get :\, Oh well... unless my family is late as usual, I need to be up in a few hour.

*head hits laptop, snores loudly until morning*

Friday, November 14, 2008


Adapt header to i386/amd64
Adapt header to supported compilers
Finish implementing the module
Test module with (puke) MSVC++

Thursday, November 13, 2008

I put Stargate on and decided I would lay down for a few minutes before getting online; last thing I remember is O'Neil and Jackson being captured and about to be brought before Ra. Next thing I know, I wake up out of a sound sleep to see some show on depicting a 2 on 1, like wtf!? I slept through Stargate!!!

That's what I get for taking a nap, instead of camping out in front of a computer lol.

N I'm wide awake and glad that unlike the rest of my family, I don't set my TVs volume loud enough to be heard from Kansas..

Wednesday, November 12, 2008

Hooah a stroke of luck!

Just caught Top Gun starting a few minutes ago, usually I always find it on after the first halfhour r so; but my favorite part is in the beginning. They're dancing with the MiGs, when Maverick and Goose end up inverted above the MiG, almost canopy to canopy -> Mav gives'em the bird while Goose takes a Polaroid of the look on the other pilots face xD --> Priceless !

Managed to get through work today in one piece, singing a song in my head to keep my mind else wheres; but not to bad a day overall, I guess. I don't really have a problem with working a lot, it's having to scrimp and scavenge my time whenever I'm /not/ working. My family drives me nuts at times.... and after work tomorrow, I'm expecting a headache with what's planned.

I did get to have sme fun today though, joined PG#3 for a few games of SWAT 4. My custom skin is labeled 3.x.x beta, but I think unless I find any visual bugs of interest that it will probably be going gamma soon. I really like how the last take on the NWN BDU came out. The no armour vest didn't come out as intended, but I kinda like it, really might pass as "no armour" if it wasn't for the dang games design.

I can't wait for the weekend.... I outa be off Sat/Sun/Mon, and I've got a projects meeting n Sunday. Hopefully it won't take forever to pull off, but I might get some of the other days to actually get stuff done on, hopefully anyway...

Tuesday, November 11, 2008

Just a little bit of time left until it's time to leave from work, and odds of getting any work done before are dismal. (be lucky if I get time for lunch :\). I was up to after 0500R, getting woken up at the crack of dawn, and dragged out on a shopping expedition around 1000R. Tomorrow is 2 jobs, so that's the end of getting anything done then; but luckily one is short... it's just the margin-time on pre and post op that's the killer.

I really need a vacation..............

but that's not likely to happen, before the next ice age lol.

Been wprking on several things when I can, and playing a mixture of games whenever I can't work on crap. *SIGH*

Sunday, November 9, 2008

TODO: compile a more detailed analysis on all possible solutions (and their implications) to the meetings point 0 topic.

sounds like mental fun, if it wasn't for family to drive me nuts and reck my train of thought every chance they get lol.


While ProgramName always endeavours to protect its users from unnecessary harm, it will not stop you from ignoring the big red warning signs.

Saturday, November 8, 2008

Some day :\

My brother finally showed up around 1230R, to bitch at me for nt being ready - my response being, "Your late, so you can wait". Good sized headache helping him ove crap around, I tell ya... family are the only creatures alive who have the balls to ask for help and insult you all the way through it!

Ducked into a few levels of F.E.A.R. to pass the time until he finally shoved off and Ma found something to do, not involving driving me nuts.

I managed to sort out the meeting, it's either tomorrow at 1800GMT or next weekend lol. I still don't think we'll be able to get everyone present by then, but w/e works for most of us. Tomorrow, I also need to take some time to catch up with my email lol.

I also eventually made it into Proving Grounds #3 to join Chester, Decapi, and Duke for some great games. Pardoning my mother trying to shipwreck the highlight of my day, but it was still good to get the games in, even if I was last to show and first to leave :-(. One thing that did bring a smile to my face though, on the angels of mercy mission; I called for a reload before we continued on, b/c I had 18 rounds left and we were moving into 2 small rooms, followed by a hallway and 2 very large rooms without much time to reload if things hit the fan. When I completed our reloading drill, (EL) Duke stepped out of formation and asked us if we had ever seen this before, leaving all of us flabbergasted to figure out what he meant lol -> every thread angel was covered perfectly by the element, from gun down to gun up.

That made my day :-)
Just once, I wish someone else in this family knew how to keep a schedule... dang nab'it. Well, o be fair there is at least one besides myself; but Uncle Pat was a coast guard captain, if he's late, ya start to worry lol. Otherwise I'm about the only one who knows how to manage time... in a manor that approximately works.

I woke up around 1028R, my brothers not here. I was woken up around 1156R to find out he called a few minutes ago, to say that he was just starting out; our mothers been up since 0800R. And the other day, he said he was going to be here early [in the morning]... Well, I'll probably be out of battery charge on my laptop before he even gets to the city limits... the putz !!!

Was dreaming several things, but I remember dreaming that I was going through CQB training before I was woken up. The last thing I remember, was 2 man stack, kick it in, he moved left, I took right. Tango across my sector, 2 to the chest with a single action revolver; made it to my corner, then sliced the pie around. Two more tangos, put a quick shot in the right ones chest, then the left while advancing, then cycled back and put a head shot in each, right to left. Then dropped to one knee shouting "GUN DOWN" and started reloading the revolver as my teammate took up a cover position from his point of domination; 6 in the can, "GUN UP" and moved out...

Something like this:
|  y                       |
|            T           T |
|   /--------------\      T|
|   \______________/       |
|                          |
|               ___x___x___|
|Y             x|          |
|--  -----------|----------|
X=Spidey01's way point
Y=teammates  way point
T=tango position

Which reminds me, there are supposed to be some team games on PG#3 today hehe :-)

running off the deepend

Well, finished one portion of my docs (Grrr... wasting time in #kde-chat and #vim lol); even got one of the manual pages written out.

Ya know, with the mdoc.samples(7) and mdoc(7) manual pages + a few simple manual pages for reference (head, cat, pkg_add) the process of writing a manual page is actually much less painful then I remember it being. I've only got one small problem so far, thin I'll post on daemonforums later and see if anyone has an idea; if not I'll probably have to adjust the man pages wording a lit' bit.

nroff/troff is also strangely addicting once you start playing with macro packages...

Scientists turn Tequila into Diamonds

Me thinks the next fourty years or so will be interesting, hehe :-)

Friday, November 7, 2008

It's been a very tiring week...

It's been a very tiring week...

Decided to install F.E.A.R. and have some R&R. It's not particularly my kind of game, but he AI used by the opposing forces is awesome. Heck, ambushed a few replica soldiers, moved my way through the area along the flank - only to be ambushed from behind, by one that hid and waited for an oppotunity. Of course, a quick drop to slow-mo, a 180' and leaping into the air for pair of double taps from my dual .40cal pistols, and finishing it with a pistol'whip put the thread down quickly. FEAR is about the only game I've played when one has a chance to do both CQC and handle multiple-shooters the right way, b/c there are usually several coming out of the word works lol. Was trying to flank and ambush a squad and got detected, I pushed on - impact grenade to mash their right, fell back on the centre and bounced between the flanks to keep them busy.

The last replica solider climbed through a gap in my cover for a little face to face, so I kicked the putz back through it ;-)

About all that is missing is access to a knife in the meelee action, like a yung Big Boss once said - sometimes in a fight, a knifes more useful then a gun. Ahh, anyay good for stress relief. Now it's time to get my docs & notes prepped for an up comming project meeting. If I'm _really lucky_ I might even have some test code ready op, but with my family... *sigh*

Which reminds me, my brothers do over tomorrow to waste my time, lol

Hmm, it's times like these that I really wish I had picked up more troff.. but LaTeX does the job well enough for what I need. With luck, by meeting day I'll have all my files done, and my laptop updated & ready to rock'it as well.

Thursday, November 6, 2008

Writer's Block: A Little Light

Now that the election is over, we can get to the important stuff. Why is there a light in the refrigerator but not in the freezer?

Submitted By vivichick
Live Journals Writer's Block


Wednesday, November 5, 2008

The problem with typing to quickly

Check if the program 'named' is running and listening. I don't know off the top of my head if /etc/rc.d/named supports the status command or not (rc), but finding out if it is running the hardway is still easy.

I'm not familiar with any of the dns/ apps in ports, so I can't say what name they would run under; but I'm sure someone here would point it out.

$ ps xa | grep named
   ... is named running?
$ cat /var/run/named/pid
   ... does the pid file exist?
$ netstat -n -p tcp | grep 53   -- s/tcp/udp/
   ... is anything listening on the usual port?

-> Assuming that the standard issue name server was used, you may want to check named.conf first, in case the settings were changed. On FreeBSD I believe this is etc/namedb/named.conf.

I really should check my posts for typo's more completely, before I make an ass of myself so easily.... at least J65nko spotted it. Most times I try and check what I write, but after work, it's not exactly a high priority - compared with finishing the sentence before I get AFK'd for the umpteenth time lol.
Well, I've generally set a course... In the short term, I have a few goals of immediate concern:

  1. Get my school work done (how boring...)
  2. Improve my understanding of (useful) mathematics
  3. balance getting work done

I need to begin making more progress with my schooling, what I've got on the plate right now is in no way challenging... beyond time constraints; every moment spent on homework is less on every other pile of shit in my todo-box. I also want to try and teach myself more about mathematics, both to prepare for harder stuff, and because I'm generally interested. Although, I think writing a device driver would be easier then reading some of the notation without something like this.

One thing I do bloody well know, I'm using bc(1) for the leg work. Although I never used a calculator in doing homework before, I also ain't used a pencil to solve a math problem in ages when walking around ^_^. I type with 10 fingers both out of need and love for efficiency; time is precious!

For getting stuff done, that's generally the one thing that does hit my schedule. That's one of the reasons my homework always piles up... I figure though, if I can properly split my time, and not have to compromise the other parts.. I might actually get something done eventually!

Do not worry about your difficulties in mathematics, I assure you that mine are

-- Albert Einstein

Now that quote really makes me feel better.... lol.

Tuesday, November 4, 2008

how to apply pc-bsd updates manually

how to apply pc-bsd updates manually

Writer's Block: A Conspiracy of Beards

November is National Beard Month. Muttonchops, Van Dyke, goatee, soul patch, ZZ Top–style—tell us about your own wild and woolly facial fuzz. Even better, post a picture.

Submitted By cwcsonichu
Live Journals Writer's Block

From 5 o clock shadow to looking like Chewbacca the wookie.... I think I probably shave like every 3 to 5 months or something lol.

Monday, November 3, 2008

I have no idea if I'm working tomorrow or not, but I hop I'll get the day off... The weekends been more or les a total ash out. If I'm working though, it'll be a full day. I come from a family, where we go to work unless your head is practically falling off lol.

Hehe, that reminds me... Some funny news, my brothers supposed to be getting a physical this week. Oh man, this is going to be funny, I hope he doesn't faint! his is a guy, who chose to who made us all go out of state for his wedding - just to avoid a blood test!

I have more that I want to write, but to little energy and not enough time. If it really is 0800Z and I /am/ working tomorrow... I best get some shuteye, it's a hell of a day.

Sunday, November 2, 2008


Crept into the kitchen, got a glass, knocked over the cap to a travel mug, and made it to the fridge for some OJ. Like, can I make any more freaking noise!? At this time of night, the sound of a plastic cap falling ~a metre to the ground is loud enough to give away ones position (to my ears anyway) from half the building away...

Stealth is my specialty, I'm generally good at being unobserved and when desired, and I can be very silent in my movements - when I know the environment well, even more so. But every now and then, I just fsck up :\

*sigh* all I need is to end up in round 1,000,346,412,782,965,000 of annoyance !!!
My families more or less managed to consume or destroy all parts of my life, about the only thing they've yet to dig into is [SAS]. Fuck... I couldn't even get a space on the couch, instead I'm balanced off the side, foot stuck on the corner of a stand and who knows wtf stabbing me in the backside. What will they leave me with next? A throbbing head, a soar backside, numbed hands, crink in the neck by tomorrow, and legs that are as good as ten feet ahead of the rest of me, for the speed they move at.

I don't know if I have any hope left at this point, those hat know me best, would probably find irony in that. It's like, the more I try to get ahead, the further behind the eight ball I end up :\

Saturday, November 1, 2008

Sheesh.... What a crazy night.

I was exhausted by the time I went to bed, so I figured I'd lay down, watch TV, then switch to the laptop. Next thing I know, I've slept through the entire movie, and it's almost 0330Q... So screw it back to bed. Woke up around 0940Q, to early.... Back to bed lol.

Between all of the sleeping, I've had some of the craziest dreams :\. From a singing math teacher from hell (don't ask lol), and getting even with him years later. To leading a human insurrection against a wave of Terminators; I forget just how effective the aerial HKs could be, but at least I was smart enough to keep the location of our forward operating base secret. All the way to what's probably best described as Star Trek meets the Invasion of the Body Snatchers. ALl the way to various engagements with Orcs; both peaceful and combat filled encounters. Even a stint best described as a mixture of being stranded in deep space Orc country, and a bad Babylon 5 episode. Hmm, I wonder what those human star-fighters were called, ain't gotten to watch B5 in over a decade lol.

And even ending up in Raven Shield, wasting tangos, sneaking around, meeting a tango that was bullet proof, meeting a tango that was in "spectator" mode, and oy...

One great thing about dreaming, and knowing your dreaming -- when you enoucnter a super tango... shoot him about 20 times, reload, put 2, then 4 rounds more into him (centre mass and head). Then when the tango finally gets close to you and start shooting back, unlike in the video game...

You can tell the tango to go to hell and ignore him lol.