libcurlemu – a pure PHP curl implementation (libcurl emulator)

Have you came across a situation where you need to use php libcurl extension and it was not enabled on your webserver? Then, try libcurlemu, apure-PHP implementation to PHP cURL. It emulates all of the curl_* functions normally provided by the native cURL extension itself.

libcurlemu works transparently regardless of the availability of PHP cURL extensions, thus making your script even more portable across web server that does not have PHP cURL extensions.

What is libcurl / cURL?

cURL is a command-line tool that supports transfering files with URL syntax. It supports many protocols like FTP, FTPS, TFTP, HTTP, HTTPS, TELNET, DICT, FILE and LDAP.

libcurl is a library based on cURL that helps you to connect and communicate with different type of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, and ldap protocols.

For HTTP/HTTPS protocol, libcurl supports POST, PUT, GET and DELETE method, making it suitable for writing web services, particularly REST-like services.

Stay tune for code examples on how to use libcurl to emulate a browser submitting POST request to a server.

libcurlemu is written by Steve Blinch, and can be downloaded at his website : http://code.blitzaffe.com

php, libcurl, curl, rest, opensource

Create your own Debian/Ubuntu (*.deb) package

mypapit debianI’ve found a nice well-written guide that may be useful for those who wants to create Debian *.deb package. Though compiling applications/software/libraries right from sources are desireable for some people, there’s still lots of others who prefer to install stuffs software packages for conveniency.

Why do you want to create Debian (*.deb) packages

There’s many reasons for you to create *.deb packages, one of it if you are (or want to be) a maintainer for a Debian-based project, or merely maintaining a unofficial packages for Debian-based system.

The guide would be useful if you are a software developer or in charge of distributing softwares in pre-package form to various GNU/Linux distribution. Creating a prepackage *.deb files will help people install your software without the need of developments tools and save compiling time, this is important since there are people who like to manage installations using software management tools such as synaptic and aptitiude.

Though most people would prefer to distribute binary only *.deb package, the practice of distributing pre-packaged source codes in *.deb format is not uncommon in Debian-based distro scene.

Here’s the link to the guide that I’m talking about :

  1. Rolling your own Debian packages (part 1)
  2. Rolling your own Debian packages (part 1)

Other Links :

  1. Debian New Maintainer website
  2. Debian Binary Package Howto
  3. Create Debian GNU/Linux Package

debian, ubuntu, linux, package, deb, repository, repositories

The new Malaysian Minister Cabinet Line-up

Usually I don’t care to put this stuff on my blog, but I’ve made an exception today as this information might be useful for someone doing research or just merely wants to know the changes on the new Malaysian Cabinet Line-up after the reshuffle

Prime Minister / Minister of Finance / Minister of Internal Security
Abdullah Ahmad Badawi

Deputy Prime Minister / Minister of Defence
Najib Abdul Razak

Minister of Housing and Local Government
Ong Ka Ting

Minister of Works

S Samy Vellu

Minister of Energy, Water and Communications
Dr Lim Keng Yaik

Ministers in the Prime Minister’s Department
Bernard Dompok
Mohamed Nazri Abdul Aziz
Dr Maximus Ongkili

New: Effendi Norwawi
Transferred: Radzi Sheikh Ahmad to Home Affairs Minister

Minister of International Trade and Industry
Rafidah Aziz

Minister of Foreign Affrairs
Syed Hamid Albar

Minister of Agriculture and Agro-Based Industry
Muhyiddin Yasin

Minister of Information
Zainuddin Maidin
Out: Abdul Kadir Sheikh Fadzir

Minister of Human Resources
Dr Fong Chan Onn

Minister of Home Affairs
Radzi Sheikh Ahmad
Transferred: Azmi Khalid to Natural Resources and Environment Minister

Minister of Education
Hishammuddin Hussein

Minister of Culture, Arts and Heritage
Dr Rais Yatim

Minister of Women, Family and Community Development
Shahrizat Abdul Jalil

Minister of Science, Technology and Innovation
Dr Jamaluddin Jarjis

Minister of Transport
Chan Kong Choy

Minister of Health
Dr Chua Soi Lek

Minister of Finance II
Nor Mohamed Yakcop

*Minister of Tourism
Tengku Adnan Tengku Mansor

Out: Dr Leo Michael Toyad

Minister of Plantation Industries and Commodities
Peter Chin

Minister of Domestic Trade and Consumer Affairs
Mohd Shafie Apdal

Minister of Higher Education

Mustapa Mohamed
Out: Dr Shafie Salleh

Minister of Rural and Regional Development
Abdul Aziz Shamsudin

Minister of Entrepreneur and Co-Operative Development
Mohamed Khaled Nordin

Minister of Natural Resources and Environment

Azmi Khalid
Out: Adenan Satem

Minister of Youth and Sports
Azalina Othman Said

I got this list from Jeff Ooi’s blog, you can read his original post and commentary here OK, it’s a cabinet reshuffle

malaysia, government,governments

AJAX Web applications with Yahoo UI Library !

Yahoo Developer Network has released the Yahoo! User Interface Library. It is a toolkit library written in Javascript for building web applications by utilising DOM scripting, XHTML and AJAX (XMLHttpRequest).

The library is designed to simplify web development and to enhance web experience for the web applications users. Among things that included in the library are :

  • Animations
  • Connection Manager
  • DOM
  • Drag and Drop
  • Event
  • Calendar
  • Slider
  • Treeview

The Yahoo! UI Library is released under the BSD License. Please refer to http://developer.yahoo.net/yui/ for more information.

yahoo, ajax, webdev, yahoo.com,dom, javascript

Mandriva Starter Guide Wiki

Mandriva Linux LogoSeems that Mandriva Linux users doesn’t need to spend hours of unproductive work trying to figure how to work things out for their Mandriva Linux system.

The fine folks at Linux Center of University of Latvia have started an Unofficial Mandriva Linux Starter guide in spirit to help fellow Mandriva Linux users across the world. The guide itself is organised in a wiki, and everyone else are encouraged to contribute.

The website contains many useful links and guides that could be helpful for new Mandriva Linux users. Among the guides and tips included :

  1. Where to download Mandriva Linux
  2. Where to look for new programs
  3. How to Install Java 2 Runtime Environment Plugin in Mozilla Firefox
  4. Configuring Network Connections
  5. How to add extra Repositories in Mandriva Linux
  6. How to Add/Delete Users and groups
  7. How to watch DVD in Mandriva Linux
  8. And many more…

The same folks that brought you this wiki is currently also working to release Unofficial Gentoo Linux Wiki.

Hope that these links will be helpful to you !!

linux, mandrake, mandriva, repositories, wiki

Funny Google Groups Malay Translations

I’ve some trouble with my php code, so I decided to search around php mailing list for some xml-rpc implementations specific solutions. Since google groups has tons of mailing list archives, I decided to start there first. After few minutes of reading for possible solutions and ideas, I decided to try out the Google Groups syndication feed, because I was curious about it.

My curiousity paid out because I finally saw Google began using ATOM 1.0 syndication format, but shortly after that, my eyes scan down the page and I read something that makes me laugh out loud! Apparently Google has taken the translation thingy too seriously by over-translating proper nouns.

Can you guess what Google mean by “makananSetan”, “RuangBawah”, “beritaGator” and “JaringanBeritaWayar” in the screenshot below? (p/s: they are all in Malay language)

I really don’t want my feed ends up to be makananSetan…

google, google.com, funny, google+groups, translations, malay, malaysia