Tuesday, December 30, 2008

Google Success!

So I've been trying for the last couple of days to get my ACM high school competition site to be picked up by Google. And today I checked, and it came up!!!

With the keywords "byu acm high school" it comes up as number one.


Even with only "byu acm", it pops up as the 2.5th result, under the ACM home page. I'd still say that is a success.

Here's some stuff I did:

Monday, December 29, 2008

High School Contest Page


Breaking News: I've done something over the holidays: It's a website for the BYU ACM High School contest. It can be found here: http://acm.byu.edu/hs2009.

I'm pretty proud of it because it incorporated a bunch of custom images made in photoshop, with perl and html.

I think the resistors as menu items are pretty creative and recognizable, but I had some problem with the main content panel design. I tried to make it look like a chip, but I ran into two problems:
  1. I wanted to keep at least the BYU blue as a color, and didn't want to sacrifice that for a the normal chip black color. and then I really liked the light blue color for the pins.. perhaps I should have chosen a bright yellow color for the pins to make it more realistic. However, a bright yellow would have to match the green title color as well as the BYU blue. Whatever.

  2. The second problem was that after I had completed the chip graphic on the large-screen multimedia lab computers, it looked the right size. However, when I viewed it on my smaller low-res mac screen, I couldn't see all of the edges, which made it hard to recognize the pins and square shape.


My next task is to find some local tech companies to sponsor us.

Friday, December 26, 2008

VNC Server Installation

This morning I installed VNC with my dad on a Fedora Core 9 machine. This is what we did:

  1. Install VNC with yum:
    yum install vnc.i386

  2. Set an access password:
    vncpasswd

  3. Edit the servers:
    vi /etc/sysconfig/vncservers
    Uncomment last two lines. Set set the username and display number (I think you can find the next available display by running vncserver) and deleting all of the params besides the display resolution on the second line.
    It should look like:
    VNCSERVERS="3:root"
    VNCSERVERARGS[2]="-geometry 800x600"

  4. Change the firewall settings to allow VNC access: (you have to be using iptables) edit iptables:
    vi /etc/sysconfig/iptables, adding new lines for 580x and 590x, where x is the display number. (It should look like:
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 5803 -j ACCEPT )

  5. Start the server:
    service vncserver start

  6. If everything works, you should be able to access the server on a browser running java (like firefox) by browsing to http://servername:580x, where x is the display number.

Thursday, December 25, 2008

Genealogy

I just finished my gift for my grandma. She's kindof big into genealogy, and while I was in Germany, I stopped in Regensburg and found that the Lutheran records had all been moved to Nuermberg. So I went to Nuermberg, and arrived at the place like 15 minutes before it closed. In the 15 minutes, I managed to find the names and information for 6 ancestors. Rock on.
I decided that instead of just giving her the photocopies of the slides, I would try to do a little decryption out of German into Legibility. One of the guys I ran across was born exactly 195 years ago. Johann Georg Foerster, related to me through my mother's mother's side. It was pretty incredible to think that he might be watching me excitedly from heaven now...
And for those German buffs, I think that's what it says right? Friday, 24th of December .. um 11 Uhr ??? (abends?)

Wednesday, December 24, 2008

Christmas Tradition

Well, I'm home for the break with the family, and I came across a family Christmas tradition. Some night before Christmas, we always pull out the old colorized "It's a Wonderful Life" with Mr. Stewart. Of course the little kids have to get their baths first, and then we all huddle around the TV, while mom works on the finishing touches for cookies for the neighbors.

About half-way through the film, mom joins us from the kitchen, and dad starts sniffling. When the party guests come filing in at the end of the movie with money for George, dad is audibly emotional, and when George picks up the book, there is a shot of the text from Clarence - "Dear George, remember no man is a failure who has friends. Thanks for the wings, Love Clarence." And year after year, Dad feels like it is his duty to read it out loud in a sniffly voice, even though the kids who are too young to read don't really understand the rest of the movie anyway.

It's a good tradition. Lately, there has been a tradition for the older kids to take off with their friends during the movie. But this year, I stayed home. And I'm glad I did.

Thursday, December 18, 2008

Warning

