ROBODoc to Pod translator
on Mar 13, 2006 at 11:35
|
1 reply
|
by wazoox
|
Do you know ROBODoc ? It's quite similar to Pod but has several advantages :
- It allows to write inline documentation with most languages, including HTML;
- You can create single or multiple documents from the same source;
- It's more compact than Pod, ans it's a nice advantage when working with ctags.
However it missed something : the ability to generate Pod (for people used to it) from your ROBODoc. So here it is at last !
update : corrected a regexp
|
Tapespeed.pl
on Mar 09, 2006 at 13:47
|
0 replies
|
by JSchmitz
|
|
Shows you Netbackup Version, OS version - prints out the bp.conf settings and shows you have fast the tapes drives have written the last backups to tape.
|
NetIQ Report Parser
on Mar 09, 2006 at 13:28
|
0 replies
|
by JSchmitz
|
|
This is a script that uses the HTML::TableExtract module that Mojotoad wrote. It is very handy for stripping out just the error messages in NetIQ reports for emailing them out. Matt helped me with this a lot so I have to give him props for this one.
|
Mirror/Copy Mozilla thunderbird emails to IMAP server
on Mar 08, 2006 at 04:40
|
3 replies
|
by davis
|
|
This script works on Mozilla Thunderbird email stores, and attempts to upload the emails to an IMAP server. Right now, it's not finished, in that it doesn't upload the top-level emails (ie mails from Inbox, Sent etc). It handles subfolders of those just fine.
There's slso some dirty hackery to munge folder paths for dovecot. YMMV
Update: Fixed now, ie it correctly parses email in top-level folders. I'd still call it a quick-and-dirty script though.
|
Lists in Gtk2 example
on Mar 07, 2006 at 12:42
|
0 replies
|
by zentara
|
|
UPDATE Mar-07-2006: I made some mistakes with this
cellrendererspinbutton, due to my upgrading to Perl-5.8.8, without getting the latest Gtk-Perl module ( Gtk-1.116 ). So I am changing the spincell renderer back to a correct package.
If any of you experience the custom-cell renderers acting funny, or not working, in the Gtk-perl/examples directory, and you are using Perl 5.8.8, upgrade your modules.
Hi, setting up lists in Gtk2 is alot trickier than in Tk, but they are worth it. There are a whole series of "Simple::List" and "Ex" modules, which take the hassle out of Gtk2 lists, but they don't work well with Customized cells, like if you want a spinbox of real values, a progessbar, date selector, textboxes, buttons or a special kind of popup in a cell. So this is how it is done. There are some catches. I link the toggle button with the icon displayed, but don't check that they match when initing the list..... it's just a demo. So you can select which columns you like, and just copy out the column-code-sections to your app, and you should be able to make any list you want. There are currently some other Custom Cell Renderers available, in the Gtk2-Perl module examples directory. Like a progressbar, date calendar popup, and complex popup. There is a section on how to make your own custom cell renderer in "perldoc Gtk2::CellRenderer", but it is not for the light hearted. :-) Finally, I added some code to the spinbutton cell renderer package, which will set the value in the list, with any "focus-out" event, the drop-down cells require that you click somewhere in the list to set the new value. To get this feature in the drop-down list, a custom cellrenderer would need to be written for that cell. This is one of the complaints people have about Gtk2, that you must attend to all these details to do things which are commonly done in Tk. But the Gtk2 developers have decided that their job is to make the underlying system very configurable, and leave it to the module designers to make the 'Simple' and 'Ex' modules which takes care of the commonly wanted features.
|
make_m4b
on Mar 04, 2006 at 22:48
|
0 replies
|
by jfroebe
|
|
This is a work in progress but I've started downloading various podcasts so I can put them on my iPod. I ran into two problems:
- The mp3 files were not bookmarkable, which means that I had to fast forward to where I left off if I wanted to listen to something else for while. For long podcasts, this can be very annoying!
- My iPod can not play RealAudio files.
So I created make_m4b which is able to convert mp3 or realaudio files to a mpeg4 audiobook file. The iPod is able to play the file and save a bookmark so I can go play it later if I want to without having to fast forward.
The requirements for make_m4b are:
While, this can be used with Windows, I have not tested it.
This is a variation of Ryan Hayward's code.
Yes, I know system() is bad and I will clean it up later. (I've been sick for a number of days).
|
Splitted Zip
on Mar 03, 2006 at 21:42
|
1 reply
|
by polettix
|
|
Sometimes email puts a hard limit to the size of the files we can send.
In these occasions, compressing comes handy, because it reduces the
size of the data, but it could not be sufficient. Many tools allow
the production of a splitted ZIP file, but this approach, while general,
requires a higher knowledge on the side of the recipient, that is
obliged to save all chunks in a directory. Many users simply don't
want to catch this simple concept, and insist on double-clicking in
the file they receive.
This is where split-zip.pl comes to the rescue. If it can. Its purpose
is to arrange the files to be sent in order to produce multiple ZIP
archives, each of which remains valid and self-contained. Thus, the
casual user double-clicking on it will be happy and will see some
of the files. Of course, this approach fails miserably if there is the
need to send a single, huge file - you're stuck to train your users
better in this case.
Note: I only tested it in a few cases, be sure to read the disclaimer at the end!!!
|
LimitLoginWrite
on Feb 28, 2006 at 21:51
|
0 replies
|
by Anonymous Monk
|
|
A way to configure LimitLogin for 2003 Servers remotely through perl. Special Thanks to Toby Everett for the crash course in VBscript -> Perl Conversion.
|
Ppushd - emulate pushd and popd commands of the shell
on Feb 28, 2006 at 14:32
|
0 replies
|
by ambrus
|
|
This script emulates the shell functions pushd, popd, and dirs. It stores the directory stacks in a data file ~/.ppushd.dat.
It needs some help from the shell because otherwise it won't be able to change the directory. Save the script with the name ppushd-bin somewhere in your path, make it executable, and add the following commands to your bashrc to be able to use it.
pdirs() { cd "`ppushd-bin dirs "$@"`"; }
pinit() { cd "`ppushd-bin init "$@"`"; }
ppushd() { cd "`ppushd-bin pushd "$@"`"; }
ppopd() { cd "`ppushd-bin popd "$@"`"; }
pinit
This script is dedicated to demerphq.
Update: it might be better to implement this fully as a shell script without perl.
Update 2016-01-06: See also "I'm trying to write a script that will change directory (or set a variable), but after the script finishes, I'm back where I started (or my variable isn't set)!" in Greg's bash FAQ
|
CB60
on Feb 17, 2006 at 15:56
|
2 replies
|
by demerphq
|
A lightweight CB Mirror similar to cblast35.
No DB needed at all. Uses the 'modern' xml feed so it can provide properly parsed output.
Set up mini-cb60-fetch.pl on cron job (--sleeptime=0) or as an always running daemon. Set up mini-cb-render.pl as a CGI script for access.
If the CGI parameter 'domain' is provided and is one of 'org','com' or 'net' then that domain will be used for the PM specific links.
This is just a proof of concept for an incremental, low load, PM-parsed CBlast 60.
Update:
- v0.01001: Removed superfluous use of DDS (hangover from initial dev). Added $VERSION to the render code. Trivial changes.
- v0.02: Added cookie support, better defaults. Other minor changes.
Arunbear has kindly made this available online. Many thanks to Arunbear for doing so.
Version 0.02 as posted below is running on http://mini-cb60.datenzoo.de. Thanks to corion for support in getting this set up. The latest version will be available at this site until further notice.
|
|