Skip to content

Instantly share code, notes, and snippets.

@omni5cience
omni5cience / MeetupBug.md
Created February 21, 2011 19:43
A description of a bug I'm having with meetup boards.

So I've noticed a problem with meetup boards: Whenever I want to post to a board I can type in a message, but can't submit it.

Below the Message field there's a <ul> with a single <li> that says You will only be required to do this once. which is particularly unhelpful.

If I try to submit the form I get an error that says You entered a bad response. Please try again. I also noticed that there is a <div> below that with some reCaptcha widget that starts out with display: none; set on it. If I remove that there is a broken reCaptcha that I'm guessing is supposed to be what I'm only required to do once.

Right now the only way I can get around this is to turn off javascript and use the iFrame backup. (For reference, this only seems to work occasionally.)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string># This uses the cli for the less compiler
# it should work with either the node module or the ruby gem (which is really old)
error: Error running command deploy
error: socket hang up
info: Nodejitsu not ok
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: ECONNREFUSED, Connection refused
error: at Socket._onConnect (net.js:601:18)
error: at IOWatcher.onWritable [as callback] (net.js:186:12)
info: Nodejitsu not ok
error: Error running command apps start
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: Attempt to start running application
error: at /root/nodejitsu/lib/nodejitsu/resources/app/controller.js:342:23
error: at /root/nodejitsu/lib/nodejitsu/resources/app/controller.js:310:5
error: at /root/nodejitsu/vendor/resourcer/lib/resourcer/resource.js:147:21
error: at loop (/root/nodejitsu/vendor/resourcer/lib/resourcer/resource.js:63:17)
error: at Function.runAfterHooks (/root/nodejitsu/vendor/resourcer/lib/resourcer/resource.js:65:10)
error: at /root/nodejitsu/vendor/resourcer/lib/resourcer/resource.js:144:22
net.js:560
socket._readWatcher.set(socket.fd, true, false);
^
TypeError: Cannot call method 'set' of null
at doConnect (net.js:560:23)
at net.js:717:9
at dns.js:192:30
at IOWatcher.callback (dns.js:74:15)
@omni5cience
omni5cience / Instructions
Created October 25, 2011 20:29
get a list of video urls from Stanford machine learning class while you're signed in
Go to the stanford machine learning class site and run that from the js console
It's helpful to go to the download videos page, because you need to get the video ids from there;
@omni5cience
omni5cience / jquery.js
Created November 1, 2011 16:17
Compiled jQuery from Git
/*!
* jQuery JavaScript Library v1.7pre
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
From 1aac15aadd1c6231854fc38dfa25f6d3ac920d4e Mon Sep 17 00:00:00 2001
From: Sam Epstein <same008@gmail.com>
Date: Thu, 3 Nov 2011 21:13:55 -0400
Subject: [PATCH] First pass at jQuery.later
---
src/core.js | 10 ++++++++++
test/unit/core.js | 13 +++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
# ruby
l=92.chr;eval s="s=s.dump[r=1..-2].gsub(/("+l*4+"){4,}(?!\")/){|t|'\"+l*%d+\"'%(t
.size/2)};5.times{s=s.dump[r]};puts\"# python\\nprint(\\\"# perl\\\\nprint(\\\\\\
\"# lua"+l*4+"nprint("+l*7+"\"(* ocaml *)"+l*8+"nprint_endline"+l*15+"\"-- haskel
l"+l*16+"nimport Data.List;import Data.Bits;import Data.Char;main=putStrLn("+l*31
+"\"/* C */"+l*32+"n#include<stdio.h>"+l*32+"nint main(void){char*s[501]={"+l*31+
"\"++intercalate"+l*31+"\","+l*31+"\"(c(tail(init(show("+l*31+"\"/* Java */"+l*32
+"npublic class QuineRelay{public static void main(String[]a){String[]s={"+l*31+"
\"++intercalate"+l*31+"\","+l*31+"\"(c("+l*31+"\"brainfuck"+l*64+"n++++++++[>++++
<-]+++++++++>>++++++++++"+l*31+"\"++(concat(snd(mapAccumL h 2("+l*31+"\"110"+l*31