RSS Element,demiblog Class,Language,Link,Title,Description
channel,,en_GB,http://tobyinkster.co.uk/tag/software/,"Articles Tagged with ""Software""",
item,A,en_GB,http://tobyinkster.co.uk/article/editor-wrapper/,editor-wrapper,"====
The situation: you are a web author, surfing some of
your own pages and spot a mistake. You hit the “View Source” button in
your browser, fix the mistake and go on surfing. Later on you come back to
that page with the mistake and the mistake is still there! Why? Because
you were editing the file in your browser’s cache, not the original
file!
This situation annoyed me so much that I decided to do something about
it!
Firstly, you assign the source-code viewer for your browser to be, instead
of your regular text editor, to be the following Perl script:
#!/usr/bin/perl - options
$editor = $ENV{‘XEDITOR’}||’/usr/bin/nedit’;
$settings = $ENV{‘HOME’}.’/.editor-wrapper’;
die “Should be called with a web page as an argument\n”
unless ($file = shift @ARGV);
- search for special line
open(FILE,$file);
READLINE: while (<FILE>)
{
chomp;
last READLINE if /^<!—…
"
item,A,en_GB,http://tobyinkster.co.uk/article/html2highlight/,html2highlight,"====
html2highlight is a a script that converts an HTML or any other XML-like SGML document into a HTML page showing the document’s source code with naïve syntax highlighting. The output document requires a CSS-capable browser.
The colours for the syntax highlighting are inspired by Mozilla’s “View Source” function.
Although it is a Perl script, it is reasonably efficient. It typically takes about 1 minute to convert a 100KB document on my 400MHz Pentium Celery with 256MB RAM. Output documents are about 2 to 5 times the size of the original.
Examples
- The alt.music.bootlegs <abbr title=”Frequently Asked…"
item,A,en_GB,http://tobyinkster.co.uk/article/source2html/,source2html,"
I needed to print out a directory full of small scripts. This Perl script will go through the current directory and create a pretty HTML page of all the files in that directory. That HTML page can then be fed to a browser for printing.
#!/usr/bin/perl $cd = `pwd`; chomp $cd; $ls = `ls -1 $cd`; @ls = split(/\n/,$ls); print ""<title>Directory Listing $cd</title>\n""; print ""<h1>Directory Listing $cd</h1>\n""; $ll = `ls -l '$cd'`; chomp $ll; print ""<pre style='padding:1em'><b>$ll</b></pre>\n\n""; foreach $f (@ls) { if (!(-d $f)) { $l = `ls -l '$f'`; chomp $l; print ""<div style='border:2px solid black;padding:1em;'>\n""; print ""<h2 style='margin:0;padding:0;'>$f</h2>\n""; print ""<pre><b>$l</b></pre>\n""; print ""</div>\n""; $t = `cat '$f'`; $t =~ s/&/&/g; $t =~ s/</</g; $t =~ s/>/>/g; print ""<pre style='padding:1em'>$t</pre>\n\n""; } }
This software is distributed under the terms of the GNU GPL.
"
item,A,en_GB,http://tobyinkster.co.uk/article/password-scripts/,Password Scripts,"====
All of this software is distributed under the terms of the GNU GPL.
ToBePaGe
Toby’s Beneficial Password Generator (ToBePaGe) is a PHP function to create pseudo-random passwords.
<?php /*
* Toby’s Beneficial Password Gen (a.k.a. ToBePaGe) v1.0.0
* ===============================================
*
* Usage:
* $password = pwd_gen($string);
*
* Where $string is the password pattern to use. Password patterns
* may include:
*
* %C- replaced with a uppercase consonant
* %c- lowercase consonant
* %K- same as %C, but also includes common combinations of
* consonants such as ‘Sh’, ‘Ch’ and ‘Str’
* %V- uppercase vowel (includes Y)
* %v- lowercase vowel (includes y)
* %L- uppercase letter
* %l- lowercase letter
* %a- any letter
* %n- numeric…
"
item,A,en_GB,http://tobyinkster.co.uk/article/jukebox/,jukebox.pl," jukebox.pl is a GTK2 player for Ogg Vorbis files written in Perl. It uses SDL for audio output.
Why yet another Linux media player?
Because this one has just the features I need and nothing more. It provides the facility to select which song you want to hear next (and if no songs are queued, will select one at random); skip the current song; pause; and a volume control. I don't need anything other than that, and I'd image that a lot of other people don't either. (If anything, the volume control is an extravagance!)
"
item,A,en_GB,http://tobyinkster.co.uk/article/rpms/,RPM Builds,"====
PAN - A newsreader for GNOME.
My build of PAN for Mandrake 9.2, including aspell support.
Dillo - What’s Dillo? A lightweight browser.
Dillo 0.6.6
My build of Dillo, which is specially patched for:
- HTTPS support, using OpenSSL.
- GNOME-style…"
item,A,en_GB,http://tobyinkster.co.uk/article/steg-encode/,steg-encode.pl,"====
steg-encode.pl is a basic tool for hiding secret messages in images. It comes with a friend: steg-decode.pl.
Download
Usage Example
To hide a message in an image, use the following syntax.
steg-encode.pl image message output
Output should be to either an uncompressed image file or a non-lossy compressed image file, and should be 24-bit colour. Formats such as PNG or Windows Bitmap are ideal.
An example is:
steg-encode.pl test-in.png test-in.txt test-out.png
To convert back:
steg-decode.pl image output
And to…"
item,A,en_GB,http://tobyinkster.co.uk/article/demiblog-old/,DemiBlog,"====
What is DemiBlog?
It is somewhere between a blog and a traditional web site. This site is powered by DemiBlog. It is released under the GNU GPL.
What does it have in common with commonly used blogging software?
- Easy interface for creating new pages and updating current pages.
- Plenty of meta-data automatically kept for each page.
How does it differ from commonly used blogging software?
- Although each page keeps track of its “last modified” and “created” dates, it creates hierarchical web sites, rather than chronologically organised sites.
Anything else?
- Makes use of several established standards:
- XHTML 1.1
- CSS 2
- Dublin Core — metadata
- ISO…"
item,A,en_GB,http://tobyinkster.co.uk/article/w3dev-menu/,Opera W3-Dev Menu,"
The W3-dev Menu is an Opera 7–9 customisation for web developers, providing handy shortcuts to validate and check their pages and some useful links to web standards and tutorials…
"
item,A,en_GB,http://tobyinkster.co.uk/article/everybuddy/,Everybuddy," Important: This is not the official Everybuddy page. The official Everybuddy page is at
Everybuddy.com. If you have any
problems with Everybuddy, don’t contact me — instead, go to the
Everybuddy web site, join the mailing list and ask there.
Everybuddy is designed to become a Universal Instant Messaging client, seamlessly
integrating all existing Instant Messaging clients and providing a single consistant
user interface. Currently, Everybuddy supports sending and receiving messages through
AOL, ICQ, Yahoo, MSN, Jabber and IRC.
Here you can download recently updated Everybuddy binaries and source
code. It should be fresh from CVS within the last week or so. RPMs are
built on a Pentium Celeron, running Linux Mandrake 8.1. Builds that have
a version…"
item,A,en_GB,http://tobyinkster.co.uk/article/windows-software/,Windows Software,"====
Non-GPL Software
The following software is not GPL’d for some reason or another.
BootListPro
Current version: 2.0 (beta)
Description: Keep track of bootleg CDs! I plan on uploading the source code when I can find it. &x-smiley;
Requirements: Windows 95/98/ME/NT/2K/XP.
Download:
blp.zip.gz [3587KB]
[PGP Sig]
Get MD5
Current version: 1.0
Description: Calculates am MD5 sum for a file. Once again, this is not a GPL piece of software - for the simple reason that I’ve
lost the source code! Probably, the only file you need is getmd5.zip,
but if that doesn’t work, try getmd5-vbrun.zip.
Requirements: Windows 95/98/ME/NT/2K/XP.
Download:
getmd5.zip.gz [10KB]
[PGP Sig]
<a…"