So I'm studying for this Internet Programming final, and came across a slide that we didn't go over in class. It has this warning on it:
I had to laugh. It was in the network security slides. We really need to work on this. I especially liked the implementation details: "It is already possible for an assassin to send someone an e-mail with an innocent-looking attachment connected to it. When the receiver downloads the attachment, the electrical current and molecular structure of the central processing unit is altered, causing it to blast apart like a large hand grenade."

I'm glad I have been going through these class slides a second time so I am aware of the dangers I need to protect my computer (and my family).

I also liked the ... disk drive on the computer.. is that a 5 1/2 or 5 3/4 inch floppy? (My kids won't even know what a floppy disk is) (Thanks to wikipedia, I just found out it's a 5 1/4 inch drive) Perhaps hackers were exploiting the explosive properties of the floppy drives. As a precautionary measure, computer manufacturers opted for safer, less hazardous optical DVD drives..

Tuesday, December 16, 2008

Peace!

Well. Uh. Joy to the World. I got an A on my civ "Pieces of Piece" project. Only one comment on the last page: "EXCELLENT! wonderful work A". Rock on. No other marks throughout the paper about grammar problems or the mercedes/peace symbol.. Just cuz it's Christmas, I'll attribute that to good will.

Tonight we had our final for that class. We were supposed to give a presentation on how to build a Zion community. I was impressed at some of the work of the other groups (although I won't concede that ours wasn't the funniest and most entertaining presentation). One group showed evidence of increasing selfishness in the world, showing debt-to-saving ratios over the past 15 years. I found the graph they showed in class here but I can't find where they are getting their statistics from. And at a second glance, I'm not convinced that this graph tells the whole story.. granted, savings rates may be down from the 80s, and debt rates are up. For example, the blue line seems to imply a connection between the GDP and household debt. In actuality, both of these are variable, so perhaps the GDP just went down from the 80s. Whatev.

Another group wanted to try to make campus a more Zion-like place, so they found an inspirational scripture to motivate students studying for finals and printed it out on slips of paper. They handed the slips of paper out with hershey's kisses to students studying in the library. Ironically, a security guard was not pleased with their distribution of things in the library and kicked them out. He didn't want a kiss either. The group concluded that the library doesn't want to be part of Zion. Seemed valid to me.

Sunday, December 14, 2008

Saturday is a Reading Day. It's the Day we get ready for Finals.

We get two days before finals for 'reading days.' This year, one of those days was a Saturday. Yay. No classes on a Saturday! Let those students read!

But I guess today was fairly productive. I met with my civ group this morning. We're doing a project on "The Gingerbread Method" for creating peace. Basically, we've assigned different attributes or conditions necessary for peace to parts of a gingerbread house, and we're going to assemble a gingerbread house in class, explaining the components as we go. This morning we filmed infomercial-like testimonials about how "The Gingerbread Method" had changed our lives. I was "Misterstrata" and had experienced the effects of the Gingerbread Method as my wife and her friend found courage and the drive for unity which stopped the war I was participating in. .. kindof a spinoff of Aristophanes' Lysistrata.

And then I did a shift at the hospital. Two events stuck out to me.. actually three:
  1. A young couple in their twenties came in. Evidently the wife had been throwing up a couple days earlier, then she started having a tingling sensation in her fingertips, and then it started to spread. The symptoms aren't important, but it was very cool to see the interaction between the couple. You could tell that he loved her, even though she looked down in the dumps and was holding a pink bucket thing in case she needed to puke. I thought that was really cool. Even though they aren't wrinkled and gray, they still love each other.

  2. I was asked to escort a lady out of the hospital. The assisting nurse prepped me: "She is a little emotional and might cry, but we've done everything we can do for her and she needs to go home." When I got to her room, I found her sitting on her bed, crying. I rolled the wheelchair into the room, and asked her how she was doing, and if she was ready to go home. She started crying more, and began complaining about the service. She said she had been brought in a hospital, but was now being forced to leave. I helped her into the wheelchair, and rolled her out to a cab that was waiting for her. It became clear to me that this poor woman needed some attention and had probably called 911... well, I don't know why, but she did. I guess it made me realize the value of relationships. I guess I just wanted to go home with this lady and talk to her and mow her lawn (except that it snowed today) and help her feel happy... I guess I could see her as somebody's mom. And a child of God.

  3. And then after my shift I stopped by the cafeteria for a shake and some fries. There, I saw a young couple.. mid 20's. It appeared as if she was going to have a baby. I didn't talk to them, and tried not to stare, but it appeared as if the mother-to-be's mom was there, for moral support. The father-to-be kept texting people, probably letting their friends know that they were still waiting for the baby... I couldn't get over the look in the mother-to-be's eyes. It was a combination of dread, fear, anxiety, and uncertainty. I could see she was trying to tell herself that eerything would be all right, and that a lot of women go through birth and make it alive. The father-to-be was trying to convince himself that he would be able to make it through finals week, even though he had spent both reading days with his nervous wife and mother-in-law in the hospital. It made me smile. Someday, hopefully I'll be there too.


