I attended a very interesting talk by Alan Wallace, who has spent more than a decade living with Tibetan monks and with his unique background attempts to merge science with Buddhism. The most fascinating concept he talked about was the association of attention with intelligence. With all the ADD disorders out there, this really intrigued me.
What we attend to and how we attend to it largely determines the kind of world we experience, including our sense of who we are as individuals. Our ability to learn, to receive an education, depends on the ability to focus our attention on a chosen topic with continuity and clarity. Our problem-solving abilities and creativity, as well as our capacity to communicate and to cultivate meaningful human relationships, also revolve around the mental faculty of attention.
If you think about how meditation is all about focusing the mind, you can understand how it is such a beneficial exercise. I always wondered what is the best exercise for the brain, and it seems concentration and focus are key. Think about it, how many smart people do you know do not have the ability to focus intimately on a problem? It seems this focus and intelligence go hand in hand. You can think of autism as almost an extreme form of focus and attention, and it's not unreasonable that many autistics have amazing mental capacities.
The Eastern religions all had meditation deeply rooted in them. Is it any wonder that some people consider asians as more intelligent? Not that I agree with that stereotype, but I do think attention and focus plays a big role. I am all for meditation, but I think focus and attention can be applied on anything you do. It doesn't have to be OM. It could be writing code or playing a sport. As long as focus and attention is being cultivated, it's good in the long run.
I've been getting alot of spam comments being posted to this particular blog entry of mine. I always wondered why. I mean, it's a really lame blog entry.
Then I found out what the first link on Google Images was when you search for smiley evolution. No idea why someone would search for this.. but there ya go.
I always wondered how the 'live cultures' listed on various yogurts survive the stomach acid environment to get to the intestine. Here is a good bit of common sense from a newsgroup about.... cats.
I saw Snakes on a Plane last week. I'm not going to write a review of that movie. I mean, it's snakes on a mother-fucking plane. What more do you need?
My problem is with iTunes. iTunes is carrying the soundtrack. I kinda like the theme song, but guess what, Apple is forcing us to buy the whole album just for one song. I know why, it's because all the other songs suck. What happened to the 99 cent songs? Does that only apply when it's convenient? I've seen iTunes doing this alot lately, forcing me to purchase albums instead of individual songs. Lame! I am not paying $10 for 1 mediocre song.
Here's an interesting 1-hour BBC docudrama on 'what if drugs were legal.'
Also came across this neat acoustic cover of Outkast's Hey Ya. I even put up an mp3 in case you want it.
Last but not least I saw an advertisement in the local newspaper for a cool electric bike. I liked everything about it except for the 'keep out of rain' warning.
This weekend I decided to take the adventure of installing Ubuntu 6.06 (Dapper Drake) on my Powerbook G4. I wasn't sure what to expect as to hardware support, and learned alot along the way. I am writing this from Firefox in Linux on my Powerbook though, so it's been somewhat successful
.
I've been wanting to have a good Linux box to hack on. I did install Xubuntu on an old Thinkpad, but it's falling apart and the battery lasts a whopping 10 minutes. I've heard some good things about Ubuntu on PowerPC, so decided to give it a go.
I have OS X Panther on my Powerbook. I have never had the chance to upgrade to Tiger. I have a 70G drive and had plenty of free space, so my first task was to resize and repartition. Now I'm pretty familiar with doing this on the PC, but not on Macs. I have been using SuperDuper for backups to an external USB drive, so I was set for backups. I actually wouldn't mind it if my Panther partition got trashed, as it would give me an excuse to upgrade to Tiger. In the end nothing bad happened, so I was still luckily (or unluckily) stuck with Panther.
Back to resizing. Out of whim, I tried booting the Ubuntu CD to see if it had an easy resizing tool like it did for Intels. Nope, it just wanted to erase my whole disk. I read that it is possible to do resizing with free tools, but it was late and I didn't feel that brave. I decided to purchase and download iPartition, which seemed similar to Partition Magic. Of course, it couldn't resize the live running boot partition, so I needed to boot something else. The manual first recommends trying to boot off of a backup drive, and if that doesn't work to use the boot CD creator tool that comes with iPartition.
I thought this would be a good test of by 'backup strategy.' I plugged in my external USB drive. After some digging around, I found out that you can have the Mac scan for bootable media at powerup by holding down the Option key while powering on. This brings up a nice GUI boot screen and showed my USB drive! I selected it, and after some crunching it eventually came up with a no smoking sign and didn't boot
. Oh well I guess my backup isn't that cool. It does have files on it though, so I am backing up something, just not something that will boot. I tried some other hackery mentioned on the web, by booting into the Open Firmware by holding down the twister-inspired key combination of Command-Option-O-F while powering up, and changing the boot-device with setenv. I swear, Apple is trying to give me arthritis. Anyway, no luck with that, and I later realized that setenv actually writes the NVRAM, so I had to remember the old setting and undo this. Fuck booting from my 'backup.'
Next I created an iPartition boot CD with their CD creator tool. I booted it (again with the Option key held at boot to select CD), and successfully shrunk my OS X partition by 10G and left the free space. This operation was done so fast I thought it didn't do anything. I booted back into OS X. It booted ok (whew), and I verified in Disk Utility that the partition shrunk by 10G. So far so good.
Now on to installing Ubuntu. I booted the CD. I wanted to see if the Airport wireless worked, so went to System -> Administration -> Networking. It detected the Airport but failed to configure it, and I remember seeing boot messages about firmware errors. I did some research beforehand and it turns out the driver is not open, and it was up in the air whether it would work or not. I figured I could fool with it after installation. I grabbed a wireless card from my Thinkpad, and voila that worked like a charm in my Mac. At least I would have internet access while I debugged the Airport driver later.
I ran the installer, and specified for it to use my free space. The text that is shown before making the partition gave the impression it was going to wipe my HD, i.e. it was not obvious it would use my free space. I thought whatever, if it trashes it that's ok. It didn't (whew), and after a 40 minutes or so, I rebooted. I was given a LILO-like boot menu with my OS X still there. I tested OS X, and that still worked (whew). Next I rebooted into Linux! It was speedy and worked like a charm. My wireless was working, but with the PC card, not with the internal Airport.
I started searching the discussion boards for Airport support. Now Ubuntu forums are interesting. They are mostly filled with non-Linux users seeking help. That's cool and all, but it just makes my searching more difficult with crappy results. I finally found this guide which was generally what I did except for the part about installing 'Network Manager', whatever that was. I figure I should be able to use the Network setting app that is already part of Ubuntu. I found some other good docs, the latter being very helpful. Eventually I got it working whenever I brought up the interface in the Networing app, but it would take a very long time, and would never work at bootup. From those docs, I added the following to /etc/network/interfaces:
auto eth1 iface eth1 inet dhcp pre-up ifconfig eth1 up pre-up iwconfig eth1 rate 11M pre-up iwconfig eth1 ap any wireless-essid myssid
I rebooted and voila, Airport works! No more PC card needed. Everything, even sound, was working. But after using Ubuntu for some time on the Mac, I realized a big annoyance...
I realized early that Ubuntu is not very usable with a 1-button mousepad. After some searching I found out that F12 (or maybe it was F11, it's not working now) was mapped to right-click. WTF, there is no way in hell I'm using any F key for right-clicking. In OS X I can do it by ctrl-clicking, so I should be able to do it in Linux too. I came across this posting about installing mouseemu. I did so, and added to /etc/default/mouseemu:
MID_CLICK="-middle 125 272" # Command key + mouse click RIGHT_CLICK="-right 29 272" # Control key + mouse click
Once I did that and restarted mouseemu (sudo /etc/init.d/mouseemu stop/start), I was able to right-click with ctrl-click. Yay! But then after realizing that I have to use Alt-Tab instead of Command-Tab to switch windows, I was annoyed further because the Alt key on the Mac is proven to increase the risk of arthritis and why the hell do I have to remember a different keystroke for Linux when Command-Tab works in OS X?
I found somewhere on the web that xmodmap can be used for this. I created a ~/.xmodmap file that contained:
keycode 115 = Alt_L
One thing very cool is Ubuntu will notice your .xmodmap and ask you to load it on next startup. There was some discussion on whether to use .xmodmaprc, or .Xmodmaprc, or .Xmodmap, or .muhahhayouWillneverFigureitOutrc. But I will tell you .xmodmap works
.
After booting back and forth between OS X and Linux, I realized that the boot manager was defaulting to Linux. I didn't want that. I wanted OS X by default. Such began my journey into yaboot, the LILO for Mac's.
It was a short journey. I edited /etc/yaboot.conf and added after the macosx= line:
defaultos=macosx
This is described in 'man yaboot.conf'. I rebooted, but whaddaya know, it still booted into Linux by default. I was optimistically thinking this would be like GRUB, where I didn't have to run anything to update the boot sector. Turns out I need to run ybin, which copied my changes in. I didn't know what arguments to give, so being inspired by 'lilo', I just ran 'ybin.' That worked, and I was booting OS X by default. Yay.
Now I worked a bit more in Ubuntu and realized that I needed to copy some files off of my OS X partition (namely, my SSH config file).
I had no idea if OS X's HFS+ partition was supported in Linux. I found this document which states that it is, and the fs type is hfsplus. However, 'man mount' only shows hfs, not hfsplus. I stuck with hfsplus anyway. I found this post about a user mounting his partitions. All I wanted to do was copy a file, and I'd be pretty pissed if Linux screwed up my OS X partition accidentally. I decided to mount it read-only. But what's my OS X partition? I easily found that from the macosx= line in /etc/yaboot.conf, which was /fev/hda3. dev has been replaced with fev to protect the innocent. For some reason either my webhosting provider or blogging software won't let me post dev. I ran the following commands:
mkdir /tmp/mnt
mount -o ro -t hfsplus /fev/fda3 /tmp/mnt
cp my file
umount /tmp/mnt
At this point there are only a few things left that annoy me. The mouse sensitivity seems quite different from OS X. I tried adjusting the acceleration settings, but it still just seems wierd. My fan seems to be constantly running, and my guess is Linux is not as nice on the CPU as OS X. Finally, cutting and pasting with a 1-button mouse in Linux is a bitch. Why do I have to shift-ctrl-anything to copy text in Terminal anyway? Why can't I just select and have it auto-copy? Maybe there is a way, but I haven't figured it out yet. Maybe it is time for me to get a real mouse and keyboard.
The fn, ctrl, alt, and command keys on the Mac cause me no end of grief. I constantly forget which incantation to use to switch workspaces, switching firefox tabs, closing windows, closing firefox tabs, etc. But that's more of a rant towards the Powerbook keyboard in general. Also forget about Flash and other plugins, they are nonexistent for PowerPC Linux.
In general, it was a fun adventure to figure out how to do things and cool to have Linux on my Powerbook. It runs beautifully and I'm sure I'll be hacking on it for some time.
I have this pretty old IBM Thinkpad iSeries Type 1161-260 with a Celery processor. It's been sitting in my closet for about 6 months. I had attempted to run Linux on it at one point, but the Cardbus pcmcia interface on this laptop did not have good support so essentially no pc card worked. I spent alot of time hacking at it and eventually I gave up and left Windows XP on the system.
This weekend I thought maybe Linux these days has better support. It's a low end laptop with 192MB RAM. I wanted to run Ubuntu, but needed a lightweight version. That's when I found Xubuntu, a lean Ubuntu. I had about 3G free on my windows partition (a whopping 5G drive). I guessed correctly that Ubuntu must have a partition resizer that works well.
I downloaded the Xubuntu ISO on my Mac, burned it, and booted my Thinkpad. After some crunching, it came up to X with a live-CD like distro and an 'Install' icon on the desktop. Cool. I brought up a terminal and did an 'ifconfig -a' expecting to see only my loopback device. Lo and behold, I see an eth0. I think to myself, this can't be my wireless card. I then went to the graphical network configurator and saw that it detected my wireless card. A few clicks and I saw the open wireless networks (I keep mine open too
. I was able to join, startup Firefox, and browse. My jaw dropped. Ubuntu out of the box on its installation live-CD has support for my wireless card that I could never get working for the life of me? I was very impressed. I had to start the installation.
After a long time I eventually had Xubuntu installed. I rebooted and found out that now my wireless card wasn't detected. Poking in /var/log/messages I saw:
cs: warning: no high memory space available!
Now this shit looks familiar, the same crap I had ages ago that I couldn't fix. So continued my hacking. I thought maybe some module loaded at full install and not in the live-CD was conflicting, maybe USB. So I sought to disable USB. Now times have changed and this is not as easy as just commenting it out in /etc/mod* files. I found /etc/modprobe.d/aliases and began fiddling with it. But for the life of me I could not get USB disabled. Even when I removed the kernel module file it would still get loaded!
This really baffled me. I thought maybe USB is compiled into the kernel. But that wasn't the case because I see it in a 'lsmod'. After much searching I realized that now distros use an initramfs, which is like an initrd but I believe you can store more. I looked at the current initramfs used during boot (via /boot/grub/menu.lst), which is a fun gzipped cpio archive:
mkdir /tmp/a
cd /tmp/a
gzip -dc /boot/initrd.img-2.6.15-26-386 | cpio -i
And whaddaya know, the usb kernel modules are stored in there. I found out about mkinitramfs (like mkinitrd), made a new one without usb, rebooted. But still my fucking wireless card didn't work. I went to sleep and decided to try again later. I was determined though because the damn thing worked on the live-CD, I have to be able to get it working installed! That would be really lame if I gave up now.
I spent some time searching, and found some references about pcmciautils replacing pcmcia-cs, and /etc/pcmcia being moved to /usr/share/pcmciautils. On my system /etc/pcmcia was empty. I booted the live-CD again and noticed that /etc/pcmcia had lots of config files, importantly a config.opts. On my installed system, this file was in /usr/share/pcmciautils. It contains info on memory regions to probe.
Then I found this German posting that seemed to be recommending copying config.opts to /etc/pcmcia. My 2 semesters of German came through, and I knew that 'alles wunderbar' meant something good. I copied the file, rebooted. Voila, my wireless card worked!
What a pain and such a simple fix! It's really lame this file is not automatically copied there, but I'm glad to have gotten it working. Where there is a will there is a way.
I saw World Trade Center this weekend, which was pretty much a tearjerker. I thought it was good, with some very moving scenes, but too much tearjerking in my opinion. So a really good balance for that was watching Little Miss Sunshine.
I wasn't sure what to expect from this. It looked like a plain old family movie, but the R rating had me wondering, and it got so good reviews I had to see it. This is a unique blend of dark comedy with lighthearted fun. It's a story about a very dysfunctional family going on a road trip for a kid's beauty pageant. Steve Carell from Comedy Central plays a suicidal gay literature professor. Greg Kinnear plays a 9-step self-help salesman. Alan Arkin plays a cocain-snorting grandfather. Paul Dano plays a mute Neitzsche follower. You can tell it's not your typical family fun comedy.
But it is unique that it succeeds in making fun of this whole collection of people and the events they come across. Some of the comedy is very biting. There is one small scene that pokes fun (or more like jabs) at the impersonal nature of doctors. A doctor comes out and announces a death of a family member in the most solemn way a doctor can do. He then gently goes to side and YELLS "Linda!!!" Linda is the bereavement specialist. This is just one situation where the movie becomes somber and then punches you in the face to make you laugh, and the movie is full of scenes like this.
The last scene pretty much had me and the audience dropping our jaws. I can't give it away, but it is a very biting and brilliant satire of young child beauty pageants. At first you think this pageant is just harmless fun. But the director morphs that into something else. It was wierd, I saw this scene and said to myself, "Oh my God." It was completely unexpected for me. But at the same time it was pure comedic genius, and at the end had me and the audience clapping.
I definitely recommend this movie, but I think the R rating is truly deserved heh.
British horror flicks seem to have so much more intelligence to them than American ones. I loved '28 days later', and this movie is in the same spirit.
The Descent was a pretty intense psychological horror. It has its share of gore, but is more brooding compared to the regular slasher movies, and seems to have more realism. There is a scene where a girl breaks her leg and has a bone protruding. The effort to fix her wound is almost unbearable to watch, but it isn't anything different from what might happen in an emergency room minus the anesthesia. It's a horror of real life.
The movie is a sort of Goonies Gone Wild
. The plot is absurd but almost believable. I am not much of a horror fan, but I do love character studies and when people are put into situations that require them to use every bit of their mind and body to get out of. It's like a battle with nature, and I was wierdly reminded of evolution. The hero must do some really bad things and has many flaws. She must descend into the depths of the horror and accept it before she can get herself out. There is something very human about it.
I have never really had much interest in hiking or so-called 'nature' outings. To me nature is about struggle, suffering, and death. I always think it's silly that we go hiking in the comfort of tents and rugged apparel to 'experience' nature. It's sort of like watching reality through a TV in the safety of your home. That's not what nature is about. That's why I found this movie so appealing. The group goes hiking with the safety of their BMW X5 and expensive climbing gear. However, when the comforts and safety are stripped away, true human nature and the struggle to survive are the only things that will either save or kill you.
The way the movie conveyed claustrophobia was simply amazing. When the group is going through tunnels that their bodies could barely fit through, I found it pretty frightening. The camera work here is excellent. My only gripe is the ending. Stop reading because spoilers lie ahead.
In the cave there has evolved a human-like population that have non-functional eyes and exceptional hearing. They use sounds to find their prey. So generally it's a descension into this environment and a struggle to survive and get out, almost like a descent into a hell of prehistoric times. How they find remnants of past explorers on this descent is very eery and conveys the hopelessness of trying to escape. There are alot of psychological cues in this movie, and the heroine ultimately becomes a violent animal (both psychologically and physically) in order to survive. This hero has problems of her own, and shortly before her expedition, she lost her daughter in a fatal car accident. Demons and overwhelming guilt lie within her.
When I saw the ending, it seemed a dream to me. The hero ascends over piles of bones and skulls towards a glimmer of sunlight. It seemed very symbolic, like she must go through the hell before she can get out. But she does get out, finds the car, takes off, and then sees someone she has killed in the car with her. Scream and cut to credits. I was like, "what?" I thought to myself, this escape has to be a dream. What do you know, I find an alternate ending on YouTube. Now this makes more sense. It's not a happy ending, but to me should have been in the American version.
In general it was a very interesting flick. Go check it out if you are into psychological horrors.
Here's a great article about our reliance on air conditioning. I wonder how much affect AC has on global warming vs cars. My favorite quote:
We still want to look at nature. We just don't want to feel it.
So I've been using a Mac for some time now. In fact I haven't had a PC at home in over a year. And now I miss it, yes I miss the PC.
Why? Obviously I've found the Mac superior than a PC in terms of usability. However I feel that Apple is not a very open source developer friendly environment. I don't know how to describe it. If I want to do development on Mac, I'd want to use the Cocoa stuff, or Applescript, or whatever. But this is not as fun as doing true Linux development. The open source developer community is missing from Apple. I enjoy development on Linux better than the Mac.
I hack on Linux at work, but at home I have no Linux box, which sucks. I'd like to maybe get an Ubuntu box at home as a desktop. Now I wouldn't give up Mac of course, just need the Linux fix.
Donate to keep this site going!
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||