Playing With Sid

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg
Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts

Tuesday, 18 January 2011

Postfix Log Entry Summarizer

Posted on 22:37 by Unknown

Everyday I manage a Postfix mail server that handles emails from 20 mailing-lists. On days like this when there lot of email traffic, I keep an eye on the activity using pflogsumm perl script.




pflogsumm -e --problems_first -d today /var/log/maillog | pager





pflogsumm.pl is designed to provide an overview of postfix activity, with just enough detail to give the administrator a "heads up" for potential trouble spots.

http://jimsun.linxnet.com/postfix_contrib.html

Read More
Posted in perl, postfix, system-adminstration | No comments

Wednesday, 17 December 2008

X11::GUITest Build Errors

Posted on 00:53 by Unknown
X11::GUITest and X11::GUITest::record CPAN modules help you control X11 applications using perl programming language and do some rather simple automation tasks.

But building these modules can be a pain, if don't know about the right dependencies like libxt-dev and libxtst-dev .

 # Build Fails  
cp GUITest.pm blib/lib/X11/GUITest.pm /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap GUITest.xs > GUITest.xsc && mv GUITest.xsc GUITest.c cc -c -I/usr/X11R6/include -I/usr/X/include -Wall -O2 -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DNDEBUG -DX11_GUITEST_ALT_L_FALLBACK_META_L GUITest.c GUITest.xs:41:27: error: X11/Intrinsic.h: No such file or directory GUITest.xs:42:28: error: X11/StringDefs.h: No such file or directory make: *** [GUITest.o] Error 1
root@arky-laptop:~/.cpan/build/X11-GUITest-0.21-4tUEBB# less README root@arky-laptop:~/.cpan/build/X11-GUITest-0.21-4tUEBB# make cc -c -I/usr/X11R6/include -I/usr/X/include -Wall -O2 -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DNDEBUG -DX11_GUITEST_ALT_L_FALLBACK_META_L GUITest.c GUITest.xs:41:27: error: X11/Intrinsic.h: No such file or directory GUITest.xs:42:28: error: X11/StringDefs.h: No such file or directory
make: *** [GUITest.o] Error 1

# found libxt-dev provides the needed header files
/usr/include/X11/Intrinsic.h libxt-dev /usr/include/X11/StringDefs.h libxt-dev

# install the libxt-dev
$ sudo apt-get install libxt-dev
[sudo] password for arky:
Reading package lists... Done
Building dependency tree
Reading state information...
Done
The following NEW packages will be installed: libxt-dev 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 482kB of archives. After this operation, 1319kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com hardy/main libxt-dev 1:1.0.5-3 [482kB] Fetched 482kB in 44s(10.9kB/s)
Selecting previously deselected package libxt-dev. (Reading database ... 145581 files and directories currently installed.) Unpacking libxt-dev (from .../libxt-dev_1%3a1.0.5-3_i386.deb) ... Setting up libxt-dev (1:1.0.5-3) ...

## Second built error

LD_RUN_PATH="/usr/lib" cc -shared -L/usr/local/lib GUITest.o -o blib/arch/auto/X11/GUITest/GUITest.so \ -lXtst -lXext -lX11 \ /usr/bin/ld: cannot find -lXtst collect2: ld returned 1 exit status # the shared object is provided by libxtst-dev /usr/lib/libXtst.so libxtst-dev


# Install the libxtst-dev
$ sudo apt-get install libxtst-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed: x11proto-record-dev The following NEW packages will be installed: libxtst-dev x11proto-record-dev 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.8kB of archives. After this operation, 156kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com hardy/main x11proto-record-dev 1.13.2-4ubuntu1 [6022B]
Get:2 http://in.archive.ubuntu.com hardy/main libxtst-dev 2:1.0.3-1 [14.8kB] Fetched 20.8kB in 21s (964B/s)
Selecting previously deselected package x11proto-record-dev. (Reading database ... 145890 files and directories currently installed.)
Unpacking x11proto-record-dev (from .../x11proto-record-dev_1.13.2-4ubuntu1_all.deb) ...
Selecting previously deselected package libxtst-dev.
Unpacking libxtst-dev (from .../libxtst-dev_2%3a1.0.3-1_i386.deb) ...
Setting up x11proto-record-dev (1.13.2-4ubuntu1) ...
Setting up libxtst-dev (2:1.0.3-1) ...
Read More
Posted in cpan, GUI Testing, perl, Testing, X-Window-System, X11 | No comments