And then I came home and practiced with a girl for a musical number tomorrow, worked on some grad school apps, met with Adam from NC, and pulled the Wii out for the first time since summer. I still kicked everyone's butts at boxing. Even with my back to the screen. And then a my brother and roommate and girlfriend were watching the last Lord of the Rings.. so I went around and hung out with a bunch of people, inviting them to watch it with us. One of Adam's friends looked vaguely familiar. She asked if I had dated one of her friends recently. That was a little awkward for me because I have conjectured that after dating some girl's girlfriend, I cannot exit the relationship at any stage without my reputation remaining entirely unscathed. I believe that this is mostly due to the fact that I am too nice to girls to whom I should probably not go out with or be nice to in the first place. And then they complain to their friends that I don't get hints that they like me, and that I'm a flake and don't return their calls. When in actuality, I am very disinterested, and am ignoring their 'hints' as a courteous alternative to shooting them down point blank. Anyway, enough about me. So this girl was like "I know you through one of my friends. Have you dated anyone on the girls rugby team?" Phew. No. I didn't even know the team existed, and probably avoid such girls due to evolutionarily-evolved instincts of self-preservation. It turned out that we had both spent the summer in Berlin. Tiergarten. But we had only come in contact briefly. It took us about 5 minutes to discover how our paths had crossed. It was a very pleasurable intellectual exercise. We invited them over to see Lord of the Rings also. By the end of the evening, we had quite the crowd in our humble little apartment. Which was incidentally spotlessly clean due to cleaning checks... oh yeah, I did that this morning too..

