Translate

Image of Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
Image of Modern Operating Systems (3rd Edition)
Image of Operating System Concepts
Image of RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)

Update Twitter Status using PHP and OAuth

Prior to Twitter requiring the use of OAuth to authenticate a user, it was possible to update your status on Twitter using PHP and your Twitter username and password credentials. Probably the most popular way to do this was to use Curl as shown in the following example: <?php $username = ‘your_twitter_username’; $password = ‘your_twitter_password’; $message = ‘Using PHP and curl to update my status’; $url = ‘http://twitter.com/statuses/update.xml’; $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_POST, 1); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message"); curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password"); curl_setopt($curl_handle, CURLOPT_URL, "$url"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); $status = curl_exec($curl_handle); curl_close($curl_handle); print_r($status); ?> This method of authentication using

Installing Oracle 11g Release 2 on Fedora 13

Oracle Database 11g Release 2 is not certified to run on Fedora 13 (Goddard) but I wanted to use it to debug a problem with a particular application which used this database. I checked on the Internet for details about how to install this version of the Oracle database on Fedora 13 but did not come across comprehensive instructions. I therefore decided to write this post as a guide for others who may also wish to install this database on Fedora 13. First of all you need to add a number of kernel parameters to /etc/sysctl.conf if they do not

Korn Shell 93 Hash Builtins

Here is a simple Korn shell plugin which enables you to use the hash functions built into the AT&T Advanced Software Technologies (AST) (libsum) library in your ksh93 shell scripts. There are more hash functions in this library than those that I have included here but these are the most useful hash functions in my opinion. Here is the source code for the plugin: #include <shell.h> #include <shcmd.h> #include <ctype.h> #include <error.h> #include <sum.h> #define SH_DICT "libhash" static const char md5_usage[] = "[-?\n@(#)$Id: md5sum 2010-07-16 $\n]" "[-author?Finnbarr P. Murphy <fpmATun-ixDOTcom>]" "[-licence?http://www.opensource.org/licenses/cpl1.0.txt]" "[+NAME?md5sum – generate an MD5 hash.]" "/n" "[+EXIT STATUS?]