1
2
3
4
// container = element to put message into
// text = what you want the message to say
function msg(container, text) {
...

JavaScript On Ultra lightweight message &...

by Chris Brandhorst, September 02, 2010 13:52

Most jQuery functions retur...

7a927605596a2463b081c2f5cfcb24a9 Talk
1
2
3
4
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
...

Java On Separate thread logic from ...

by Stefan Vartolomeev, September 02, 2010 11:39
Avatar Talk

Ruby On Good way to output menu wit...

by andrew, September 01, 2010 17:39

Hi..I don't know why do u h...

2163d4cf4f5c70472dbc92e0e5959053 Talk
1
2
3
4
package refactor.engine;

import java.util.regex.Matcher;
...

Java On Refactor, fix and optimize ...

by stef-vartolomeev.myopenid.com, September 01, 2010 14:14
Avatar Talk

Ruby On DataMapper threaded benchmark

by hhop45r, September 01, 2010 08:19

Hack again?!

60858ad141de6f160ef6d1d3b238019a Talk

PHP On Get Site Information with PHP

by Alex, August 31, 2010 07:25

I don't see any reason for ...

E96a421d76c1fc107a5d291c6999b2ef Talk

Ruby On Language Selection

by Omer Jakobinsky, August 30, 2010 09:12

Thanks both of you I really...

A289beedc9fd9fdeaaa905bd755f6f98 Talk
1
2
3
4
    final private static BidiMap<String,DataType> table = new TreeBidiMap<String,DataType>();
    
    ///..
...

Java On Access HashMap key by value

by Ryan Clemson, August 30, 2010 02:34

You could also use BidiMap ...

D5dde52ca7e5b92e55cbc9bbb160b26f Talk
1
2
3
4
require 'addressable/uri'

uri = Addressable::URI.parse(the_uri)
...

Ruby On Set value of key in uri

by Yury Kotlyarov, August 29, 2010 20:46

addressable gem is the best...

94ef1c99f4d4567563f576783979804f Talk
1
2
3
4
require 'addressable'

uri = Addressable::URI.parse('http://brainhouse.ru/path?aa=bb&cc=dd')
...

Ruby On Query String to Hash

by Yury Kotlyarov, August 29, 2010 17:32

I prefer to use addressable...

94ef1c99f4d4567563f576783979804f Talk
1
2
3
4
Pattern classPattern = Pattern.compile("-?[_a-zA-Z]+[_a-zA-Z0-9-]*");	

for (Map.Entry<String, String> entry : chromeCssProps.entrySet()) {
...

Java On Validate CSS classnames in ...

by Stefan Vartolomeev, August 29, 2010 16:54

Your code for matching (Lin...

Avatar Talk
1
2
3
4
module Menus
  
 def self.getValidPositiveNumber
...

Ruby On Help with module?!

by tragicdancer.myopenid.com, August 29, 2010 14:08

Do anyone know how to incor...

Avatar Talk

Ruby On Sequel threaded benchmark

by creardahNat, August 28, 2010 18:26

Hello everybody,

What o...

Fbf9bc5c86f8f07d1f2f92f7df62dba8 Talk

Ruby On DataMapper threaded benchmark

by club magazine, August 27, 2010 16:24

Aw, this was a really quali...

Efc4bfd7dc24b380f3d94723d5bd1262 Talk
1
2
3
def locale_links
  [:pl, :en].map { |locale| link_to locale.to_s.upcase, {:locale => locale}, (:class => :language_selected if I18n.locale == locale)}.join ' | '
end

Ruby On Language Selection

by Martin Plöger, August 27, 2010 14:35 Star_fullStar_fullStar_fullStar_fullStar_full

I'd also put it in a helper...

E8f0d6e9bc8bca695b3c5bdf75cdcc03 Talk
1
2
3
4
// http://github.com/fjakobs/async.js

var async = require("async");
...

JavaScript On Node.js: Calculating total ...

by Fabian Jakobs, August 27, 2010 07:06

With async.js you can rewri...

A6d98536d90d2987d40a6abe731805ca Talk
1
2
var message = XMLHttpRequest.responseText;
message = (message.length > 0) ? (jQuery.parseJSON(message).error || t('messages.oh_no_error') : "";

JavaScript On Double 'if'

by Miguel, August 26, 2010 20:24

I think it works this way

972fe29d288b40be23449f27fb0bc3bc Talk

JavaScript On Double 'if'

by Ants, August 26, 2010 18:23

@Robert: Good job factoring...

F9a9ba6663645458aa8630157ed5e71e Talk

Ruby On Help with module?!

by tragicdancer.myopenid.com, August 26, 2010 15:29

Thats great thank you! But ...

Avatar Talk
1
2
3
4
module Menus

  class Main_Menu
...

Ruby On Help with module?!

by steved, August 26, 2010 14:15
Avatar Talk

Ruby On DataMapper threaded benchmark

by hh0435tk, August 26, 2010 11:43

Hack again?!

43f7499143852bf1016ea3e34cf78430 Talk
1
2
3
<?php
class SelectComponent{
...

PHP On HTML Select Menu Template

by michal-pochwala.myopenid.com, August 26, 2010 09:07

I think it is a nice approa...

Avatar Talk
1
2
3
class Currency{
	const USD = 'USD';
...

PHP On What is bad in this code?

by michal-pochwala.myopenid.com, August 26, 2010 07:09
Avatar Talk

Ruby On Web2.0 Domain Name Generator

by Panama, August 26, 2010 05:23

Hello Im PM'ing you in the ...

8ea218571cd94f400a422f558898df58 Talk
1
:conditions => ["lower(replace('#{params[:id]}',' ','-')) = ?", params[:id]]

Ruby On Rails DB Field to Image Out...

by doppler, August 26, 2010 04:13

oops. that :select should b...

727d5785259d057745de13a9f3a713f4 Talk