Goo::Canvas Waypoint marker w zoom/save to svg and pdf
on Jun 04, 2008 at 14:46
|
0 replies
|
by zentara
|
|
You can load an image, and make waypoints. Zoom and save to svg or pdf. (I don't know if it's a bug on my system, but it won't save a loaded svg map as svg (the waypoints show up but the svg map is all black), but will save to pdf just fine. Add an image of your choice and uncomment the section for loading it. I just start with a rectangle for this demo. For best results with an image, use a huge image and scale the canvas down after loading it, so the resolution stays good when zooming. I have 1, but it's 3 megs, so I won't base64encode it into the script. :-)
|
Map drives and printers from Perl
on May 31, 2008 at 22:56
|
1 reply
|
by thparkth
|
|
It's very easy to map a drive or a printer on your Windows workstation from Perl. This makes it very practical to write login scripts in Perl.
I have not been able to find a pure-Perl method to check for the success of these operations. They always return success and no error variables are set.
|
xls2tsv
on May 29, 2008 at 20:40
|
0 replies
|
by graff
|
|
A basic, no-frills method to extract data from Excel spreadsheet files and print it as tab-delimited lines to STDOUT (e.g. for redirection to *.txt or *.tsv, or for piping to grep, sort or whatever). Works fine on macosx, linux, unix, once you have Spreadsheet::ParseExcel installed. (updated to fix silly tab indenting, and to remove some cruft, and to make my email address less of a spammer target -- also updated the node title and pod to match the name of the script.) Oh, and I should mention: it does the right thing when cells contain unicode characters: output is utf8.
|
distr - show distribution of column values
on May 23, 2008 at 09:45
|
0 replies
|
by Corion
|
|
This program returns a quick tally of the different values for a column. My primary use for this program is to find out the most common date value in a file, to rename that file to that date.
It is also very convenient to use this program to get a quick overview over the distribution
of lengths, especially for numbers.
Currently, I'm "confident" that I'm picking the right value as the maximum value if the value occurs in at least 60% of the rows of the sample I'm taking. This has shown to be sufficient, but better would be an estimator that determined the size of the sample or expanded the sample as long as there was not enough confidence in the "modus".
|
Migration from Outlook to any other mail program
on Apr 28, 2008 at 21:37
|
2 replies
|
by tachyon-II
|
|
Have you ever wanted to:
- Migrate from Outlook to another mail program like Thunderbird, Evolution, Netscape, Eudora, or even (al)Pine on *nix?
- Convert an Outlook/Eschange pst file into a standard Berkely unix mbox format?
- Extract the email headers from Microsoft Outlook?
- Extract the contents of your spam folder for analysis?
- Extract all the attachments from you email into a single folder?
- Understand Win32::OLE and how to use it to automate Windows stuff?
- Use Win32::OLE to recurse a tree structure?
BUT you have not been able to find the right tool/code/example/snippet?
Well this script does that using Win32::OLE and the Outlook and MAPI interfaces. You may need Outlook Redemption to bypass all the "security" related stuff that M$ did to break MAPI, although it worked fine for me using Outlook 2000 (SR-1 pre the patch from hell) and Windows XP. If it "breaks" with endless "Do you want to do that messages" let me know. Import tested into Windows ports of Thunderbird and Evolution. Optionally non RFC 1521 compliant message rebuild to deal with the, uhm, "features" of various mail programs.
|
Tk::Zinc based geometry puzzles
on Apr 21, 2008 at 13:06
|
1 reply
|
by thundergnat
|
|
One of my friends teaches math to 7th-8th graders and came up with a little puzzle game to help demonstrate elementary geometry (coordinate systems, transform/translation of shapes). It consists a series of puzzles cut out of cardboard that the students assemble to form a perfect square.
He was showing it to me and mentioned that it was getting unwieldy to keep all the individual puzzles sorted out and in their proper envelopes. A lightbulb went on and I whipped up this script for him.
This is a simple puzzle game. Each puzzle has 2 or more pieces that you can drag and/or rotate to fit together to form a perfect square. Every vertex of each piece falls exactly on a 4 X 4 unit square grid, so each piece is described by its whole number verticies on a 0 .. 4 by 0 .. 4 cartesion grid.
Many of the puzzles are simple, some are tricky, all have at least one solution.
Works under Windows and Linux (and probably others but haven't tested).
Update: Added smoothing suggested by zentara
|
D&D Initiative Tracker
on Apr 19, 2008 at 00:34
|
0 replies
|
by pobocks
|
|
A program in Perl/Tk to enter and display a list of character names, sorted by initiative number and dexterity score. If you don't understand that sentence, you won't find the program interesting.
|
CA::AutoSys::Jil module
on Apr 11, 2008 at 13:18
|
1 reply
|
by runrig
|
|
Update: Doesn't seem to work anymore. E.g., latest version of autorep does not seem to have "-D" option. Instances of 'from_autosys' in code should probably be 'from_server'. I haven't used autosys for a while and am just getting back to it, so I may update this in the near future.
This is posted mainly because I said I would in response to a recent post.
AutoSys is job scheduling software (like cron on steroids) from Computer Associates. This started out as just a JIL (AutoSys' Job Information Language) parser (to read files with multiple job definitions), and mutated into also getting job status and dependencies, and validating jil scripts. You'll need to configure the AUTOSERV hash...sorry this is mostly as is so things are not as generic as they could be. There is some overlap between this and what is already on CPAN (CA::AutoSys) but the existing CPAN module didn't have any JIL parsing, which is what I really needed in the beginning. If the output format of autorep or job_depends changes in past/future version of AutoSys, then something here will probably break.
And I would appreciate feedback on whether or not this works on other systems :-)
|
Linux 3D Space Navigator control
on Apr 08, 2008 at 18:25
|
0 replies
|
by shotgunefx
|
|
Rudimentary code for using a 3Dconnexion SpaceNavigator™ under Linux using the /dev/input/eventN interface.
Currently what I'm using to control Auto-DAC, my Automotive media player. (video of the navigator in use, here )
|
Tk April Fools
on Apr 01, 2008 at 15:57
|
1 reply
|
by zentara
|
|
I guess it's getting pretty hard to create a realistic April Fool's prank, so here is a lame one. :-) So I don't cause busy people too much aggravation...... Escape key will exit.
|