Things have finally settled a bit, this is perhaps the closest to a proper day off yet: played Raven Shield for a few hours on the [SAS] Proving Grounds, took a break for chores and followed that up with some Quake Live, then went back to the [SAS] Proving Grounds for a couple hours. Then a few rounds of Clan Arena in QL before dinner.

I don’t play much Clan Arena in Quake Live, because it is rarely my `style` in the public servers; maybe more formal matches might be better. CA games basically amount to a round based last team standing form of competition, where everyone starts out with a Mega Health, and virtually all standarded weapons, plus plenty of ammunition; the catch of course being, there are NO power ups, no health kits, no extra ammo. You best have rocket launcher skills as well ^_^. Managed to get in a few good team games, before ending up in a mixture of 2vs2 / 1vs2 games, giving great chance to practice weapons selection and application. I also learned of a spot on one of my training maps, where you can rocket jump over (or camp on top of) a wall. One cool feature of Clan Arena mode, is you can rocket jump freely without taking any damage; it lends itself to a very fast, furious, and high octane form of combat. Although, it often becomes a crazy melee.

For lighting things up a bit, Charles Dickens Great Expectations, and Wanted. The former redefines the expression (from the more modern vernacular), of “Gee, what a small world! While the latter, is a gritty but enjoyable action flick, with some very nice fight scenes—that kid is to fighting ability, what a Terminator is to durability.

A day behind schedule, but I’ve also taken the time to burn a SMGL disk, that I’ll likely setup on my desktop, and experiment with porting code to x86_64, as well as playing Quake Live under Linux. Sourcemage is a GNU/Linux distro, that I actually found when Googling for some git operation lead me to their wiki; it also looks like a distro on par with my tastes. I was smiling the other night, when I read a section header in the install docs, about knowing thy `compiler`, until I realized it said `computer`, and my glasses really needed a cleaning lol.

Of friendships, promises, and commitments

As if there wasn’t enough stuff to throw off my focus (on non-SAS matters), looming in the shadows is where a friend will drawn their own line in regard to whether they will stand with [SAS] or apart from it. For me, it’s very hard to take, because I knew, before helping bring this person into the group, that in all probability, they would have to face this cross roads in time (in fact, rather then sugar coat that outlook for my friend, I poured a lot of salt on it early on, and left the decision to rest on their own head).

It’s the second time in my own history here with [SAS], that I will have ever have considered throwing in the towel if person XYZ chooses to leave; the first and before this, the only time, was when I spent a period of time trying to keep another very dear and tired friend from losing his faith. Some people have had the same feelings about me, that’s one of the reasons I stand tall and walk hard through the storms. I’ve always enjoyed being with the people around me, because you never know how long GOD has put them there. The thing that hurts me, is knowing that the friend in this particular question, will have to go through that rough decision, and there is nothing that I can do to make it easier for this person. Because if I could remove the issue from ever having to come up in their membership, I would trade an arm to lift that weight. All I can do, is watch, wait, support, and accept, whatever my friend chooses.

As to where my own path lays in this, I know two things. When the storm started, I made a decision very early on: that if I ever lost my place in [SAS] trying to fight it for the sake of my team as a whole, that I would sooner eat dirt and shallow chicken vomit, then serve under (thenow) NTF_LTC_Rouges command, if he started a competing unit; I won’t serve under any man who would break his word the way he did, out of spite. Like wise, my thinking reminds me, at my core… there is just this stubborn, ornery, stiff necked, tough fscking son of a bitch, who just will not lay down and die.. if it feels like walking on glass, I’ll stand on my legs and fight on, because

and for how many times in my life, I’ve had to come to that conclusion in both [SAS] matters and with my own family—I will never go back on my own word, and I gave that the day I committed myself to this TEAMs future. I will not make a liar of myself, no matter what comes of that choice, because being loyal to the vision, was a promise I made to myself, and something I have never wished to break. I’ll not stoop down to someone else’s level, and that is ironed across my soul even more, after calling Rouge on his own integrity issues; and I’ve done that to his face plenty enough times for it to matter. It is a bygone and stone age concept, but my honour will never yield to a lesser path.

Once an [SAS] man, always an [SAS] man, and I am an [SAS] man, overly tried and true to be sure, and they can type it on my tomb stone in bold if they want, because here I stand, come and get me…. WHO DARES, WINS!

Somehow it figures…

that when I finally find something therapeutically healing to do, my family has to stab until my hearts no longer in doing anything.

Some times I think, rule #0 of surviving life, is to remember that there is no one who cares.

All he could think about was I’m too young for this.
Got my whole life ahead.
Hell I’m just a kid myself.
How’m I gonna raise one.

All he could see were his dreams goin’ up in smoke.
So much for ditchin’ this town and hangin’ out on the coast.
Oh well, those plans are long gone.

