|
Linux config files , change logs , my notes....
I wrote these notes back in 2001 or 2002. I doubt they have much use now :)
Perl is the language i write with joy. Here are some codes i wrote for my own use. I wrote these programs back in 2001 or 2002. I doubt they have much use now :)
Here is one of the perl pro i have written - check_site_linux.pl. this program will check the website availability or status of connection, msg me through icq when something went wrong.It works under my linux machine and use vICQ module to do the icq msg part. of course you can do it by email but i like icq way coz it's more instantly.
Also, i want to share 3 LWP article and discussion with you. First a great paper presented in 2001 Perl conference by Sean Burke,who is the autho of the newly published book "Perl and LWP". Although this talk doesn't exist on the web anymore, luckily i pulled it out before google throw it out of the cache. should thank google for saving the best :) .The Second is an explaination about the often confused Credential method in LWP package, from sean Burke as well.The Third is commonly asked question about how to interact LWP with javascript.
I also wrote a form-autosubmitter to submit similiar forms in one step,similiar as they all have similiar form entry.e.g name,age etc. HTML::Form and LWP kick in.
It's a lot fun to play around with LWP. because you see what you usually do in browser can be done in perl as well. IMO, LWP::UserAgent HTTP::Headers HTTP::Request::Common HTTP::Response are the ones you should know. And remember the inheritance among some of them. >perl -e "use LWP::Simple;print (head('http://www.yorku.ca'))" see what you get :D Have fun LWP !!
A note to myself: LWP doesn't follow HTTP redirect other than 302 redirect. Manual parsing to webpage that uses javascript or metarefresh is needed.
During the time of writing it, i found some good articles that guide me throught. Whoever wrote it,Many Thanks! and i thought you maybe want to have a look.. general theory & info ; Database or full-text search engine? and another from perl.com
oh, a sidenotes for using imageMagick making thumbnail.Some image files contain image profile type (IPTC/ICM). `identify -verbose imagename` to see what type of profile it uses and to remove it,you need the Profile method. Then you will get smaller thumbnail,usually 3/4 k smaller.
final version ; using ImageMagick module and using GD module