Skip to main content

Posts

crokodz Photograpy

Entering to a new different Path. Palawan Puerto Prinsesa August 28, 2011   Testing my New Tamron 10-24mm

How to Configure Squid Proxy

1. Install Squid 2. edit squid.conf 3. #vi /etc/squid/squid.conf (Readhat Version) 4. add this line acl mynet src 192.168.1.0/24 http_access allow mynet 5. enable memory_replacement_policy lru 6. enable cache_replacement_policy lru 7. enable cache_dir ufs /var/spool/squid 100 16 1024 8. add this line visible_hostname your.domain 9. start squid using port 3128

How to Configure Vsftpd

1. Install vsftpd 2. #groupadd ftp 3. #useradd -d /var/www/html/"home folder of the user" -s /bin/bash -g ftp user 4. #passwd user 5. edit vsftpd.conf, for redhat version its located in vi /etc/vsftpd/ 6. #vi /etc/vsftpd/vsftpd.conf 7. set anonymous_enable=NO 8. #service vsftpd start 9. cheers
Java Script Request Handler var xmlHttpRequestHandler = new Object(); var requestObject; xmlHttpRequestHandler.createXmlHttpRequest = function(){ var XmlHttpRequestObject; if(typeof XMLHttpRequest != "undefined"){ XmlHttpRequestObject = new XMLHttpRequest(); } else if(window.ActiveXObject){ var tryPossibleVersions = ["MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0", "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp", "Microsoft.XMLHttp"]; for(i=0;i try{ XmlHttpRequestObject = new ActiveXObject(tryPossibleVersions[i]); break; } catch(xmlHttpRequestObjectError){ // Ignore Exception } } } return XmlHttpRequestObject; } function puthtml(url){ requestObject = xmlHttpRequestHandler.createXmlHttpRequest(); requestObject.onreadystatechange=onReadyStateChangeResponseCo...

PDF Chinese PHP and Python

The power of python release on its multi-lingual Capability, limitless generation of report. When I was newbie in PHP I've tried to create a pdf using EZPDF, after years of experience, one of my project needs a report with Chinese font, I tried googling PHP PDF CHINESE, but I didn't find and correct output. I remember my python experience generating a report using reportlab in python known to be the powerful pdf generating tools. And it works fine I can generate Chinese PDF without hassle. Wow it was great. For those who need some guide line on how to do it just dron an email to me. Needs Python 2.0 or higher Reportlab

take a snapshot online via your webcam

I'm fully newbie on flash but I manage to mix php and flash, i had a client which prefer a web cam app online, well that was 2007 ago, but when i notice y flash had this feature accessing a client web cam i was thinking if i can do some snapshot on it. well I've done it. to those who needs my app email me or leave you email here. well i might come out with free version but maybe with some banners on just for the just for a credit on my own. and also to those who wants some sample I can update my site upon your request.