Anyway, I just wanted to briefly mention another item of interest. For this civ class, we focused on peace and war. I guess our teacher had written a play or a musical about it, and this class was based around the play or something. Anyway, throughout the semester, we were assigned to write four papers. If we scored well on the first two papers, we were given the opportunity to do a project for the third or fourth papers. These projects included writing a song about a topic that we discussed in class that was based in the sources we read, or doing a painting or something. It turns out that one kid brought in a trojan horse made of popsicle sticks.. from the Iliad. I'm not sure how well he scored.
At any rate, for my third paper, I chose to write an essay although I had scored well on my previous two essays. I guess I felt guilty because I knew that I could spend like 10 hours on a paper, or I could spend 2 hours on an artsy project, and both would get the same grade. And because I am not the kind of person who would spend more than 2 hours on an artsy project, I decided to leave the project alternative to those students who would spend 10 hours on an artsy project.
Yeah... I was probably sleep-deprived when I developed this rational.
Anyway, for this fourth project/essay, I was in the thick of doing a ruby on rails project for another class, and was left with 4 hours to complete the project for my civ class. So I decided to ignore my guilt and spend 4 hours on an artsy creative project. I had been thinking about possible projects that would not be time-consuming but yet tickle my the creative fancies of my professor and his granola TA sidekicks.
In another moment of sleep-deprived sub-rationality, I discovered that the word "Peace" sounded like the word "Piece." And then it hit me. I would create a puzzle highlighting different elements of piece, and put them on pieces of a puzzle! Pieces of Peace. It was brilliant. And so, on the last day of classes, I embarked on a creative quest for pieces of peace. Class started at 4:35, so I had to get it done fast. At 3:30, I embarked on an important mission of "point grubbing" to try to get back points on a midterm for a partially correct reduction of Atm to HALTtm with my computational theory teacher. Which was unfortunately unsuccessful. Whatev.
Although I didn't get any points back, the worst part about the failed mission was that I returned to work on my civ project at 4:17. Including walking time, I had only 13 minutes to finish the project. In desperation, I threw together some quotes from throughout the semester (including.. I wonder if I should admit this before grades are out.. several works that I may or may not have completely read) and printed the topic headings out in large type. I cut the topic headings into puzzle-shaped pieces, and stuffed the pieces, as well as a report of the references and discussions of the topics into the only envelope-like thing I had--the plastic mailing cover to an Ensign magazine--and stapled the thing shut. I was a little proud of my clever pun and puzzle-like pieces of peace. I was ready to go.
As I was getting ready to leave, my observant brother remarked that it looked ... hm.. what were the words he used.. well, I can't remember, but it had something to do with "scrappy" or something. Oh well. It was more founded in the class sources than a popsicle-stick trojan horse. So I promptly forgot it on my desk and headed to class, where I realized that I had forgotten it. I went up after class, and noticed that several people were asking to turn it in the next day (the first reading day). I decided I could do it too, and perhaps make it a little less "scrappy" in the meantime.
So my first reading day was spent doing this: http://psoda4.cs.byu.edu/~superman/civ/peace.html. I did everything there... the html, the flash, and the background image.. except for the photo of the dove.. which I stole from someone off of google images (ps. don't search for 'dove' in google images..). I was pretty proud of the project. You can move the little pieces around, and it isn't so scrappy. Yeah. Pretty proud of that. My first flash project.
However, my bubble was bust a little when I came home and showed my roommate, Sterling, who pointed out that the peace symbol-that I had so creatively meshed with the google image picture of a dove-was actually a Mercedes symbol. Whatev. Give me a piece of that too.

Anyway, that's where I'm at. I have a final at 7 on Monday morning, so I better get some rest. So I can avoid my sleep-induced sub-rational state...

Peace/Mercedes.

Thursday, December 11, 2008

The End is Near

Thursday is the last day of the semester. I almost thought it would never come. And now that it's here, I wish I had more time.. I wonder if this is what it feels like to be dying?

Things look pretty bleak. I still have to finish a Ruby on Rails project for CS360: Internet Programming. It's a beast. I feel like I'm using one of those sterile box thingies.. you know the ones with the big rubber gloves and the little glass window (Side note.. after about 10 minutes of research with google, I discovered that this contraption is called a - get this - 'glove box'.. just in case you were wondering). Anyway, I'm using a glove box to build this website, but I can't see in the window. I'm sure there are some pretty powerful tools, and that if I knew what I was doing, it would be easy. However, I can't see what is out there, so I am forced to feel my way around, avoiding sharp things, trying to find the right tools to get this website up. Ruby is really convenient, but I feel so obfuscated from what I want to do, and have only discovered a few tools. It's pretty crazy. I spent about 10 hours on it today, and have probably spent another 10 hours on it since last week. It's due tomorrow.

And then I have a project due tomorrow for my civ class. I have thought about what to do, but I was hoping to get the ruby on rails stuff done faster, so I would have time to work on it. Shoot.

And the term paper for CS476:Data Mining is due tomorrow. I hope that goes quickly.


And tomorrow night the Davenberry family from our ward (an FHE group decided to choose a name for their family.. I decided we should call our family the Dingleport family) asked if I would practice with them as they prepare to sing a musical number at church on Sunday. And then at 10:30, I have band practice with Ricky.

Man. If I can just make it through tomorrow, I'll be set. Except that UCSD and MIT applications are due on Monday... no rest for the weary.

Tuesday, December 9, 2008

BYU


Today, I went to civ class. It opened like this:
"Did you all read the reading assignments for today?"
{faint murmuring}
And that was my cue to look the reading assignments up online and glance through them.

The first one was several statements by the first presidency on war. Knowing I could fend myself if I was called on to explain the view of the church on war, I downloaded the second reading assignment first. It is publicly available here: http://unicomm.byu.edu/president/documents/kimball.htm. This speech describes the vision of President Kimball for BYU.

