Friday, November 21, 2008

Now go and get a macbook (Joke again)

Today must be a joke day, I come across this one and just can't stop laughing:

You can discuss in Flickr.

What a creative joke (chinese content)

These guys are really creative. I will let you read yourself.

Just in case if there are english speaking people who are too interested to know what is this about- its sales ads for apartments. They write interesting slogans attempt to catch your interest.
Some translations are:
One Second Equals To One Inch Gold
Sq Feet Price Is Below 4000 Dollars (this sounds like a poem in chinese)

Celebrate for Obama's Victory
Price is further reduced (com'on whats thate related...)

Unbelievable Cheap
Superstitiously Cheap (How could superstitious related to pricing...)

Lehman Brothers 
Bring Down Brothers (I don't know if this is a good translation- it means, to get you fellows into trouble)

I Kill You Later Bring Down Landlord (I Kill You Later -> Accumulator)
Try my best find a buyer

Enjoy :)

Thursday, November 20, 2008

Microsoft Please Revive Expression for Mac

MS Acquired a great product called Expression from Creature House as a vector drawing tool, which later becomes Expression Design. However one of the worst decision from MS is they decided to discontinue the mac version. Please, revive it, MS.

If you wanna get the last version, MS is generous enough to let you download here for free.

Saturday, November 15, 2008

jQuery + Rails or NO?

While I really like the way how unobstructive jQuery is, there are some issues I kinda feel its complicating things, particularly when you try to do an AJAX app that renders some new links into your page and you need them to be binded again to events. For example, if you have an in-line edit form, you would have to do:

var bindRowEdit=function(scope) {$('link',scope).click()...}

var bindFormEdit=function(scope) {$('form').ajaxSubmit...}

Then each time when your new controls being rendered, you have to call this binding thing again. Looking at the obstructive way of using onclick or the url, while that might make your HTML looks a bit messy and longer, the result is kinda straightforward and easy to understand. I just hope there is something can have the best of both worlds.

Update: Ca Phun Ung, a great jQuery/PHP programmer I met in Barcamp HK, has written a post about event bubbling and also pointed me to the great jQuery livequery plugin, both are great solutions. I personally chosen livequery for my project and it works great.

Monday, November 10, 2008

iPhone awesome fun: Ocarina

I just bought it at 0.99 USD, freaking fun, you shouldn't miss it.

Thursday, November 06, 2008

Blow to the world of horrible monopoly: Adobe

Adobe sucks. Their software is one of the most horribly priced stuff, and they acquire all their competitors to retain their monopoly position (US should not be allowing Adobe to buy Macromedia indeed... in their anti-trust spirit)

What is even most horrible is the lack of ability to create any compatible vector graphics file. A friend created my company logo's SVG file for me and it becomes like this in Lineform:

broken-svg

Basically that's completely useless.

Inkscape opens the file slightly better, but the fonts are all messed up (could be related to my Mac X11), and they cant manage to get their hotkey functioning in both Mac X11 implementation nor Gnome so far. (Ok I might be dump not able to figure that out, but if Inkscape targets for designers, I would really wonder which designer has such ability to figure that out)

So, I guess the current situation is- blow to the evil of Adobe, or die. I wish that could be changed. Again charged software is acceptable, but priced at 1699 USD for a Web Development Kit- Adobe you must be kidding me.

Tuesday, November 04, 2008

A little trick on erb

Today I realize this wont work in ERB:

<% case controller.controller_name %>
<% when 'home' %>
HTML 1
<% when 'somewhere' %>
HTML 2
<% end %>



But this one works fine:



<% case controller.controller_name 
when 'home' %>
HTML 1
<% when 'somewhere' %>
HTML 2
<% end %>


Try to guess why? :) I would announce the answer after a week.


Saturday, November 01, 2008

Mac Questions? Drop me a comment!

To support my friend's decision on changing to mac, here I would like to welcome every reader to drop me any mac questions and I shall try my best to come up with answers.

And then the first tip: You can create a very secured volume protection for the files you need extra security. To do so:

1. Open Disk Utility

2. On toolbar, click 'New Image'

3. On Encryption, choose 'AES-128' or 'AES-256', the later one is more secure but slower.

4. Save the image.

5. When you are asked for a password, assign one, and make sure you uncheck Remember password in my keychain as otherwise people would just be able to open your file if you have logged on and authenticated the keychain.

From now on you can mount that disk image and everytime you would be asked for the password. You can drop all files you need securities in it.