[Chorus:]
And he said,
There goes my life.
There goes my future, my everything.
Might as well kiss it all good-bye.
There goes my life…….

A couple years of up all night and a few thousand diapers later.
That mistake he thought he made covers up the refrigerator.
Oh yeah……….he loves that little girl.

Momma’s waiting to tuck her in,
As she fumbles up those stairs.
She smiles back at him dragging that teddy bear.
Sleep tight, blue eyes and bouncin’ curls.

[Chorus:]
He smiles…..
There goes my life.
There goes my future, my everything.
I love you, daddy good-night.
There goes my life.

She had that Honda loaded down.
With Abercrombie clothes and 15 pairs of shoes and his American Express.
He checked the oil and slammed the hood, said you’re good to go.
She hugged them both and headed off to the West Coast.

[Chorus:]
And he cried,
There goes my life.
There goes my future, my everything.
I love you.
Baby good-bye.

There goes my life.
There goes my life.
Baby good-bye.

There Goes My Life—Kenny Chesney

Wasn’t there enough suffering before GOD invented the toothache?

For the past couple days, my teeth have been on the blink again, lol. I just spent most of the day with an excruciating pain between my jaw, ear, and forehead, of which being stabbed in the face with a knife would hurt less. I could take the amount of toothache pain itself for a week without flinching, but it’s the extra pains it causes that get to me. Having the pain at the base of my ear, makes it so even the the sound of the radio hurt, which rules out playing most games. My forehead aching like a headache from the seventh level of DooM, just makes it a pain to concentrate on rocket science lol.

I started the antibiotics on a schedule, so I won’t need to worry about taking it during working hours, and spent about an hour / hour and a half putting heat on it, to try and sooth the pain and make sure the fuck doesn’t swell up on me again. We also picked up a thing of naproxen, benzocaine, and pizza fixings; my interest is in the last two. Yes, my stomach is never far from mind o/. The benzocaine one, is basically a mild anesthetic for dealing with dental pain, a friend recommended  clove oil for the same purpose, but the supermarket didn’t have it.

Hopefully the antibiotics can keep this from getting nasty and the benzocaine product should help deal with when the pain gets nasty. FWIW the naproxen is probably better then paracetamol/aceteminophen that I’ve been making do with. I also have a small bit of Hydrocodone/Aceteminophen that the dentist proscribed for pain, but really it’s roughly equal to Tylenol lol.

When I take something, you know I’m hurtin’, because I’m more apt to slam my head into a wall first.

Updating Qt, hehe.

Tonight I updated SASs TeamSpeak 3 server, and discovered that my TS3 client was too darn out of date to work with it, haha. After updating things, I also noticed in the nifty about dialog they shipped, that the version of Qt used, denoted the GNU LGPL v2.1.

It has been a good while since I updated Qt on my windows system, last time was about one year ago. So I dropped by Qt’s website to download an updated SDK, and also found that they had MinGW and Visual C++ 2008 library packages available. Last time I really focused on Qt/C++ development, Microsoft Visual C++ was just becoming supported by the Open Source Edition (OSE), having long been supported by the commercial editions of Qt.

In perusing the website, I noticed that GPLv3 is now also a supported license for Qt. They really have gone through a few licenses over the years, I still remember when the OSE was a chose between GPLv2 and their own Qt Public License agreement.

While I really hate doing cross platform development in C++, Qt is both the least painful widget toolkit I’ve ever seen, and really makes the process *a lot* less painful. Well, as less painful as dealing with template implementations between GNU/MS C++ compilers anyway.

It is note worthy that the SDK only includes the necessary library files to link using MinGW, the port of the GNU Compiler to Windows. So if you plan on using Microsoft’s compiler, you will want the vs2008 package, or the source code if you need to shoe horn into an older version.

One thing I like about all the *decent* operating systems shipping a system compiler on their install disk, that usually means pre-compiled packages will be in sync with your compiler. Microsoft Visual C++ is not quite so lucky, since being a separate product, most people shipping binary packages of libs/headers, usually support 7.1 or 8.0 instead of 9.0. Oh well, maybe when VC10 is released :-/.

Thoughts on recent SAS resignations

The more I look at the facts, the more I am convinced that this was a mutiny in spirit. Out of the first wave of people to resign: it appears to me that there are 3 core factions to it. One group, was overruled against by GCHQ, the other carries Rasa’s infection for placing their own ways above SASs, and then there’s Rouge.

When GCHQs ruling wasn’t to their liking, it seems that a few people decided that they know better then the ones in authority. That same “I’m right, GOD is wrong” attitude has built many a house on sand… I’m glad [SAS]’s was built on titanium reinforced concrete.

A few, are people who have stiff necks and know they will never have the subversion of [SAS] that they desire, a man who once refused to teach SOPs comes to mind. This is what I mean by “Rasa’s infection”.