Here are some highlights:

  • On studies: "This time of intellectual testing must also be a time of equivalent testing and flexing in things spiritual too."

  • "The uniqueness of Brigham Young University lies in its special role--education for eternity--which it must carry in addition to the usual tasks of a university. This means concern--curricular and behavioral--not only for the "whole man," but also for the "eternal man." Where all universities seek to preserve the heritage of knowledge that history has washed to their feet, this faculty has a double heritage--the preserving of knowledge of men and the revealed truths sent from heaven.
    While all universities seek to push back the frontiers of knowledge further and further, this faculty must do that and also keep new knowledge in perspective, so that the avalanche of facts does not carry away saving, exalting truths from the value systems of our youth."

  • On Teaching at BYU: "This university is not the place for mercenaries. The Revolutionary War was lost by the British, partly because they employed mercenaries to fight for them. But the winning colonists had a real cause. If your salary, which we hope is adequate, should be incidental and your grand and magnificent obsession would be the youth and their growth, their vision, their development, I would hope that each of you in joy and peace and satisfaction would continue to lift the souls and carry forward the character-building program."

  • "Our Brigham Young insisted, 'Learn everything that the children of men know, and be prepared for the most refined society upon the face of the earth, then improve on this until we are prepared and permitted to enter the society of the blessed--the holy angels that dwell in the presence of God.'"


So basically, I'm pretty humbled to be have been chosen to study here. I hope to be able to contribute to the prestige and success of BYU. Perhaps I should be doing better with my reading assignments...

Friday, December 5, 2008

Perl array to hash

For all of you perlers (meaning: me), here's a cool array-to-hash function:

my %color = map { $_, 1 } @color;

Got that from http://www.artima.com/forums/flat.jsp?forum=166&thread=148392 who evidently jacked it from Effective Perl.

Pretty cool huh?

Tonight we watched "The Mouse That Roared" (See Wikipedia for a synopsis) for my civ class. It was pretty funny. Some interesting things I noticed:
  • The obvious cold war influence

  • The flags all had 48 stars on them. I guess I've never noticed that before. The movie was released in 1959, the same year that Alaska and Hawaii joined the Union.


Yeah. Good times.

Thursday, December 4, 2008

Big Day

Well, today's a big day. I broke the 300 friend mark on facebook. That really means a lot to me. I'm what's known as a passive facebooker, which means I generally facebook only once a month, so when I got on today, I added 11 new friends who had requested friendship, putting me at 310 friends. But among those friends are two brothers and a sister, and my dad - who I am convinced got a facebook account after a doomsday sermon in RS convinced my mom that facebook was the only good way to keep an eye on the dating lives of her children - so I guess I am at 307 + 3 family members.

Today is also a big day because it is means it's T-minus 7 days until classes get over. I'm pretty excited, and have a big list of things I want to get done over Christmas break.. including catching up on the 311 hours of sleep that life owes me. I also hope to write some convincing grad school essays, kick off a city little league baseball website, look into getting a part time temp job, and go skiing a couple of times. We'll see, though.

The singing class I'm in is getting a little crazy for me. For the last two weeks of class, class members bring music for songs they have chosen to class, and sing them in front of the class, with the teacher helping them. Next week, they will sing the song for the final test. This doesn't sound too stressful, unless you are the pianist, who has to figure out how to play 20 new songs by Monday.. and I only have the music for 10 of the songs. Oh well. It'll be good for my sightreading. We've been doing a pretty standard warmup for class these last couple of weeks. We do the octave lip buzz going up, and the nasal 54321 going down. We finish up with a "eh oh-eh-oh-eh oh-eh-oh-eh eh-oh" drill going 5 3423 1201 51 -- going up and down. It's fun.

Oh, last night the orchestra had a concert. We played a tuba concerto by Vaughn Williams. It was pretty uninteresting, but pretty nonetheless. The entire cello section, as well as several other sections including the basses and violas got lost during the second movement. Whatever.

Breaking news: a fellow labworker has recently discovered the value of doing things that are not school. He almost wishes he had discovered it sooner. That's nice.