macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby-lang
yugui is now known as yugui_zzz
jesly has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
bglusman_ has quit [Remote host closed the connection]
Taranis_ has joined #ruby-lang
Taranis has quit [Ping timeout: 248 seconds]
kgrz has joined #ruby-lang
ryanf has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
neocoin has joined #ruby-lang
achamian has quit [Ping timeout: 244 seconds]
jxie has quit [Ping timeout: 244 seconds]
jxie has joined #ruby-lang
achamian has joined #ruby-lang
achamian has quit [Remote host closed the connection]
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby-lang
yxhuvud has joined #ruby-lang
zmack has joined #ruby-lang
sepp2k has joined #ruby-lang
ryanf has quit [Quit: leaving]
ramonmaruko has quit [Remote host closed the connection]
ramonmaruko has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
wasnotrice is now known as zz_wasnotrice
burgestrand has quit [Quit: Leaving.]
nertzy has quit [Quit: This computer has gone to sleep]
macmartine has quit [Quit: macmartine]
xtagon has quit [Ping timeout: 264 seconds]
ryanf has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
Barkside is now known as rails
ruurd has quit [Quit: Leaving...]
toretore has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
scientes has quit [Quit: Leaving]
cantonic has quit [Quit: cantonic]
dfr|mac has quit [Remote host closed the connection]
shang` has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
banisterfiend has joined #ruby-lang
cantonic has joined #ruby-lang
Ark444 has joined #ruby-lang
tzvi has joined #ruby-lang
rushed has joined #ruby-lang
rue_XIV has joined #ruby-lang
sei has joined #ruby-lang
s0ber_ has joined #ruby-lang
postmodern has quit [*.net *.split]
tzvi|work has quit [*.net *.split]
Axsuul has quit [*.net *.split]
canton7 has quit [*.net *.split]
knu has quit [*.net *.split]
kalleth has quit [*.net *.split]
Torrieri has quit [*.net *.split]
sora_h has quit [*.net *.split]
indeterminate has quit [*.net *.split]
s0ber has quit [*.net *.split]
hinbody has quit [*.net *.split]
musl has quit [*.net *.split]
frem has quit [*.net *.split]
tris has quit [*.net *.split]
flebel has quit [*.net *.split]
L0rdShrek has quit [*.net *.split]
hackeron has quit [*.net *.split]
rue has quit [*.net *.split]
jorgenpt has quit [*.net *.split]
conceal_rs_ has quit [*.net *.split]
ged has quit [*.net *.split]
L0rdShrek has joined #ruby-lang
s0ber_ is now known as s0ber
hinbody has joined #ruby-lang
postmodern has joined #ruby-lang
kitallis has joined #ruby-lang
jorgenpt has joined #ruby-lang
veex has joined #ruby-lang
<veex>
how do I sort the created method data by most recent within the #index method?
hackeron has joined #ruby-lang
knu has joined #ruby-lang
ged has joined #ruby-lang
NeVeR_ has joined #ruby-lang
Ark444 has left #ruby-lang [#ruby-lang]
<bnagy>
wat?
piyush_ has joined #ruby-lang
ged has quit [Excess Flood]
segy_ has quit [Ping timeout: 245 seconds]
<banisterfiend>
bnagy: naggdogg!
kalleth has joined #ruby-lang
<bnagy>
sup banisterfiend
Axsuul has joined #ruby-lang
<bnagy>
veex: what "created method data" and #index on which class?
<veex>
I have a trips and a drivers controller. I can create a trip and it will save by adding the newly saved trip to the bottom of the list.
<banisterfiend>
bnagy: i'm not sure, i keep forgetting, sometimes my mind is skimming along the surface but then it slips into a crevasse and i cant get it out again for ages. Right now im sitting here in a stupor trying to remember what i was doing, i swear it was something important
<veex>
What do I need to add to the trips controller index or show method within Rails to sort those trips by adding the most recent to the top of the list instead :)
<bnagy>
veex: ok well to the extent that makes any sense at all
<bnagy>
a) if it's a rails question, #rubyonrails
<bnagy>
b) unshoft will add an item to the start of a list (Array etc)
<bnagy>
*unshift
<erikh>
unshaft
<erikh>
it's a bad mutha....
ged has joined #ruby-lang
<bnagy>
I wish I could, that would make debugging a lot easier
msaffitz has quit [Quit: Computer has gone to sleep.]
<bnagy>
find . -name \*.rb | xargs unshaft
flebel has joined #ruby-lang
<erikh>
heh
<bnagy>
my new hobby -> find . -name \*.rb | xargs ruby -wc | grep -v SYNTAX OK | wc -l -> 0
<bnagy>
it's fussy about brackets I never thought were important, it turns out
Torrieri has joined #ruby-lang
conceal_rs_ has joined #ruby-lang
<veex>
hmm bnagy
<bnagy>
oh, also ruby -wc breaks the pipeline if it finds an actual syntax error (as opposed to warning) which is retarded
ruurd has joined #ruby-lang
sora_h has joined #ruby-lang
frem has joined #ruby-lang
<bnagy>
banisterfiend: do some trolling, that will cheer you up
<bnagy>
I'm playing retarded ipad games instead of actually working, which is possibly worse :(
Z33K|Lux has quit []
<bnagy>
in between debugging stupid win64 alignment issues
tris has joined #ruby-lang
Torrieri has quit [Remote host closed the connection]
<bnagy>
in other news I am _almost_ ready to cough up for a sublime text license
tris has quit [Excess Flood]
solars has joined #ruby-lang
<banisterfiend>
bnagy: use emacs
<banisterfiend>
:P
<bnagy>
when hell freezes over
<bnagy>
VIM 4 LYFE MOFO
musl has joined #ruby-lang
<bnagy>
15:20 < bnagy> banisterfiend: do some trolling, that will cheer you up <-- oh I see what you did, there
<banisterfiend>
hehe
<banisterfiend>
trolling in my blood
<ruskie>
all editors suck... just use clay tablets
gnufied has joined #ruby-lang
<bnagy>
well that's all computers are, really
<bnagy>
just very fancy ones
tris has joined #ruby-lang
ramonmaruko has quit [Read error: Connection reset by peer]
msaffitz has joined #ruby-lang
segy has joined #ruby-lang
segy has quit [Changing host]
segy has joined #ruby-lang
apeiros_ has joined #ruby-lang
ramonmaruko has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
woollyams has joined #ruby-lang
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
gix has quit [Ping timeout: 248 seconds]
gnufied has joined #ruby-lang
gix has joined #ruby-lang
ryanf has quit [Quit: leaving]
francisfish has joined #ruby-lang
_br_ has joined #ruby-lang
_br_ has quit [Client Quit]
francisfish has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby-lang
rolfb has joined #ruby-lang
_br_ has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
zmack has quit [Remote host closed the connection]
_br_ has quit [Quit: Bye, thanks for all the fish.]
<darix>
i leave it to you which module of activesupport implements it
S2kx has quit [Ping timeout: 244 seconds]
<darix>
to find out ...
<vectorshelve>
darix: thanks
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
<bnagy>
vectorshelve: I thought you got banned?
<bnagy>
like, for this, for being an inconsiderate asshole and crossposting long after you've been told repeatedly it's wrong
Pip has left #ruby-lang ["Leaving"]
kvirani has joined #ruby-lang
thone_ has quit [Read error: Operation timed out]
vectorshelve has left #ruby-lang [#ruby-lang]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
shang` has quit [Remote host closed the connection]
workmad3 has quit [Quit: Lost terminal]
neoesque has quit [Quit: Bye!]
vesan has joined #ruby-lang
thone has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
Torrieri has quit [Ping timeout: 244 seconds]
gsav has quit [Quit: leaving]
gsav has joined #ruby-lang
future_chimp has quit [Quit: This computer has gone to sleep]
tjadc has joined #ruby-lang
canton7 has joined #ruby-lang
<andrewvos>
BURN
<banisterfiend>
andrewvos: sup
<andrewvos>
banisterfiend: hey dude
<banisterfiend>
what burned
kurko_ has joined #ruby-lang
gsav has quit [Ping timeout: 248 seconds]
tjadc_ has joined #ruby-lang
zmack_ has quit [Read error: Connection reset by peer]
zmack has joined #ruby-lang
hackeron has quit [Read error: Operation timed out]
hackeron has joined #ruby-lang
piyush_ has quit [Ping timeout: 264 seconds]
future_chimp has joined #ruby-lang
gsav has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
future_chimp has quit [Ping timeout: 246 seconds]
rolfb has quit [Quit: Leaving...]
Defusal has quit [Read error: Connection reset by peer]
Defusal has joined #ruby-lang
jxie has quit [Quit: leaving]
mistym has joined #ruby-lang
TheHunter_1039 has quit [Quit: TheHunter_1039]
TheHunter_1039 has joined #ruby-lang
workmad3 has joined #ruby-lang
heftig has quit [Quit: leaving]
<andrewvos>
banisterfiend: Was responding to what bnagy said.
stardiviner has quit [Ping timeout: 248 seconds]
tyre77 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
kith has joined #ruby-lang
mistym has joined #ruby-lang
stardiviner has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sailias has joined #ruby-lang
scampbell has joined #ruby-lang
dalekurt has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
vesan has joined #ruby-lang
future_chimp has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
JustinCampbell has joined #ruby-lang
unixabg has joined #ruby-lang
dontbecold_ has quit [Quit: leaving]
tyre77 has quit [Ping timeout: 245 seconds]
tyre77 has joined #ruby-lang
fromhet has joined #ruby-lang
tyre77 has quit [Ping timeout: 264 seconds]
tyre77 has joined #ruby-lang
bglusman has joined #ruby-lang
yugui_zzz is now known as yugui
bglusman has quit [Read error: Connection reset by peer]
bglusman has joined #ruby-lang
postmodern has quit [Quit: Leaving]
kvirani has quit [Remote host closed the connection]
piyush_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dv310p3r has joined #ruby-lang
agile has quit [Remote host closed the connection]
voker57 has quit [Remote host closed the connection]
unixabg has left #ruby-lang [#ruby-lang]
hynkle has joined #ruby-lang
heftig has joined #ruby-lang
yugui is now known as yugui_zzz
agile has joined #ruby-lang
yugui_zzz is now known as yugui
AlHafoudh has quit [Read error: Operation timed out]
kvirani has joined #ruby-lang
fgomez has quit [Quit: Lost terminal]
rolfb has joined #ruby-lang
rmascarenhas has joined #ruby-lang
gsav has quit [Ping timeout: 255 seconds]
kgrz has joined #ruby-lang
NeVeR_ has quit [Remote host closed the connection]
piyush_ has quit [Ping timeout: 246 seconds]
akira989 has joined #ruby-lang
kgrz has quit [Quit: kgrz]
outoftime has joined #ruby-lang
piyush_ has joined #ruby-lang
sailias has joined #ruby-lang
yugui is now known as yugui_zzz
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
savage- has joined #ruby-lang
d3vic3 has quit [Ping timeout: 265 seconds]
fgomez has joined #ruby-lang
d3vic3 has joined #ruby-lang
Pip has joined #ruby-lang
Pip has quit [Changing host]
Pip has joined #ruby-lang
<jMCg>
This works in Ruby 1.9: http://sprunge.us/QdAZ but on 1.8 I'm getting: TypeError: can't convert Fixnum into String
<matti>
jMCg: Better channel to ask about this is #puppet.
<matti>
jMCg: Or, Google Group "Puppet Users" :)
<matti>
jMCg: Show complete backtrace if possible.
<jMCg>
matti: I'm not getting one.
<matti>
jMCg: You can fire irb
<jMCg>
I don't have access to all servers yet :O
<matti>
jMCg: require 'facter'
<matti>
jMCg: dom.max_memory.to_i maybe? ;]
<matti>
Just a wild guess.
<jMCg>
Oi.
<matti>
;d
<matti>
But the format of this fact is going to be very weird.
<matti>
And hard to work with in Puppet.
<matti>
If you ineeed assemble it inside "guests"
macmartine has joined #ruby-lang
hinbody has quit [Ping timeout: 246 seconds]
<jMCg>
matti: I know, we need some custom reports, and figured that foreman is the best way to do that. And the simplest start is to put them in facts.
<matti>
jMCg: Fair enough. As there hardly is different way to get that sort of data in a structured manner.
<matti>
jMCg: But then, you could yield JSON there :)
<matti>
jMCg: Unless you just want it to show up in Foreman :)
<jMCg>
matti: I don't know, I'll have to see what gets us closest to where we want to be.
<matti>
jMCg: Also, you can test this fact in isolation. Put it in some directory and then: FACTERLIB=. facter -p
<matti>
jMCg: Sure thing.
judofyr has joined #ruby-lang
hinbody has joined #ruby-lang
yugui_zzz is now known as yugui
freedrull has left #ruby-lang [#ruby-lang]
rmascarenhas has quit [Quit: leaving]
judofyr has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
fgomez has quit [Quit: Lost terminal]
ttilley_off is now known as ttilley
Sambalero has joined #ruby-lang
asahi has joined #ruby-lang
seoaqua has quit [Quit: Leaving]
lsegal has joined #ruby-lang
<asahi>
hello, I'm getting a 500 => Net::HTTPInternalServerError, and I thought rescue Net::HTTPInternalServerError would rescue it, but that doesn't seem to be rescuing it
<banisterfiend>
asahi: i dont belieev u
<canton7>
asahi, code sample?
<asahi>
so I have begin; <some code>; rescue Net::HTTPInternalServerError; next; rescue => e; binding.pry; end; but the general rescue is rescuing it. and when I inspect the exception, I see that it's Net::HTTPInternalServerError
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
<banisterfiend>
asahi: do u have pry-stack_explorer installed? if so u can 'up' through the call stack to find the source of the error
dfr|mac has quit [Remote host closed the connection]
brunocoelho has joined #ruby-lang
<asahi>
is there a way for me to explicitly raise Net::HTTPInternalServerError for testing purposes?
outoftime has quit [Remote host closed the connection]
solars has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
gregmore_ has joined #ruby-lang
jxie has quit [Quit: leaving]
gregmoreno has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
tyre77 has quit [Quit: Leaving.]
jxie has joined #ruby-lang
hynkle has quit [Quit: Computer has gone to sleep.]
apeiros_ has joined #ruby-lang
hynkle has joined #ruby-lang
cjs226 has joined #ruby-lang
erics has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
Skif has quit [Ping timeout: 240 seconds]
coryf has joined #ruby-lang
kitallis has quit [Read error: Connection reset by peer]
piyush_ has quit [Ping timeout: 246 seconds]
zmack has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
ruurd has quit [Quit: Leaving...]
brianpWins has quit [Quit: brianpWins]
Criztian has quit [Remote host closed the connection]
kurko__ has joined #ruby-lang
<asahi>
If the exception I'm getting is 500 => Net::HTTPInternalServerError, I should rescue it with rescue Net::HTTPInternalServerError, is that correct? not sure if it matters that there's a 500 there
kurko_ has quit [Ping timeout: 244 seconds]
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
hynkle has quit [Quit: Computer has gone to sleep.]
<asahi>
actually, if I do exception.class, I get Mechanize::ResponseCodeError, so maybe I should be rescuing that instead
rowanu has joined #ruby-lang
dasil003 has joined #ruby-lang
<dasil003>
stupid rspec question...
<dasil003>
is there a way to add additional details to a failure?
<dasil003>
eg. I want to print out the line that is causing this spec to fail