A small shoot yourself in the foot, coders moment.

Being bored and lacking further ops I can get done before bed, I picked up on tpsh again. In look for a quick challenge, I noted that the git repo was still on the ‘codegen’ branch. Basically, a branch to test the idea of generating the execution code on the fly per command sequence.

As a quickie of interest, I picked up the generation phase for the for-loop. Then I hit a road block. Since my shell expands variables, globs, and aliases quickly during tokenization. The reason being, the input field separator ($IFS) and quoting rules determine how this shell splits text into ‘words’ or tokens for the execution mechanisms—you could say it’s “On the way there”, thus deals with it as it comes. Currently tpsh handles environment variables by fouling around with the programs own idea of the referenced environment variables (%ENV) without any distinction between exported and unexported variables. My intentions have been to use a more controllable interface for shell variables at a later date, since it is kind of a low-yield concern at this stage of development.

I see several choices:

a/ redesign how things work (obviously this is the whole story, lol), saving the issue until later when other components have matured to match.

b/ leave expanding environment variables (etc) until the last minute, I don’t like this idea.

c/ have some way of retaining things that can not be confirmed until later, with an indicator to strip out or expand the remainders at the last minute (this gives me visions of ugly code)

d/ incorporate the code generator closer into the process, so that things get expanded only after they have been confirmed, but generated as soon as possible (a more multiple pass focused design comes to mind).

a is basically a worry-later, and see if other things that needs doing either fix or exacerbate the problem (this is a two edged flaming sword). b is possible but would take a lot of reworking crap, and IMHO result in an ugly LA phase and become prone to introducing bugs into the final results. c sounds simple enough at first glance but I do not see a method that I’m willing to live with. I worry about how easy d would could confuse readers, and what danger a slip up on it could do the results.

For now, I intend to not worry about the minor issue, until after variable handling matures. Because I really love how expand_quotes() works, and that is the best part of the whole program IMHO. Needless to say, tpsh has poor handling of shell/environment variables and has had it throughout its development, since growing the code can wait longer then the other parts.

Not to mention the fact that tpsh has mostly been developed under sleep deprivation in the first place…. lol

edit

In the time it took to submit the entry, type ‘shutdown -p now’, put away the computer, and take a quick leak: I came up with another solution. Give the code that expands variables an understanding of how they are defined, rather then only how they are referenced. Not only would checking if a referenced variable was just defined in the same set of input work with ‘for X’ and ‘for X in …’ like constructs, it could also be used to implement the ‘VAR=… … command …’ syntax at a later stage 🙂

The way expand_quotes() invokes the other expand_* procedures, we would need adjustment before the syntax of prefixing commands with variable settings could work, yet implementing the for-loop in it would be trivial, since anything that would cause the statement to get broken into an unusable token set before defining said variable and attempting variable expansion on it, would also be a usage that gets around for’s keyword status!

Problem solved with less fuss, maybe? It is amazing what you can think of while taking a piss!

More [SAS] Dept. of Agriculture

My work on the ‘[SAS] Dept. of Agriculture’ is nearly done, I have only 3 rooms left to do major work on, plus the “special” insertions hehe.

The goal is to be able to use the fire escapes outside the records room to gain entrance, replacing one of the spawn points. I may also modify the front-entrance spawn, so that the team spawns “outside” in a armoury room rather then the reception area. The building is supposed to be a mock-up for a hostage rescue after all, not purely a traditional map: so it wouldn’t be a big realism problem :-P.

Alcomplishing those aims appears to be easier then I expected. The real challenge at the moment, is I very much would like to erect breachable “Barricades”, that will have to be shoved out of the way. Getting that working so far has been of no real luck.

Today I woke up feeling like microwaved crap and a headache to match; you have a pulse, you report for work—that’s the way it is.

The thing that really cheered me up today, was my roughly annual periodic weigh in. Last year it was like 180~182 lbs (~82kg), today the scale read 160 lbs (~72.575kg) which is a much more comfortable range for me… lol. I’ve never wanted to go much past 180, and for much of the last decade, have been gaining around 10lbs (4.5kg) a year.

What’s changed between today and the last time I set foot on a scale? Not a whole lot really, the real food in my diet is likely worse on calories then ever before; but I have largely cut out junk food and snacks. When I do snack, it is usually something healthy like a bowl of Special-K or a banana. That being said, I only eat about 2 meals a day lol.

For virtually my entire life I’ve only had soda as my staple drink, usually about 1 litre a day. In 2008, I basically switched totally to drinking water at roughly 1 1/4 to 1 2/3 litres a day.

When it comes to exercise, I basically get none outside of work and walking the dog. The last several years have had my room used for storage and laundry racks, resulting in a bogus amount of space—being cooped up in this hellhole doesn’t help either. Who knows, maybe misery and depression are a better form of weight loss then diet and exercise… :-/. If this toe ever gets back to a suitable point, that I can accomplish reverse lunges without stumbling, I can start exercising. Moving things around and systematically pushing crap out, has helped double my effective free-space in my room…. and a major goal of Operation Redeemer is the freedom to GTFO of here periodically.

Normally I carry Willow out to where we walk, and occasionally let her walk the way home: if she will cooperate. Today, I told Willow that “You probably need the exercise more then I do”, and let her jog there. When it was time to come home, she looked at me with a nasty glint and decided we would jog home—and pooped out along the way! Hahahaha!

Who knows maybe Operation Redeemer would be good for my health, if family doesn’t chuck a spanner down its neck…..

Recently I have been thinking about 2 items on my bucket list. More specficially, the two most integer goals…

My thoughts on it haunt me, and the probability of ever seeing those core desires realized is an especially depressing thought. Those that know me fairly well, could likely hazard a few guesses at what those desires are, and hopefully get at least one right lol. I am wondering, even if I ever see them realized, will there be enough left of me, to furfil them? Alas, only time will tell that tale.

Time, such a precious commodity, like a grain of sand slipping through the neck of an hour glass Oh how I wish I could see my goals bear fruit…

[SAS] Dept. of Agriculture, continues

I’ve been working on the map some more tonight and have made some decent progresses. The thing that annoys me the most is how many times the rat bastard of an Unreal Ed likes to crash! I have often cursed about hex editing programs into the Nth level of DooM—if the editor for Unreal Engine 3 games is as bad as all the Unreal 2 games I’ve used it with, I will start cursing about hex editing the editors development team into all levels of the DooM II megawad: Hell Revealed.

I don’t really wish to comment on the specific changes here, mostly because I want the map to be usable as a Live Operation during its unveiling :-D. Needless to say, it is still the same map but it will not be the same. As long as I can get the stuff rigged up for the fire escape spawn point, I think people will enjoy the map hehe.

What dreams came

Around 09:39 or so, I was woken up because the car cover came off the car, and had to be put on. When that was done, I just went back to bed… oy what a set of dreams!

I dreamt that it was raining cats and dogs and Ma went out the door to check the car cover; Willow almost ran out the door before I could catch her. In real life, Willow always runs and sits near the door, as ma says, “She knows where her bread is buttered”, but of course I’m paranoid about peoples safety lol. Then to make it worse after I caught her and ma came back in, I explained and turned around…. and see the parakeet Mikey sitting on my table, and creep over to scope him up before he can fly away—and end up dog food.

Then I woke up and fell back asleep a little while later. It was raining cats and dogs and I explained what I had just dreamt. Then it hit the fan, the bird got out and I managed to catch him before the dog. When I tried to put him back in the cage, so I could fix his enclosure… I found that the cage had come apart! It had just began to unravel and decompose without reason, which is a big problem. So here I am standing with the bird in my hands, rapidly losing weight and feathers—in real life Mike is a fat and pampered parakeet lol. As often seems to be the case in my dreams, my family ends up just being totally freaking worthless whenever I need help :-/.