Some time ago, even I lost all my faith in GCHQ, when it looked like a set of RvS-centric SOPs would be fast tracked through and every word I ever said to hold this clan together would become a lie. Every member of GCHQ proved themselves to me, except for Rouge. He lost that fight, and I’m starting to feel that his involvement is because he lost, and the ideal of [SAS] as one team, two games, won out.

So I suppose, having been given judgement, and deciding that the highest court in the land is not better then their own, a few people decided they can do better.  I really pitty Timbo and Scout, if they organise a clan under Rouges armchair generalship.

A little size of fun.

Generally, I’m rather finicky about making assumptions about the sizes of types, and even conversions between signed and unsigned types. Although I occasionally skirt dangerous gronud, such as feeding a function pointer into a object pointer, and expect to be able to cast the void* back to the function pointer (basically implementation defined by C, but required by POSIX), I also tend to make notes of when (fully aware) I do things that are non portable, but not necessarily obvious. At least in the example case I just mentioned, I didn’t know that was dangerous ground until I reviewed code under -pendantic, and scratched my head at the required warning message.

Normally I take things in stride, and just cringe when I see, “Portable” software doing stupid things like using unsigned int where they mean uint32_t, or the (flawed) assumption that a pointer to xyz will be as large as an object of xyz. So I thought I’d just take a look see here, and then wrote a program to display it in bits rather then bytes, since most of the folks I know will better get the picture that way :-o.

Also being a practical man, I kind of like to know what is off the edge of the map, just in case I some day have to jump off o/.

Here is a simple program to solve my curiosity:

 #include 
#include
#include
#include
int
main(void) {

    printf("sizeof(char)t= %u-bitsn", sizeof(char)*CHAR_BIT);
    printf("sizeof(char*)t= %u-bitsn", sizeof(char*)*CHAR_BIT);
    printf("sizeof(wchar_t)t= %u-bitsn", sizeof(wchar_t)*CHAR_BIT);
    printf("sizeof(wchar_t*)t= %u-bitsn", sizeof(wchar_t*)*CHAR_BIT);
    printf("sizeof(short int)t= %u-bitsn", sizeof(short int)*CHAR_BIT);
    printf("sizeof(short int*)t= %u-bitsn", sizeof(short int*)*CHAR_BIT);
    printf("sizeof(int)t= %u-bitsn", sizeof(int)*CHAR_BIT);
    printf("sizeof(int*)t= %u-bitsn", sizeof(int*)*CHAR_BIT);
    printf("sizeof(long)t= %u-bitsn", sizeof(long)*CHAR_BIT);
    printf("sizeof(long*)t= %u-bitsn", sizeof(long*)*CHAR_BIT);
    printf("sizeof(long long)t= %u-bitsn", sizeof(long long)*CHAR_BIT);
    printf("sizeof(long long*)t= %u-bitsn", sizeof(long long*)*CHAR_BIT);
    printf("sizeof(size_t)t= %u-bitsn", sizeof(size_t)*CHAR_BIT);
    printf("sizeof(size_t*)t= %u-bitsn", sizeof(size_t*)*CHAR_BIT);
    printf("sizeof(float)t= %u-bitsn", sizeof(float)*CHAR_BIT);
    printf("sizeof(float*)t= %u-bitsn", sizeof(float*)*CHAR_BIT);
    printf("sizeof(double)t= %u-bitsn", sizeof(double)*CHAR_BIT);
    printf("sizeof(double*)t= %u-bitsn", sizeof(double*)*CHAR_BIT);
    printf("sizeof(long double)t= %u-bitsn", sizeof(long double)*CHAR_BIT);
    printf("sizeof(long double*)t= %u-bitsn", sizeof(long double*)*CHAR_BIT);
    printf("sizeof(ptrdiff_t)t= %u-bitsn", sizeof(ptrdiff_t)*CHAR_BIT);
    printf("sizeof(ptrdiff_t*)t= %u-bitsn", sizeof(ptrdiff_t*)*CHAR_BIT);
    printf("sizeof(intptr_t)t= %u-bitsn", sizeof(intptr_t)*CHAR_BIT);
    printf("sizeof(intptr_t*)t= %u-bitsn", sizeof(intptr_t*)*CHAR_BIT);

    return 0;
}


The C standard defines CHAR_BIT in limits.h, as being the number of bits  for the smallest object that is not a bit field, roughly meaning that CHAR_BIT = number of bits in a byte, for all practical intents and purposes. Like wise, the sizeof operator is defined as returning the size of its operand in bytes, as an implementation defined unsigned integer value having the type size_t, from stddef.h. For the fuckos out there, the standard also says that a char object is large enough to store any character of the basic execution set (A-Z, a-z, 0-9, space, plus the required punctuation and control characters—roughly a character set of 99 symbols that fit within a single byte), and that those characters will have a non negative value while doing it. It also declares that sizeof(char) == 1. From this we can infer that sizeof(x) * CHAR_BIT should be the size of x in bits, and that ‘x’ is basically as good as off the edge of the map, for any x that you can’t make on my grandmothers type writer.