Wednesday, 29 October 2008

Free Software User Group, Bangalore Wiki Relaunched

Posted on 21:51 by Unknown



Free Software User Group, Bangalore now has a brand new site. It is built using Media wiki , which powers the Wikipedia project. The logo designed by Hiran Venugopalan is beautiful, its type and composition is just perfect. Kudos to Anivar and all the those who contributed towards this long pending task.



The old website was developed using oddmuse. It was generously hosted by deeproot for years, we had to turn off the wiki editing after I couldn't keep up with spam busting tasks anymore. Vikram has been bugging me for years to port it a better platform, it never really materialized until the task was taken up with gusto in the last gnu(s) grazing.

Read More
Posted in "FSUG-Bangalore", bangalore, free software, mediawiki, oddmuse, perl | No comments

Wednesday, 30 January 2008

How to Block Ads With Adzap

Posted on 10:19 by Unknown

Cameron Simpson’s Adzap (http://adzapper.sourceforge.net) is a Perl program written to match and replaces those annoying web ads.It uses the redirector option of Squid proxy-caching server (http://www.squid-cache.org), a fast and efficient caching server.



How does Adzap work?



Squid proxy server is designed to cache web content as clients requests,it checks for presence of local copy of request, if found servers it directly.This not only saves bandwidth usage but accelerates web speed.



Squid redirects requested URL to adzapper program which tries to identify ads,unrequested pop-up widows and other unsolicited content using regular expressions.



Most of content such as graphics,flash animations,client-side scripts and executables are matched and quietly replaced.Adzap returns sanitized request back to squid which servers it.This increases the surfing speeds considerably even if you are on boardband connection.



Most commercial web advertisers track user preferences and surfing habits.Adzap protects your privacy by efficiently blocking such ads from loading.



How do you install Adzap?



You can download the latest version of Adzap from http://adzapper.sourceforge.net .



Uncompress the the Adzap files to your /usr/local/ directory.If you use any other directory,please do change the commands in this article.




tar zxvf adzap-20030726.tar.gz -C /usr/local/




Change your directory to /usr/local/adzap.All the adzap programs are found under the scripts directory.



bq. cd /usr/local/adzap/

Edit the scripts/wrapzap file and set the zapper to squid_redirect.You can customize the Adzap to suit your needs in this file.




zapper=/usr/local/adzap/scripts/squid_redirect




Configure the squid to use Adzap as its redirector program.The squid configuration file in most *nix’s is /etc/squid/squid.conf.Set the redirect_program option as mentioned.





redirect_program /usr/local/adzap/scripts/wrapzap




Restart the squid server.




/etc/init.d/squid restart




Check the /var/log/squid/cache.log for any errors.Start your favorite browser and point it towards your squid server and enjoy ad free surfing.



First Published long time ago on the web.

Read More
Posted in adzap, debian, perl, regex, squid, wrapzap | No comments
Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Vietnamese Language Tools: Developing Keyboards and Spell-checker
    Mentoring Mozilla Vietnamese localization team to develop Vietnamese keyboard and spell checker for Firefox OS . We built and tested Vietna...
  • Multimedia/Internet Keyboards in GNU/Linux
    As the resident Gnu/Linux guru, I sometimes help new users making transition from other OS’s.Over the years I’d ask anyone who installed Gnu...
  • Bollywood Afternoon In Hanoi
    A lot can happen over a cup of Masala Chai. Sunday afternoon's are usually Indian food at Foodshop 45 in Tay Ho, Hanoi. After a good mea...
  • Locate Configuration Example
    Keep things found is not an easy skill to master. The disk drive turns into a deep and dark jungle after the first few weeks on road. Tradit...
  • Mapping The Internet
    I watched the map of internet mentioned in the recent "Download: The True Story of the Internet " on Discovery Channel , it sound...
  • foss.in 2008 :: Sorting In Indic Locales Workout
    Day 3 : Sorting In Indic Locales workout at foss.in 2008 . Indic Workout In Progress Brainstorming Live interaction and collaborative edi...
  • foss.in 2008 :: Day 4
    Day 4 @ foss.in 2008 IndLinux Project BOF Beacon Workout Sharing ideas after Apertium talk Sachin Joshi demo's his Hindi ASR syste...
  • Cellphone Woes of a Weary Traveller
    'Somethings' they say, 'remain a mystery until someone comes along'. Few hours into the journey, I could feel some discomfor...
  • foss.in 2008
    Photos from Day One of foss.in in Bangalore. JN Tata Auditorium, IIsc Bangalore Event Registration Counters Waiting for my turn Securit...
  • National Conference on Free Software 2008 :: Day 1
    The YMCA camp building is just a stone throw away from the Cochin backwaters, I spent some time looking the slow churning waters and the sun...

Categories

  • "Blog Action Day 08 - Poverty"
  • "blog action day"
  • "Compiz Extras "
  • "compiz-fusion"
  • "film making"
  • "FSUG-Bangalore"
  • "GISS"
  • "Graphic Design"
  • "Linux"
  • "martial art"
  • "New Media"
  • "open movie editor"
  • "OpenCV"
  • "web authentication"
  • "web automation"
  • "web testing"
  • 01-18-2012
  • 10.04
  • 10.10
  • 3dprinting
  • 9.04
  • a
  • a11y
  • accerciser
  • accessibility
  • acpi
  • Activism
  • adobe
  • adzap
  • aegis
  • africa
  • AIR
  • ajax
  • alsa
  • AMD64
  • Andhra Pradesh
  • android
  • angling
  • Animals
  • anusaaraka
  • apache
  • apertium
  • api
  • apm
  • apple
  • apport
  • Apps Script
  • apt-get
  • apt-key
  • architecture
  • archmage
  • ardour
  • arduino
  • ARM
  • art
  • asterisk
  • atom
  • audio description
  • backlinks
  • bangalore
  • barcamp
  • barcamphanoi
  • barcampkl
  • barcamppp
  • barcampsaigon
  • barcampvte
  • bash
  • bbc
  • bcy2011
  • beagle
  • beercamp
  • Beryl
  • big buck bunny
  • biofuel
  • bittorrent
  • blackout
  • blender
  • blind
  • blogger
  • blogging
  • book
  • Boot-Process
  • boot2gecko
  • bootparam
  • braille
  • brazil
  • breakpad
  • broadcom
  • bugs
  • bzr
  • Calicut
  • cambodia
  • canon
  • Canopy
  • cartoons
  • cat
  • CC
  • CDAC
  • CDMA
  • celliax
  • censorship
  • CES 2008
  • CES08
  • CHDK
  • chennai
  • children
  • china
  • CHM
  • chmsee
  • Chromium
  • classmate PC
  • cleaning
  • Climate Change
  • cloud computing
  • cms
  • codec
  • Comedy
  • comics
  • command line
  • CommandLine
  • compiz
  • Computational Linguistics
  • console
  • cpan
  • Creative Commons
  • cron
  • css
  • curl
  • cut
  • cyanogenmod
  • DAISY
  • debian
  • debian documentation
  • debian upgrade-system
  • Debian-IN
  • deborphan
  • delhi
  • design
  • dhvani
  • django
  • DJvu
  • dmesg
  • documentation
  • dontzap
  • dots
  • dpatch
  • drupal
  • drush
  • earth hour
  • easy_install
  • ebay
  • eclipse
  • Ecuador
  • education
  • eee pc
  • eeepc
  • elinks
  • Elinks2
  • emacs
  • embedded linux
  • Environment
  • equivs
  • espeak
  • etch
  • events
  • fennec
  • ffmpeg
  • fiction
  • film
  • film making
  • find
  • findutils
  • firefox
  • firefox3
  • firefox4
  • firefoxOS
  • firmware
  • fishing
  • flying
  • foss.in
  • fossasia
  • fossin2008
  • FOSSMeet
  • free culture
  • free software
  • FreeNode
  • fsf
  • fsfs
  • fx4
  • G1
  • gadgets
  • gdm
  • gedit
  • geek humour
  • geocoding
  • Gimp
  • GISS
  • GIST
  • git
  • gnewsense
  • gnochm
  • gnome
  • google
  • google app engine
  • google earth
  • gplv3
  • grep
  • grub
  • GSM
  • gstreamer
  • gta02
  • GUI Testing
  • habba.in
  • hack
  • hackable1
  • hacker
  • handbrake
  • hanoi
  • hanoitweetup
  • hardware
  • hardy heron
  • HCU
  • hindi
  • hipatia
  • history
  • hosting
  • hotkeys
  • how to
  • HowTo
  • html
  • html5
  • HTTP
  • humour
  • hunspell
  • hyderabad
  • i810
  • ICANN41
  • iceweasel
  • identi.ca
  • IEEE
  • iffk
  • iframe
  • IISE
  • ILS
  • ILUG-D
  • IM
  • imacros
  • india
  • india_engg_students
  • Indian Languages
  • indic
  • indlinux
  • initscripts
  • Inkscape
  • intel
  • interaction design
  • internet
  • internet kiosk
  • intersat
  • Intrepid
  • Intrepid Ibex
  • ipod
  • IRC
  • jam
  • jaunty
  • Java
  • Javascript
  • Jet Man
  • josm
  • jquery
  • JSSH
  • Kannada
  • karmic
  • Kchm
  • kerala
  • kernel
  • keyboard
  • keycode
  • kid
  • kiddy video
  • kids
  • kinect
  • kiosk
  • koha
  • l10n
  • laos
  • launchpad
  • layout
  • ldap
  • lenny
  • less
  • lftp
  • libchm
  • library
  • libreoffice
  • lilo
  • Linux
  • lisp
  • local weather
  • locate
  • logging
  • lttoolbox
  • lucid
  • lv
  • machine translation system
  • madras
  • maemo
  • mailing-list
  • mallard
  • MALT
  • malware
  • man
  • manga
  • maps
  • maverick
  • mediawiki
  • meego
  • mencoder
  • merkaartor
  • Mibbit
  • micro-blogging
  • midori
  • mlocate
  • Mobile
  • moblin
  • mod_pagespeed
  • modem
  • more
  • most
  • mother
  • mozcamp
  • mozilla
  • Mozilla Crash Reporter
  • mplayer
  • MT
  • mukt.in
  • music
  • mwc2012
  • myanmar
  • mymozl10n
  • mysql
  • n70
  • nature
  • nedumangad
  • neo freerunner
  • Neo1973
  • nepal
  • netbooks
  • newbies
  • news
  • NGO
  • NITC
  • NLP
  • NLTK
  • Nokia
  • Nonprofits
  • notify-osd
  • novell
  • NUI
  • nvda
  • OCR
  • oddmuse
  • OLPC
  • ooffice
  • open movie
  • openDNS
  • openmoko
  • openNI
  • openOffice
  • openoffice.org
  • OpenStreetMap
  • opensuse
  • openvt
  • orca
  • OS
  • oscar
  • OSM
  • Package-Management
  • packaging
  • pager
  • parenting
  • patents
  • pbx
  • PDF
  • people
  • perl
  • Pets
  • Phatch
  • photography
  • php
  • php-nuke
  • phpnuke
  • pidgin
  • PIL
  • pipa
  • podcast
  • podcasting
  • pokhara
  • POS Tagger
  • postfix
  • potlatch
  • poweroff
  • powershot
  • proc
  • programming
  • pune
  • puppylinux
  • pyCairo
  • python
  • pythonegg
  • QA
  • Qmail
  • radio show
  • Recycling
  • red nose day
  • redhat
  • regex
  • RFC
  • RHEL
  • rms
  • RND
  • robots
  • rockbox
  • RSS
  • RSS/XML
  • rtorrent
  • rubber
  • ruby
  • rural
  • s60
  • sahana
  • samba
  • sampada
  • samsung
  • sbcl
  • science
  • scipy
  • search
  • security
  • SFD2011
  • shell
  • short-stories
  • shutdown
  • silk
  • singapore
  • sitecopy
  • skype
  • slocate
  • social media
  • software patents
  • software-center
  • softwarefreedomday
  • solar
  • solar eclipse
  • sopa
  • space
  • spam
  • SPE editor
  • speakers
  • spins
  • squid
  • stallman
  • stanford parser
  • startups
  • startx
  • stumpwm
  • SUSE
  • system-adminstration
  • sysvinit
  • t-shirt
  • tablet
  • tactile watch
  • tea shops
  • teacher
  • technology
  • tee
  • telugu
  • terminal
  • terminal Tags: command line
  • Tesseract
  • Testing
  • The IT Crowd
  • theatre
  • tibet
  • tracker
  • travel
  • trek
  • trekking
  • tux4kids
  • tuxmath
  • tv
  • tweets
  • twitter
  • ubuntu
  • UMPC
  • unicode
  • UNR
  • uptime
  • urdu
  • User friendly
  • uTouch
  • UX
  • UXA
  • vagrant
  • VCS
  • veli
  • vidarbha
  • video
  • video hamming
  • video hams
  • video-ham
  • vim
  • virutalization
  • visualization
  • voip
  • vsat
  • w3c
  • watches
  • water from dew
  • WATiR
  • weather stations
  • weave
  • web automation
  • web standards
  • web testing
  • web-browser
  • web2py
  • webmaker
  • wget
  • Wiki
  • wikia
  • wikipedia
  • Windows
  • Windows XP
  • wmv
  • Word Press
  • wordpress
  • worm
  • wrapzap
  • writing
  • wvdial
  • X-Window-System
  • X11
  • xchm
  • xev
  • xml
  • xmlstarlet
  • XO Laptop
  • xorg
  • xserver
  • xvidcap
  • yahoo groups
  • yahoo maps
  • yelp
  • Yves Rossy
  • Zii
  • ZTE

Blog Archive

  • ▼  2013 (23)
    • ▼  December (3)
      • Turn your old iPod speakers into wireless speakers
      • Kinect-Powered Interactive New Media Installation
      • Mozilla Taiwan Localization Sprint
    • ►  November (3)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (3)
    • ►  April (1)
    • ►  March (1)
    • ►  February (5)
    • ►  January (2)
  • ►  2012 (26)
    • ►  December (3)
    • ►  November (1)
    • ►  October (1)
    • ►  July (1)
    • ►  June (3)
    • ►  May (6)
    • ►  April (1)
    • ►  March (8)
    • ►  January (2)
  • ►  2011 (43)
    • ►  December (2)
    • ►  November (7)
    • ►  October (8)
    • ►  September (4)
    • ►  August (5)
    • ►  June (1)
    • ►  February (6)
    • ►  January (10)
  • ►  2010 (73)
    • ►  December (17)
    • ►  November (5)
    • ►  October (10)
    • ►  September (3)
    • ►  August (8)
    • ►  July (9)
    • ►  June (4)
    • ►  March (5)
    • ►  February (7)
    • ►  January (5)
  • ►  2009 (108)
    • ►  December (7)
    • ►  November (10)
    • ►  October (8)
    • ►  September (6)
    • ►  August (8)
    • ►  July (4)
    • ►  June (5)
    • ►  May (6)
    • ►  April (15)
    • ►  March (15)
    • ►  February (9)
    • ►  January (15)
  • ►  2008 (223)
    • ►  December (45)
    • ►  November (28)
    • ►  October (32)
    • ►  September (4)
    • ►  August (11)
    • ►  July (6)
    • ►  June (11)
    • ►  May (3)
    • ►  April (11)
    • ►  March (7)
    • ►  February (3)
    • ►  January (62)
  • ►  2007 (2)
    • ►  December (2)
Powered by Blogger.

About Me

Unknown
View my complete profile