JavaScript On ImageFlow - something like ...

by admiralquade, November 22, 2007 13:09

@ Oli and Daniel: I think, ...

Ce6f4f50611af8a1a964c3cdd3edd004 Talk

Java On Help with new methods

by anton, November 22, 2007 01:29

this is homework

D41d8cd98f00b204e9800998ecf8427e Talk

JavaScript On ajax star rater using mootools

by Jeremy Weiskotten, November 21, 2007 20:53

No, you shouldn't need to.
...

5170ca260dbd2cdfd5a887a4dba7636f Talk

JavaScript On ajax star rater using mootools

by blank714.myopenid.com, November 21, 2007 18:41

i couldnt get any of those ...

55502f40dc8b7c769880b10874abc9d0 Talk

Ruby On managable test method

by Jeremy Weiskotten, November 21, 2007 18:23

You could move the preparat...

5170ca260dbd2cdfd5a887a4dba7636f Talk
<script type="text/javascript">

function addRatingClickEvent(idx) {
...

JavaScript On ajax star rater using mootools

by Jeremy Weiskotten, November 21, 2007 18:20 Star_fullStar_fullStar_fullStar_full

Slight changes to the previ...

5170ca260dbd2cdfd5a887a4dba7636f Talk
<script type="text/javascript">
window.addEvent('domready', function()
{
...

JavaScript On ajax star rater using mootools

by ThomW, November 21, 2007 13:57 Star_fullStar_fullStar_fullStar_full

You could definitely save s...

66e7eefb458c3d59c6a098d29f777f31 Talk
If you use this code, you can no longer insert those strings into a DB, unless you want corrupted data, or unless you manually unescape them before doing so.

A nicer approach is to wrap the strings in a class, like SecureString, and have methods like toHtml(), toSql(), getRaw(), etc.

PHP On making user html input secure

by Mike, November 21, 2007 13:19
D41d8cd98f00b204e9800998ecf8427e Talk
GridBagConstraints c = new GridBagConstraints();
		c.insets.bottom = 2;
		c.insets.top = 2;
...

Java On Swing GridBagLayout in calc...

by Elij, November 21, 2007 05:08 Star_fullStar_fullStar_full

I've demonstrated using fal...

4d72203c38dd5f3e3d2d446b5888e8a7 Talk
curl http://www.cnn.com | perl -ne 'm/>([^<>]*?)<\// && print$1."\n"' | sed -e '/^$/d'

Perl On Perl one-liner to extract x...

by griflet, November 20, 2007 18:00

Tested. Works. I also added...

Aae34a7973a8d98e53764a1c89090c55 Talk

PHP On FLAC -> Multiple File Ty...

by wegosublime, November 20, 2007 16:52

Thanks for that. The primar...

98ae5419a4fd2b739280c3ed7d6cdb3d Talk

Ruby On Random number generator

by macournoyer, November 19, 2007 19:57

Here's a fun intro to Ruby ...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk

Ruby On Random number generator

by dsphunxion, November 19, 2007 18:59

Care to share any tutorials...

7f745cb20d1822c5efd76dbcf42c1223 Talk

Ruby On Random number generator

by macournoyer, November 19, 2007 18:09

sorry I forgot to put the p...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk

Ruby On Random number generator

by dsphunxion, November 19, 2007 17:17

I tried from a normal bash ...

E065268b4e2a95b2bbf09cf8350074b2 Talk
ruby -e "puts (1..500).map {rand(10 ** 16).to_s.rjust(16,'0')}"

Ruby On Random number generator

by macournoyer, November 19, 2007 15:14

You can open an interactive...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk

Ruby On Random number generator

by dsphunxion, November 19, 2007 13:57

macournoyer: how exactly do...

87aa551019ab6b008f6bf03d71042d52 Talk
class Time 
  def to_week_range
   (beginning_of_week..((self+7.days).beginning_of_week))
...

Ruby On Finding all in a date range...

by Max Lapshin, November 19, 2007 10:03

perhaps use to_s(:db)

143c67bc66364c543e85bc907717a8ab Talk
def tag(name, attributes = {}, &block)
  attributes = attributes.to_a.collect { |a| "#{a.first}=\"#{a.last}\""}.join(' ')
  inner = block ? "\n\t#{block.call}\n" : ""
...

Ruby On Iterated printing in the he...

by Ben Burkert, November 18, 2007 23:06

I like to use nested blocks...

4d1c9dad17af98e55cb65b4efce27c42 Talk
def place_radio_button_row(options={})
  returning html = "<tr>" do
    html << "<td>#{options[:caption]}</td><td></td>"
...

Ruby On Iterated printing in the he...

by rpheath, November 18, 2007 04:59

I don't believe you need to...

E635ccff7389d9070f5e7e9fe8b36beb Talk

Ruby On Handling nil object

by Martin Dufort, November 17, 2007 19:21

There it is....

73bbbb0f269644da4204577cebd2c3ab Talk

Python On .ini file parser

by jaredgrubb, November 17, 2007 18:34

If what you're looking for ...

848e7681373328946b4b7ccb3a537627 Talk
class String
  
  def replace_placeholders(placeholders)
...

Ruby On Simple Text Replacement

by Scott Patten, November 17, 2007 06:56 Star_fullStar_fullStar_fullStar_full

Jason, good call on getting...

5392d0a82eb7a8d8c6246f9dbbc2244a Talk
class Thing < ActiveRecord::Base

def replace_placeholders(placeholders)
...

Ruby On Simple Text Replacement

by Bilson, November 17, 2007 00:00

This is really getting whip...

0b7b8a4ba91242f26238424ca491304a Talk

Ruby On Handling nil object

by Jeremy Weiskotten, November 16, 2007 20:09 Star_fullStar_fullStar_fullStar_fullStar_full

I can has ratings now? ;)

5170ca260dbd2cdfd5a887a4dba7636f Talk