Vim for iOS is already available

I was flipping through Flipboard, and found this very interesting news:

vim has been ported to iOS.

To celebrate its 20th birthday, we have ported Vim to the iOS. Vim is a reference in the field of text editors, and is a rather good fit for mobile devices.

http://applidium.com/en/applications/vim/

Some obligatory screenshots:

OK. This just made my day. Honestly, it feels kinda weird using vim on touch screen device, but hey, it’s free… :mrgreen:

Growing Too Fast?

These are the quotes of Linus Torvald (yes, THAT Linus. The famous original author & chief architect of Linux kernel)

1992:

Your job is being a professor and researcher: That’s one hell of a
good excuse for some of the brain-damages of minix.

http://groups.google.com/group/comp.os.minix/msg/9f3c7c165aacc83f

 

and 17 years later:

We are definitely not the streamlined, hyper-efficient kernel I envisioned when I started writing Linux…

http://news.cnet.com/8301-13505_3-10358024-16.html

Hopefully I take those statements in context. So, the question is: what can we learn from those?

Are you thinking what I am thinking, which is the development process that expands so vast that it deviates the original goal?

 

 

Infinity Blade 2: A Not So-In-Depth Review

I bought this game last Saturday, and have been playing it for 2 days. Here’s my short note

The graphic
I don’t notice any big differences from its predecessor. It’s still a masterpiece. Probably the best iOS game with the most detail work of art, so far.

The gameplay
The good thing is there are some improvements on this part.

Now you have dual weapons, which are good for fast attacks and massive combos.. at the expense of the ability to block. If this is not your style, you can choose the lighter weapons (+ shields), or the heavier weapons, which trades power for speed.

More RPG-ish elements are added in the game. For example, there are certain paths that is not accessible until you beat certain boss. Need to enhance the power of your weapon/armor? You can do that by combining it with certain gems, which can be looted/purchased during the game. While fighting some enemies, there are certain rules that has to be followed in order to gain XP (experience point), like no magic, block 10 times, etc.

You can’t dodge relentlessly, because now it’s monitored by a stamina monitor. The more you dodge, the more tired your character will be. Once it runs out, your character will unable to get clear of enemy’s strikes. In other words, you need to block or parry more.

Despite the latest update, it still runs a bit laggish (on the iPad 2), particulary during heavy combos/parrying. I hope this issue will be addressed ASAP.

BTW, the obligatory screenshots :mrgreen: :

Conclusion: I rate this game 4.5 (out of 5)

A Few Interesting Small UNIX-like OSes

I found a few interesting small UNIX-like OSes to tinker with:

  1. Xv6
  2. thix
  3. v7/x86

Sure I haven’t done anything with them. We’ll see, anyway…

Jadi Hilang Niat

Beberapa hari lalu, ada seseorang yg nge-post tugas kuliah di suatu forum. Seperti biasa, saya tidak ngasih jawaban langsung, tapi hint saja. Diskusi pun berlanjut. Kemudian dia japri/PM (personal message), kurang lebih beginilah sebagian kutipannya:

“sebenernya saya tidak berniat menguasai mata kuliah ini. Yang penting lulus saja hehe…”

Begitu membaca kalimat ini, buyar sudah niat untung menolong orang ini. PM selanjutnya tetap saya jawab, tapi tidak dengan antusias. Duh gimana ya… :mrgreen:

 

Cara Share Direktori di Windows dengan Arch Linux di VirtualBox

Laptop saya menggunakan OS Win 7 64 Professional. Kadangkala saya iseng menjalankan Arch Linux di VirtualBox. Nah, saya ingin ada direktori di Windows yg bisa terakses juga di Arch Linux. Bagaimana caranya? Gampang. Nggak perlu install Samba :mrgreen:

  1. Jalankan Arch Linux di VirtualBox. Pilih Devices -> Install Guest Additions.
  2. Mount berkas installer:  sudo mount /dev/scd0 /media/cdrom
  3. Install paket linux-headers dan xorg: sudo pacman -S linux-headers xorg (kedua paket ini HARUS terinstall lebih dahulu, karena jika tidak akan menyebabkan error).
  4. Jalankan installer Guest Additions: sudo sh /media/cdrom/VBoxLinuxAdditions-x86.run
  5. Jalankan perintah: sudo modprobe -a vboxguest vboxsf vboxvideo
  6. Edit berkas /etc/rc.conf, tambahkan vboxguest vboxsf vboxvideo di bagian MODULES.
  7. Masukkan user anda dalam grup vboxsf: sudo usermod -a -G vboxsf anta40
  8. Tentukan direktori di Windows yang ingin anda akses, misal C:\works. Dari menu Devices -> Shared Folders -> tambahkan C:\works disini. Jangan lupa set Auto-mount dan Make Permanent.
  9. Reboot Arch Linux. Selanjutnya folder tersebut berada di /media/sf_works. Sekarang saya sudah bisa membuat/mengcopy/menghapus file disini, dan hasilnya bisa langsung terlihat di Windows.

RIP Dennis Ritchie

We were shocked last week to hear about the loss off Apple’s CEO, Steve Jobs. And this morning, there was another shocking news: Dennis Ritchie (DMR) had passed away.

For those who doesn’t know, DMR was the co-author of UNIX operating system, and the creator of C programming language. UNIX was a highly influential operating system, and it’s legacy it’s still continued today in Linux, BSD, Mac OS, etc. C, on the other hand, is one of the most programming languages used of all time.

Unlike Steve Jobs, his passing will not get that much coverage. I don’t mean to undermine Jobs. He was a genius of rare sort, and a visionary leader as well. But as a proverb says:

“If I have seen a little further it is by standing on the shoulders of Giants.”

Jobs was the man standing on the shouldars of Giants, and DMR was one of the Giants.

So let’s pay our last homage to the man who gave the world C and UNIX…

#include <stdio.h>

int main(){
	printf("Goodbye DMR...\n");
	return 0;
}

Anyway, Hacker News gives a nice tribute: black stripe on top of orange bar…

*Update*:

A statement from the president of Bell Labs

 

 

 

 

 

 

 

Farewell Mr Jobs

Thank you very much for your innovations and awesome leadership. Tech world will never be the same without you. Farewell…

Mencari Selisih Angka Pada Bahasa C

Iseng2 ngaskus, nemu trit [TANYA] Function mencari selisih angka pada bahasa C.

Saya coba Googling dulu, siapa tau ANSI C menyediakan fungsi semacam itu (fungsi untuk mencari selisih angka). Coba2 cari di sini dan situ, eh gak ada. Wah gawat ternyata beneran gak ada. Ya sudah, berarti harus dibuat solusi dalam assembly, karena C tidak menyediakan fitur built-in.

Ini solusinya (pake GCC, kalo mau diadaptasi ke compiler lain, silahkan ubah bagian assembly-nya).

#include <stdio.h>

int cariSelisih(int, int);

int main(){
	printf("%d\n", cariSelisih(99, 1));
	printf("%d\n", cariSelisih(5, 0));
	printf("%d\n", cariSelisih(39, 17));
	printf("%d\n", cariSelisih(2, -5));
	return 0;
}

int cariSelisih(int aa, int bb) {
	asm
	(
		"subl %1, %0"
		: "=r"(aa)
		: "m"(bb), "0"(aa)
	);

	return aa;
}

Tidak sulit bukan? Assembly saves your day…

Kepala pusing. Pengen tidur bentar, tapi lagi gak nyetir. Tidur dimana yah? -_-”

Follow

Get every new post delivered to your Inbox.