1
2
3
4
#!/bin/ruby

class Cracker
...

Ruby On brute-force password cracker

by John Sietsma, October 14, 2008 01:20

*EDIT* Removed smart-arse c...

37ce1520d319fa8095d05aa475951616 Talk
1
2
3
4
#!/bin/ruby

class Cracker
...

Ruby On brute-force password cracker

by John Sietsma, October 13, 2008 11:07

Here is a first pass refact...

37ce1520d319fa8095d05aa475951616 Talk
1
2
3
4
    public class Timer
    {
        public Timer( long millisecondsDuration ) : this( millisecondsDuration, false )
...

C# On Timer Class

by John Sietsma, October 13, 2008 03:15

It seems the class is desig...

37ce1520d319fa8095d05aa475951616 Talk

JavaScript On Highlight Selected forms, S...

by John Sietsma, October 12, 2008 03:09

No really, I suppose just b...

37ce1520d319fa8095d05aa475951616 Talk
1
2
3
4
$.fn.setHighlight = function() {
  return this.each( function() {
    $(this).removeClass('optional');
...

JavaScript On Highlight Selected forms, S...

by John Sietsma, October 11, 2008 04:51

I couldn't resist a JQuery ...

37ce1520d319fa8095d05aa475951616 Talk

Ruby On simplify multiple gsub

by John Sietsma, August 28, 2008 01:45

It depends what you're afte...

37ce1520d319fa8095d05aa475951616 Talk
1
2
3
4
  result = ""
  data.each_byte { |ch|
    result << ( subs[ch.chr] || ch )
...

Ruby On simplify multiple gsub

by John Sietsma, August 27, 2008 05:29 Star_fullStar_fullStar_fullStar_fullStar_full

Use the speed of the dictio...

37ce1520d319fa8095d05aa475951616 Talk
1
2
3
4
def transact( objs, actions )
  done = []
  objs.each { |obj|
...

Ruby On Code transactions

by John Sietsma, August 20, 2008 07:37 Star_fullStar_fullStar_full

Well, this covers it but is...

37ce1520d319fa8095d05aa475951616 Talk
1
2
3
4
def transact( objs, actions )
  done = []
  objs.each { |obj|
...

Ruby On Code transactions

by John Sietsma, August 20, 2008 07:25 Star_fullStar_fullStar_fullStar_full

This is slightly neater and...

37ce1520d319fa8095d05aa475951616 Talk
1
2
3
4
class Test
  @@tries=0
  attr_reader :num
...

Ruby Code transactions

by John Sietsma, August 20, 2008 07:14, 5 refactorings, tagged with transact, rails

In a Rails controller I'm s...

37ce1520d319fa8095d05aa475951616 Talk