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

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

Nokia releases Python for S60 source code (pys60)

Nokia has recently released the source code for its Python for S60 at Sourceforge.net. The source code is covered under Apache version 2 and Python open source license. This move will hopefully enable developers to learn and understand more about Nokia python implementations thus easing up module/extensions development.

Python for S60 SIS file and its source code and be downloaded from : Pys60 project page at Sourceforge.net

pys60, python, nokia, s60, symbian

Installing GRUB in USB Flash Drive

GRUB (GRand Unified Boot) loader is a boot loader for multiple operating system. It is one of the most popular bootloader for GNU/Linux operating system (the other is LILO). GRUB flexibility and easy-to-configure boot parameter has made it the default choice for most of GNU/Linux distros.

This article highlights yet another GNU GRUB usefulness in booting GNU/Linux inside a portable USB Flash drive : Installing GRUB on a USB flash memory key

gnu,linux,grub,bootloader,tips,tutorial

How to use diff and patch in your project

Diff and patch are two separate tool that are often use together, particularly in software development. The use of these tools can ease up the process of recording differences and applying changes between two files.

diff is a tool that can be use to create a “diff” or “patch” file that contains differences between two files. Though diff can write into many different format, most people will prefer the unified format as it is easier to work with.

patch is another tool that complements diff, it will apply the differences in the “patch” file to the target file. Think of it is a way to “patch” your old files with newer modifications.

The guide below is the simplest way to use diff and patch. Though the information provided here is incomplete, I believe it can get you started in using them in your project.

How to use diff

The basic use of diff is,
diff -u original.txt modified.txt > file.patch

If you want to use diff against two source tree, the command is,
diff -rupN original modified > program.patch

How to use patch

To apply the patch, change into the same directory as the unmodified file and execute
patch < file.patch This is how to apply patch to an entire directory, patch -p0 < program.patch Patch applied can be simply removed by adding the -R switch, patch -p0 -R < program.patch patch -R < file.patch For the explanation of using the -p parameter, please read Applying patch to other directories

Other reference : LinuxJournal

unix,guide,tips,diff,patch,tutorial

Ittutor Mozilla search plugin

I don’t know if anybody has done this, but I’ve hack a Mozilla search plugin for Ittutor forum. Ittutor is a Malaysian forum that focuses on computer related topic and other discussions.

This search plugin is to be use from within Mozilla suite or Mozilla Firefox browser, or any browser that supports Mozilla Mycroft extension

Forum Ittutor

You can get it here : Forum Ittutor Search Plugin

Get Mozilla Firefox Here