#Solved “svn error: is not a working copy directory”

I get this svn error quite often since changing my development environment to ubuntu, because I never got this error while I working on windows. This error was really sucks before I got the solution. Everytime I commit my works this error occurs. Then, why the directory is known as not working copy? In linux there are file and directory permissions where both of them can be different. So far, I see that the file permission is the cause of this error.

I previously used very bad solution to deal with this error. I copied the project directory, delete the repository and export again the backup to the repository. It would be very bad idea to do this every time I get the error. So this is what I got after the tiring searching.

For instance, I have a directory works/ that is known as “not a working copy”. To resolve the error then do these steps:

  1. Make sure that the directory permission is correct (same with another working directory). Use chown command to take the ownership or chmod to change the permission. Don’t forget to use -R option to apply the changes to the whole directory.
  2. Rename the directory.
    mv works/ works_/

    (it can be any name).

  3. Revert the svn.
    svn revert works/
  4. Clean up the working directory.
    svn cleanup
  5. Rename again the directory to the original name.
    mv works_/ works/
  6. Add the directory to svn.
    svn add works/
  7. Clean up once again.
  8. Finally commit the changes.
    svn commit works/

Juventus win the scudetto

Juventus win the scudetto

Forza Juve 3x. Incredible season for Juventus which finally win the Serie A title. This morning first I did was opening my laptop and search the latest news. Ahaha, the news said that Juventus win the scudetto by wining the match 2-0 with Cagliari whereas Milan was defeated by Inter 4-2.  And I feel full of joyful after reading the news. So after arriving to the office I rush to write this post. What a wonderful season for Juventus and now they still unbeatable.

Yap, for me, I think this the 30th title for Juve so they are decent to add a new star to the logo. On the official Juventus website they also stated that this title is 30 on the pitch, but the calciopoli scandal has made them gave away the 2 title to Inter Milan. This season Juve still has two matches, one in Serie A and the other one in Coppa Italy final. Hope they will keep the positive trend and win the rest of the game. Forza juve.

image was grabbed from : juventiniarena.wordpress.com

Belajar Yii

Yii Logo

Sudah lebih dari dua minggu ini belajar framework baru. Project baru kali ini ingin migrasi ke framework baru. Biasanya yang dipakai adalah CI (Codeigniter). Sebagian besar project software development di kantor manggunakan framework CI. Karena sudah agak bosan dengan CI dan karena ingin coba framework lain yang lebih mature, akhirnya untuk development project baru kali ini diputuskan untuk menggunakan yii sebagai framework penggantinya.

Kesan pertama mencoba Yii, lebih mirip dengan ruby on rails yang mana kedua framework ini memiliki fasilitas code generation. Dengan fasilitas ini sangat membantu sekali mempercepat proses development aplikasi. Jika saya lihat struktur code dalam Yii jauh lebih terstruktur terutama dari sisi OOP nya. Sehingga bisa dengan mudah reuse object ataupun modul. Dokumentasi yang disediakan di website resminya cukup lengkap termasuk contoh-contoh tutorialnya. Kalau dari sisi komunitas mungkin masih belum sebanyak di CI. Tapi overall ini framework Yii layak dicoba untuk development aplikasi web. Berdasarkan ranking di http://www.phpframeworks.com/top-10-php-frameworks/ pun menempatkan Yii pada urutan teratas. Sehingga saya tidak ragu lagi untuk belajar framework ini :D . Sekarang masih berjuang untuk memahaminya dan berguru kesana-kemari, bismillah semoga berhasil dan sukses belajarnya :D

image was grabbed from: en.wikipedia.org

Thanks to the stranger

Terima kasih “orang asing”. Beberapa waktu yang lalu saya pulang ke madiun, hari jumat sore tepatnya dan seperti biasanya saya naik bus. Saya tidak mengira ternyata perjalanan pulang tersebut menjadi perjalanan yang melelahkan dan sekaligus mengkhawatirkan. Awal perjalanan pulang cukup lancar dan saya pun sempat tidur :D . Namun selepas kota Ngajuk bus terjebak kemacetan panjang. Entah apa yang menyebabkan kemacetan panjang ini. Tapi seperti biasanya juga, sopir bus mengeluarkan inisiatif dan kreativitasnya untuk mencari jalan keluar. Dengan penuh keberanian sang sopir pun mengambil jalur kanan.

Laju berani sang sopir pun akhirnya terhenti setelah di stop oleh beberapa orang polisi. Polisi-polisi tersebut tampak sibuk mengatur lalu lintas dan berusaha mengurai kemacetan panjang tersebut. Ternyata yang menjadi penyebab kemacetan itu adalah terjadinya kecelakaan. Sebuah truk tangki pengangkut bbm terguling. Kecelakaan sepertinya sulit ditangani oleh pihak berwajib karena bbm yang dibawa truk tersebut tumpah dan baunya pun sampai tercium ke dalam bus yang saya dinaiki. Berita lengkapnya mengenai kecelakaan ini bisa dilihat disini atau disini.

Setelah dihentikan oleh polisi, bus pun tidak bisa bergerak lagi. Jika saya terus menunggu di dalam bus bisa-bisa pagi baru sampai di rumah. Jam sudah menunjukkan pukul 9 malam yang seharusnya saya sudah sampai rumah jam segitu. Melihat keluar melalui jendela bus ada banyak motor yang meliuk-liuk mencari celah jalan keluar. Saya pun akhirnya keluar dari bus dan berusaha mencari tumpangan untuk pulang. Ternyata banyak juga orang-orang lain yang mencari tumpangan. Akhirnya saya melihat seorang pemuda yang naik motor sendirian, saya pun mendekati dia dan menanyakan apakah bisa numpang pulang bareng dia. Alhamdulillah dia mau memberi saya tumpangan sehingga bisa keluar dari kemacetan panjang itu dan pulang sampai di rumah dengan selamat. Terima kasih banyak atas tumpangannya, entah siapa namamu dan dari mana asalmu. Terima kasih.