i'll come back at a better time
He has made everything beautiful in its time...
walrus
read my profile
sign my guestbook

Visit walrus's Xanga Site!

Name: ian
Country: United States
State: Colorado
Metro: Boulder
Birthday: 10/12/1982
Gender: Male


Interests: smashing things
Occupation: Other


Message: message me
AIM: ifYouWereCheese


Member Since: 6/19/2002

SubscriptionsSites I Read
gregorlove
urendiMaleldil
notsamclemmings
Doulas
birchswinger
cora_lynn
Sotaku
levelpath
priestwolfwood
Wait_and_See
Nerdbebo
Sparafucile
sconeGrl
truthlover

Blogrings
texas broke my heart.
previous - random - next

i'm sorry i do stupid things.
previous - random - next

The Honor Ring -- The Honor Academy's BlogRing
previous - random - next

...swallow the moon...
previous - random - next


Posting Calendar

|<< oldest | newest >>|
view all weblog archives

Get Involved!

Suggest a link

Recommend to friend

Create a site

Friday, October 09, 2009

bacon explosion
last night i dreampt that i was the lone dissenter
from an island cult run by super intelligent gorillas

i managed to somehow alert the military to the
cults actions, and then all the gorillas escaped in
a helicopter.


Tuesday, January 27, 2009

really. at 6:11am
i fell in love with the girl of my dreams last night
literally. i woke up at 6:11am in love.

she worked at the customer service desk
at Marsh grocery store on the corner of 86th and ditch
in Indianapolis

they had 2-3 racks of clothes there that i was searching through
and all of a sudden I found some of MY clothes.
i went through the rest of the racks and found
6-8 of my favorite t-shirts, and a pair of pants
that were all mine.
the camp chief ouray shirt i stole from niles
my Amos-5oh shirt
a couple other t-shirts i didn't recognize
but i knew they were mine, and i liked them
and a pair of khaki pants from Nau

i thought maybe i had dropped them outside
after doing laundry at the factitious laundry mat next door.

i took them up to the customer service desk to see what the deal was.
she knew what i was talking about when i said they were mine.
she had short dark hair and a pretty thick foreign accent.
she didn't have a lip piercing, but i think she could have pulled it off.
maybe a barbell in the lower corner of her lip

she tried to explain that she and i had both been somewhere
and one of us had put clothes in the wrong locker
i didn't know what she was talking about.
half because she was speaking broken english
and half because i wasn't thinking about the clothes.

she had written me a note, but didnt know how to contact me.
except it wasn't really a note, per se
it was like a cardboard CD sleeve
that she had written a letter on with a sharpie

unfortunately, that was the end of the dream.
i think i would have married her on the spot
if i had woken up, and she were in the bed next to me.



Friday, January 02, 2009

for the nerdy types out there
for those of you that have heard about all the Zune's that crapped out on the 31st
here's a link to the code that did it.
http://pastie.org/349916
the problem lies on line 267

for those of you that don't want to scan hundreds of lines of code
i'll summarize it here.
step one is to know that "days" is a number.  lets says its 837 (random number)
a little bit of math will tell us that 837 days is 2 years and 107 days. (on non leap years)
that's what this little bit of code is figuring out for us.

the code below is a loop. which means it will do the same thing over and over until it is told to stop.
in this case, it is supposed to stop if "days" is 365 or less
(if you're the inquisitive type, and you're actually trying to read the code, it technically says "keep going" while days is more than 365)

the line that says days -= 366 means, subtract 366 from days
it could be written as days = days -366
or, if you go back the high school,  x = x - 366
or for our scenario, x = 837 - 366   (in which case x becomes 471 )

i'll try to color code the sections later to help people read it.

anything with a // in front of it i've added (//means comments in most languages)

while (days > 365) 
{//this line is the beginning of our loop
if (IsLeapYear(year))
{ //if this year is a leap year, this happens
if (days > 366)
{ //if days is more than 366, do this part
//right here is where the problem is. this code executes if 3 things are true
// #1 days is more than 365
// #2 this year is a leap year
// #3 days is MORE THAN 366 (what happens if it IS 366??)
days -= 366;
year += 1;
}
// if days is not more than 366, it jumps from the red line to here
// in which case it does nothing. it just starts the loop over
// (the rest of the code below happens only if its NOT a leap year)
}
else
{ // else (it's not a leap year) this happens
days -= 365;
year += 1;
}

} //this line is the end of our loop




the problem with this code is that it always has to hit a line that subtracts from days.
if it doesn't, it will loop forever, because days will never become less than 365

this code, in the instance that it is a leap year, and it is day number 366 (dec 31st)
does not every subtract from days, so it loops forever, and crashes the system

there are 3 things that could have been done here.

#1. the line in red  "if (days > 366)" should have been changed to "if (days >= 366)"
that means "if days is greater than OR EQUAL TO 366 do stuff"


#2. the line in read could also have been changed to "if (days > 365)"


#3. there could been an else case added to the if statement starting with the line in red
if (days > 366)
 { 
        //subtract from days, and then continue with our loop
 } else {
        //i'm not a very good programmer
        //but i'm at least good enough to know that if i've gotten here
        //something has gone horribly wrong, and we need to exit without crashing the system
        //lets set days to zero, and move on
        days = 0
}


Monday, December 29, 2008

poetic justice
you know what the problem with books is?
they're just very long lies.
they tell good stories.
sometimes they commiserate with you.
they give you one liner quotes
that you can pull out at opportune moments.

but the next day
you still have to get up for work.
you still have to do the dishes in the sink.
you realize that the thing that was comforting you
is a fake. harmful if swallowed.

most of the time it seems very poetic and beautiful
to live from free spirited roots.
half in this world, and half in another.

dodging the troubles of each world
by embellishing the beauty of its counterpart.

when reality seems a bit cold or a little bland
you pepper it with fictional stories.
a few more ornaments. a couple fanciful details.
fantasy life left you feeling flaky? ungrounded?
throw in a dash of pain from the real world.
that will keep your feet firmly planted.

raw is beautiful right?
isn't it? maybe?
maybe?

maybe only when it's complimented with the not.
its beautiful because it has potential right?
yeah this looks bad...but let me tell you what it could be.
let me tell you a story...
a story.
a story.


Sunday, December 21, 2008

amy hit the atmosphere
when i first wrote this
i felt a little guilty because...
xanga has been good to me
mostly

but all of their new "features" have been annoying me
more and more and more
as time goes on

here's some code to get rid of xanga adds
put this in your website statistics section

<style>.left div div { display: none }</style>

<script type="text/javascript" language="JavaScript">

function isNull(val){return(val==null);}
for (i=0; i <= all_ads.length; i++) {
if (!isNull(all_ads[i])) { all_ads[i].style.display = 'none';
  }
}

</script>



Next 5 >>