It’s only when I dream of something normal, and not purely fantasy, that I generally get concerned….

Metal Gear Solid 3: Snake Eater, Theme Song



What a thrill
With Darkness and silence through the night
What a thrill
I’m searching and I’ll melt into you
What a fear in my heart
But you’re so supreme!

I give my life
Not for honor, but for you snake eater
In my time, there’ll be no one else
Crime, it’s the way I fly to you
I’m still in a dream of the snake eater

Someday you go through the rain,
Someday you feed on a tree frog,
It’s ordeal, the trial to survive
For the day we see new light

I give my life
Not for honor, but for you
In my time, there’ll be no one else
Crime, it’s the way I fly to you
I’m still in a dream of the snake eater

Writer’s Block: I Can Relate

What fictional character do you most identify with?

Live Journals Writer’s Block

One fictional character that I can strongly identify with, is the Jack aka Big Boss from Metal Gear Solid 3.

Obvious spoilers warning

Tom: There’s one more person I want to introduce you to, Snake.

Snake: ?

Tom: Speaking of snakes, you remember The Boss, don’t you? A legendary soldier and your mentor. Actually, it was The Boss that got the DCI’s authorization in the first place. She’s going to be serving as FOX’s mission advisor.

Snake: The Boss is?

Tom: She also helped me plan this mission. She and I were at SAS together.

Boss: Jack, is that you? How many years has it been?

Snake: Boss??

Boss: That’s right, it’s me.

Snake: …

Boss: Talk to me. Let me hear your voice.

Snake: It’s been 5 years, 72 days, and 18 hours.

Boss: You’ve lost weight.

Snake: You can tell just by the sound of my voice?

Boss: Of course I can. I know all about you.

Snake: Really. Well, I don’t know anything about you.

Boss: What’s that supposed to mean?

Snake: …Why’d you disappear on me all of a sudden?

Boss: I was on a top-secret mission.

Snake: …

Boss: You didn’t need me anymore.

Snake: But there were still so many things I wanted you to teach me.

Boss: No. I taught you everything you needed to know about fighting techniques. I taught you all I could. The rest you needed to learn on your own.

Snake: Techniques, sure. But what about how to think like a soldier?

Boss: How to think like a soldier? I can’t teach you that. A soldier needs to be strong in spirit, body, and technique – and the only thing you can learn from someone else is technique. In fact, technique doesn’t even matter. What’s most important is spirit. Spirit and body are like two sides of a single coin. They’re the same thing. I can’t teach you how to think. You’ll just have to figure it out for yourself. Listen to me, Jack. Just because soldiers are on the same side right now doesn’t mean they always will be. Having personal feelings about your comrades is one the worst sins you can commit. Politics determine who you face on the battlefield. And politics are a living thing. They change along with the times. Yesterday’s good might be tomorrow’s evil.

Snake: Is that why you abandoned me?

Boss: No. It had nothing to do with you. I already told you, Jack. I was on a top-secret mission. A soldier has to follow whatever orders he’s given. It’s not his place to question why. But you’re looking for a reason to fight. You’re a natural born fighter, but you’re not quite a soldier. A solider is a political tool, nothing more. That’s doubly true if he’s a career soldier. Right and wrong have no place in his mission. He has no enemies and no friends. Only the mission. You follow the orders you’re given. That’s what being a soldier is all about.

Snake: I do whatever I have to do to get the job done. I don’t think about politics.

Boss: That’s not the same thing. Sooner or later, your conscience is going to bother you. In the end, you have to choose whether you’re going to live as a soldier, or just another man with a gun. There’s a saying in the Orient; “Loyalty to the end.” Do you know what it means?

Snake: Being… Patriotic?

Boss: It means devoting yourself to your country.

Snake: I follow the President and the top brass. I’m ready to die for them if necessary.

Boss: The President and the top brass won’t be there forever. Once their terms are up, others will take their place.

