Setting up PDFlib extension in PHP 
1.- Download PDFlib-8.0
2.- Look for libpdf_php.so
3.- Copy and paste to extension_dir [ see phpinfo() ]
4.- Add extension in php.ini

extension=libpdf_php.so

5.- Restart httpd and check PDFlib support in phpinfo()
6.- Get a license ($) to remove watermark.

Or try fpdf and fpdi.

[ view entry ] ( 1200 views )   |  print article
PHP Easter Egg 
file.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 - PHP Credits
PHPE9568F34-D428-11d2-A769-00AA001ACF42 - PHP Logo
PHPE9568F35-D428-11d2-A769-00AA001ACF42 - Zend Logo
PHPE9568F36-D428-11d2-A769-00AA001ACF42 - Easter Egg

[ view entry ] ( 1223 views )   |  print article
.htaccess notes 
# This will pop-up a user/password dialog box saying Realm =
AuthName "Restricted Area"

# AuthType is normally basic. Not very secure until "Digest" type becomes prevalent
AuthType basic

# If value of AuthUserFile doesn't begin with a slash, it is treated as
# relative to the ServerRoot (not DocumentRoot!)
AuthUserFile "/userhome/blahBlah/.htpasswd"
AuthGroupFile "/userhome/blahBlah/.htgroup"

#Custom icons
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/text.gif .txt
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
# If no file type matches..
DefaultIcon /icons/unknown.gif

...more to come.

[ view entry ] ( 1749 views )   |  print article
Populating a PDF file with XFDF using PDFTK command. 
pdftk InvoiceTemplate.pdf fill_form InvoiceData.xfdf output - flatten > InvoiceXXXX.pdf


[ view entry ] ( 1781 views )   |  print article
Moonbeam - Reaching beyond the stars! 
Moonbeam! Relax and enjoy, music for the soul. These Russian guys really make me think outside the box, the best. You should really check them out.

http://www.youtube.com/watch?v=tk1VKcsfbYM

Albums:
Around the world
Consumption
Storm of Clouds (Sky !)

...and podcasts.

[ view entry ] ( 1698 views )   |  print article
Binary, Octal & Hexadecimal to Decimal Conversion (Manual Process) 
I wrote this tutorial to demonstrate how to manually convert from binary,octal or hexadecimal to decimal.

http://www.angelcool.net/tutorials/misc ... ecimal.pdf

[ view entry ] ( 1996 views )   |  print article
Web Development Network Setup with NVI 
The goal of the tutorial is to allow NATed and Internet hosts to use a public IP to access the NATed development server, fixing DNS issues.

Click the link to see tutorial.
http://www.angelcool.net/tutorials/cisc ... rk_NVI.pdf

[ view entry ] ( 1438 views )   |  print article
Multiple NAT translations with NVI (NAT Virtual Interface) 
NVI removes the inside & outside terminology. With NVI multiple interfaces can participate in the translation. Before you cannot have translation with two INSIDE interfaces, NVI fixes that. http://www.cisco.com/en/US/docs/ios/12_ ... natvi.html



Basic configuration(no VRF enable):

int fa 0
  ip nat enable
int fa 1
  ip nat enable
int serial 0
  ip nat enable

ip nat source list 50 interface serial 0 overload //translate fa 0 & fa 1 lans out serial 0
ip nat source list 125 interface fa 0 overload //translate fa 1's lan out fa 0
ip nat source static tcp 172.168.50.10 80 interface serial 0 80 //translate web server out serial 0


[ view entry ] ( 1883 views )   |  print article
Router IOS Firewall: Allow only internal hosts to initiate a TCP session. 
InternalHosts<--e1(Router)e0-->RemoteNetworks

access-list 100 permit tcp any any gt 1023 established

interface e0
ip access-group 100 in


"UDP packets don't establish a connection, they're literally fire and forget! A simple permit udp host xx.xx.xx.xx host xx.xx.xx.xx eq xx should be all that's required."

-------------------------------------------------------------
See Cisco document id 26448


Also see:

Reflexive ACLs
ip inspect command.



[ view entry ] ( 1553 views )   |  print article
T1 Crossover Connection 
Connecting two routers back to back using their T1-DSU/CSU ports.

Cards and pin layout:







[ view entry ] ( 1587 views )   |  print article

<<First <Back | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Next> Last>>


2024 By Angel Cool