Monday, January 5, 2009

BrainWyrms

random incoherence and infantile meanderings

Archive for February, 2008

Tweets for 2008-02-29

Posted by Nomad Scry On February - 29 - 2008
  • Friday. Meeting, PM, and shutdown. Its going to be a long day… And I don’t care. #
  • Peeps are tasty. #
  • Almost forgot. Happy Leap Day everybody. See yall in four years. #
  • @elegiac
    不理解。没有获得翻译。我的坏。 #

Tweets for 2008-02-28

Posted by Nomad Scry On February - 28 - 2008
  • At work, hoping my jaw is not going to be a pain. Please? #
  • So the gist of it was that first quarter sucked and expect next year to be just as bad. #
  • That was a fantastic few hours. I’m out of breath and out of patience. #
  • Gorath didn’t appreciate my dismissive and insulting attitude. Can’t say I blame him. #
  • That’s a wrap. I’m outta here and ready for some action. Like taking a nap! #
  • Listening to Dragons Landing Episode Chupa 90. Time to buy greens for the critters. #
  • Need to look into RPG system’Burning Wheel.’ It is supposed to be crunchy. #
  • Got veges at price rite. No distilled water here. Will check at stop n shop next #
  • No distilled water at Stop N Shop either. Oh. There it is. Right in front of me, Bah! #

Tweets for 2008-02-27

Posted by Nomad Scry On February - 27 - 2008
  • The snow is looking sad as it melts in the rain. #
  • Why am I getting double notifications for most of my tweets? Grrr. #
  • That was a very busy 3 hours. I’m ready for a good sit down. #
  • Holding the proof in my hands that I was right. Angry because it won’t change anything. #
  • Well, that was strange. One of the optical sensors decided to not change state. And then start working again. ?! #
  • Belatedly listening to ‘Another Here’ and getting ready for bed/a nap. #
  • What the frell? How in the world is my proggie double counting? #
  • Watching Roswell - Ask Not. #

Bubble Sort: It Works! [C++]

Posted by Nomad Scry On February - 27 - 2008

Finally, a functional bubble sort.  And all I had to do was stare at someone else’s code to see what I was doing wrong.

And then stare at it some more.  And some more.  BLAH.

#include <iostream>

int sort[] = { 6, 3, 2, 5, 4, 1 }; // Curly braces - NOT brackets.
int i, x, y;
bool z; // didn’t work until after switching to bool NOT int
int elements;

int main() {
elements = sizeof(sort)/sizeof(sort[0]); // How many elements are we sorting?
do {
z = false; // swapper is false
for (i = 0; i < elements-1; i++) { // elements-1 was the single most important breakthrough
if (sort[i] > sort[i+1]) {
x = sort[i];
y = sort[i+1];
sort[i+1] = x;
sort[i] = y;
z = true; // Swapper is true
}
std::cout << i << x << y << ” - “;
}
} while (z); // while swapper is true
std::cout << “\n”;
for (i = 0; i < elements ; i++) { // so this should go display the sorted information
std::cout << i+1 << ” : ” << sort[i] << “\n”;
}
return 0;
}

At one point, I only had the do…while loop.  Before that I had only the for loop.  Of course, neither one by itself was doing what I wanted.  As soon as I saw that in my reference program, I slapped myself.

The next thing that seemed to make a big difference was when I went from

x = sort[i+1];
y = sort[i];

to

x = sort[i];
y = sort[i+1];

and I really just don’t understand why that would matter.  I saw the same thing in PHP when I was doing my stupid multi-dimension array for making mazes.  I do not understand why, but it seems to make a big difference.  Like, from it doesn’t work - to it does work.

Next up, I stopped using “z”, my swapper variable, as an integer.  I was under the impression that when evaluating an expression, a variable equal to null/zero is equivalent to false and one equal to one was also true.  That may very well be the case, but going over to using “z” as a boolean worked much better.

Then there was the big head slapper.  No, really, the BIG head slapper.  My for loop, set to the limit of “elements”?  Arrays count from 0, ‘cuz its binary.  Dur.  Dur duh duh!  So the limit should be set to “elements-1″.  So that it also will start from 0.  [seething angrily at self-stupidity]

But even at that point, I was getting a functional bubble sort that was stuck in an infinite loop.   And the reason that it was looping?  Because

} while (z = true);

