Quantcast
Channel: Book Zone - Perl
Browsing latest articles
Browse All 25 View Live

Get-dir / Gd - A Simple Way Of Jumping Around Dirs You Use All The Time

Put this in your path as get-dir add the section at the bottom to your .bashrc and call it with: <code> $ gd</code> or: <code> $ gd [DIR_TAG]</code><code> #!/usr/bin/perl...

View Article


Magic - Find Common File Magic In 2 Or More Files

// The output is modelled on xxd -g1 FILE<code> #!/usr/bin/perl -w # use strict; my %byte; my $lines = 10; my $blank = " _"; die "Usage: $0 FILE1 FILE2 [.. FILEn]\n" if ($#ARGV < 1); my...

View Article


Tiny Perl IRC Bot

// Another IRC Bot written in Perl - Here for my reference, and anyone interested. Most parts of the bot are broken into subroutines to make reading and managing the code easier. So far it just ops...

View Article

Threads To Create A Server And Client Application In One Using Threads To Run...

// Threads to create a server and client application in one using Threads to run them<code> use warnings; use strict; use Frontier::Daemon; use Frontier::Client; use threads; use...

View Article

Create Shortcuts To PuTTY Sessions...

I developed this under Linux, but have adapted it to work with Strawberry Perl. I make a folder: %USERPROFILE%\Start Menu\Programs\sessions And run this in there. <code> #!/usr/bin/perl # #...

View Article


Distance Calculation Using Latitude And Longitude In Perl

ZIPCodeWorld.com provides this routine to calculate the distance between two points (given the latitude/longitude of those points) in Perl. It is being used to calculate distance between two points...

View Article

Installing CPAN Modules To Debian

// To fully build CPAN modules into debian in one step use the following wrapper.<code> dh-make-perl --build --cpan <module_name></code> Perl 10701 k1mmeh ...

View Article

Calculate Latitude And Longitude From Rate Center V&H In Perl

ZIPCodeWorld.com provides this function to calculate the latitude and longitude coordinates from Vertical and Horizontal (V&H) coordinates in Perl. V&H's are used to identify locations and...

View Article


Daily Dose - Will Google's VP8 Video Codec Solve HTML5 Video Dilemma?

There may still be hope for people who favor a single, non-patented <video> tag standard in HTML5.  A report by NewTeeVee says a source with inside knowledge of Google tells them that the company...

View Article


Perl: Checking That Your Modified Files Compile

After making some changes, before committing, run this to check that no changes have caused your perl app to not compile<code> git status | grep modified | awk '{system("perl -c...

View Article

Daily Dose - QR Code For Android on GitHub

Its as easy as scanning that weird looking square with your Android phone to have it automatically download and install an Android package (.apk) wirelessly from GitHub.  Hot stuff right?  If you want...

View Article

Send Sms In Perl Via Sms Gateway Www.smsmatrix.com

Send SMS via SMS Gateway provided by <a href="http://www.smsmatrix.com">www.smsmatrix.com</a><code> use LWP::UserAgent; use HTTP::Request::Common; my $ua = LWP::UserAgent->new();...

View Article

Send Voice Phone Call Via Voice Gateway At Www.smsmatrix.com

Send voice phone call via voice gateway at <a href="http://www.smsmatrix.com/?sms-gateway">www.smsmatrix.com - voice gateway</a>.<code> use LWP::UserAgent; use HTTP::Request::Common;...

View Article


Passing Information Between PHP And Perl

// description of your code here<code><?php apache_note('name', 'Fredrik Ekengren'); // Call perl script virtual("/perl/some_script.pl"); $result = apache_note("resultdata");...

View Article

Daily Dose - RabbitMQ 2.0 Upgrades to AMQP 0.9.1

The RabbitMQ messaging system, which was recently be acquired by VMware's SpringSource, has reached version 2.0.  The AMQP-based system has a new persister that's only bound by disk capacity and a...

View Article


Daily Dose - SproutCore 1.4 Grows Touch Support

A new release arrived for the SproutCore framework that builds nativeized web apps.  The new release, 1.4, has more touch events for mobile devices and better animation support.  The build tools such...

View Article

A Book Review of Effective Perl Programming Ways to Write Better; More...

ISBN or ASIN:  0321496949 Book Author(s):  Joseph N. Hall Joshua A. McAdams brian d foy Publisher:  Addison Wesley ...

View Article


Daily Dose - Ubuntu Ditches GNOME

4th Lawsuit Against Android OEMsPerl and Parrot Benefit from GSoCThe Dutch Leak Windows 8 Projected Release DateJava For Mac, Not Oracle's Business

View Article

Php Xml Parser

// xml Parser<code> ************************************************************************ Example: ************************************************************************ $xml = new...

View Article

CSS Rounded Corners

// CSS Rounded Corners<code> CSS /* set millions of background images */ .rbroundbox { background: url(nt.gif) repeat; } .rbtop div { background: url(tl.gif) no-repeat top left; } .rbtop {...

View Article

HTML Entities - Decoding - Perl One-liner

// Perl one-liner to expand HTML entities like &amp;<code> perl -i.bak -pe "BEGIN { use HTML::Entities;} HTML::Entities::decode($_); " filename</code> XML 13027 ...

View Article


Sort Twiki Access Log By Hits Per Host Each Day

Produce output like this: Date: 19/Mar/2011 auckland.co.nz : 60343 tryphena.co.nz : 54 okupu.co.nz : 4 Date: 20/Mar/2011 auckland.co.nz : 60354 tryphena.co.nz : 49 claris.co.nz : 49 ...

View Article


How To Enable JMX With Authentication

// This will enable jmx in port 5555 with authentication enabled. In windows systems you may get an exception related to file access permissions. To solve <a...

View Article

Daily Dose: Release of Jive 4.5.6

Release of Jive 4.5.6New Perl 5.14 Unveiled Talend to Sponsor Apache Software FoundationRed Hat and JBoss Innovators of the Year Announced!

View Article

Month Day Year Smart Dropdowns

// Month Day Year Smart Dropdowns<code> function mdy($mid = "month", $did = "day", $yid = "year", $mval, $dval, $yval) { if(empty($mval)) $mval = date("m"); if(empty($dval)) $dval = date("d");...

View Article

Browsing latest articles
Browse All 25 View Live