Archive for the ‘Uncategorized’ Category.

The Tree Sitters of Berkeley

If you walked along Piedmont at the top of UC Berkeley’s campus sometime during the last months you would encounter an interesting sight – several people sitting high up in the oaks surrounding Memorial Stadium. These days they camp outside the fence erected to keep them out. What do these tree dwellers want? They are, according to their campaign boards, saving the trees. Since the University wants to upgrade memorial stadium by building a new complex where these trees are currently growing.

I’ve been fairly neutral in the situation – yes, i like trees, and berkeley happens to have lots of ‘em – but on the other hand i dont really see why those 38 oaks are the most important trees to fight for. I’ve been strangely pursued by a letter posted on craiglist, that made sme extremely valid points. Read it here:

http://www.craigslist.org/about/best/sfo/466281874.html

The main point that the person makes, which I have come to support wholeheartedly, is that those 38 oaks are not endangered and are completely negligible against the deforestation happening in the Amazon. The man-power of these protesters and the police that are forced to check up on them are much better spent in places where it would actually make a difference!

Wanna reset your MySQL root password on Ubuntu?

Its easy!

sudo /etc/init.d/mysql reset-password

SVN: Converting from BerkeleyDB to FSFS

I’ve been working with Marcello on http://2draw.net/ and after posting up the Alt framework we’re working on (http://alt.cellosoft.net/) onto ajaxian.com our SVN suddenly stopped working. What a mess, eh? Indeed. BerkeleyDB was apparently at fault, since our DB got corrupted as we were being hit by the masses.

Since we have about 8 repositories, I wrote up a little shell script to do the housekeeping in making the transition. The usage case is pretty simple:

$ ./convert.sh repo_dir

be sure to run this with the pure repository directory, no trailing slash!

<br />#!/bin/sh<br />echo "Converting $repo from BerkeleyDB to FSFS"<br />repo=$1<br />echo "Dumping to $repo.svn.backup"<br />svnadmin dump $repo > $repo.svn.backup<br />mv $repo $repo.bdb<br />svnadmin create --fs-type fsfs $repo<br />svnadmin load $repo < $repo.svn.backup<br />chown -R svn:svn $repo && chmod -R g+r $repo<br />cp -R $repo.bdb/conf/ $repo/<br />cp -R $repo.bdb/hooks/ $repo/<br />rm -rf $repo.bdb<br />rm $repo.svn.backup<br />

Shaders!


I’m late and I have interviews to get to, but here is the fruits of my night’s labor in writing shading algorithms. My first real C++ program, so proud!

Why I took my Shuttle XPC Back – Linux on the Shuttle XPC SG33G5

I returned my Shuttle XPC to Fry’s Electronics over the weekend. Not because I didn’t like it, but because of my issues to run Linux on it.

I managed to get Ubuntu 7.10 working on it as I outlined in a previous blog post, but Windows was complaining about the BIOS settings needed to get Linux working. Frankly, although I’m fairly certain that it is possible to run Linux and windows XP dual-boot on the shuttle, it is far too much of a hassle to get this working. Thus, back it goes. It was a nice box, but alas I won’t be running it anymore! My hard drive was also running far too hot in it to be happy with. Thus, on to the next post for my new baby…

Ubuntu on Shuttle XPC SG33G5 (Intel G33 chipset)

I recently acquired one of the very very nice shuttle small form factor PCs – the Shuttle XPC SG33G5. This is one of their mid-range boxes, and I spec’d it out the following:

Chipset (Standard): Intel G33
CPU: Intel Core 2 Duo E6550 2.33GHz
RAM: 2x 1Gb OCZ Ram
HDD: Western Digital Raptop WD1500

I installed my (legal) copy of Windows XP on it, and with the driver CD that came with the box I was up and running in less than an hour (fast hard drive!). The little box is responsive, fast, and runs fairly quite. I was very happy with my $600 investment!

This was all about to change when I popped in the current Ubuntu CD… To make a long story short, every kernel, distro version and boot flag I tried failed miserably.

I finally came up with something of a solution. A combination of the latest kernel, the correct boot flags and the correct bios settings are needed. They are as follows:

Distribution: Ubuntu 8.04 Alpha 3
Kernel: 2.6.24

BIOS Settings (From http://gentoo-wiki.com/HARDWARE_Inte…d_Q33_Chipsets)
SATA = AHCI Native Mode
AHCI = On
processor = Native Mode

Boot Options:
acpi=off noacpi nolacpi pci=conf1

This got me into the LiveCD fine. I’m still having some issues once I try to run GNOME after my install completed, but at least its a lot further down the line than no kernel at all! I’ll post more as I hack it.

ASUS eeePC – First Looks

After many a hesitant glance, I finally convinced myself to buy one of the new Asus eeePCs. For those who haven’t been following the news, the eeePC is a small form factor laptop with a 7″ screen, weighing in just under 1kg (about 1.5 pounds). It runs a custom interface on top of Xandros linux, and has all the programs the road warrior expects. Firefox, Thunderbird, OpenOffice and the like come pre-installed and it is fairly easy to add and linux program to your distribution.

I’ve only had it for about 24 hours, but I’m impressed so far! The build quality is excellent and it feels very sturdy. The keyboard is a bit small, but I’m already getting used to it. Its a pretty amazing little machine!

I’ll post more as I explore this gadget, but for now I’ll recommend it to everyone!

"Topgun according to Tarantino"

I never really understood what Top Gun was about until I watched this:

I love Quentin Tarantino

Copywrite in the Music Industry

I just happened across a great article on music copywrites, by jwz himself. Finals week, so no time for chitchat, but check it out:

http://www.dnalounge.com/backstage/webcasting.html

NowTune.com live

A buddy at Cal sent me a link – www.nowtune.com – to play around with. Concept: upload your music to their site and listen to it online anywhere from the internet. make friends and listen to their playlists in a radio station fashion.

I like the idea, although i don’t know how feasible the idea of uploading my entire music collection to their servers (which happen to be Amazon S3 in the back), the idea is great. I’ve been struggling with the same problem – making my music accessible from anywhere – and this is one solution. Winamp has tried the same thing with their Winamp Remote, which runs a local HTTP server on your computer, and gives you access to your library through their web interface. Nowtune.come gives you the social aspect, and you don’t need to have your local computer running. then again, you need to upload your music.

I did find a bit of a security hole (if you can call it that) that i’ve decided to keep private for now. Youtube, google video, all these sites have basically the same problem they’re looking at, but there are ways around it in this case, which i’ll gladly give them the time to fix.

Anyways, definitely something to look out for.

Husky Rescue

For enlightenment through music

This Semester’s Rough!

Here I find myself once again two days away from a deadline and sick as a horse. Not fun! Must have eaten something off……..

So in between coding on Bezerker, my Web Server in C, and signing up for classes, i get some solace from the wise words of some random blogger:

“We need to slow down, think about our priorities, and ask ourselves what the point is of an expensive kitchen remodel when we don’t take the time to cook, and why we work so hard that we never have time to see the people we love,” she said. “Maybe if we traded some of our discretionary income for discretionary time, that would be the true luxury.”

(From Eating French)

And of course RJD2 always keeps the party rocking:

Configuring client routing tables through DHCP

I’ve been playing around with an ubuntu linux server connecting our two apartments together, and the aim of this port is to explain how i’m going about routing between two subnets, each with their own default internet router. I’m using the power of DHCP3 on my ubuntu box to set routing tables on all clients connecting to the network to properly route through the correct gateways.

The network topography looks like this:

Internet <--> [router a] <--> LAN 0 <--> [Linux Server] <-> LAN 1 <--> [router b] <--> Internet

So, hosts in LAN 0 must use router a to get to the internet, and hosts in LAN 1 must use router b to get to the internet, but hosts on both LANs must use the linux server to get to each other. Thus, the server must do IP forwarding / IP routing, and the clients needs the proper routing tables. To get around the dumbness of the DLink router a and b, i’m running DHCP3 on the server to hand out routing and IP information to clients on both networks.

The resources i’ve found useful in setting up this config is:

There’s always time for a little laugh…

Even on about 4 hours of sleep a night, there’s still time for a laugh:

Conversations in the Astro lab

“Man, fun is so overrated”

“Yeah, fun really bites you in the ass”

The Death of Lona Antoniades. The Death of an Angel

The news of the death of my dearest friend and mentor, Lona Antoniades, reached me this weekend. She was my violin teacher since i was 11 years old, and I spent 10 long and beautiful years playing music with her. My time in the Stellenbosch Youth Orchestra under her, and my time with her in lessons, in visits to her house, in talking and being, have made me who I am. She shaped my appreciation of life and all that is in it. To know that she is no longer with us, is to know that an angel departed this earth. I look back and am lucky to have such fond memories to treasure, but there is so much I want to tell her, thank her, praise her.

At the beginning of my freshman year, about 6 months after leaving South Africa, I sent her an email, thanking her for the impact she had on my life. I found it and read it again today, and in some ways it made this loss more bearable. In this message I expressed my deep regard and sincere love for this mentor of mine. It made me realize that I do not have anything to regret for not saying something to her before she died. She already knew how much I felt for her.

Lona, you have left us, departed from our little world. But you will always continue living in the people you affected to deeply with your life. I miss you so much, but I can open my violin case and almost hear you talking to me. You will remain in my memory as a sight of uplifting energy, throwing your arms up in rejoicing, with the final chords booming out into the audience. If I can make a tenth of your impact in this world, I will deem my life a great success.

I wish I could have been there, but the bittersweetness of leaving my home rises in my throat with such thoughts.

Goodbye, my deadest friend. Goodbye for now. Your body is gone, but your spirit lives with us still.

Kill -9 rap

if you haven’t seen this yet… it’s worth it.

“Raw footage of a performance that “CS rapper” Monzy gave last summer outside Stanford University’s Computer Science building. This footage was shot for the documentary, NERDCORE FOR LIFE.

Nerdcoreforlife.com”

Avenue Q – The Internet is for Porn

I watched Avenue Q yesterday night in the Orpheum Theatre in SF, and it was great! Excellent play, fantastic cast, all around wonderful. They kept the audience spellbound for 2 and a half hours, and no-one wanted it to end.

I didn’t realize how big of a phenomenon their “The Internet is for Porn” song became, but after witnessing it first hand, i can’t help but post some youtube videos!

The Opening Act:

The Original “The Internet is for Porn”:

Avenue Q meets Fiddler on the Roof:

And of course, the Presidential Debates, as done by the Avenue Q cast:

How Propaganda Works

“The conscious and intelligent manipulation of the organized habits and opinions of the masses is an important element in democratic society. Those who manipulate this unseen mechanism of society constitute an invisible government which is the true ruling power of our country…”

This is an acticle worth reading, and i’m mirroring it here from http://home.att.net/~bob.wallace/howpropagandaworks.html

How Propaganda Works
by Bob Wallace

“Once you base your whole life striving on a desperate lie,
and try to implement that lie,
you instrument your own undoing.”

- Ernest Becker, The Denial of Death.

It’s not hard to understand how propaganda works. You don’t need a college degree, or to even to read any of those thick textbooks everybody hates. Everything relevant can be explained in one not-particularly-long article. And, I guarantee you, you must understand how propaganda targets you, to immunize yourself against the attempts.

Propaganda works by appealing to our most base, animalistic instincts. It does not appeal to our better nature, although one of the purposes of it is to convince us it does. It pretends to appeal to our reason, when in fact it appeals to our most primitive emotions. There is good reason for this: perception travels through the emotional brain first, to the rational brain last.

Specifically, propaganda works by appealing to three things: emotionalism, tribalism and narcissism.

I just mentioned perception travels first to the emotional brain, then the rational brain. This happens to everyone, including people who con themselves they are the most rational and intelligent of intellectuals.

As for tribes, we share with every nearly every animal in the world the instinct to form tribes, arranged in a hierachy, with a leader. We are group animals. The fact we look to a leader to take care of us is one of the most firmly established principles in psychology (if you don’t remember anything else, remember that).

When anyone transgresses the taboos of a tribe, they can, and often are, ostracised or even expelled. An example? Say some people oppose a war. What happens? They are often called cowards and told to leave the country. Who hasn’t heard the insult, “You’re a coward! If you don’t like it here, get out!” People who say such things think they’re being patriotic; in reality they’re acting like animals. Emotional, irrational, herd animals, prone to the fear and flight activated by propaganda. Individuals think; groups do not, and cannot.

Narcissism is our inborn tendency to see everything as grandiose or devalued, good or bad, with nothing in-between. It’s why nearly every tribe in the world — and nations are just tribes writ large — called itself “the People,” “the Humans,” “the Chosen,” “the Motherland,” “the Fatherland,” or “the greatest nation on earth,” relegating everyone outside the tribe to a devalued non-people, non-human status (aka “collaterial damage”). No wonder it’s so easy to kill the outsiders — they’re just not quite human.

When you combine those three concepts, you have the basis for all propaganda. If a leader of a tribe tells the people their goodness is under attack by insane, evil people who want to destroy them, they will react just like animals and attack. The Nazi propagandist Herman Goering noticed all you had to do to get people to march off to war is for the leaders to tell them they were under attack, denounce protestors as traitors exposing the tribe to danger, and the people would slander, ostracize and expell the protestors, and then tramp straight off to be slaughtered. He said this technique worked in every country of the world.

The Bush administration used exactly this technique to start two wars. Essentially they told the public that our goodness was under attack by insane and evil people who wanted to destroy us. See how it works? Tribalism, emotionalism, and narcissism.

Supporter of the war responded by attacking protestors as traitors — trying to expell them from the tribe — and marching off to war. It’s altogether too simple, and too easy.

One man everyone should know is Edward L. Bernays, the American disciple and nephew of Sigmund Freud. He was for all practical purposes the founder of modern propaganda techniques.

Bernays despised most people and regarded them as his inferiors, especially because of intellectual or social claims. (See how it works? I just appealed to your emotions, and convinced you Bernays was attacking you. You fell for it, right?)

Bernays not only pretty much founded modern propaganda techniques, but was also the father of modern PR. Although, you could say they are same thing, and that there’s really no difference between them.

In his 1928 book, Propaganda, Bernays wrote, “The conscious and intelligent manipulation of the organized habits and opinions of the masses is an important element in democratic society. Those who manipulate this unseen mechanism of society constitute an invisible government which is the true ruling power of our country…”

Remember that quote. Burn it into your memory. Bernays thought people should be ruled by an extremely small elite, who should manipulate them through propaganda. That means you. People who believe in the wonders of government, and that it is their friend, should think twice about it.

In another book, In Crystallizing Public Opinion, Bernays wrote how governments and advertisers can “regiment the mind like the military regiments the body.” This can be imposed, he said, because of “the natural inherent flexibility of individual human nature,” and suggested the “average citizen is the world’s most efficient censor. His own mind is the greatest barrier between him and the facts. His own ‘logic-proof compartments,’ his own absolutism are the obstacles which prevent him from seeing in terms of experience and thought rather than in terms of group reaction.”

Bernays also thought “physical loneliness is a real terror to the gregarious animal, and that association with the herd causes a feeling of security. In man this fear of loneliness creates a desire for identification with the herd in matters of opinion.”

Bernays claimed that “the group mind does not think in the strict sense of the word…In making up its mind, its first impulse is usually to follow the example of a trusted leader. This is one of the most firmly established principles in mass psychology.” What Bernays called the “regimentation of the mind” is accomplished by taking advantage of the human tendency to self-deception [logic-proof compartments], gregariousness [the herd instinct], individualism [exalting their vanity] and the seductive power of a strong leader.

Bernays also expressed the opinion people “have to take sides…[they] must step out of the audience onto the stage and wrestle as the hero for the victory of good over evil.” This also means appealing to our narcissism, our inborn tendency to see everything as either good or bad, with little or nothing in-between.

He also noted the need for people to feel as if they belong to something larger than themselves. Again, this also means appealing to our narcissism, such as people claiming they belong to “the greatest nation on earth.”

When people consider themselves as part of the Humans (by whatever name they call themselves), they exalt themselves. Still again, those outside the tribe are non-people, “collateral damage.”

“Mental habits create stereotypes just as physical habits create certain definite reflex actionism,” Bernays wrote. “…these stereotypes or clichés are not necessarily truthful pictures of what they are supposed to portray.” Perception is everything, the truth matters little or not at all.

Now, let’s boil all this down and see what we have:

Mass Man, the herd, cannot think, and is instead ruled by its feelings. The herd will look to a leader to save it. The best way to accomplish this is for the herd to feel it is under attack. The herd will draw together, expell those who see the truth and protest, and then march off to war.

The full quote from Hermann Goering? “Voice or no voice, the people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked, and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same in any country.”

Tell the herd they are the Humans, or the People, or best of all, have God on their side. Paint their enemies as insane and evil. Again, this is appealing to people’s narcissism, the tendency to see everything as either good (us) or evil (them). Evoke paranoia and hysteria in them by convincing them the insane evil ones want to conquer and destroy them. What will happen? You can get them to march off to war by the millions, just as Goering noticed. The truth doesn’t matter, only the manipulation of perception.

To make it as simple as possible, everything that is needed for a successful propaganda campaign can be summed up in those three aforementioned words: emotionalism, tribalism and narcissism.

We con ourselves we are so advanced. In reality, the human race is stuck in One Million Years BC, except there’s no Raquel Welch in a two-piece fur bikini.

I forgot — there is one another component to sucessful propaganda: keep repeating the message over and over.

What Barry Says: The American War Machine

This is worth watching: