just discovered again the music video i like from a long time ago

About Nathan Drake

I love the Uncharted series on the PlayStation 3. So after Uncharted 3 arrived in my apartment on Nov 1, I finished the game in about 4 days in normal difficulty. Here I’m just jotting down what I like and what I don’t like from the latest installment on the epic adventure of Nathan Drake.

1. LIKE - epic story, surviving an airplane crash, chasing truck with horses, surviving sinking titanic, nice ship-junkyard scene, surviving a burnt house. interesting background story. And oh my god, I almost had tears on my eyes over that one scene. ;p

2. DON’T LIKE - spiders attack, the ancient monster on the second game was cheesy but added to the story, and actually surprised me at one point (remember ice cave, anyone?), but this spider attack (and it come not only once, but multiple times during the story) is just plain boring. It reminds me of time crisis 4, yes similar mechanic, spiders get close, shoot spider once, spiders go away, spider comeback, repeat. 
B O R I N G - seriously guys, put some more effort, the spiders don’t even have high details!

3. LIKE - normal difficulty was actually pretty difficult at a few battles. I died more than just a few times each. But it gives me more challenge and I like it, I think it’s about right.

4. DON’T LIKE - late-game story. At some point,  I was having dejavu on how similar the late-game story was to the second game. Now instead of the guardians, we have the fire-headed bad guys. same mechanic, just no magic arrows. not enough cut-scenes and story telling near the end, it feels almost like the game was rushed towards the end. The drugged Drake scenes actually made me dizzy.

Thank you Steve.

Thank you Steve.

Love the art of Stephen Wilkes “Day to Night” Collection.
Click on the picture to see more.

Love the art of Stephen Wilkes “Day to Night” Collection.

Click on the picture to see more.

jQuery and prototype conflict: Array.shift()

Today, I had a case where I needed to use both libraries in one page.

I loaded both libraries normally, used jQuery.noConflict() to rename the $ to $j.

and renamed $ to jQuery in all the external js files that uses jQuery.

All seem to work just fine, however one of my function that is called using setTimeOut was still causing error. I know the problem is not in my code, since I already replaced all $ with jQuery.

Looking at the call stack in  Chrome, I see that jQuery is calling the Array.shift() method (W3C implementation), however the prototype library override this method. and this overriding method (in prototype) causes the error. specifically this is the error raised:invalid array length.

So possible solution was to change the jQuery source code to make sure we use the W3C Array.shift(), but I don’t think it’s a good idea, since we’ll have to deal with this again when updating jQuery.

At the end I decided to remove prototype completely from the page..

Setting up Dreamhost with Python, Django, Tastypie, South, etc

  • Install VirtualEnv and PIP

    $ curl -O https://raw.github.com/pypa/virtualenv/master/virtualenv.py
    $ python virtualenv.py my_env
    $. my_env/bin/activate

    you should see your prompt slightly change now, indicating that you are within your new (my_env), you may start installing new packages into this new environment. More about pip here.
    I installed my_env in my home directory /home/<username>
    and the site packages under my_env will be installed in:
    /home/<username>/my_env/lib/python2.5/site-packages
    if you use a different directory, just adjust in the passenger_wsgi.py file
  • Install Yolk

    $ pip install yolk

    This is basically just so that you can do “yolk -l” to list all the python packages installed in your environment. More about yolk here.
  • Configure passenger_wsgi.py to use activate virtualenv
    edit passenger_wsgi.py in your app root directory (domain.com)
    import os, sys, site
    ....
    site.addsitedir('home/<username>/my_env/lib/python2.5/site-packages')
    activate_this = os.path.expanduser('~/my_env/bin/activate_this.py')
    execfile(activate_this, dict(__file__=activate_this))
    ....

    These are only the necessary lines, please merge with your passenger_wsgi.py accordingly. 
  • Install TastyPie, don’tforget to run syncdb!

    $ pip install django-tastypie
  • Install South
    $ pip install South
  • Install *
    Means you can now install whatever you want into this new environment
    you can even install your own django version!
  • To quit my_env just:

    $ deactivate

One day in our life..

Ai:  What is python?

?

me:  hm language

u following my twitter huh

Ai:  Bahasa apa itu? Bahasa ular?

me:  iya

buat ngo sm ular

kyk harry potter itu

si rio kan bnyk pythons

Ai:  Huh km bisa?

Gmn caranya?

me:  bs

Ai:  Huh ngapain km bljr gituan

Mengerikan..

me:  def speak():

  print “speak to me u little snake”

Ai:  Huh

Ga ngerti

Challenged completed!

Right now, I’m so tired, and my legs about to have a breakdown, but I’m here sitting and typing this post proudly.

I was team FactSet. My name might not show up on top two  three four digits people that pass the finish line first. But I did it, the whole 3.1 miles. I did practice a few times before the race today, 1 -1.5 mile, but this was the real thing, the real pain. In addition to the race, I still had to walk to and back from the event, which is pretty far from my place. Of couse, I didn’t run the whole course, in fact I probably only run about a little bit more than half of it. While I was walking,  a never-ending stream of people passed me by.

Over 15,000 people were at Central Park today each wearing his/her company’s team shirt. Most of these people were in shape. A lot of them seem to run CP every day or at least 5 times a week. Team FactSet is pretty solid too, except for a few including me. I’m so out of shape, I took this challenge to force myself into exercising and it worked, at least for some time. Hopefully I can keep it up. I’ll post a link to the picture when it is posted.

Now I’m just gonna relax, enjoy my KFC with rice, and embrace knowledge I will feel a little pain tomorrow.

Looking for a nice keyboard for SC2 gaming and programming (not pro-gaming)

What I don’t like from the SteelSeries 7g..
Small backspace key. I hate this for two reasons; hard to reach with my pinky, and like to furiously backspacing when coding with 2 fingers, a habit i like to keep.

What I like from SteelSeries 7g..
nice palm rest.

What I don’t like from Razer Black Widow Ultimate..
Poor Mac compatibility
No palm rest

What I like from Razer Black Widow Ultimate..
Backlighting
Clicky mechanical sound

What I like from Razer Marauder..
Cool backlighting (APM lighting system) 
The SC2 look and feel

What I don’t like from Razer Marauder..
Not mechanical
No arm rest
Look very elevated
No dedicated arrow keys.. (really bad) 

Anamanaguchi - Helix Nebula (by GuchiKid)

gq:

The Oral History Of Nirvana’s Nevermind (A Brief Tease, Anyway)
Possibly our favorite thing in the new June 2011 issue of GQ is the oral history of the making of Nirvana’s Nevermind, by Nate Penn and a fleet of reporters, who interviewed dozens of people (including Courtney Love, Dave Grohl, Krist Novoselic, Kim Gordon, Chris Cornell, and more) ahead of the album’s 20th anniversary to assemble the definitive history of its recording. The oral history is only available in the print edition and our new iPad version, but over at GQ.com we’ve assembled a slideshow of amazing photography of the band circa 1991. And below, here are a couple choice quotes from the oral history:

“About a week before I went to L.A. to begin recording Nevermind, I got a  cassette in the mail. The first thing on the cassette was “Hey, Butch!”  It was Kurt speaking on a boom box: “We got a new drummer, his name’s  Dave Grohl, he’s the best drummer in the world!”—Butch Vig, producer, Nevermind
“Kurt was a leader, he was strong, in fact he was well fucking hung, if  you really want to know.”—Courtney Love, singer, Hole; widow of Kurt  Cobain

gq:

The Oral History Of Nirvana’s Nevermind
(A Brief Tease, Anyway)

Possibly our favorite thing in the new June 2011 issue of GQ is the oral history of the making of Nirvana’s Nevermind, by Nate Penn and a fleet of reporters, who interviewed dozens of people (including Courtney Love, Dave Grohl, Krist Novoselic, Kim Gordon, Chris Cornell, and more) ahead of the album’s 20th anniversary to assemble the definitive history of its recording. The oral history is only available in the print edition and our new iPad version, but over at GQ.com we’ve assembled a slideshow of amazing photography of the band circa 1991. And below, here are a couple choice quotes from the oral history:

“About a week before I went to L.A. to begin recording Nevermind, I got a cassette in the mail. The first thing on the cassette was “Hey, Butch!” It was Kurt speaking on a boom box: “We got a new drummer, his name’s Dave Grohl, he’s the best drummer in the world!”—Butch Vig, producer, Nevermind

“Kurt was a leader, he was strong, in fact he was well fucking hung, if you really want to know.”—Courtney Love, singer, Hole; widow of Kurt Cobain

on Windows XP: Example of bad usability design.
see that New Folder icon?how many times do you think people accidentally hit that button? MSFT should report statistics on that.
The problem is what needs to be done in order to undo the result of clicking that button. Unfortunately CTRL-Z does not work in this scenario. Here&#8217;s what happen after you accidentally clicking that button when all you wanted to do was going up one level.
you are in rename mode, which means u cant just hit delete right away. you have to click some where then click on that &#8216;New Folder&#8217; folder again.
you hit delete on your keyboard (faster) or right click &#8216;Delete&#8217; (slower)
great.. now it is in your recycle bin, to really undo your action you will need to completely remove this &#8216;New Folder&#8217; (or if you are a neat freak), you will have to empty that bin as well.
That&#8217;s a lot of actions to revert the result of accidentally single clicking a button.Suggestion: Move the New Folder button to the far right corner  of that window.

on Windows XP: Example of bad usability design.

see that New Folder icon?
how many times do you think people accidentally hit that button?
MSFT should report statistics on that.

The problem is what needs to be done in order to undo the result of clicking that button. Unfortunately CTRL-Z does not work in this scenario. Here’s what happen after you accidentally clicking that button when all you wanted to do was going up one level.

  1. you are in rename mode, which means u cant just hit delete right away. you have to click some where then click on that ‘New Folder’ folder again.
  2. you hit delete on your keyboard (faster) or right click ‘Delete’ (slower)
  3. great.. now it is in your recycle bin, to really undo your action you will need to completely remove this ‘New Folder’ (or if you are a neat freak), you will have to empty that bin as well.

That’s a lot of actions to revert the result of accidentally single clicking a button.
Suggestion: Move the New Folder button to the far right corner  of that window.

 - Wraith (Forthcoming Twisted Monkey Records)
[Flash 9 is required to listen to audio.]

Awesomeness.

0 plays

Accent theme by Handsome Code

Interactive Design, User Interface Design, Gadgets and Machines, Cool Products, Codes, DOTA, Starcraft 2 and MotoGP.

view archive



Hello People

Ask me anything