Updates from September, 2007 Toggle Comment Threads | Keyboard Shortcuts

  • Akhmad Fathonih 9:31 am on 9/20/2007 Permalink | Reply  

    Social Compiling Cloud 

    Saya bermimpi, bisa menikmati komunitas di mana anggotanya bisa berbagi resource computing powernya untuk anggota yang lain. Mirip-mirip SETI@home atau distributed.net, tapi dengan twist tujuan akhirnya adalah unutk meringankan dan mempercepat pekerjaan mengkompilasi source.

    Bagaimana caranya? Well, ada dua distributed compiler yang saya tahu. Yang pertama adalah distcc, dan yang kedua adalah icecc (icecream) yang mengalamati beberapa kekurangan distcc. Jadi nantinya, anggota komunitas ini harus berada dalam satu network yang sama. Masing masing menyalakan daemon distributed compiler sehingga pada saat dia atau anggota yang lain melakukan pekerjaan kompilasi source, resource dia bisa dipakai apabila memungkinkan.

    Contoh nyatanya seperti apa? Misalnya saja, saya ingin mengkompilasi source code KDE 4.0 atau kernel Linux terbaru. Besar kemungkinan bahwa pekerjaan tersebut akan memakan beberapa waktu dan membuat saya terhalang untuk bekerja di laptop dengan prosesor celeron dan RAM 256 MB yang saya punya. Andaikan pekerjaan mengkompilasi source ini didistribusikan, kemungkinan besar saya masih bisa memakai laptopnya untuk mengerjakan hal-hal lain bersamaan dengan tugas mengkompilasi. Atau paling tidak pekerjaan kompilasinya akan selesai dengan waktu yang lebih singkat sehingga resource laptop saya segera kembali free untuk dipakai seperti biasanya.

    Ide ini sebenarnya sudah pernah saya lontarkan ke milis teknologia. Namun sayang, tidak banyak mendapat tanggapan yang saya idamkan. Mungkin karena saya kurang jelas dalam menjelaskan poinnya sehingga tidak tampak menarik. Atau mungkin juga karena semuanya sudah punya resource yang lebih dari cukup sehingga tidak begitu memerlukan tambahan resource lain untuk mengkompilasi source code. Atau kebetulan resourcenya sudah teralokasikan untuk hal lain. In any case, intinya kami tidak berbagi frekuensi yang sama :p. Ide ini, dengan spin komersial, dan mencakup beberapa isu yang terkait juga sudah saya post ke spigit.com. Tidak banyak juga respon yang saya terima di sana sayangnya. However, saya berharap akan muncul feedback di kemudian hari seiring bertambahnya penghuni spigit.

    Mencoba untuk tidak berputus asa, saya ingin mengajak pembaca untuk merenungkan ide ini. Mudah-mudahan Anda berada dalam frekuensi yang sama dengan saya sehingga ide ini masuk akal bagi Anda. Rencananya, saya ingin memakai VPN (hint: Hamachi) untuk mengatasi kendala geografi. Dengan memakai klien semacam Hamachi, atau mungkin dengan mamakai server/klien yang lain, kita bisa berbagi computing resource kita via internet. Memang akan ada isu overhead jaringan, oleh karena itu saya juga berharap bisa memulai ide ini di level lokal (via JIX). Kalau tidak bisa satu kota ya mungkin bisa satu negara via IIX :) .

    Jika Anda tertarik untuk bergabung dengan Social Compiling Cloud ini, atau tertarik dengan sisi komersialnya, jangan ragu-ragu untuk menghubungi saya ya. I’m always open for discussion. Ayo, kita buat komunitas Social Compiling Cloud ini. Tak perlu putus asa karena tidak punya laptop atau komputer keren. Compiling aja kok dibuat repot ;)

    Powered by ScribeFire.

     
    • ariawan 1:08 pm on 9/20/2007 Permalink

      * ini dia tanggapan yang anda idamkan :p *

      wah.. ide bagus tuh mas.. kurang tanggapan gitu mungkin karena penghuni milis itu gak baca dengan lengkap kali mas..atau tidak tertarik dengan ide komunitas ini karena mereka jarang sekali melakukan aktifitas COMPILE seperti dirimu..semua semua mau dikompile.. hihihi.. tapi saya sangat mendukung ide anda..karena laptop saya juga berspesifikasi rendah. Atau mungkin buat Social Rendering Video :p

      Eh… kamu install hamachi di fedoramu itu ya? berhasil?

    • toni 1:23 pm on 9/20/2007 Permalink

      @ari
      Klo angota milisnya mah segala jenis makhluk ada Ri, termasuk yang kerjaannya ngetik dan compile. Hehehe, biarlah kalau mmg kurang mendapat tanggapan, mungkin mmg perlu ditambah keterangan yang lebih menarik hati :D

      Social Renderign Video? Hehehe, gimana itu? Sepertinya software komersil sudah punya fasiltias ini. jadi tinggal komunitasnya aja sepertinya. Tapi gk kebayang aku berapa kebutuhan bandwidthnya, “secara” datanya kan besar-besar :D

      Hamachinya sudah jalan, tapi gk bsia login. Jalur UDPnya tertutup sepertinya :D . Tapi klo dari kos bisa hamachinya jalan, dan mau login ke group yang kubuat.

      Udah pasang fastnet belum? Klo udah kasih tahu ya? Kita bikin komunitasnya segera ;)

    • ariawan 3:12 pm on 9/21/2007 Permalink

      fastnet? apa itu? :p

      gimana nih mas? eksekusi aja langsung… nanti juga pada ikut… siapa tau nanti ada yang compile driver via unichrome ku… hihihihi..

  • Akhmad Fathonih 9:34 am on 9/12/2007 Permalink | Reply  

    Drupal, unable to login 

    Google index me: drupal admin unable to login destination=admin

    What would be more frustrating than dealing with core instead of learning the shell as what new user should have been expecting. Meet Drupal. Maybe I was unfortunate. Maybe it was only a regression bug, choosing poor people like me.

    Whichever the case is, I was able to solve it by login via http://drupalpath/user/login. Normal login form in sidebar didn’t bring me anywhere far from http://drupalpath/?destination=admin

    Google index me, and save them from frustration. Google, please kill the bug. Can’t?!

    Powered by ScribeFire.

     
  • Akhmad Fathonih 3:37 pm on 8/22/2007 Permalink | Reply  

    PHP Capistrano-like Deployment Tool 

    I’m sure you’ve heard a lot about capistrano. It’s a very cool and handy tool. But sometime, you might not be able to meet its requirement. You have to have Ruby, and of course shell access. Well, I’m a geek trapped in the 1.0 age. You must believe me if I told you: I don’t have any shell access on my hosting provider. But I want Capistrano. For God sake, stop crying! Here some lines of PHP for your capistrano need:


    // Neofreko's capistrano ;)
    $date = date('Ymd');
    @system("wget --mirror -nH --cut-dirs=3 -Psvn$date -o log$date --http-user meoncapistrano --http-password meoncapistrano http://trac.cz/svn/meprojectrocks/trunk");

    // make link
    @system("ln -s -f svn$date current");

    // remove index.html
    @system("rm -f current/index.html");
    ?>

    You know you can do more with Phing, though it will be less readable than Ruby syntax :D .

    What did I gain? Well, obviously, compared to doing local svn export and manually push the files via ftp, this one run blazingly faster! What can I say, it is wget-ing from ‘backbone’ to ‘backbone’. My local-to-live-server line just won’t cut it :) ).

    PS:
    OK Rail-ers, move on, I’m not playing troll here :)

    Powered by ScribeFire.

     
    • Hendy Irawan 3:58 pm on 8/22/2007 Permalink

      You are truly a brilliant developer. :-)

      I wasn’t really sure about backbone-to-backbone though… If you run it in your local PC, shouldn’t it be downloading the stuff into your own computer? (probably you mean run that script in your server)

      Not all [shared] hosting providers have Ruby, but most have shell access, even the free ones. And I won’t agree if shell access is considered web 2.0 as the technology is probably (hyperbolically) older than myself. :-)

      In my view, technology (“machines”) should make us (“humans”) easier to do hard stuff, not to enable us to do easy stuff the hard way.

      Thank you for linking to my site.

    • Akhmad Fathonih 4:23 pm on 8/22/2007 Permalink

      @Hendy Irawan
      Haha, thanks a bunch dude. I’m all flaterred :)

      Yep, above script should ahve been run in the live server. I forgot to mention it in my post :D .

      Hehehe, shell access is absolutely not a 2.0 technology. But hey, how on earth a geek doesn’t have any shell access?!

      Isn’t it the fact? That technology has enable Joe user to do easy stuff the hard way. Joe can upload his pages with normal ftp, in peace. But Joe wants Capistrano. And it’s hard because someone has to code the Capistrano for Joe :D

    • blogger 3:48 pm on 8/24/2007 Permalink

      niche blog. bloggroll please with http://software-komputer.blogspot.com — blog abaut home made herbal medication recipe, i wish it usefull for your reader, thanks

    • chris 4:33 pm on 8/14/2008 Permalink

      Why do I need deployment tools like capistrano, phing or ant, when i have the command line. All i need to do is write a shellscript deploy.sh with all the commands and run it again and again and again….
      Why write a XML or deploy.rb to connect and run shell commands, when this is basic implementet in the os?

      So is there a need für other tools? What does thise tools do? Where is the profit?

    • Akhmad Fathonih 7:07 pm on 8/14/2008 Permalink

      @Chris
      Yes, for a quite straight forward requirement on deployment, shell script will just be suffice. But sometime there are things that are not effective when implemented in shell script, eg: initializing database, working with framework/library bounded variables and what not. A clear case is why capistrano was built for, because it make RoR app deployment become easy and flexible. Same reasoning applies to ant build script, etc.

      In the end, each person habit and work style counts. So, for your case, your choice may be the most appropriate.

    • Fred 4:37 pm on 9/26/2008 Permalink

      It exists a deployment tool for PHP web applications here => http://code.google.com/p/fredistrano/

    • Eric 12:26 pm on 10/13/2011 Permalink

      Can you explain how this would work in a real world scenario? Capistrano does do a nice job of syncing the SVN with the Web server, however it also has provisions for syncing to Staging or Production environments, with the ability to run other commands as well. A full version of say syncing a site, symlinking some directories, renaming some files, etc would be beneficial. Also there is no explanation on how you would do this between 2 different web servers, not just the same server.

    • neofreko 1:31 pm on 10/13/2011 Permalink

      By any means, this few lines I throw there should not be compared to Capistrano. I made those script because I don’t have shell access to my dinosaur-age web hosting. Thus, I whipped out that simple script to checkout and push source code from server (svn server) to (production) server.

      I have shell access now :)

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel