Yoho!
Hey, what's up.
I'm Bustanil, and I'm just this guy, you know? I write code for a living. But I also do it for fun.
Feel free to browse my blog.
Thanks for checking in. You rock.
One feature that almost every dynamic language, such as Ruby, is the ability to construct expression and evaluate it at runtime.
Example:
D:\sandbox\InstantRails-2.0-win\rails_apps>irb
irb(main):001:0> a = 1
=> 1
irb(main):002:0> b = 2
=> 2
irb(main):003:0> c = "a + b"
=> "a + b"
irb(main):004:0> d = eval(c)
=> 3
I'm sure, this feature will significantly provide more solutions to every problem encountered during application development.
Suppose you have some files with revision number 123, and then you realize that you need to revert to the previous revision (for example revision 120) and reflect the reversion changes to the server. Here's how you should do it:
- Update those files you want to revert on your working copy to the previous revision.
svn update --revision 120 - Copy those files to a temporary directory
- Update to the latest revision
svn update - Then overwrite the latest revision with the files in the temporary directory
- And then commit them back
- Voila! you have your files reverted back to revision 120 in the new revision, e.g. revision 124
It's simpler than using svn merge and diff-ing those files one by one.
Masih menggunakan fasilitas
Search for Files-nya Ubuntu untuk mencari dokumen-dokumen anda yang bertebaran di mana-mana?
Tinggalkan cara lama dan gunakan
Tracker. Aplikasi ini akan mengindex semua file yang ada di direktori-direktori yang anda pilih.
Cara menggunakannya?
Tinggal klik tray icon "kaca pembesar" di pojok kanan atas, masukkan keyword klik Search dan
voila! semua file-file yang memiliki nama atau isi sesuai keyword akan tampil dalam hitungan 1 detik.