Ethernet Interface templates – Centos, fedora, redhat

Create an interface manually

Just copy the following lines into a file called ifcfg-eth1 and drop it in the “/etc/sysconfig/network-scripts” folder.

then do a “service network restart”

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
BROADCAST=10.1.255.255      <-- replace with own
HWADDR=00:00:00:00:00:00   <-- replace with own MAC Address with your MAC Address
IPADDR=10.1.0.123                       <-- replace with own
NETWORK=10.1.0.1                   <-- replace with own gateway
NETMASK=255.255.0.0              <-- replace with own network mask
TYPE=Ethernet
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
BROADCAST=10.1.255.255     
HWADDR=00:00:00:00:00:00  
IPADDR=10.1.0.123                      
GATEWAY=10.1.0.1                  
NETMASK=255.255.0.0             
TYPE=Ethernet

The naming convention is crucial please pay attention to that.

Paging in PHP

Paging and Sorting Data with Zend Framework
http://devzone.zend.com/article/11462


Paging and Sorting with Doctrine and PEAR
http://devzone.zend.com/article/11540


Pear Library
http://pear.php.net/package/Pager/redirected


Doctrine Pager
http://www.doctrine-project.org/Doctrine_Pager/1_0


Paging in CakePHP
http://bakery.cakephp.org/articles/view/pagination


PHP & Pear
http://devzone.zend.com/article/2418-Paging-Data-Sets-With-PEAR-Pager

 

Others
http://www.devshed.com/c/a/PHP/Paginating-Database-Records-with-the-Code-Igniter-PHP-Framework/2/

Eclipse Tutorial

I wanted to rename a php file in my eclipse PDT project but simply could not do it. I know what you are saying but honestly i could not. I finally realized that i had to right click on the file and click on "refactor" then rename the file ( what the  f???).  Why not just right click and then give us the option to rename the file?  Here is the proof below.

I do not use eclipse everyday but for some reason i am convinced that it is NOT a bad tool.  When you step away from eclipse it might be important to just  get quick tutorials to refresh your memory because some of the stuffs are simply not intuitive. Here are a couple of videos that caught my attention on youtube

Getting started with eclipse 1 of 2

Video 2 of 2