<rking>
atmosx: You can learn enough Gentoo stuff in about an hour to catch up to what you can do on Debian. Then all the hours after that are learning the awesome stuff you can't do on Debian.
<seanstickle>
For instance, you can't really burn a lot of hours twiddling meaningless compilation settings in Debian.
<seanstickle>
At least, not as easily as in Gentoo.
<seanstickle>
:)
pecor has joined #ruby
ramblex has quit [Quit: ramblex]
QaDeS has quit [Ping timeout: 245 seconds]
Yugo has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
havenn has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 260 seconds]
<rking>
seanstickle: Plus you get to wait on compilation in between each twiddle.
<rking>
Bonus.
<seanstickle>
True
<rking>
Extra bonus if twiddling with some Haskell thing (which for some reason takes 80 times longer to compile than C)
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
dnyy has joined #ruby
dnyy has quit [Remote host closed the connection]
matled has quit [Remote host closed the connection]
matled has joined #ruby
albemuth has quit [Quit: Computer has gone to sleep.]
pdtpatrick has quit [Quit: pdtpatrick]
klaas has quit [Ping timeout: 244 seconds]
yugui_zzz is now known as yugui
pecor has quit [Remote host closed the connection]
pecor has joined #ruby
pecor has quit [Remote host closed the connection]
test__ has quit [Remote host closed the connection]
macmartine has quit [Quit: macmartine]
igaiga has quit [Remote host closed the connection]
Ontolog has quit [Read error: No route to host]
yugui is now known as yugui_zzz
mengu has quit [Ping timeout: 276 seconds]
Ontolog has joined #ruby
keymone_ has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
keymone has quit [Ping timeout: 264 seconds]
keymone_ is now known as keymone
klaas has joined #ruby
CheeToS has joined #ruby
jekhokie has joined #ruby
Sigma00 has quit [Ping timeout: 260 seconds]
kirun has quit [Read error: Connection reset by peer]
Sigma00 has joined #ruby
mpereira_ has quit [Ping timeout: 264 seconds]
perryh_away is now known as perryh
IrishGringo has joined #ruby
krz has joined #ruby
<t_j>
next issue, how can i make mysql use a streaming result set rather than try to pull the whole result set into ram?
perryh is now known as perry
iocor has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
KindOne has quit [Quit: ident]
Bosma has joined #ruby
bradhe has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
fowl has joined #ruby
nate76 has joined #ruby
yugui_zzz is now known as yugui
aantix has quit [Ping timeout: 240 seconds]
KindOne has joined #ruby
QaDeS_ has quit [Quit: Ex-Chat]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
blischalk has quit [Quit: blischalk]
mfridh has quit [Ping timeout: 256 seconds]
peterhil has joined #ruby
mockra has joined #ruby
pecor has joined #ruby
<pecor>
test
pecor has left #ruby [#ruby]
<rking>
Now I'll never know if the test passed. =(
blownapart has joined #ruby
<blownapart>
hi friends I used to be varreli remember?
xnm has quit [Ping timeout: 260 seconds]
savage- has quit [Remote host closed the connection]
<offby1>
you're in Witness Protection now?
<blownapart>
offby1: nice ! no I did have some troubles though and quit ruby study. now I forget much of it...
<blownapart>
offby1: thanks for writing I enjoyed this chatroom a lot.
blownapart has quit [Remote host closed the connection]
bricker88 has quit [Ping timeout: 245 seconds]
cgag has joined #ruby
Markvilla has quit [Quit: Markvilla]
thatRD has joined #ruby
<cgag>
i just installed ruby via rbenv, then did gem install bundler, but when I try to run bundle i get "/usr/local/bin/bundle:9:in `require': no such file to load -- rubygems (LoadError)"
tymat has joined #ruby
<cgag>
anyone dealt with this before?
tymat has left #ruby [#ruby]
wallerdev has quit [Quit: wallerdev]
Hanmac1 has joined #ruby
tintin has quit [Quit: tintin]
yugui is now known as yugui_zzz
Hanmac has quit [Ping timeout: 264 seconds]
albemuth has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
chriskk has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
benjammin891 has quit [Read error: Operation timed out]
apok has quit [Quit: apok]
havenn has joined #ruby
suborbital has joined #ruby
chriskk has left #ruby [#ruby]
jgrep has quit [Ping timeout: 255 seconds]
b26 has joined #ruby
mockra has quit [Remote host closed the connection]
adeponte has joined #ruby
mrsolo has quit [Quit: Leaving]
jgrep has joined #ruby
mockra has joined #ruby
IrishGringo has joined #ruby
Enekoos has quit [Remote host closed the connection]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
chson has joined #ruby
havenn has quit [Remote host closed the connection]
sailias has joined #ruby
mockra has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
Ontolog has joined #ruby
shadoi has joined #ruby
jekhokie has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
Ontolog has quit [Ping timeout: 240 seconds]
mockra has joined #ruby
ken_barber has quit [Ping timeout: 244 seconds]
thatRD has quit [Ping timeout: 252 seconds]
ken_barber has joined #ruby
havenn has joined #ruby
thatRD has joined #ruby
macmartine has joined #ruby
bradhe has joined #ruby
mockra has quit [Remote host closed the connection]
radic_ has joined #ruby
radic has quit [Disconnected by services]
radic_ is now known as radic
havenn has quit [Ping timeout: 245 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
igaiga has joined #ruby
perry is now known as perryh_away
chienpo has left #ruby [#ruby]
pu22l3r has joined #ruby
sailias has quit [Quit: Leaving.]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
igaiga_ has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
igaiga has quit [Ping timeout: 250 seconds]
macmartine has joined #ruby
ilyam has quit [Quit: ilyam]
Nisstyre has joined #ruby
igaiga has joined #ruby
pu22l3r has quit [Remote host closed the connection]
cbuxton has quit [Ping timeout: 272 seconds]
igaiga_ has quit [Ping timeout: 250 seconds]
eywu has quit [Ping timeout: 260 seconds]
werdnativ has quit [Ping timeout: 276 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
igaiga has quit [Ping timeout: 244 seconds]
igaiga has joined #ruby
mnaser has joined #ruby
iamlacroix has quit [Remote host closed the connection]
Yugo has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
pecor has joined #ruby
ePirat- has joined #ruby
pecor has quit [Remote host closed the connection]
macmartine has quit [Read error: Connection reset by peer]
urbann has quit [Remote host closed the connection]
macmartine has joined #ruby
wpaulson has joined #ruby
hunglin has joined #ruby
tk___ has joined #ruby
pu22l3r has joined #ruby
jimeh has quit [Ping timeout: 260 seconds]
uris has joined #ruby
Gestahlt has quit [Remote host closed the connection]
jxf has joined #ruby
cout has quit [Ping timeout: 276 seconds]
ben_m has quit [Quit: Leaving]
techazard has quit [Quit: Leaving]
moura has joined #ruby
moura has quit [Client Quit]
Ontolog has joined #ruby
frishi has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
frishi has quit [Client Quit]
lobak has joined #ruby
Ontolog has quit [Remote host closed the connection]
nikhil___ has quit [Read error: Connection reset by peer]
TheHunter_1039 has quit [Quit: TheHunter_1039]
linoj has quit [Quit: linoj]
macmartine_ has quit [Quit: macmartine_]
macmartine has joined #ruby
joast has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
akem has quit [Ping timeout: 264 seconds]
uc_ has joined #ruby
Faris1 has joined #ruby
Faris has quit [Read error: Connection reset by peer]
yannis has quit [Quit: yannis]
mockra has quit [Remote host closed the connection]
itnomad has quit [Quit: Leaving]
mockra has joined #ruby
trend has quit [Disconnected by services]
shadoi has quit [Quit: Leaving.]
akem has joined #ruby
raja has joined #ruby
raja is now known as Guest44010
ten00 has joined #ruby
Faris has joined #ruby
amh345 has joined #ruby
andrewhl has quit [Remote host closed the connection]
Faris1 has quit [Ping timeout: 260 seconds]
schovi has quit [Read error: Connection reset by peer]
eft has left #ruby [#ruby]
savage- has quit [Remote host closed the connection]
schovi has joined #ruby
ten00 has left #ruby ["Leaving..."]
ABK has joined #ruby
davidcelis has joined #ruby
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
niku4i has joined #ruby
rippa has joined #ruby
nari has joined #ruby
jgrep has quit [Quit: Leaving.]
wilmoore has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
Faris has quit [Ping timeout: 244 seconds]
flak has joined #ruby
flak is now known as Guest83218
araujo has quit [Quit: Leaving]
rippa has quit [Ping timeout: 272 seconds]
beilabs_ has quit [Ping timeout: 252 seconds]
beilabs has quit [Ping timeout: 252 seconds]
ddv has quit [Ping timeout: 245 seconds]
ddv has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
uc__ has joined #ruby
uc_ has quit [Ping timeout: 246 seconds]
perry is now known as perryh_away
xiaotian has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
beilabs has joined #ruby
ebanoid has joined #ruby
beilabs_ has joined #ruby
uc_ has joined #ruby
uc__ has quit [Ping timeout: 265 seconds]
atmosx has quit [Ping timeout: 276 seconds]
atmosx has joined #ruby
subbyyy has quit [Quit: Leaving.]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
macmartine has quit [Quit: macmartine]
berkes has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
cesario has joined #ruby
beilabs_ has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
berkes has quit [Client Quit]
beilabs has quit [Ping timeout: 260 seconds]
bambanx has joined #ruby
<bambanx>
damn i cannot format my numbers well i waas finding in google but i can fix , how i can do for work with my numbers like this example: 2 millions = 2000.000,00 or 6,45 , always using two decimals after the comma
AlbireoX`Laptop has quit [Remote host closed the connection]
lonre has joined #ruby
bubu\a has quit [Ping timeout: 245 seconds]
imami|afk is now known as banseljaj
cantonic has quit [Quit: cantonic]
lonre has quit [Client Quit]
yugui_zzz is now known as yugui
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
QaDeS has joined #ruby
cantonic has joined #ruby
<Paradox>
bambanx, use regex
mockra has quit [Remote host closed the connection]
LowKey has quit [Read error: Connection reset by peer]
<bambanx>
i dont kknow how Paradox
<Paradox>
and ActiveSupport has a lib for that too
igaiga has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
crazed has quit [K-Lined]
lteo has quit [K-Lined]
boredomist has quit [K-Lined]
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
thomasfedb has joined #ruby
boredomist has joined #ruby
Tick-Tock has joined #ruby
monkegjinni has joined #ruby
TheHunter_1039 has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
fayimora has joined #ruby
rakm has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
abionic has joined #ruby
eurbach has joined #ruby
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby
ABK has quit [Ping timeout: 246 seconds]
kaspernj has joined #ruby
<kaspernj>
Is there a lib that can make [1, 2, 4, 5] become [[1, 2], [2, 4], [4, 5]] based on this yield: ... {|a, b| if (b - a) > 2; return false; else; true}
keymone has quit [Read error: Connection reset by peer]
keymone has joined #ruby
keanehsiao has joined #ruby
bambanx_ has joined #ruby
<keanehsiao>
hi
<keanehsiao>
anybody use dalli as cache client?
<apeiros_>
kaspernj: each_cons + select
saschagehlich has joined #ruby
<keanehsiao>
anybody use dalli as cache client? is that possible to store object directly into memcached? or other client support it??
<apeiros_>
also, `if (b - a) > 2; return false; else; true end` --> `(b - a) > 2`
<kaspernj>
apeiros_, thanks. I will read up on that :-)
tiripamwe has quit [Ping timeout: 245 seconds]
<apeiros_>
actually, rather reject than select
<apeiros_>
with select, you'd have to invert the condition :)
<kaspernj>
apeiros_, would it also be possible to use that, if I wanted an additional result: [[1, 2], [2, 4], [4, 5]], disregarding the difference from the first and last element?
<keanehsiao>
anybody use dalli as cache client? is that possible to store object directly into memcached? or other client support it??
<kaspernj>
Oops
fayimora_ has joined #ruby
<apeiros_>
kaspernj: I don't understand that question.
<kaspernj>
As far as I can see, Enumerable#chunk only divides and doesnt do overlaps.
<apeiros_>
kaspernj: it makes less and less sense… 4-2 > 2 # => false
<cjs>
If I uncomment the commented-out code, it works.
<apeiros_>
why'd you have a split there?
jhunter has joined #ruby
tiripamwe has joined #ruby
<apeiros_>
kaspernj: or did you really mean b-a > 1 ?
<cjs>
s/coredumps/segfaults/
<kaspernj>
b would always be the current element in the array-iteration. a would be the previous (of the very first) element.
<keanehsiao>
anybody use dalli as cache client? is that possible to store object directly into memcached? or other client support it??
<kaspernj>
4 - 1 > 2 # => false, which is why 1 and 4 isnt in a grouping togehter.
<kaspernj>
Ooops I mean true
<kaspernj>
4 - 2 > 2 # => false, which is why there is a grouping of 2 and 4 (the second result).
<kaspernj>
The important thing is that all elements can overlap. Like the two first results, where 2 is used in both of them. Or the second and third result, where 4 is used in both.
<workmad3>
kaspernj: each_cons(2)
banseljaj is now known as imami|afk
<apeiros_>
kaspernj: I guess it's too early in the morning. I really don't get when you compare what to what. but it seems unlikely that there's a method around for you to do what you want. you'll probably have to use a plain each (or each_with_index) and write the complete algorithm
<workmad3>
oh, except you want to vary the length... that's odd
<apeiros_>
workmad3: yeah, that's what I initially suggested. but he way of comparing seems not to be covered by that.
<apeiros_>
and his explanations make less and less sense to me.
<workmad3>
kaspernj: also, even after that code, I have no idea wth you're doing...
<workmad3>
kaspernj: I suspect apeiros_ will be in the same position... but meh, if you're happy I guess :P
<apeiros_>
workmad3: tl;dr :)
<apeiros_>
gotta get something to eat first
<workmad3>
apeiros_: reading it doesn't help ;)
<banisterfiend>
any windows programmers here? how to write to the clipboard there?
<apeiros_>
stupid body…why does it need food and sleep?
<kaspernj>
workmad3, I am doing powersets. But I have to limit the amount of results, based on instead of one huge powerset I want to do multiple smaller ones grouped together by this principle.
<workmad3>
it's doing *something*... but that's all I can determine from the code
<workmad3>
powerset? isn't that the set of all subsets?
<kaspernj>
I am not really awake either... Still drunk from Germany vs Greece yesterday :-)
<workmad3>
that example, and that code, don't look like they do any form of powerset that I understand... :/
<kaspernj>
workmad3, this code is only to group array-elements together, and then do powersets based on them.
<workmad3>
meh, it now sounds arbitrary and I've stopped caring :)
<cjs>
So, any attempt to use STR2CSTR(interpreter_version) segfaults. I'm mystified. Help, anyone?
RainbowDashh has joined #ruby
dr0p has joined #ruby
<cjs>
Well, not any attempt. I can print out, e.g., ptr[0] or ptr[5] from that struct.
RainbowDashh has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
<workmad3>
cjs: heh, I searched for 'STR2CSTR ruby' and got a page of results saying it's been marked as obsolete since 1.8.4 or removed in 1.9.2 and replaced with StringValuePtr :)
<cjs>
Oh, jeez. That never occurred to me.
tvw has quit [Remote host closed the connection]
maletor has joined #ruby
henn1nk has left #ruby ["WeeChat 0.3.6"]
<cjs>
However, that also segfaults.
<workmad3>
cjs: next question... what is interpreter_version? is it a string, or some struct?
<cjs>
It's the result of rb_funcall(rb_cObject, const_get, 1, rb_str_new2("RUBY_VERSION"));.
<cjs>
and I've checked the len and ptr values in that structure, and they make sense.
pk1001100011 has joined #ruby
<cjs>
len is 5, and I can printf, with %c or %d, every ptr[0] through ptr[5].
<workmad3>
cjs: as rb_funcall gives you back a VALUE, and StringValuePtr is macro for a function that takes a volatile VALUE*
_md has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<workmad3>
bleh, actually forget that... the macro should get the pointer
bigblack has joined #ruby
<workmad3>
been a while since I properly looked at C code :)
hemanth has joined #ruby
<cjs>
workmad3: So it works fine if I extract out a minimal test case. Must be something weird in my other code.
<cjs>
Crap, so this is going to take hours to work out. I guess I'll do it on Monday.
<cjs>
workmad3: Thanks for your help.
bigblack has quit [Killed (idoru (Spam is off topic on freenode.))]
<workmad3>
cjs: heh, np
<workmad3>
cjs: not that I was much help... I mostly just paddle in the ruby source :)
ipoval has quit [Quit: ipoval]
Emmanuel_Chanel has joined #ruby
<Hanmac>
cjs is RUBY_API_VERSION_MAJOR not good enough?
freeayu has quit [Ping timeout: 245 seconds]
nflamel has quit [Quit: Leaving.]
<workmad3>
gotta love segfaults... always willing to surprise you :)
maletor has quit [Quit: Computer has gone to sleep.]
tiripamwe has joined #ruby
CheeToS has quit [Ping timeout: 255 seconds]
cjs has quit [Ping timeout: 248 seconds]
<bambanx_>
is possible pause a script and then continue ?
akem has quit [Ping timeout: 250 seconds]
freeayu has joined #ruby
rdg has joined #ruby
akem has joined #ruby
dekroning has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<dekroning>
good morning
<bambanx_>
hi
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
fayimora has quit [Quit: Busy…..zzzzz]
freeayu has quit [Ping timeout: 245 seconds]
niku4i has joined #ruby
ramblex has joined #ruby
rdg has quit [Quit: ttfn]
hoelzro|away is now known as hoelzro
freeayu has joined #ruby
hoelzro is now known as hoelzro|away
hoelzro|away is now known as hoelzro
niku4i has quit [Ping timeout: 244 seconds]
hoelzro is now known as hoelzro|away
* shevy
sends waves of segfaults over to workmad3
* shevy
reconsiders
* shevy
sends waves of segfaults over to EVERYONE!!!
jimeh has joined #ruby
hemanth has joined #ruby
* Hanmac
cp /dev/zero shevy
<Hanmac>
fear my Zero-Gun! XD
hemanth has quit [Read error: Connection reset by peer]
<banisterfiend>
Hanmac: have you seen 'the comfort of strangers' ?
<shevy>
oh no
<shevy>
another pervert movie
<banisterfiend>
Hanmac: or better yet, read the book?
<banisterfiend>
shevy: you've seen it?
<shevy>
no, but I also don't know what it is
<shevy>
last movie I saw lately was "nightmare on elm street" :)
hemanth has joined #ruby
bosphorus has joined #ruby
<Hanmac>
banisterfiend i readed >700p-books in less then 8h ... beat that
<banisterfiend>
Hanmac: which book? a picture book?
<Hanmac>
thats the only books you read, right?
hemanth has quit [Read error: Connection reset by peer]
callenb has joined #ruby
iocor has joined #ruby
<banisterfiend>
Hanmac: Yeah
blacktulip has quit [Remote host closed the connection]
<banisterfiend>
Hanmac: can i ask you a serious question now
* Hanmac
is not serious on weekend
snearch has joined #ruby
indian has quit [Ping timeout: 265 seconds]
<banisterfiend>
Hanmac: ok here's the question
<banisterfiend>
Hanmac: will there be kisses, or will your love be *rough*?
hemanth has joined #ruby
<bambanx_>
guys i have this in the begin of a while @text_venta_mia.label = "hola" and its work using wxruby , but if i move to the last of my while dont work , can be fo a garbage collector or some i dunno why
yugui_zzz is now known as yugui
banisterfiend has quit [Ping timeout: 244 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<bambanx_>
oh maybe can be cos i lost focus of my gui
banisterfiend has joined #ruby
<Hanmac>
bambanx_ maybe wxruby is broken :P
<bambanx_>
is weird
<bambanx_>
is not the focus
<bambanx_>
if i put on the begin of my while work but if i put below dont :/
<bambanx_>
hanmac which gui library u recommend me ? qt?
<banisterfiend>
bambanx_: what is your native language?
<bambanx_>
spanish why banisterfiend ?
yugui has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
<bambanx_>
you wanna send me take lesson of english before enter here? banisterfiend ?
<banisterfiend>
bambanx_: no, im just curious
hemanth has joined #ruby
<Hanmac>
bambanx_ rwx :P
<bambanx_>
some people here are very egocentric
QaDeS has quit [Quit: Ex-Chat]
hemanth has quit [Read error: Connection reset by peer]
<banisterfiend>
bambanx_: chile?
<bambanx_>
why banisterfiend ? what is your point?
hemanth has joined #ruby
<banisterfiend>
bambanx_: nothing, i was just curious
<bambanx_>
o si quieres hablamos en mi lenguaje? banisterfiend ?
<bambanx_>
es mas facil para mi
<bambanx_>
:)
Foxandxss has joined #ruby
<shevy>
@fw=@fwPt/@k
<shevy>
that's code I am looking at right now
<bambanx_>
lol
<bambanx_>
looks nice
Foxandxss has quit [Client Quit]
Foxandxss has joined #ruby
<shevy>
:(
<shevy>
the whole code is such a spaghetti mess
<Hanmac>
bambanx_ other people count?
<bambanx_>
Hanmac, uh? what u mean?
<Hanmac>
"some people here are very egocentric"
<bambanx_>
yeah
<bambanx_>
for m is very hard ask here sometimes in english , is should learn other language for study and speak here , and sometimes if i cannot talk my question very good or if is not a "advanced" question some people looks like mad
<bambanx_>
or sarcastic
hemanth has quit [Ping timeout: 260 seconds]
<bambanx_>
well it show his culture and education
freeayu has quit [Ping timeout: 246 seconds]
yugui has joined #ruby
<Hanmac>
banister has education?
<Tasser>
a little bit
Faris1 has joined #ruby
iamlacroix has joined #ruby
hemanth has joined #ruby
ABK_ has joined #ruby
Faris has quit [Ping timeout: 246 seconds]
Markvilla has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
freeayu has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
abionic has quit [Ping timeout: 244 seconds]
uc_ has quit [Ping timeout: 260 seconds]
hemanth has quit [Ping timeout: 260 seconds]
moosya has joined #ruby
bambanx_ has quit [Quit: Saliendo]
Faris1 has quit [Quit: Leaving.]
Faris has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
beilabs_ has quit [Ping timeout: 272 seconds]
tewecske has quit [Quit: Leaving.]
A124 has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
keymone has quit [Read error: Connection reset by peer]
keymone has joined #ruby
punkrawkR has joined #ruby
nirakara has joined #ruby
circlicious1 has joined #ruby
beilabs_ has joined #ruby
n1x has joined #ruby
visof has quit [Ping timeout: 260 seconds]
beilabs has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
frishi has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
saschagehlich has quit [Quit: saschagehlich]
resure has quit [Remote host closed the connection]
<circlicious1>
been comin back to ruby after quite sometime, got some questions, anyone awake?
resure has joined #ruby
bier has quit [Ping timeout: 265 seconds]
lxsameer has quit [Client Quit]
Faris1 has joined #ruby
hemanth has joined #ruby
Faris has quit [Read error: Connection reset by peer]
tiripamwe has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
<Tasser>
nah, all zombified, better get your shotgun
write has joined #ruby
write has quit [Quit: write]
<circlicious1>
what are the GEM_PATH used for ?
freeayu has joined #ruby
<shevy>
circlicious1 only real way is to ask your question, then idle ;)
A124 has left #ruby [#ruby]
cjs226 has joined #ruby
<circlicious1>
that i see in $ gem env
n1x has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<circlicious1>
what does this code do - gem 'gem_name' ? :/
hemanth has quit [Read error: Connection reset by peer]
<shevy>
circlicious1 I think this is bundler or something
<shevy>
it tries to require a gem perhaps?
hemanth has joined #ruby
<Hanmac>
shevy its when you want to say wich excactly version you want ... it does not replace require
<circlicious1>
i saw this code in a file, which is not a gemfile
<circlicious1>
um
<Hanmac>
and it works without bundler
<circlicious1>
i want to require this gem called 'slim'
<circlicious1>
Hanmac: what does it do exactly?
<Hanmac>
then you have the gem slim installed, require "slim" sould work
akem has quit [Ping timeout: 264 seconds]
akem has joined #ruby
<circlicious1>
Hanmac: i installed the slim gem in a directory that i specified by -i during gem install slim
bier has joined #ruby
timonv has joined #ruby
<circlicious1>
simply require 'slim' is not working, what should i do ?
hemanth has quit [Read error: Connection reset by peer]
umttumt has quit [Remote host closed the connection]
<shevy>
what ruby version you use circlicious1
hemanth has joined #ruby
<circlicious1>
1.9.2
<circlicious1>
but i guess server has 1.9.3
<Hanmac>
its not a version problem ... when he install it at a path rubygems cant found, its his problem
<circlicious1>
what should i be doing now?
tiripamwe has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<Hanmac>
you have require "slim" in your file? add ENV["GEM_PATH"] += "YOURPATH" before it
hemanth has joined #ruby
<Hanmac>
hm ok good idea but does not work
<circlicious1>
seems like ENV['GEM_PATH'] is empty
<circlicious1>
or nil
<shevy>
I dont know what is gem path
Faris1 has quit [Ping timeout: 256 seconds]
<shevy>
can you upload the result of "gem env"?
hemanth has quit [Read error: Connection reset by peer]
<shevy>
rubygems adds the gems/ subdir path to $: I think
<shevy>
and require 'gem_name-some-version' first requires "gems/gem_name-some-version.rb", which then includes the rest of the files belonging to that gem
<shevy>
circlicious1 did you install wirble yet?
<shevy>
it's more a test to see if you can use gems
<shevy>
moment, I am trying to find all wirble.rb right now
<shevy>
what I know is that rubygems modifies require
<circlicious1>
ok fine
<circlicious1>
i guess thats how it works
<circlicious1>
anyway now, why cant it load slim :(
krusty_ar has joined #ruby
uc has joined #ruby
schovi has joined #ruby
fayimora has joined #ruby
<shevy>
ok wirble.rb is here... /Programs/Ruby/1.9.3p194/lib/ruby/gems/1.9.1/cache/wirble-0.1.3/lib/wirble.rb /Programs/Ruby/1.9.3p194/lib/ruby/gems/1.9.1/gems/wirble-0.1.3/lib/wirble.rb
<shevy>
module PDF_Bookmark; def self.extend_object(o); o.instance_eval('@outlines,@OutlineRoot=[],0'); super(o); end
<shevy>
Hanmac, please look at this ^^^
<apeiros_>
banisterfiend: wtf? :)
<shevy>
I've never seen such use of instance_eval before
<circlicious1>
pdf ...
sailias has joined #ruby
<circlicious1>
well, i usually get those job done in PHP :D :P
<shevy>
hehe
<shevy>
hopefully I can stay way from PHP
<circlicious1>
Ruby/node when i need to code for fun and good time
<circlicious1>
or do something that might not be cool with PHP
<circlicious1>
although i am kinda getting away from PHP these days
<circlicious1>
just not coding it much
<Hanmac>
shevy o.instance_variable_set ?
mvm3012 has left #ruby [#ruby]
<circlicious1>
mostly Javascript
<circlicious1>
Hanmac: do u think u could try quickly installing slim in a custom folder and not the global ones or home one and see whether rewuire works for you or not?
<Hanmac>
i did not try it
<Altman>
Hi, Does any one know why it takes so many memory while I deploy my rails app into tomcat using warbler?
<shevy>
Hanmac hehehe
<circlicious1>
Hanmac: i know its too much to ask probably but ust if you would like to try
<shevy>
Hanmac yeah but that guy used instance_eval
<circlicious1>
although i have created a gemrc file that has my path, even then it doesnt work :/
<Hanmac>
circlicious1: you could ask banisterfiend
<Hanmac>
shevy: and he use the bad variant of instance_eval ... it has an second form too
callenb has quit [Ping timeout: 260 seconds]
callenb63 has joined #ruby
<banisterfiend>
circlicious1: i take your use of irb as a personal insult, and refuse to help u :P
callenb63 has quit [Read error: Connection reset by peer]
<banisterfiend>
(jk)
jimeh has joined #ruby
<banisterfiend>
(but still not helping, but more out of laziness)
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
<circlicious1>
banisterfiend: i said irb because tits q uicker wway compared to creating a file and writing the code out there
krusty_ar_ has joined #ruby
<circlicious1>
if you could give my problem 2mins, i would really be obliged
krusty_ar has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
thatRD has joined #ruby
ABK_ has joined #ruby
KL-7 has joined #ruby
atmosx has quit [Remote host closed the connection]
RainbowDashh has joined #ruby
Eldariof-ru has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
benjammin891 has joined #ruby
atmosx has joined #ruby
Faris has quit [Quit: Leaving.]
amacgregor_osx has joined #ruby
Faris has joined #ruby
nwest has joined #ruby
ABK_ has quit [Ping timeout: 260 seconds]
<nwest>
Is there a good workaround for require_relative type behavior on 1.8.7 in a nested folder? (I'm trying to get RSpec working)
<nwest>
I'm trying to avoid messing with $LOAD_PATH
jgrevich has joined #ruby
<Hanmac>
get rib of mostly dead software
charliesome has joined #ruby
<circlicious1>
whats a good way to execute a command and pass some data to it's stdin in ruby ?
<banisterfiend>
Hanmac: hey how do i extract "binding_of_caller.c" from this: "/Users/john/.rvm/gems/ruby-1.9.2-p180/gems/binding_of_caller-0.6.7/ext/binding_of_caller/binding_of_caller.c"
<banisterfiend>
i just want the file name
<circlicious1>
Pathname.new(path).basename ?
<circlicious1>
maybe File.basename(path)
<circlicious1>
nvm
<banisterfiend>
ah yes, basename
<banisterfiend>
thanks
<circlicious1>
banisterfiend: now time to help me :D
ben_m has joined #ruby
thatRD has quit [Quit: leaving]
thatRD has joined #ruby
mpereira has joined #ruby
<banisterfiend>
circlicious1: no deal :P
b26 has quit [Ping timeout: 240 seconds]
Guest33170 has joined #ruby
amacgregor_osx is now known as AllanMacGregor
Faris has quit [Read error: Connection reset by peer]
explody has quit [Remote host closed the connection]
Faris has joined #ruby
<circlicious1>
:(
explody has joined #ruby
m_3 has quit [Quit: leaving]
sepp2k has quit [Remote host closed the connection]
m_3 has joined #ruby
m_3_ has joined #ruby
rakm has joined #ruby
fayimora has joined #ruby
SeySayux has quit [Ping timeout: 276 seconds]
shevy has quit [Ping timeout: 272 seconds]
samuel02 has quit [Remote host closed the connection]
SeySayux has joined #ruby
qwerxy has quit [Quit: offski]
ZachBeta has joined #ruby
SeySayux has quit [Read error: Operation timed out]
qwerxy has joined #ruby
schovi has quit [Remote host closed the connection]
nwest has quit [Quit: Computer has gone to sleep.]
Faris has quit [Quit: Leaving.]
Faris has joined #ruby
wallunit has joined #ruby
mickn has joined #ruby
krz has quit [Read error: Connection reset by peer]
Gavilan has quit [Ping timeout: 245 seconds]
nari has joined #ruby
uc has quit [Ping timeout: 246 seconds]
uc has joined #ruby
shevy has joined #ruby
Gavilan has joined #ruby
Guest33170 has quit [Ping timeout: 248 seconds]
SeySayux has joined #ruby
<circlicious1>
how do you pipe data to a process's stdin?
Gavilan has quit [Ping timeout: 248 seconds]
uc_ has joined #ruby
uc has quit [Ping timeout: 260 seconds]
niklasb has joined #ruby
yugui is now known as yugui_zzz
tvw has joined #ruby
rdg has joined #ruby
Faris1 has joined #ruby
chessguy has quit [Remote host closed the connection]
iori has joined #ruby
Zespre has joined #ruby
thatRD has quit [Quit: leaving]
Faris has quit [Ping timeout: 248 seconds]
snearch has quit [Quit: Verlassend]
Gavilan has joined #ruby
deanh has joined #ruby
azm has joined #ruby
thatRD has joined #ruby
benjammin891 has quit [Remote host closed the connection]
neku has joined #ruby
Guest33170 has joined #ruby
thatRD has quit [Client Quit]
Zespre has left #ruby [#ruby]
luckman212 has joined #ruby
Gavilan has quit [Ping timeout: 264 seconds]
Gavilan has joined #ruby
thatRD has joined #ruby
<circlicious1>
man
<circlicious1>
shevy: there?
yeggeps has quit [Ping timeout: 250 seconds]
lkba has quit [Ping timeout: 245 seconds]
resure has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]
Faris has joined #ruby
jonathanwallace has joined #ruby
resure is now known as resure_away
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
Morkel has quit [Quit: Morkel]
iori has quit [Remote host closed the connection]
mickn has quit [Quit: Leaving]
Guest33170 has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
miho has quit []
qwerxy has quit [Quit: offski]
jonatha__ has joined #ruby
krz has joined #ruby
jonatha__ has quit [Read error: Connection reset by peer]
ZachBeta has quit [Quit: Computer has gone to sleep.]
deanh has quit [Quit: deanh]
jonathanwallace has quit [Ping timeout: 272 seconds]
bluenemo has quit [Remote host closed the connection]
Guest33170 has quit [Ping timeout: 244 seconds]
regularfry has joined #ruby
andrewhl has joined #ruby
fantazo has joined #ruby
baroquebobcat has joined #ruby
jeff_sebring has joined #ruby
jeff_sebring has quit [Client Quit]
jeff_sebring has joined #ruby
neku is now known as neku|away
workmad3 has joined #ruby
samuel02 has joined #ruby
<shevy>
circlicious1 got disconnected... could not read the last things that were sent
KL-7 has quit [Quit: Leaving]
mnaser has quit [Ping timeout: 240 seconds]
SeanLazer has quit [Quit: SeanLazer]
<circlicious1>
shevy: no worries
mnaser has joined #ruby
<circlicious1>
thanks bnagy workin gr8, <3 ruby
n1x has joined #ruby
rmc3 has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
k_89 has joined #ruby
<k_89>
hey .. does $ have a special meaning in ruby ?
<k_89>
can't really google that one up properly
yannis has joined #ruby
<Hanmac>
k89 $variables are global variables
jonathanwallace has joined #ruby
<apeiros_>
there's also a couple of special variables that partially behave like globals
deanh has joined #ruby
<k_89>
k .. what would be the difference between a $var and a normal var ... if i just define one of each in a script, without any module, class and all ... will they behave similarily?
<circlicious1>
if i define a variable and then call a class method to which i pass a block, is that var not going to be accessible insid ethe block?
<Hanmac>
k_89 read a ruby beginner tutorial
<regularfry>
They differ in scope, but are otherwise the same
workmad3 has quit [Ping timeout: 240 seconds]
<k_89>
Hanmac, k .. ( have read a few but didn't find anything about $variables .. i think googling $ variables should do )
<circlicious1>
1 more thing, when codez is a heredoc, it doesnt seems to work, thats why i used \n" + :/
Faris has joined #ruby
tiripamwe has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
<regularfry>
circlicious1: replace the call to slimrb with "cat", and see if you get newlines
<circlicious1>
popen3("cat") hmm
<circlicious1>
just givesme the first line
<circlicious1>
hm, maybe it doesnt have newlines at all
<circlicious1>
but when i execute the command and pipe in data via stdin, they do have newlines
<regularfry>
oh, I see - it's gets. IO#gets splits on line boundaries.
<regularfry>
You want #read.
<circlicious1>
installing the gem is gem install slim if you would like to check
jonathanwallace has joined #ruby
<circlicious1>
regularfry: cat has newlines yeh
tiripamwe has quit [Ping timeout: 245 seconds]
<circlicious1>
ok, now my code has newlines too, the problem was passing the command as an array, weird
<circlicious1>
why so?
uc has quit [Ping timeout: 264 seconds]
uc has joined #ruby
nateberkopec has joined #ruby
Guest33170 has quit [Ping timeout: 264 seconds]
Faris has quit [Ping timeout: 246 seconds]
cuppsy has joined #ruby
resure has quit [Read error: Connection reset by peer]
resure has joined #ruby
williamcotton has quit [Quit: williamcotton]
lkba has joined #ruby
deanh has quit [Quit: deanh]
workmad3 has joined #ruby
QaDeS has joined #ruby
deanh has joined #ruby
deanh has quit [Client Quit]
circlicious1 has quit [Quit: Lost terminal]
baroquebobcat has quit [Quit: baroquebobcat]
samuel02 has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 244 seconds]
mrgreenfur has quit [Quit: mrgreenfur]
CheeToS has joined #ruby
delinquentme has joined #ruby
fayimora has joined #ruby
<delinquentme>
in the context of testing... whats the difference between failures and errors
liuchong has joined #ruby
<regularfry>
A failure is what you're testing for. An error is when something went wrong you weren't expecting.
<delinquentme>
noted.
mikeycgto has joined #ruby
wallerdev has joined #ruby
umttumt has joined #ruby
<delinquentme>
ooc is it normal for tests needing to be run with permissions?
<delinquentme>
Like i've got a number of failures based on permission access
<delinquentme>
I've just never seen such a thing
<regularfry>
Not if they're unit tests, that should be abstracted away
<regularfry>
Depending on what you're testing, I could believe integration tests needing special permissions
Black-Heaven has joined #ruby
<Black-Heaven>
Hi all
subr00t has joined #ruby
<regularfry>
hi
<delinquentme>
noted!
<delinquentme>
thanks regularfry
atmosx has quit [Ping timeout: 276 seconds]
<offby1>
/whois largeshake
wallerdev has quit [Client Quit]
fayimora has quit [Quit: Be back in a gifii]
<regularfry>
No worries :-)
atmosx has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
raikd has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<Black-Heaven>
Is some of you use Ruby to do standalone GUI applications and / or multi-plateform applications? If yes, what tools do you use? For your help, in advane, thanks.
Guest33170 has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
<delinquentme>
Black-Heaven, sounds like .. rails
ipoval has joined #ruby
moshee has joined #ruby
<Hanmac>
Black-Heaven: i use rwx, my own wxRuby port ... wx works on most every system
jakobus has joined #ruby
Faris has joined #ruby
macmartine has joined #ruby
yannis has quit [Quit: Bye!]
Guest33170 has quit [Ping timeout: 272 seconds]
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
nari has quit [Ping timeout: 240 seconds]
cuppsy has quit [Read error: Operation timed out]
<Black-Heaven>
delinquentme: rails... for GUI?
<Black-Heaven>
Hanmac: ok, thanks
socomm has quit [Quit: WeeChat 0.3.7]
<delinquentme>
Black-Heaven, so If you want an outstanding GUI HTML / CSS is a really solid option
<delinquentme>
Im not sure how it works in objective - c thats used in the UIs for IOS but if you're looking at a GUI for ruby
framling has joined #ruby
<delinquentme>
I'd say go with HTML and run rails
Guest33170 has joined #ruby
<Black-Heaven>
In fact my users wants to have an executable file which work out of the box, with nno installation, etc.
Ste11a has quit [Quit: see you]
Faris1 has joined #ruby
Spooner has joined #ruby
Jackneill has quit [Ping timeout: 260 seconds]
<Paradox>
loop { print "Look around you. " }
selvakumaran has joined #ruby
mikepack has joined #ruby
sam113101 has quit [Read error: Connection reset by peer]
<delinquentme>
and i've verified that the gem is in the bundle file
<delinquentme>
however I get an error when I attempt to erquire it
<delinquentme>
require **
<delinquentme>
anyone have a guess what the issue miht be?
Sheehan has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 260 seconds]
CoverSlide has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
Sheehan has joined #ruby
<jonathancutrell>
delinquentme: Are you using RVM?
<delinquentme>
jonathancutrell, I am
prometheus has joined #ruby
<jonathancutrell>
delinquentme: Probably something with that.
<jonathancutrell>
delinquentme: Where is the gem installed?
<jonathancutrell>
delinquentme: make sure your gem path that is loaded when you run rackup or whatever includes the gem you're requiring
<delinquentme>
good call
<delinquentme>
gem list doesnt show the mofoin gem
<delinquentme>
why.
<workmad3>
delinquentme: is it a git gem?
lxsameer has quit [Quit: Leaving]
<delinquentme>
nope
<jonathancutrell>
delinquentme: I've had issues like this before.
ZachBeta has quit [Quit: Computer has gone to sleep.]
<workmad3>
delinquentme: did it install to a path?
<jonathancutrell>
delinquentme: Make sure the ruby you are launching on has the right gemset.
<workmad3>
delinquentme: rather than system?
<delinquentme>
So it looks like whats happening is that...
<delinquentme>
I've defined a non-standard Gemfile path
<jonathancutrell>
delinquentme: Did you try doing a gem install again?
<delinquentme>
assigned it with: export BUNDLE_GEMFILE=~/rails_projects/bioruby/gemfiles/Gemfile.travis-jruby1.9
<delinquentme>
and it looks like bundle install
<delinquentme>
was not installing the correct Gemfile
<jonathancutrell>
makes sense.
<delinquentme>
this looks hopeful
<jonathancutrell>
delinquentme: There are some definite positives to using the default path for gem sets.
dkissell_ has joined #ruby
<jonathancutrell>
delinquentme: but you can manually install gems to gem sets, I'm sure fairly easily.
<delinquentme>
yeah im troubleshooting a particular continuous integration issue
<workmad3>
delinquentme: ah, and you'd just updated your normal Gemfile, not the exported one? :)
<delinquentme>
and whats busting is the travisci integration
Jake232 has quit [Quit: Computer has gone to sleep.]
<workmad3>
delinquentme: or is it that bundle install ignored BUNDLE_GEMFILE?
ananthakumaran has joined #ruby
<delinquentme>
IDK im totally new to the idea of setting a path for the gemfile like that
<delinquentme>
I've always just used the defaults
dkissell has quit [Ping timeout: 272 seconds]
dkissell_ is now known as dkissell
vlad_starkov has joined #ruby
<workmad3>
delinquentme: well, if it's not picking up the env variable, can you get travis to generate a .bundle/config file before doing a bundle install?
<workmad3>
delinquentme: because you can put a BUNDLE_GEMFILE: key in there too
<workmad3>
delinquentme: hmm, what happens if you do 'sudo gem list' ?
<workmad3>
delinquentme: oh... are you using rvm?
<delinquentme>
yeah
<workmad3>
delinquentme: heh
<delinquentme>
gem list shows it
<workmad3>
delinquentme: don't use 'sudo'
<delinquentme>
yeah :D
<workmad3>
delinquentme: use 'rvmsudo'
<delinquentme>
bundler (1.0.21 ruby)
<delinquentme>
@_o
<workmad3>
delinquentme: sudo cleans the environment
<workmad3>
delinquentme: so all the RVM paths basically get thrown away... rvmsudo exists to keep the rvm environment intact
<delinquentme>
semi-noted
<delinquentme>
ok so i've got both bundler as well as libxml-jruby
<workmad3>
delinquentme: that said... if you need to run your test scripts with sudo, I'd say you're doing something wrong :P
<delinquentme>
perhaps theres an issue that I should be using a jruby specific bundler package?
<delinquentme>
if there is such a thing
blacktulip has joined #ruby
<workmad3>
delinquentme: bundler is pure-ruby, I believe
<workmad3>
delinquentme: works across the board
<delinquentme>
workmad3, yeah these are ... some kind of higher level tests
<delinquentme>
noted.
<delinquentme>
I guess yeah its just locating packages
<delinquentme>
so yeah that shouldn't matter
daym0n has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
<delinquentme>
FMA
<delinquentme>
added a require 'rubygems' and the require 'bundler/setup'
<delinquentme>
still breaks
CoverSlide has joined #ruby
Niamkik has quit [Remote host closed the connection]
selvakumaran has quit [Ping timeout: 250 seconds]
<deryl>
why is anyone using rvmsudo anyways? or is this part of a wrappered job or something?
linoj has quit [Quit: linoj]
<daed>
i don't recall ever having to use rvmsudo
<daed>
for anything thus far
<deryl>
using rvmsudo isn't needed for either multi-user installs or per-user installs as long as the user is in the rvm group and it shows in 'id' or 'groups' command
<daed>
^
<daed>
that's usually my first step
<deryl>
and using rvmsudo OR sudo during normal operations will screw up your install/permissions
<deryl>
rvmsudo usage is a very very very rare thing.
<daed>
when would it be required? i haven't run into that case yet
<daed>
and i've got tons of production boxes/apps out there
<daed>
boxes that i don't even have sudo on
olrrai has joined #ruby
<deryl>
sometimes if you're running from one rvm user and trying to run a script for another rvm'd user AS that user
<deryl>
or trying to inject into a sudo session for something else
<daed>
that sounds pretty crazy
<deryl>
but those are EXTREMELY rare situations
CoverSlide has quit [Ping timeout: 245 seconds]
<jonathancutrell>
using datamapper, is there an easy way to do validates_presence_of => [:field_one,:field_two] ?
<jonathancutrell>
(where field one and field two are required)
<delinquentme>
yeah I was about to say I've never used rvmsudo before
b26 has joined #ruby
<deryl>
also hoping and praying he installed using our curl -L get.rvm.io | bash -s stable and NOT using the ruby-rvm package
TheBaptis has joined #ruby
<deryl>
we don't support that in any way shape or form. no distribution's pacakges are supported. they break left and right
<deryl>
classic signature is $rvm_path contains /usr/share/rvm
<deryl>
err
<deryl>
classic signature is $rvm_path contains /usr/share/ruby-rvm OR /usr/share/rvm
RainbowD_ has joined #ruby
<deryl>
rvm project never installs under anything but /usr/local/rvm or $HOME/.rvm unless the user manually changes or sets the $rvm_path var before install
RainbowD_ is now known as it
<Paradox>
rbenv > rvm (In my personal opinion)
it is now known as in
<deryl>
as long as you state its personal opinion, i'm fine with that
<Paradox>
i wont talk your ear off
<daed>
i've used both, both seem to work fine for me
<Paradox>
i feel everyone should chose the tool they prefer
<Hanmac>
up-to-date system ruby > other
<Paradox>
Hanmac, 1.9.3-p194 isnt up to date?
<deryl>
Hanmac: again, personal opinion
<jonathancutrell>
Perl beats all things everywhere, always.
<Paradox>
ruby is perl++
<Paradox>
lol
<deryl>
jonathancutrell: woot!
<daed>
perl makes me want to vomit.
<Hanmac>
Paradox i have 1.9.3-p194 as system package
<Paradox>
Hanmac, so do i
<Paradox>
brew install ruby
<deryl>
if you're running sid or packaged it yourself.
* Hanmac
has quantal
<deryl>
Paradox: well no, he means as in an OS packaged system ruby like /usr/bin/ruby
<Paradox>
but i still use rbenv for the other shit it does right
<deryl>
Paradox: i've been tending to stay out of the rbenv vs rvm fights as I work onthe rvm project.
<Paradox>
deryl, both tools are very awesome
<Paradox>
far better than python's counterparts
krusty_ar_ has quit [Read error: Connection reset by peer]
<deryl>
hehe
<Paradox>
i just prefer rbenv, doesn't mean rvm sucks
<Paradox>
just like i prefer haml, doesn't mean erb sucks
<Paradox>
but there is one case
<deryl>
Paradox: unfortunately you're one of the few rbenv users that speaks up, that uses that common sense
<Paradox>
sass is good, and less most definitely sucks
jonathancutrell_ has joined #ruby
<jonathancutrell_>
Awful internet.
krusty_ar has joined #ruby
<jonathancutrell_>
Hopefully I didn't miss anything fun.
<Paradox>
nah
<deryl>
most of the rbenv users we run into just regurgitate sstephenson's bullshit lies he spread when he started the project, can't put up when confronted with technical facts on implementation differences, and other bullshit. leaves a really bad taste in the mouth
<Paradox>
we're just not-arguing about which isnt better, rbenv or rvm
<deryl>
good to see at least one rbenv user using their grey matter for themselves :)
<deryl>
hahahaha
<deryl>
i just saw that
jonathancutrell has quit [Ping timeout: 260 seconds]
jonathancutrell_ is now known as jonathancutrell
<Paradox>
oh i hate the "i read a blog that said 'derp' so thats now my opinion!" notion in sperglords
<jonathancutrell>
Paradox: ha.
<Hanmac>
cjs226 do you still have a problem with ruby version?
<Paradox>
thats largely whats responsible for the "hurr ruby iz sloo" meme :(
<jonathancutrell>
Paradox: indeed.
<deryl>
yeah n shit :/
<Paradox>
whats funny is how mad they get when i show them shootout.debian's programming language benchmarks
<jonathancutrell>
deryl Paradox Unfortunately, JavaScript beats ruby with a stick.
chessguy has quit [Remote host closed the connection]
<Paradox>
jonathancutrell, fortran beats all of them
<deryl>
jonathancutrell: doh!
<deryl>
COBOL!
<Paradox>
doesn't mean i want to program in it
<jonathancutrell>
Paradox: truth.
<Paradox>
here's what my opinion is
<Paradox>
you have a fixed amount of "speed"
<Paradox>
you can either have that at runtime
<Paradox>
or during coding
<Paradox>
as one gets faster, the other gets slower
iocor has quit [Quit: Computer has gone to sleep.]
<jonathancutrell>
Paradox: that's certainly an opinion.
<Paradox>
now theres always room for optimization
<jonathancutrell>
deryl: Cobol.
<Paradox>
and yarv is amazing
<Paradox>
but…
freezey has joined #ruby
<Paradox>
i still prefer a language that doesn't derp
<jonathancutrell>
Paradox: Well, if I don't know Ruby, and I started on CoffeeScript, then...
pk1001100011 has quit [Ping timeout: 255 seconds]
MrGando has joined #ruby
<jonathancutrell>
Paradox: Node will win on both sides.
<Paradox>
which is why i dont write node.js
<jonathancutrell>
Paradox: fair.
<Paradox>
node kind of derps
<Paradox>
heh
<jonathancutrell>
Paradox: really if we're doing web apps
<jonathancutrell>
Paradox: The speed differences are negligible on modern servers.
<Paradox>
exactly
<Paradox>
everything is cached anyway
<jonathancutrell>
Paradox: so who gives a crap. Run PHP for all I care. HTTP is your bottleneck.
in has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
<jonathancutrell>
daed COBOL IS the web.
<daed>
true
<Paradox>
the thing that makes me chuckle is the sperglords in r/programming on reddit who will jizz themselves over anything haskell related
<jonathancutrell>
Anything that doesn't run it is boring.
<daed>
there's a lot of ruby hate on r/programming
<daed>
i don't get it
<Hanmac>
Paradox: and php "dont know whats wrong" :P
<jonathancutrell>
Paradox: lisp dog. lisp.
<Paradox>
jonathancutrell, which dialect?
<deryl>
dawg!
<jonathancutrell>
Paradox: exactly.
<daed>
yeah boiii
kevinbond has joined #ruby
<jonathancutrell>
deryl: daugh.
<deryl>
hehe
<Paradox>
the main reason r/programming hates ruby, is what i call the "success factor"
<Paradox>
and thats not just limited to programming
<daed>
haters gonna hate.
<daed>
i guess
<Paradox>
rubyists tend to be more outgoing, more friendly, and more well rounded
<Paradox>
there are always sperglords
<Paradox>
but the ruby community seems to have far fewer of them
<Paradox>
regardless of what people like zed shaw say
<daed>
and quite frankly every ruby project i've had to work on was infinitely more pleasant than acquiring old php code
<daed>
or anything else really
liuchong has quit [Quit: Leaving]
<daed>
rubyists tend to write cleaner code up front
<daed>
in my experience
<Paradox>
it really boils down to a difference between GIDSWAD and MINSWAN
<deryl>
i'm totally for preferences. I think preferences keep us from being lemmings. I also think people need to use Critical Thinking when they make choices. Like I don't understand the people that won't do a damned thing unless Opra tells them to, like what books to read etc.
<deryl>
they drive me nuts
<jonathancutrell>
Paradox: To be fair, the main reason is probably because there's a ton of older folks who had jobs in PHP/Perl/Python, and when rails jobs came surfacing out the wazoo, they threw them under the bus with our Millenialist generational attitudes and every other piece of BS they could find.
CoverSlide has joined #ruby
<Paradox>
jonathancutrell, that, and there is a notion of defending a technological priesthood
<Paradox>
in the past year i went to 2 conferences
<Paradox>
Mountain West PyCon and Mountain West Ruby con
<deryl>
and i don't understand the people that figure If XYZ can't solve the problem get a different problem. They never bother to think that maybe its XYZ thats not cut out for the job.
<Paradox>
guess which one i preferred
David_Mi1ler is now known as David_Miller
<jonathancutrell>
Paradox: PyCon!
<jonathancutrell>
...
<Paradox>
lol no
wallerdev has quit [Quit: wallerdev]
<deryl>
hahahaha
<Paradox>
pycon was full of asshats
selvakumaran has joined #ruby
<Paradox>
"omg u dont kno list comprehensions! u r fail!"
<Paradox>
"im 1337"
<Paradox>
"epic win"
<deryl>
there's an expression i haven't heard for awhile
naequs has joined #ruby
<deryl>
asshat hah!
<Paradox>
these are all things i heard at pycon
<jonathancutrell>
At the end of the day, it's just a cultural thing anyway.
<Paradox>
yup
<Paradox>
and it even goes deeper than that
<Hanmac>
i can do 3D gaming with ruby and ogre ... beat that php
<Paradox>
python is a very…academic language
<deryl>
use what does the job, provided it *actually* does the job
<Paradox>
it enforces strict syntax and structure
<deryl>
hell if its python for ya, good, use it. but don't trash everything else like its the panacea of the world
<Paradox>
and bears a strong resemblance to "traditional" languages
<Paradox>
its very good for teaching people to program
<Paradox>
but…
<Paradox>
its not aging well
<Paradox>
TIOOWTDS is hurting it quite a bit
<deryl>
i would argue that ruby is a better one. especially if you do use the {} and () in the places where they are implicit.
<Paradox>
deryl, i'm getting to that
<deryl>
then it looks more like C and i would argue wouild help to teach that language as well
<deryl>
ahh got ya
<Paradox>
also, its OO is horrifically bolted on
<deryl>
jumped the gun :)
<Paradox>
i submit that any language that requires you to do Math.abs or for x…
<Paradox>
cannot claim to be fully object oriented
<Paradox>
anyway
indian has joined #ruby
<Paradox>
ruby, on the other hand, is a much more practical language
<Paradox>
it, like smalltalk, is fully oo (wonder where it got that from)
<Paradox>
and can do a lot of things very simply
<jonathancutrell>
Paradox: I'd say the same about JavaScript, except as a functional language.
<jonathancutrell>
Paradox: But, that's because I started on JavaScript.
<Paradox>
if you've never programmed before, and don't have patterns grooved, then 10.times is far easier than for (i = 0, i < 10, i++)
<jonathancutrell>
Paradox: which allows me to approach the idea of being "practical" from that specific paradigm.
<Paradox>
and if you have programmed before and give ruby an honest look, you can appreciate the beauty of blocks
<jonathancutrell>
definitely.
<Paradox>
so…
savage- has joined #ruby
<daed>
blocks were what drew me in initially
<daed>
i haven't left ruby since
<daed>
going back to other languages feels like a huge step back :/
<jonathancutrell>
Well CofeeScript attempts to move in that direction.
Lupy has quit [Quit: Leaving]
<Paradox>
ruby vs python is just another expression of practicality (i.e. real-world applications) vs academia (endless arguing over P=NP or O(log(n) )
<Paradox>
coffeescript is nice
<jonathancutrell>
Paradox: I have yet to pick it up. But what I've seen is cool.
linoj has joined #ruby
<Hanmac>
P=NP does not care me until i can use it to generate energy from nothing :P
<workmad3>
Hanmac: really? you don't fancy taking a stab at solving it one way or the other?
<workmad3>
Hanmac: it is one of the $1000000 open questions after all
<Paradox>
jonathancutrell, i've used it on a few sinatra projects
pyoor has quit [Quit: leaving]
<Paradox>
anyway
<Paradox>
also, part of the hate from other languages is
dkissell_ has joined #ruby
<Paradox>
ruby does things differently
mnaser has quit [Ping timeout: 240 seconds]
<Paradox>
people dont understand differently
<Paradox>
people fear things they dont understand
iocor has joined #ruby
<Paradox>
fear is a component of hate
<Hanmac>
workmad3 i am not "math" enough to solv it, and currently i dont need that much money ...
<workmad3>
Hanmac: :)
<workmad3>
Hanmac: it being decided one way or the other would have pretty huge implications tbh...
pk1001100011 has joined #ruby
mnaser has joined #ruby
<Paradox>
finally, ruby users tend to be friendlier, more social, and more outgoing
<Paradox>
hence the labeling of "hipster"
<workmad3>
Paradox: f*** you... I'm not social or outgoing :P
<Hanmac>
"outgoing"? ... why should i go out? ... until i can go Photosyntesis i have no reason to go out
<workmad3>
Paradox: is the fact I censored myself counted as friendly? :)
dkissell has quit [Ping timeout: 249 seconds]
dkissell_ is now known as dkissell
<jonathancutrell>
Paradox: Eh, I think "different" is a bit relative. Sure, it does things differently from Python and Perl-esque languages. But look at, for instance, Haskell. Quite different from all of the above as well.
tvw has quit [Remote host closed the connection]
<jonathancutrell>
Paradox: Also, the friendliness aspect may be a chicken and egg thing.
<Paradox>
i just dont understand haskell
<Paradox>
i think haskell comes out of math worship
<jonathancutrell>
Paradox: Perhaps Lisp or another functional language is a better example.
m_3-backstage has quit [Quit: leaving]
<workmad3>
Paradox: pfft, haskell is easy... you just need to understand category theory in depth and know wtf an endofunctor is
<Paradox>
i dont mind lisp
<Paradox>
lol
<workmad3>
(so far, I think I've sort of grasped that an endofunctor is a functor that 'lifts' the domain, e.g. the way .map lets you 'lift' a function that applies to a value to a funtion that applies to a collection)
<workmad3>
*function
<workmad3>
still... ruby isn't different
m_3 has quit [Quit: leaving]
<Paradox>
but really, what it boils down to is, ruby rocks
<workmad3>
it's just the union of smalltalk with perl :)
<Paradox>
with clu and lisp
<Paradox>
its a big happy bigamy of programming languages
savage- has quit [Remote host closed the connection]
resure has quit [Remote host closed the connection]
yeggeps has quit [Ping timeout: 272 seconds]
CoverSlide has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
<rking>
Yep. I'd say CoffeeScript:Ruby :: LiveScript:Haskell.
<rking>
wmoxam: Hrm. I'll have to look into SML vs ML.
k_89 has joined #ruby
<rking>
Oh, "Standard" ML.
<rking>
I still haven't taken the FP plunge. I'm actually in the middle of "Learn you a Haskell" at this very moment.
yeggeps has joined #ruby
b26 has quit [Ping timeout: 260 seconds]
<rking>
I wonder which of the FP languages is the most pragmatic. E.g. I'm not at all excited about Haskells type system.
yeggeps has quit [Ping timeout: 246 seconds]
jxf has quit [Ping timeout: 264 seconds]
Sheehan has quit [Quit: Sheehan]
<shevy>
heheeh
<shevy>
AN UNBELIEVER!
<shevy>
BURN RKING!
* rking
gets caught up in the mob mentality and burns rking!
jonathancutrell has left #ruby [#ruby]
<Mon_Ouie>
I heard OCaml being praised for being better suited for real world use
<Mon_Ouie>
Although Haskell's type system is something I really loved
ipoval has joined #ruby
<rking>
Actually, I'm thinking LiveScript is probably the topper, because then it ties into all the JS world.
<Mon_Ouie>
Static, without being as restraining as C's type system
<Mon_Ouie>
(where you can't do anything generic without hacking with void pointers)
<rking>
And in fact a pretty beastly setup would be: Rails + parts CoffeeScript + parts LiveScript + Node.js (so the JS logic can run on both client and server sides. OAOO suckas!)
martinBauer has joined #ruby
qwerxy has quit [Quit: offski]
selvakumaran has quit [Quit: Leaving]
Chryson has joined #ruby
<rking>
I think I got bit by Duck Typing /one time/ in the last 3 months. I accidentally passed in a single item to something I had made take arrays.
<rking>
And I caught it before committing, realized that part didn't have automated tests, and fixed everything.
Foxandxss has joined #ruby
<workmad3>
Mon_Ouie: OCaml is praised for being able to generate faster code than C :)
freezey has quit [Quit: freezey]
frishi has quit [Quit: Leaving...]
<rking>
workmad3: What's the general idea on how it accomplishes that?
<workmad3>
which it mostly does by having really strict type systems which lets the compiler do a massive amount of stuff in advance
<rking>
Ahh.
martinBauer has quit [Quit: Leaving]
andrewhl has quit [Remote host closed the connection]
Guest33170 has quit [Ping timeout: 248 seconds]
macmartine has quit [Quit: macmartine]
akem has quit [Read error: Connection reset by peer]
olrrai has quit [Quit: Saliendo]
shadoi has joined #ruby
havenn has joined #ruby
Ethan has quit [Read error: Connection reset by peer]
emdub has quit [Ping timeout: 265 seconds]
Sheehan has joined #ruby
<shevy>
I am feeling special tonight
<shevy>
who wanna rock it baby!!!
<Spaceghostc2c>
rking: That's because you forgot to make your method accept single objects in addition to collections.
<Spaceghostc2c>
design flaw, not a duck typing flaw.
<rking>
Spaceghostc2c: Good point.
<rking>
So duck typing failed me zero times.
<Spaceghostc2c>
:D
CoverSlide has joined #ruby
umttumt has quit [Remote host closed the connection]
<Spaceghostc2c>
rking: You just wrap the single object in a collection and then proceed as normal. :D
<rking>
Hrm. What do you check though? To ask it if it's not a collection already?
<Hanmac>
or make the method accept (*args)
emdub has joined #ruby
perryh_away is now known as perryh
jameshyde has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: jcromartie]
davidpk has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
akem has joined #ruby
<workmad3>
rking: if it responds to .each, treat it like a collection
jamesaxl has joined #ruby
<rking>
workmad3: Hrm, not bad. Good for us that there's no String#each
<workmad3>
rking: well, not anymore
<rking>
Interesting.
banisterfiend has joined #ruby
<rking>
I did have to check it before I said that.
<workmad3>
rking: you could also check if it is_a? Enumerable
<rking>
Yeah. Probably any collection-like thing should inherit from that.
<workmad3>
rking: 1.8, String was enumerable, they changed it in 1.9
<workmad3>
rking: include, not inherit ;)
<rking>
workmad3: For cases exactly like this?
<workmad3>
rking: no, they changed it because with encodings built in, there isn't a sensible choice for what should be enumerated
<rking>
Crud. I'm still not up to speed with that idea. What is the benefit of not-inheriting?
<workmad3>
rking: it's not as meaningful, semantically
<workmad3>
rking: and you can only inherit from one thing, you can include many things
<rking>
Ahh, k.
<rking>
So you still ask the IS-A vs HAS-A question then inherit or include, respectively?
<Hanmac>
rking: there is each_line, each_char, each_byte and each_codepoint ... so its not clear, so String is not an enumerable anymore
jamesaxl has quit [Client Quit]
akem has quit [Read error: Connection reset by peer]
irmbrady has joined #ruby
irmbrady has quit [Client Quit]
deens has joined #ruby
CoverSlide has quit [Ping timeout: 248 seconds]
CoverSlide has joined #ruby
<rking>
Coolness.
<rking>
Thanks guys. Larnin much.
S2kx has joined #ruby
jonathanwallace has joined #ruby
S1kx has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Read error: Connection reset by peer]
KindOne has quit [Remote host closed the connection]
darkc0met has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<Spaceghostc2c>
Avdi Grimm has some talks on how to do that, rking.
carbncl has joined #ruby
<Spaceghostc2c>
rking: Asking if it is from Enumerable is 'wrong'.
<Mon_Ouie>
include isn't a has-a relationship
<Mon_Ouie>
An array is enumerable, it doesn't have an attribute that is an enumerable object
MrGando has quit [Quit: Bye]
ZachBeta has joined #ruby
cherrypeel has joined #ruby
jakobus has quit [Quit: Leaving]
carbncl has quit [Client Quit]
<rking>
Mon_Ouie: Yeah, you're right.
<rking>
So I don't know what the question is.
andrewhl has joined #ruby
<rking>
I guess it's if it's "mainly" that one superclass, because you can only inherit from one.
sailias has joined #ruby
<rking>
Or are there other parts of the inheritance vs. include'sion mechanisms that make them different?
samuel02 has quit [Remote host closed the connection]
akem has joined #ruby
<Mon_Ouie>
There are (no class methods when you include), but they're not that important for choosing between a class and a mixin
Faris has joined #ruby
<rking>
Mon_Ouie: Because you can make the mixin do the metaprogramming trick where it stuffs them in on inclusion?
<workmad3>
rking: no, because it's not generally particularly important
baroquebobcat has joined #ruby
<workmad3>
rking: the choice is really down to semantics
<Hanmac>
o = Object.new; o.extend(Enumerable) :P
<workmad3>
rking: inheritance is a very strong relationship... you're declaring that A IS A B... it's about the strongest relationship you can declare
<Mon_Ouie>
I can't seem to think of a rule of thumb to choose, only examples where I'd rather use one or the other
<rking>
♥ examples.
<workmad3>
rking: while mixins and inclusions are really more about interfaces... including Enumerable is more declaring that your class can act like an enumerable
_br_ has quit [Read error: Connection reset by peer]
<Mon_Ouie>
e.g. when you have a contract like, the including class implements a method (say #each), and the included module uses that method to implement its own methods (say map)
Faris1 has quit [Ping timeout: 260 seconds]
<workmad3>
rking: it isn't an enumerable (which is quite abstract) but it can take the role of an enumerable... if that makes sense :)
stephenjudkins has joined #ruby
mwilson_ has quit [Excess Flood]
<workmad3>
I guess in a way, it is an enumerable... but because enumerable isn't a thing, it's more a role... meh, it makes sense to me :)
mwilson_ has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
<workmad3>
there isn't a rule of thumb though, because it's context-dependent
Guest33170 has joined #ruby
jimeh has joined #ruby
<workmad3>
something that's a concrete class and makes sense to be modelled with inheritance in one app could make sense to be modelled as mixins and inclusions in another in a similar area...
jonathancutrell_ has joined #ruby
<workmad3>
not saying I can think of an example where that's the case... but it's not beyond the realm of possibility to me :)
<rking>
Hrm. =|
freezey has joined #ruby
<rking>
Well at least I'm keyed into the idea that the topic deserves more serious thought.
<jonathancutrell_>
so here's aquick question
<workmad3>
rking: yeah... it's really to do with your domain design :)
<jonathancutrell_>
I'm creating a user with params in sinatra
RainbowDashh is now known as in
<jonathancutrell_>
I'd love to set certain params and ignore those that aren't in the model
<jonathancutrell_>
like, for instance, "password" as a param obviously isn't being stored in clear text
freezey_ has joined #ruby
<jonathancutrell_>
when I try to do it now, I'm getting an "attribute is not accessible" error
<jonathancutrell_>
for password.
<jonathancutrell_>
Of course, it's not on the model, so it wouldn't be accessible.
<jonathancutrell_>
So how can I remove it from the params being passed to the new user instance that I subsequently save?
<jonathancutrell_>
I tried params.delete(:password)
<jonathancutrell_>
and params[:password] = nil
<jonathancutrell_>
Perhaps my problem is different?
thmzlt has joined #ruby
deanh has quit [Remote host closed the connection]
deanh has joined #ruby
deanh_ has joined #ruby
havenn has quit [Remote host closed the connection]
freezey has quit [Ping timeout: 260 seconds]
freezey_ is now known as freezey
havenn has joined #ruby
<rking>
jonathancutrell_: I don't know Sinatra at all, but I'd be hesitant to directly foo with any object that came from the framework like that.
deanh has quit [Read error: Operation timed out]
<rking>
Better would be: props = params.clone
<jonathancutrell_>
rking: what do you mean? it's just post params from the interface.
<rking>
Then props.delete :password
in is now known as Ponies
Ponies is now known as Pony
Pony is now known as in
<jonathancutrell_>
rking: interesting. I'll try that out.
<rking>
Yeah, I donno, there's probably no real harm in it, but I wouldn't even consider directly dinkering with that hash, myself.
UNIXgod has joined #ruby
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
cbuxton has joined #ruby
thmzlt has quit [Remote host closed the connection]
darkc0met has joined #ruby
kevinbond has quit [Quit: kevinbond]
baroquebobcat has quit [Quit: baroquebobcat]
td123 has quit [Quit: WeeChat 0.3.8]
S2kx has quit [Quit: Leaving]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
kevinbond has joined #ruby
linoj has quit [Quit: linoj]
qwerxy has joined #ruby
<jonathancutrell_>
Ah here's another issue
<jonathancutrell_>
apparently sinatra's params is actually passing things as strings
<jonathancutrell_>
so, my next question
<jonathancutrell_>
How to convert all keys to symbols?
<Hanmac>
Hash[hash.map{|k,v| [k.to_sym,v]}]
<jonathancutrell_>
Hanmac: where Hash is a new hash?
jonathancutrell_ has quit [Quit: jonathancutrell_]
Faris has quit [Read error: Connection reset by peer]
prometheus has quit [Ping timeout: 260 seconds]
Doppp has joined #ruby
kevinbond has quit [Quit: kevinbond]
jamesaxl has joined #ruby
yugui_zzz is now known as yugui
kevinbond has joined #ruby
fantazo has joined #ruby
raz has left #ruby ["Leaving..."]
bosphorus has joined #ruby
federic has quit [Remote host closed the connection]
fantazo has quit [Remote host closed the connection]
fantazo has joined #ruby
KindTwo has joined #ruby
andrewhl has quit [Remote host closed the connection]
Sheehan has quit [Quit: Sheehan]
andrewhl has joined #ruby
schovi has joined #ruby
<andrewhl>
what does the =~ operator mean?
<Mon_Ouie>
Pattern matching
<andrewhl>
ah
<Mon_Ouie>
e.g. to check if a regular expression matches a string
tk___ has quit [Quit: ばいばい]
Sheehan has joined #ruby
pcboy_ has quit [Ping timeout: 240 seconds]
Faris1 has quit [Quit: Leaving.]
gilesw has quit [Ping timeout: 265 seconds]
<icy`>
hi, is there a way to get rid of warnings "method redefined; discarding old response " and " <path> warning: previous definition of response was here " ?
<icy`>
i'm consciously overriding... i dont need it to warn me about it as well ;P
Jake232 has joined #ruby
Sheehan has quit [Quit: Sheehan]
Eldariof-ru has quit []
Markvilla has joined #ruby
Markvilla has quit [Read error: Connection reset by peer]
<Mon_Ouie>
Remove the method before redefining it
Markvilla_ has joined #ruby
bearlulz has quit [Quit: Computer has gone to sleep.]
dr_diamond has joined #ruby
prometheus has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
Markvilla_ has quit [Read error: Connection reset by peer]
Markvilla has joined #ruby
raikd has quit [Ping timeout: 240 seconds]
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
etehtsea has joined #ruby
raikd has joined #ruby
Sheehan has joined #ruby
pk1001100011 has joined #ruby
subr00t has quit [Quit: subr00t]
ph^ has quit [Ping timeout: 246 seconds]
etehtsea has quit [Client Quit]
mpereira has quit [Ping timeout: 272 seconds]
Weems has quit [Ping timeout: 265 seconds]
Sheehan has quit [Client Quit]
havenn has quit [Remote host closed the connection]
Markvilla has quit [Ping timeout: 255 seconds]
Doppp has quit [Quit: leaving]
Jackneill has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
<novochar>
will a return statement escape at similar to break statement and break the current iteration?
<delinquentme>
the feedback given was rather minimal
<delinquentme>
so like im kinda in a holding pattern on what he means by "installed"
<delinquentme>
and how it fails ( as it was failing before )
<delinquentme>
( the entire test suite didn't finish )
<delinquentme>
at least now the tests run and give feedback
<delinquentme>
however I think its just an issue about where to source the test files so that the file paths work
gmci has joined #ruby
<rking>
Yeah. I wouldn't sweat this one.
deanh_ has quit [Quit: deanh_]
deanh has joined #ruby
<rking>
You could turn your pull req into a simple issue, saying: Under x, y, z conditions, the tests fail.
<delinquentme>
rking, are you a contrib?
<rking>
It's not like one of those "Work of Art" Pull Reqs that gets thrown to the ground or anything. =)
<rking>
Nah, I just know the feeling of getting my patches rejected. =D
<delinquentme>
I mean I set out to see what was failing with the travisci
<delinquentme>
but I know little about travisci so
<delinquentme>
ahh ic ic
<delinquentme>
yeah it was minimal
<delinquentme>
it kinda surprises me how little recognition people give out
tommyvyo has joined #ruby
<delinquentme>
like someone comes to your project and says " I want to contribute "
<delinquentme>
( shouldn't you throw them a little party ? )
<delinquentme>
or at least say HEY THANKS FOR YOUR INTEREST!
eurbach has quit [Quit: Leaving.]
RainbowDashh has joined #ruby
dkissell_ has joined #ruby
hunglin has quit [Quit: Leaving.]
cpruitt has quit [Quit: cpruitt]
deanh has quit [Ping timeout: 260 seconds]
deanh has joined #ruby
dkissell has quit [Ping timeout: 246 seconds]
dkissell_ is now known as dkissell
jimeh has quit [Quit: bye]
<Hanmac>
bioruby ... i dont get it ... i mean the idea is not SO bad, but the sample it is :P
ph^ has joined #ruby
ph^ has quit [Remote host closed the connection]
<rking>
delinquent: Open source contributions require a quiet knowing of one's contributions' value.
ph^ has joined #ruby
punknology has joined #ruby
<rking>
delinquent: Once in a blue moon you'll get some kind of thanks, but mostly you have to do stuff on the Golden Rule. Speaking of the Golden Rule, you can remember to be more effusive when it's you that is the project master and it's others with their nonsense patches. =)
ebanoid has quit []
ph^ has quit [Ping timeout: 260 seconds]
delinquentme has quit [Ping timeout: 260 seconds]
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
RainbowDashh has quit [Ping timeout: 245 seconds]
Jake232 has quit [Ping timeout: 255 seconds]
naequs has quit [Quit: Leaving]
andrewhl has joined #ruby
SegFaultAX has quit [Quit: Lost terminal]
RainbowDashh has joined #ruby
sbanwart has quit [Ping timeout: 248 seconds]
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
oznek has quit [Ping timeout: 252 seconds]
niklasb has quit [Ping timeout: 246 seconds]
RainbowDashh has quit [Ping timeout: 260 seconds]
<Paradox>
bumbledore
nateberkope has quit [Read error: Connection reset by peer]
BRMatt|Laptop has joined #ruby
Jake232 has joined #ruby
BRMatt|Laptop has left #ruby [#ruby]
cjs226 has quit []
Vert has joined #ruby
cjs226 has joined #ruby
ChampS666 has quit [Ping timeout: 245 seconds]
stephenjudkins has joined #ruby
linoj has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
frogstarr78 has quit [Remote host closed the connection]
<locriani>
I like the first form for things that had a very delay needed inputs
<locriani>
Add send this dictation is awful
stephenjudkins has joined #ruby
<locriani>
I like the first form for things that have no defined output, as in they don't return anything or modify anything
<locriani>
if it's more complex though, like passing a hash into the params, I prefer parens
<locriani>
Of course my my opinion is worth that of a long
<locriani>
Of course my opinion is only worth that if Obama here
<locriani>
My opinion it's not worth much
<locriani>
fuck it
akem has quit [Ping timeout: 240 seconds]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
balki_ has joined #ruby
balki_ has quit [Read error: Connection reset by peer]
kenperkins has quit [Ping timeout: 246 seconds]
alanp_ has joined #ruby
balki_ has joined #ruby
balki has quit [Read error: Operation timed out]
alanp has quit [Read error: Operation timed out]
<shevy>
hmm
<shevy>
no... I need opinions
<seanstickle>
YES!
<shevy>
I used to prefer the first form, until just now. but that was because of my editor...
akem has joined #ruby
<shevy>
it was harder to see at one glance
<shevy>
:(
<seanstickle>
shevy: first form is better
<seanstickle>
shevy: Ruby is like the opposite of Lisp in one respect -- use as few parens as possible
Spooner has joined #ruby
FortyTwo42 has quit [Quit: Leaving]
Chryson has quit [Remote host closed the connection]
rgrinberg has quit [Ping timeout: 255 seconds]
havenn has joined #ruby
<locriani>
List (() ()) ((open
RainbowDashh has joined #ruby
berkes has quit [Quit: Ex-Chat]
rgrinberg has joined #ruby
cakehero has joined #ruby
RainbowDashh is now known as in
<cakehero>
Is the singleton library available by default or is it a gem I have to install?
<shevy>
by default
<cakehero>
but I need to require it?
<cakehero>
I get require 'singleton' returning false, but I'm not sure if that's a problem or not (1.9.3)
<Spooner>
Yes, it is in the standard library, like YAML and whatever else.
<cakehero>
okay cool
<shevy>
yes you must require it
<shevy>
I get true in irb when doing the same
<shevy>
perhaps you are on debian
<shevy>
and they crippled it away ;P
<cakehero>
I'm on Mac OS X
<Spooner>
It should return true if it loads, false if it has already been loaded (so it doesn't load it again) and throws an exception if you made up a name for an imaginary library. Think it is that, anyway.
<cakehero>
but I believe this might not be the problem
<cakehero>
shevy Spooner okay perfect, I think the singleton stuff is working
<shevy>
in irb, when singleton was required, Singleton name will be known
<shevy>
kk
havenn has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
<cakehero>
Is there a simple way to figure out the path to a file that require is using when it's a relative path? $: shows many paths and it would take quite a bit to go through them manually
<cakehero>
nvm
banseljaj is now known as imami|afk
ElderFain has joined #ruby
AlbireoX`Laptop has joined #ruby
AndChat| has quit [Quit: Bye]
wvms has joined #ruby
lkba has joined #ruby
<Spooner>
Why would you need to know the path if you've required it?
<cakehero>
Spooner because I'm trying to debug this program and I wanted to see what the file was actually doing
banisterfiend has quit [Remote host closed the connection]
<Spooner>
Ah right. You can do it with gems (gem which <gemname>), but not sure about stdlib.
maletor has joined #ruby
Enekoos has joined #ruby
banisterfiend has joined #ruby
<cakehero>
Spooner okay perfect, thank you
schovi has quit [Remote host closed the connection]
<Spooner>
Oh right, you can use pry and "show-method singleton" - works very nicely.
<Paradox>
cakehero, i think you can use something in File
<Paradox>
or just use pry and _pwd_
<Paradox>
if i understood right
<Spooner>
cakehero: I mean "require 'singleton'; show-method Singleton"
<cakehero>
okay perfect
<Spooner>
pry is too clever for its own good :)
itnomad has quit [Ping timeout: 250 seconds]
<Paradox>
it should be bundled
Black-Heaven has quit [Quit: You juste loose THE GAME]
QaDeS has quit [Quit: Ex-Chat]
deanh has quit [Quit: deanh]
ZachBeta has quit [Quit: Computer has gone to sleep.]
ZachBeta has joined #ruby
User_2012_irc has joined #ruby
davidw has joined #ruby
<shevy>
we need to rubyify the world
davidw is now known as Guest61297
<shevy>
I am going to spy on #python
sailias has joined #ruby
b26 has joined #ruby
yannis has joined #ruby
ZachBeta has quit [Client Quit]
Markvilla has quit [Quit: Markvilla]
kirun has quit [Quit: Client exiting]
Pimentel-ES has joined #ruby
<shevy>
I am trying to speak to them in their native tongue now
<seanstickle>
Condescending ass-hattery?
<seanstickle>
I didn't know it could be learned by an outsider
blacktulip has quit [Remote host closed the connection]
dkissell_ has joined #ruby
gyre007 has quit [Quit: Ex-Chat]
<Boohbah>
seanstickle: #haskell is a good place to practice
<lupine_85>
there's a reason why we switched to SI units :)
<seanstickle>
Don't tell the Mars expedition
<workmad3>
seanstickle: which is heavier, a mole of gold, or a mole of plutonium? :P
stephenjudkins has joined #ruby
rgrinberg has quit [Ping timeout: 252 seconds]
<jumpingcloud>
hah mars!
<workmad3>
seanstickle: and which would you rather carry in your back pocket?
<jumpingcloud>
metric vs imperial
Pimentel-ES has joined #ruby
freezey has joined #ruby
igotnolegs has joined #ruby
<seanstickle>
workmad3: I would rather have a mole of plutonium in my back pocket
davidw has quit [Ping timeout: 264 seconds]
<workmad3>
seanstickle: heh
Jake232 has quit [Quit: Computer has gone to sleep.]
<workmad3>
seanstickle: let me guess, you also like to measure your car fuel consumption in rods per hogshead?
<seanstickle>
I have no car, you heartless man!
chico_chicote has joined #ruby
freezey has quit [Quit: freezey]
<workmad3>
seanstickle: me neither :(
<workmad3>
seanstickle: but when I do, I want to make sure I get one that has a good rods per hogshead
yannis has joined #ruby
<workmad3>
seanstickle: you know, > 600,000
mikepack has quit [Remote host closed the connection]
pcboy_ has joined #ruby
<seanstickle>
I prefer my car to get good acres per hogshead myself
<seanstickle>
But I'm a traditionalist
Sheehan has quit [Quit: Sheehan]
luzeo has quit [Quit: luzeo]
<workmad3>
seanstickle: that's just mind-blowing
Pimentel-ES_ has joined #ruby
<workmad3>
seanstickle: unless you're actually talking about a car with a plough attached to the back, then it makes perfect sense :)
<seanstickle>
Well, duh
<seanstickle>
What else is a car for?
Pimentel-ES has quit [Ping timeout: 245 seconds]
<workmad3>
seanstickle: sitting on the driveway as a large umbrella for small mammals?
Pimentel-ES has joined #ruby
havenn has joined #ruby
banisterfiend has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 260 seconds]
Pimentel-ES_ has quit [Ping timeout: 244 seconds]
<offby1>
I gotta say, I hate how picky ruby is about whitespace. I just typed ``User.new (:name => 'fred')'' and got a syntax error ... turns out the problem was the space before the left paren, but did the error message help me see that? Noooo ....
sbanwart has joined #ruby
* offby1
looks for the Unicode glyph that represents "fuming programmer"
iamlacroix has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 244 seconds]
<workmad3>
offby1: hate to break it to ya, but most languages are picky about whitespace there