This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(rdb:3) @controller.send :default_url_options | |
{:foo=>"bar"} | |
(rdb:3) new_post_path | |
"/posts/new" | |
(rdb:3) new_post_path(nil) | |
"/posts/new?foo=bar" | |
*HEAD EXPLODES* | |
https://rails.lighthouseapp.com/projects/8994/tickets/1251-default_url_options-cant-be-used-with-named-routes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -Os -fno-strict-aliasing -c native_support.c | |
make: gcc: Command not found | |
make: *** [native_support.o] Error 127 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Htmldoc <Formula | |
url 'http://ftp.easysw.com/pub/htmldoc/snapshots/htmldoc-1.9.x-r1629.tar.bz2' | |
homepage 'http://www.htmldoc.org/' | |
md5 'a5982321cadbadaef9ec59c10733b9df' | |
depends_on 'jpeg' | |
depends_on 'libpng' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require File.join(File.dirname(__FILE__), '..', 'environment') # note: not the rails env, my own thing | |
setup_bundler | |
setup_resque # boots redis, boots resque, connects them | |
require 'daemons' | |
require 'yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thebes:2.0.7 kunal$ tree | |
. | |
├── AUTHORS | |
├── COPYING | |
├── ChangeLog | |
├── README | |
├── bin | |
│ ├── zmq_forwarder | |
│ ├── zmq_queue | |
│ └── zmq_streamer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHILD NODE: | |
require 'rubygems' | |
require 'ffi-rzmq' | |
link = "tcp://127.0.0.1:5557" | |
context = ZMQ::Context.new 1 | |
socket = context.socket ZMQ::UPSTREAM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thebes:ruby-debug-base19-0.11.23 kunal$ rake clean ; rake | |
(in /Users/kunal/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.23) | |
rm -r tmp/x86_64-darwin10.3.0/ruby_debug/1.9.2 | |
cd ext | |
cd - | |
(in /Users/kunal/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.23) | |
mkdir -p tmp/x86_64-darwin10.3.0/ruby_debug/1.9.2 | |
cd tmp/x86_64-darwin10.3.0/ruby_debug/1.9.2 | |
/Users/kunal/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I. ../../../../ext/ruby_debug/extconf.rb | |
checking for rb_method_entry_t.body in method.h... no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-rw-r--r-- 1 kunal staff 5480 Aug 22 00:50 ../../../../ext/ruby_debug/Makefile | |
-rw-rw-rw- 1 kunal staff 14870 Aug 22 00:50 ../../../../ext/ruby_debug/breakpoint.c | |
-rw-r--r-- 1 kunal staff 39636 Aug 22 00:50 ../../../../ext/ruby_debug/breakpoint.o | |
-rw-rw-rw- 1 kunal staff 827 Aug 22 00:50 ../../../../ext/ruby_debug/extconf.rb | |
-rw-r--r-- 1 kunal staff 6632 Aug 22 00:50 ../../../../ext/ruby_debug/mkmf.log | |
-rwxr-xr-x 1 kunal staff 65504 Aug 22 00:50 ../../../../ext/ruby_debug/ruby_debug.bundle | |
-rw-rw-rw-@ 1 kunal staff 73843 Aug 22 00:50 ../../../../ext/ruby_debug/ruby_debug.c | |
-rw-rw-rw- 1 kunal staff 3994 Aug 22 00:50 ../../../../ext/ruby_debug/ruby_debug.h | |
-rw-r--r-- 1 kunal staff 140372 Aug 22 00:50 ../../../../ext/ruby_debug/ruby_debug.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bes:ruby-debug-base19-0.11.23 kunal$ rake compile | |
(in /Users/kunal/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.23) | |
cd tmp/x86_64-darwin10.3.0/ruby_debug/1.9.2 | |
make | |
gcc -dynamic -bundle -o ruby_debug.bundle breakpoint.o ruby_debug.o -L. -L/Users/kunal/.rvm/rubies/ruby-1.9.2-p0/lib -L. -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -lpthread -ldl -lobjc | |
i686-apple-darwin10-gcc-4.2.1: breakpoint.o: No such file or directory | |
make: *** °ruby_debug.bundle§ Error 1 | |
rake aborted! | |
Command failed with status (2): °make...§ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mergesort(array) { | |
console.log('Merge Sorting Array:'); | |
console.log(array); | |
var working_arrays = []; | |
var sorted_array = []; | |
var final_length = array.length; | |
var next_item; |
OlderNewer