Saturday, June 2, 2012

oh hai

Geeks.
The Brain Bacon of Life.
Yet, is destined to wake.
Fated to created small shiny objects.
to boldly nerd where alot of people have nerded before!

Monday, September 27, 2010

As of late

Lately, i've been reading urban fantasy novels at the rate of two to three books a day. Having acquired about twelve and a half gigs of e-books, (all sci-fi and fantasy), so i've mentally clocked out so to speak.

Given the neglect of our lovely club, i've decided to report what books i've been or currently reading. Also, my recently acquired Demonoid account assures that my collection will grow. 

my current Read: Cassandra Clare/Cassandra Clare - Mortal Instruments 01 - City of Bones

Friday, June 18, 2010

First Code Jam

Made our first meet-up, at Cafe 103. we did a challenge to make an "AceyDuecy" game in CLI, did pretty good.


#aceyduecyh code jam
#30 minute

import random

firstCard = 0
secondCard = 0
thirdCard = 0
playerBet = 0
playerCash = 1000
cycle = True

def winCheck(first,second,third):
    if third < first and third > second:
        return True
    elif first < third and second > third:
        return True
    else:
        return False

def drawNum():
    return random.randint(1,14)

def cycleCheck():
    flow = input("Continue? (y/n) :").lower()
    if flow == 'y':
        return True
    elif flow == 'n':
        return False
    else:
        print("I'm Sorry, that is not a valid entry...\n")
        ret = cycleCheck()
        return ret
    

while cycle == True:
    print("In this game, two numbers are randomly generated.\n")
    print("You then bet on weither the third number generated will be between the first two\n")
    print("You currently have ",playerCash,"$")
    cycle = cycleCheck()
    firstCard = drawNum()
    secondCard = drawNum()
    thirdCard = drawNum()
    print("First and Second numbers: \n")
    print(firstCard, "\n")
    print(secondCard, "\n")
    playerBet = int(input("Player Bets?: "))
    if playerBet >> playerCash:
        print("invalid bet...")
        continue
    elif playerBet == 0:
        print("Chicken\n")
    print("Third Number :", thirdCard,"\n")
    if winCheck(firstCard,secondCard,thirdCard) == True:
        playerCash = playerCash + playerBet
        print("YOU WIN!!!")
    elif winCheck(firstCard,secondCard,thirdCard) == False:
        playerCash = playerCash - playerBet
        print("Better luck next time")

that was mine, here's Critter's:

#!/usr/bin/python

import random

print "Welcome to the best acey ducey game EVER CREATED (by a person named Critter sitting on a couch in 103) \n"

cash = 100
while True:
    print "\ncash: " + str(cash)
    card1 = random.randint(1,13)
    card2 = random.randint(1,13)
    print "Cards dealt: " + str(card1) + ", " + str(card2)
    answer = raw_input("Pass or Bet? ").lower()
    if "p" in answer:
        pass
    elif "b" in answer:
        bet = int(raw_input("How much you want to bet? "))
        card3 = random.randint(1,13)
        deck = [card1, card2, card3]
        deck.sort()
        print "The dealer drew: " + str(card3) 
        if card3 > card1 and card3 < card2:
            print "Awesome! You win (a gambling addiction)!"
            cash += bet
        else:
            print "Bwahahahaha! Ahhahahah.... Oh geeze...\n*wipes tears of laughter from face*\nYou SUCK!"
            cash -= bet

and jacobs, aka Phear:


import random

deck = {11:'jack', 12:'queen', 13:'king', 14:'ace'}
for num in xrange(1, 11):
    deck[num] = num
money = 100
while True:
    print 'You now have', money, 'dollars.'
    if money < 1:
        print 'You are out of moneys!'
        break
    for _ in xrange(2):
        first_card = random.randint(2, 14)
        second_card = random.randint(2, 14)

    new_card = random.randint(2, 14)
    
    critterDeck = sorted([first_card, second_card, new_card])
    
    print('here are your next two cards:')
    print(deck[first_card])
    print(deck[second_card])
    
    try:
        bet = int(raw_input('\nWhat is your bet? '))
    except ValueError:
        bet = 0
        
    if new_card == critterDeck[1]:
        money += bet
        print(new_card)
        print 'Congrats, you win!'
    elif bet < 1:
        print 'CHICKEN!' 
    else:
        money -= bet
        print(new_card)
        print 'Sorry! You lose!'


Over all, i makes for a good excersice and later we'll work on collaboration. a good success. Next is OOP programming so we can do real collaborations.