Snake: I follow the will of the leader, no matter who’s in charge.

Boss: People aren’t the ones who dictate the missions.

Snake: Then who does?

Boss: The times. People’s values change over time. And so do the leaders of a country. So there’s no such thing as an enemy in absolute terms. The enemies we fight are only in relative terms, constantly changing with the times.

Snake: …

Boss: As long as we have “loyalty to the end,” there’s no point in believing in anything… even in those we love.

Snake: And that’s the way a soldier is supposed to think?

Boss: The only thing we can believe in with absolute certainty is the mission, Jack.

Snake: All right. But do me a favor.

Boss: What is it?

Snake: Call me Snake.

Boss: Snake? Oh, right, your codename is Snake. It suits you well.

Tom: That’s right. The legendary unit that The Boss put together during World War II was a snake. The Cobra Unit… a group of heroes that brought the war to an end and saved the world. As long as you’ve got a legendary hero backing you up, you’ll be fine. Isn’t that right, Snake?

Snake: Yeah, I can’t think of anyone else I’d rather have with me. Oh, and one more thing, Boss…

Boss: Yes?

Snake: It’s good to hear your voice again.

The young Big Boss very much symbolizes to me, someone who has yet to find their own path through the jungle. In Metal Gear Solid 3, we see Jacks entry into the Virtuous Mission: the hunt for Sokolov. The Boss warns him of the very true nature of their world: todays enemies can be tomorrows friends, todays friends can be tomorrows enemies. The game continually questions what Jack is fighting for: country, mission, and so on. With the Bosses ‘defection’ at the end of the virtuous mission leaving Jack wounded and disillusioned, Operation Snake Eater again sends him into the wilderness, yet this time with the explicit goal of neutralizing the Boss. During Snake Eater, Jack is taken prisoner by the Soviets. After beating him into a bloody pulp, Col. Volgin demands that the Boss prove her loyalty: “Cut out his eyes! I don’t like those blue eyes of his. There is nothing more important to a soldier than his eyes. You made him a soldier and now you will unmake him!”. When Eve under cover as Tatyana objects, Ocelot commences his juggling act. It ends with Jack trading his right eye to protect Eva.

I think playing through MGS3 is the only real definition of what Big Boss goes through; my best description would be a torture of life.

Surviving Snake Eater with the Bosses blood on his hands, as Eva’s betrayal reveals: the Boss had been endlessly shit on by her country (to put it lightly), yet remained loyal to the end. The boss lived in shadow and died in shadow, giving every ounce of life along the way: until even that was demanded of her service. in the end, Operation Snake Eater was all about cold hard cash, nothing else. And for that, ones such as the Boss and Big Boss were subjected to such misery! By the time Metal Gear Solid 3 ends, Jack has been awarded the title of “Big Boss”, for he has bested even the Boss. Jack lost his innocence a long the way to becoming Big Boss.

Throughout the game, Jack focuses on his missionm‐and is constantly reminded that he must kill the Boss in order to succeed. I feel that in the end, he must ask himself, “What am I fighting for?”, and search to see if this is really the path he will chart in life.

Because my feelings for my family and of my times with www.sasclan.org I have come to sympathize with Big Bosses fate. MGS3 is my favorite of the solid trilogy because it tells his story, of his coming of age. Having seen the whole thing through, I don’t think anyone who has played MGS3 could fail to understand the actions Big Boss would later take in life, be they as they appeared or much deaper; MGS4 (the only reason I would like a PS3 haha!) further explores the reasons behind the snake. In a similiar light, I ask of my self:

Are you loyal to the end?

Got what’s left of this toe in a scolding hot foot-bath with some Epsom salt; I think it is healed enough that I can eercise on it but I don’t think it has been healing properly… nothing I can do about that though. On the upside, hey at least I’ve still got the nail lol. I’ve never lost an entire toenail before but I know it takes a long time for them to grow back.

