Friday, February 5, 2010

Axe Cop

Axe Cop.

Written by a 5 year old.
Illustrated by his 29 year old brother.

Episode 1.

Tuesday, February 2, 2010

LOST

A. I discovered that Hulu now has full episodes from all seasons of LOST.
B. I have a ridiculously easy semester.
C. I have lots of free time.
D. I have watched 8 episodes of LOST Season 1 today, and figure that I can get through all 101 episodes in a few weeks.

A
B
B => C
A ^ C => D
therefore, D

Friday, January 15, 2010

One of my Favorite Movie Lines

If you've seen the movie, you should instantly know where it's from.

VoilĂ ! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of a by-gone vexation, stands vivified and has vowed to vanquish these venal and virulent vermin van-guarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta, held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers most verbose, so let me simply add that it's my very good honor to meet you and you may call me V.

Tuesday, January 12, 2010

Twitter

I am on Twitter now. I have three tweets, with no plan to add more. It's only used for my iPhone programming class, where we have to make a Twitter client for the iPhone.

http://twitter.com/denaje1337

Thursday, January 7, 2010

What Ruby Doesn't Have

  • The pre- and post-increment and decrement operators
  • Two's complement arithmetic
  • Constant constants (it's ALWAYS possible to modify or unfreeze frozen objects)
  • Declaring any arbitrary variable constant
  • Overriding of the assignment operator
Otherwise, I really like Ruby.

However, I think I love Objective-C even more. We basically learned it in a day, and it's surprisingly very intuitive and easy to use! Apple, you continue to make me a happy programmer.

Psalm 149

1 Praise the LORD.
Sing to the LORD a new song,
his praise in the assembly of the saints.

2 Let Israel rejoice in their Maker;
let the people of Zion be glad in their King.

3 Let them praise his name with dancing
and make music to him with tambourine and harp.

4 For the LORD takes delight in his people;
he crowns the humble with salvation.

5 Let the saints rejoice in this honor
and sing for joy on their beds.

6 May the praise of God be in their mouths
and a double-edged sword in their hands,

7 to inflict vengeance on the nations
and punishment on the peoples,

8 to bind their kings with fetters,
their nobles with shackles of iron,

9 to carry out the sentence written against them.
This is the glory of all his saints.
Praise the LORD.

Wednesday, January 6, 2010

Psalm 150

1 Praise the LORD.
Praise God in his sanctuary;
praise him in his mighty heavens.

2 Praise him for his acts of power;
praise him for his surpassing greatness.

3 Praise him with the sounding of the trumpet,
praise him with the harp and lyre,

4 praise him with tambourine and dancing,
praise him with the strings and flute,

5 praise him with the clash of cymbals,
praise him with resounding cymbals.

6 Let everything that has breath praise the LORD.
Praise the LORD.

Friday, December 18, 2009

2 1/2 Days

4 hours driving
13 hours sleeping
6 hours eating
1 hour showering
6 hours reading or talking
2 hours churching
2 hours waiting
28 hours working



and then she's back.

And yes, I have been micromanaging my life for the past week and will continue to do so until this presentation is finished on Tuesday. 4 days until I get my whole life back. (2 1/2 until I get half my life back)

Thursday, December 10, 2009

Tacosort

I found my new favorite sorting algorithm! It's called Tacosort, and its complexity is O(n*2^(k*n)), where n is the number of elements to be sorted and k is the bit size of each element.

http://web.ics.purdue.edu/~mabernar/tacosort/

So far my longest record is taking 1,269,829,745 tries to sort a 4-element array.

Tuesday, December 8, 2009

Javaland

I don't think this could any more accurately and humorously describe the abhorrence that is Java:

http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html

Friday, November 27, 2009

Christmas!

Thanksgiving has passed, and it's snowing outside! This can only mean one thing!

Thursday, November 26, 2009

The Most Pagan of Holidays

  1. Excessive gorging on food.
  2. Blatant American consumerism.
  3. A distinct lack of thanks.


Pessimist? No, I don't think so. I prefer the term "realist".

Wednesday, November 25, 2009

Friday, November 20, 2009

Go Blue!

The big game is tomorrow. Mandy and I have prepared by wearing our UofM apparel for the past week and only eating food that might possibly be considered somewhat close to blue and maize while avoiding any scarlet or gray colored foods (including plates, etc). Completely averse to anything I ever learned in statistics, I believe that we are overdue for our win. I have hope, and nothing anyone says to me can take it away.

Saturday, November 14, 2009

alarm.pl

This should wake me up in the morning!

#!/usr/bin/perl

select(undef,undef,undef,1) while (`date +%H:%M` ne $ARGV[0]."\n");
`ogg123 "\`find /mnt/winshare/itunes/Skillet | grep "\\.ogg\$" | sort -R | head -1\`"` while(1);

Friday, November 13, 2009

Supplements

Every day, I now get the following:
























Vitamin A70%
Vitamin C933%
Vitamin D100%
Vitamin E100%
Vitamin K13%
Thiamin100%
Riboflavin100%
Niacin100%
Vitamin B6100%
Folic Acid100%
Vitamin B12100%
Biotin15%
Pantothenic Acid100%
Calcium11%
Iron100%
Phosphorus5%
Iodine100%
Magnesium10%
Zinc100%
Copper100%
Manganese50%
Chromium17%
Molybdenum27%


...in addition to all the nutrients in my DC food (i.e., none).

I feel so awesome! I like experimenting with my body...

Sunday, October 25, 2009

Have I Been Lied To? (Again?)

The more I understand the Bible, the more I have this sneaking suspicion that I have been lied to all these years. Since grade school, we were taught that salvation is all about faith, and that there is nothing that you can do or not do that will save you. We teach such a faith-centered salvation and do everything we can to teach that the Catholics and Pharisees (the classic "bad people") say that you are saved by works, which is wrong. But I think I am finally starting to see that faith and works (i.e., deeds) are both required for the Christian walk, and that nothing is by faith alone.

Granted, the Catholics and the Pharisees are proverbially doing it wrong, but so are we by throwing in the towel on works! James 2 says, "What good is it, my brothers, if a man claims to have faith but has no deeds? Can such faith save him?...Faith by itself, if it is not accompanied by action, is dead."

Faith without deeds is useless! It cannot save you! For years, I thought that the only thing I needed to do was believe in God and have faith, and that this would save me. Well, it may or may not save my soul, but the point is even deeper than that. The point is that faith alone does not produce a Christian. Deeds/works/action is required, right alongside faith. Being the efficient person that I am, I figured that deeds were pointless if they didn't save you, so why bother to do them but to look good in the eyes of other Christians? But they do save you! No, they alone do not save you. But faith alone doesn't save you either. Salvation=faith+deeds. It's right there in the Bible, right in front of our faces, and I'm only realizing today.

Thursday, October 22, 2009

Ruby Proc Objects

In order to dynamically create methods in Ruby and then have those methods copied to a new object when it is duped, I stored the methods as instance variables of class Proc in the object and then did some pattern matching when duping the parent object to find and copy the Proc blocks. But after the object got duped, I got very unexpected behavior, as if the Proc objects that represent my dynamic methods didn't get duped. Behold:

"Proc objects are blocks of code that have been bound to a set of local variables."

Thus, duping (or cloning) a Proc object may give it a new object id, but it doesn't re-bind the variables. It'll still reference the same variables it referenced before. Good to know.

Best Joke of the Year

Courtesy of John Tibble:

A tachyon says "ow" and then walks into a bar.

Wednesday, October 21, 2009