Mixed GUI/Command line parameters processing





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

5
Date Submitted Fri. Nov. 3rd, 2006 12:07 PM
Revision 1
Helper jarfil
Tags "Command Line" | Perl
Comments 2 comments
I've found it kind of complicated to strip newline chars from a file with just the commandline. This tiny piece of code does just that.

I've found it especially useful when extracting tabulated data from a grabbed site where each cell is on a different html line. This way I can pre-filter the html, remove the newlines, and insert them again at register boundaries (row end in this case), so that with just a couple more replacement from within a regex enabled text editor I can copy&paste it directly to a database.
5
Date Submitted Thu. Feb. 8th, 2007 1:09 PM
Revision 1
Helper jeremec
Tags "ruby on rails" | fixtures | rails | Ruby
Comments 0 comments
I'm in the process of writing test fixtures for our rails site. A lot of my tests require authentication, so I've had to port our permissions system into a fixture. Rather than type out all of the information for the fixture, I decided to create a nested loop that will take care of this for me.

There's probably a rake task for this, but I wasn't able to find it, so I came up with my own solution. You'll have to do a little cleanup when it's done, however some slight mods to this loop could even eliminate that.
5
Date Submitted Thu. Nov. 30th, 2006 11:40 PM
Revision 1
Beginner ivy7878
Tags address | addresses | country | IP | Ruby
Comments 1 comments
IP2Location is a Ruby library that enables the user to find the country, region, city, coordinates, zip code, ISP and domain name that any IP address or hostname originates from. It has been optimized for speed and memory utilization. Developers can use the API to query all IP2Location™ binary databases for applications written in C or supporting static/dynamic library.
4
Date Submitted Thu. Mar. 2nd, 2006 3:36 AM
Revision 1
Syntax Master dannyboy
Tags "Command Line" | BATCH | CMD | wins
Comments 0 comments
Change wins settings for all nics
4
Date Submitted Thu. Mar. 2nd, 2006 3:41 AM
Revision 1
Syntax Master dannyboy
Tags "Command Line" | BATCH | CMD | share
Comments 0 comments
Builds a batch file to create hidden shares for a bunch of sub-directories (eg, User shares)
4
Date Submitted Thu. Mar. 2nd, 2006 11:20 AM
Revision 1
Syntax Master dannyboy
Tags "Command Line" | Radmin | VBSCRIPT
Comments 1 comments
start remote admin connection from command line
2
Date Submitted Wed. Aug. 9th, 2006 5:49 AM
Revision 1
Beginner plinge
Tags Ruby | signals | slots
Comments 0 comments
Well, ruby is actually so flexible that there is no real need to implement the goode olde signals & slots metaphor. But it serves nicely as demonstration of ruby properties, so here we go.
2
Date Submitted Thu. Oct. 20th, 2005 6:22 PM
Revision 1
Coder mattrmiller
Tags "Command Line" | C | Calculator
Comments 4 comments
Command Line Calculato
2
Date Submitted Thu. Mar. 2nd, 2006 3:51 AM
Revision 1
Syntax Master dannyboy
Tags "Command Line" | BATCH | CMD | KILL
Comments 0 comments
KillProc will do a search of all the current processes and kill all that
match the name given. If the process name is misspelled, KillProc would
kill itself, based on the match. The 'find /v /i "KillProc"' part of the
search prevents KillProc from killing the CMD window it is running in.

Requires NT Resourcekit
1
Date Submitted Wed. Oct. 11th, 2006 3:08 PM
Revision 1
Helper jeremec
Tags activerecord | find | override | rails | Ruby
Comments 0 comments
From time to time you may have reasons to override the default find method that ActiveRecord provides. In this example, we'll store a side-copy of the record attributes so that we have some basis for discovering changes to the data.

note: this will not override dynamic finders such as find_by_id