and

} while (z);

have different meanings?  If my boolean variable “z” is true, how does “equals true” differ from  “is true”???  Well, as soon as I went to the second style … that’s when my bubble sort finally actually worked.  I don’t understand.

Tweets for 2008-02-26

Posted by Nomad Scry On February - 26 - 2008
  • … woo … this week is so, so, so, so slow… can it be friday, please… #
  • Wait wait what?! Joust is ACTUALLY going to be made into a movie? I… Wow. #
  • I thought this was a FarPoint meme. It Uwe Boll involved? Geez. #
  • The Sword by Luna Brothers is turning out nicely. I’m looking forward to the next issue. #

Computer Parts [Craigslist]

Posted by Nomad Scry On February - 26 - 2008

Tweets for 2008-02-25

Posted by Nomad Scry On February - 25 - 2008
  • Up. Still dead inside. Preparing to move my computer. Again. Thankfully, am behind on my podcasts. #
  • Oscars, eh? Who cares? Not me, that’s for sure. Grrrr. #
  • Well, the computer is in a new home (again) and I guess it’ll do. Not quite what I had imagined… primarily because I didn’t measure c … #
  • 这是烦人的时候,我到过的140个字符的限制。 #
  • I just got to chat with my sister in the Ukraine. That was a treat. Здравствуйте, мало сестрой. #
  • Finally getting back to my bubble sort practice program. Yeah! It still doesn’t work, #
  • Just watched ‘Blood and Chocolate’ Not bad, but now I want to read the book. #
  • Done with the day… Done with the weekend. Quite frankly, I feel just about done. Period. #

Techno-Geek S&M what?

Posted by Nomad Scry On February - 25 - 2008

Hans Reiser, the popular open source Linux programmer and operator of Namesys, has pleaded not guilty and remains jailed without bail. His defense: his wife abandoned the couple’s children, a girl now 6 and a boy now 8, and returned to Russia, where the couple met in 1998 while the programmer was overseas conducting business.

Somehow I hadn’t heard anything about this particular case. Then again, perhaps it wasn’t all that interesting until the other day.

The father testified that, a week after Nina disappeared, he told his son to be careful of the Russian mafia and the “techno-geek S&M crowd.”

“I told him if he picked up on anybody he thought was following him, they were not likely police,” Ramon Reiser testified. (Earlier in the trial, several Oakland police officers testified that the defendant — while driving and walking — was conducting so-called “counter-surveillance” measures to avoid detection.)

Well, they do say that it isn’t paranoia if they are out to get you…

Tweets for 2008-02-24

Posted by Nomad Scry On February - 24 - 2008
  • Dr. Bronner’s Magic Soaps - absolute cleanliness is Godliness! Teach the Moral ABC that unites all mankind free… #
  • …instantly 6 billion strong & we’re All-One. "Listen Children Eternal Father Eternally One!" #
  • No meh. Scritch the kittie instead. Purrr is good medicine. #
  • Why am I having so much trouble with finding a decent and cheap surge protector? This is getting ridiculous. #
  • Going to bed now. I got myself way too worked up over surge protectors and network cables today. #

Tweets for 2008-02-23

Posted by Nomad Scry On February - 23 - 2008
  • Having spent a nice several hours playing, I am now dressing up to go dig out the car. Not whee! #
  • 80% done digging out the car. My back is starting to really feel it. #
  • I’m done. As in, finished. Baked. And other synonyms. #
  • Uh. What happened to the time? I’m late for my nap. #
  • In my basement, building my lair. Sadly, it stinks. #
  • Great. Now I stink and have cobwebs all over. Basement: 1 Me: 0 #

Podcasts for the first weekend of 2009

Posted by Nomad Scry
Jan-4-2009 I 1 COMMENT

Podcasts for Wed Dec 31, 2008

Posted by Nomad Scry
Dec-31-2008 I ADD COMMENTS

Podcasts for END OF 2008

Posted by Nomad Scry
Dec-29-2008 I ADD COMMENTS

Podcasts for Xmas Week

Posted by Nomad Scry
Dec-25-2008 I ADD COMMENTS

Podcasts for Sun Dec 21, 2008

Posted by Nomad Scry
Dec-21-2008 I ADD COMMENTS
This site employs the Wavatars plugin by Shamus Young.