Create Paging with PHP : Link collection

Soon or later everyone who learn php will face this thing : ‘paging

blog, guest book, search result are using paging for displaying data. Make it easy to read and more friendly

some picture of paging implementation :

 php paging

php paging

php paging

 Good paging code will survive when record in database or file system getting bigger.

many url in internet exist for such purpose, teach how to create paging with php.

I start to collect them in this page that might be useful for someone who like to implement paging in his guestbook, search result etc.

Some urls : 

 

Maybe you have found useful url that might help others?

I’ll update the list if I have other link.

Tell me please 🙂

in PHP | 170 Words

Install FreeProxy for your lan

 What software do I need for creating simple proxy server for my lan?

Is it simple? good for handling connection for around 5 or 9 user ?

Dunno, coz I use ICS in my windows xp for that work 🙂

Recent walk to snapfiles lead me FreeProxy.

Download this software and install it in screen by screen mode 🙂 :

1.  Double click to start install


Continue reading

101 links of tutorials, tips, tricks and scripts for iptables

allow my girlI wanna learn about iptables but don’t know where to start, this post perhaps will be my collection of link around iptables.

Perhaps I can learn it by doing 🙂

Tutorial :

Howto, tips and trick:

Scripts :

Tools :

  • Firestarter (A graphical interfaced Open Source firewall for Linux.)
  • Firewall Builder (Firewall Builder is Open Source multi-platform firewall management software that supports Linux iptables, FreeBSD ipfilter and ipfw, OpenBSD pf.)
  • Shoreline Firewall (very powerful solution to help you configure an advanced firewall for any network)
  • Ipkungfu (working firewall “out of the box” with zero configuration)

Recommended Books :

I’ll update the list as soon I find interesting link.

Last update : February 7 2008

sysctl: kern.ipc.nmbclusters: Invalid argument

After read this article I try to practice in other server that has gigabit ethernet card .

I have download opensuse 10.3 in Gnome and KDE version and use it as sample stuff for sending via scp.

sending before tuning :

monitor# scp openSUSE-10.3-GM-GNOME-i386.iso [email protected]:/home/mother
Password:
openSUSE-10.3-GM-GNOME-i386.iso                                                             100%  665MB  10.2MB/s   01:05

ftp# sysctl kern.ipc.maxsockbuf=262144

ftp# sysctl net.inet.tcp.sendspace=65536

ftp# sysctl net.inet.tcp.recvspace=65536

ftp# sysctl net.inet.tcp.rfc1323=1

monitor# scp openSUSE-10.3-GM-GNOME-i386.iso [email protected]:/home/mother
Password:
openSUSE-10.3-GM-GNOME-i386.iso                                                             100%  665MB  10.4MB/s   01:04

tuning the values in ‘mother’

====================================================
testing transfer data to ‘mother’

monitor# ls
openSUSE-10.3-GM-GNOME-i386.iso openSUSE-10.3-GM-KDE-i386.iso
monitor# scp openSUSE-10.3-GM-GNOME-i386.iso [email protected]:/home/mother
Password:
openSUSE-10.3-GM-GNOME-i386.iso                                                             100%  665MB  10.4MB/s   01:04

====================================================

tuning the values to monitor
monitor# sysctl kern.ipc.maxsockbuf=262144
kern.ipc.maxsockbuf: 262144 -> 262144
monitor# sysctl net.inet.tcp.sendspace=65536
net.inet.tcp.sendspace: 32768 -> 65536
monitor# sysctl net.inet.tcp.recvspace=65536
net.inet.tcp.recvspace: 65536 -> 65536

testing again ::

monitor# scp openSUSE-10.3-GM-GNOME-i386.iso [email protected]:/home/mother
Password:
openSUSE-10.3-GM-GNOME-i386.iso                                                             100%  665MB  10.2MB/s   01:05o

speed decrease? from 10.4 to 10.2  MB/s with same time.

when I try this

ftp# sysctl kern.ipc.nmbclusters=32768
kern.ipc.nmbclusters: 33792
sysctl: kern.ipc.nmbclusters: Invalid argument

Gee, I must read sysctl manual first before try again 🙂

in Unix | 476 Words

kldxref: file isn’t dynamically-linked while upgrade to FreeBSD 7

Recent upgrade to FreeBSD 7 using cvsup with tag : RELENG_7 seem smooth except last result in make installkernel

kldxref: file isn’t dynamically-linked

this message make me confuse, since it’s first time I see the message.

copy old kernel already in my mind until googling for while this url encourage me to

reboot  🙂

checking  after reboot.

$ uname -a
FreeBSD  7.0-BETA1 FreeBSD 7.0-BETA1 #2: Mon Oct 29 15:51:56 UTC 2007

seem ok, time to makeworld and mergemaster .

 in mergemaster

*** Displaying differences between ./etc/rc.d/kldxref and installed version:

— /etc/rc.d/kldxref   2007-06-03 10:41:06.000000000 +0000
+++ ./etc/rc.d/kldxref  2007-10-29 18:11:07.000000000 +0000
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# $FreeBSD: src/etc/rc.d/kldxref,v 1.4.2.1 2007/05/24 16:14:37 des Exp $
+# $FreeBSD: src/etc/rc.d/kldxref,v 1.6 2007/04/09 08:53:40 des Exp $
 #

 # PROVIDE: kldxref
-# REQUIRE: root FILESYSTEMS
+# REQUIRE: FILESYSTEMS
 # BEFORE:  netif
 # KEYWORD: nojail

this part might be related too 🙂

 

in Unix | 152 Words