Xeago has quit [Read error: Connection reset by peer]
redgirl has quit [Quit: This computer has gone to sleep]
orien has joined #ruby
bigoldrock has quit [Ping timeout: 240 seconds]
stonevil has joined #ruby
WebDawg has left #ruby [#ruby]
mansi has joined #ruby
Lubinski has joined #ruby
djbkd has quit [Remote host closed the connection]
ferdev has quit [Ping timeout: 246 seconds]
DrCode has quit [Remote host closed the connection]
tcat has quit [Ping timeout: 250 seconds]
Opettaja has joined #ruby
swex has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
swex has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
tcat-d has quit [Ping timeout: 250 seconds]
mansi has quit [Ping timeout: 246 seconds]
maroloccio has joined #ruby
dmiller has joined #ruby
marr has quit [Ping timeout: 246 seconds]
ephemerian has quit [Quit: Leaving.]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
Es0teric has joined #ruby
Munto has quit [Quit: Let's make things Frugal!]
cofin has joined #ruby
rupee has quit [Quit: Leaving]
kil0byte has quit [Ping timeout: 260 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
kiri has quit [Ping timeout: 256 seconds]
<ner0x>
DateTime.new(rand(2000..2015), rand(1..12), rand(1..28), rand(0..23), rand(0..59), 0, '+5').strftime('%m-%d-%Y %H:%I %p') This comes out UTC everytime. How can I get the offset of +5 ?
DrCode has joined #ruby
mikepack has joined #ruby
Meatant has quit [Remote host closed the connection]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
tjbiddle_ has joined #ruby
Meatant has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
<heftig>
ner0x: works fine for me, but you probably want %H:%M
horofox_ has joined #ruby
kiri has joined #ruby
tylersmith has joined #ruby
<heftig>
er, %I:%M if you're using %p
ferdev has joined #ruby
vwoo has quit [Ping timeout: 256 seconds]
icole has quit [Read error: Connection reset by peer]
twoism has quit [Remote host closed the connection]
icole has joined #ruby
wsterling has joined #ruby
axsuul has quit [Quit: axsuul]
vwoo has joined #ruby
etruscan has joined #ruby
iaj has quit [Read error: Connection reset by peer]
<ner0x>
heftig: You're correct... But it doesn't work for me stuff.
tylersmi_ has joined #ruby
DanKnox is now known as DanKnox_away
jonahR has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
<ner0x>
heftig: You're correct. I'll have to look a bit harder. I must be missing something simple.
wesside has joined #ruby
rsahae has quit [Quit: rsahae]
slainer68 has joined #ruby
jonahR has joined #ruby
cofin has quit [Quit: cofin]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
jimg has joined #ruby
wsterling has quit [Ping timeout: 240 seconds]
freerobby has quit [Client Quit]
cofin has joined #ruby
arubin has joined #ruby
<ner0x>
heftig: I guess what I'm asking is how do you create a datetime and change the timezone so that meridian works?
moos3 has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 245 seconds]
eccstartup has quit [Quit: 离开]
v0n has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby
mvangala_ has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
ner0x has quit [Quit: Leaving]
tbrock has quit [Quit: Computer has gone to sleep.]
jimg has quit [Ping timeout: 252 seconds]
ArchBeOS has quit [Remote host closed the connection]
tylersmi_ has quit [Ping timeout: 264 seconds]
zeade has quit [Quit: Leaving.]
tkuchiki has joined #ruby
bubblehe_ has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
bubblehead has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
c0rn has joined #ruby
dnyy_ is now known as dnyy
marcgg has quit [Read error: No route to host]
vwoo has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Remote host closed the connection]
rsahae has joined #ruby
marcgg has joined #ruby
vwoo has joined #ruby
cofin has quit [Quit: cofin]
vlad_starkov has joined #ruby
brianpWins has joined #ruby
jimg has joined #ruby
dagnachew has quit [Quit: Leaving]
tbrock has joined #ruby
ivanoats has quit [Remote host closed the connection]
blitz has quit [Quit: This computer has gone to sleep]
<Quadlex>
Le Fuckit. I'll bundle them into the "Information" namespace then provide shortcut methods from the parent module
yxhuvud has joined #ruby
Hanmac2 has joined #ruby
nezumi has joined #ruby
mikepack has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 255 seconds]
kofno has quit [Ping timeout: 252 seconds]
vwoo has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
yshh has joined #ruby
_dv_ has joined #ruby
GreatSUN_ has quit [Read error: Connection reset by peer]
dv_ has quit [Ping timeout: 264 seconds]
vwoo has joined #ruby
Dekade has quit []
_maes_ has joined #ruby
<pontiki>
oh, a wrapper; soz
fomatin has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
fomatin has joined #ruby
<pontiki>
i havent written a general purpose API calling wrapper
tjbiddle_ has joined #ruby
tylersmith has joined #ruby
<pontiki>
i write specific one that hust encapsulate the specific functions needed
<pontiki>
i sure would appreciate a g.p. wrapper that some of what you're doing
<pontiki>
s/that/with
<pontiki>
in some cases
yshh has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
arya has joined #ruby
kx has quit []
tjbiddle has quit [Ping timeout: 276 seconds]
tjbiddle_ is now known as tjbiddle
vwoo has quit [Ping timeout: 264 seconds]
kofno has joined #ruby
vwoo has joined #ruby
fermion_ has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
arya has quit [Ping timeout: 248 seconds]
jimg has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 245 seconds]
_nothing__ has joined #ruby
andredieb is now known as ANDREDIEB
<_nothing__>
is there ruby code to KILL a virus computer that we have know character of virus?
sleetdrop has joined #ruby
moos3 has joined #ruby
kindjal has joined #ruby
<_nothing__>
such as ramnit.e ,that is make my master file such as setup.exe infected.so can we scan in my setup.exe,part of code that have infected by virus,.?
<_nothing__>
such as ramnit.e ,that is make my master file such as setup.exe infected.so can we scan in my setup.exe,part of code that have infected by virus,.?
bionhart has joined #ruby
<_nothing__>
i'm using ubuntu
hamakn has joined #ruby
tacos1de has quit [Remote host closed the connection]
Kabaka has quit [Read error: Connection reset by peer]
sleetdro_ has joined #ruby
<_nothing__>
i'm sorry about my question that is long question.
sleetdrop has quit [Ping timeout: 246 seconds]
hamakn has quit [Read error: Connection reset by peer]
v0n has quit [Read error: Operation timed out]
hamakn has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
Kabaka has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
v0n has joined #ruby
tommyvyo has quit [Quit:]
pitzips has joined #ruby
iamjarvo has joined #ruby
burlyscudd has joined #ruby
burlyscudd has joined #ruby
tacos1de has joined #ruby
harrymoreno has joined #ruby
vwoo has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 260 seconds]
ttt has joined #ruby
vwoo has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
Domon has joined #ruby
dankest has joined #ruby
<Nuck>
... I... whut
<Nuck>
I don't even
reset has quit [Ping timeout: 276 seconds]
momomomomo has quit [Quit: momomomomo]
jimg has joined #ruby
Yakko has quit [Ping timeout: 252 seconds]
ioNull has joined #ruby
freerobby has joined #ruby
mfollett has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
mansi has joined #ruby
timkohrumel has joined #ruby
jimg_ has joined #ruby
_nothing__ has quit [Quit: Leaving]
timkohrumel has quit [Remote host closed the connection]
dmiller has joined #ruby
bradhe has joined #ruby
jimg has quit [Ping timeout: 240 seconds]
Michae___ has quit [Read error: Connection reset by peer]
Michae___ has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
Voodoofish430 has quit [Quit: Leaving.]
freerobby has joined #ruby
brianpWins has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
ner0x has joined #ruby
jonathanwallace has joined #ruby
machuga|away is now known as machuga
twoism has joined #ruby
vwoo has quit [Quit: Computer has gone to sleep.]
bubblehead has quit [Read error: Connection reset by peer]
rsahae has quit [Quit: rsahae]
mansi has joined #ruby
bubblehead has joined #ruby
pothibo has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
lewis has joined #ruby
jimg_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
zeade has joined #ruby
axsuul has joined #ruby
Cyrus has joined #ruby
Michae___ has quit [Remote host closed the connection]
jkline has joined #ruby
Aaaarg has joined #ruby
Michae___ has joined #ruby
Michae___ has quit [Remote host closed the connection]
malkomalko has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Michae___ has joined #ruby
kofno has quit [Remote host closed the connection]
jimg has joined #ruby
pitzips has quit [Read error: Operation timed out]
dankest has quit [Quit: Leaving...]
radic_ has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
GeissT has joined #ruby
Beoran_ has joined #ruby
arya has joined #ruby
horofox_ has quit [Quit: horofox_]
orien has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby
krz has joined #ruby
Beoran__ has quit [Ping timeout: 255 seconds]
shadoi has quit [Quit: Leaving.]
machuga is now known as machuga|away
shadoi has joined #ruby
Michae___ has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
bubblehead has quit [Remote host closed the connection]
tenseiten has quit [Ping timeout: 240 seconds]
nalaginrut has joined #ruby
Davey has joined #ruby
ping-pong has joined #ruby
havenwood has quit [Remote host closed the connection]
seitensei has joined #ruby
mikepack has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
orien has joined #ruby
eccstartup has quit [Ping timeout: 240 seconds]
nhhagen has quit [Ping timeout: 276 seconds]
tndrbt has quit [Quit: tndrbt]
nhhagen has joined #ruby
Michae___ has quit [Remote host closed the connection]
dmiller_ has joined #ruby
adkron has quit [Ping timeout: 268 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 248 seconds]
i_s has joined #ruby
athst has quit [Quit: athst]
ner0x has quit [Quit: Leaving]
pothibo has quit [Quit: pothibo]
brianpWins has quit [Quit: brianpWins]
demet8 has quit [Quit: demet8]
Thanatermesis has joined #ruby
cofin has joined #ruby
ffranz has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
dankest has quit [Quit: Leaving...]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
bradhe has quit [Remote host closed the connection]
axsuul has quit [Quit: axsuul]
Levin_22 has joined #ruby
iamjarvo has quit [Quit: Leaving.]
Levin_22 has quit [Remote host closed the connection]
<quazimodo>
<- applied for a ruby job
<pontiki>
in a bell tower?
bradhe has joined #ruby
Levin_22 has joined #ruby
eccstartup has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
eccstartup has quit [Max SendQ exceeded]
eccstartup has joined #ruby
phipes has quit [Quit: phipes]
blitz has joined #ruby
Godd2 has joined #ruby
phipes has joined #ruby
ffranz has quit [Quit: Leaving]
tspike has quit [Read error: Connection reset by peer]
tspike has joined #ruby
harrymoreno has quit [Read error: Connection reset by peer]
Guga_ has quit [Quit: ~]
Domon has quit [Read error: Connection reset by peer]
harrymoreno has joined #ruby
NsOmNiAc has quit [Read error: Operation timed out]
Rennex has quit [Read error: Operation timed out]
freerobby has joined #ruby
Domon has joined #ruby
NsOmNiAc has joined #ruby
Rennex has joined #ruby
cj3kim has joined #ruby
splittingred has quit [Quit: splittingred]
lewis has quit [Remote host closed the connection]
lewis has joined #ruby
fomatin has joined #ruby
jamel has joined #ruby
crankyco_ has quit [Remote host closed the connection]
eldariof has joined #ruby
crankyco_ has joined #ruby
wsterling has quit [Remote host closed the connection]
mklappst_ has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
lewis has quit [Ping timeout: 256 seconds]
Guedes has quit [Ping timeout: 240 seconds]
<quazimodo>
in what part of the world do people develop computer software in bell towers?
<epitron>
the bells... THE BELLS!!!
momomomomo has quit [Quit: momomomomo]
DomKM has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
subbyyy has quit [Ping timeout: 240 seconds]
jwang has joined #ruby
yshh has joined #ruby
<jkline>
quazimodo: at Bell Labs?
eccstartup has quit [Quit: 离开]
dankest has joined #ruby
tylersmith has quit [Remote host closed the connection]
chandankumar has joined #ruby
icole_ has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
raul782 has joined #ruby
<wald0>
what is the fastest way to learn ruby ? (something like a reference what is each thing?), i would like to first understand it fast to hack a few things before i go to learn it entirely
raul782 has left #ruby [#ruby]
icole has quit [Ping timeout: 245 seconds]
io_syl has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Ping timeout: 256 seconds]
yshh_ has joined #ruby
tjbiddle has joined #ruby
<jkline>
wald0: If you want the ultimate reference manual you can try the standard library documentation http://ruby-doc.org/stdlib-1.9.3/ but for me that is not the fastest way to learn
d2dchat has quit [Remote host closed the connection]
<jkline>
wald0: it is very hard to know how to begin. Pick Axe second chapter, about 15 pages, is what you need to know to understand the rest of the book
<jkline>
{ | a | } creates a block with one argument
DomKM has joined #ruby
JumpMast3r has joined #ruby
bradhe has quit [Remote host closed the connection]
<jkline>
like def foo(a), but instead of a method named foo you have an anonymous function
cyong has joined #ruby
<jkline>
there are differences between lambdas, blocks, Procs, and methods, but I don't understand the differences, and the differences are advanced not "syntax"
etruscan has quit [Quit: Lost terminal]
<jkline>
wald0: does that make sense?
Es0teric has quit [Quit: Computer has gone to sleep.]
chandankumar has quit [Read error: Connection reset by peer]
yacks has quit [Read error: Connection reset by peer]
yacks has joined #ruby
subbyyy has joined #ruby
iaj has joined #ruby
i_s has quit [Quit: i_s]
freakazoid0223 has quit [Ping timeout: 252 seconds]
ravster has quit [Quit: Leaving.]
agent_white has joined #ruby
crankyco_ has quit [Remote host closed the connection]
Domon has quit [Ping timeout: 245 seconds]
mrdtt has quit [Quit: mrdtt]
dhruvasagar has quit [Ping timeout: 255 seconds]
mrdtt has joined #ruby
dmiller_ has quit [Remote host closed the connection]
kofno has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<doodlas947>
I want local var so i changed all to arr but it still says undefined local variable or method `arr'
mduvall has joined #ruby
<doodlas947>
I know that there are built-in functions I just practicing
kofno has quit [Remote host closed the connection]
Jackneill has joined #ruby
<jkline>
doodlas947: if you want a local var you have to initialize it within the function, or pass it in as an argument
sean_ has joined #ruby
<sean_>
does anyone here know what timsort is?
<jkline>
try changing it all to @arr
<jkline>
sean_: a way to properly arrange all the people named Tim?
<sean_>
no
passcod has quit [Ping timeout: 256 seconds]
<sean_>
so nobody knows how..
<sean_>
*huh
cj3kim has quit [Remote host closed the connection]
<wald0>
jkline: yes! thank you :)
sleetdro_ has quit [Quit: Computer has gone to sleep.]
akemrir has joined #ruby
<doodlas947>
Now it says uninitialized constant Match::True (NameError) http://ideone.com/PKu2sE :S
citizensinspace has joined #ruby
x1337807x has joined #ruby
<jkline>
doodlas947: capitalized things are class names. The boolean constants are true and false, all lower case
<jkline>
which are instances of TrueClass and FalseClass respectively
passcod has joined #ruby
<jkline>
actually, I think that is slighly wrong. I think typically classes and modules are named with an initial capital letter, but the interpreter will check if it is a constant if there is no such class
<jkline>
and it starts with a capital letter
tonini has joined #ruby
Domon has quit [Remote host closed the connection]
v1n has joined #ruby
<doodlas947>
jkline: thank you
v0n has quit [Read error: Connection reset by peer]
splittingred has joined #ruby
splittingred has quit [Client Quit]
io_syl has joined #ruby
girija has joined #ruby
eldariof has quit [Ping timeout: 245 seconds]
x1337807x has quit [Ping timeout: 252 seconds]
Nisstyre-laptop is now known as Nisstyre
jbueza has joined #ruby
splittingred has joined #ruby
pootler__ has joined #ruby
pootler_ has joined #ruby
cha1tanya has quit [Quit: Leaving]
<jkline>
doodlas947: you are welcome.
<jkline>
wald0: you are welcome.
nlv has joined #ruby
tspike has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
vlad_starkov has joined #ruby
icole_ has quit [Read error: Connection reset by peer]
Meatant has quit [Ping timeout: 256 seconds]
icole has joined #ruby
dmiller has joined #ruby
jimg has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
zacts has quit [Quit: leaving]
bubblehead has joined #ruby
wsterling has joined #ruby
mahmoudimus has joined #ruby
hadees has quit [Quit: hadees]
mansi has quit [Remote host closed the connection]
GeissT has quit [Quit: MillBroChat AdIRC User]
Levin_22 has quit [Quit: Levin_22]
mansi has joined #ruby
tw1sted has joined #ruby
wsterling has quit [Read error: Operation timed out]
rickruby has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
johnrlive has quit [Remote host closed the connection]
Meatant has joined #ruby
io_syl has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
io_syl has joined #ruby
browndawg has joined #ruby
brianpWins has joined #ruby
sleetdrop has joined #ruby
dr_neek has joined #ruby
dr_neek has quit [Client Quit]
mansi has quit [Remote host closed the connection]
cj3kim has joined #ruby
Es0teric has joined #ruby
mansi has joined #ruby
<quazimodo>
jkline: <3
harrymoreno has joined #ruby
jkline has quit [Quit: jkline]
splittingred has quit [Quit: splittingred]
mfollett has quit [Remote host closed the connection]
lyanchih has joined #ruby
kofno has joined #ruby
Es0teric has quit [Client Quit]
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 264 seconds]
byprdct has quit [Ping timeout: 252 seconds]
a_a_g has joined #ruby
pootler__ has quit [Ping timeout: 252 seconds]
kofno has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
pootler_ has quit [Ping timeout: 276 seconds]
tspike has joined #ruby
aedornm has joined #ruby
mrdtt_ has joined #ruby
codecop has joined #ruby
<wald0>
mmh, I have just noticed that there's a "code academy" but also a "code school", which one is better ?
mrdtt has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
mrdtt_ is now known as mrdtt
girija has quit [Ping timeout: 276 seconds]
mrdtt has quit [Client Quit]
sayan has joined #ruby
tspike has quit [Ping timeout: 276 seconds]
mrdtt has joined #ruby
jimg has joined #ruby
macmartine has joined #ruby
yshh_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 268 seconds]
mrdtt_ has joined #ruby
Opettaja has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
dhruvasagar has joined #ruby
DomKM has quit [Quit: Leaving.]
crankyco_ has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
mrdtt has quit [Ping timeout: 245 seconds]
mrdtt_ is now known as mrdtt
jbueza has quit [Quit: Leaving.]
wald0 has quit [Quit: leaving]
apeiros has quit [Remote host closed the connection]
bionhart has quit [Remote host closed the connection]
citizensinspace has quit [Quit: citizensinspace]
harrymoreno_ has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
girija has joined #ruby
tw1sted has quit [Quit: tw1sted]
a_a_g has quit [Quit: Leaving.]
apeiros has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
apeiros has joined #ruby
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
i_s has joined #ruby
JohnBat26 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
saarinen has quit [Quit: saarinen]
zigomir has joined #ruby
spacebug has joined #ruby
i_s has quit [Client Quit]
i_s has joined #ruby
agent_white has quit [Quit: leaving]
saarinen has joined #ruby
i_s has quit [Read error: Connection reset by peer]
i_s has joined #ruby
dmiller has quit [Remote host closed the connection]
yshh has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
jimg has joined #ruby
arya has joined #ruby
i_s has quit [Quit: i_s]
harrymoreno has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
doodlas947 has quit [Quit: irc2go]
harrymoreno has joined #ruby
tagrudev has joined #ruby
<nightfly>
Does puppet muck with the ruby SSL settings/state? A Hiera backend that works just fine that with the hiera command line utility gives an SSL cert verification error when invoked from within puppet. The backend uses a gem that intentionally doesn't do SSL cert verification.
dash_ has joined #ruby
Domon has quit [Remote host closed the connection]
bradhe has joined #ruby
arya has quit [Ping timeout: 248 seconds]
v1n has quit [Ping timeout: 256 seconds]
nomenkun has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
arya has joined #ruby
johnrlive has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
Domon has joined #ruby
rickruby has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
cyong has quit [Quit: Leaving.]
cj3kim has quit [Remote host closed the connection]
bionhart has joined #ruby
verto has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
Uranio has quit [Remote host closed the connection]
johnrlive has quit [Ping timeout: 252 seconds]
Uranio has joined #ruby
ananthakumaran has joined #ruby
persand has joined #ruby
jaybe has quit [Ping timeout: 255 seconds]
falk_ has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
pootler_ has joined #ruby
lunarjar has quit [Ping timeout: 255 seconds]
arusso has quit [Ping timeout: 255 seconds]
jaybe has joined #ruby
dmiller has joined #ruby
lunarjar has joined #ruby
pootler__ has joined #ruby
arusso has joined #ruby
Apane has quit [Ping timeout: 264 seconds]
corehook has joined #ruby
Kar- has joined #ruby
mduvall has quit [Quit: mduvall]
cj3kim has quit [Ping timeout: 268 seconds]
dmiller has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
whowantstolivefo has joined #ruby
wallerdev has quit [Quit: wallerdev]
mfollett has joined #ruby
sayan has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
nomenkun has joined #ruby
Meatant has quit [Quit: free hat!]
a_a_g has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
jprovazn has joined #ruby
arya has quit [Ping timeout: 248 seconds]
harrymoreno has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
mfollett has quit [Ping timeout: 255 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
leonidlm has joined #ruby
dankest has quit [Quit: Leaving...]
ayaz has joined #ruby
eighty4 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
rdark has joined #ruby
corehook_ has joined #ruby
advorak has joined #ruby
arya has joined #ruby
JimmyNeutron has joined #ruby
tylersmith has joined #ruby
corehook has quit [Ping timeout: 252 seconds]
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
tomzx_mac has quit [Ping timeout: 252 seconds]
luckyruby has joined #ruby
<nightfly>
I asked this is the wrong buffer, sorry...
tylersmith has quit [Ping timeout: 252 seconds]
advorak has left #ruby [#ruby]
wargasm has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
jimg has quit [Remote host closed the connection]
stonevil has quit [Ping timeout: 260 seconds]
Roa has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Roa has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
Hanmac has quit [Quit: Leaving.]
bionhart has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
scrollback has joined #ruby
vlad_starkov has quit [Ping timeout: 268 seconds]
jojosiao has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
ghatak has joined #ruby
samuel02 has joined #ruby
axsuul has joined #ruby
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
nbe has joined #ruby
zigomir has quit [Quit: zigomir]
arya has quit [Ping timeout: 248 seconds]
zigomir has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
<nbe>
If I have a array of the form: ["key1:value1", "key2:value2"], what is an elegant way of splitting this up into a hash, with keys being "key1" and "key2" and their respective values "value1" and "value2"?
Domon has quit [Remote host closed the connection]
<pontiki>
nbe, familiar with String#split ?
bradhe has quit [Remote host closed the connection]
johnrlive has joined #ruby
bradhe has joined #ruby
ayaz has joined #ruby
ayaz has joined #ruby
ayaz has quit [Changing host]
mafolz has quit [Client Quit]
<nbe>
pontiki: yeah, I was thinking more in the lines of using inject, of course using split as well, but maybe inject isn't what I want to use in this situation
<pontiki>
using that in a reduce/inject
mafolz has joined #ruby
vlad_starkov has joined #ruby
<pontiki>
other schemes tend to need more variables named
ntus1017 has quit [Remote host closed the connection]
Hanmac has joined #ruby
redgirl has joined #ruby
Hanmac has left #ruby [#ruby]
Hanmac has joined #ruby
samuel02 has quit [Remote host closed the connection]
b0oh has joined #ruby
vlad_starkov has quit [Ping timeout: 268 seconds]
arya_ has joined #ruby
arya has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
slainer6_ has quit [Ping timeout: 252 seconds]
boblu has quit [Ping timeout: 276 seconds]
jimg has quit [Ping timeout: 260 seconds]
jimg has joined #ruby
randomnick has quit [Read error: Operation timed out]
Es0teric has joined #ruby
Michae___ has joined #ruby
jbpros has quit [Quit: jbpros]
fixl has quit [Remote host closed the connection]
crankyco_ has joined #ruby
bradhe has joined #ruby
chichou has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby
denver has joined #ruby
joonty has joined #ruby
srji has quit [Quit: leaving]
ExxKA has joined #ruby
nlv has quit [Remote host closed the connection]
crankyco_ has quit [Ping timeout: 268 seconds]
mikewintermute has quit [Quit: mikewintermute]
bradhe has quit [Ping timeout: 252 seconds]
sepp2k has quit [Quit: Leaving.]
F1skr has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
boblu has joined #ruby
ybart has quit [Quit: ybart]
lyanchih has quit [Quit: lyanchih]
randomnick has joined #ruby
b0oh has left #ruby [#ruby]
cabotto has left #ruby [#ruby]
whowantstolivefo has joined #ruby
camilasan has quit [Remote host closed the connection]
tonini has joined #ruby
MrZYX is now known as MrZYX|off
Astral_ has joined #ruby
tvw has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 248 seconds]
jimg has quit [Remote host closed the connection]
browndawg has joined #ruby
apod has joined #ruby
camilasan has joined #ruby
jimg has joined #ruby
camilasan has quit [Remote host closed the connection]
Giorgio has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
lele has joined #ruby
jbpros has joined #ruby
niklasb has quit [Read error: Operation timed out]
Godd2 has quit [Quit: Page closed]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
gyre007 has joined #ruby
__mp has joined #ruby
<__mp>
hi
Domon has quit [Remote host closed the connection]
<Nitrodex>
hi __mp
<__mp>
does Open3.popen3 preserve environment variables?
TheNumb has joined #ruby
<__mp>
ah no, I saw it
johnrlive has joined #ruby
tommyvyo has quit [Quit:]
stonevil has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
stonevil has joined #ruby
<apeiros>
__mp: with spawn, you can pass an env
johnrlive has quit [Ping timeout: 252 seconds]
kayloos has quit [Remote host closed the connection]
ayaz has quit [Quit: leaving]
<__mp>
apeiros: I'm having the issue that gitlab doesn't preserve PATH and GEM_PATH when it executes git. So I'm trying to patch in the path and gem_path into open3. The code is already there…
Guedes0 has quit [Ping timeout: 255 seconds]
icole has joined #ruby
pskosinski has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
sventon has joined #ruby
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
Guest____ has joined #ruby
<Guest____>
hi guys, I have a question about "return" in blocks
Guest____ is now known as relix
<relix>
so a return in a block returns from the function the block was defined in
tvw has quit []
icole has quit [Ping timeout: 252 seconds]
<relix>
but what if the block is set in a variable, and the function ends before the block is called?
tvw has joined #ruby
<apeiros>
relix: try it
<relix>
I'm doing it in irb and I get a localjumperror
yashshah has joined #ruby
<relix>
but that could be irb too
<relix>
because there's no method to break out of
<apeiros>
well, if you don't trust irb, use plain ruby :-p
<apeiros>
writing a textfile and executing it isn't hard either
<apeiros>
but localjumperror is what is to be expected
buibex has quit [Read error: Connection reset by peer]
huoxito has joined #ruby
subbyyy has joined #ruby
jimg has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
delay has joined #ruby
carloslopes has joined #ruby
crankyco_ has joined #ruby
mikewintermute has joined #ruby
browndawg has joined #ruby
chandankumar has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
Banistergalaxy has joined #ruby
buibex has joined #ruby
neurotech has quit [Quit: Leaving.]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
devoldmx has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
camilasan has quit [Remote host closed the connection]
ExxKA has quit [Quit: This computer has gone to sleep]
txdv has joined #ruby
soc42 has joined #ruby
BizarreCake has joined #ruby
crankyco_ has quit [Ping timeout: 276 seconds]
tomzx_mac has joined #ruby
spider-mario has joined #ruby
maligree has quit [Ping timeout: 264 seconds]
harrymoreno has quit [Ping timeout: 240 seconds]
harrymoreno has joined #ruby
mljsimone|away is now known as mljsimone
fomatin has joined #ruby
Trynemjoel has joined #ruby
mansi has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
camilasan has joined #ruby
tommylommykins has joined #ruby
* tommylommykins
waves
comrade_ has joined #ruby
* tommylommykins
is wondering if it's possible to find out when an instance variable is unset
fuzzyhorns has joined #ruby
<tommylommykins>
well
jerius has joined #ruby
<tommylommykins>
something along the lines of a magical instance_variable_missingn method
<hoelzro>
tommylommykins: what sort of thing would you do with that?
harrymoreno has quit [Ping timeout: 252 seconds]
jcromartie has joined #ruby
sailias has joined #ruby
zaebst has joined #ruby
harrymoreno has joined #ruby
zaebst has quit [Client Quit]
Lubinski has joined #ruby
<tommylommykins>
hoelzro: I'm messing around with a toy lisp interpreter
burlyscudd has joined #ruby
<hoelzro>
interesting
burlyscudd has quit [Read error: Connection reset by peer]
<tommylommykins>
which uses ruby data types
comrade_ has quit [Read error: Connection reset by peer]
<tommylommykins>
one of the things I want to do is to dynamically make some ruby code into a procedure for this lisp
fmcgeough has joined #ruby
burlyscudd has joined #ruby
KevinSjoberg has joined #ruby
comrade_ has joined #ruby
<tommylommykins>
but that means I have to put the variables in the lisp's environment into a ruby environment when I want to apply that procedure
<hoelzro>
I see
classix has joined #ruby
hogeo has quit [Remote host closed the connection]
<tommylommykins>
I was thinking of doing that with ruby instance variables, but the thing is every time such a procodure gets called, I have to add all known variables in the runtime of this lisp language into a ruby environment
sayan has joined #ruby
mansi has quit [Remote host closed the connection]
johnrlive has joined #ruby
<tommylommykins>
which is obviously quite slow... but if there was a magical instance_variable_missing method, then I could pull them in on demand
Es0teric has quit [Quit: Computer has gone to sleep.]
boblu has quit [Ping timeout: 260 seconds]
<singingwolfboy>
using rake, I want to kick off several processes that all expect to run until the user hits ctrl-C. How do I set up these tasks so that hitting ctrl-C once forwards the sigterm signal to all the long-running processes I've kicked off?
alem0lars has quit [Quit: Leaving]
nowthatsamatt has left #ruby [#ruby]
mansi has quit [Ping timeout: 245 seconds]
cburyta has quit [Remote host closed the connection]
zeroXten has joined #ruby
malkomalko has joined #ruby
workmad3 has joined #ruby
philsturgeon has joined #ruby
comrade__ has quit [Remote host closed the connection]
<zeroXten>
what magic does (cucumber) gherkin use in its DSL to not require quotes around strings? Does it just catch all undefined methods and do something to make them an argument to a method?
<philsturgeon>
Hi, im trying to get Graylog2's web interface running on a Vagrant setup, using the default Chef cookbook but switching it to use rbenv to avoid conflicts with ITS gems and the main gems required by chef. complicated.
<philsturgeon>
im also using passenger to make it work, which is all setup by the cookbook and not my fiddling
<mavroaspero>
@singingwolfboy - I just tackled that problem myself, I needed something to watch coffeescripts and sass files and compile them if changes were made. Here's my source, it's quick and dirty but it works. https://github.com/kreas/origin/blob/master/Rakefile
<philsturgeon>
in /var/graylog2/web running "$ which bundle" gives me /opt/rbenv/shims/bundle
<philsturgeon>
so i know its using rbenv ok, but then when I go to the browser I get this:
<philsturgeon>
can anybody tell me what I might be doing wrong, or what I could try?
<fmcgeough>
naive question on Ruby/httpi/ssl. I'm using httpi to fetch a file over https from two different servers. On one I didn't do any special setup in Ruby with the ca_cert_file or ssl.verify_mode. On the other I had to set both to get it to work. Since I'm not sure where httpi would be picking up the "right" thing on the server with no special setup..can someone suggest where to look or how it'd be working on the one but not the other?
<singingwolfboy>
mavroaspero: cool, but I don't see anything about forwarding sigterm signals
jlast has joined #ruby
<singingwolfboy>
or does rake do that automatically somehow?
<mavroaspero>
ctrl-c just ends the rake task
axl_ has joined #ruby
jimg has joined #ruby
jrajav has joined #ruby
<mavroaspero>
killing the tasks
<singingwolfboy>
mavroaspero: it ends the rake task, sure, but do the processes you've started live on?
<singingwolfboy>
nothing's telling them to stop
chandankumar has quit [Quit: Leaving]
baordog has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
kayloos has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
ttt has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
himsin has left #ruby [#ruby]
cibs_ has joined #ruby
corehook_ has joined #ruby
chandankumar has joined #ruby
jimg has quit [Ping timeout: 276 seconds]
<philsturgeon>
anyone capable to help with this one? http://d.pr/i/S4n0 I know 26 of you clicked the link, so somebody has to know whats going on.
binaryplease has quit [Ping timeout: 252 seconds]
Guest57220 has joined #ruby
sambao21 has joined #ruby
<philsturgeon>
I'm like the NSA, Im snooping on all the things
harrymoreno has quit [Ping timeout: 276 seconds]
boblu has joined #ruby
<quazimodo>
I think i may have realised why the ruby community is so different (read nice) compared to so many others
Es0teric has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
<quazimodo>
it's easier, thus you need significantly *less* ingrained nerdiness, which leaves room for development of social skills
johnmilton has joined #ruby
<quazimodo>
(i may be wrong)
Guest33987 has quit [Ping timeout: 248 seconds]
ffranz has joined #ruby
niklasb has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
mavroaspero is now known as Kreas
lyanchih has joined #ruby
burlyscudd has quit [Remote host closed the connection]
lyanchih has quit [Client Quit]
corehook_ has quit [Read error: Connection reset by peer]
v0n has joined #ruby
ryannielson has joined #ruby
AndChat| has joined #ruby
jdunck has joined #ruby
<philsturgeon>
quazimodo: the leather jackets they hand in when you smash out your first rails prototype in 20 minutes then decide to start charging $1000 a day for your services also help the ruby community with their social skills.
<Kreas>
I've got mine :)
failshell has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
tommyvyo has quit [Quit:]
banisterfiend has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
generalissimo has joined #ruby
johnrlive has joined #ruby
khushildep has quit [Remote host closed the connection]
bionhart has joined #ruby
fomatin has joined #ruby
tw1sted has joined #ruby
brbcoding has quit [Ping timeout: 252 seconds]
MrZYX is now known as MrZYX|off
_JamieD_ has quit [Quit: _JamieD_]
bean has joined #ruby
bean has quit [Max SendQ exceeded]
heftig has quit [Quit: Quitting]
browndawg has joined #ruby
soc42 has quit [Remote host closed the connection]
bean has joined #ruby
tomzx_ is now known as tomzx
tomzx_mac has quit [Ping timeout: 264 seconds]
heftig has joined #ruby
qohelet_ has joined #ruby
yshh has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
fomatin has quit [Client Quit]
<Veejay>
banisterfiend: Pry saves the day once again
<Veejay>
Thank you
<banisterfiend>
np, buy a sticker ;)
christina has joined #ruby
<Veejay>
I was wasting time with logger statements and all that bs
christina has quit []
<Veejay>
And then I remembered that Pry was the bees's knees, set it up and it told me all I needed to know about that slow update_attribute in my code
<Veejay>
I still don't know wtf is going on, but at leats my mind's at ease now
singingwolfboy has quit [Quit: singingwolfboy]
<Veejay>
<3
<banisterfiend>
hehe
dhruvasagar has joined #ruby
acrussell has joined #ruby
corehook_ has joined #ruby
johnrlive has joined #ruby
mansi has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
cads has joined #ruby
mansi has quit [Read error: Connection reset by peer]
acrussell has left #ruby [#ruby]
mansi has joined #ruby
<Brando753>
Whats the best way to convert a bunch of images to a single PDF? I was using the RMagick library but it kept failing and was also using an insane amount of memory >3GB for a 74MB pdf file
tatsuya__ has joined #ruby
DomKM has joined #ruby
cburyta has joined #ruby
freeayu has quit [Remote host closed the connection]
lyanchih has joined #ruby
Vert has quit [Read error: Connection reset by peer]
enebo has joined #ruby
akells` has joined #ruby
cburyta has quit [Remote host closed the connection]
cburyta has joined #ruby
rhys has joined #ruby
harrymoreno_ has quit [Ping timeout: 264 seconds]
singingwolfboy has joined #ruby
theRoUS has joined #ruby
MrZYX|off is now known as MrZYX
kreantos has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 252 seconds]
jonahR has quit [Quit: jonahR]
pipework has joined #ruby
jtharris has joined #ruby
tbrock has joined #ruby
khushildep has joined #ruby
mfollett has joined #ruby
qohelet_ has quit [Quit: qohelet_]
tkuchiki has quit [Remote host closed the connection]
tbrock has quit [Client Quit]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
tbrock has joined #ruby
fomatin has joined #ruby
kil0byte has joined #ruby
codecop has quit [Remote host closed the connection]
nari has quit [Ping timeout: 252 seconds]
thams has joined #ruby
bradhe has joined #ruby
Berend_ has joined #ruby
banisterfiend has quit [Remote host closed the connection]
Berend_ has left #ruby [#ruby]
tylersmith has joined #ruby
thams has quit [Quit: thams]
apod has quit [Quit: apod]
teddyp1cker has joined #ruby
tagrudev has quit [Remote host closed the connection]
cads has quit [Ping timeout: 240 seconds]
myappleguy has joined #ruby
apod has joined #ruby
MrPoT4tO_ has joined #ruby
Al__ has quit [Quit: Al__]
bradhe has quit [Ping timeout: 268 seconds]
_striker_ has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
olivier_bK has joined #ruby
<olivier_bK>
how i can check the first caractere of all lign on file
<olivier_bK>
how i can check the first caractere for each lign ?
jesly has quit [Client Quit]
jesly2 has joined #ruby
zeade has quit [Quit: Leaving.]
_striker_ has quit [Ping timeout: 268 seconds]
elaptics is now known as elaptics`away
<singingwolfboy>
in Ruby, is there a way to import just one function from another file? like `from foo import bar` in Python?
pootler__ has quit [Ping timeout: 264 seconds]
pootler_ has quit [Ping timeout: 264 seconds]
fuleo has quit []
redgirl has quit [Quit: This computer has gone to sleep]
jdunck has quit [Quit: Computer has gone to sleep.]
fess has quit [Read error: Connection reset by peer]
bionhart has quit [Ping timeout: 246 seconds]
astegman has joined #ruby
<burlyscudd>
singingwolfboy: Ruby doesn't really think in those terms
adkron has joined #ruby
_maes_ has joined #ruby
jrajav has joined #ruby
<burlyscudd>
singingwolfboy: you can include a module, which will (depending on how its created) extend the calling class/module in certain ways
girija has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
<burlyscudd>
singingwolfboy: you can do a require to load things that are declared in the load path or that you specify w/ a filesystem path
MissionCritical has quit [Ping timeout: 256 seconds]
<burlyscudd>
you can do a "load" to do kind of a dumb require
<burlyscudd>
singingwolfboy: are you trying to construct some behavior from an existing module, or make your own?
vlad_starkov has quit [Remote host closed the connection]
<banisterfiend>
singingwolfboy: you can in ruby 2.0, but not in 1.9.*
Guest90939 has quit [Quit: ばいばい]
raddazong has quit [Quit: bbl]
<burlyscudd>
banisterfiend: ohh snap -- how? this is somethign I was obviously unaware of
corehook_ has quit [Ping timeout: 276 seconds]
uxp has quit [Remote host closed the connection]
arya_ has quit []
ffio has joined #ruby
elaptics`away is now known as elaptics
_ffio_ has quit [Ping timeout: 252 seconds]
DomKM has quit [Quit: Leaving.]
Sherwyn has quit [Remote host closed the connection]
Appineer has joined #ruby
<banisterfiend>
burlyscudd: it's not that straight forward, one sec ill show u
singingwolfboy has quit [Quit: singingwolfboy]
ioNull has joined #ruby
ioNull has quit [Max SendQ exceeded]
_carloslopes has joined #ruby
chattmatt has joined #ruby
<burlyscudd>
banisterfiend: seems odd given that all of ruby's constructs like this assume that you want to do some OOP-y thing like mixin, etc -- i.e. that the thing you're grabbing is going to alter your class behavior
Dave-_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
nomenkun has quit [Remote host closed the connection]
devoldmx3 has quit [Client Quit]
jesly1 has joined #ruby
threesome has quit [Read error: Operation timed out]
thams has joined #ruby
devoldmx3 has joined #ruby
singingwolfboy has quit [Quit: singingwolfboy]
bradhe has joined #ruby
machuga is now known as machuga|away
razi has joined #ruby
axsuul has quit [Quit: axsuul]
tylersmith has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
spider-mario has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
chandankumar has quit [Quit: Leaving]
ckrailo has joined #ruby
jprovazn has joined #ruby
dhruvasagar has joined #ruby
leonidlm has quit [Ping timeout: 246 seconds]
b0oh has left #ruby [#ruby]
bradhe has quit [Ping timeout: 245 seconds]
admin0 has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
mklappstuhl has joined #ruby
pootler_ has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
niklasb has quit [Ping timeout: 252 seconds]
jesly1 has quit [Quit: Leaving.]
bigoldrock has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Ping timeout: 252 seconds]
boblu has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
zai has quit [Read error: Connection reset by peer]
malkomalko has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 264 seconds]
Tawnii has joined #ruby
JustinAiken has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
sammmmm has quit [Quit: sammmmm]
<chattmatt>
has anyone experienced timeouts with intense sidekiq jobs? i find both execution timeouts and postgres SSL timeouts… curious if its a memory lock or process crash, or any insights really on how to discover the root cause
Andreo has joined #ruby
stonevil has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
singingwolfboy has joined #ruby
axsuul has joined #ruby
sventon_ has joined #ruby
ner0x has joined #ruby
DestinyAwaits has joined #ruby
<MrZYX>
hm, sidekiq removed the job timeout feature because you basically can't do that threadsafe, for the same reason java dropped Thread.stop for example
sventon has quit [Ping timeout: 264 seconds]
<MrZYX>
for postgres dunno, maybe some connection pool issue
pootler__ has joined #ruby
singingwolfboy has quit [Client Quit]
stonevil has joined #ruby
thesheff17 has quit [Remote host closed the connection]
bradhe has joined #ruby
singingwolfboy has joined #ruby
elake is now known as etank
MrPoT4tO_ has quit [Read error: Connection reset by peer]
kayloos has quit [Remote host closed the connection]
bradhe has joined #ruby
samuel02 has quit [Remote host closed the connection]
Giorgio has joined #ruby
singingwolfboy has quit [Client Quit]
Shirakawasuna has joined #ruby
Shirakawasuna2 has joined #ruby
kil0byte_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 260 seconds]
<soukihei>
I am trying to write entries to syslog using Syslog.open, however only a fraction of the log entries I create actually are written to disk. How can I flush out the buffer to ensure they are written to disk?
razi has quit [Quit: Leaving.]
JumpMast3r has joined #ruby
Shirakawasuna2 has quit [Read error: Connection reset by peer]
razi has joined #ruby
ddd_ is now known as ddd
freerobby has quit [Quit: Leaving.]
mklappstuhl has joined #ruby
jesly has quit [Ping timeout: 264 seconds]
snearch has joined #ruby
DomKM has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
ntus1017 has joined #ruby
johnnyfuchs has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
bradhe has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
bradhe has joined #ruby
timkohrumel has joined #ruby
dankest has joined #ruby
ssickle has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
akemrir has quit [Ping timeout: 252 seconds]
mocfive has joined #ruby
andikr has quit [Remote host closed the connection]
IrishGringo has joined #ruby
Michae___ has joined #ruby
tvw has quit []
Seus has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
<aedorn>
I was pretty sure the standard syslog wasn't buffered (*which is why there's a separate buffered syslogger and logger::syslog))
axsuul has quit [Quit: axsuul]
statarb3 has joined #ruby
statarb3 has joined #ruby
[Fudge] has joined #ruby
<[Fudge]>
hey, quite new to ruby, like it so far though :)
enebo has quit [Quit: enebo]
<[Fudge]>
have an issue with String's though
bradhe has quit [Ping timeout: 264 seconds]
<ddd>
such as?
machuga|away is now known as machuga
statarb3 is now known as Prooshot
mocfive has quit [Ping timeout: 240 seconds]
cespare has joined #ruby
<[Fudge]>
"Hello!"[0, 2] would return "Hel", however doing things such as "Hello!"[0] would not return "H"
<[Fudge]>
instead it returns a number (unsure what that is still)
<canton7>
[Fudge], upgrade your ruby
<canton7>
1.8 is going end-of-life very very shortly. It's ancient
freerobby has joined #ruby
<[Fudge]>
I'm not aware of what version I'm using, but ok :)
<ccooke>
[Fudge]: Older versions of Ruby returned the character as a number
<terrellt>
[Fudge]: ruby --version
Prooshot is now known as statarb3
<[Fudge]>
ah
<[Fudge]>
yep, 1.8.7
<canton7>
in never versions of ruby, you can get the same with e.g.
<apeiros>
[Fudge]: and you'd use "Hello"[0,1] there
<apeiros>
also, "Hello!"[0, 2] returns "He", not "Hel"
<apeiros>
it's offset, length
Voodoofish430 has joined #ruby
stef_204 has joined #ruby
<apeiros>
0..2 would return "Hel", as that's offset..offset
kurtf has joined #ruby
<ccooke>
[Fudge]: returning the number is more like C, where a character is a short integer
sventon_ has quit [Ping timeout: 252 seconds]
<[Fudge]>
ccooke ah, I see
<[Fudge]>
out of curiosity then, in 1.8.x, how would you get the char represented as a string?
daniel_- has quit [Ping timeout: 252 seconds]
ianbrandt has joined #ruby
<r0bgleeson>
and 0...2 would return "he"
saarinen has joined #ruby
tjbiddle has quit [Ping timeout: 268 seconds]
<r0bgleeson>
dont you love ruby
<ccooke>
[Fudge]: so a string in C is actually an array of chars, which are integers.
citizensinspace has joined #ruby
Fraeon has joined #ruby
<ccooke>
[Fudge]: So basically both ways are good and "as expected" to some people, but moving to returning the character as a string is a better OO encapsulation :-)
bradhe has joined #ruby
<r0bgleeson>
its nothing to do with OO encapsulation IMO
<r0bgleeson>
it just makes more sense
<[Fudge]>
ccooke: ah :) I'm used to the way it is in JS I guess, that's how I thought it would work
JustinAiken has quit [Quit: Leaving.]
<[Fudge]>
didn't have any ruby guides, didn't know what I was doing
<apeiros>
I'm with r0bgleeson there - that's unrelated to OO
<apeiros>
a method will return what makes sense for that method
<ccooke>
r0bgleeson: both ways make sense, but returning a number breaks the principle of least surprise
<apeiros>
String#=~ doesn't return a string either, it wouldn't make sense.
<r0bgleeson>
ccooke: hence "makes more sense"
shvelo has joined #ruby
girija has quit [Ping timeout: 264 seconds]
<apeiros>
lets say "it's more consistent"
<apeiros>
as with the new behavior, [] always returns a string
<ccooke>
apeiros: agreed.
sr78ger has joined #ruby
<apeiros>
anyway, I still want my ord(offset)
<heftig>
IMO ruby should have gone the everything-is-UCS-4 way instead of tagging strings with encodings. but I suppose that would have broken compat too much
generalissimo has quit [Remote host closed the connection]
<`p>
I'm fairly new to ruby and I'm trying to write a program that removes a specific string from filenames in a directory that contain a particular string
<shvelo>
Hi, is it really worth upgrading to Ruby2.0? Last time I faced problems with gems
<apeiros>
shvelo: IME only *very* few gems have issues
mosez has quit [Ping timeout: 248 seconds]
cofin has quit [Quit: cofin]
razi has quit [Ping timeout: 252 seconds]
pcarrier_ has quit [Quit: Computer has gone to sleep.]
<apeiros>
whether it's worth to upgrade is on you to determine, though
<apeiros>
IMO it is
Apane has quit [Ping timeout: 256 seconds]
thams has joined #ruby
<apeiros>
the world doesn't move backwards, the price to upgrade is little (especially compared to the 1.8 -> 1.9 transition)
jcromartie has joined #ruby
myappleguy has quit [Quit: Leaving.]
mikepack has joined #ruby
<r0bgleeson>
oh wow, p-195 already
mosez has joined #ruby
<r0bgleeson>
im still on 1.9.3
<shvelo>
I was having problems on x64 Windows
<shvelo>
unable to build native gems
<apeiros>
I just recently moved my first app written for my current employer to rails 3.2 & ruby 1.9, moving it to ruby 2.0 next week :)
<apeiros>
since it "just works"
myappleguy has joined #ruby
<r0bgleeson>
im about to try ruby 2.0 on work app now
<apeiros>
(well, had to add 'iconv' to the gemfile, but that's because some stupid gem still depends on that…)
<r0bgleeson>
yeah
<r0bgleeson>
i think the biggest challenge will be 'bundle install' :p
<r0bgleeson>
but maybe not
<r0bgleeson>
it could just work :)
Apane has joined #ruby
jalcine has quit [Excess Flood]
<shvelo>
btw is there a good alternative to Socket.io in Ruby?
devoldmx has joined #ruby
danshultz has joined #ruby
noname001 has quit [Ping timeout: 268 seconds]
<quazimodo>
Kreas: they give out leather jackets :(
<quazimodo>
i didnt get one :/
mark_locklear has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
freerobby has quit [Quit: Leaving.]
w400z has quit []
<terrellt>
shvelo: I think there's a ruby_sockets gem...one sec.
mfollett has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
mosez has quit [Ping timeout: 264 seconds]
Es0teric has joined #ruby
kristiandelay has quit [Remote host closed the connection]
olleh__ has joined #ruby
mosez has joined #ruby
<terrellt>
Nope, I got nothin'. It's always a pain to find.
sr78ger has quit [Quit: Qui]
Apane has quit [Ping timeout: 245 seconds]
ferdev has quit [Quit: ferdev]
crazymykl has joined #ruby
kil0byte has joined #ruby
sventon has joined #ruby
Es0teric has quit [Client Quit]
<shvelo>
ok I'll do it in Nodejs, I'm writing an Arduino IDE with HTML frontend
devoldmx3 has joined #ruby
girija has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<apeiros>
terrellt: yes, but only for demonstration purposes.
<terrellt>
Of course.
singingwolfboy has left #ruby [#ruby]
<apeiros>
heh, if only… there's many to whom that isn't self evident :(
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
cespare has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
interactionjaxsn has quit [Ping timeout: 268 seconds]
v0n has joined #ruby
<Morrolan>
And for what would you use it other than for providing an example? oO
<Morrolan>
eval-in isn't exactly my favourite interactive shell. :P
dhruvasagar has joined #ruby
Hanmac1 has joined #ruby
myappleguy has quit [Quit: Leaving.]
Zai00_ has quit [Quit: Zai00_]
saarinen has joined #ruby
jtharris has joined #ruby
LargePizza has joined #ruby
Hanmac2 has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
timonv has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
LargePizza has quit [Killed (idoru (Spam is off topic on freenode.))]
<bricker>
I'm trying to find the most succinct way to say, "If the object responds to this method, then make sure that method is truthy before running the code. If it doesn't respond to the method, then run the code." Is there a better way than:
<bricker>
if !content.respond_to?(:published?) || (content.respond_to?(:published?) && content.published?)
<bricker>
That just seems like a mess to me
<Hanmac>
apeiros: did you know that D::(xyz) is valid ruby code? ;P
ericbmer1itt has quit [Remote host closed the connection]
gasbakid has joined #ruby
<Hanmac>
>> class D;def self.call(*);"i have been called";end;end; D::("args")
sventon has quit [Remote host closed the connection]
citizensinspace has left #ruby [#ruby]
<pontiki>
it doesn't actually look that impressive, as a hacker
mfollett has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
jerius_ has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
ArchBeOS has left #ruby [#ruby]
paissad_ has joined #ruby
geggam has joined #ruby
Shirakawasuna has quit [Quit: Leaving]
jerius has quit [Ping timeout: 276 seconds]
girija has quit [Read error: Operation timed out]
stonevil has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
tjbiddle has joined #ruby
Michae___ has quit [Remote host closed the connection]
myappleguy has joined #ruby
postmodern has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
Michae___ has joined #ruby
stkowski has quit [Quit: stkowski]
<epitron>
atmosx: hah.. neat idea
<epitron>
it's really just a bunch of trials though :)
<epitron>
some of them are just coupons
<epitron>
like mongolab
xardas has quit [Ping timeout: 252 seconds]
<epitron>
but i bet you that sells pretty well
jbpros has joined #ruby
akells` has joined #ruby
<atmosx>
yeah
paissad_ has quit [Ping timeout: 268 seconds]
<epitron>
that whole "not having to pick anything" selling idea is great
<epitron>
if you could to pick 5 or 8 services for some savings, nobody would bother
<epitron>
s/5 or 8/5 of 8/
<epitron>
-to
* epitron
goes to get his glasses
speakingcode-wor has quit [Quit: Lost terminal]
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
c0rn has quit [Ping timeout: 245 seconds]
bobbyz has joined #ruby
mikepack has joined #ruby
mfollett has joined #ruby
rickruby has joined #ruby
gildo has quit [Ping timeout: 276 seconds]
bionhart has quit [Remote host closed the connection]
c0rn has joined #ruby
Es0teric has joined #ruby
DomKM has quit [Quit: Leaving.]
cburyta has joined #ruby
bionhart has joined #ruby
bobbyz has quit [Ping timeout: 252 seconds]
zigomir has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
pitzips has joined #ruby
danshultz has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
moted has quit [Quit: moted]
kayloos has joined #ruby
richiebkr has quit [Quit: richiebkr]
ananthakumaran has quit [Quit: Leaving.]
gildo has joined #ruby
tommyvyo has quit [Quit:]
alx- has quit [Quit: alx-]
scottmey has joined #ruby
athst has quit [Quit: athst]
airlok has quit [Remote host closed the connection]
ivanoats has joined #ruby
jeffreylevesque_ has joined #ruby
grim_crypt has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vwoo has joined #ruby
jeffreylevesque has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 245 seconds]
<grim_crypt>
anyone got a minute to help with a ruby setup question?
interactionjaxsn has joined #ruby
scipi0 has joined #ruby
mahlon__ is now known as mahlon
richiebkr has joined #ruby
<atmosx>
grim_crypt: shoot
freerobby has quit [Quit: Leaving.]
<grim_crypt>
ok so I have a centos6.4 machine and tried to upgrade from 2.2.3 to 2.3.1
<grim_crypt>
I ran into something with my versions of base ruby (via RPM from epel
Taranis has joined #ruby
jkline has joined #ruby
cj3kim has joined #ruby
<scipi0>
hello. I am trying to develop a "dsl" for automatic tasks executed based on the day of the week. I have succesfully made a working class but when I try to load files we see a problem. here I linked the class, file to be loaded, and output: https://gist.github.com/Benjmin/5776528
<atmosx>
grim_crypt: I have two questions
<grim_crypt>
so I read someone to just remove all that from epel/rpm and then get this install via rvm
<scipi0>
hello. I am trying to develop a "dsl" for automatic tasks executed based on the day of the week. I have succesfully made a working class but when I try to load files we see a problem. here I linked the class, file to be loaded, and output: https://gist.github.com/Benjmin/5776528
bionhart has quit [Remote host closed the connection]
myappleguy has quit [Quit: Leaving.]
pitzips has quit [Ping timeout: 240 seconds]
rsahae has joined #ruby
asteve has quit [Ping timeout: 246 seconds]
Dummies_freelanc has quit [Ping timeout: 264 seconds]
bobbyz has quit [Read error: Operation timed out]
codesoda has joined #ruby
instinkt has quit [Ping timeout: 240 seconds]
<scipi0>
nevermind
cburyta has quit [Remote host closed the connection]
jnix_ has left #ruby [#ruby]
Hanmac has quit [Read error: Operation timed out]
jnix has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.1]
vwoo has quit [Ping timeout: 264 seconds]
cburyta has joined #ruby
<Morrolan>
scipi0: Reinventing the wheel, aren't you. :P
alex__c2022 has joined #ruby
vwoo has joined #ruby
werdnativ has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
<pontiki>
it's a good exercise
bobbyz has joined #ruby
vwoo has quit [Ping timeout: 246 seconds]
echevemaster is now known as _echevemaster
Es0teric has joined #ruby
icole has joined #ruby
tatsuya_o has joined #ruby
airlok has joined #ruby
rickruby has joined #ruby
harrymoreno_ has joined #ruby
tomzx has quit [Quit: tomzx]
akells` has quit [Remote host closed the connection]
airlok has quit [Remote host closed the connection]
airlok_ has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
lele has quit [Ping timeout: 260 seconds]
Es0teric has quit [Client Quit]
Meatant has joined #ruby
freerobby has joined #ruby
Kar- has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
vwoo has joined #ruby
phantasm66 has quit [Client Quit]
_echevemaster has quit [Quit: Leaving]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
Hanmac has joined #ruby
realDAB has quit [Quit: realDAB]
ELLIOTTCABLE is now known as purr
atmosx has quit [Quit: Computer has gone to sleep.]
Hanmac2 has quit [Ping timeout: 260 seconds]
rubik has joined #ruby
workmad3 has joined #ruby
poincare1011 has joined #ruby
purr is now known as ELLIOTTCABLE
x1337807x has joined #ruby
emmanuelux has joined #ruby
<rubik>
hello
yalue has quit [Quit: Leaving]
slainer68 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lele has joined #ruby
tw1sted has quit [Quit: tw1sted]
Asher has quit [Quit: Leaving.]
<poincare1011>
Hi guys. I didn't have any luck with #rubyonrails so I'm asking here. I'm trying to do some long polling, here's my code: http://pastie.org/8040228. The problem is that both Thin and WebBrick are locking up if the the request to the server is left pending - they won't serve any other requests. Is there any way I can solve this?
bionhart has joined #ruby
Asher has joined #ruby
ivanoats has joined #ruby
ryannielson has quit [Quit: ryannielson]
<poincare1011>
anyone at all?
Michae___ has quit [Remote host closed the connection]
<rubik>
So
<rubik>
You can run the application?
vwoo has quit [Ping timeout: 245 seconds]
Michae___ has joined #ruby
<graft>
hey, is there a nice gem or something for converting a String automatically?
atmosx has joined #ruby
<poincare1011>
rubik: me?
vwoo has joined #ruby
<rubik>
yes
atmosx has quit [Client Quit]
sambao21 has joined #ruby
atmosx has joined #ruby
<rubik>
graft. What you want convert into string?
myappleguy has joined #ruby
<poincare1011>
rubik: I can run it, yes.
viszu has quit [Quit: Leaving.]
<poincare1011>
rubik: but, it keeps getting frozen because of hanging requests.
<rubik>
you use old ruby, I see
olleh__ has quit [Ping timeout: 250 seconds]
bradhe has quit [Remote host closed the connection]
tonini has joined #ruby
<poincare1011>
rubik: no, I don't.
bamdad has joined #ruby
<kenichi>
poincare1011: it seems to the the web request should return fast, and the requester should be doing the sleeping
<poincare1011>
kenichi: but that's not how long polling works...
chipotle_ has joined #ruby
chipotle_ has quit [Remote host closed the connection]
<rubik>
I see
<kenichi>
poincare1011: ah i see what you mean
plechazunga has joined #ruby
<rubik>
I see that your count is equal initial_count
vwoo has quit [Ping timeout: 252 seconds]
<rubik>
Do you see it?
<rubik>
And your condition should not be complied
vwoo has joined #ruby
<poincare1011>
rubik: what
<fryguy>
poincare1011: you need to change what you are using to serve content. that has more spare resources to hold onto long running connections.
<rubik>
in line 8
<fryguy>
eventmachine would be appropriate to look at
<rubik>
and
<kenichi>
rubik: presumably something else adds a data_piece, and `feed.data_piece.count` goes up
<fryguy>
poincare1011: or evented webservers, etc. all but the most modern versions of rails aren't really servable as evented though because they rely on some random global state still (and even though rails kind of defaults to the right mode in rails4, some of your gems might still be messing with this).
plechazunga has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
<poincare1011>
fryguy: so, in general, is Rails a shitty tool to use for realtime apps?
<r0bgleeson>
poincare1011: yes
<fryguy>
poincare1011: that's probably accurate
airlok_ has quit [Remote host closed the connection]
<kenichi>
i would say so
pitzips has joined #ruby
atmosx has quit [Remote host closed the connection]
Turn_Left has joined #ruby
tonini has quit [Remote host closed the connection]
<benlieb>
I'm trying to figure out how to write one liners on the bash console and pipe to ruby but I can't figure out how to get the input. This isn't working: echo "My String" | ruby -e "#{STDIN.read.first.downcase}"
ozsekd is now known as ausek
ausek has quit [Changing host]
ausek has joined #ruby
<Godd2>
Is it codesmell to have 27 require_relatives at the beginning of a file?
<benlieb>
how can I get the piped input in ruby?
<santana>
nevermind, got my answer
pipework has quit [Ping timeout: 276 seconds]
bubblehead has quit [Remote host closed the connection]
jamesaxl_ has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
<grim_crypt>
fryguy: it was permissions on my gems… fix them up and all is good
axsuul has quit [Quit: axsuul]
horofox_ has joined #ruby
stonevil has joined #ruby
horofox_ has quit [Client Quit]
vwoo has quit [Ping timeout: 252 seconds]
horofox_ has joined #ruby
santana has quit [Quit: Saliendo]
jamesaxl has joined #ruby
jamesaxl_ has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Remote host closed the connection]
vwoo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Davey has quit [Quit: Computer has gone to sleep.]
astegman has quit [Quit: too busy]
agent_white has joined #ruby
moted has joined #ruby
huoxito has quit [Quit: Leaving]
hhtp has joined #ruby
havenwood has joined #ruby
LennyLinux has joined #ruby
machuga is now known as machuga|away
LennyLinux has quit [Read error: Connection reset by peer]
hhtp has left #ruby [#ruby]
LennyLinux has joined #ruby
robscomputer_ has joined #ruby
Michae___ has quit [Read error: Connection reset by peer]
dcope has quit [Read error: Connection reset by peer]
robscomputer has quit [Read error: Connection reset by peer]
dcope has joined #ruby
kofno has quit [Remote host closed the connection]
kristiandelay has quit [Remote host closed the connection]
Appineer has quit [Remote host closed the connection]
agent_white has quit [Quit: Lost terminal]
cads has joined #ruby
bradhe has joined #ruby
pothibo has quit [Quit: pothibo]
axsuul has joined #ruby
agent_white has joined #ruby
robscomputer_ has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
robscomputer has joined #ruby
airlok has joined #ruby
joschi has quit [Remote host closed the connection]
f0ster has joined #ruby
ldnunes has quit [Quit: Leaving]
joschi has joined #ruby
generalissimo has quit [Remote host closed the connection]
kil0byte has joined #ruby
chipotle_ has joined #ruby
jamesaxl_ has joined #ruby
reset has joined #ruby
vwoo has quit [Ping timeout: 245 seconds]
cofin has joined #ruby
_Renegade_ has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
_Renegade has quit [Ping timeout: 252 seconds]
_Renegade_ is now known as _Renegade
jamesaxl has quit [Ping timeout: 252 seconds]
jbpros has quit [Quit: jbpros]
b0oh has joined #ruby
Michae___ has joined #ruby
vwoo has joined #ruby
kurtf has quit [Quit: Computer has gone to sleep.]
cburyta has quit [Remote host closed the connection]
dcunit3d has joined #ruby
freerobby has quit [Quit: Leaving.]
BeLucid has quit [Ping timeout: 248 seconds]
F1skr has quit [Quit: WeeChat 0.4.1]
cburyta has joined #ruby
johnrlive has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
johnrlive has joined #ruby
BeLucid has joined #ruby
agent_white has quit [Quit: leaving]
Michae___ has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
Lubinski has quit [Quit: Leaving]
vwoo has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
Vert has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
kofno has joined #ruby
vwoo has joined #ruby
reset has quit [Read error: Operation timed out]
synthetix has quit [Ping timeout: 268 seconds]
cburyta has quit [Write error: Broken pipe]
Michae___ has joined #ruby
jdunck has quit [Ping timeout: 245 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
myappleguy has joined #ruby
_Renegade has quit [Quit: _Renegade]
vlad_starkov has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
_Renegade has joined #ruby
sailias has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
kofno has joined #ruby
froy has quit [Remote host closed the connection]
froy has joined #ruby
fuzzyhorns has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 268 seconds]
vwoo has quit [Ping timeout: 264 seconds]
bklang has joined #ruby
Giorgio has joined #ruby
dcunit3d has joined #ruby
codecop has quit [Remote host closed the connection]
slash_nick has joined #ruby
slash_nick has joined #ruby
brennanMKE has joined #ruby
jonahR has quit [Quit: jonahR]
<bklang>
Hello all, I've got a question about C extensions. I've got a method defined (#each) that is mapped to a C function. Within that C function I call into a library that takes a callback as one of the arguments. I need to get the handle on "self" available in that callback function somehow, but I'm short on ideas.
vwoo has joined #ruby
<banisterfiend>
bklang: you call into a ruby or c library?
<nesoi>
hello... I just moved my source file from one folder to another, and suddenly it doesn't work. I checked and there are not hardcoded directory paths, so I'm not sure what's going on. It is failing on a mysql connect, and I verified that the server is up and active. Could someone take a look at the error messages and give me a hint? https://gist.github.com/anonymous/b9112d3c9c9899109415
supergiantrobot has quit [Ping timeout: 264 seconds]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banisterfiend>
bklang: i'll be curious to know whether that works ;)
horofox_ has quit [Quit: horofox_]
msk5293 has quit [Ping timeout: 248 seconds]
breakingthings has quit [Quit: breakingthings]
thams has joined #ruby
vwoo has joined #ruby
Michae___ has joined #ruby
joelteon has quit [Ping timeout: 248 seconds]
<banisterfiend>
there used to be more exotic ways of reading off self, but i think most of the techniques i knew of have been blocked by the functions turning private
Seus has quit []
alexwh has left #ruby [#ruby]
Kabaka has quit [Remote host closed the connection]
sethetter has quit [Quit: Lost terminal]
pothibo has joined #ruby
pitzips has quit [Quit: Leaving]
RORgasm_ has quit [Read error: Connection reset by peer]
Kabaka has joined #ruby
<bklang>
banisterfiend: getting to a point where I can test shortly :)
burlyscudd has quit [Ping timeout: 256 seconds]
RORgasm has joined #ruby
byprdct has joined #ruby
lunarjar has joined #ruby
<nesoi>
hello... I just moved my source file from one folder to another, and suddenly it doesn't work. I checked and there are not hardcoded directory paths, so I'm not sure what's going on. It is failing on a mysql connect, and I verified that the server is up and active. Could someone take a look at the error messages and give me a hint? https://gist.github.com/anonymous/b9112d3c9c9899109415
<banisterfiend>
np
brennanMKE has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
<nesoi>
banisterfiend : maybe? :)
Speed has joined #ruby
<banisterfiend>
nesoi: have you tried rebooting? ;)
RORgasm has quit [Remote host closed the connection]
poincare1011 has quit [Read error: Operation timed out]
<nesoi>
banisterfiend : hmm... no I haven't. But I rebooted fairly recently
tw1sted has joined #ruby
mikepack has quit [Remote host closed the connection]
<nesoi>
the error messages aren't particularly enlightening then...?
chichou_ has joined #ruby
poincare101 has joined #ruby
b0oh has quit [Quit: Leaving.]
jamel has quit [Remote host closed the connection]
kenneth has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
<bklang>
hm, any ideas why Bundler won't recompile my extension on "gem install"? it works fine if I build the gem and then gem install that
<nesoi>
ok, rebooting
horofox_ has joined #ruby
nesoi has quit [Remote host closed the connection]
zigomir has quit [Read error: Operation timed out]
obs has quit [Quit: Konversation terminated!]
robscomputer_ has joined #ruby
havenwood has quit [Remote host closed the connection]
robscomputer has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
scipi0 has quit [Ping timeout: 264 seconds]
scipi0 has joined #ruby
dpritchett has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
splittingred has quit [Quit: splittingred]
Davey has joined #ruby
grim_crypt has left #ruby [#ruby]
jtharris has quit [Quit: WeeChat 0.4.0]
<scipi0>
I have been having troubles all day loading files in instance eval. Is there a known issue using "load" or "require" in a block passed by instance_eval?
kristian_ has joined #ruby
mklappstuhl has joined #ruby
horofox_ has quit [Client Quit]
emergion has joined #ruby
vwoo has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 276 seconds]
vwoo has joined #ruby
Cyrus has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
jimg has joined #ruby
Turn_Left has quit [Read error: Connection reset by peer]
Left_Turn has joined #ruby
kristian_ has quit [Ping timeout: 264 seconds]
Michae___ has quit [Remote host closed the connection]
w400z has joined #ruby
joelteon has joined #ruby
msk5293 has joined #ruby
nesoi has joined #ruby
<nesoi>
hmm... I rebooted and still the same errors banisterfiend
<nesoi>
bklang : would you be able to take a quick look at https://gist.github.com/anonymous/ab35a09e43471a3e86bc and let me know what might be going on? This was a working program and I only moved it from one directory to another. I checked the code and there are no noticable directory dependencies
cmarques has quit [Ping timeout: 264 seconds]
Oddnoun has joined #ruby
<terrellt>
"Additionally, an empty array is returned when the starting index for an element range is at the end of the array."
<nesoi>
or terrellt... or anyone who might have an insight!
jamesaxl has joined #ruby
<bklang>
nesoi: that error message has nothing to do with directories. It's trying to connect to MySQL but can't. If I had to guess you, you have the wrong credentials. Perhaps the script is trying to load credentials from some file in the same diretory?? I have no idea without seeing what is in mws.rb
c0rn has joined #ruby
emergion has joined #ruby
mljsimone is now known as mljsimone|away
<nesoi>
bklang : the credentials are in the yml file, which is in the same relative position as before, and I have not changed anything in the configuration
<fierycatnet>
still cant understand why would it return anything if array has 4 elements, so [4, 100] is of bound?
emergion has quit [Client Quit]
<bklang>
I have no idea without being able to see mws.rb
<bklang>
fierycatnet: because you're asking for a slice of the array. It's just that the array has no data within that slice, so you're getting back an empty set
<bklang>
if you were to do array[1,2] you would get back an array with 2 elements in it
<bklang>
starting at the second element
<terrellt>
fierycatnet: array[4] was valid, so it returned that.
<fierycatnet>
so why would it return nil instead of [] if I do [5, 100]
<terrellt>
fierycatnet: Because the first element is nil in the case of [5,100]
pcarrier_ has joined #ruby
<bklang>
nesoi: see what data you have in dbconfig and make sure it is correct
<bklang>
check the hostname or IP, the port, the username, the password, the database name
<bklang>
if any are wrong you'll get that error
johnnyfuchs has quit [Ping timeout: 276 seconds]
<nesoi>
bklang : it's the same data which worked yesterday before I moved the directory tree!
<fierycatnet>
Call me brain dead but we have array['one', 'two' ,'three' ,'four'] with index starting at 0, so its 0,1,2,3 if I ask array[4, 100] why would it even consider that range and not return nil
<nesoi>
also, it doesn't fail on the establish_connection, but on the .first
<nesoi>
which seems odd maybe?
<bklang>
it's probably just delaying the connection until it needs it. THe error is in real_connect, which is the attempt to connect to the database
<bklang>
just make sure dbconfig is even getting read
Bleah has quit [Ping timeout: 260 seconds]
<bklang>
if your hunch about directory structure is right, perhaps dbconfig is nil somehow
gyre007 has quit [Read error: Operation timed out]
<terrellt>
nesoi: Your problem is your config isn't loading. I don't know, you didn't show your code, but yeah.
Davey has quit [Quit: Computer has gone to sleep.]
<bklang>
fierycatnet: actually, that surprises me too. I'm with you, it seems like it should return nil. OR that array[5, 100] should also return an empty set
mansi has quit [Remote host closed the connection]
<bklang>
but the behavior feels inconsistent
<fierycatnet>
yeah exactly
<fierycatnet>
I guess thats why they call it a koan
<bklang>
no idea, hadn't bumped into that one before
tommyvyo has joined #ruby
mansi has joined #ruby
cr3 has quit [Quit: leaving]
airlok has joined #ruby
generalissimo has joined #ruby
poincare101 has quit [Ping timeout: 264 seconds]
<bklang>
time to jet, later all
<terrellt>
The spec specifically says that the end of an array, that is element array.length, is always an empty set.
Andreo_ has joined #ruby
vwoo has quit [Ping timeout: 245 seconds]
daniel_- has quit [Quit: WeeChat 0.4.1]
<nesoi>
terrellt: thanks! if the YAML.load_file was failing though, wouldn't that signal an error?
<bklang>
ok so can you make a connect to the database server with those credentails separately?
<bklang>
I know you said it did work before, I'm asking if you can do it right now
lockweel has quit [Remote host closed the connection]
arya has joined #ruby
slainer68 has quit [Remote host closed the connection]
predator217 has quit [Ping timeout: 260 seconds]
<nesoi>
bklang : yes, I can connect from the command line with those params!
<bklang>
ok, I have no idea then
<nesoi>
:(
mfollett has quit [Remote host closed the connection]
Giorgio has quit [Ping timeout: 268 seconds]
wsterling has quit [Remote host closed the connection]
<bklang>
nesoi: oh, I just had a thought: try changing "localhost" to "127.0.0.1" in your config
<nesoi>
that fixed it!
<nesoi>
thanks
<nesoi>
but why should it suddenly have needed that change??
mrsolo has quit [Quit: This computer has gone to sleep]
<bklang>
something else must have changed
<nesoi>
hm
<nesoi>
very odd
<bklang>
mysql treats the value "localhost" specially. It attempts to optimize localhost connects by forcing them to use a socket rather than a network connection
subbyyy has joined #ruby
<bklang>
you can get around that by using 127.0.0.1
richardjortega has quit [Quit: richardjortega]
<bklang>
sometimes mysql client libraries get the wrong path to the socket compiled in
moted has quit [Quit: moted]
<bklang>
or, if you have mysql client that is a different installation or a different version from the mysql server
<nesoi>
yeah, I ran into that b4 and actually had it set to 127.0.0.1 but somehow it wasn't set to that just now
<nesoi>
gremlins!
perun0 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx3 has joined #ruby
bradhe has quit [Remote host closed the connection]
<jkline>
if a gem has a shared object ( .so ) file, how does it get required?
kayloos has quit [Remote host closed the connection]
<jkline>
I have the rubygem19-json package installed, it puts files in /usr/share/gems1.9 and /usr/lib64/gems1.9
dcope_ has joined #ruby
<jkline>
require 'json' seems to work fine.
dcope has quit [Ping timeout: 276 seconds]
dpritchett has joined #ruby
<Brando753>
hey guys I need to use ruby to convert 150 PNG images into one multipage PDF, I originally used RMagick however it would consume something like 3~4GB of ram and then crash when only generating a 100mb pdf, any other suggestions on how to do this?
pskosinski has quit [Ping timeout: 240 seconds]
<bklang>
jkline: I'm not sure how to answer your question. Ruby has built in functionality to load compiled extensions to gems. Did you have a more specific question?
jonathanwallace has quit [Ping timeout: 260 seconds]
<jkline>
I am under the impression that $LOAD_PATH contains directories to be searched by require
<jkline>
so, I do not understand how require works when the files are in directories not in $LOAD_PATH
<bklang>
rubygems provides extra functionality to require to support loading files in gems
moted has joined #ruby
arya has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
johnrlive has joined #ruby
<jkline>
bklang: yeah, I think that is it. If I check $LOAD_PATH after I require a gem it has new directories prepended
<jkline>
I don' t know why I didn't notice that before.
<jkline>
Thanks!
mikepack has joined #ruby
digitalcake has joined #ruby
Michae___ has joined #ruby
Hanmac2 has joined #ruby
busybox42 has joined #ruby
devoldmx has joined #ruby
vwoo has quit [Ping timeout: 264 seconds]
danslo has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
niklasb has quit [Ping timeout: 246 seconds]
<digitalcake>
trying to learn how to write tests, working on a command line app with cucumber. Need a little guidance. My app is Conways game of life. my first feature is to start the game.
vwoo has joined #ruby
<digitalcake>
whats the best way to step "if game has not started" if its a command line app
<digitalcake>
or should I even bother given game has not been started?
ColKurtz has joined #ruby
ColKurtz has quit [Client Quit]
jimg has joined #ruby
<adramalech>
hey was wondering what is better fastthread or normal ruby threads?
devoldmx has quit [Remote host closed the connection]
<digitalcake>
fastthread has fast in its name :P
ColKurtz has joined #ruby
rickruby has quit [Ping timeout: 268 seconds]
johnrlive has quit [Read error: Operation timed out]
<adramalech>
lol okay... I was wondering if it had specific task beyond normal threading?
jimg has quit [Ping timeout: 252 seconds]
arthurstomp has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
awarner has quit [Remote host closed the connection]
bradhe has joined #ruby
mansi has joined #ruby
arthurstomp is now known as astomp
Soliah has joined #ruby
slainer68 has joined #ruby
tomzx has left #ruby [#ruby]
Asher has quit [Ping timeout: 260 seconds]
Asher1 has joined #ruby
dcope_ has quit [Ping timeout: 264 seconds]
vwoo has quit [Ping timeout: 252 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]