Wednesday, June 22, 2011

Setting Up Codeigniter 2.0.2 in Netbeans

Code igniter is getting intelligent in each release. The New version doesnot need to have the base_url path setup in application/config/config.php, It automatically guesses the path. However i recommend to set it up after your project is uploaded into a production server.

Step 1
Download Codeigniter from http://codeigniter.com/

Step 2
Create a new PHP project in netbeans.

Step 3
Extract the downoaded files into a temporary folder, and copy all files/folders and paste them into the files tab in Netbeans (Left top), there will be a default nbproject folder which should be untouched.

Step 4
create a new PHP file called ci_autocomplete.php inside the nbproject folder, copy and paste the following lines,


/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Benchmark $benchmark
* @property CI_Calendar $calendar
* @property CI_Cart $cart
* @property CI_Config $config
* @property CI_Controller $controller
* @property CI_Email $email
* @property CI_Encrypt $encrypt
* @property CI_Exceptions $exceptions
* @property CI_Form_validation $form_validation
* @property CI_Ftp $ftp
* @property CI_Hooks $hooks
* @property CI_Image_lib $image_lib
* @property CI_Input $input
* @property CI_Language $language
* @property CI_Loader $load
* @property CI_Log $log
* @property CI_Model $model
* @property CI_Output $output
* @property CI_Pagination $pagination
* @property CI_Parser $parser
* @property CI_Profiler $profiler
* @property CI_Router $router
* @property CI_Session $session
* @property CI_Sha1 $sha1
* @property CI_Table $table
* @property CI_Trackback $trackback
* @property CI_Typography $typography
* @property CI_Unit_test $unit_test
* @property CI_Upload $upload
* @property CI_URI $uri
* @property CI_User_agent $user_agent
* @property CI_Validation $validation
* @property CI_Xmlrpc $xmlrpc
* @property CI_Xmlrpcs $xmlrpcs
* @property CI_Zip $zip
*/

class Controller {};

/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Config $config
* @property CI_Loader $load
* @property CI_Session $session
*/

class Model {};


?>

This will activate Netbeans autocomplete feature for Codeigniter.

Thats It!!! You can now create your Controllers etc.

Wednesday, June 15, 2011

Linux Kernel Version 3.0 is on the horizon

Yes you've heard it right, next stable kernel release version is not going be 2.8 instead its going to be 3.0. As this year marks the 20th anniversary of Linux, according to Linus the kernel version is instead leap frogged straight to 3.0 to reflect this achievement. Of course this numbering change have been in the air for quite some time, its just that it received the official confirmation straight from the horses mouth. For the time being the new kernel will be version ed as "3.0.0-rc1" until its ready for mass deployment.

Now for the exciting part, the features.

Well, as it turn out to be the new kernel actually is not expected to have any ground breaking new features, instead according to Linus its just an improved kernel with new device drivers and some bug fixes. no API or ABI changes. This means no significant changes in the kernel.

The current kernel version of 2.6.xx have been around since 2003, therefore i guess Linus might have thought its better to go for a major release number.

[Source: https://lkml.org/lkml/2011/5/29/204]

Sunday, June 5, 2011

Converting your C applications from IPv4 to IPv6

In this series of articles im going to present some methods to convert you old IPv4 based network applications to new IPv6 based network applications.