My old black macbook has been collecting dust for no reason whatsoever, so I decided to use it as the dev machine for our HCI class (CS147) since none of my team members had their own mac machines. Surely setting up a windows-to-mac screen sharing session couldn’t be too hard!
Unfortunately Mac’s fantastic screen sharing implementation doesn’t play well with Windows. You can connect to it with a VNC client (I recommend TightVNC) but its incredibly slow.
An easy fix is to use the awesome Vine VNC Server for OS X on your mac, and connect to it with TightVNC.To get that buttery smooth feel, use TightVNC’s CoRRE encoding as your compression medium. Boom! A usable remote desktop connection from a windows to a mac box.
After deleting a partition on my hackintosh, I’ve needed to resize my Mac partition to use the extra free space. Boy oh boy was I about to get acquainted with a monster. After lots of research online, I find that the only free way to increase the size of an existing HFS+ partition is to trick Bootcamp into creating a partition in whatever free space you have, then telling bootcamp to reclaim that partition into your mac partition. And for some reason my install didn’t have bootcamp on it, which you can’t download since bootcamp is not integrated into the OS.
So I came up with a smart alternative. And boy did that create probems… But I did get something running in the end!
Just a quick note – the latest Arduino software does something terribly wrong in its interfacing with SD cards through the SPI interface (dunno if this affects all SPI connections or not, maybe!). I’ve struggled with this for days on end until I downgraded to 0014 and everything started working just fine!
As a follow up to one of my previous opinions of the importance of domain specific knowledge to be productive, I happened across an interesting example worth sharing.
Domain specific knowledge not only helps with productivity, it also makes a big difference in accuracy. That’s where the example comes in.
I’m a big fan of Lupe Fiasco’s music, and his old mixtapes were some of the best works in hip hop since the early 90s. So I was listening to his “Happy Industries”, enjoying his brilliant lyrics and mash-up abilities. So I figured I should check out the full lyrics and post it on facebook. This is what I found on each of the top 5 google results for “Lupe Fiasco Happy Industries Lyrics”:
Once upon a time not long ago An ID yeah that’s what I had To take DNA As a little pro two With my MCing ways and make em mad Just having fun not chasing cash Apologise now for it make ya mad Had to call g wall tell em warm up the mic Put the pendant on the wall tell em make some maaagiicc Shorty it’s nothing lavish Matter of fact It’s just an attic Background noise from the family Hearing the mic slaying in the outside traffic Still turned out fantastic Turn my vocals up just a tad bit Fresh from the first and fifteen Quarantine touching you super cool that asset
I’m sorry, but this is utter crap. Some fan with very little knowledge about the music industry must have transcribed this. It makes no sense whatsoever, and unfortunately the state of hip-hop is such that most people will accept that fact that it makes no sense. But Lupe tends to have great lyrics, so on listening to the song again, this is what he’s really saying:
Once upon a time not long ago An idea yeah that’s what I had To take demon days And a little pro tools With my MCing ways and make a mash. Just having fun not chasing cash Apologize now if I make ya mad Had to call g wall tell em warm up the mic Put the pendant on the wall tell em make some maaagiicc Studio is nothing lavish Matter of fact It’s just an attic Background noise from the fan Hearing the mic slaying in the outside traffic Still turned out fantastic Turn my vocals up just a tad bit Fresh from the first and fifteen Quarantine touching you super cool thats just ah sick!
Notice what just happened. The lyrics went from some song filled with what we can only consider to be slang we don’t understand and randomly “slaying the mic” to a song about him making “sick” music using just his laptop and his little home studio in his attic, not here to make money but here for the magic. He talks about using Pro Tools, something that people with experience in the music industry knows about, and making mash-ups between tracks. Funny, because the song itself is exactly a mashup of Gorillas’ Demon Days album and his lyrics. It should be obvious that these are the correct lyrics.
If Hip-Hop is so infused with the ideas of making money that a song saying “its not about money” can so quickly become so convoluted… You be the judge.
I recently did about 3 days of solid hacking in Python, and discovered some limitations and some nice features of the language and its libraries in the process. I can complain about how limited the lambda is compared to my experiences with Scheme, or how lacking its process management utilities are, but more importantly, there’s something fundamentally wrong with python.
You see, it has this neat easter egg. “import this” prints the following poem, see if you can state the gross error. To make it easier, I’m putting the gross error in BOLD.
The Zen of Python, by Tim Peters
Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren’t special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one– and preferably only one –obvious way to do it. Although that way may not be obvious at first unless you’re Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it’s a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea — let’s do more of those!
Oh come ON! Anyone who’s ever done numerical simulation or any kind of computational physics knows that Implicit has the same error as Explicit but is unconditionally stable!
Give me implicit euler integration or give me death.
Oh man oh man oh man, two bottles of 5 hour energy and a delicous mug of Peet’s Major Dickasons freshly roasted coffee later and I’m doing real time raytracing!
Its nothing super fancy, but as part of the assignments I’ve been working out for the graphics class I’m TAing (CS184 at UC Berkeley) I’ve been putting together a framework for the students to explore raytracing in. And while we’re at it, why not try to make it run in realtime. Turns out that cutting out disk access and loading everything up into RAM, using OpenGL as a final pixel buffer to display images, gives you gobs of performance for free. Now who would have thought that?
So, I’ll clean this stuff up and post some demos. Phong shading has never looked so good as when you can swing the camera around objects!
As the good news keep rolling in, with PhD acceptances suddenly going from scarce to abundant, I’m being slapped in the face by the question I should have been asking while applying – WHICH ONE?!!!?!
Undergrad was a fairly easy decision. Go to the best school you get into. Grad school… A little more complicated. The questions range from “Can I afford the area?” (easy, fellowships!) to “Will I want to marry someone from here?” (interesting… but not very informative still) to “Are there people I want to work with?” (crucial… but true for too many!) to “Do I want to live here?” (which just makes it harder).
I’ve had a fantastic run at Berkeley, and although there’s plenty I don’t agree with and plenty I’ve loved, I came out on top overall. But now that I need to again ask the question of where to go, life gets a lot more complicated really quickly!
On the plus side, it is President’s day, so maybe I’ll spend some money on two new monitors to complete my 4-screen desktop setup. Hmmmmmmmmm how does 3800 by 2400 pixels on your desk sound?
I made the plunge and shelled out $99.99 for the Complete Valve Pack, which includes a list of games to keep anyone busy for many hours. Too many of my roommates are playing Left 4 Dead, and if you’re going to spend money, this is a sweet deal to get everything! Counter strike, the Half-Life series, and of course Portal are such fun and innovative games (if not quite revolutionary) that this collection gives it all.
With graduate applications sent out and another semester coming to an end, I can’t help but look back at where I came from. If I have to choose one expression that really influences and reflects on life, something that touched me, that changed my outlook on life and that reinforced my awe and wonder at our magnificent world, it would have to be the words of Albert Knag in Jostein Gaarder’s novel “Sophie’s World”:
“Life is both sad and solemn. We are let into a wonderful world, we meet one another here, greet each other and wander together for a brief time. Then we lose each other and disappear as suddenly and unreasonably as we arrived.”
My response to this was (and still is) a humble “Wow”. Gaarder expresses both the majestical highs of exuberance and the unthinkable but ultimately true end of life without judging or diminishing both. And is that not how life truly is? Although this quote deals on a first level with life as a whole, it is just as true for our daily lives. It amazes me to experience the daily comings and goings of people, the connections we make with humans that we meet one evening and afterwards, as we walk away, not realize that we will never see them again. The profound sorrow that is a part of all existence, but also the profound joy of every moment that we share amongst those we connect with. I sometimes wish that we can hold on to the beautiful moments, the great achievements and the times of joy and happiness, that we can freeze time, that we can relive our profound moments in more than just memory. But as this quote so aptly conveys, this is not the way of the world. But that is not a reason for despair or sorrow. No, it is just a motivation to cherish every moment for all that it encompasses. If we could relive times at our slightest whims, if we could get a second chance at life, maybe we would find that, instead of finding recaptured glory and awe, we are only diminishing the worth of the moment. Maybe the biggest factor in creating the exuberance and awe that we experience is the fact that we can’t relive it. Why would we walk the extra mile now if we can do it tomorrow? But still, our heart yearns for the chance to recapture and relive. And not in vain, for by doing so, I believe we keep the memories unstained and unspoilt, the memories of our “brief time” in this wonderful world. Although we all spend only a limited time here, this world in filled with so much emotion, so much strength and weakness, so much love and hate, so much exaltation and so much sorrow, that “wonderful” fails to describe the awe, humility, joy and love that we find here on earth. I would not exchange my memories for any riches or glory.
I’ve been dying to try out the new Eclipse Ganymede, especially throwing the multi-million-line codebase i’m working on at Pixar into the new CDT version to see what will happen. Until now I haven’t been able to get eclipse working on Fedora Core 5 – the machine i’m using at work.
The main difficulty is to get Fedora 5 to use the latest JVM from Sun rather than the default GNU 1.4.2 compiler. There are several resources on how to make the global switch (this being the most complete I’ve found) but for some reason Eclipse was still not using it. So here’s how I managed to do it:
* Download and extract Eclipse to a local directory * Download the self-extracting Java version * Run the Java .bin file and extract its contents. * Copy the directory extracted from the .bin file (“jdk1.6.0_06″ in my case) into the eclipse directory * Create a symbolic link called “jre” in the eclipse directory to the jdkx.x.x/jre directory
We built this computer vision system that can play Rockband as our final project for CS184 at UC Berkeley.
In the space of two weekends we designed and built a system that uses computer vision to monitor the xbox display through a camera and play the game. More details can be found at inst.eecs.berkeley.edu/~njoubert/cs184/Rockband.pdf
We were, well, sleep deprived for a good section of this work, which explains the craziness in some parts of the video.
Our system is similar to Slashbot and AutoGuitarHero, but we do not take a video feed from the console – no, we’re doing it through a panasonic handycam pointed at the screen. We’re interested in machine vision, and this was a fun project to get into the field!
I’m using OpenCV for my current computer graphics project – hacking Harmonix’ Rock Band – so naturally I have to build it from source in Ubuntu. I downloaded the source from Sourceforge.
The procedure was fairly simple – the most important part was the packages needed to satisfy all the requirements. OpenCV depends on several other libraries to really get the full potential of our system (although simple installs are possible).
Since I wanted to do image input/output I apt-get’ted the following packages:
libpng-dev
libjpeg-dev
To do ffmpeg development – which is the library OpenCV uses for video campture:
libavcodec-dev – development files for libavcodec
libavformat-dev – development files for libavformat
libavutil-dev – development files for libavutil
libpostproc-dev – development files for libpostproc
libswscale-dev – development files for libswscale
libdlna-dev – development files for libdlna
libmpeg4ip-dev – end-to-end system to explore streaming multimedia
For all the funky GUI development:
libgtk2.0-0
libgtk2.0-dev
You can install all of this using audo apt-get install
Once this is done, I unpacked the TAR file, cd’d to the directory and ran the good old standard set of building commands: <br />sudo ./configure<br />sudo make<br />sudo make install<br />
The CHI 2008 conference is winding down today, and I’m still excited that our Work in Progress paper got accepted to the conference!
CHI is arguably the biggest conference HCI/Design conference around – from their website: “CHI 2008 focuses on the balance between art and science, design and research, practical motivation and the process that leads the way to innovative excellence.”
Our paper was titled “Enhancing online personal connections through the synchronized sharing of online video” and came from the work that Ayman, myself, Marcello and Yiding did at Yahoo Research Berkeley during 2007. Some of our prototypes are making it into http://live.yahoo.com/ that allows for synchronous sharing of video. Also, our Yahoo messenger plugin Zync is not officially integrated into Yahoo Messenger – just click the “Watch with me” button when dropping in a video, and you get to watch video synchronously with the person you’re chatting with. Cool stuff!
“At last!” was the words I uttered after finally ending my Comcast contract. Not long after, my DSLExtreme modem (free with every contract) arrived by UPS, and I plugged it in with much anticipation. I called up their technical support since I was not getting an IP from their servers, and within 3 minutes from picking up the phone, I had an IP on my modem and I was surfing away. (Apparently you have to manually request dynamic IPs from them, so it was partially my fault that I was not getting an IP – although the process is a bit strange!)
Anyways, the average latency for web pages is half that of Comcast, and the download stats looks great too:
Unfortunately, you can’t compare this with any Comcast connection test, since their new “SpeedBurst” technology completely skews the result of any bandwidth test – they blast the first 10MB of data to you at high speeds, making these tests give you a very different result of what your long-running throughput will be.
Thus, my vote goes to DSLExtreme! They’re great. http://www.dslextreme.com/
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:
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!
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!
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!
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…
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.