At the moment I am finishing watching Midnight Run, I love the part when the three schmucks are being chased by the mobsters helicopter—and Mardukas (Charles Grodin) is shouting, “You two are the dumbest bounty hunters I have ever seen! You couldn’t even deliver a bottle of milk!”, it just tickles my funny bone xD.

Spent most of the day playing SWAT 4 as seems to be the usual for right now. During the early phase I basically had to get a bunch of inexperienced people under control, but hey – I like orderly tactics. And when I am Element Leader, people get in line or they get taken offline ;). I organized them into a basic strike, secure, cover group. 1 and 2 man would be responsible for clearing the room, 3 and 4 man for securing contacts and weapons, while 5, 6, and when present 7 man stayed in the corridor to watch our backs. Very simple clearing techniques. I found it particularly well suited for dealing with a large amount of untrained people, while trying to avoid the usual massive conga-line-of-sloppiness and massive headless chicken problems of such a situation. People soon got the idea, and within a few maps I was able to transition to using RED / BLUE team call signs for the two groups; culminating in a simultaneous take down of 3 sectors at once by a 7-man assault force (of which I was basically the only seasoned idiot). Later on after our element had shrunk back to a more manageable size (4-5 instead of 6-7), I soon was able to take a break when [SAS]_Trp_COT showed up and started his EL practice for the day.

Sunshine

Just finished watching a film called Sunshine, a bleak future where our sun is dying and Earth being subjected to the deep freeze. Our last hope is a starship named the Icarus II, on a go for broke mission to drop a “stellar bomb” made with all the Earths remaining fissionable mass, into the sun with hopes that the detonation may jump start the sun and spare humanity from its cold grave.

I’m not really a big student of Greek mythology, let along mythology in general (never had the chance) but I do know of Icarus – who flew to close to the sun, and died as his wings melted away from the heat. I can’t think who in their bloody right mind would dare name a ship Icarus in such a dreadful scenario lol (no offense). As far as I know, it is thought that our sun should last billions of years pardoning anything truly catastrophic! And thus, only an immortal might have to worry about its eventual death: the rest of us mortals can just be worried about a planet killer sized asteroid or alien invasion obliterating our world before we manage to annihilate ourselves… be it fast or slow in coming. (I hope man lives to see GOD putting an end to our world, not our own stupidity being the cause)

Sunshine is a very interesting movie, and the stressful-confined-get-me-the-hell-out-of-here feel of some of the scenes remind me of the old Alien. I’m not even going to think about the probability of surviving the oh-shit-it’s-come-to-this emergency method of transferring 3 men with 1 suit from the derelict Icarus I back to the moribund Icarus II. I must admit however, that the Pinbacker mystery also leaves some interesting questions for my mind; but I don’t believe such a thing feasible. It almost reminded me of David Bowman from 2001: A Space Odyssey but not quite on par with the Starchild.

The thing I find the hardest to comprehend is how witihn ~50 years, could man kind possibly develop technology that could get *that close* to the sun? I compared the Icarus’s troubles with that of Doctor Reinhardts efforts in The Black Hole, id est so freaking big a problem only sci-fi could plausibly pull it off in our lifetime. Between intense heat and the amount of gravity that must surround such a beast, I just can’t fathom mans technology alcomplishing that so soon – I would be suspicious if we could even get a bomb close enough to be of science-fictional interest let along that close. That is, without advancing the stories focal point from ~2057 into some point so far in the future, that it becomes a date on the Gregorian calendar, more reflective of the numbers seen in Dunes universe—which spans some 15,000 years and leaves our calendars in the dust. I would reckon that in even seven or eight thousand years from now, the technology of the future would be to us, a satisifcation of Clarke’s third law. But by then I would expect a Death Star or something, not the Icarus II.

In some strange way it also makes me wish I had the ability and attitude to study Astrophysics :-/. Then again if I did, I would probably find watching such films to be more on par with watching an 80’s action flick lol.