Monday, June 7, 2010

Math Drill is done for now....

I just added a loop option to math drill and committed, then posted the .PY in the downloads section so it's good to go. I made sure to show proper respect to the Brain Bacon Clan and insert the Blog URL in the closing credits. Apparently i did it right before everything shifted to read-only on server maintenance day so yay me!

King Critter has made some head way in his effort to log on the school wi-fi today so kudos to him. I have no clue what Jake is up to so screw him, :P

Friday, May 28, 2010

We now have ...... a point!!

we just added a new wiki page.

It's a general overview of our policy in how we operate our club which is good to get out of the way. Politics is a dirty nasty, and kinky business that we should avoid at all costs. It's a trap! (we can't handle FAIL of that magnitude)

our mini-project all are good and properly stable and happily unstable to, so things are coming along nicely.

Also, i want you to post your IM names/services in the comments so we have a way to get a hold of each other to chat. Brainstorming is dangerous to do alone.

Thursday, May 27, 2010

New and stuff

Welcome to the Club!

Here at brain bacon, we do our best to be very lazy and very caffinated. this, of course leads to programming.

we practice the art of python-fu, and we go get intoxicated in the honor of our ancestors. 

we get realllllllllllllyyy bored. really.

Thursday, March 11, 2010

Epic n00b - a conincidence in the uncanny valley

I had bought it on a whim. Not really thinking through the decision, but things as cheap as the Xbox Zealot Console where not really heavy decisions to begin with. It was an inconspicuous  little box, same width and breadth of a ream of paper at about half the thickness. Gun-metal gray with the trademark green X logo on the center top that acted as the power button, with some USB 4.0 plugs on the front for those that still preferred the older type of controllers, next to it was two digital camera lenses that could have been mistaken for LEDs if you didn't know there true nature.

It taken me the whole of 15 minutes to un-box and hook it up to my HDTV, the instructions couldn't have been simpler comparatively speaking. Power plugs, HDMI cables, and what not. After turning it on, I went through the various setup processes, wireless preferences, name, XBL account log in, blah, blah, blah....

After the basics had been taken care of, chose to play around with the interface a bit. The NATAL cameras caught and recognized my motions in smooth and easy ways, with a wave of my hand i scrolled through all the options i had. The system came with an allotment of MS points to purchase an initial game. By my reckoning, i could get three smaller Arcade games, six Indie games, or one triple-A title. I choose a combination of the arcade and indie games. Choosing an adventure/RPG from the arcade, a fighting indie game, and another FPS from the arcade. In my reasoning a felt that this would give me a good cross-section of the games i would like.

Now, I'm no stranger to gaming, but before the Xbox 360, i stayed on the PC side of things the majority of the time. I still have my 360, it has served me well, especially after they finally fixed the red ring issues, (it took them ten damn years), and the Zealot's dashboard interface was a carbon copy of the 360's with the minor caveat's that you would expect to go with a motion control basis. Thankfully, the games were made with it in mind also.

For my first foray into untested waters, i chose the RPG game. It was called NetHACK//immersion, a descendant of the original NetHACK game, (something i had played around with, but never got into). Using the motions as prompted by the game; I learned to hack, slash, loot, equip, and cast spells through a low-resolution (but otherwise passable) 3D dungeon randomly generated, just for me. It was fun for a while, then my shoulder started hurt from making the sword slashing motions. For a moment, i considered playing a tourist. Yet i moved onto the next game.

The FPS came next, Unreal Competition edition, an updated generic first person shooter that focused solely on the multi-player aspect of the game. You logged in, chose your load out, and joined a server, then wail on the enemy to your hearts content. Miming the motions for hold a gun and jumping then squeezing the trigger all was very invigorating. Didn't stop me from sucking at it, yet still fun. I had forgotten to plug in my wireless headset, so i couldn't respond to the quasi-sexist/racist/homo-erotic taunts given by a collection of eight to thirty-five year old players. So much the better that i turned it off. After the umpteenth head shot imposed upon me, i set that game aside, and decided to try the fighting game.

I was warmed up after the first two games, and thought that this indie fighting game would be cake. It was called Martial Mayhem, where you had to fight different styles of martial arts from pretty much one-dimensional characters, but it was fun. First was the bar brawler, whom with my "nerd-fu " was no match. It worked up past karate, boxing, kendo, and so forth. Some of them took a lot of work to defeat, and even then just barely, a stark realization hit me that it had been quite a few hours since i had break. I went to the bathroom when needed however, my stomach was growling and smelled exhausted after so much moving and bopping around.

The game how ever had drawn me in and i was stuck on a character who wielded a knife, called "Mugger". It was frustratingly stupid, each time I'd thought i had his moves down, he would shift his stance, catch me off-guard, or simply charge out of desperation. Each way, he'd get me. Sweat rolled down my neck and back,  I had a serious runners stitch in my side, and i was almost certain that i was getting shin splints from the high impact aerobic work out the game forced me into. I am a nerd, who's primary method of weight loss up until now was large amounts of energy drinks and insomnia. This sudden dive into physical activity of this scale could not be good.

Why was he so damn hard to beat? The programmers must have given him super kung-fu reflexes or something. Ugh.

I was hungry, didn't feel like cooking and my small, one bedroom apartment felt stuffy from the work out i had been engaged in. Hoping in the shower, i scrubbed off the grime and smell that came from sweating so much and (out of habit) brushed my teeth. The hot water felt good as it sluiced over my aching joints. I'm in my late twenties and, although not Atlas incarnate; a fairly fit man. being an IT director for a public library wasn't something that gave you the time or necessity to be perfectly fit. I decided that the IHOP two blocks down would be the best bet, being two-thirty in the morning and within walking distance.

I dressed in some clean cloths and grabbed my cell phone, wallet, and house keys and proceeded down the street and around the corner to the lovely blue roofed dispenser of consumable happiness that is coffee and pancakes. I meandered down the twilight streets and was pleasantly startled by the street lamps flickering, and wondering why they have yet to upgrade them to the now popular OLED variants. The clean fresh air was still invigorating, though.

Just about three blocks down i took a turn down a small side street to relieve myself. I thought i could hold it until i reached the restaurant, but apparently one's bladder tends to complain when it is forced to hold a full tank while the body was near cramping as is. Fighting the urge to shiver, i finished and zipped in time to turn and see a moving pile of discarded, old clothing stand up. I stock, mouth agape in shock for half a second, until i realized it was a homeless man in a motley collection of discarded rags and coats haphazardly sewn together. I realized also that groaned in a steady rhythm opposite is heavy breathing, (not really relevant, but i did find it odd at the time. One must always be on the look out for zombies.)

He paused his groaning long enough to gruffly mumble something.
"I'm sorry, wha-?" i responded.

He let out a short frustrated sigh and exploded in anger, "I sez, gimme my money!"
"I don't have it," I explained while trying to back out of the alley, he would have nothing of the sort.
"Gimme mah MONEY!!!" he charged forth with something that looked like a knife, extended his arm to lash out and slice me.

He was mid-swing when things slowed down, and the world seamed syrupy. My mind seamed to instantly recover from the near pants-filling-terror i was experiencing not a heartbeat ago, the whole situation seamed academic in simplicity. I used my left hand, and grabbed the wrist of my attacker while simultaneously thrusting my elbow up and into his face with a forward stepping motion. I realized that he was precisely like "Mugger" from my video game, both in looks and actions. I cackled with maniacal glee on the inside as i completed the devastating maneuver i had been endlessly repeating in an effort to defeat this homeless man's counterpart. Yanking his upper body down and ramming my left knee up and into his abdomen, i felt a satisfying crunch and watched with quite a smug expression as my foe collapsed in a fit of labored breathing and spasmatic pain.

I took a deep breath of cool night air and nearly hyperventilated at at the adrenaline still coursing through my system. This feeling was fantastic, better than sex, it was just soooo....... painful?

I felt myself cast into reality, away from my revelry. Much like slamming into a brick wall i suppose. My right leg hit me with a terrible charlie-horse as punishment for exacting further physical exertion on it's already tired flesh. The rest of my body must have thought this a good idea for then i received loud complaints from the rest of my body as the rush wore off and the adrenaline crash that followed made me feel weaker than a one-legged kitten.

I, to stumbled and finally fell to the ground, grunting and gasping at the pain my own own body was inflicting upon itself. I fumbled through my pocket and pulled out my cell-phone and pain-painstakingly dialed 911.

I managed to set it to speaker-phone as a dark tunnel closed around my vision.
"911, please state the nature of the emergency," it crackled a bit, reception must have been iffy.
"hello? if you are in danger please say something so i can help," i managed to mumble at the now echoing voice emanating from my phone.
"Please repeat that, i can barely hear you."
"Dude, it was fucking EPIC!" and then i passed out.