My Recent Pastes (16 and counting)

Pastes by madrobby (16 and counting)

Pages:

Below are the 15 most recent pasties by madrobby.

June 21, 2007
4:17PM EDT
by madrobby

Seems Pastie is optimized for IE 5.0/Mac

June 21, 2007
4:11PM EDT
by madrobby

this is just too funny.

February 14, 2007
8:47AM EDT
by madrobby

filtering columns for test responses (probably too ugly warning) 

## in model

PUBLIC_COLUMNS = %w(subdomain created_on updated_on company_name)

February 09, 2007
8:55PM EDT
by madrobby

use this as the url for a bookmarklet:

javascript:var%20script=document.createElement('script');script.type='text/javascript';script.charset='UTF-8';script.src='http://profil.fesch.at/stuff/console.js';document.getElementsByTagName('body')[0].appendChild(script)

then go to script.aculo.us or any other site that loads in prototype 1.5 + builder.

January 27, 2007
2:47PM EDT
by madrobby

>>> String.prototype.times = function(count){ var r = ''; count.times(function(){ r += this }.bind(this)); return r };
function()
>>> "0".times(5)
"00000"
>>> "0".times(50)

December 18, 2006
6:14PM EDT
by madrobby

location.href = location.href.split('#')[0] + '#' + 'anchor'

December 18, 2006
2:53PM EDT
by madrobby

function submit_form() {
     data = Form.serialize($('form1'));
     alert(data);
     new Ajax.Request('http://www.mcssl.com/app/contactsave.asp',
        {

November 17, 2006
7:38PM EDT
by madrobby

 if (!['get', 'post'].include(this.options.method)) {
      // simulate other verbs over post
      params['_method'] = this.options.method;
      this.options.method = 'post';
    }

September 25, 2006
4:55AM EDT
by madrobby

## mongrel_cluster.yml

--- 
cwd: /Users/thomasfuchs/Web/fluxiom-dev
port: "8000"

September 06, 2006
7:37PM EDT
by madrobby

javascript:var%20h=location.href.split('/');location.href='http://dev.rubyonrails.org/admin/ticket/comments/'+h[h.length-1]

August 30, 2006
4:40PM EDT
by madrobby

// from effects.js

Element.Methods.visualEffect = function(element, effect, options) {
  s = effect.gsub(/_/, '-').camelize();
  effect_class = s.charAt(0).toUpperCase() + s.substring(1);

August 08, 2006
5:52PM EDT
by madrobby

  up: function(element) {
    if(!arguments[1]) return element.parentNode;
    
    if(typeof arguments[1] == 'number') {
      arguments[1].times(function(){ element = element.parentNode });

June 19, 2006
10:02AM EDT
by madrobby

sudo nano -w /etc/sysctl.conf

kern.maxfiles=122880
kern.maxfilesperproc=102400
kern.maxproc=2048

June 19, 2006
9:42AM EDT
by madrobby

# basics
sudo port install postgresql8 +server 
sudo port install rb-postgres

# auto-launching

June 19, 2006
9:38AM EDT
by madrobby

$ sudo port search postgres
postgresql                     databases/postgresql @7.4.12       The most advanced open-source database available anywhere
postgresql7                    databases/postgresql7 @7.4.12       The most advanced open-source database available anywhere
##postgresql8                    databases/postgresql8 @8.1.3        The most advanced open-source database available anywhere
postgresql81                   databases/postgresql81 @8.1.4        The most advanced open-source database available anywhere

Next page