Selamat Datang.......

Blog ini mungkin biasa saja tapi berusaha menampilkan sesuatu yang berguna! Tips, info, review, berita, saran, pengalaman dan yang lainnya....

Showing posts with label php server. Show all posts
Showing posts with label php server. Show all posts

PHP Date() Cheatsheat

Bahasa Pemrograman PHP memang terkenal luas dan banyak dimanfaatkan. Bhakan oleh situs-situs besar sekalipun. Nah baru-baru ini Net Surfer menemukan sebuah situs bagus yang membahas tentang php. Tidak menyeluruh sih, tapi sangat penting sekali. Yakni tentang tanggal dan waktu



Tanggal dan waktu adalah salah satu masalah terbesar yang dihadapi para web developer. Mengapa demikian??? Well, tanggal dan waktu memiliki format yang beragam. Ada sistem GMT, ada sitem AM PM, ada penanggalan Indonesia, ada penanggalan Amerika. Belum lagi database yang beda mengaplikasikan tanggal seperti MySQL yang dimulai dengan tahun bulan tanggal. Beda lagi SQL Server. Belum lagi format standar seperti untuk RSS, widget dsb

Kembali ke PHP, bagi yang sudah advance atau pun yang masih pemula, silahkan kunujungi http://php-date.com/ disana ada refenrensi lengkap tentang penanggalan dengan PHP. Bisa live testing juga



Mudah-mudahan berguna....
Peace


Read more...

JavaScript - Count Array cara menghitung array di javascript!!!

Setelah sebulan lebih bergulat dengan web scripting... adakalanya kita bisa salah mengimplementasikan suatu bahasa program. Seperti yg Net Surfer alami! Kebetulan modul yang sedang dikerjakan menggunakan bahasa PHP, kemudian pas gabungin dengan bahasa javascript... Walah kode PHP tak pakai! Hasilnya sejam lebih puyeng kok nda jalan-jalan ni modul :p

Masalah sih sederhana, hanya menghitung jumlah array... Tapi yang ini dikerjakan disisi client via javascript. Nah kode pertama yang Net Surfer gunakan:

var myarray = new Array(’net’, ‘surfer’, ‘rock’);
alert(count(myarray));

Hasilnya browser diam seribu bahasa... mungkin lagi bingung menterjemahkan kode diatas :P

Baru nyadar kalo itu kode buat PHP. Aduh... harusnya kodenya kayak gini:

var myarray = new Array(’net’, ‘surfer’, ‘rock’);
alert(myarray.length);

Kali ini browser mau bicara! Lewat notifikasi window dia bilang 3... Yes ternyata salah bahasa, wakakakak tapi lumayan bikin puyeng :p

Mudah-mudahan berguna....
Peace


Read more...

EyeOS contoh nyata cloud computing

EyeOS contoh nyata cloud computing dimana data dan aplikasi bisa diakses darimana saja, baik itu lewat komputer, mobile device dan perangkat lainnya. Dulu EyeOS ini sempat diragukan oleh beberapa kalangan di Indonesia. Dimana waktu Net Surfer berkenalan dengan EyeOS beberapa tahun lalu. Dan tetap berkembang pesat sampai sekarang.



Maincore enginenya ditulis dengan PHP, XML, and JavaScript. Dan sudah dijadikan sebuah platform framework dengan nama eyeOS Toolkit. EyeOS sendiri dibuat seperti sebuah sistem operasi desktop layaknya Windows, Mac ataupun Linux dengan 67 aplikasi dasar.

EyeOS pertama kali diperkenalkan pada 1 Agustus 2005 dengan versi publik 0.6.0. Dan langsung melejit dan dijadikan sebagai sebuah tonggak dasar konsep operating sistem di web. Banyak kalangan dari berbagai komunitas bergabung didalmnya dengan membantu meningkatkan fitur translate, testing dan developingnya



Berikut beberapa kutipan tentang sejarah EyeOS dari situs Wikipedia:

After two years of development, the eyeOS Team published eyeOS 1.0 (on June 4, 2007). Compared with previous versions, eyeOS 1.0 introduced a complete reorganization of the code and some new web technologies, like eyeSoft, a portage-based web software installation system. Moreover, eyeOS also included the eyeOS Toolkit, a set of libraries allowing easy and fast development of new web Applications.

With the release of eyeOS 1.1 on July 2, 2007, eyeOS changed its license and migrated from GNU GPL Version 2 to Version 3.

Version 1.2 was released just a few months after the 1.1 version and integrated full compatibility with Microsoft Word files.

eyeOS 1.5 Gala was released on January 15, 2008. This version is the first to support both Microsoft Office and OpenOffice.org file formats for documents, presentations and spreadsheets. It also has the ability to import and export documents in both formats using server side scripting.

eyeOS 1.6 was released on April 25, 2008 and included many improvements such as synchronization with local computers, drag and drop, a mobile version and more.

eyeOS 1.8 Lars was released on January 7, 2009 and featured a completely rewritten file manager and a new sound API to develop media rich applications. Later, on April 1, 2009 1.8.5 was released with a new default theme and some rewritten apps such as the Word Processor or the Address Book.

Bagi yang ingin tahu lebih lanjut tentang Structure dan API EyeOS berikut kutipan dari Wikipedia:

For developers, eyeOS provides the eyeOS Toolkit, a set of libraries and functions to develop applications for eyeOS. Using the integrated Portage-based eyeSoft system, one can create their own repository for eyeOS and distribute applications through it.

Each core part of the desktop is its own application, using javascript to send server commands as the user interacts. As actions are performed using ajax (such as launching an application), it sends event information to the server. The server then sends back tasks for the client to do in XML format, such as drawing a widget.

On the server, eyeOS uses XML files to store information. This makes it simple for a user to set up on the server, as it requires zero configuration other than the account information for the first user, making it simple to deploy. To avoid bottlenecks that flat files present, each user's information and settings are stored in different files, preventing resource starvation from occurring.




Ingin mencoba langsung bagaimana aksi sistem operasi under web ini, silahkan daftarkan diri di http://www.eyeos.info. Anda akan mendapatkan akun gratis untuk mencoba aplikasi ini sekaligus sebuah storage online :P
Mudah-mudahan berguna.... lebih lanjut kunjungi http://www.eyeos.org
Peace

NB: Eyeos bisa kita bawa ke lokal! Bagaimana caranya? Ikuti ulasan selanjutnya... :)


Read more...

Uniform Server - AMP yang benar-benar portable!


Susahnya menggunakan XAMPP di Vista terkadang sering dikeluhkan orang-orang. Tapi kini semua itu bisa teratasi berkat adanya uniform server. Berikut pernyataan dari developer resminya:

The Uniform Server is a WAMP package that allows you to run a server on any XP or Vista Windows OS based computer. It is small and mobile to download or move around and can also be used or setup as a production/live server. Developers also use The Uniform Server to test their applications made with either PHP, MySQL, Perl, or the Apache HTTPd Server.

Server Specifications

  • Apache 2.2.11

  • MySQL 5.1.33-community

  • PHP 5.2.9-1

  • phpMyAdmin 3.1.3.1

  • ActivePerl 5.10.0.1004

  • UniController 2.1


Developed By The Uniform Server Development Team

Net Surfer sudah menggunakannya sejak lama hampir 2 tahunan dan memang terbukti Uniform Server bisa diandalkan. Tips dan trik penggunaannya akan segera diposting.
Mudah-mudahan bermanfaat.
Peace


Read more...