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 brute-force password cracker

by Ishkur, October 11, 2008 02:36

Hmmm, I certainly can't spe...

6dc0e9a07bcff97ac9b111f36e12f1f6 Talk

C# On Sanitize HTML

by [ICR], October 10, 2008 20:16

ToLower() should be ToLower...

48a02e16370caadaedff78e2a94656ce Talk
1
2
3
<?php
class DataObject
...

PHP On Getter and Setter

by vain, October 09, 2008 17:05

Some thoughts on this:
1. M...

276d28076b0fbe3facf0e0f481f06b69 Talk
1
2
3
4
  def translation_links
    languages = [
      %w[en english us],
...

Ruby On nested array to set of html...

by seaofclouds, October 09, 2008 15:02

AWESOME. i like the explici...

F55e8e113669f6ea7d1d99f38907ce54 Talk
1
2
3
4
module TranslationHelper
  LANGUAGES = [
    %w[en english us],
...

Ruby On nested array to set of html...

by Adam, October 09, 2008 14:30 Star_fullStar_fullStar_fullStar_full

Not sure if you are using R...

A8d3f35baafdaea851914b17dae9e1fc Talk
1
2
3
4
#!/usr/bin/python

from django import forms
...

Python On Django models search

by akaihola, October 09, 2008 12:12

Closing paretheses missing ...

365fd42d009d6ca7262823aa9efd9443 Talk
1
2
3
4
#!/usr/bin/python
# -*- coding: utf-8 -*-

...

Python On Base64 image encoding and i...

by akaihola, October 09, 2008 11:22

You should probably be more...

365fd42d009d6ca7262823aa9efd9443 Talk
1
2
3
4
//somwhere in your class
const CLASSES = {021,078,192,210,240};

...

PHP On switch statement a good idea?

by Mark, October 09, 2008 02:54

Well since you are using 't...

Avatar Talk
1
2
3
4
#include <sstream>
#include <curses.h>
#include <openssl/bn.h>
...

C++ On Prime or Not

by Adam, October 08, 2008 20:41

Just playing around with a ...

A8d3f35baafdaea851914b17dae9e1fc Talk
1
2
3
4
class DayRange < String
  def initialize(days, prefix = nil)
    @prefix = prefix
...

Ruby On Open hours grouping

by Adam, October 08, 2008 19:59 Star_fullStar_fullStar_fullStar_fullStar_full
A8d3f35baafdaea851914b17dae9e1fc Talk

PHP On Getter and Setter

by chovy.myopenid.com, October 08, 2008 18:41

I tend to do special handli...

035687df00d162cec025302373ebc076 Talk
1
2
3
4
def cart(maxs):
    """
    Compute each new result as it if was a number where digit i is of
...

Python On Permutation of values

by Auron, October 08, 2008 16:55

My second proposal is based...

C2953d47b6de83f3217b48c3584fab1c Talk

C++ On Prime or Not

by joshuamc, October 08, 2008 16:19

This is beyond my knowledge...

B04f7f475867f6b47a59b49dfabc0daf Talk
1
2
3
4
#include <iostream>
#include <openssl/bn.h>

...

C++ On Prime or Not

by Adam, October 08, 2008 15:50

A refactoring with basic I/...

A8d3f35baafdaea851914b17dae9e1fc Talk
1
loadURL(location.hash || "#news")

JavaScript On Small Javascript Code

by Adam, October 08, 2008 03:59 Star_fullStar_fullStar_fullStar_fullStar_full

No need to split up the loc...

A8d3f35baafdaea851914b17dae9e1fc Talk
1
2
3
class Locale < Struct.new(:locale, :language, :text)
  def include?(string)
...

Ruby On Search nested hash

by Adam, October 08, 2008 03:48

I get the feeling you are r...

A8d3f35baafdaea851914b17dae9e1fc Talk
1
2
3
4
bye = 0
while bye < 3
  year = rand(21) + 1930
...

Ruby On Exercise: Deaf Grandma

by Martin, October 08, 2008 01:32

After looking at it again a...

5470f9b1544dccb064c8ca1633220d41 Talk

Ruby On DataMapper threaded benchmark

by jEkfoWmf, October 08, 2008 01:24

My stuff gets indexed withi...

77481f66d6b36ca36a5efd45c1b27d24 Talk
1
2
3
4
question = "starting question"
bye = 0
while bye < 3
...

Ruby On Exercise: Deaf Grandma

by Martin, October 08, 2008 01:09

Hey, just started reading t...

5470f9b1544dccb064c8ca1633220d41 Talk

Ruby On Search with fulltext, ago-c...

by papricek.myopenid.com, October 07, 2008 16:11

nice, thanks!

B04a553de1b8b45433b841bba440cc42 Talk
1
2
3
class Course < ActiveRecord::Base
  def self.search(search, page)
...

Ruby On Search with fulltext, ago-c...

by Adam, October 07, 2008 14:46
A8d3f35baafdaea851914b17dae9e1fc Talk
1
2
3
4
def cart(posValuesHead, *posValuesTail):
    if not posValuesTail:
        for posValue in posValuesHead:
...

Python On Permutation of values

by Auron, October 07, 2008 14:44

Excellent! I have to recogn...

C2953d47b6de83f3217b48c3584fab1c Talk
1
2
3
4
def search
  Course.paged_search nil, nil, nil, params[:page]
  # ... add breadcrumb and course_categories
...

Ruby On Search with fulltext, ago-c...

by danielharan, October 07, 2008 14:40

Is this what's going on whe...

880cbab435f00197613c9cc2065b4f5a Talk
1
2
3
4
def cart(*lists):
    if not lists:
        for x in L:
...

Python On Permutation of values

by Maciej Piechotka, October 07, 2008 14:34 Star_fullStar_fullStar_fullStar_full

You looking for cartesian p...

1e8f141e7857d397d8020ed3b759e88a Talk