edeca.net logo
  • rss
  • Home
  • Graphics
  • Electronics
  • Computing
    • ROT Util
    • MOTD maker
    • GNU screen config
    • VB6 reverse DNS
    • VB6 RichTextBox control
  • About

Net::LibNIDS 0.1 released

David | June 30, 2010

The other day I pushed a new version of Net::LibNIDS to CPAN. It interfaces with the C library libnids in order to provide TCP stream reassembly and returns the data to your Perl callback.
Read the rest of this entry »

Comments
No Comments »
Categories
Computing, Perl
Comments rss Comments rss
Trackback Trackback

Better than grep

David | May 29, 2010

Anybody who has used command-line systems for a serious amount of time will love grep. But today I stumbled across ack, which (for many things) is better than grep and a whole lot nicer to use.

The best bit? It’s pure Perl, therefore also uses real Perl regular expressions. Yes, there might be grep --perl-regexp, but nobody bothers compiling that in. Plus ack has some other neat features.

See more at the ack website.

Comments
No Comments »
Categories
Computing
Comments rss Comments rss
Trackback Trackback

Limiting command runtime in Linux

David | May 2, 2010

It is sometimes useful to limit the running time of a process, either to stop it from using up all resources or to make sure nightly cron jobs don’t continue into working hours.

I needed this for rsync, to let a remote backup server slowly catch up if large amounts of data were added to the live server during the day. A useful post on the rsync mailing list discusses an rsync patch but also the timeout command.

After installing (the Debian package is simply timeout) it is as easy as running with the number of seconds to run for:

$ timeout 21600 rsync -a ...

It is also possible to specify the signal which will be sent to a program, which is useful if you do not want to simply send SIGKILL. I used SIGHUP in the hope that rsync would have a chance to exit gracefully:

$ timeout -1 21600 rsync -a ...

A full list of signals and their numeric values can be found in man 1 kill.

A wrapper script is also available from Johannes Buchner.

Comments
1 Comment »
Categories
Computing
Tags
linux, rsync
Comments rss Comments rss
Trackback Trackback

Obtaining DNS servers automatically on Cisco ADSL routers

David | April 8, 2010

I noticed tonight that my Cisco 837 was using hard-coded DNS servers which were no longer valid, hence breaking my internets. In order to keep them updated automatically, I added the following to the appropriate dialer configuration (interface Dialer0 on an 8xx):

ppp ipcp dns request

This causes the router to request DNS server addresses when the PPP session is negotiated (when it “dials up” to ADSL).

After reconnecting the PPP session (either reload or shutdown the interface and then bring it back) it is possible to check that DNS servers have been obtained using sh host:

router#sh host
Default domain is not set
Name/address lookup uses domain service
Name servers are 62.69.62.6, 62.69.62.7

If the router is running a DNS server it is possible to direct DHCP clients at the router IP instead, forcing them to use these same settings.

Comments
No Comments »
Categories
Computing
Comments rss Comments rss
Trackback Trackback

dspam integration with dovecot

David | March 19, 2010

In a previous message I spoke about training dspam automatically. The script I posted there works, but it’s not brilliant so I started looking for other ways of achieving spam training from the client.
Read the rest of this entry »

Comments
No Comments »
Categories
Computing
Comments rss Comments rss
Trackback Trackback

Training dspam from Thunderbird junk messages

David | February 21, 2010

Recently I have installed and configured dspam on my mailserver. It seems to work nicely but needs occasional training. I wanted to integrate this with Thunderbird so that users could automatically train dspam from their mail client.
Read the rest of this entry »

Comments
1 Comment »
Categories
Computing
Tags
dspam, linux
Comments rss Comments rss
Trackback Trackback

Updates to libnids

David | February 20, 2010

Much of the code I have written as part of my day job uses the rather excellent libnids.  However, there are a few bugs in version 1.23 relating to packets with radiotap headers or code which tries to read from multiple pcap files in sequence.
Read the rest of this entry »

Comments
No Comments »
Categories
Computing
Comments rss Comments rss
Trackback Trackback

Contributing [to CPAN] is easy!

David | February 6, 2010

The following article is a repost of an original that I wrote for blogs.perl.org.

I thought I would share my experience of submitting a module to CPAN for the first time. In summary: it’s stupidly easy and if I can do it, so can you.
Read the rest of this entry »

Comments
No Comments »
Categories
Computing
Tags
perl
Comments rss Comments rss
Trackback Trackback

Syncing the iPhone addressbook with Horde

David | January 9, 2010

Since I’d had my iPhone I’ve wanted to be able to sync my contacts with my Horde Webmail install.  This post is about setting up the Funambol application in order to do so.
Read the rest of this entry »

Comments
3 Comments »
Categories
Computing
Tags
horde, iPhone
Comments rss Comments rss
Trackback Trackback

Modifying fields in the Turba addressbook

David | January 9, 2010

I have recently started using the Funambol iPhone app to keep my contacts in sync with my webmail addressbook.  However, some fields aren’t included in Turba by default and need adding.  This post is for system administrators rather than users, so if you don’t run your own webmail then point your friendly geek at this post.
Read the rest of this entry »

Comments
2 Comments »
Categories
Computing
Tags
horde
Comments rss Comments rss
Trackback Trackback

« Previous Entries

Categories

  • Computing
  • Electronics
  • General
  • Perl
  • Photography

Archives

  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • November 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009

Links

  • My photo gallery
  • Pookey's site

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox