apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
klaut has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
Sawbones has quit []
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
SouL has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
toastynerd has joined #ruby
cocotton has joined #ruby
toastynerd has quit [Remote host closed the connection]
jhass is now known as jhass|off
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
MCDev has joined #ruby
dc_ has joined #ruby
thams has quit [Read error: Connection reset by peer]
bayed has quit [Quit: Connection closed for inactivity]
testcore has quit [Quit: [BX] He-Man uses BitchX. *HE HAS THE POOWWEEEEEEEEEERRRRRRRR!!!!!*]
thams has joined #ruby
ghr has joined #ruby
toastynerd has joined #ruby
dc__ has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
aspires has quit []
jay has quit []
ghr has quit [Ping timeout: 245 seconds]
JavaTheHut has joined #ruby
pu22l3r has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
aspires has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
thams has quit [Quit: thams]
ghostmoth has quit [Quit: ghostmoth]
skolman_ has quit [Remote host closed the connection]
slester has quit [Ping timeout: 268 seconds]
JoshGlzBrk has joined #ruby
<tejas-manohar> why is @username
SilkFox_ has joined #ruby
<tejas-manohar> not available at the last get
jxf has joined #ruby
mary5030 has quit [Remote host closed the connection]
reuben1982 has quit [Quit: reuben1982]
_Kerber0s_ has joined #ruby
reuben1982 has joined #ruby
reuben1982 has quit [Client Quit]
JavaTheHut has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
JoshGlzBrk has quit [Client Quit]
Kerber0s has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
recurrence has joined #ruby
adam_ is now known as adam12
SilkFox_ has quit [Ping timeout: 268 seconds]
<wallerdev> why would it be lol
charliesome has quit [Quit: zzz]
icebourg has joined #ruby
<wallerdev> oh does sinatra create member variables for :stuff ?
<wallerdev> havent used it in forever
<wallerdev> if its not there theres probably a different way to access those
jxf has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
emmesswhy has quit [Quit: Leaving]
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
soasme has joined #ruby
nanoyak has joined #ruby
yetanotherdave has quit [Ping timeout: 260 seconds]
slester has joined #ruby
tylerkern has quit [Quit: Connection closed for inactivity]
crdprink2 has joined #ruby
zz_karupa is now known as karupa
crdpink has quit [Ping timeout: 264 seconds]
mferrier has joined #ruby
<havenwood> tejas-manohar: are you trying to get at?: params[:username]
<havenwood> tejas-manohar: seems you should use a local variable `username`, no?
<havenwood> I'm confused what you're trying to do with the instance variable.
<tejas-manohar> havenwood: yeah, so instance var is only helping me get it in a view right?
<tejas-manohar> i need a way to make that accessible out of the do-end
<havenwood> tejas-manohar: i *think* there's no reason for it
<havenwood> tejas-manohar: if there is, i don't see it
<tejas-manohar> havenwood: i need it for the redirect :)
<havenwood> tejas-manohar: use a local variable, not an instance variable
<havenwood> tejas-manohar: it shouldn't be accessed outside that method
<postmodern> if i want to use closure with sprockets, but WITHOUT rails, which gem to i use?
nanoyak has quit [Quit: Computer has gone to sleep.]
<tejas-manohar> havenwood: ok that works, i need to be able to access username outisde of the method though
<tejas-manohar> *do-end
<tejas-manohar> i removed the @
<havenwood> tejas-manohar: i don't see why you'd want to?
<tejas-manohar> but i need to get the value of username in the last get ''
<havenwood> tejas-manohar: params[:username]
<havenwood> tejas-manohar: you are confuzled!
<tejas-manohar> OH OK
<tejas-manohar> lol
<tejas-manohar> no need for even making a var
<tejas-manohar> lol just put params in the redirect_to
<havenwood> postmodern: does just the plain sprockets gem not work outside rails? (i've no idea)
_maes_ has quit [Ping timeout: 246 seconds]
_maes_ has joined #ruby
<postmodern> havenwood, well it isn't processing //= require directives
<postmodern> havenwood, but I may be configuring it wrong, i followed this: http://simonecarletti.com/blog/2011/09/using-sprockets-without-a-railsrack-project/
_maes_ has quit [Client Quit]
ffranz has quit [Quit: Leaving]
GriffinHeart has joined #ruby
oo_ has joined #ruby
iamjarvo has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
beef-wellington has joined #ruby
PanPan has joined #ruby
Inhaling_ has joined #ruby
nanoyak has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
jxf has joined #ruby
tejas-manohar has quit [Quit: Page closed]
nanoyak has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 264 seconds]
pwh has joined #ruby
i_s has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
oo_ has joined #ruby
Kerber0s has joined #ruby
mpistone_ has quit [Remote host closed the connection]
britneywright has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
icole has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
Azure has quit [Quit: My MBP went to sleep.]
_Kerber0s_ has quit [Ping timeout: 272 seconds]
wjimenez_ has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
sparrovv has joined #ruby
SilkFox_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kerber0s has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
orolo has joined #ruby
icarus has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparrovv has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
CpuID2 has joined #ruby
CpuID2 has joined #ruby
jottr has joined #ruby
echooo has joined #ruby
CpuID has quit [Ping timeout: 246 seconds]
kennet___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zettam_ has quit [Read error: Connection reset by peer]
goleldar has quit [Remote host closed the connection]
goleldar has joined #ruby
dc_ has quit [Remote host closed the connection]
goleldar has quit [Read error: Connection reset by peer]
goleldar has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
Inhaling_ has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
jonr22 has joined #ruby
ghr has joined #ruby
Kerber0s has joined #ruby
mollitz has joined #ruby
tkuchiki has joined #ruby
InhalingPixels has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 264 seconds]
choke has quit [Quit: Leaving]
marr has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 245 seconds]
havenwood has quit []
nDuff has quit [Ping timeout: 252 seconds]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Koshian has joined #ruby
Koshian has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
Koshian has joined #ruby
djbkd has quit [Remote host closed the connection]
saarinen has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
beef-wellington has joined #ruby
Koshian is now known as Koshian
saarinen has quit [Client Quit]
oo_ has joined #ruby
davispuh has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
aspires has quit []
rjhunter has joined #ruby
<postmodern> well sprockets-standalone worked well
<postmodern> except it's still not processing //= require
<postmodern> i guess sprockets broke something (not surprised)
toastynerd has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 272 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
JoshGlzBrk has joined #ruby
bogeyd6 has joined #ruby
goleldar has quit [Remote host closed the connection]
goleldar has joined #ruby
kenneth has joined #ruby
goleldar has quit [Ping timeout: 252 seconds]
IrishGringo has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140825202822]]
charliesome has joined #ruby
narcan has joined #ruby
kireevco has quit [Quit: Leaving.]
CpuID2 has quit [Quit: This computer has gone to sleep]
axsuul has quit [Ping timeout: 240 seconds]
soheil has quit [Remote host closed the connection]
CpuID2 has joined #ruby
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
InhalingPixels has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mferrier has quit []
jottr has joined #ruby
_cake has quit [Ping timeout: 252 seconds]
cirn0 has joined #ruby
JoshGlzBrk has joined #ruby
InhalingPixels has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
GriffinHeart has joined #ruby
echevemaster has joined #ruby
crdpink has joined #ruby
crdprink2 has quit [Ping timeout: 245 seconds]
lemur has joined #ruby
cirn0 has quit [Ping timeout: 252 seconds]
Toordog has quit [Ping timeout: 245 seconds]
<postmodern> am I doing something stupid? shouldn't sprockets expand //= require "..." in plain .js files?
rjhunter has quit [Remote host closed the connection]
_maes_ has joined #ruby
Lewix has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 245 seconds]
starkhalo has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 255 seconds]
deric_skibotn has quit [Ping timeout: 245 seconds]
dorei has quit []
Toordog has joined #ruby
centrx has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
angelic_sedition has joined #ruby
slester has quit [Quit: Quitte]
cocotton has quit [Remote host closed the connection]
emocakes has joined #ruby
zakiazigazi has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Lewix has joined #ruby
angelic_sedition has quit [Client Quit]
angelic_sedition has joined #ruby
Miron has joined #ruby
Snowstormer has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
bogeyd6 has quit [Quit: Leaving]
pu22l3r has joined #ruby
seamon has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
rjhunter has quit [Ping timeout: 245 seconds]
icebourg has quit []
angelic_sedition has quit [Client Quit]
angelic_sedition has joined #ruby
orolo has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
MrL0ngbowman has joined #ruby
klurbin has joined #ruby
angelic_sedition has quit [Client Quit]
<klurbin> I can't seem to find how to do (or even what to call) behavior like such `String("string")` which just returns a string "string". Can someone tell me what this is called and/or how it is done.
mollitz has quit [Ping timeout: 240 seconds]
<postmodern> omfg, apparently //= require's have to go at the top of the file?
MrL0ngbowman has quit [Client Quit]
troyready has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
tricorius has joined #ruby
<postmodern> klurbin, um String(str) does that
<postmodern> klurbin, check the .object_id of it, it won't return a new string if str is already a String
jonr22 has joined #ruby
<klurbin> But how does one define a method like that, it's like the parameter is being passed to the class, not a method.
beef-wellington has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
tokik has joined #ruby
<klurbin> postmodern: I want to do something like MyModule("my arguments") in my own code, but I'm not sure how to implement it.
sleepee has joined #ruby
<postmodern> klurbin, how just define self.Foo()
<centrx> klurbin, String() and such are defined as a shortcut, on Kernel, which is included in every Object
Kerber0s has quit [Remote host closed the connection]
fsapo has joined #ruby
<klurbin> postmodern: centrx thankyou
hamakn has joined #ruby
starless has quit [Quit: Leaving]
Kerber0s has joined #ruby
crdpink has quit [Ping timeout: 245 seconds]
crdprink2 has joined #ruby
oo_ has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
reset has joined #ruby
harumph has joined #ruby
harumph has left #ruby [#ruby]
ndrei has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
MrL0ngbowman has joined #ruby
b06464f377 has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
MrL0ngbowman has quit [Client Quit]
crdprink2 has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 252 seconds]
b06464f377 has joined #ruby
freerobby has quit [Quit: Leaving.]
mary5030 has joined #ruby
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
emmesswhy has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
iamjarvo has joined #ruby
freerobby has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CpuID3 has joined #ruby
CpuID2 has quit [Ping timeout: 255 seconds]
shock_one has joined #ruby
JoshGlzBrk has joined #ruby
axsuul has joined #ruby
SilkFox_ has joined #ruby
tricorius has left #ruby [#ruby]
Avahey_ has quit [Quit: Connection closed for inactivity]
OffTheRails has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
djbkd has joined #ruby
tylerkern has joined #ruby
BBBThunda has quit [Ping timeout: 252 seconds]
funklulu has joined #ruby
shock_one has quit [Ping timeout: 276 seconds]
funklulu has left #ruby [#ruby]
_Kerber0s_ has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
holsee has quit [Quit: Connection closed for inactivity]
Kerber0s has quit [Ping timeout: 268 seconds]
davispuh has quit [Ping timeout: 245 seconds]
JohnFord has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seamon has quit [Quit: Zzzzzzz]
mercwithamouth has quit [Ping timeout: 268 seconds]
rubytor has joined #ruby
michaeldeol has joined #ruby
klurbin has quit [Quit: Page closed]
GriffinHeart has joined #ruby
michaeldeol has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
bmurt has quit []
davedev2_ has quit []
_Kerber0s_ has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
GinoMan has joined #ruby
pu22l3r has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
ponga has joined #ruby
InhalingPixels has joined #ruby
<ponga> here back i am
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 268 seconds]
radic has joined #ruby
Scripore has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
InhalingPixels has quit [Ping timeout: 264 seconds]
zeroNones has joined #ruby
sparrovv has joined #ruby
TorpedoSkyline has joined #ruby
radic_ has quit [Ping timeout: 240 seconds]
<ponga> ruby isn't that slow compared to java?..
<centrx> ponga, Ruby (MRI) has historically been considered slow, but speed has improved greatly since 1.8, and there are other interpreters for Ruby, such as JRuby which uses the JVM
orolo has joined #ruby
<ponga> hi centrx
sparrovv has quit [Ping timeout: 245 seconds]
<centrx> Ahoy
<ponga> i hate using java...
<ponga> i really do..
<centrx> Java has been known to cause brain damage.
avita1 has joined #ruby
pu22l3r has joined #ruby
mferrier has joined #ruby
mary5030 has quit [Remote host closed the connection]
sdwrage has joined #ruby
<ponga> centrx can i do concurrent tasks with ruby
<centrx> ponga, In practice, yes
<benzrf> ruby is absolutely slow compared to java
<benzrf> however,
<benzrf> 1. speed isnt important in some applications
<benzrf> 2. there are larger bottlenecks than the speed of the language in some applications
<ponga> but java is causing serious brain damage to me
<ponga> and other me keeps telling me to use java
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
<centrx> ponga, Most applications do not need the speed of Java
icebourg has joined #ruby
<ponga> centrx: mine is language processing, using lots of strings and key-value and arrays
<centrx> ponga, Also remember a poorly written/unoptimized program in language X is slower than an optimized program in language Y
ghr has joined #ruby
<ponga> i wonder i needed java then
voodoofish has joined #ruby
voodoofish1 has quit [Ping timeout: 276 seconds]
JohnFord has quit [Ping timeout: 246 seconds]
<centrx> ponga, If I wanted something with comparable speed to Java, I would choose Scala or Go or JavaScript or something
<ponga> you mean javascript v8?
<centrx> right, not Netscape Navigator 4.8 JavaScript
toastynerd has joined #ruby
BBBThunda has joined #ruby
braincrash has joined #ruby
<ponga> but then im working on my own solo.. and java almost makes me impotent
<ponga> i shoulda stop whining and continue working..
thams has joined #ruby
<centrx> ponga, Quit slacking off! :)
ghr has quit [Ping timeout: 260 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
<ponga> centrx: a friend who i seek most of advices is the one who recommended Java and he keeps saying that java is beautiful and good for your health
kireevco has joined #ruby
<centrx> ponga, Maybe the JVM is beautiful and good for your health
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx> ponga, but the language itself, its syntax, semantics, and best practices, are horrific
<czaks> ponga: how about jruby? you can use all java libraries while using ruby
<ponga> centrx he says the language is a juicy lump of steak
<centrx> ponga, What other languages is he familiar with?
<ponga> centrx C++ as far as i remember
<centrx> ponga, Java was a good improvement over C++
mary5030 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
BBBThunda has quit [Quit: Leaving]
<ponga> czaks i never used jruby, does that mean i can achieve near speed of java with style of ruby?
BBBThunda has joined #ruby
<czaks> ponga: i'm not sure
<czaks> there are 3 good ruby implementations
ghost2060 has quit [Ping timeout: 246 seconds]
<czaks> if you use just ruby, you can use all 3 of them
sleepee has quit [Ping timeout: 268 seconds]
<ponga> i just use ruby codes
<centrx> ponga, Look at slide 7 on this presentation: http://www.slideshare.net/Belighted/ruby-vs-java
<ponga> actually im not in need of fancy libraries
jerius has joined #ruby
<ponga> i just need key-value dic, array, and string concecatenation/append
toastynerd has quit [Remote host closed the connection]
<ponga> centrx: you don't need re-emphasize sir
avita1 has quit [Quit: Leaving.]
toastynerd has joined #ruby
SilkFox_ has joined #ruby
aspires has joined #ruby
baroof has joined #ruby
Kerber0s has joined #ruby
Phrogz has quit [Ping timeout: 246 seconds]
baroof has quit [Remote host closed the connection]
aspires has quit [Client Quit]
aspires has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
icole has quit []
bearish has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
AlHafoudh has quit [Ping timeout: 252 seconds]
j_mcnally has joined #ruby
bwilson has joined #ruby
tkuchiki_ has joined #ruby
DEA7TH has quit [Ping timeout: 260 seconds]
bearish has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
bwilson has quit [Client Quit]
bmurt has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
pwh has quit []
AlHafoudh has joined #ruby
lemur has quit [Read error: Connection reset by peer]
visof has joined #ruby
lemur has joined #ruby
jack_rabbit has quit [Ping timeout: 260 seconds]
avita1 has joined #ruby
bmurt has quit [Ping timeout: 276 seconds]
cirn0 has joined #ruby
GriffinHeart has joined #ruby
skolman has joined #ruby
patrick99e99 has joined #ruby
hiyosi has quit [Ping timeout: 268 seconds]
RealMarc has quit [Ping timeout: 245 seconds]
fsapo has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has quit [Ping timeout: 268 seconds]
tkuchiki has joined #ruby
tkuchiki_ has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 246 seconds]
sawtooth has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
recurrence has joined #ruby
aspires has quit []
aspires has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
InhalingPixels has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
InhalingPixels has quit [Ping timeout: 260 seconds]
mferrier has quit [Remote host closed the connection]
mferrier has joined #ruby
KeepItPG has joined #ruby
<KeepItPG> join #c++
wjimenez5271 has joined #ruby
SilkFox_ has joined #ruby
crdprink2 has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
cocotton has joined #ruby
JoshGlzBrk has joined #ruby
orolo has joined #ruby
chipotle has joined #ruby
mferrier has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
wjimenez5271 has quit [Ping timeout: 252 seconds]
SilkFox_ has quit [Ping timeout: 268 seconds]
linojon has quit [Quit: linojon]
ponga has quit [Remote host closed the connection]
Bumptious has joined #ruby
avita1 has quit [Quit: Leaving.]
visof has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cya]
oo_ has quit [Ping timeout: 252 seconds]
bricker_ is now known as bricker
ghr has joined #ruby
grokdancer has joined #ruby
bluOxigen has joined #ruby
Channel6 has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
cocotton has quit [Remote host closed the connection]
recurrence has quit [Ping timeout: 268 seconds]
yetanotherdave has joined #ruby
diegoviola has quit [Remote host closed the connection]
grokdancer has quit [Client Quit]
ghr has quit [Ping timeout: 264 seconds]
grenierm has joined #ruby
lkba has quit [Quit: Bye]
j_mcnally has quit [Remote host closed the connection]
dmyers has joined #ruby
<ght> Question: I would like to handle error handling with XMLRPC::Client.new2(), but begin / rescue statements surrounding it aren't working. The application still dies with "getaddrinfo: Name or service not known (SocketError)" instead of executing the rescue statement code.
<ght> Any idea how to perform something akin to a begin / rescue with this?
koderok has joined #ruby
<ght> Research isn't turning up anything yet.
lkba has joined #ruby
pu22l3r has quit [Remote host closed the connection]
totimkopf has quit [Ping timeout: 245 seconds]
starkhalo has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avita1 has joined #ruby
aspires has quit []
goodenough has joined #ruby
aspires has joined #ruby
nemesit|znc has quit [Ping timeout: 240 seconds]
grokdancer has joined #ruby
icebourg has quit []
aspires has quit [Client Quit]
aspires has joined #ruby
nemesit|znc has joined #ruby
jrhe_ has quit [Quit: Connection closed for inactivity]
xenomorph is now known as {xenomorph}
tlarevo has joined #ruby
Kerber0s has quit [Remote host closed the connection]
oo_ has joined #ruby
kireevco has quit [Quit: Leaving.]
t_p has joined #ruby
hiyosi has joined #ruby
kireevco has joined #ruby
nobitanobi has joined #ruby
<nobitanobi> night guys
<nobitanobi> I want to find all index of an array which elements are not nil. I have tried this: [1,2,3,nil].each_index.select { |cell| cell != nil } -- but I get [0,1,2,3]
MrL0ngbowman has joined #ruby
oo_ has quit [Remote host closed the connection]
MrL0ngbowman has quit [Client Quit]
hiyosi has quit [Ping timeout: 246 seconds]
jaake has quit [Ping timeout: 240 seconds]
t_p has quit [Quit: Computer has gone to sleep.]
bearish has joined #ruby
oo_ has joined #ruby
<nobitanobi> never mind, that is actually iterating over the indeces, not the elements.
dukz has joined #ruby
goodenough has quit [Remote host closed the connection]
stoned is now known as Rugal
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Avahey_ has joined #ruby
bearish has quit [Ping timeout: 276 seconds]
InhalingPixels has joined #ruby
cocotton has joined #ruby
freerobby has quit [Quit: Leaving.]
<pontiki> try each_with_index
oo_ has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
grokdancer has quit [Quit: Leaving.]
cocotton has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
icebourg has joined #ruby
InhalingPixels has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
cocotton has quit [Remote host closed the connection]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
SilkFox_ has joined #ruby
<nobitanobi> pontiki: I did this: status.each_index.select { |i| status[i].nil? }
<nobitanobi> * !status[i].nil?
bearish has joined #ruby
goodenough has joined #ruby
orolo has joined #ruby
starless has joined #ruby
nobitanobi has quit [Remote host closed the connection]
MrL0ngbowman has joined #ruby
starless has quit [Client Quit]
nobitanobi has joined #ruby
aspires has quit []
SilkFox_ has quit [Ping timeout: 272 seconds]
tlarevo_ has joined #ruby
nobitanobi has quit [Client Quit]
timonv_ has joined #ruby
dukz_ has joined #ruby
dukz has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
Cooler__ has quit [Ping timeout: 276 seconds]
goodenough has quit [Remote host closed the connection]
<pontiki> and?
BBBThunda has quit [Quit: Leaving]
echevemaster has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
Azzurrio has joined #ruby
jelera has joined #ruby
jelera has quit [Remote host closed the connection]
MrL0ngbowman has quit [Read error: Connection reset by peer]
MrL0ngbowman has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
MrL0ngbowman has quit [Read error: Connection reset by peer]
MrL0ngbowman has joined #ruby
emmesswhy has joined #ruby
sinkensabe has joined #ruby
icebourg has quit []
mary5030 has quit [Remote host closed the connection]
GinoMan has quit [Ping timeout: 260 seconds]
kireevco has quit [Quit: Leaving.]
User458764 has joined #ruby
kyb3r_ has joined #ruby
{xenomorph} is now known as xenomorph
jgrevich has joined #ruby
lpaste_ has quit [Ping timeout: 272 seconds]
joelroa has quit [Quit: Textual IRC Client: www.textualapp.com]
ewilliam has joined #ruby
HelperW__ has joined #ruby
timonv_ has quit [Remote host closed the connection]
lpaste has joined #ruby
arup_r has joined #ruby
JBreit has joined #ruby
narcan has joined #ruby
apeiros has joined #ruby
saarinen has joined #ruby
JBreit has left #ruby [#ruby]
j_mcnally has joined #ruby
timonv_ has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
starkhalo has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
bearish has quit [Remote host closed the connection]
hiyosi has joined #ruby
bearish has joined #ruby
mr-foobar has quit [Quit: Leaving...]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
aganov has joined #ruby
bearish has quit [Remote host closed the connection]
cirn0 has joined #ruby
patrick99e99 has joined #ruby
techsethi has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
tlarevo_ has quit [Ping timeout: 260 seconds]
hiyosi has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
cirn0 has quit [Ping timeout: 255 seconds]
Azzurrio has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
sparrovv has joined #ruby
toastynerd has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
Scotteh has quit [Ping timeout: 255 seconds]
orolo has quit [Quit: This computer has gone to sleep]
lkba has quit [Ping timeout: 276 seconds]
HelperW__ has quit [Quit: Computer has gone to sleep.]
HelperW__ has joined #ruby
ht__th has joined #ruby
wjimenez5271 has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
maletor_ has joined #ruby
SilkFox_ has joined #ruby
<siwica> should one remove the standard ruby after switching to rvm?
<popl> siwica: no
<popl> siwica: not particularly
orolo has joined #ruby
<siwica> I am using passenger
<siwica> and it does not use my rvm ruby
Macaveli has joined #ruby
<siwica> I thought a reason might be that the ruby scripts might be invoked with root privileges
HelperW__ has quit [Ping timeout: 276 seconds]
emocakes has quit []
Macaveli has quit [Client Quit]
emocakes has joined #ruby
emocakes has quit [Client Quit]
techsethi has quit [Ping timeout: 255 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
MrL0ngbowman has quit [Remote host closed the connection]
GinoMan has joined #ruby
krz has joined #ruby
zarubin has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
sinkensabe has joined #ruby
rjhunter has joined #ruby
JohnBat26 has joined #ruby
bal has joined #ruby
__tpavel has joined #ruby
goodenough has joined #ruby
_tpavel has quit [Quit: Leaving]
__tpavel has quit [Read error: Connection reset by peer]
skolman has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 276 seconds]
KeepItPG has quit [Ping timeout: 255 seconds]
Advocation has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
zarubin has joined #ruby
cina has joined #ruby
banjara has joined #ruby
dcoxall has joined #ruby
Kerber0s has joined #ruby
saarinen has quit [Quit: saarinen]
timonv_ has quit [Remote host closed the connection]
Kerber0s has quit [Client Quit]
Macaveli has joined #ruby
pu22l3r has joined #ruby
flgje has joined #ruby
ctp has joined #ruby
lkba has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
shock_one has joined #ruby
LekeFly has joined #ruby
pu22l3r has quit [Ping timeout: 272 seconds]
mpistone has joined #ruby
pu22l3r has joined #ruby
wallerdev has quit [Ping timeout: 260 seconds]
dcoxall has quit []
mr-foobar has joined #ruby
emocakes has joined #ruby
HelperW__ has joined #ruby
flgje has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
pyx has joined #ruby
soasme has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
soasme has joined #ruby
GinoMan has quit [Ping timeout: 252 seconds]
avita1 has quit [Quit: Leaving.]
Meeh has quit [Remote host closed the connection]
bearish has joined #ruby
Meeh has joined #ruby
tobago has joined #ruby
Meeh has quit [Remote host closed the connection]
Meeh has joined #ruby
codecop has joined #ruby
Meeh has quit [Remote host closed the connection]
Morkel has joined #ruby
Meeh has joined #ruby
Meeh has quit [Remote host closed the connection]
fabrice31 has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
Meeh has joined #ruby
siwica has quit [Remote host closed the connection]
flgje has joined #ruby
goodenough has quit [Remote host closed the connection]
relix has joined #ruby
User458764 has joined #ruby
bearish has quit []
jprovazn has joined #ruby
InhalingPixels has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
shock_one has quit [Quit: Computer has gone to sleep.]
rbenv has quit [Quit: Textual IRC Client: www.textualapp.com]
jimmykarily has joined #ruby
blueOxigen has joined #ruby
banjara1 has joined #ruby
banjara has quit [Read error: Connection reset by peer]
sandelius has joined #ruby
HelperW__ has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 264 seconds]
HelperW__ has joined #ruby
shock_one has joined #ruby
orolo has joined #ruby
SilkFox_ has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
yetanotherdave has quit [Ping timeout: 272 seconds]
klaut has joined #ruby
Takle has joined #ruby
yetanotherdave has joined #ruby
sparrovv has quit [Remote host closed the connection]
flgje has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
cyrinux has joined #ruby
mackintosh has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
alex88 has joined #ruby
p0sixpscl has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
rfv__ is now known as rfv
diegoviola has joined #ruby
emocakes has quit []
beef-wellington has joined #ruby
banjara1 has quit [Quit: Leaving.]
lemur has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
kyb3r_ has quit [Read error: Connection reset by peer]
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has quit [Client Quit]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
ringarin has joined #ruby
ClarusCogitatio has joined #ruby
timonv_ has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
dumdedum has joined #ruby
dawkirst has joined #ruby
pu22l3r has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
sandelius has joined #ruby
Takle has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> we must crush python
aboudreault has quit [Ping timeout: 250 seconds]
jhass|off is now known as jhass
djdb has joined #ruby
Xeago has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 268 seconds]
<popl> shevy: ಠ_ಠ
popl has left #ruby [#ruby]
timonv_ has quit [Remote host closed the connection]
<bricker> Okay who has setup redis sentinel? I can see the slaves connected to master, but they don't recognize each other.
beef-wellington has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
jgrevich has quit [Quit: jgrevich]
dawkirst has quit [Remote host closed the connection]
ohcibi_ is now known as ohcibi
yfeldblum has joined #ruby
aboudreault has joined #ruby
max06 has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
giannidettonuzzo has joined #ruby
Advocation has quit [Quit: Advocation]
goodenough has joined #ruby
<jhass> bricker: there's a #redis
anarang has joined #ruby
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
klaut has quit [Remote host closed the connection]
emocakes has joined #ruby
klaut has joined #ruby
maoko has joined #ruby
lfox has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby
<bricker> jhass: I know, I asked in there 2 hours ago and there have been no responses
dawkirst has joined #ruby
Xeago has joined #ruby
klaut has quit [Remote host closed the connection]
dc_ has joined #ruby
patrick99e99 has joined #ruby
hiyosi has joined #ruby
hellangel7 has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
lowandslow_ has joined #ruby
DarkFoxDK has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
andrewlio has joined #ruby
lfox has joined #ruby
chth0n has joined #ruby
CpuID3 has quit [Ping timeout: 245 seconds]
choke has joined #ruby
DarkFoxDK has joined #ruby
PHP4Ever has joined #ruby
FarlaTux has joined #ruby
adamski2600 has joined #ruby
Dev-Gitter has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
ringarin has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 276 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
Dev-Gitter has quit [Max SendQ exceeded]
InhalingPixels has joined #ruby
emocakes has quit []
Dev-Gitter has joined #ruby
dc_ has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
flgje has joined #ruby
ayaz has joined #ruby
qualiabyte has quit [Quit: Leaving]
wallerdev has joined #ruby
sectionme has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Takle has quit [Remote host closed the connection]
emocakes has joined #ruby
InhalingPixels has quit [Ping timeout: 264 seconds]
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
dawkirst has quit [Remote host closed the connection]
stef_204 has joined #ruby
emocakes has quit [Client Quit]
orolo has joined #ruby
SilkFox_ has joined #ruby
dawkirst has joined #ruby
Rugal is now known as stoned
sk87 has joined #ruby
mikecmpbll has joined #ruby
flughafen has joined #ruby
koderok has quit [Quit: koderok]
arup_r has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
anshin has quit [Quit: anshin]
yfeldblum has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
anshin has joined #ruby
wallerdev has quit [Ping timeout: 245 seconds]
anshin has quit [Client Quit]
matchaw has joined #ruby
rdark has joined #ruby
anshin has joined #ruby
dawkirst has joined #ruby
oo_ has quit [Remote host closed the connection]
ringarin has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
DaniG2k has joined #ruby
Takle has joined #ruby
mpistone has quit [Remote host closed the connection]
oo_ has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
bricker has quit [Read error: Connection reset by peer]
aboudreault has quit [Ping timeout: 252 seconds]
flgje has quit [Quit: WeeChat 1.0]
Jake232 has joined #ruby
toretore has joined #ruby
live_alone has joined #ruby
wookiehangover has quit [Ping timeout: 252 seconds]
<shevy> :(
dawkirst_ has joined #ruby
dawkirst has quit [Read error: No route to host]
jnoob22 has quit [Ping timeout: 252 seconds]
aedorn has quit [Ping timeout: 252 seconds]
sameersoni has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
elaptics`away is now known as elaptics
einarj has joined #ruby
choke has quit [Quit: Leaving]
ClarusCogitatio has quit [Ping timeout: 245 seconds]
giannidettonuzzo has quit []
tylerkern has quit [Quit: Connection closed for inactivity]
mengu has joined #ruby
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
manishs has joined #ruby
aboudreault has joined #ruby
ClarusCogitatio has joined #ruby
bricker`LA has joined #ruby
<bricker`LA> oh I get it... the sentinels just monitor the masters/slaves, they aren't slaves themselves
pu22l3r has joined #ruby
wookiehangover has joined #ruby
<shevy> freedom for slaves!
timonv_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
aedorn has joined #ruby
jnoob22 has joined #ruby
arup_r has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
Advocation has joined #ruby
jds has joined #ruby
sevenseacat has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
goodenough has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
koderok has joined #ruby
oo_ has quit [Remote host closed the connection]
DaniG2k has joined #ruby
jlebrech has joined #ruby
<jlebrech> what would a colorruby look like? http://primarycolorforth.blogspot.co.uk/
tkuchiki_ has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
kalusn has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
soasme has quit [Quit: Leaving...]
Lewix has quit [Remote host closed the connection]
cina has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
timonv_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
Advocation has quit [Quit: Advocation]
cirn0 has joined #ruby
Advocation has joined #ruby
Scotteh has joined #ruby
codecop has quit [Ping timeout: 268 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
elstif has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
cirn0 has quit [Ping timeout: 260 seconds]
Jake232 has quit [Quit: Textual IRC Client: www.textualapp.com]
qba73 has joined #ruby
InhalingPixels has joined #ruby
eivindml has joined #ruby
Scotteh has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
<shevy> omg those colours
Takle has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 245 seconds]
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
havenwood has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
SilkFox_ has joined #ruby
havenwood has joined #ruby
radic_ has joined #ruby
Cooler_ has joined #ruby
codecop has joined #ruby
ewilliam has quit [Quit: Connection closed for inactivity]
cina has joined #ruby
RealMarc has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
KeepItPG has joined #ruby
SilkFox_ has quit [Ping timeout: 276 seconds]
KeepItPG has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
W0rmDr1nk has quit [Ping timeout: 246 seconds]
gaussblurinc1 has joined #ruby
timonv_ has joined #ruby
jottr has joined #ruby
marco has joined #ruby
<marco> hi
emocakes has joined #ruby
<marco> i'
emocakes has quit [Max SendQ exceeded]
marco is now known as Guest94089
<Guest94089> i am missing destructors in ruby - how do i call a method on a dying object ? :)
emocakes has joined #ruby
<shevy> Guest94089 there are no dying objects
Photism has quit [Quit: Leaving]
<Guest94089> ObjectSpace.define_finalizer i think i need this buddy right here
lowandslow_ has quit [Ping timeout: 245 seconds]
<jhass> Guest94089: what are you doing that needs one?
<Guest94089> just wanna get a message out, when my programm ends :)
<workmad3> Guest94089: so use an exit handler
<Guest94089> oh great, thanks
<workmad3> Guest94089: and then don't use 'exit!' as that skips the handlers ;)
sameersoni has quit []
sprihodko has joined #ruby
live_alone has quit [Quit: Page closed]
diegoviola has quit [Remote host closed the connection]
mbuf has joined #ruby
zettam has joined #ruby
<mbuf> what is a reliable timeout gem or library available in Ruby to use with socket IO communication?
<mbuf> using Ruby 2.0.0
GriffinHeart has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
Xeago has quit [Remote host closed the connection]
wezpyke has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
cina has quit [Quit: leaving]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
spider-mario has joined #ruby
threesixes has quit [Remote host closed the connection]
pu22l3r has joined #ruby
spider-mario has quit [Remote host closed the connection]
vinleod has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
reynscem_ has joined #ruby
emocakes__ has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
lowandslow_ has joined #ruby
spider-mario has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
reynscem has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
emocakes has quit [Ping timeout: 252 seconds]
abuzze_ has joined #ruby
_tpavel has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
W0rmDr1nk has joined #ruby
emocakes__ has quit []
ClarusCogitatio has quit [Ping timeout: 255 seconds]
abuzze has quit [Ping timeout: 245 seconds]
ringarin has quit [Ping timeout: 268 seconds]
Takle has joined #ruby
ClarusCogitatio has joined #ruby
pyx has quit [Quit: WeeChat 0.4.3]
Advocation has quit [Quit: Advocation]
emocakes has joined #ruby
JohnBat26 has quit [Ping timeout: 268 seconds]
marr has joined #ruby
brahman has joined #ruby
brahman has joined #ruby
sk87 has joined #ruby
abuzze has joined #ruby
Takle has quit [Remote host closed the connection]
diegoviola has joined #ruby
<brahman> Hi, am loading a yaml file and then when modifying and writing it back to a new file some of the values (strings) are no longer quoted. Anyone know of a way to preserve the quotes around strings?
Wolland_ has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 272 seconds]
timonv_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
ClarusCogitatio has joined #ruby
Wolland has joined #ruby
timonv_ has joined #ruby
Guest94089 has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
Wolland_ has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
<jhass> brahman: note that that's perfectly valid YAML and just for your aesthetics. You can pass canonical: true to the .dump, that'll have some other effects too though
ringarin has joined #ruby
kristofferR has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
ClarusCogitatio has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
InhalingPixels has joined #ruby
reynscem_ has quit [Ping timeout: 245 seconds]
gauke has joined #ruby
ClarusCogitatio has joined #ruby
mollitz has joined #ruby
sparrovv has joined #ruby
InhalingPixels has quit [Ping timeout: 276 seconds]
SilkFox_ has joined #ruby
mengu has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
gauke has quit [Quit: gauke]
timonv_ has quit [Remote host closed the connection]
AlSquire has joined #ruby
atmosx has joined #ruby
timonv_ has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
kristofferR has quit [Max SendQ exceeded]
diegoviola has quit [Quit: WeeChat 1.0]
dawkirst has joined #ruby
mengu has quit [Read error: No route to host]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
diegoviola has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
rkalfane_ has joined #ruby
rkalfane_ has quit [Client Quit]
Hobogrammer has quit [Ping timeout: 255 seconds]
koderok has quit [Quit: koderok]
Jackneill has joined #ruby
poulet_a has joined #ruby
dc_ has joined #ruby
koderok has joined #ruby
warprobot has joined #ruby
rdffd has joined #ruby
Takle has joined #ruby
BTRE has quit [Ping timeout: 252 seconds]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
koderok has quit [Remote host closed the connection]
warprobot has quit [Remote host closed the connection]
dc_ has quit [Ping timeout: 252 seconds]
mkaesz has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
ndrei has joined #ruby
jlebrech has quit [Remote host closed the connection]
BeanDip has quit [Ping timeout: 245 seconds]
ClarusCogitatio has joined #ruby
sparrovv has quit [Remote host closed the connection]
diegoviola has joined #ruby
sparrovv has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
timonv^ has joined #ruby
Takle has quit [Remote host closed the connection]
pu22l3r has joined #ruby
tlarevo has joined #ruby
<atmosx> hello
<gaussblurinc1> hello
emocakes__ has joined #ruby
emocakes__ has quit [Max SendQ exceeded]
aedorn has quit [Remote host closed the connection]
emocakes__ has joined #ruby
cyrinux has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 246 seconds]
Juanchito has joined #ruby
Jake232 has joined #ruby
jottr has joined #ruby
sakitram has joined #ruby
orolo has quit [Read error: Connection reset by peer]
emocakes has quit [Ping timeout: 245 seconds]
ClarusCogitatio has quit [Ping timeout: 276 seconds]
orolo has joined #ruby
<sakitram> hi, I created a ruby program using Sinatra. In that, I want to print 3 strings in webpage. So I had put 3 strings with double quotes enclosed, but only the last string displayed in webpage. How to get all string?
hamakn has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
fabrice31 has joined #ruby
BTRE has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emocakes has joined #ruby
<canton7> sakitram, you route needs to return a single string
<canton7> sakitram, you can either concatenate all of your strings together to form 1 string, then return that
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140825202822]]
zakiazigazi has quit []
<canton7> or you can use a view to render your 3 strings as another string
<sakitram> ok
<sakitram> so obviously there is no other chance than using views.. I get it now
<sakitram> Thanks
<sakitram> choice*
OffTheRails has joined #ruby
emocakes__ has quit [Ping timeout: 252 seconds]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
timgauthier has joined #ruby
<timgauthier> hi
meinside has joined #ruby
kristofferR has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
gaussblurinc1 has quit [Quit: Leaving.]
OffTheRails has quit [Max SendQ exceeded]
ClarusCogitatio has joined #ruby
OffTheRails has joined #ruby
kristofferR has joined #ruby
timonv^ has quit [Remote host closed the connection]
sakitram has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.2.0/20131205180928]]
Steve has joined #ruby
jlebrech has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
tlarevo has quit [Read error: Connection reset by peer]
robustus has quit [Quit: ZNC - http://znc.in]
kristofferR has quit [Max SendQ exceeded]
decoponio has joined #ruby
robustus has joined #ruby
poulet_a has quit [Quit: Quitte]
kristofferR has joined #ruby
poulet_a has joined #ruby
tlarevo has joined #ruby
diegoviola has quit [Remote host closed the connection]
jottr_ has joined #ruby
hiyosi has joined #ruby
kristofferR has quit [Max SendQ exceeded]
hellangel7 has quit [Remote host closed the connection]
lkba has joined #ruby
diegoviola has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
cirn0 has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
kristofferR has joined #ruby
Takle has joined #ruby
emocakes has quit []
cirn0 has quit [Ping timeout: 246 seconds]
vsipuli has joined #ruby
kristofferR has quit [Max SendQ exceeded]
InhalingPixels has joined #ruby
phoo1234567 has joined #ruby
BeanDip has joined #ruby
elspru_ has left #ruby [#ruby]
<vsipuli> Why do some style guides recommend using "&&" and "||" instead of "and" and "or"? See for example https://github.com/bbatsov/ruby-style-guide#no-and-or-or.
phoo1234567 has quit [Max SendQ exceeded]
dawkirst has quit [Quit: Leaving...]
phoo1234567 has joined #ruby
alex88 has quit [Quit: Leaving...]
oo_ has quit [Remote host closed the connection]
emmesswhy has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
axsuul has quit [Ping timeout: 264 seconds]
SilkFox_ has joined #ruby
vsipuli has quit [Ping timeout: 260 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
einarj has quit []
vsipuli has joined #ruby
<vsipuli> jhass: Great link, thanks.
einarj has joined #ruby
Macaveli has joined #ruby
diegoviola has joined #ruby
<vsipuli> Are there any similar concerns regarding the use of "!" and "not" for negation? Is there an operator precedence difference?
SilkFox_ has quit [Ping timeout: 240 seconds]
<timgauthier> yes, but in that case i don't know which is higher
<vsipuli> Seems like "!" is prefered for boolean negation: https://github.com/bbatsov/ruby-style-guide#bang-not-not
* timgauthier is still a newb
bearish has joined #ruby
<timgauthier> if you just always use ! then you should be fine no?
lowandslow_ has quit [Remote host closed the connection]
arturaz has joined #ruby
<vsipuli> I was looking to understand if they are just aliases for each other, or if "not" perhaps has some other use cases.
mkaesz has joined #ruby
carbon has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<jhass> ! is parsed in some situations where not is not
<jhass> >> [not true]
<eval-in____> jhass => /tmp/execpad-7f3b4f23f66c/source-7f3b4f23f66c:2: syntax error, unexpected keyword_true, expecting '(' ... (https://eval.in/188784)
<jhass> >> [!true]
<eval-in____> jhass => [false] (https://eval.in/188785)
dmfranc has joined #ruby
jbw has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
oo_ has joined #ruby
sigurding has quit [Quit: sigurding]
Scotteh has joined #ruby
Stalkr_ has joined #ruby
visof has joined #ruby
Xeago has joined #ruby
atmosx has quit [Quit: computer went to sleep...]
jlebrech has quit [Remote host closed the connection]
doodlehaus has joined #ruby
Advocation has joined #ruby
guanophobic has quit [Remote host closed the connection]
jottr_ has quit [Quit: WeeChat 1.0]
jottr has joined #ruby
ClarusCogitatio has quit [Ping timeout: 276 seconds]
pu22l3r has joined #ruby
guanophobic has joined #ruby
Takle has joined #ruby
timonv_ has joined #ruby
mkaesz has quit [Ping timeout: 246 seconds]
<shevy> hey timgauthier
wezpyke has quit [Remote host closed the connection]
<timgauthier> hey shevy
ClarusCogitatio has joined #ruby
<timgauthier> a .de domain should probably serve de content by default, and the english content goes under .de/en/ ?
Mon_Ouie has quit [Read error: No route to host]
tkuchiki has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
fsapo has joined #ruby
wezpyke has joined #ruby
mbuf has quit [Quit: Leaving]
pu22l3r has quit [Ping timeout: 272 seconds]
arturaz has quit [Remote host closed the connection]
<jhass> timgauthier: by that logic an .it domain should serve italien by default ;)
<Nowaker> timgauthier: it depends. you can analyze the headers and decide what langusage to show dynamically (its django style i think)
<timgauthier> we will Nowaker, but i'm setting up the environment
<timgauthier> jhass depends, if the site is .it for the sake of having .it, or if it is actually italian content. this is a site for a place/thing in germany, but the audiance is international. so it will mostly serve english, but it just seems weird to have domain.de/de/
<timgauthier> though, we do have domain.de and domain.com, i forgot about that. nm, i'll just redirect to the different domains on the same server :)
<Nowaker> timgauthier: told you, you can have the language automatically
<Nowaker> with the same urls
HelperW___ has joined #ruby
<Nowaker> django style
<jhass> I usually just do accept language detection and a dropdown+cookie
<timgauthier> yes that isn't the issue
MCDev has quit [Ping timeout: 250 seconds]
<timgauthier> we also need to have people able to switch languages, and they're mostly the same sites but not.
<timgauthier> jhass yeah thats the direction we're going
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
<timgauthier> Nowaker in my system i do need a different URL for actual content
timonv^ has joined #ruby
<jhass> doesn't sound like it ;)
<timgauthier> just for management, i'm using Craft (buildwithcraft.com) with locals support
<timgauthier> well the dropdown just changes the address on the bar, but its exactly the same "site"
<Nowaker> can you paste a clickable link?
diegoviola has quit [Read error: Connection reset by peer]
<timgauthier> that link didn't become clickable? :( http://buildwithcraft.com
<Nowaker> want to see, and im on a smartphone
<Nowaker> thx
project2501a has quit [Ping timeout: 245 seconds]
<timgauthier> bitte
timonv_ has quit [Ping timeout: 255 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<timgauthier> i like it this way, lets me have things like /news/ translate to a german version, but it also should let me have universal URLS (so you can post to the english one and a german should be able to get it in german)
HelperW__ has quit [Ping timeout: 260 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoviola has joined #ruby
Takle has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
mengu has quit [Remote host closed the connection]
<jhass> as said, I think I prefer a cookie instead of URL encoding
timonv^ has quit [Remote host closed the connection]
ldnunes has joined #ruby
carbon has quit [Read error: Connection reset by peer]
<workmad3> timgauthier: you could potentially have domain.de/whatever provide domain.com/de/whatever as the canonical url
<timgauthier> true
<jhass> so you have one URL, new user => accept language header, returning user => previous preference
timonv_ has joined #ruby
dmfranc has quit []
<jhass> the language of the user sharing the link doesn't matter
cyrinux has joined #ruby
<workmad3> jhass: having translations under urls rather than relying on cookies does help when reporting translation errors or referencing
<timgauthier> jhass yeah, that makes sense, not sure craft will do that super easily. that said, there are benifits from usibility side having the site specifically have URL's to specific content. if I want to link someone to the german version of a page specifically. German and english content are actually different though the navigation will be mostly the same
<timgauthier> exactly workmad3
<workmad3> dunno how important those are for timgauthier's site though :)
<timgauthier> they actualyl are quite
<timgauthier> actually*
rjhunter has joined #ruby
<timgauthier> and they run schools, german school details vs english school details are different, but may have the same address
<timgauthier> just en/de difference
<timgauthier> and we need the ability to have english and german diverge, so english pages have one sitemap and the german a different
emocakes has joined #ruby
Xeago has quit [Remote host closed the connection]
<workmad3> timgauthier: I'd go with .com serving english and .de serving german then
<timgauthier> yeah
<timgauthier> danke
<timgauthier> btw, how you been!
<workmad3> timgauthier: they may be backed by the same db, with potentially auto-generated translations seeding things... but they sound different enough that they should be conceptually separated :)
<timgauthier> yeah
<workmad3> I'm doing ok
rdffd has quit [Ping timeout: 246 seconds]
timonv_ has quit [Ping timeout: 264 seconds]
<timgauthier> they are the same system, same content, shared assets, shared db (they are literally the same instance of craft) and lots of similar crossover content, but they also will have divergance as you said. :)
carbon has joined #ruby
mkaesz has joined #ruby
<timgauthier> cool, its nice being back on the correct timezone
<workmad3> 'correct' being what? utc? bst? :)
<timgauthier> ;) UTC
<timgauthier> naw, i'm back in europe, where the cool people are online
gccostabr has joined #ruby
<QKO_> #jqplot
<QKO_> pp[s
<QKO_> oops
<workmad3> isns't most of europe on +1 or +2? :P
<timgauthier> hah
<workmad3> *isn't
<timgauthier> yeah but i was in -8/-7
<workmad3> west coast yankeeland?
<timgauthier> Mountain
Xeago has joined #ruby
lemur has joined #ruby
fsapo_ has joined #ruby
<workmad3> close enough :)
<timgauthier> yes
dmfranc has joined #ruby
patrick99e99 has joined #ruby
dmfranc has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
MCDev has joined #ruby
sigurding has joined #ruby
doodlehaus has quit [Remote host closed the connection]
hiyosi has joined #ruby
grenierm has quit [Quit: grenierm]
matchaw has quit [Quit: No Ping reply in 180 seconds.]
<timgauthier> man, craft is sweet.
carbon has quit [Ping timeout: 255 seconds]
dmfranc has joined #ruby
matchaw has joined #ruby
HelperW___ has quit [Remote host closed the connection]
dmfranc has quit [Client Quit]
<workmad3> craft being?
fsapo_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
carbon has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
HelperW___ has joined #ruby
patrick99e99 has quit [Ping timeout: 268 seconds]
kaspergrubbe has joined #ruby
<timgauthier> a *spit* php driven CMS
ringarin has quit [Ping timeout: 246 seconds]
<timgauthier> but its actually more of a self hosted framework that lets you build your own site (instead of a behomith like wordpress)
hiyosi has quit [Ping timeout: 246 seconds]
ghost2060 has joined #ruby
vsipuli has quit []
<workmad3> fun, I guess
earthquake has joined #ruby
sevenseacat has joined #ruby
<workmad3> sounds drupally :P
<michael_mbp> hey guys, quick hello to my mates here
<michael_mbp> and ladies :)
<timgauthier> yea its actually lighter then drupal, :)
<workmad3> timgauthier: not difficult ;)
<timgauthier> hehe yea
ClarusCogitatio has quit [Ping timeout: 252 seconds]
Sgeo has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
SilkFox_ has joined #ruby
Morkel has quit [Quit: Morkel]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Excess Flood]
ClarusCogitatio has joined #ruby
wiscas has left #ruby ["Leaving"]
mengu has joined #ruby
mengu has joined #ruby
DaniG2k has quit [Quit: leaving]
timonv_ has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 268 seconds]
CaptainJet has quit []
arup_r has quit [Remote host closed the connection]
doodlehaus has joined #ruby
Obversity has quit [Ping timeout: 255 seconds]
ClarusCogitatio has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
Avahey_ has joined #ruby
britneywright has joined #ruby
oo_ has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
bearish has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
tlarevo_ has joined #ruby
arup_r has joined #ruby
doodlehaus has quit [Remote host closed the connection]
dmfranc has joined #ruby
ClarusCogitatio has quit [Ping timeout: 272 seconds]
earthquake has quit [Quit: earthquake]
lolmaus has joined #ruby
freerobby has joined #ruby
Stalkr_ has joined #ruby
tlarevo has quit [Ping timeout: 260 seconds]
ClarusCogitatio has joined #ruby
bauruine has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
<shevy> workmad3 hey you are in europe too
emmesswhy has quit [Quit: This computer has gone to sleep]
mkaesz has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
<workmad3> shevy: heh :)
ddv has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
InhalingPixels has joined #ruby
benzrf|offline is now known as benzrf
<timgauthier> why not right
bauruine has joined #ruby
wallerdev has joined #ruby
narph has joined #ruby
<narph> Hello :) I'm trying to use Thor for a CLI, but want a single class to describe a single task (without using Thor::Group). Is there a nice way to do that?
wallerdev has quit [Ping timeout: 246 seconds]
tokik has joined #ruby
startupality has joined #ruby
claymore has joined #ruby
obscured has joined #ruby
startupality has quit [Client Quit]
workmad3 is now known as wm3|away
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cryptoca has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
carbon has quit [Ping timeout: 264 seconds]
manishs has quit [Ping timeout: 246 seconds]
cryptoca_ has joined #ruby
carbon has joined #ruby
ybit has quit [Ping timeout: 268 seconds]
heath has joined #ruby
ixti has quit [Ping timeout: 268 seconds]
sectionm1 has joined #ruby
Kricir has joined #ruby
sectionme has quit [Read error: Connection reset by peer]
<ddv> does anyone know why my MessageParts namespace dissapeared? https://gist.github.com/anonymous/120109ff0d67db1d5595
paulfm has joined #ruby
terlar has quit [Quit: WeeChat 1.0]
Insti has quit [Ping timeout: 272 seconds]
bayed has joined #ruby
ixti has joined #ruby
hiyosi has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
ClarusCogitatio has joined #ruby
lyanchih has joined #ruby
sepp2k has joined #ruby
rotor has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
lyanchih has quit [Client Quit]
mkaesz has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
<jhass> ddv: it didn't, since you're already in that namespace it was normalized away
atmosx has joined #ruby
<ddv> jhass: how can I avoid this?
<jhass> it would be a redeclaration of the same NS
Insti has joined #ruby
<jhass> there's nothing wrong
Takle has joined #ruby
ponga has joined #ruby
karupa is now known as zz_karupa
riotjone_ has joined #ruby
Insti is now known as Guest79344
<ddv> jhass: well apparently Microsoft wants it this way
cirn0 has joined #ruby
<jhass> microsoft is wrong
riotjones has quit [Ping timeout: 240 seconds]
rjhunter has quit [Quit: Leaving...]
<jhass> you can probably try giving it a second name but I wouldn't be surprised if libxml2 resolves that too
grzywacz has joined #ruby
grzywacz has joined #ruby
<jhass> any remotely sane XML parser should have no issue with that
oso|away has quit [*.net *.split]
eshy has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
minecoins has quit [*.net *.split]
cibs has quit [*.net *.split]
<ddv> second name works, as in xmlns2, but I (or Mickeysoft) doesn't want that
<ddv> ok
Wolland_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 260 seconds]
<jhass> do you work from some icky example or did you actually run that against some MS software?
Wolland has joined #ruby
Stalkr_ has quit [Ping timeout: 268 seconds]
diegoviola has joined #ruby
<ddv> jhass: I got some examples from a client how the xml should be structured, didn't test it against their webservice yet.
aedorn has joined #ruby
<jhass> okay, then your client is wrong ;)
prologepilog has quit [Ping timeout: 250 seconds]
Dev-Gitter has quit [Ping timeout: 268 seconds]
<jhass> or their examples rather
manishs has joined #ruby
SilkFox_ has joined #ruby
<ddv> jhass: I wouldn't be surprised if visual studio generates that for you
FarlaTux has quit [Ping timeout: 276 seconds]
PHP4Ever has quit [Ping timeout: 276 seconds]
cyrinux has quit [Quit: Quitte]
<jhass> redeclaring the same NS on a element that's already in that NS is just noise libxml2 optimizes away for you
mercwithamouth has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
<ddv> jhass: okay thanks
cirn0 has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
carbon has quit [Read error: Connection reset by peer]
prologepilog has joined #ruby
eshy has joined #ruby
cibs has joined #ruby
oso|away has joined #ruby
zz_karupa has joined #ruby
minecoins has joined #ruby
Wolland_ has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has quit [Changing host]
Wolland has quit [Ping timeout: 260 seconds]
TieSoul has quit [Read error: Connection reset by peer]
dukz_ has quit [Remote host closed the connection]
dukz has joined #ruby
charliesome has joined #ruby
benzrf is now known as benzrf|offline
bluenemo has joined #ruby
krz has quit [Quit: WeeChat 1.0]
arturaz has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 255 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
pwh has joined #ruby
dukz has quit [Ping timeout: 240 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 260 seconds]
<aep> how do i convert a DateTime to unix timestamp?
<aep> there's no to_i as google would suggest
bearish has joined #ruby
<sevenseacat> to_i? :)
<aep> undefined method `to_i' for #<DateTime:0x007f9b5a2b30e8>
<timgauthier> str() wait no thats PHP
dblessing has joined #ruby
<aep> apparantly DateTime.to_i is a rails thing
<sevenseacat> well yes
ndrei has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
carbon has joined #ruby
InhalingPixels has joined #ruby
freerobby has quit [Quit: Leaving.]
<aep> .strftime('%s').to_i seems to work
<waxjar> DateTime.to_time.to_i
<aep> Time doesnt have to_i either
mengu has quit [Remote host closed the connection]
<waxjar> >> Time.now.to_i
Kricir has quit [Remote host closed the connection]
<eval-in____> waxjar => 1409922605 (https://eval.in/188819)
<aep> hm
diegoviola has quit [Remote host closed the connection]
abuzze_ has joined #ruby
Kricir has joined #ruby
jerius has quit []
<aep> yeah you're right. i must have typo'd. thanks
xenomorph is now known as {xenomorph}
<waxjar> strange that DateTime doesn't, though
{xenomorph} is now known as xenomorph
yokel has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoviola has joined #ruby
mark_locklear has joined #ruby
abuzze has quit [Ping timeout: 268 seconds]
tylerkern has joined #ruby
iamjarvo has joined #ruby
nemesit|znc has quit [Quit: ZNC - http://znc.in]
Kricir has quit [Ping timeout: 240 seconds]
doodlehaus has joined #ruby
sambao21 has joined #ruby
LangeOortjes has joined #ruby
AlSquire has quit [Ping timeout: 260 seconds]
wm3|away has quit [Ping timeout: 264 seconds]
suy has quit [Quit: No Ping reply in 180 seconds.]
suy has joined #ruby
bearish has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
manishs has quit [Ping timeout: 268 seconds]
tlarevo_ has quit [Read error: Connection reset by peer]
timgauthier is now known as timgauthier_isaw
tlarevo has joined #ruby
nucatus has joined #ruby
linojon has joined #ruby
freerobby has joined #ruby
hellangel7 has joined #ruby
timonv_ has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
carbon has quit [Ping timeout: 276 seconds]
tvw has quit []
Xeago has quit [Remote host closed the connection]
carbon has joined #ruby
oso|away has quit [*.net *.split]
eshy has quit [*.net *.split]
minecoins has quit [*.net *.split]
cibs has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
AlSquire has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
Wolland_ has quit [Ping timeout: 240 seconds]
eshy has joined #ruby
zz_karupa has joined #ruby
cibs has joined #ruby
minecoins has joined #ruby
oso|away has joined #ruby
Xeago has joined #ruby
Wolland has joined #ruby
Xeago has quit [Remote host closed the connection]
mferrier has joined #ruby
mollitz has quit [Ping timeout: 252 seconds]
spastorino has joined #ruby
ClarusCogitatio has quit [Ping timeout: 260 seconds]
shackleford has joined #ruby
manishs has joined #ruby
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
TorpedoSkyline has joined #ruby
arup_r has quit [Remote host closed the connection]
lkba has joined #ruby
ClarusCogitatio has joined #ruby
benzrf|offline is now known as benzrf
sigurding has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
sleepee has joined #ruby
Tomasso has joined #ruby
abuzze_ has quit [Remote host closed the connection]
wewezzvy has joined #ruby
<Tomasso> how do I match a string to have 17 characters in a regex ?
<canton7> why use regex?
<canton7> do you want to ignore whitespace, or something?
bmurt has joined #ruby
<toretore> also, define character
<Tomasso> canton7: because id like to have all the validations in a single string..
mengu has joined #ruby
mengu has joined #ruby
xcv has joined #ruby
cpruitt has joined #ruby
<Hanmac> Tomasso: are you sure you want regexp its easier with str.size == 17 or something
<canton7> Tomasso, having a single monolithic regex which handles all of your validation rules is horrific and should be avoided at all costs
freerobby has quit [Quit: Leaving.]
qmfnp has joined #ruby
<canton7> apart from being ugly and painful to maintain or understand, you can't provide information about which bit of the validation failed
<brahman> jhass: thanks for the answer, I found a stackexchange post explaining the same. After some testing the script that uses the modified YAML works like a charm. Thanks
<Tomasso> unless i can save each validation in blocks instead of strings with regexs ...
TripTastic has joined #ruby
<canton7> not sure what that statement means
TripTastic has left #ruby [#ruby]
abuzze has joined #ruby
sigurding has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
atmosx has quit [Ping timeout: 240 seconds]
bulyshko has joined #ruby
lemur has joined #ruby
arturaz has joined #ruby
<bulyshko> anyone alive?
abuzze has quit [Remote host closed the connection]
carbon has quit [Read error: Connection reset by peer]
<canton7> many peoples are alive
havenwood has joined #ruby
timonv_ has joined #ruby
abuzze has joined #ruby
<bulyshko> good. anyone familiar with rspecs?
<canton7> it's better to just ask your question
Mars` has joined #ruby
<canton7> anyone who answered "yes" to that question risks getting roped into something, so not many people will respond
<bulyshko> but I'm keep getting this error: The message 'create' was received by #<Object> but has already been received by #<Object>
carbon has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bulyshko> any ideas?
davedev24_ has joined #ruby
yfeldblum has joined #ruby
sigurding has quit [Ping timeout: 272 seconds]
lemur has quit [Ping timeout: 272 seconds]
JaVaSan has joined #ruby
Takle has quit [Remote host closed the connection]
User458764 has joined #ruby
<izzol2> ehh
<bulyshko> I saw this GitHub issue: https://github.com/rspec/rspec-mocks/issues/58 - there was a bug once, but now it should work. Isn't it?
<izzol2> when ruby will be in default in Centos :(
AlSquire has quit [Ping timeout: 240 seconds]
vjt has joined #ruby
abuzze has quit [Ping timeout: 268 seconds]
JohnFord has joined #ruby
shackleford has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> izzol2: ask #centos ;)
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<bulyshko> I guess no one knows?...
goodenough has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 240 seconds]
shock_one has joined #ruby
<bulyshko> btw allow_any_instance_of works fine
SilkFox_ has joined #ruby
wm3|away has joined #ruby
<bulyshko> so it would be awesome to know if there is something I'm doing wrong or there is a bug in rspec
sk87 has joined #ruby
<JaVaSan> Hi there, I tried to install ruby on Windows. It worked, but I can't get to run a hello world.If I use "ruby script.rb" on command-line, it prints "2" instead of the "hello world" string. However, If I run "%RUBY_HOME%\bin\ruby hello.rb", it works as expected and prints "Hello World!" (http://pastebin.com/5bJJmRxe). Any advice?
rdark_ has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
kachi8 has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
ringarin has joined #ruby
brahman has quit [Quit: Konversation terminated!]
jmbrown412 has joined #ruby
relix_ has joined #ruby
<canton7> JaVaSan, output of 'where ruby'?
sk87 has quit [Client Quit]
Takle has joined #ruby
<p0sixpscl> what does the * do in this case: Bundler.require(*Rails.groups)
p0sixpscl has quit [Quit: Textual IRC Client: www.textualapp.com]
<mozzarella> ([a, b]) -> (a, b)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crazed_ is now known as crazed
cocotton has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
DEA7TH has joined #ruby
hiyosi has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
abuzze has joined #ruby
rdark has quit [Read error: Connection reset by peer]
vjt_ has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
abuzze has quit [Remote host closed the connection]
timgauthier_isaw is now known as timgauthier
shock_one_ has joined #ruby
<JaVaSan> canton7: Thanks. There was a file called ruby.rb on the same directory.
shacklef_ has joined #ruby
bmurt_ has joined #ruby
bmurt has quit [Write error: Connection reset by peer]
MCDev has joined #ruby
<canton7> :)
SilkFox_ has quit [Ping timeout: 276 seconds]
zeroNones has joined #ruby
abuzze has joined #ruby
Kricir has joined #ruby
tvw has joined #ruby
jmbrown412 has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
wm3|away is now known as workmad3
JaVaSan has quit [Quit: Page closed]
timonv_ has quit [Remote host closed the connection]
freerobby has joined #ruby
tlarevo_ has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
tlarevo has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
Kerber0s has joined #ruby
ndrei has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
beef-wellington has joined #ruby
iamjarvo has joined #ruby
ghost2061 has joined #ruby
sdwrage_ has joined #ruby
sdwrage has quit [Ping timeout: 260 seconds]
aganov has quit [Quit: Leaving]
timonv_ has joined #ruby
ghost2060 has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
TripTastic has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
<mozzarella> what the fuck guys
Takle has quit [Remote host closed the connection]
ctp has joined #ruby
timonv_ has quit [Remote host closed the connection]
Mars` has joined #ruby
<sevenseacat> cry wolf much?
Ankhers has joined #ruby
eshy has quit [*.net *.split]
oso|away has quit [*.net *.split]
minecoins has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
cibs has quit [*.net *.split]
riotjone_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mpistone has joined #ruby
AlSquire has joined #ruby
claymore has quit [Quit: Leaving]
<mozzarella> why can't I do "puts smh.do spans_multiple_lines end"
snath has quit [Ping timeout: 246 seconds]
<mozzarella> I must either surround it with parentheses or use the {} version
<sevenseacat> because thats a syntax error
<mozzarella> I know
<sevenseacat> so why are you asking why
<mozzarella> why isn't it allowed
<workmad3> it's not a syntax error
<workmad3> it's that do/end and {} have different precedence levels
albedoa has joined #ruby
<sevenseacat> you have a method named do?
<workmad3> oh.. I assumed that '.' there was a typo
<sevenseacat> ;)
<mozzarella> it was
<mozzarella> sorry
qwyeth_ has quit [Quit: Leaving]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> mozzarella: 'puts smh do... end' == 'puts(smh) do ... end'
qwyeth_ has joined #ruby
<workmad3> mozzarella: while 'puts smh {...}' == 'puts(smh {...})'
<sevenseacat> and this is why !fake exists
mengu has quit [Remote host closed the connection]
<mozzarella> makes sense
<mozzarella> !fake
<workmad3> mozzarella: so you passed the block to puts rather than smh :)
<canton7> means that things like 'File.open "foo" do |f| ... end' work as you expect
<sevenseacat> but seriously, there's no need to 'omg what the fuck guys' because you didnt understand what was happening
abuzze has quit [Remote host closed the connection]
<workmad3> sevenseacat: it's friday... the day intended for being overly surprised by unknown syntax features!
Zesty has joined #ruby
<mozzarella> calm down
<mozzarella> there is no need to be upset
pu22l3r has joined #ruby
<workmad3> canton7: also means things like 'my_awesome_method %w{foo}.select {|i| i}.reject {|i| false}' work too :)
jottr is now known as elementz
reisl has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
eivindml has joined #ruby
Takle has joined #ruby
jaake has joined #ruby
mary5030 has joined #ruby
eshy has joined #ruby
oso|away has joined #ruby
cibs has joined #ruby
zz_karupa has joined #ruby
minecoins has joined #ruby
avita1 has joined #ruby
Lewix has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
bruno- has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
bearish has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
riotjones has joined #ruby
reisl is now known as larissa
Dev-Gitter has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
riotjones has quit [Client Quit]
PHP4Ever has joined #ruby
Aaaal has joined #ruby
Advocation has quit [Quit: Advocation]
lxsameer has quit [Quit: Leaving]
treehug88 has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dev-Gitter has quit [Max SendQ exceeded]
britneywright has joined #ruby
sparrovv has joined #ruby
Puppet` has quit [Ping timeout: 245 seconds]
bbloom has joined #ruby
MCDev has quit [Quit: HydraIRC -> http://www.hydrairc.com <- s0 d4Mn l33t |t'z 5c4rY!]
Dev-Gitter has joined #ruby
wallerdev has joined #ruby
<aep> what would be a good framework for event based raw tcp servers?
Dev-Gitter has quit [Max SendQ exceeded]
<aep> apparantly people like celluloid
arturaz has quit [Remote host closed the connection]
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
Dev-Gitter has joined #ruby
itspots has joined #ruby
itspots has quit [Changing host]
itspots has joined #ruby
Advocation has joined #ruby
bluenemo has quit [Quit: Verlassend]
ffranz has joined #ruby
Dev-Gitter has quit [Max SendQ exceeded]
icebourg has joined #ruby
manishs has quit [Ping timeout: 245 seconds]
Dev-Gitter has joined #ruby
geggam has joined #ruby
jxf has joined #ruby
ghost2060 has joined #ruby
wallerdev has quit [Ping timeout: 252 seconds]
AlSquire has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Stalkr_ has quit [Quit: Leaving...]
JBreit has joined #ruby
shacklef_ has quit [Remote host closed the connection]
wewezzvy has quit [Quit: Page closed]
ghost2061 has quit [Ping timeout: 255 seconds]
bMalum has joined #ruby
toastynerd has joined #ruby
mateu has joined #ruby
havenwood has quit [Remote host closed the connection]
HelperW____ has joined #ruby
TripTastic has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
carbon has quit [Ping timeout: 260 seconds]
ppinto has joined #ruby
colli5ion has joined #ruby
havenwood has quit [Remote host closed the connection]
dmyers has quit [Remote host closed the connection]
shackleford has joined #ruby
dumdedum has quit [Ping timeout: 245 seconds]
carbon has joined #ruby
pwh has quit []
speaking1ode has joined #ruby
dgheath21 has joined #ruby
mpistone has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
jprovazn is now known as jprovazn_afk
CaptainJet has joined #ruby
HelperW___ has quit [Ping timeout: 272 seconds]
ndrei has quit [Read error: No route to host]
Morkel has joined #ruby
speakingcode has quit [Ping timeout: 276 seconds]
HelperW____ has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
blackmes1 has joined #ruby
fsapo has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
larissa has quit [Quit: Leaving]
hiyosi has joined #ruby
kachi8 has quit [Ping timeout: 245 seconds]
rotor has joined #ruby
endash has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
txdv has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
mercwithamouth has joined #ruby
txdv has joined #ruby
chth0n has quit [Quit: Ex-Chat]
cirn0 has joined #ruby
DivineEntity has quit [Quit: Lost terminal]
hiyosi has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
hellangel7 has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
mr-foobar has quit [Quit: Leaving...]
cirn0 has quit [Ping timeout: 240 seconds]
bal has quit [Quit: bal]
hamakn has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
bmurt has joined #ruby
txdv has quit [Read error: Connection reset by peer]
qmfnp has joined #ruby
bmurt_ has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
axsuul has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
txdv has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
rubytor has quit [Ping timeout: 264 seconds]
TripTastic has joined #ruby
grzywacz has quit [Quit: :wq]
fabrice31 has quit [Ping timeout: 240 seconds]
JBreit has quit [Ping timeout: 264 seconds]
wjimenez5271 has joined #ruby
hiyosi has joined #ruby
sk87 has joined #ruby
livingstn has joined #ruby
Chm has joined #ruby
Chm has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
soxet has quit [Quit: Leaving]
RTG` has quit [Read error: Connection reset by peer]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RTG` has joined #ruby
startupality has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Scripore has quit [Ping timeout: 252 seconds]
carbon has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
ndrei has joined #ruby
axsuul_ has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
tlarevo_ has quit [Remote host closed the connection]
emocakes has quit []
ghost2061 has joined #ruby
carbon has joined #ruby
beef-wellington has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
renderful has joined #ruby
ghost2060 has quit [Ping timeout: 245 seconds]
maletor_ has joined #ruby
dukz has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has joined #ruby
axsuul_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
speaking1ode is now known as speakingcode
dgheath21 has quit [Quit: dgheath21]
axsuul has joined #ruby
atmosx has joined #ruby
avita1 has quit [Quit: Leaving.]
thams has quit [Ping timeout: 245 seconds]
hellangel7 has quit [Max SendQ exceeded]
visof has quit [Ping timeout: 252 seconds]
abuzze has joined #ruby
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
albedoa has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
jmbrown412 has joined #ruby
abuzze has quit [Remote host closed the connection]
qmfnp has joined #ruby
beef-wellington has joined #ruby
LangeOortjes has quit [Read error: Connection reset by peer]
mpistone has joined #ruby
LangeOortjes has joined #ruby
shock_one_ has quit [Read error: Connection reset by peer]
albedoa has joined #ruby
sevenseacat has quit [Quit: Leaving.]
<jeregrine> I've got a httparty class. the response body potentially contains error messages. If it does I want to raise an exception. Is making a custom parser the only way?
armyriad has quit [Ping timeout: 260 seconds]
shock_one_ has joined #ruby
shackleford has quit [Remote host closed the connection]
armyriad has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
pwestlund has quit [Ping timeout: 276 seconds]
TripTastic has quit [Ping timeout: 246 seconds]
dukz has quit [Ping timeout: 252 seconds]
bMalum has quit [Quit: bMalum]
JBreit has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoelMcCracken has joined #ruby
codeurge has joined #ruby
b00stfr3ak has joined #ruby
wallerdev has joined #ruby
wallerdev has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ffranz1 has joined #ruby
BTRE has quit [Ping timeout: 245 seconds]
Aaaal has quit [Quit: Aaaal]
shackleford has joined #ruby
arup_r_ has joined #ruby
ffranz has quit [Ping timeout: 276 seconds]
shackleford has quit [Remote host closed the connection]
LangeOortjes has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
shackleford has joined #ruby
LangeOortjes has joined #ruby
JoelMcCracken has left #ruby [#ruby]
sparrovv has quit [Remote host closed the connection]
dideler has joined #ruby
_tpavel has quit [Quit: Leaving]
<Hanmac> hey, wrote a script that shows the dependencies from a binary or lib and other libs ;P ... but i need to clean it up a bit, because nearly every lib needs "ld-linux-x86-64.so.2" so every other node does point to this node too ...
klmlfl has joined #ruby
jimmykarily has quit [Ping timeout: 255 seconds]
cDuff has joined #ruby
cDuff is now known as nDuff
blackmes1 has joined #ruby
arup_r_ has quit [Ping timeout: 245 seconds]
blackmes1 has quit [Client Quit]
ryanleesipes has joined #ruby
bMalum has joined #ruby
robbyoconnor has joined #ruby
ptrrr has quit [Quit: ptrrr]
bMalum has quit [Client Quit]
hellangel7 has joined #ruby
charliesome has quit [Quit: zzz]
ndrei has quit [Ping timeout: 272 seconds]
LangeOortjes has quit [Ping timeout: 252 seconds]
jobewan has joined #ruby
ndrei has joined #ruby
BTRE has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
shackleford has quit [Remote host closed the connection]
intnsity has joined #ruby
bartj3 has quit [Ping timeout: 245 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
bearish has quit [Remote host closed the connection]
dukz has joined #ruby
icarus has joined #ruby
icarus has quit [Changing host]
icarus has joined #ruby
benzrf|offline is now known as benzrf
LangeOortjes has joined #ruby
ponga has quit []
nitin_ has joined #ruby
lemur has joined #ruby
shackleford has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
RandyT has joined #ruby
kireevco has joined #ruby
albedoa has quit [Read error: Connection reset by peer]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RandyT has quit [Client Quit]
RandyT has joined #ruby
yfeldblum has joined #ruby
TieSoul has joined #ruby
toastynerd has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
klmlfl has quit []
i_s has joined #ruby
Advocation has quit [Quit: Advocation]
klmlfl has joined #ruby
HelperW____ has joined #ruby
Takle has quit [Remote host closed the connection]
tokik has quit [Ping timeout: 260 seconds]
ghost2061 has quit [Ping timeout: 246 seconds]
Tomasso has quit [Ping timeout: 246 seconds]
LangeOortjes has quit [Read error: Connection reset by peer]
Takle has joined #ruby
TripTastic has joined #ruby
LangeOortjes has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
choke has joined #ruby
bulyshko has quit [Quit: Lingo - http://www.lingoirc.com]
seamon has joined #ruby
SilkFox_ has joined #ruby
lkba has joined #ruby
HelperW____ has quit [Ping timeout: 268 seconds]
ndrei has quit [Ping timeout: 264 seconds]
JBreit has quit [Ping timeout: 264 seconds]
nitin_ has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has joined #ruby
lyanchih has joined #ruby
<shevy> LLVM 3.5 was released!
<shevy> everybody change
timgauthier is now known as timgauthier_isaw
kireevco has left #ruby [#ruby]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> shevy: ah, thanks for reminding me that I hadn't done a 'brew update' today :)
sepp2k has quit [Quit: Leaving.]
<shevy> that will automatically update llvm?
mikecmpbll has quit [Ping timeout: 255 seconds]
pwh has joined #ruby
<workmad3> shevy: dunno... if there's a new formula for it, it will
ghostmoth has joined #ruby
carbon has quit [Ping timeout: 276 seconds]
troyready has joined #ruby
shock_one_ has quit [Read error: Connection reset by peer]
Wolland has quit [Remote host closed the connection]
shock_one_ has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
RandyT has quit [Quit: ZNC - http://znc.in]
Wolland has joined #ruby
<shevy> cool
carbon has joined #ruby
RandyT has joined #ruby
<shevy> so you can do it like once in 2 weeks and your stuff gets updated
klmlfl has quit [Remote host closed the connection]
j_mcnall_ has joined #ruby
shock_one__ has joined #ruby
shock_one_ has quit [Read error: Connection reset by peer]
j_mcnall_ has quit [Client Quit]
j_mcnall_ has joined #ruby
ndrei has joined #ruby
ringarin has quit [Quit: Leaving]
pierombaabu has joined #ruby
hellangel7 has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
Wolland has quit [Ping timeout: 252 seconds]
pietr0 has joined #ruby
goleldar has joined #ruby
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
max06 has quit [Ping timeout: 255 seconds]
Lewix has joined #ruby
banister has joined #ruby
nitin_ has joined #ruby
ppinto has quit [Quit: ppinto]
mr-foobar has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
abuzze has joined #ruby
poulet_a has quit [Remote host closed the connection]
bricker`work has joined #ruby
snath has joined #ruby
livingstn has quit []
shock_one___ has joined #ruby
shock_one__ has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
qmfnp is now known as qmfnp_lunch
ndrei has quit [Ping timeout: 276 seconds]
wjimenez5271 has quit [Remote host closed the connection]
grokdancer has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
patrick99e99 has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
LangeOortjes has quit [Ping timeout: 252 seconds]
Scotteh has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scotteh has joined #ruby
awestroke has joined #ruby
ghost2060 has joined #ruby
pu22l3r has joined #ruby
sdwrage_ has quit [Quit: Leaving]
linojon has joined #ruby
agjacome has joined #ruby
Takle has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qmfnp_lunch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #ruby
JBreit has joined #ruby
starkhalo has joined #ruby
omosoj has joined #ruby
TripTastic has quit [Ping timeout: 255 seconds]
pwh has quit []
<omosoj> hey all, probably dumb question: is there a way to see whether one array has any values in common with another array (besides subtracting them?)
wezpyke has quit []
pu22l3r has quit [Ping timeout: 276 seconds]
<omosoj> something like .include?()
toastynerd has joined #ruby
emmesswhy has joined #ruby
abuzze has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
SouL has joined #ruby
Takle has joined #ruby
<shevy> is it possible to rescue more than one error at the same time?
mollitz has joined #ruby
<mferrier> shevy: rescue Exception1, Exception2 => e
<shevy> cool thanks man
<Mon_Ouie> omosoj: Just as you said it, a.any? { |x| b.include? x }
fsapo_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lw has quit [Quit: s]
abuzze has joined #ruby
<Mon_Ouie> (The main advantage over the first form is that it can short-circuit)
<omosoj> is that preferred over something like: if (string - lib).count < string.count;
<omosoj> the first form (my form) can be short-circuit?
mikecmpbll has joined #ruby
mooru has joined #ruby
sambao21 has joined #ruby
<Mon_Ouie> No it can't, it has to iterate over the whole array to construct a - b
larissa has joined #ruby
maestrojed has joined #ruby
Advocation has joined #ruby
lmickh has joined #ruby
<omosoj> short-circuit is good?
Neomex has joined #ruby
<Mon_Ouie> short-circuiting means stopping execution early because you already know what the result is going to be
MrL0ngbowman has joined #ruby
AlSquire has quit [Ping timeout: 245 seconds]
<Mon_Ouie> e.g. in a && b, if a is false, you don't need to evaluate b because you already know the expression is going to evaluate to false
lkba has quit [Read error: Connection reset by peer]
<omosoj> i see. cool.
lkba has joined #ruby
mkaesz has joined #ruby
<banister> Mon_Ouie i just left brussels
<omosoj> thanks
<Mon_Ouie> What did you do there?
<banister> Mon_Ouie which is the best library in brussels? i was at royal belgique museum and it nasty
lyanchih__ has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
lyanchih has quit [Ping timeout: 255 seconds]
lyanchih__ is now known as lyanchih
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
colli5ion has quit [Ping timeout: 276 seconds]
cocotton has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
cocotton has joined #ruby
<Mon_Ouie> I'm not really sure, I haven't visited many
<banister> Mon_Ouie i was just exploring -- man, there's so many nasty/cheap computer shops in center of brussels that just sell junk
<banister> Mon_Ouie it's quite a nasty place really -- you should move up in the world and come live in holland instead ;)
<eam> nasty/cheap computer shops are great
<eam> that's where the real work happens
<Mon_Ouie> The Fnac is fine, that's where I tend to buy stuff
dukz has quit [Remote host closed the connection]
narph has quit [Quit: Connection closed for inactivity]
chrishough has joined #ruby
dukz has joined #ruby
dukz has quit [Read error: Connection reset by peer]
dukz has joined #ruby
<eam> my favorite computer store is also a e-recycling center
carraroj has joined #ruby
<banister> Mon_Ouie i like all the vietnamese restaurants though -- does belgium have a close relationship with vietnam? most asian restaruants in holland are thai
<banister> or chinese
toastynerd has quit [Remote host closed the connection]
<Mon_Ouie> I've only ever been in in Chinese and Japanese ones
cocotton has quit [Read error: Connection reset by peer]
cocotton_ has joined #ruby
elementz has quit [Ping timeout: 246 seconds]
AlSquire has joined #ruby
<banister> Mon_Ouie btw do belgian french have a slight inferiority complex with regard to the true french?
bearish has joined #ruby
toastynerd has joined #ruby
JohnBat26 has joined #ruby
yfeldblum has joined #ruby
<Lewix> banister: no they don't
<Lewix> banister: they speak as good of a french as french, with a slight accent
dukz has quit [Remote host closed the connection]
<Lewix> it's almost unnoticeable
dukz has joined #ruby
<banister> really? my bro's french gf says the belgian accent is very noticeable
<Lewix> However, there are a lot of french jokes about belgians and vice versa
Phrogz_ has joined #ruby
Phrogz_ has joined #ruby
Phrogz_ has quit [Changing host]
Phrogz_ is now known as Phrogz
<Lewix> banister: I disagree.
<banister> fairynuff
<waxjar> same with the dutch and the flamish
<Phrogz> Anyone here used any wav file libs? I'm trying to determine the length of a .wav in ms
grokdancer has quit [Quit: Leaving.]
carbon has quit [Read error: Connection reset by peer]
<Lewix> banister: It's very subjective but the more you go south the thicker the accent, French is no exception. Belgians have a less heavy accent than a lot of southern places in France imo
<shevy> Phrogz not me but I usually use ffmpeg
<shevy> only for .mp3 files so far though
lemur has joined #ruby
<Lewix> s/French/France*
jprovazn_afk has quit [Quit: Odcházím]
<shevy> "The duration of file `GypsyKings_HotelCalifornia.mp3` is: 347 seconds."
<shevy> I am not sure if ffmpeg gives ms .... hmmm
Synthead has quit [Ping timeout: 245 seconds]
<shevy> well it seems to give a bit
<shevy> Duration: 00:05:47.56, start: 0.000000, bitrate: 64 kb/s
<shevy> so 0.56 ms I guess
<shevy> eh, I mean... add the seconds and minutes to that too
<shevy> in ms :P
Takle has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<Lewix> Mon_Ouie: I heard that holland is so small that after a few months you lose interest and move up in the world to Canada =)
TripTastic has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Phrogz> shevy: I don't have to use Ruby. Let me look into ffmpeg
dukz has quit [Ping timeout: 272 seconds]
<shevy> \o/
msmith_ has joined #ruby
<shevy> I guess I could add this to my multimedia project
thumpba has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
carbon has joined #ruby
Spami has joined #ruby
elementz has joined #ruby
JBreit has quit [Ping timeout: 252 seconds]
lemur has quit [Ping timeout: 272 seconds]
qba73 has quit []
<shevy> what info do you need to be returned?
<shevy> a string in milliseconds?
andrewjanssen has joined #ruby
<Phrogz> shevy: I'm just trying to find the duration of a few .wav files accurately. Integer number of ms would be fine.
<shevy> k
<Phrogz> I'm skimming ffmpeg -h right now but not seeing how to make it dump stats on the file.
adrenaline_ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
<Phrogz> This looks close to what I want, but the methods appear to be oriented towards someone who understands the breakdown of the .wav file format. https://github.com/jstrait/wavefile
<mferrier> $ ffmpeg -i test.wav 2>&1 | grep -i duration
<mferrier> Duration: 00:00:04.44, bitrate: 1412 kb/s
toastynerd has quit [Remote host closed the connection]
<shevy> Reader.new("some_file.wav", Format.new(:mono, :float_32, 44100))
<shevy> if he was clever, he added a method to Reader to return the ms
cirn0 has joined #ruby
kenneth has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<shevy> but yeah ffmpeg gives you that format string Phrogz
<shevy> you only have to convert 4.44 into ... 4 * 60 + 44
Steve has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
larissa has quit [Ping timeout: 260 seconds]
<Phrogz> mferrier: Thanks!
<Phrogz> shevy: "Duration: 00:00:01.71" You're saying that's not 1710ms?
<Mon_Ouie> shevy: 4.44 is 4 .44s already
<shevy> oh yeah
<Mon_Ouie> It's hh:mm:ss.abc
larissa has joined #ruby
<shevy> what about 44:44.4
SilkFox_ has joined #ruby
<Phrogz> groovy. Yeah, I'd need some *60000 for that.
atmosx has quit [Remote host closed the connection]
<Mon_Ouie> 44 minutes, 44 seconds, 400 milliseconds
<Phrogz> But these sounds are all short effects :)
<Phrogz> I have what I need now, but feel free to modify your library to add .duration or whatever you like. :) Thanks both.
Steve has joined #ruby
atmosx has joined #ruby
sectionme has joined #ruby
poulet_a has joined #ruby
W0rmDr1nk has quit [Ping timeout: 264 seconds]
andrewjanssen has quit [Quit: Leaving...]
renderful has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<shevy> yeah I think I modified it already, did not test it, but my openssl is broken right now, I can't upload new gems from the commandline :(
<shevy> I have now been struggling since 2 days with openssl...
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has quit [Ping timeout: 276 seconds]
sectionm1 has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
Takle has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
<Phrogz> I hate that sort of yak shaving.
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
grokdancer has joined #ruby
JimmyNeutron has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matchaw has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
iamjarvo has joined #ruby
mocfive has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
wallerdev has joined #ruby
pwh has joined #ruby
mocfive has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
_maes_ has joined #ruby
<wallerdev> goooooood morning #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
toastynerd has joined #ruby
mrsolo has joined #ruby
zettam has quit [Read error: Connection reset by peer]
BeanDip has quit [Ping timeout: 240 seconds]
kachi8 has joined #ruby
saarinen has joined #ruby
mercwithamouth has joined #ruby
Xeago has quit [Remote host closed the connection]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yetanotherdave has joined #ruby
TripTastic has quit [Ping timeout: 264 seconds]
mocfive has quit [Ping timeout: 268 seconds]
Steve has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
AlSquire has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
Xeago has joined #ruby
loc22 has joined #ruby
rikai has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
elementz has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
rikai has joined #ruby
thumpba has joined #ruby
havenwood has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
AlSquire has joined #ruby
Xeago has quit [Remote host closed the connection]
renderful has joined #ruby
carbon has quit [Ping timeout: 268 seconds]
lyanchih has quit [Ping timeout: 268 seconds]
Advocation has quit [Quit: Advocation]
sinkensabe has quit [Remote host closed the connection]
abuzze has quit [Remote host closed the connection]
carbon has joined #ruby
lw has joined #ruby
lw has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
loc22 has quit [Ping timeout: 246 seconds]
zer0ne has joined #ruby
relix has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
einarj has quit [Remote host closed the connection]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
eivindml has joined #ruby
BeanDip has joined #ruby
mattmcclure has joined #ruby
JimmyNeutron has joined #ruby
zer0ne is now known as boscoe
klaut has joined #ruby
boscoe is now known as b0scoe
mengu has joined #ruby
seamon has quit [Quit: Zzzzzzz]
mengu has quit [Client Quit]
tvw has quit [Ping timeout: 264 seconds]
BeanDip has quit [Ping timeout: 268 seconds]
seamon has joined #ruby
Dev-Gitter has quit [Quit: Leaving [Bye Everybody]]
PHP4Ever has quit [Quit: Leaving [Bye Everybody]]
<Phrogz> Hola, wallerdev
kalusn has quit [Remote host closed the connection]
<wallerdev> whats up
elementz has joined #ruby
seamon has quit [Client Quit]
shock_one___ has quit [Quit: Computer has gone to sleep.]
kalusn has joined #ruby
kalusn has quit [Remote host closed the connection]
bricker`work has quit [Read error: Connection reset by peer]
elstif has quit [Quit: Leaving.]
yfeldblum has joined #ruby
ta_ has joined #ruby
bearish has quit [Remote host closed the connection]
claymore has joined #ruby
rockdon_ has joined #ruby
ta has quit [Ping timeout: 268 seconds]
dcoxall has joined #ruby
cina has joined #ruby
Asher2 has joined #ruby
poulet_a has quit [Quit: Quitte]
startupality has quit [Quit: startupality]
Asher has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
BeanDip has joined #ruby
Asher2 is now known as Asher
Norrin has joined #ruby
Zackio is now known as CaveJohnson
<preyalone> How can I identify repetitions of sequences (e.g. "aa", "\n\n", "abab") and replace them with the first occurence ("a", "\n", "ab")?
bricker`work has joined #ruby
carbon has quit [Quit: Lost terminal]
<jhass> preyalone: check String#squeeze
elementz has quit [Quit: WeeChat 1.0]
mark_locklear has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
grokdancer has quit [Quit: Leaving.]
Alina-malina has quit [Ping timeout: 240 seconds]
<preyalone> String#squeeze is wonderful, but it doesn't squeeze end of line characters (e.g. \n\n should transform to \n for my purposes)
Lewix has quit [Read error: Connection reset by peer]
banjara has joined #ruby
Alina-malina has joined #ruby
<jhass> >> "\n\n".squeeze("\n")
<eval-in____> jhass => "\n" (https://eval.in/188966)
Lewix has joined #ruby
BeanDip has quit [Ping timeout: 276 seconds]
albedoa has joined #ruby
mocfive has joined #ruby
jottr has joined #ruby
<preyalone> Also, squeeze does not appear to capture repeated sequences of groups of characters (e.g. "abab")
bearish has joined #ruby
<jhass> oh, yeah
rezzack has quit [Quit: Leaving.]
pierombaabu has quit [Remote host closed the connection]
<wallerdev> >> "abababab is abababab".gsub(/(.+?)(\1)+/, '\1')
<eval-in____> wallerdev => "ab is ab" (https://eval.in/188967)
<wallerdev> or somethin
threesixes has joined #ruby
lkba has joined #ruby
AlSquirrel has joined #ruby
AlSquire has quit [Quit: Quitte]
AlSquirrel has quit [Remote host closed the connection]
BeanDip has joined #ruby
Takle has joined #ruby
AlSquire has joined #ruby
dcoxall has quit []
emmesswhy has quit [Quit: This computer has gone to sleep]
Alina-malina has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
Mon_Ouie has quit [Ping timeout: 268 seconds]
<preyalone> wallerdev, just add the multiline flag to that, and it works!
<shevy> is there a way to convert a Time object into a float?
<preyalone> .gsub(/(.+?)(\1)+/m, '\1')
<shevy> ahhh .to_f
ndrei has quit [Ping timeout: 276 seconds]
toastynerd has quit [Remote host closed the connection]
grokdancer has joined #ruby
newfellow has joined #ruby
ndrei has joined #ruby
newfellow has quit [Client Quit]
emmesswhy has joined #ruby
robbyoconnor has quit [Ping timeout: 276 seconds]
albedoa has quit [Read error: Connection reset by peer]
ghostmoth has left #ruby [#ruby]
ghostmoth has joined #ruby
j_mcnall_ has quit [Ping timeout: 276 seconds]
sectionme has quit [Ping timeout: 245 seconds]
omosoj has quit [Ping timeout: 260 seconds]
albedoa has joined #ruby
mferrier_ has joined #ruby
SilkFox_ has joined #ruby
djbkd has quit [Remote host closed the connection]
BeanDip has quit [Ping timeout: 252 seconds]
TieSoul has left #ruby [#ruby]
cpruitt has quit [Quit: cpruitt]
rdark_ has quit [Quit: leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mferrier has quit [Ping timeout: 252 seconds]
melik has joined #ruby
qmfnp has joined #ruby
SilkFox_ has quit [Ping timeout: 252 seconds]
rkalfane_ has joined #ruby
dmfranc has quit []
reset has joined #ruby
cocotton_ has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
mark_locklear has joined #ruby
16WAACAOY has joined #ruby
l3ck has joined #ruby
cina has quit [Ping timeout: 252 seconds]
fsapo_ is now known as fsapo
BeanDip has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
luckyruby has quit [Ping timeout: 264 seconds]
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
mooru has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
hellangel7 has joined #ruby
nDuff has quit [Read error: Connection reset by peer]
adamski2600 has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
adamski2600 has joined #ruby
echevemaster has joined #ruby
ctp has joined #ruby
fsapo has quit [Remote host closed the connection]
anshin has quit [Quit: storming here again]
jxf has quit [Ping timeout: 252 seconds]
j_mcnall_ has joined #ruby
fsapo has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adamski2600 has quit [Ping timeout: 246 seconds]
Juanchito has joined #ruby
djbkd has joined #ruby
skfax has joined #ruby
cgore has joined #ruby
failshell has joined #ruby
<graft_> anyone have a good trick for doing weighted samples from an array?
Wolland has joined #ruby
<graft_> preferably in O(1)?
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mocfive has quit [Remote host closed the connection]
rkalfane_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mocfive has joined #ruby
Hobogrammer has joined #ruby
djbkd has quit [Remote host closed the connection]
<wallerdev> dont think theres anything built in for that unless you assume all weights are equal haha
<wallerdev> probably a gem though
djbkd has joined #ruby
larissa has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
m8 has joined #ruby
cpruitt has joined #ruby
gtrak_ has quit [Ping timeout: 264 seconds]
ursooperduper has joined #ruby
yfeldblum has joined #ruby
cocotton has quit [Remote host closed the connection]
djbkd has quit [Client Quit]
gtrak has joined #ruby
cocotton has joined #ruby
iamjarvo has joined #ruby
Martxel has joined #ruby
kaspertidemann has joined #ruby
kirun has joined #ruby
qualiabyte has joined #ruby
cina has joined #ruby
skfax has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
heftig has quit [Quit: Quitting]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BeanDip has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
LangeOortjes has joined #ruby
JBreit has joined #ruby
j_mcnall_ has joined #ruby
chrishough has joined #ruby
<graft_> hm i don't think this can be done cheaper than log(n)
<failshell> is there a gem that helps in manipulating ip addresses/netmasks? i need to extract the subnets from say 172.28.90.0/23. which is 172.28.90.0/24 and 172.28.91.0/24.
JBreit has left #ruby [#ruby]
<centrx> graft_, You could do it in R/RSRuby, there might be a pre-made best-of-breed algorithm for it in R
ppinto has joined #ruby
renderful has quit [Remote host closed the connection]
<yxhuvvd> failshell: if ipaddr in the stdlib isn't good enough, check out the ipaddress gem.
cina has quit [Quit: leaving]
dmfranc has joined #ruby
davedev24_ has quit [Ping timeout: 260 seconds]
<failshell> yxhuvvd: ipaddress might do it
elstif has joined #ruby
postmodern has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
jherbst has joined #ruby
ppinto has quit [Client Quit]
davedev24_ has joined #ruby
fabrice31 has joined #ruby
benzrf|offline is now known as benzrf
lemur has joined #ruby
<failshell> yxhuvvd: exactly what i needed. thanks
ppinto has joined #ruby
Rahul_Roy has joined #ruby
sepp2k has joined #ruby
niklasb_ has joined #ruby
mocfive has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
elstif has quit [Client Quit]
mocfive has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
mocfive has quit [Read error: Connection reset by peer]
msmith_ has quit [Remote host closed the connection]
mferrier_ has quit [Remote host closed the connection]
mocfive has joined #ruby
BeanDip has joined #ruby
mferrier has joined #ruby
fabrice31 has quit [Ping timeout: 268 seconds]
aspires has quit []
lemur has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrL0ngbowman has quit [Remote host closed the connection]
robustus has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
l3ck has quit [Quit: Bye!]
JBreit has joined #ruby
pwh has quit [Ping timeout: 245 seconds]
ctp has joined #ruby
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBreit has left #ruby [#ruby]
BeanDip has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
SilkFox_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
tvw has joined #ruby
oso|away is now known as oso96_2000
nanoyak has quit [Quit: Computer has gone to sleep.]
gtrak has quit [Quit: No Ping reply in 180 seconds.]
SilkFox_ has quit [Ping timeout: 240 seconds]
sectionme has joined #ruby
seamon has joined #ruby
benzrf|offline is now known as benzrf
gtrak has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
omosoj has joined #ruby
BeanDip has joined #ruby
sectionme has quit [Ping timeout: 246 seconds]
banjara has quit [Quit: Leaving.]
rezzack has joined #ruby
awestroke has quit [Remote host closed the connection]
rkalfane_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Inhaling_ has joined #ruby
iamjarvo has joined #ruby
Takle has joined #ruby
jaake has quit [Ping timeout: 252 seconds]
BeanDip has quit [Ping timeout: 246 seconds]
siwica has joined #ruby
dmfranc has quit []
soheil has joined #ruby
grokdancer has quit [Quit: Leaving.]
klmlfl has joined #ruby
InhalingPixels has quit [Ping timeout: 260 seconds]
benzrf is now known as benzrf|offline
Kerber0s has quit [Remote host closed the connection]
BeanDip has joined #ruby
lw has joined #ruby
someguy has joined #ruby
aspires has joined #ruby
olekenneth has quit [Ping timeout: 260 seconds]
Kerber0s has joined #ruby
InhalingPixels has joined #ruby
ryanleesipes has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
pu22l3r has joined #ruby
<someguy> how do I get the total number of mails using imap?
cocotton has quit [Remote host closed the connection]
Inhaling_ has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
dangerousdave has joined #ruby
BeanDip has quit [Ping timeout: 245 seconds]
tjr9898 has joined #ruby
Kerber0s has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
iamjarvo has joined #ruby
rkalfane_ is now known as rk
cocotton has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
mpistone has quit [Remote host closed the connection]
nanoyak has joined #ruby
rk is now known as rklf
dangerousdave has quit [Client Quit]
emmesswhy has quit [Quit: This computer has gone to sleep]
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
shazaum has joined #ruby
olekenneth has joined #ruby
bearish has left #ruby [#ruby]
siwica has quit [Ping timeout: 240 seconds]
BeanDip has joined #ruby
User458764 has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
someguy has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Jackneill has quit [Remote host closed the connection]
ryanleesipes has joined #ruby
mark_locklear has quit [Quit: Leaving]
bMalum has joined #ruby
rklf has quit [Ping timeout: 264 seconds]
cDuff has joined #ruby
siwica has joined #ruby
mrsolo has joined #ruby
klaut has quit []
nobitanobi has quit []
zettam has joined #ruby
dmfranc has joined #ruby
ppinto has quit [Read error: No route to host]
lw has quit [Read error: Connection reset by peer]
ppinto has joined #ruby
lw has joined #ruby
rkalfane_ has joined #ruby
dmfranc has quit [Max SendQ exceeded]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cDuff has quit [Ping timeout: 246 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
Akuma has quit [Ping timeout: 240 seconds]
decoponio has quit [Quit: Leaving...]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sylvanica has quit [Ping timeout: 255 seconds]
sdegutis has joined #ruby
<sdegutis> Hi!
iamjarvo has joined #ruby
Akuma has joined #ruby
<atmosx> hi
siwica has quit [Remote host closed the connection]
Kerber0s has joined #ruby
<sdegutis> How are you?
<Sou|cutter> How do you feel about are you?
omosoj has quit [Ping timeout: 276 seconds]
<sdegutis> Great, thanks! I am just about to Google how to use Ruby 2.1 keywords, very exciting!
<centrx> wow
wallerdev_ has joined #ruby
<sdegutis> Yes.
* centrx breaks out the balloons
<sdegutis> <3
wallerdev has quit [Ping timeout: 246 seconds]
wallerdev_ is now known as wallerdev
banjara has joined #ruby
renderful has joined #ruby
sdegutis has left #ruby ["Leaving..."]
agjacome has quit [Quit: Lost terminal]
siwica has joined #ruby
jarto has joined #ruby
lemur has joined #ruby
seamon has quit [Quit: Zzzzzzz]
dangerousdave has joined #ruby
agjacome has joined #ruby
oso96_2000 is now known as oso|away
coderhs has quit [Remote host closed the connection]
shazaum has quit [Quit: Saindo]
InhalingPixels has quit [Remote host closed the connection]
rkalfane_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Client Quit]
shackleford has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
dorei has joined #ruby
tobago has quit [Remote host closed the connection]
ppinto has quit [Ping timeout: 268 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
elaptics is now known as elaptics`away
cgore has quit [Remote host closed the connection]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
shackleford has joined #ruby
jarto has joined #ruby
shackleford has quit [Remote host closed the connection]
ppinto has joined #ruby
Kricir has quit [Remote host closed the connection]
Photism has joined #ruby
<havenwood> Friday!
* havenwood double checks that it really is
User458764 has quit [Ping timeout: 252 seconds]
shackleford has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
jarto has quit [Client Quit]
grokdancer has joined #ruby
jarto has joined #ruby
threesixes has quit [Changing host]
threesixes has joined #ruby
nanoyak has joined #ruby
jarto has quit [Remote host closed the connection]
threesixes has quit [Quit: SATAN!!!!!!!!]
alvaro_o has joined #ruby
threesixes has joined #ruby
siwica has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
RandyT_ has joined #ruby
RandyT has quit [Ping timeout: 245 seconds]
RandyT_ is now known as RandyT
siwica has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jarto has joined #ruby
agjacome has quit [Quit: leaving]
rockdon_ has joined #ruby
agjacome has joined #ruby
<havenwood> >> %w[mon tues wednes thurs fri satur sun].zip(['day'].cycle).map &:join
<eval-in____> havenwood => ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"] (https://eval.in/189024)
<havenwood> >> %w[mon tues wednes thurs fri satur sun].each_with_object('day').map &:<<
<eval-in____> havenwood => ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"] (https://eval.in/189026)
chrishough has joined #ruby
dangerousdave has joined #ruby
sylvanica has joined #ruby
<havenwood> >> require 'date'; Date::DAYNAMES.rotate.map &:downcase
<eval-in____> havenwood => ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"] (https://eval.in/189028)
yfeldblum has quit [Read error: Connection reset by peer]
<centrx> >> %w[moon tiw woden thor freya saturn sun].map { |it| "#{it}spotato" }
<eval-in____> centrx => ["moonspotato", "tiwspotato", "wodenspotato", "thorspotato", "freyaspotato", "saturnspotato", "sunspotato"] (https://eval.in/189029)
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 272 seconds]
sn0wb1rd has quit [Quit: See ya]
<Hanmac> >> %w[mon tues wednes thurs fri satur sun].map(&"%sday".method(:%))
<eval-in____> Hanmac => ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"] (https://eval.in/189030)
yfeldblum has joined #ruby
sn0wb1rd has joined #ruby
<havenwood> Freya's Day! Let us ride our chariot pulled by cats through the halls of monkeypatching
yfeldblu_ has joined #ruby
GinoMan has joined #ruby
dideler has quit [Ping timeout: 276 seconds]
Lewix has quit [Remote host closed the connection]
<shevy> omg
sn0wb1rd has quit [Client Quit]
sn0wb1rd has joined #ruby
Blizzy has joined #ruby
<jhass> havenwood: nope, today is Pungenday
yfeldblum has quit [Ping timeout: 272 seconds]
fsapo has quit [Ping timeout: 276 seconds]
e4xit has quit [Quit: Right I'm out!]
Blizzy is now known as blieaewa
shackleford has quit [Remote host closed the connection]
blieaewa is now known as Blizzy
LangeOortjes has quit [Remote host closed the connection]
benjamintpoon has joined #ruby
jobewan has joined #ruby
<Boohbah> jhass: that must be a few days after Shower day
<havenwood> Pungenday, the 29th day of Bureaucracy in the YOLD 3180
benzrf|offline is now known as benzrf
seamon has joined #ruby
<havenwood> jhass: so it is
siwica has quit [Remote host closed the connection]
shredding has joined #ruby
Kricir has joined #ruby
pu22l3r has joined #ruby
cocotton has quit [Remote host closed the connection]
hiyosi has joined #ruby
x1337807x has joined #ruby
zmartAzz has joined #ruby
soheil has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 246 seconds]
fsapo has joined #ruby
iamjarvo has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
treehug88 has quit [Ping timeout: 252 seconds]
davedev24_ has quit [Ping timeout: 268 seconds]
ht__th has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spami has joined #ruby
ghostmoth has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
cocotton has joined #ruby
jobewan has joined #ruby
mpistone has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
einarj has joined #ruby
jobewan has quit [Remote host closed the connection]
aspires has quit []
dangerousdave has joined #ruby
razrunelord has joined #ruby
shock_one___ has joined #ruby
Morkel has quit [Quit: Morkel]
olekenneth has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
shevy has joined #ruby
lw has quit [Quit: s]
Takle has quit [Remote host closed the connection]
aspires has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
anaeem1 has joined #ruby
shock_one___ has quit [Ping timeout: 255 seconds]
rkalfane_ has joined #ruby
grokdancer has quit [Quit: Leaving.]
fabrice31 has quit [Ping timeout: 276 seconds]
<mary5030> hi there:)
ndrei has joined #ruby
<mary5030> so if i have a structure like this what is the best way to print destination's value
<mary5030> { "item" => [{"destination" => "32342342", "other" => "332424"}]}
<centrx> structure['item'].first['destination']
paulfm has quit []
yetanotherdave has quit [Ping timeout: 255 seconds]
chrishough has quit [Ping timeout: 245 seconds]
<mary5030> thanks
jfo has joined #ruby
malkomalko has joined #ruby
cocotton has quit [Remote host closed the connection]
vjt_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
vjt has quit [Quit: reboot]
emmesswhy has joined #ruby
duncannz has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
slash_beep is now known as slash_nick
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
rkalfane_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
cocotton has joined #ruby
soheil has joined #ruby
kaspertidemann has quit []
olekenneth has joined #ruby
chrishough has joined #ruby
yetanotherdave has joined #ruby
n_blownapart has joined #ruby
Photism has quit [Ping timeout: 246 seconds]
einarj_ has joined #ruby
lemur has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
rkalfane_ has joined #ruby
aspires has quit []
nitin_ has quit [Ping timeout: 276 seconds]
benjamintpoon has quit [Quit: Page closed]
Avahey_ has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
InhalingPixels has joined #ruby
Photism has joined #ruby
codecop has quit [Remote host closed the connection]
timonv_ has joined #ruby
claymore has quit [Quit: Leaving]
aspires has joined #ruby
rkalfane_ has quit [Client Quit]
cocotton has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 272 seconds]
bmurt has quit []
sailias has quit [Quit: Leaving.]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
tejas-manohar has joined #ruby
JoshGlzBrk has joined #ruby
cocotton_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mocfive has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 240 seconds]
anaeem1__ has quit [Ping timeout: 245 seconds]
mocfive has joined #ruby
anaeem1 has joined #ruby
MarcWebe1 has quit [Quit: leaving]
klmlfl has quit [Ping timeout: 255 seconds]
tylerkern has quit [Quit: Connection closed for inactivity]
mercwithamouth has joined #ruby
x1337807x has joined #ruby
SilkFox_ has joined #ruby
davedev24_ has joined #ruby
catepillar has quit [Quit: brb]
andrewjanssen has joined #ruby
SouL has quit [Ping timeout: 268 seconds]
SouL_ has joined #ruby
jaake has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
BeanDip has quit [Read error: Connection reset by peer]
nitin_ has joined #ruby
Wolland has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
cbetta_ has quit [Changing host]
cbetta_ has joined #ruby
cbetta_ has quit [Changing host]
cbetta_ has joined #ruby
cocotton has quit [Remote host closed the connection]
soheil has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
cocotton has joined #ruby
nanoyak has joined #ruby
fsapo has quit [Remote host closed the connection]
malkomalko has quit []
endash has quit [Quit: endash]
soheil has joined #ruby
codecop has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
sylvanica has quit [Quit: sylvanica]
beef-wellington has quit [Ping timeout: 252 seconds]
hellangel7 has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
codecop has quit [Client Quit]
io_syl has joined #ruby
omosoj has joined #ruby
sinkensabe has joined #ruby
jfo has quit []
beef-wellington has joined #ruby
chrishough has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
sepp2k has quit [Quit: Leaving.]
emmesswhy has joined #ruby
W0rmDr1nk has joined #ruby
seamon has quit [Quit: Zzzzzzz]
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k has joined #ruby
bradleyprice has quit []
ldnunes has quit [Quit: Leaving]
cocotton has quit [Remote host closed the connection]
dangerousdave has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
mpistone has quit []
cocotton has joined #ruby
adamski2600 has joined #ruby
jfo has joined #ruby
datreh has joined #ruby
mikeg has joined #ruby
shackleford has joined #ruby
shackleford has quit [Remote host closed the connection]
shackleford has joined #ruby
ppinto has quit [Quit: ppinto]
mferrier has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
mferrier has joined #ruby
adamski2600 has quit [Ping timeout: 268 seconds]
seamon has joined #ruby
obscured has quit [Quit: leaving]
jfo has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
mferrier has quit [Ping timeout: 246 seconds]
InhalingPixels has joined #ruby
tvw has quit []
andrewjanssen has joined #ruby
beef-wellington has quit [Ping timeout: 264 seconds]
gccostabr has joined #ruby
x1337807x has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> result = `bzip2 --version`
<shevy> can one of you guys do this?
<shevy> in irb
<shevy> I seem to get blocked after that command
sinkensabe has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
bluOxigen has quit [Ping timeout: 245 seconds]
beef-wellington has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
nucatus has quit [Remote host closed the connection]
soheil has quit [Remote host closed the connection]
ruby-lang120 has joined #ruby
jerius has quit []
cesar_ has joined #ruby
<ruby-lang120> are the rooms ruby and ruby_lang connected?
cesar_ is now known as Guest71349
mikeg has quit [Remote host closed the connection]
b0scoe has quit []
Guest71349 is now known as cesarstafe
Takle has joined #ruby
<cesarstafe> people, where can I find a documentation of ruby 1.9 syntax... www.ruby.com perhaps?
failshell has quit [Remote host closed the connection]
<cesarstafe> another good tutorial over there?
sdwrage has joined #ruby
andrewlio has quit [Quit: Leaving.]
<havenwood> cesarstafe: http://www.ruby-doc.org/
simplyaubs has joined #ruby
<cesarstafe> havenwood: thanks man
Wolland has quit [Remote host closed the connection]
sambao21 has joined #ruby
<havenwood> shevy: yeah, funky
<shevy> :(
<shevy> it's the first misbehaving program
Wolland has joined #ruby
<shevy> sed, coreutils, find, m4, bison, yacc ... all the others happily work via ``
ffranz1 has quit [Quit: Leaving]
<havenwood> shevy: it's output is to stderr, hem
<havenwood> its&
<shevy> hmm
<shevy> how can you grab that output?
pasties has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
<havenwood> shevy: require 'open3'; Open3.popen2e('bzip2 --help') { |_, stdout_and_stderr| stdout_and_stderr.read }
<shevy> cool
<shevy> ugly, but cool
<shevy> nope
<shevy> does not work with --version
<havenwood> shevy: i get why `bzip --version` output isn't capturing, i don't get why it isn't returning
<havenwood> shevy: oh dang, i didn't realize i'd swapped it >.>
<shevy> well that is weird
<havenwood> again, it doesn't return
InhalingPixels has quit [Remote host closed the connection]
<shevy> :(
<havenwood> why?
<shevy> I dunno!
<shevy> actually
<shevy> when I do this in irb:
<shevy> result = `bzip2 --version 2>&1`
<shevy> nothing happens
Wolland has quit [Ping timeout: 272 seconds]
<shevy> then I hit ctrl+c
<shevy> ^CIRB::Abort: abort then interrupt!
shredding has joined #ruby
<shevy> somehow it wants or waits for something
<pipework> shevy: What exactly are you trying to convey or ask about?
<shevy> pipework the installed version of bzip, in a script that will display to the user all versions of some core programs on a typical *nix system
aspires has quit []
<pipework> shevy: What's the relevance to using irb to execute a shell command?
rklfn has joined #ruby
<shevy> for testing purposes
<shevy> I need to capture the version string
<pipework> And what, might I ask, were you testing?
testcore has joined #ruby
<shevy> why bzip2 --version misbehaves
<pipework> shevy: In what way?
shredding has quit [Client Quit]
<shevy> pipework when I run it like that via the ``, it blocks the whole program
pasties has joined #ruby
linojon has quit [Quit: linojon]
sparrovv has joined #ruby
jbw has joined #ruby
mr-foobar has quit [Quit: Leaving...]
beef-wellington has quit [Ping timeout: 240 seconds]
<pipework> shevy: works fine here.
shredding has joined #ruby
<pipework> but I used bunzip2 as the executable, I don't have bzip2
aspires has joined #ruby
<shevy> hmm
sparrovv has quit [Read error: Connection reset by peer]
<pipework> shevy: Have you checked the exit status of your command?
sparrovv has joined #ruby
<shevy> strange
<pipework> I get 0
<shevy> via bunzip2 it works indeed
orolo has quit [Quit: This computer has gone to sleep]
rklfn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GinoMan has quit [Ping timeout: 252 seconds]
n_blownapart has quit []
ryanleesipes has quit [Quit: Leaving]
<havenwood> it return 1 from the shell
<havenwood> returns*
<pipework> havenwood: bzip2 --version does?
<havenwood> pipework: yup
<pipework> fascinating.
Sht0 has quit [Ping timeout: 252 seconds]
anshin has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
m8 has quit [Quit: Sto andando via]
Wolland has joined #ruby
soheil has joined #ruby
<shevy> hehe
bruno- has quit [Ping timeout: 252 seconds]
Wolland_ has joined #ruby
shredding has quit [Quit: shredding]
albedoa has quit [Ping timeout: 240 seconds]
weems|mac has quit [Quit: bai]
Synthead has joined #ruby
cesarstafe has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
ringarin has joined #ruby
icebourg has quit []
<shevy> that's the problem when the human brain works with numbers
rklfn has joined #ruby
<pipework> shevy: We can barely handle 0 and 1. :(
SilkFox_ has joined #ruby
cirn0 has joined #ruby
<havenwood> shevy: so --version calls `license()` which fprintfs to stderr then calls `BZ2_bzlibVersion()`
<shevy> as long as I can keep 42, I am fine
Wolland has quit [Ping timeout: 276 seconds]
<shevy> how do you find this out havenwood?
<pipework> He opened the source.
Kricir has quit [Remote host closed the connection]
cocotton has quit [Quit: Leaving...]
cocotton has joined #ruby
<havenwood> shevy: i downloaded the source code and read it ;P
<shevy> I tried to do that too but then I was silent because I could not even properly grep for where it was :(
Kricir has joined #ruby
Takle has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
<shevy> one day I will learn C
<shevy> (after rails)
<shevy> ...
<pipework> shevy: Don't bother.
<pipework> Just learn scratch.
<shevy> scratch?
TorpedoSkyline has joined #ruby
ghostmoth has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
JohnFord has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has quit [Ping timeout: 272 seconds]
Kricir has quit [Ping timeout: 240 seconds]
kennet___ has joined #ruby
heftig has quit [Quit: Quitting]
kenne____ has joined #ruby
kaspergrubbe has joined #ruby
heftig has joined #ruby
<ruby-lang120> how does the <=> operator help you sort something if it returns -1,0,1 ?
Mon_Ouie has quit [Ping timeout: 245 seconds]
kenneth has quit [Ping timeout: 255 seconds]
beef-wellington has joined #ruby
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
jds has quit [Quit: Connection closed for inactivity]
<ruby-lang120> was just on that page, doesn't make sense :/
kennet___ has quit [Ping timeout: 245 seconds]
<pipework> ruby-lang120: Well, imagine. There's three possible values for comparing any two things.
seamon has quit [Quit: Zzzzzzz]
dorei has quit []
<ruby-lang120> ok
<pipework> If you have a list of some kind, you compare those objects using a sorting algorithm. But before you can apply an algorithm, you need to be able to compare those objects.
mocfive has quit [Remote host closed the connection]
<pipework> So if any two objects are comparable, the only possible results of the comparison are greater than, less than, and equivalent.
<ruby-lang120> makes sense
mocfive has joined #ruby
spider-mario has quit [Remote host closed the connection]
soheil has quit []
<ruby-lang120> 1=greater 0=same -1=less than
<havenwood> ruby-lang120: just a way to tell it what metric you're comparing on
Kerber0s has quit [Remote host closed the connection]
seamon has joined #ruby
shock_one___ has joined #ruby
<havenwood> ruby-lang120: size, alphabet, call a method to find out, whatever you want to use to compare you put on both sids of the spaceship operator
ringaring has joined #ruby
Wolland_ has quit [Remote host closed the connection]
Synthead has quit [Ping timeout: 272 seconds]
<ruby-lang120> how does it know to reorder the array to descending order in this example https://gist.github.com/gabrie30/a4653b529bf0543e08f5
supa_ has joined #ruby
<supa_> I'm trying to find a ruby gem with seccomp support. Any tips?
Wolland has joined #ruby
<havenwood> ruby-lang120: second_book is to the left (no headlessCamelCase in Ruby!)
dblessing has quit [Quit: dblessing]
<ruby-lang120> first_book reference "charley and the chocolate factory, correct
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<supa_> havenwood: Thanks, but that's a sandbox.
mollitz has quit [Ping timeout: 268 seconds]
<havenwood> supa_: what are you looking for?
failshell has joined #ruby
<havenwood> supa_: ahh, gotcha, not a sandbox in general but seccomp specifically
<havenwood> supa_: i'm slow today
<supa_> Right, specifically seccomp.
ringarin has quit [Ping timeout: 260 seconds]
<ruby-lang120> (no headlessCamelCase in Ruby!) <-- im sorry i dont understand
<havenwood> "System call filtering isn't a sandbox."
<havenwood> gotcha
<havenwood> ruby-lang120: this_is_snake_case andThisIsHeadlessCamelCase
<supa_> In a nut shell, I have a web service that accepts operations on data. I allow Python currently via seccomp and thought it would be neat to add ruby support.
rockdon_ has joined #ruby
pu22l3r has joined #ruby
<havenwood> ruby-lang120: SCREAMING_SNAKE_CASE CamelCase
<supa_> If I could implement both Python and Ruby with the same seccomp rules... perfect. :)
<ruby-lang120> thx
<pipework> supa_: My guess is that you'll need to make your own C extension library.
Wolland_ has joined #ruby
Obversity has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
<supa_> Seems like it. Maybe I can use FFI to load libseccomp?
<pipework> I can't find anything in rubygems or the googles for it.
gccostabr has joined #ruby
<pipework> supa_: Do you need to load it? My cursory reading shows it's something you can enable with prctl as an argument.
<headius> please try FFI before writing another damn C ext
<ruby-lang120> how does this line change the order of the list? books.sort! { |firstBook, secondBook| secondBook <=> firstBook }
<headius> that is all
e4xit has joined #ruby
workmad3 has joined #ruby
<supa_> headius: lttp, see 17:25 supa_ :)
<havenwood> ruby-lang120: second_book is on the left and first_book is on the right (stop with the headless camel case!)
<ruby-lang120> |FB, SB| these reference the first and second items in the array, correct?
hiyosi has joined #ruby
<pipework> Yeah, either way, you can ostensibly just use prctl
<headius> supa_: yeah I'm just supporting that avenue of exploration :-D
<pipework> (2)
ringaring has quit [Quit: Leaving]
Wolland_ has quit [Remote host closed the connection]
<supa_> pipework: That's also correct.
rezzack has quit [Quit: Leaving.]
TorpedoSkyline has joined #ruby
<ruby-lang120> or the [0] and [1] items
<pipework> supa_: good luck superham
<supa_> ... ham? :P
bruno- has joined #ruby
failshell has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
rockdon_ has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 272 seconds]
<shevy> ham
<shevy> food
pandaant has quit [Remote host closed the connection]
<supa_> pipework wants to eat me? o.O
<shevy> he even ate his own mom
<shevy> because she did not document how to use the kitchen
<shevy> it made him very irate
joelbrewer has joined #ruby
i_s has quit []
xenomorph is now known as {xenomorph}
hiyosi has quit [Ping timeout: 252 seconds]
renderful has quit [Remote host closed the connection]
<joelbrewer> hey, I just created this method to load an arbitray attribute from the Instagram API and save the resulting attribute to the data to a database: https://gist.github.com/JahBrewski/7c63573fb222e90400c6
<joelbrewer> Since I'm still pretty new to ruby I was wondering if there is a better way to write this?
<joelbrewer> Can I make it more idiomatic?
fabrice31 has quit [Ping timeout: 252 seconds]
<jhass> use public_send to dynamically call methods
bruno- has quit [Ping timeout: 246 seconds]
rezzack has joined #ruby
<joelbrewer> jhass, so rust replace all occurences of send with public_send?
<joelbrewer> *just
<jhass> that too, but also all appearances of .method(..).call
renderful has joined #ruby
lw has joined #ruby
rezzack has quit [Client Quit]
<jhass> memorize the result of the call so you don't have to call it twice: if result = public_send("instagram_#{object}"); result
bMalum has quit [Read error: No route to host]
shackleford has quit [Remote host closed the connection]
simplyaubs has quit [Quit: simplyaubs]
<joelbrewer> jhass, hmm, would you mind marking up my gist? Not sure if I understand completely.
bMalum has joined #ruby
rezzack has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
zettam_ has joined #ruby
simplyaubs has joined #ruby
zettam has quit [Ping timeout: 246 seconds]
wallerdev has quit [Ping timeout: 245 seconds]
rockdon_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
seamon has quit [Quit: Zzzzzzz]
sparrovv has quit [Remote host closed the connection]
Sgeo has joined #ruby
axsuul has joined #ruby
sparrovv has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
rockdon_ has quit [Client Quit]
goodenough has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
Wolland has joined #ruby
failshell has joined #ruby
axsuul has joined #ruby
jaake has quit [Ping timeout: 245 seconds]
sparrovv has quit [Ping timeout: 255 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
brtdv has joined #ruby
brtdv has quit [Client Quit]
lw has quit [Read error: Connection reset by peer]
pwh_ has quit []
lw has joined #ruby
pwh has joined #ruby
<jhass> joelbrewer: I think I'd do http://paste.mrzyx.de/p4ce6965b/
simplyaubs has quit [Quit: simplyaubs]
failshel_ has joined #ruby
supa_ has left #ruby [#ruby]
vt102 has quit [Ping timeout: 260 seconds]
<joelbrewer> jhass: nice!
failshell has quit [Ping timeout: 272 seconds]
axisys has quit [Remote host closed the connection]
<joelbrewer> jhass: I'm fairly proud of this method. It's about as down and dirty with ruby as I've gotten
<joelbrewer> (which shows I have a lot to learn)
andrewjanssen has quit [Quit: Leaving...]
<jhass> don't worry, it's not bad
<jhass> btw. is that an AR model?
doodlehaus has quit [Remote host closed the connection]
<joelbrewer> jhass: yeah.
<joelbrewer> jhass: why do you ask?
<jhass> you'll see in a moment
io_syl_ has joined #ruby
lemur has joined #ruby
pontiki has joined #ruby
saarinen has quit [Quit: saarinen]
skysploit has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
failshel_ has quit [Ping timeout: 272 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
thumpba has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
<jhass> so here's an alternative http://paste.mrzyx.de/pe6733981/
io_syl has quit [Ping timeout: 252 seconds]
skyspl0it has joined #ruby
skyspl0it has quit [Remote host closed the connection]
sevvie has joined #ruby
<joelbrewer> jhass: ahhh. nice.
sevvie has quit [Client Quit]
aspires has quit []
freerobby has quit [Quit: Leaving.]
lemur has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
txdv has quit [Read error: Connection reset by peer]
skysploit has quit [Read error: Connection reset by peer]
Xaitec has joined #ruby
txdv has joined #ruby
seamon has joined #ruby
<banister> jhass updaet_attribute causes a world of pain
<banister> jhass rails 4 has update() that'll run validations
<jhass> eh right, but tell joelbrewer ;P
<jhass> my rails is a bit rusty
<banister> oh hehe
ghr has quit [Ping timeout: 272 seconds]
bricker`1ork has joined #ruby
mary5030 has quit [Remote host closed the connection]
<tejas-manohar> how to loop through a hash of hashes of format {"-JW72CElds5Fw4ij4PuD"=>{"username"=>"asdasdasd"}, "-JW72dtOg8Q5XkASGutI"=>{"username"=>"qwoenqwe"}} and check if a certain "username"'s value is x?
<tejas-manohar> snippets preferred but really any help is super appreciated
<tejas-manohar> new to ruby
SilkFox_ has joined #ruby
j_mcnall_ has joined #ruby
bricker`work has quit [Ping timeout: 268 seconds]
16WAACAOY has quit [Remote host closed the connection]
mcarey has joined #ruby
<havenwood> >> {"-JW72CElds5Fw4ij4PuD"=>{"username"=>"asdasdasd"}, "-JW72dtOg8Q5XkASGutI"=>{"username"=>"qwoenqwe"}}.find { |_, v| v['username'] == 'qwoenqwe' }
<eval-in____> havenwood => ["-JW72dtOg8Q5XkASGutI", {"username"=>"qwoenqwe"}] (https://eval.in/189125)
iceden has quit [Ping timeout: 252 seconds]
lw has quit [Quit: s]
<havenwood> tejas-manohar: _ in place of k (for 'key') since we're not using the key
<tejas-manohar> havenwood: um, "_ in place of k"?
<tejas-manohar> what snippet are you referring to by this
<tejas-manohar> like which code are you saying to modify
<havenwood> tejas-manohar: ^
<havenwood> tejas-manohar: #find { |k, v|
j_mcnall_ is now known as j_mcnally
<havenwood> tejas-manohar: {aim: true, example: true}.find { |k, v| k == :this || v == true }
<havenwood> tejas-manohar: play around with it in irb/Pry
SilkFox_ has quit [Ping timeout: 252 seconds]
mkaesz has quit [Remote host closed the connection]
<tejas-manohar> ah, havenwood: so like response.find { |_, v| v['username'] == 'qwoenqwe' } saying response is my hash of hashes
<tejas-manohar> how does the find method work? waht does it return? cant find this anywhere, not relating to a gem, right?
<havenwood> yup
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
Davedo has quit [Ping timeout: 268 seconds]
mkaesz has joined #ruby
hello888 has joined #ruby
<hello888> can anyone help me with a question i have
<pipework> havenwood: Don't tell me you prefer find over the rhyming detect?
<tejas-manohar> ask it
<tejas-manohar> havenwood: why is there no .find code ex there but there is for .detect and .find_all
<hello888> im trying to learn Ruby and taking the ruby monk lessons online
<havenwood> pipework: well, when i'm rapping or writing limericks
<hello888> As you can see in the output, the method just returns the first match rather than all the matches. In order to find further matches, we can pass a second argument to the match method. When the second parameter is present, it specifies the position in the string to begin the search. Let's find the second character in the string 'RubyMonk Is Pretty Brilliant' preceded by a space, which should be 'P'.
<pipework> havenwood: I just prefer detect, select, reject.
<havenwood> tejas-manohar: detect is an alias to find, find_all is an alias to select
<havenwood> tejas-manohar: two methods, two names for each
<hello888> 'RubyMonk Is Pretty Brilliant'.match(/ ./)'RubyMonk Is Pretty Brilliant'.match(/ ./, 9)
<tejas-manohar> havenwood: so it really doesnt matter if i use detect or find? it relates to the same code in the core ruby?
<hello888> so its shows 'RubyMonk Is Pretty Brilliant'.match(/ ./) and gives 'RubyMonk Is Pretty Brilliant'.match(/ ./, 9) as an answer
<hello888> where does the 9 come form?
<havenwood> tejas-manohar: just your preference
<havenwood> tejas-manohar: except use #map not #collect :P
<tejas-manohar> havenwood: great :P
ghostmoth has quit [Quit: ghostmoth]
renderful has quit [Remote host closed the connection]
<pipework> But it rhymes with detect, select, and reject!
<tejas-manohar> havenwood: so do i bhave to check if the array is blank?
mkaesz has quit [Ping timeout: 255 seconds]
<tejas-manohar> so if there are no matches, it just returns []?
<havenwood> pipework: lol
<havenwood> tejas-manohar: some methods return nil if no match, others return an empty array if no match
pwh has quit []
<havenwood> >> [].keep_if { :nope }
<eval-in____> havenwood => [] (https://eval.in/189126)
<havenwood> >> [].select { :nope }
<eval-in____> havenwood => [] (https://eval.in/189127)
<havenwood> >> [].select! { :nope }
<eval-in____> havenwood => nil (https://eval.in/189128)
<tejas-manohar> ah so its nil for this
<pipework> Yeah, I mean #find and #detect are for finding a single thing.
ghostmoth has joined #ruby
<pipework> If you can't find it, why should it return a collection?
ghostmoth has quit [Client Quit]
mcarey has left #ruby [#ruby]
<hello888> anyone help me? im sure my questions are really easy for you guys to answer
<havenwood> >> [[].reject {}, [].reject! {}, [].delete_if {}]
<eval-in____> havenwood => [[], nil, []] (https://eval.in/189129)
<jhass> hello888: yes that's easy to answer: no one can help if you don't ask your actual question
<hello888> i asked it
<hello888> where does the 9 come from
<pipework> Storks
rezzack has quit [Quit: Leaving.]
<hello888> cehck above jhass i asked
<havenwood> >> '12345'.match /./, 2
iceden has joined #ruby
<eval-in____> havenwood => #<MatchData "3"> (https://eval.in/189130)
<centrx> hello888, "If the second parameter is present, it specifies the position in the string to begin the search."
<hello888> i dont know what any of that means
julianhurley has joined #ruby
AmBienCeD has joined #ruby
<centrx> hello888, The 9 is the second parameter. It represents the index/position in the string where the search begins
<hello888> but how was that index/position determined?
<hello888> it asks this As you can see in the output, the method just returns the first match rather than all the matches. In order to find further matches, we can pass a second argument to the match method. When the second parameter is present, it specifies the position in the string to begin the search. Let's find the second character in the string 'RubyMonk Is Pretty Brilliant' preceded by a space, which should be 'P'.
thumpba has joined #ruby
bruno- has joined #ruby
<hello888> and shows this as the problem 'RubyMonk Is Pretty Brilliant'.match(/ ./)
<tejas-manohar> havenwood: can unless be paired with else?
<centrx> hello888, For this example/question, it was determined by someone manually looking at the string with their eyes I assume
<havenwood> hello888: try this code: '01234 <- those are in index zero through four, so we will ask for the first digit after index five, a 9'.match /\d/, 5
<havenwood> tejas-manohar: everything
j_mcnally has quit [Quit: さよなら]
<hello888> centrx where does the 9 come from? P isnt the 9th anything
rezzack has joined #ruby
<hello888> havenwood sorry i dont know what that means
<jhass> hello888: what character would the "problem" return?
<pontiki> time to pack it in, get on the tram
<hello888> jhass P
<centrx> hello888, str[9] == 'I', the I in Is
<jhass> hello888: no, not the solution
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<jhass> the given example
<atmosx> anyone has any experience with foreman and clockwork?
<atmosx> err sidekiq and clockwork sorry
<hello888> 'RubyMonk Is Pretty Brilliant'.match(/ ./) is the example
<pontiki> yes, atmosx, but i'm leaving
<pontiki> bbl tonite
<jhass> hello888: yes, what does that return
<hello888> 'RubyMonk Is Pretty Brilliant'.match(/ ./, 9) is the solution
<atmosx> pontiki: :-O hahaha... okay nite pontiki :-)
<hello888> jhass it returns error
<hello888> the solution returns a 'P'
<jhass> hello888: if you run it in irb or pry
<hello888> but how and wtf is 9
lmickh has quit [Remote host closed the connection]
<hello888> what is irb or pry?
<hello888> this is my 2nd day using ruby
<jhass> do you have ruby installed?
<hello888> im using ruby monk
rim-k has joined #ruby
<jhass> still
<rim-k> hello everyone!
bruno- has quit [Ping timeout: 245 seconds]
<hello888> i have no idea what u are talking about
<hello888> 'RubyMonk Is Pretty Brilliant'.match(/ ./, 9) is the solution and it outputs P, why is that??
<jhass> do you have ruby installed? simple question
hiyosi has joined #ruby
narcan has joined #ruby
<centrx> hello888, irb and pry are programs where you can test your Ruby expressions
rklfn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davedo has joined #ruby
<rim-k> does anyone know if it's possible to get the date/time of a tweet (result of Twitter::Search)?
rklfn has joined #ruby
<jhass> hello888: you have been answered that multiple times already, since you don't seem to understand those answers, I want to go through it with you baby-step by baby-step
<rim-k> I seem to get only the avatar/body/name
<hello888> jhass i answered i dont know what any of your answers mean
<hello888> ive given my example and the solution
<hello888> i dont understand why
tjr9898 has quit [Remote host closed the connection]
cocotton_ has joined #ruby
<jhass> hello888: so I take it, you don't want my help?
cesarstafe has joined #ruby
<hello888> i want any help i can get
<jhass> please state that clearly so we don't waste our each others time
<hello888> what would u like me to state
tjr9898 has joined #ruby
<jhass> hello888: then, do you have ruby installed?
<hello888> i am using ruby monk
<atmosx> clockwork executed the task but I can't see nothing in my queue weird shit
<hello888> ruby installed on my computer
<hello888> im in library
<jhass> is that a yes or a no?
<rim-k> anyone?
<hello888> using ruby monk
<centrx> He's using a public computer at the library, so no Ruby installed
<hello888> ^
<hello888> thought my answer was clear
julianhurley has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
<hello888> 'RubyMonk Is Pretty Brilliant'.match(/ ./, 9) how does the 9 output 'P' ?
<centrx> hello888, What would you say 'RubyMonk Is Pretty Brilliant'.match(/ ./) does?
<hello888> i dont think it does anything
<jhass> rim-k: if we look at http://rubydoc.info/gems/twitter/Twitter/Tweet we see it includes Creatable which defines a created_at method
<hello888> im day two into ruby here with no instructions other than what ive found on ruby monk
<jhass> hello888: it does return something. What would you think it does return?
<hello888> actually i think it would show I orsomething
<centrx> hello888, Ruby Monk may not be the best place to start, especially if you haven't done programming before
<jhass> hello888: actually, let's try here:
<rim-k> jhass: thx!!
jack_rabbit has joined #ruby
emmesswhy has joined #ruby
Lewix has joined #ruby
<tejas-manohar> havenwood: when to use classes in ruby?
<pipework> hello888: I'f suggest picking up "Learn to program" by Chris Pines.
<tejas-manohar> when working with web stuff like sinatra
cocotton has quit [Ping timeout: 276 seconds]
j_mcnally has joined #ruby
<centrx> >> ['eval-in', 'like', 'irb'].join(' is ')
<eval-in____> centrx => "eval-in is like is irb" (https://eval.in/189132)
<hello888> centrx i looked at code academy in Sf they told me to learn using ruby monk
hiyosi has quit [Ping timeout: 272 seconds]
<hello888> pipework i tried that pdf it was so technical and had errors too
<hello888> i had to leave that book
<jhass> >> 'RubyMonk Is Pretty Brilliant'.match(/ ./) # hello888
<eval-in____> jhass => #<MatchData " I"> (https://eval.in/189133)
<pipework> hello888: It doesn't have errors.
Deele has quit [Ping timeout: 276 seconds]
<pipework> It's also very not technical.
<pipework> tejas-manohar: when you have behaviour and data that should be wrapped together in such a way that your behaviour encapsulates the data.
<jhass> hello888: did you see what it returns?
<hello888> pipework yes it does the 2nd lesson is incorreect
<tejas-manohar> pipework: sounds good!
<pipework> hello888: In what way?
<hello888> I jhass ?
<jhass> I mentioned you, didn't I?
<centrx> C'est moi
<hello888> pipework i cant explain it technically but i was in the room the other day asking and everyone was saying o man that book gave wrong directions
<pipework> I've gone through the book while teaching people how to program. I'm not aware of the problem.
<hello888> no jhass the answer is out put I ?
tjr9898 has quit [Ping timeout: 276 seconds]
cocotton_ has quit [Ping timeout: 276 seconds]
<pipework> hello888: That might not be a technical problem, just a matter of preference.
<hello888> i have no preference i dont know shit
<hello888> im trying to learn
<pipework> It's one of the least technical books about a very technical subject matter.
<jhass> hello888: exactly, so which letter in the string is "I"?
<jhass> what position does it have?
<hello888> 9th
<hello888> this is the question it asks though jhass As you can see in the output, the method just returns the first match rather than all the matches. In order to find further matches, we can pass a second argument to the match method. When the second parameter is present, it specifies the position in the string to begin the search. Let's find the second character in the string 'RubyMonk Is Pretty Brilliant' preceded by a space, which should be
<centrx> We understand :)
<hello888> i dont :(
beef-wellington has quit [Ping timeout: 240 seconds]
<jhass> hello888: so we found out that the first match is at position 9, right?
<hello888> yes
<jhass> hello888: and we learned that we can specify the position where match should start searching, right?
<hello888> how?
<jhass> read the text again that you pasted 5 times into the channel or the docs centrx linked
<hello888> i dont understand thats what im asking
Deele has joined #ruby
<hello888> you guys have done this for months or years im day two
<jhass> okay, do you know what a parameter is?
Martxel has quit [Read error: Connection reset by peer]
<hello888> no not really
freerobby has joined #ruby
<jhass> do you know what a method is?
<hello888> not really
<hello888> ruby monk starts off hard
<jhass> maybe you should start with tryruby.org
<centrx> Yeah there must be a better resource for learning _programming_ from scratch instead of _Ruby_
nfk has quit [Quit: yawn]
einarj_ has quit [Ping timeout: 245 seconds]
<hello888> code academy sent me chris pines pdf and ruby monk lessons
<tejas-manohar> pipework: http://bpaste.net/show/f0ccabf084fe does that seem about right?
<pipework> I really think you would benefit from actually reading through the whole Learn to Program book before taking other people's opinions on its correctness. It's been used to teach people new to programming for some years now.
<tejas-manohar> ok
<pipework> tejas-manohar: You tell me? I don't know what you're asking about.
<hello888> pipework i understand that and i gave it a try, it was so technical i didnt understand it, when i looked for help and presented the problem and the code i was working on the chat room said the book was incorrect
<hello888> i dont know enough to say otherwise hence my seeking help on every problem
<pipework> hello888: I think you'll be hard-pressed to find a less technical book on learning how to tell computers to do things.
Xaitec has quit [Remote host closed the connection]
<pipework> Unless you think scratch looks simple enough.
<hello888> dang
<hello888> well thanks anyway guys
<tejas-manohar> lol
<tejas-manohar> i mean thats the fact
<pipework> tejas-manohar: If I were you, I'd consider memoizing the response of the call to firebase.
<tejas-manohar> pipework: why memorizing it?
<tejas-manohar> oh ok hmmm
<pipework> tejas-manohar: Because you're getting all the users to see if a single user is there, which is a request that blocks until it finishes.
mrsolo has quit [Quit: Leaving]
pwh has joined #ruby
<pipework> If you memoize it, you just need to purge the cache whenever you'd like. But at least then you only need to make a single request to get the list of users until you want to refetch.
<tejas-manohar> pipework: memoizing is sorta like caching it right?
<pipework> tejas-manohar: Yeah.
<tejas-manohar> yeah
razrunelord has quit [Remote host closed the connection]
<pipework> Also, you don't need to ask if match is nil. use `users.detect { ... }` as the last line.
rklfn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tejas-manohar> implicit returning?
datreh has quit [Quit: Computer has gone to sleep.]
<pipework> Yeah, no need to use explicit return in ruby. The last expression evaluated is the thing that is returned.
<tejas-manohar> yeah
<tejas-manohar> pipework: well basiucally my site is one where users would go to aand "verify" their yo uesrname to associate it with a real life name and email and whatever
<tejas-manohar> pipework: users go to it and enter their username, if its already verified, they are redirected to the profile page
<tejas-manohar> if its not, theyre sent to auth which basically means yo us in x seconds to authenticate
<tejas-manohar> *yo us from the username u entered of course
<tejas-manohar> if i cache that request, that could cause problems with someone checking their usenrame right after auth'ing adn setting up profile
<tejas-manohar> and it asking them to auth again
<pipework> tejas-manohar: What I would suggest to keep things smooth is to keep the list of users up to date locally some other way outside of the request.
gtc has joined #ruby
<tejas-manohar> pipework: but "if i cache that request, that could cause problems with someone checking their usenrame right after auth'ing adn setting up profile"
<pipework> Like, every n minutes/seconds/whatevers issue a request that will fetch the users and store them locally.
sleepee has quit [Ping timeout: 240 seconds]
<tejas-manohar> oh hmm
<tejas-manohar> is it worth it if its every minute
britneywright has joined #ruby
<tejas-manohar> pipework:
<pipework> tejas-manohar: So, someone signs up for a service you control, right?
<pipework> Then they choose a username?
<hello888> good day guys
<tejas-manohar> pipework: Yo is not a service I conttrol
<havenwood> hello888: later, happy hacking!
<pipework> tejas-manohar: Oh I see.
aspires has joined #ruby
<havenwood> hello888: keep at it, things start making sense eventually ;)
<tejas-manohar> after they auth, they can share veriyo.herokuapp.com/profile/myusername
<tejas-manohar> and be like
<tejas-manohar> this is me
<hello888> idk man i think im done
<tejas-manohar> so when you get somethign from me
<hello888> cant even find help in a chat room
<tejas-manohar> you know who it is
<tejas-manohar> justyo.co
<tejas-manohar> yo is a stupid app that lets you send one word 'yo' completely anonymous
<pipework> tejas-manohar: I guess it won't be too bad in that case, as long as you can reach firebase quickly.
<tejas-manohar> yeah
<tejas-manohar> firebase ia realtime db
<tejas-manohar> thats the stuff its meant for
<pipework> Yeah, but network latency.
<pipework> Someone makes a request to you that stays open while you make a blocking request to firebase.
bricker`1ork has quit [Quit: leaving]
<tejas-manohar> pipework: hmm, i guess
<tejas-manohar> i have to update it at least every minute i think
<pipework> I don't use firebase personally, but I don't use database-as-a-service ever. My datum is far too precious.
<tejas-manohar> otherwise i could just cause bad UX
hello888 has quit [Quit: Page closed]
<tejas-manohar> this is stupid data lol
rklfn has joined #ruby
<pipework> tejas-manohar: I mean, you could make the request like you are now.
<pipework> Especially if that's really all that happens or must happen before any more processing can happen before the response.
Bumptious has quit [Remote host closed the connection]
<tejas-manohar> pipework: yeah
<tejas-manohar> just for UX reasons, i think thats best
<tejas-manohar> i mean i dont expect a super duper high activity on this site
<tejas-manohar> its pretty derp
<tejas-manohar> for practice
<tejas-manohar> and fun
<pipework> I mean, you could use ajax on the client side if you wanted to keep the UI from locking.
<pipework> It's probably fine.
snath has quit [Ping timeout: 240 seconds]
heath has quit [Changing host]
heath has joined #ruby
rklfn has quit [Client Quit]
<tejas-manohar> pipework: yeah
<tejas-manohar> pipework: http://bpaste.net/show/1e15f2944255 so does that logically make sense
<pipework> tejas-manohar: You don't need the `match =` portion.
lemur has joined #ruby
<pipework> Also, you don't need ` == true` on line 23.
<tejas-manohar> pipework: ahh i like ruby
<havenwood> Ruby ist fantastisch
<pipework> tejas-manohar: Note that `if auth? username == true` doesn't do what you think it does. It first evaluates `username == true` and then `auth? true`
<pipework> havenwood: würd
<tejas-manohar> only thing is async and nonblocking stuff in ruby is a pain compared to js
<tejas-manohar> at least when i tried
<tejas-manohar> js referring to node being the only thing comparable
dc__ has joined #ruby
<pipework> tejas-manohar: It's definitely something that requires a bit more braining.
linojon has joined #ruby
<pipework> But there's nice things like http://celluloid.io/
<havenwood> tejas-manohar: JavaScript keeps it simple by not supporting anything hard. You can do evented code in Ruby if you like. Or something like Celluloid::IO that JavaScript folk can't have.
gtc has quit [Quit: kill -9 gtc]
snath has joined #ruby