hidiff - char highlight diff utility
on Oct 30, 2007 at 20:53
|
1 reply
|
by bsb
|
|
Highlight differences between 2 files using
curses highlighting, a little like "watch -d".
|
Cdrom data recovery script
on Oct 29, 2007 at 00:55
|
1 reply
|
by bitshiftleft
|
|
If you are something of a code collector(like code off this website), you are probably putting it on CD's. Under Win32 everytime you drag files to the CD window you create a new session on it, and doing so that new seesion is supposed to copy the session before it. As it happens it doesn't do it reliably. Have you ever noticed dissapearing files you swore you put on it ? They are still there in the previous sessions. You only get to view the last session with the Windows Explorer. I bought a used copy of Kaspersky's book($5 with CD) "CD Cracking Uncovered".
I used two utilities from it to recover two of my CD's.
The last chapter deals with CD recovery . These utilities read the CD at the raw sector level. The script below uses the SPTI interface(Admin) , but can easily be changed to the ASPI interface(non-Admin). Yes, there are utilities out there you can buy,
but when you realize that recovery is an art(one size does not fit all), its nice to have a freebie you can modify to your own needs that comes with source code.
|
Maple worksheet (lists) to XLS converter
on Oct 10, 2007 at 09:16
|
0 replies
|
by mwah
|
This script reads a (exported to plain text => .txt)
Maple worksheet (.txt), extracts all 2D number lists
(Arrays [x,y]) of the form
'list:=[[ ...'
and
'list := [ ...'
and writes them into an excel worksheet
with column headings named after the lists.
If applied to a unconverted worksheet (.mw)
only input lists are extracted (output lists
will be usually generated by Maple via evaluation
of functions or expressions.
|
A PBP based Module::Starter template
on Oct 08, 2007 at 10:57
|
0 replies
|
by lima1
|
|
A Module::Starter template based on Module::Starter::PBP. I always made the same changes in the generated files so I decided to change the template directly (Damian has probably currently more important things to do).
Changes I've made:
- our $VERSION rt://#25007
- added latest recommended Test::Perl::Critic template
- set Perl::Critic severity to 1 (brutal)
- vim settings (Emacs users feel free to post your settings)
- added SYNOPSIS test
- changed LICENCE to LICENSE
- prepared 00.load.t to be replaced with ovid's A Better 't/00-load.t'. deactivated by default.
- added CVS/SVN keywords $Author$, $Date$ and $Revision$
If you want to use this, just download http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Module-Starter-PBP-v0.0.3.tar.gz and replace lib/Module/Starter/PBP.
|
A Better 't/00-load.t'
on Oct 03, 2007 at 04:02
|
0 replies
|
by Ovid
|
|
In test suites, you often see a test program named something like t/00-load.t. The leading '00' generally ensures that this test is run before others. Usually this test is designed to load all of your packages and ensure that they compile. There's no point in continuing testing if they don't. Unfortunately, it's easy to forget to add a new module to the list if you forget about it. I do that all the time and I hate that.
The following 'improved' load tester has the following features:
- Finds and loads your modules automatically
- Is taint safe
- Should run on Perls as old as 5.004 (I think)
- Cross-platform
- Calculates the test plan for you
- Optionally verifies that all packages have same version number
|
GPLifier
on Sep 28, 2007 at 13:26
|
0 replies
|
by Minimiscience
|
|
This script can be used to apply the GPLv3 copyright notices to a specified source file. Simply edit lines 10 & 11 to use your name and (if desired/needed) the path to your local copy of the GPL, and then run it with the source files as arguments. If a program consists of multiple source files, use the -n and -d flags to specify a name & description for the whole program. If you need to skip some number of lines in each file before inserting the notice, use the -h flag. To copy your local version of the GPL to a specified directory (default '.'), use the -c flag.
|
ReturnDate.pm
on Sep 27, 2007 at 14:04
|
2 replies
|
by tcf03
|
Returns the Earlier/Later Dates. I could not find anything on CPAN which provides this exact functionality.
upddate added a Sorted method to return a sorted list of dates
|
Shuttle Puzzle solver
on Sep 24, 2007 at 22:10
|
0 replies
|
by jima
|
|
I was perusing back issues of Creative Computing at the library and ran across some problem sets from computer programming contests that were held in the late 1970s and early 1980s. Being a past participant and winner of programming contests, I checked out the problem sets, just to see what kids were expected to solve 20+ years ago.
One of the puzzles that they had to solve was the Shuttle Puzzle, in which you have to switch two groups of marbles on a board. When the problem was presented in the contest, it came with a big hint to help the kids to figure out how to solve the puzzle. This Perl Tk demo program is a result of my work on that puzzle.
|
WIN32: Permanent & Current MAC Addresses
on Sep 24, 2007 at 15:47
|
0 replies
|
by cmv
|
|
Folks-
This is a script that will query all the available windows network device drivers for their current and permanent MAC addresses. The permanent address should be what the device driver reads from the device firmware, and so I don't believe is easily spoof-able. If that's not the case, please post here.
I got lots of help on this; thanks to everyone, and specifically:
pKai - For introducing me to wmic Re: WindowsRegistry{ServiceName} V.S. wmic{ServiceName}
almut - For his great ioctl code Re: Getting MAC Address(s) on Windows PCs
The MAC addresses reported by the driver are saved as $node{macPerm} and $node{macCurr} along with all the other information about the device.
Hope it comes in handy...
-Craig
UPDATE:
Oct-01-2007: Checking $nBytes from DeviceIoControl - avoids returning meaningless buffer stuff
Oct-02-2007: Providing correct size of packed OID query
|
Utility for Finding Constants hidden in 'C' Source Code
on Sep 21, 2007 at 21:09
|
1 reply
|
by pmonk4ever
|
|
As a Test Engineer, I am tasked with finding items buried in C or Ada Source Code, in order to prove that the development team utilized certain customer required data constants. The resultant code inspection can take several hours in doing a manual search, and because I am interested in spending time in other pursuits, I wanted an automatic solution...
This bit of magic was inspired with help from Monks Grandfather and scorpio17 and this is my final solution!
My only unaccomplished bit to this code is I wish I could ignore the @Constants that are in commented lines...where the line begins with a #... My attempts to filter out the commented lines resulted in all source lines being filtered out...
Therefore, here is final_search.pl: the miracle of searching & printing source path, filename, and source code line where used.
If you don't provide a directory path on the command line, it will default to the current directory.
Please feel free to make use of this fine utility!
Thanks to all the Monks who offered solutions to this problem!
UPDATE
I ran into some problems with the initial version of this utility during an actual run in the destination directory. So the code has been updated with suggestions from thezip and tested successfully!
Thanks also to Anno and ikegami and several others in the Chatterbox for your excellent suggestions!
Cheers! :D
pmonk4ever
|