Archive for 2007

NowTune.com now with hotlinking playlists

I have a couple of issues with Nowtune.com so far:

- Uploads only work if they’re all from the same directory. Bugfix I guess?
- You can’t delete tracks from a playlist!
- SLOW with lots of files. I have about 600 tracks in my main playlist and it takes about 5 to 10 seconds to load. And this is on a blazingly fast DS3 line.
- Crashes now and then, uploads fail…

BUT

I can do this: http://nowtune.com/njoubert/loungelatenight

and you can listen to the best late night lounge / study music Global Underground has to offer!

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.

Music

OiNK, probably the best online music source, has been shut down a while ago, and record sales are going south like a duck in winter. The public is pretty outraged, but for many of us its still a blind rage at why your college friends are being sued and why you have to pay $18 for CDs if you really just want the third track on the bonus disc. I’m pretty much in the same boat, until I read this fantastic post by a former record company employee.

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:

Plush – Jet Life

I still find this one of the most descriptive songs I know:

Jet Life, by Plush:

Jet Life
i’m living live like a rockstar
how i really want to go far
from here

cool cats
riding the town like they own it
that is something i will never get
oh, i will never get that

and i do believe
i do believe
no-one feels this pain
inside of me

dead tired, dead tired
im dead tired of all of this
dead tired, dead tired
im dead tired of all of this
dead tired, dead tired
dead tired of all of this

jet life, slow life
picking up the broken pieces of my life
tentative hesitant a bit
God
it all looks so positive

its a shame about the world though
lost dreams and no tomorrows
its a shame its such a stuff-up
you know it wouldn’t be
if we weren’t all so stuck up

cause we know nothing at all
if we didn’t realize that we’re so small
one shake of the earth
one spin of the sea
we’re squashed up bugs beneath God’s feet

all i am is a believer, all i am is a believer
are you a believer?
we’re all just dreamers

dead tired, dead tired
im dead tired of all of this
dead tired, dead tired
im dead tired of all of this
dead tired, dead tired
im dead tired of all of this
dead tired, dead tired
im dead tired of all of this

while the rest of the world is fighting
in a war that no-one survives in
young men are sift
before they’ve even lived
well that doesn’t seem fair to me

and daddy’s at home, he’s angry
cause he’s Son’s no longer his property
well man you had the wrong perceptions
cause he was never your possession

and women walk around
with mace in their bags
just a piece of meat
waiting to be tagged

well i can’t believe this happens in my land
i can’t believe the value of the Rand

oh jet life, everybody’s striving for a good life
and nothing’s gonna happen if you sti around and waste time
you’ve gotta move
you’ve gotta prove
you’ve gotta stay humble
or this world will surely crumble

*acoustic solo*

YUM (Yellow Dog Updater) and MySQL 5

I’ve been working on 2draw.net for a while now with Marcello, and one of our issues in managing packages on a CentOS installation. YUM seems to have become almost a standard in the RPM distribution world, so we followed suite and unpacked this little python app of magic.

I’ve been battling to get the latest MySQL version up and running, so i thought i’d post up the first few steps to update MySQL through YUM.

I’m using the CentOS repository for YUM. To get the latest MySQL, you first need to enable the CentOS PLUS repository.
<br />Find your yum repository directory:<br />cd /etc/yum.repos.d<br />emacs CentOS-Base.repo<br />Find the [centosplus] section<br />Make sure the following flags are set:<br /><br />enables=1<br />gpgcheck=1<br />

Once this is done, you can go ahead and install mysql:

<br />yum install mysql<br />

Voila!

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.

First Test of Arduino with Max7219 LED Driver and LTP2657 LED Matrix

I’ve been doing some more Arduino hacking, this time with my newly-arrived MAX7219 LED Driver circuit. Here’s what I have right now:

The circuit is very simple – The MAX7219 connects to Arduino on pin 2, 3 and 4, and I use the sample code in the Arduino wiki (http://www.arduino.cc/playground/LEDMatrix/Max7219). The LED Driver is connected to a little 7×5 segment display I picked up at HCS (A surplus electronic store in Sunnyvale) labelled the LTP2657AA. I had to reverse engineer the pins to figure out what goes where, but manage to connect up the digits to the ground (cathodes) of the LEDs in the segment, and the segments to the positive (anodes) terminals. With one transistor (10K) to keep the voltage levels okay and following the MAXIM data sheet I managed to get it all up and running.

For future reference, here’s the pin layout of the LTP2657AA, if the notches is at the bottom, bevels at the top, and held horizontally:

rows are anodes, cols are cathodes

LEFT

1 – green row 1
2 – red row 1
3 – green col a
4 – red col a
5 – green row 2
6 – red row 2
7 – green row 3
8 – red row 3
9 – green col c
10 – red col c
11 – green col d
12 – red col d
13 – green col b
14 – red col b

RIGHT

1 – red col f
2 – green col f
3 – red col d
4 – green col d
5 – red col e
6 – green col e
7 – red row 3
8 – green row 3
9 – red row 4
10 – green row 4
11 – red col g
12 – green col g
13 – red row 5
14 – green row 5

Its quite a nice little matrix, duo color (although it only displays one at a time), and for $2 i cant complain!

so, now its all about building a sweet project.

Strange Music videos, and Youtube – now with Inline Ads!

It looks like the folks over at Google has been keeping busy with Youtube lately. They have a new player, quite a major redesign of their original, now on their website. The color change is a bit startling – the red bar now indicates playing instead of downloading (gray bar) which is just confusing.

But the big stunner is the ads they put over video. Everyone is trying to get some revenue from the tons of videos being watched online (something like a 30% click-though rate in video search results) and superimposed ads, like what Youtube is doing, is a step towards the classic Television-like banner ads. We’ll have to see whether this is the “big answer” for video advertising. Personally, I find it distracting and annoying, especially since Youtube content is generally so short. Luckily they included a little “close” button to get rid of it.

Then, to (hopefully!) demonstrate this ads appearance, here’s a crazy little Red Hot Chili Peppers video I found. I’m sorting my RHCP collection (I have just about every song ever published by them) and in the process I figure i’d poke around for some less well known RHCP music videos. Have fun with this one:

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:

Let’s connect many many LEDs to Arduino

Seeing is believing, right? So it’s not that surprising to see that many people have gone to great lengths to hook up tons and tons of LEDs to various hardware projects. Youtube has some cool videos, which will have to keep my happy until I recieve my shipment of MAX7129 chips. More on that later ^_^

The First Arduino Project: TinyVU

So! I just hacked my first arduino project – a tiny VU meter. there’s not much more to say so here’s a video!

First Experiences with Arduino (and setup instructions!)

I just recieved my Arduino NG rev C board in the mail, woohoo! With glee I ripped off the post office packaging to start playing around. The kit I received from the workshop at Yahoo that focused on Physical Design. Very cool of Yahoo to support even its interns in such diverse interests as Physical Computing.

My glee soon wore off with the incredibly painful setup procedure. My hopes were that you take it out of the box, plug it in, (maybe install some drivers) and off you go. That is why i got the USB version. Unfortunately its not quite this easy. Arduino follows a fairly long road from IDE to Microprocessor, which is not uncommon, but painful none-the-less. Microcontrollers are harder to work with than what would be nice for the average hobbyist, and Arduino does a darn good job to make it easy, but its not perfect. Arduino uses Cygwin to compile the C programs you write into MIPS hex for the microprocessor. To upload the program, the Java IDE calls out to cygwin to connect to a pseudo COM port, that wraps the USB connection to Arduino. (You need the supplied drivers for this). This wrapper talks to the USB to Serial chip on Arduino itself, which talks to the bootloader on the MIPS processor to save your program into EEPROM. Since there is a lot of moving parts, it doesn’t always work…

To keep it short, this is what I needed to do to get Arduino working:

1) Download the Arduino zip from www.arduino.cc and extract

2) Replace the cygwin1.dll in the home folder of Arduino with the newest Cygwin dll from cygwin.org

3) Download the newest drivers for the virtual COM port from http://www.ftdichip.com/Drivers/VCP.htm

4) Plug Arduino In. Install the above drivers you downloaded to talk with Arduino.

5) Set the COM port driver to a COM port lower that 10 (this is important! Windows gives the weirdest errors if you try a COM port higher than 10) and a BAUD rate of 115200. You can do this by using Device Manager. Look under Ports -> USB Serial Port

6) Open the arduino program you originally downloaded.

7) Set the COM port to the port you made the USB driver use. (I used 2, since it was the only one free)

8) Follow the instructions _VERY CAREFULLY_ on the Arduino Guide page.

Hopefully this gets you going! The setup took a while to figure out, and it could be simplified, as well as better instructions on the Arduino website, but it was easier than using a PIC programmer!

Once I got it up and running, I immediately built a little night rider viz with the 10 LEDs I received in the kit. I’ll put up a couple of pictures soon. The reference guid is clear and easy to understand, and the given examples are clear and informative.

For a good workshop-based into to Arduino, check out http://jennylc.com/teaching/yahoo/

This is the workshop that was given at Yahoo.

Arduino definitely looks like a great little platform to play with and get some physical computing going on. Even for circuits-oriented people, this is a nice way to get easy interactivity with computers, or more intelligence than you want to put into your analog circuits. I want to build the world’s biggest VU meter to put up against my ceiling to visualize when I play music. Something along the lines of the Urban Carpet. I’ll post pictures!

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.