Categories
Archives
Recommendations

Itzhak Perlman
Cinema Serenade

Howard Shore
Eastern Promises

Claude Debussy, Leonard Slatkin, Frances Tietov , Saint Louis Symphony Orchestra
Debussy: La Mer; Prélude à l'après-midi d'un faune; Danse sacrée et profane

Itzhak Perlman, John Williams
Schindler's List: Original Motion Picture Soundtrack

Hans Zimmer, Lisa Gerrard
Gladiator

Joe Hisaishi
Spirited Away

Paul Desmond, Dave Brubeck
Time Out

Johannes Brahms
Brahms - Ein Deutsches Requiem

BT
This Binary Universe

Johann Sebastian Bach, Emerson String Quartet
Bach: The Art of Fugue

Douglas R. Hofstadter
Godel, Escher, Bach: An Eternal Golden Braid
div>I adore it. →LinkGoosh.org:Google for the command line zealots
.Computer Science .Technology Geek | Written by
Kay | Leave a CommentA great lecture. “He did, however, mention that he experienced a near-deathbed conversion: he switched and bought a Macintosh computer.” →Link | →Link to YouTube VideoRandy Pausch dies; His ‘Last Lecture’ continues to inspire

.Computer Science Geek Thinker | Written by
Kay | Leave a CommentUNIX command for getting the latest version of a file
.Computer Science Geek | Written by
Kevin | 4 CommentsWhen it comes to UNIX shell-scripting I need all the help I can get. It’s hard trying to do something new because getting to the right info requires reading many manual pages. Here are commands I learned to find the latest version of a file that has a timestamp in its filename. Suppose the files are
myFile.2008-05-01.12.45.01
myFile.2008-05-01.12.46.02
myFile.2008-05-01.12.47.03
and they’re in a directory with many other files, and you want to find the myFile with latest time, then issue this command in the directory of myFile:
ls -l | awk '/myFile/ {print $NF}' | tail -n 1Ok, so what does this do?
“ls -l” prints the files in the current directory, one file per line, in ascending sorted order. This output is passed to awk, which evaluates each line, searching for the pattern myFile, and for each line with myFile, it separates the words by whitespace, and prints the last field, which is the filename. The list of such filenames is then passed to tail -n 1, which simply prints the last file in the list. The result should be what we want. Of course, if there are other files such as myFileABC, then this command won’t work. We’ll need a more specific regular expression pattern in the awk command.
Can anyone do it simpler? Please share. Thanks.
Personalize Your Unix Shell Prompt
.Computer Science Geek | Written by
Kevin | 1 CommentIn a UNIX shell terminal, a prompt indicates the shell is ready for a command. An example:
$
PS1 is the environment variable that determines what the prompt is. Change it to change the prompt.
For example: PS1=${PWD}> ‘ will set the prompt to display “current_directory> “. Pay attention to the single quotes. Using double quotes may have a different effect.
To keep your new prompt each time you log in, set PS1 in your .profile file in your home directory.
Play around. Different shells require different symbols. Here are some more examples.
In bash, I use: PS1=’\[\e]0;\w\a\]\n\[\e[32m\]\u@\h\[\e[0m\]\n\$ ‘
In ksh, I use: PS1=’${HOSTNAME?}:${PWD?}’`echo “\n> “‘
Tell me what you are using.
“Ben Fry analyzes the data from an intelligence test administered to all incoming NFL players and displays the results by position.” [Via Kottke.org] →LinkVisualizing data by Ben Fry
.Computer Science Geek | Written by
Kay | Leave a CommentCreating art pieces with simple algorithm and minimum amount of code.[Link]ContextFree.js & Algorithm Ink: Making Art with Javascript

.Computer Science Artist Geek | Written by
Kay | Leave a CommentThe irony is, 5 years later, Vista managed to be a worse product than XP. It seems something is wrong with both MS and Windows that even Bill couldn’t fix it. Architecture, perhaps? [Link]Bill Gate’s email on the Windows Usability
.Computer Science Geek | Written by
Kay | Leave a CommentZFS: why and how
.Computer Science Geek | Written by
Kay | Leave a CommentJonathan Schwartz, the CEO of Sun, has posted an insightful article on the why and how behind ZFS. The link is here.
A little blue screen for everyone
.Computer Science Geek | Written by
Kay | Leave a Comment
The blue screen is back, brought you by Adobe!
Ok not exactly by Adobe. It’s done by this guy.Here’s how it works.
When you enter fullscreen mode in Flash 9 there’s a little message telling you that you can exit fullscreen by pressing escape. What this guy discovered was that it’s not difficult to obscure that message and make it appear as though the machine has crashed(Windows crash).
Don’t worry about future variations(read:future pranks) though, because when Flash goes fullscreen, keyboard input is disabled.
Now if only someone is smart enough to come up with a fake OS flash done this way..Why is PHP disabled by default in Leopard?
.Apple,Inc .Computer Science Geek | Written by
Kay | 1 CommentSo I was trying to set up Apache on Leopard for my laptop, then I realized that Apple has already installed Apache 2.2 in OS X. You can activate the Apache server by turning on Preference>Sharing>Web Sharing. Then I thought Apple might just have set up everything I needed already, and all I needed was AMP(Apache, MySQL and PHP). Well, not really. It turned out that PHP 5 was installed but for some reason, disabled. That’s like selling you a house but forgot to give you the key.
And I don’t get why.
Actually the only reason I can think of is iWeb, which is PHP-free. A simple Drag-and-save will get you a nice html page uploaded in your /user/Sites/ folder.
So I guess Apple is suggesting normal user to forget PHP and simply use iWeb to publish their sites. That’s kind of lame and unnecessary, but again, I can easily be wrong.
And in case you are wondering how to activate PHP in leopard, there’s an all-in-one package that’s going handle all the hassles activating PHP. It will also set up phpMyAdmin for you. The download link is here. It seems that there was also some way to manually activate PHP, now though that way no longer work.I tried MAMP and it worked without problem on Leopard, and is definitely worth considering if you don’t want to waste too much mess with terminal commands. To make it work copy the downloaded MAMP folder to Applications, and then double-click the MAMP icon inside the MAMP folder. I suggest that you select Preferences > Ports, and click “Set to default Apache and MySQL ports”. If you do this, it’s important not to switch on Web Sharing in System Preferences. You must also close down any existing MySQL server. It’s also important to realize that the Apache and MySQL versions installed by MAMP are completely independent. The site root and MySQL data store are in different locations. Any databases created in a previous installation of MySQL must be exported, and reimported into the MAMP version of MySQL. The need to move things around detracts from the attraction of MAMP if you already have several databases stored in an existing installation of MySQL.
P.S. Quote from the site of MAMP.
Will MAMP work if the MAMP folder is not located in the Applications directory?
No. In order to work properly the MAMP folder has to be located in the Applications folder.Super Effient Code From QUAKE3 To Calculate 1/?x
.Computer Science Geek | Written by
Kay | Leave a CommentRead more
float InvSqrt(float x){
float xhalf=0.5f*x;
int i=*(int*)&x;
i=0×5f3759df - (i>>1);
x=*(float *)&i;
x=x*(1.5f-xhalf*x*x);
return x;
}Analysis coming soon.
A little bit Google searching got me the usage of this Inverse Square function in Quake 3. Mind you it was written prior 2000.
“My Free Software Runs Your Company”
.Computer Science Geek | Written by
Kay | Leave a Comment
This is the creator of MySQL, Michael Widenius. He’s not boasting at all.
Thanks for your creation bro XD[Photo Via Jonathan Schwartz]
Observation of Forbes 400

.Computer Science Geek Thinker | Written by
Kay | Leave a Comment
Top 20:
#1 William Gates III Net Worth $59.0 billion Harvard University, Drop Out
#3 Sheldon Adelson Net Worth $28.0 billion City College of New York, Drop Out
#4 Lawrence Ellison Net Worth $26.0 billion University of Illinois, Drop Out
#7 Kirk Kerkorian Net Worth $18.0 billion High School, Diploma
#8 Michael Dell Net Worth $17.2 billion University of Texas Austin, Drop Out
#11 Paul Allen Net Worth $16.8 billion Washington State University, Drop Out
#19 Jack Taylor & family Net Worth $14.0 billion Washington University, Drop Out
There are more but it gets kind of meaningless.
Among Top 11, 6 are in IT industry. 4 of those 6 are drop-outs.Oh did I mention Steve Jobs?
Steve Jobs Net Worth $5.7 billion Reed College, Drop Out
Update: Mark Elliot Zuckerberg Net Worth $1.5 billion, Harvard University, Drop OutSponsor

-
Discovered
TopGear available in iTunes
A favorable move by BBC. I personally would buy it if it’s updating fast enough. →LinkSteve and Bill's pumpkins
“That would be the perfect pumpkin, if only it had firewire.” →LinkJean-Paul Gaultier’s Paris
France’s most iconoclastic designer maps out his favorite places in the City of Light. →LinkThe Dark Bailout
Hilarious. →LinkRockbox 3.0 released
Long time fan of this. It’s recommended to any iPod classic(the order versions too) users. It does literally everything. And yes, that includes playing Doom on your iPod. →LinkThe Godfather Trilogy blu-ray version is out
To buy it, follow the link. →LinkAnother detailed look at Yacht “A”
Remember the Yacht “A”? Now here is a more detailed look at it. For some reason I wish it can fly. →LinkAdobe releases CS4
“The new version of Adobe’s flagship software product takes its first steps in using the graphics processing unit, or GPU, said John Nack, principal product manager for Adobe Photoshop. For example, the graphics chip helps Photoshop CS4 fluidly zoom in and out, rotate the canvas so artists can reorient an image for the best sketching angle, display and manipulate 3D objects, and handle color correction.” That’s THE photoshop we were waiting for. →Link"I'm a PC" ad created by Mac?
No, I liked those ads, I think they are great. But Appleinsider is reporting that they are created using Macs. Perhaps they got it wrong. It’s the advertisement studio who are using Macs, not Microsoft. Or tell me if I’m wrong. →LinkMicrosoft Aims to Redefine ‘I’m a PC’
“One new Microsoft commercial even begins with a company engineer who resembles John Hodgman, the comedian portraying the loser PC character in the Apple campaign. “Hello, I’m a PC,” the engineer says, echoing Mr. Hodgman’s recurring line, “and I’ve been made into a stereotype.”” For some reason this just sounds like an extreme poor idea to me. It will eventually draw more attention for Apple.→LinkNYTimes: The iPhone Travel Apps Guide
Next time when you travel, be sure to check if those apps for your iPhone. →LinkJRDesign's great Leopard folder icons
The aluminum ones look great on iMac, black ones look amzing on black MacBook. →LinkPrada's Fallen Shadows video
“Created by visual effects master James Lima, Prada’s new “Fallen Shadows” video brings to life the Autumn/Winter 2008 collection with an animation sequence that references surrealist artists like Dali.” →LinkThe Vivienne Westwood Opus
“The Vivienne Westwood Opus offers a startling insight into Vivienne Westwood, her manifesto and her stunning designs, which reflect the passion of her collections. Since it is a very personal and special project for the Grand Dame of British Fashion, only a very limited number of 900 copies will be available to the public worldwide.” →LinkTen Striking Parallels Between Microsoft and John McCain
Quite long, but he got some points. →LinkNew Leica cameras get detailed
3 new models. →LinkUndocumented features/fixes in iPhone 2.1 firmware
With screenshots. →Link7,000 bhp car
“It’s an 8-litre, supercharged V8 with 7000bhp that uses about 65 gallons of fuel a minute” “This isn’t an engine. It’s a bomb” →LinkWho has time for complicated watches?
David Colman:”It was one thing when the cellphone replaced the cigarette. But now killer apps have replaced killer abs, and the chicest parties throng with guys showing how they can make their iPhones look like Magic 8 Balls. It’s enough to make a man long for the days when all you heard from even the costliest accessory was the faint tick of a sleek watch.” →LinkLeica's new cameras
No spec yet. →LinkCERN day 1
I’m still here. You? →LinkDoes iTunes 8 sound better?
I noticed so. Thought I was being delusional. But surprisingly a lot other people noticed as well. →LinkApple trailer website got a new look
My favorite place for trailers. →LinkArs Technica Guide to Virtualization
A comprehensive article on virtualizaion. →LinkThe evolution of Olympic torches
Interesting to see how the torches evolved in a century. →LinkTutorial: Turn Your iPhone Into a Wireless Modem
Guide on “turning our iPhones into wireless modems with the $10 NetShare application” →LinkFirst iPhone Application
Easy to follow guide for your first iPhone app. →LinkGoosh.org:Google for the command line zealots
I adore it. →LinkLarge Hadron Collider nearly ready!
Too many times I’ve read about the LHC(Large Hadron Collider) in science fictions. It still strikes me as one of the most brilliant thing man has done. “The Large Hadron Collider (LHC), a 27 kilometer (17 mile) long particle accelerator straddling the border of Switzerland and France, is nearly set to begin its first particle beam tests. ” →LinkOn Daniel Day-Lewis and his lucidity
“..in the US the social balance of things was exceedingly delicate and almost ‘behind closed doors’, with the only indication of a social blunder being a slight change in conversation and your phone stops ringing. ” →LinkApple DNS Patch Fails To Randomize - Users Still At Risk
“For Apple, it matters most that they patch the client libraries since there are so few OSX recursive servers in use. The bottom line is that despite this update, it appears that the client libraries still aren’t patched.” [Via: TUAW] →LinkNetShare's undecided fate
It appeared. Then disappeared. Appeared again. Disappeared again. →LinkBBC has gone mad
I just can’t believe this is real. →LinkAlan Jaras Light Photography
What most interesting is all these images are created by using a beam of light passing through a transparent object. →LinkSecurity update 2008-005 released
”The update patches several vulnerabilities including a much-publicized DNS/BIND server vulnerability where an attacker could cause a Mac OS X DNS server to direct clients to forged websites.” →LinkSmall-Car Styling
They missed Mini Cooper. And the beloved Peel P50. [Via: DesignObserver] →LinkCoolest skyscraper ever made
Just found this. →LinkDisable IE/Firefox autofill
“Use autocomplete=”off” in either < form >(for all boxes) or each specific input box.” →LinkWhy Apple won't drop Intel chipsets any time soon
So Ars tried to prove that Apple won’t move away from Intel chipset. →LinkWhat's new on Delicious 2.0
A much better improvement. →LinkAn ATM in your living room
I like this idea of having a little ATM at your home. →LinkGuides to cables by Giz
Kind of useful. →LinkiPhone native interface vs the remote app
Apple should make the native interface just like the remote app’s. Here’s why. [via ★] →LinkApple ARM licensing?
It’s interesting if Apple manufactures its own chipset instead using Intel’s, which will make Apple “Different” again. Also, it can potentially eliminates the possibility of Hackintoshes(Psystar). →LinkDynolicious iPhone application
“..it uses the accelerometer in your iThingy to measure 0-60mph times, lateral Gs and even horsepower.” →Link to introduction | →Link to App StoreMac Mini Vs Dell Studio Hybrid?
I need the Blu-ray option for Macs. Badly. →LinkiPhone 3G white developing cracks?
This is not looking optimistic for Apple if it’s real. →LinkPixar's Presto
The short film appeared before Wall·E. →LinkLightroom 2 is out
Be sure to read this Lightroom 2 vs My Lightrrom 2 wishlist. →LinkRandy Pausch dies; His ‘Last Lecture’ continues to inspire
A great lecture. “He did, however, mention that he experienced a near-deathbed conversion: he switched and bought a Macintosh computer.” →Link | →Link to YouTube VideoSteve Jobs Opening Line Generator!
Hilarious stuff. [Via RealDanLyons] →LinkInteresting analysis of the "Steve's Health" NYTime article from FSJ
“If Apple lies in a press release, or if its CEO lies in an on-the-record statement, the company has problems. But if everything was off the record, who’s to know? ” →LinkPhotos of Jupiter
Absolutely, breathtakingly beautiful. →LinkDarren Aronofsky confirmed to direct RoboCop
Coming 2010. Can’t wait. →LinkMicrosoft seeking a new strategy
I wonder if some day Microsoft just simply make their own PCs, say “MS Box”. →LinkDRM still sucks: Yahoo Music going dark, taking keys with it
“Yahoo e-mailed its Yahoo! Music Store customers yesterday, telling them it will be closing for good—and the company will take its DRM license key servers offline on September 30, 2008. ” →LinkMechanical wooden elephant
Can’t help to post when I saw “mechanical” and “wooden” in a single sentence. →LinkAurora Feint game de-listed from App Store
This was one of the free games I liked. “Aurora Feint looks through your contact list, sends it unencrypted to their servers, and matches you up with your friends who are currently playing right now.” Scary. →LinkGame rating system should learn from movie rating systems
Nice thought from Ars. →Link -
Recent Posts





