Tag Archives: Vote

What to do When Programming the Web

Always support UTF8. It’s the only encoding every body should use. So put:

<?php mb_internal_encoding("UTF-8"); ?> 

Somewhere on header. Save you a lot of headache.

Then the following are SEO tips:

  1. In URL http://example.com/I-like-programming

Words like Hello, World, Hi, like, And Programming should be displayed prominently.

  1. It should be done on server side. Search engine do NOT read content generated by client side scripts

Vision Control

In my office, I put programs on drop box. It’s automatically backed up with time machine.

Note: Time machine is a software in iMac that keeps back up of all version of a file. The fact that it can repeatedly back up a 200G hard disk into an 80 GB of backup disk shows that it must have stored only the change. However, that is invisible to users. Yes I can check differences too. I do not have a real time machine in back to the future sense.

All my programs are on dropbox.

So I really see no reason for version control. Things go wrong I use time machine to check the difference.

I think I tried to use a version control that come with xcode. I try to find and replace a variable.

Boom. Program stop working, I have no idea where things went wrong after 160 replacements.

Use version control to “restore”, bugs grow even bigger. Looks like the version control itself is buggy. And I don’t know what really is going on. Something along updating xib and not updating .m or via versa. After the restore the version control change back my document object model all the way to really early version. Looks like it has committed some files and not the other.

Use time machine to restore. Works fine.

Your ads will be inserted here by

Easy AdSense.

Please go to the plugin admin page to paste your ad code.

If things go REALLY wrong, I will go to the time machine and copy the actual snapshot of the old version to some new directory and see if stuff at least compile there. Yes time machine only store differences. However, I can do that just fine. That fact is completely invisible to user.

Since then I am happy enough with the result for now. I don’t know how this can be better.

The thing with timemachine is I know exactly what it does. Namely making copies and back up of old files. With version control, I am not sure what it really does. So dropbox + timemachine works fine for me.

Code clashes are extremely rare.

Here is another important reason why I do not use VSS

Just look at this. Command line? Yuck… http://hginit.com/01.html

I thought I am nerdy. Not that nerdy. With time machine I at least have this cool graphics apple gave me.

Yes with dropbox, it’ll work with windows too. Just sync my dropbox across machines. Done.

Being nice is illegal to protect assholes

Actually that $500k per year guy says the exact same thing I have always been saying. Yet no body believe me.

Hot girls do not want marriage. Some men are nice. Those men want to pay more. Yet being nice is often illegal. That is the problem.

Government doesn’t punish assholes. Government protect assholes from competition from nice people by criminalizing nice acts. Go figure.

That’s the essence of all trade restrictions. Somebody are so nice they sell lower, then boom, illegal. Some girls are so nice they want to suck your cock for a mere $50, boom, illegal. Some guys are so nice they want to pay $50 for a 15 minute job. Boom illegal.