Having the size of each type followed by a pointer to it displayed, is mostly done to emphasis that a pointer to a size, means dick all about the size of the pointer. You’ll notice an interesting connection between pointer size and your hardware however. Gee, that just doesn’t sound right, LOL.

Some examples:

Run on FreeBSD 8.0-STABLE i386:

sizeof(char)    = 8-bits
sizeof(char*)   = 32-bits
sizeof(wchar_t) = 32-bits
sizeof(wchar_t*)        = 32-bits
sizeof(short int)       = 16-bits
sizeof(short int*)      = 32-bits
sizeof(int)     = 32-bits
sizeof(int*)    = 32-bits
sizeof(long)    = 32-bits
sizeof(long*)   = 32-bits
sizeof(long long)       = 64-bits
sizeof(long long*)      = 32-bits
sizeof(size_t)  = 32-bits
sizeof(size_t*) = 32-bits
sizeof(float)   = 32-bits
sizeof(float*)  = 32-bits
sizeof(double)  = 64-bits
sizeof(double*) = 32-bits
sizeof(long double)     = 96-bits
sizeof(long double*)    = 32-bits
sizeof(ptrdiff_t)       = 32-bits
sizeof(ptrdiff_t*)      = 32-bits
sizeof(intptr_t)        = 32-bits
sizeof(intptr_t*)       = 32-bits

and FreeBSD 8.0-RELEASE amd64:

sizeof(char)    = 8-bits
sizeof(char*)   = 64-bits
sizeof(wchar_t) = 32-bits
sizeof(wchar_t*)        = 64-bits
sizeof(short int)       = 16-bits
sizeof(short int*)      = 64-bits
sizeof(int)     = 32-bits
sizeof(int*)    = 64-bits
sizeof(long)    = 64-bits
sizeof(long*)   = 64-bits
sizeof(long long)       = 64-bits
sizeof(long long*)      = 64-bits
sizeof(size_t)  = 64-bits
sizeof(size_t*) = 64-bits
sizeof(float)   = 32-bits
sizeof(float*)  = 64-bits
sizeof(double)  = 64-bits
sizeof(double*) = 64-bits
sizeof(long double)     = 128-bits
sizeof(long double*)    = 64-bits
sizeof(ptrdiff_t)       = 64-bits
sizeof(ptrdiff_t*)      = 64-bits
sizeof(intptr_t)        = 64-bits
sizeof(intptr_t*)       = 64-bits

I also have access to 32-bit versions of Windows NT and OpenBSD running on Pentium 4-grade hardware, but don’t feel like booting the wintel tonight, I’m to comfortable with Dixie hehe. Perhaps I will run the program on other systems and implementations, for the sake of testing, and add it to this entry as a comment.

Bad omen or coincidence?

Something rather odd just happened to be about ten minutes ago. I was changing the dogs potty pads, when one of my grandfathers paintings on the wall, literally tilted to one side, going crooked. In my family, I reckon most people would call that a bad omen, but me, well, I have fewer superstitions, normally.

Took a step up on the step stool, and tilted it back, when I noticed that the hanging cord sliding on the hook, looked ‘thinner’ now. So I took it off the wall, remarking that I’m too short for this stuff, and examined it. Sure enough, the old wire cord was badly frayed, practically looking like barbed wire; the spot where it’s been hanging from for years, was quite noticeably narrower then the rest. I reckon the picture probably dates back to the 60s, give or take a decade; not sure when he did most of them.

Coincidentally, the painting is of Christ on a hill top with his arms out.

Silly thoughts about the history of C/C++ coding

Note, this is meant to be taken more tongue-in-cheek then seriously, take offense at your own expense 8=).

  • All the fun C library extensions can be blamed on UNIX, less intelligent systems still don’t implement them ^_^.
  • Most of the stupid type systems out there are reminiscent of the Win16 API, watch out for the Hungarians in the group.
  • Too much programming for Windows can lead to strange tattoos, that’ll get you sued unless you’re a pioneer.
  • There’s enough C++ Hungarian in the gaming industry, to make you want to go parler français with the ladies instead.
  • If you want to sit in your own little world, stick to mobiles or Macs; or ask the Free Software Foundation for this weeks KoolAid.
  • It’s alright if you need a road map to find your way through all that DDE/OLE/COM/ActiveX/DCOM mess and their variants, so does Microsoft: that’s why they invented .NET for your InterCOM.
  • Watch out for the babes in the null pointer cafe.
  • sizeof(foo) ≠ sizeof(foo*); unless thou hast vilolated the tenth commandment.