Tuesday, April 28, 2009

Terminal

A little while ago I installed Ubuntu 8.10 onto my desktop, along with Windows XP. Truthfully speaking, the only reason I boot into Windows more often is because I have a program that lets me watch tv on my computer (which is nice seeing as how I don't currently have a real tv).

Anyway, after changing most of the Ubuntu settings so that things are the way I like them; I realized that I still hadn't "fixed" the terminal size. Well at first I did a little Google search to see what the necessary command(s) I would have to run were. However, most of what I found required me to make a launcher, which I didn't want to do. Though I have a feeling that this is the way I solved this issue when I installed Ubuntu onto a portable HD for my laptop.

Finally I found a much nicer way to change the default terminal size. Here it is;

1) Open up a terminal

2) Tyep the following:

sudo gedit /usr/share/vte/termcap/xterm
*in the above you could replace gedit with vim if you wanted, but I just like using gedit personally.

3) Find the following line:
:co#80:it#8:li#24

4) Change it to the following:
:co#A:it#8:li#B
Where A and B are the dimensions you desire. (Your teminal will have dimensions A x B)

Thursday, April 23, 2009

Daydreamin

Yesterday I went to a Lupe Fiasco concert. Definitely not an experience that will be forgotten any time soon. My only complaint would have to be the excessive use of strobe lights, though after a while I did manage to get used to them.

There was one song in particular that he performed that stood out more than the others. Not because of the lyrics or the beat, but rather because of a past experience that involved the song. I won't go into what the experience was on this blog, but you will get a video of the song, along with the lyrics.




Lyrics:

Daydream
I fell asleep beneath the flowers
For a couple of hours
On a beautiful day
Daydream
I dream of you amid the flowers
For a couple of hours
Such a beautiful day

[Lupe Fiasco]
As I spy from behind my giant robot's eyes
I keep him happy 'cause I might fall out if he cries
Scared of heights so I might pass out if he flies
Keep him on autopilot 'cause I can't drive
Room enough for one I tell my homies they can't ride
Unless they sittin on the shoulders but that's way too high
Let's try not to step on the children
The news cameras filmin
This walkin project buildin
Now there's hoes sellin hoes like right around the toes
And the crackheads beg at about the lower leg
There's crooked police that's stationed at the knees
And they do drive-bys like up and down the thighs
And there's a car chase goin on at the waist
Keep a vest on my chest
I'm sittin in my room as I'm lookin out the face
Somethin to write about
I still got some damage from fightin the whitehouse, just a

Daydream
I fell asleep beneath the flowers
For a couple of hours
On a beautiful day
Daydream
I dream of you amid the flowers
For a couple of hours
Such a beautiful day

[Lupe Fiasco]
Now come on everybody, let's make cocaine cool
We need a few more half naked women up in the pool
And hold this MAC-10 that's all covered in jewels
And can you please put your titties closer to the 22s?
And where's the champagne? We need champagne
Now look as hard as you can with this blunt in your hand
And now hold up your chain slow motion through the flames
Now cue the smoke machines and the simulated rain
But not too loud 'cause the baby's sleepin
I wonder if it knows what the world is keepin
Up both sleeves while he lay there dreamin
Me and my robot tip-toe 'round creepin
I had to turn my back on what got you paid
I couldn't see half the hood on me like Abu Ghraib
But I'd like to thank the streets that drove me crazy
And all the televisions out there that raised me, I was

Daydream
I fell asleep beneath the flowers
For a couple of hours
On a beautiful day
Daydream
I dream of you amid the flowers
For a couple of hours
Such a beautiful day

Daydream
I fell asleep beneath the flowers
For a couple of hours
On a beautiful day
Daydream
I dream of you amid the flowers
For a couple of hours
Such a beautiful day

Tuesday, April 21, 2009

Drains

This post just made my day. The next time I have a blocked drain I am totally going to try this.

http://hpuew.blogspot.com/2009/04/bi-carb-soda.html

Monday, April 13, 2009

Christina Aguilera

I was on Yahoo reading an article about someone's 10 Finest DIVAS. Here is what they had to say about Christina Aguilera.

She almost made my pop list, since I enjoy her as a radio pop star, but you know the inside line on Ms. Aguilera is how unlike so many of her contemporaries, she can actually sing! Imagine how exciting that must be for the studio engineers and record producers who work with her. It's like hiring an electrician and discovering after he leaves that your house now has actual electricity and the light switches all work! Such competence in this day and age? What next? A CD player that doesn't break after only four years? Crazy!

And I'm not afraid to admit that I am a fan. Honestly talent is sexy and you and I both know that she is a damn good singer.

Tuesday, April 07, 2009

BigInteger

Well I now have a working C++ BigInteger class. The only problem is that so far it is only able to do addition and multiplication. I am fine with the speed of the additions since you can't do any better. The multiplication is where the main problems are located. Sure the method works but it is way too slow. I just need to figure out how to convert a string that represents a number in base 10 into a string that represents the same number in binary. Once I am able to do this I know how to perform faster multiplication algorithms. A similar problem will be converting the answer (which will be in binary) back to decimal.

Regardless I would still like to add a method for modular arithmetic and possibly division, these would just be nice to have but not necessary. Also I should probably work on getting it to handle negative numbers as well.