apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 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
Kricir has joined #ruby
v0n has quit [Read error: Operation timed out]
rbartos has quit [Remote host closed the connection]
<centrx> bricker, What is Atom Beta?
<bricker> centrx: https://atom.io
ffranz has quit [Quit: Leaving]
Yengas has joined #ruby
<bricker> made by Github
<bricker> And entirely open-source here http://github.com/atom
mikecmpbll has quit [Quit: i've nodded off.]
hiyosi has quit [Ping timeout: 264 seconds]
dayepa has quit [Ping timeout: 264 seconds]
armyriad has joined #ruby
at284km has joined #ruby
at284km has quit [Client Quit]
s2013 has quit [Ping timeout: 264 seconds]
ringaroses has joined #ruby
Wolland has joined #ruby
<bnagy> the internets are abuzz with it!
<bnagy> fight! fight! fight !
rm__ has quit [Remote host closed the connection]
rm_ has joined #ruby
mneorr has quit [Remote host closed the connection]
mary5030 has joined #ruby
wjlafrance__ has joined #ruby
andy___ has joined #ruby
mansi has joined #ruby
BadQuanta has quit [Quit: Leaving.]
Jetchisel has joined #ruby
andy___ is now known as Guest28833
shinobi_one has quit [Quit: shinobi_one]
Yengas has left #ruby [#ruby]
sdouglass has joined #ruby
lw has quit [Quit: s]
jjbohn has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
sambao21 has quit [Quit: Computer has gone to sleep.]
jetblack has quit [Ping timeout: 264 seconds]
alexju has quit [Remote host closed the connection]
hiyosi has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
nisstyre has joined #ruby
sambao21 has joined #ruby
asteros has joined #ruby
predator217 has joined #ruby
rootshift has joined #ruby
ndrei has joined #ruby
alexju has joined #ruby
Megtastique has quit []
brunto has joined #ruby
ikaros has joined #ruby
dingus_khan has quit [Remote host closed the connection]
Guest28833 has quit [Ping timeout: 265 seconds]
SegFaultAX has quit [Excess Flood]
predator117 has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
mocfive has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
mocfive has joined #ruby
gka_hn has quit [Ping timeout: 265 seconds]
yasushi has quit [Remote host closed the connection]
Hanmac has joined #ruby
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 240 seconds]
b00stfr3ak has quit [Ping timeout: 240 seconds]
zachallett has quit [Remote host closed the connection]
<Stalkr_> gl-: toertore: Not sure if you are interested at all, but prettiest solution (I could come up with) without dealing with extra Python script files: https://gist.github.com/anonymous/9241705
<itadder> what are the best plugins for sublimetext
<itadder> to use with rub
<itadder> y
Hanmac1 has quit [Ping timeout: 272 seconds]
<Stalkr_> I should probably look into some web services instead tomorrow, so I don't have to deal with Python dependencies
dayepa has joined #ruby
_HolyCow has quit [Read error: Connection reset by peer]
_HolyCow has joined #ruby
<bnagy> itadder: I use hardly any. BeautifyRuby, Alignment and CodeIntel
lolmaus has quit [Ping timeout: 240 seconds]
Lulzon has quit [Ping timeout: 264 seconds]
grvgr has quit [Quit: grvgr]
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
niftyn8 has quit [Ping timeout: 264 seconds]
nilsove1 has quit [Ping timeout: 264 seconds]
<itadder> oh I see
Asher has quit [Quit: Leaving.]
sdouglass has quit [Remote host closed the connection]
<itadder> has someone wrote a ruby backend version for sublime text
<bnagy> I don't know what that means
lw has joined #ruby
Jagori has quit [Read error: Connection reset by peer]
ping-pong has quit [Ping timeout: 240 seconds]
<itadder> sublime backend is python
dingus_khan has joined #ruby
<itadder> right
<bnagy> uh.. it is in python. Yes.
<bnagy> like, it's all python
<itadder> but could it be all ruby
<bnagy> I guess
<bnagy> but that would be a different editor
ericmathison has joined #ruby
<itadder> a ruby based editor
cantonic has joined #ruby
jetblack has joined #ruby
rbartos has joined #ruby
nilsove has joined #ruby
sdouglas_ has joined #ruby
Lulzon has joined #ruby
<itadder> wow ruco is not bad
Stalkr_ has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Zunonia has joined #ruby
srji_ has joined #ruby
senayar_ has quit [Ping timeout: 240 seconds]
zz_karupanerura is now known as karupanerura
mneorr has joined #ruby
grvgr has joined #ruby
sdouglas_ has quit [Ping timeout: 265 seconds]
srji has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
Kricir_ has joined #ruby
ahuman has joined #ruby
joelroa has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
grvgr has quit [Client Quit]
nanoyak has joined #ruby
BadProphet has quit [Remote host closed the connection]
agarie has quit [Quit: Leaving...]
grvgr has joined #ruby
ping-pong has joined #ruby
mavcunha has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
grvgr has quit [Client Quit]
nanoyak_ has joined #ruby
joelroa has quit [Ping timeout: 252 seconds]
dik_dak has quit [Quit: Leaving]
linojon has quit [Quit: linojon]
randomnick_ has quit [Quit: Leaving]
blackmesa has quit [Quit: WeeChat 0.4.3]
nanoyak has quit [Ping timeout: 240 seconds]
mavcunha has quit [Client Quit]
<moneydouble> So should I be creating hashes which way? x = {y: 'something'} or x = {:y => 'something'} ?
lethjakman has joined #ruby
<lethjakman> anyone notice anything interesting with 2.1.1?
<bnagy> moneydouble: the first
<centrx> moneydouble, Your choice
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> because it's not 1.8 compatible, and 1.8 is a scourge upon the earth
freerobby has joined #ruby
<centrx> moneydouble, keyword argument syntax is more concise, hashrocket syntax supports using non-symbol keys
<centrx> PHP is an abomination and a scourge on the face of the earth.
linojon has joined #ruby
<lethjakman> bleh I've typed too many $'s in my life due to PHP
<lethjakman> and not the good kind.
thomasxie has joined #ruby
ericmathison has quit [Quit: leaving]
TripTastic is now known as JBreit
Hobogrammer has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
_maes_ has joined #ruby
rudisimo has quit [Remote host closed the connection]
rudisimo has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
jaimef_ is now known as jaimef
Hobogrammer_ has quit [Ping timeout: 264 seconds]
figgleberry has quit [Ping timeout: 264 seconds]
CpuID has quit [Quit: Leaving]
lolmaus has joined #ruby
Hobogrammer_ has joined #ruby
nari has joined #ruby
rudisimo has quit [Ping timeout: 240 seconds]
retnuh has joined #ruby
snath has quit [Ping timeout: 240 seconds]
yaroslav has quit [Quit: Linkinus - http://linkinus.com]
Hobogrammer has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
sdouglass has joined #ruby
bklane has joined #ruby
jaimef is now known as Jaimef
robbyoconnor has quit [Ping timeout: 240 seconds]
Jaimef is now known as jaimef
Hanmac1 has joined #ruby
dayepa has quit [Quit: dayepa]
nateberkopec has quit [Quit: Leaving...]
sdouglass has quit [Ping timeout: 240 seconds]
Megtastique has joined #ruby
tkuchiki has joined #ruby
<lethjakman> is there an easy way to check if ruby has readline support built in?
Hanmac has quit [Ping timeout: 240 seconds]
Steve445 has quit [Quit: Steve445]
figgleberry has joined #ruby
pietr0 has quit [Quit: pietr0]
Steve445 has joined #ruby
pitzips has quit [Quit: Leaving]
hakunin has joined #ruby
charliesome has joined #ruby
gilest has joined #ruby
Steve445 has quit [Client Quit]
cmhobbs has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Kricir_ has quit [Remote host closed the connection]
sdouglass has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
george2 has quit [Ping timeout: 244 seconds]
yarou has quit [Remote host closed the connection]
nari has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
<pipework> lethjakman: Check Readline::VERSION?
Kricir has joined #ruby
snath has joined #ruby
<lethjakman> pipework: is that the built in version?
<pipework> It's the one that ships with ruby.
<lethjakman> ahh ok.
<lethjakman> thanks
snuffeluffegus has joined #ruby
bcavileer has joined #ruby
<lethjakman> where do you find info like that?
<lethjakman> for the future
figgleberry has quit [Ping timeout: 264 seconds]
sriehl_ has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
kzrl has joined #ruby
hfp`away is now known as hfp
mary5030 has quit [Remote host closed the connection]
thumpba_ has quit [Remote host closed the connection]
dingus_khan has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
yarou has joined #ruby
<pipework> lethjakman: Docs, mostly.
<lethjakman> ahhh ok.
<pipework> My thought was that `defined? Readline` might still return a truthy response even if Readline isn't there in reality.
<pipework> VERSION uses the actual version from the Readline library, so that makes me think it'll be a better candidate.
<pipework> lethjakman: ^
george2 has joined #ruby
sparrovv has quit [Remote host closed the connection]
mikepack has joined #ruby
sailias has joined #ruby
<lethjakman> pipework: ahhh awesome. thank you!
<lethjakman> another dumb question...is there a way to check if rbenv is still going? it's taking forevre
<lethjakman> longer than normal
fella6s has quit [Read error: Connection reset by peer]
fedesilv_ has joined #ruby
rudisimo has joined #ruby
tyfighter has quit [Quit: tyfighter]
sambao21 has quit [Quit: Computer has gone to sleep.]
Hobogrammer_ has quit [Quit: WeeChat 0.4.3]
fwchld has joined #ruby
marcdel has quit [Ping timeout: 244 seconds]
mikepack has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
fedesilva has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
marcdel has joined #ruby
<fwchld> guys - wondering if you could help me please, i think its a scope issue, but not experienced enough w/ ruby to figure it out? https://gist.github.com/anonymous/9242403
mikemac has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
mocfive has joined #ruby
jbueza has joined #ruby
Honsby has quit [Remote host closed the connection]
jlast has joined #ruby
nanoyak_ has quit [Quit: Computer has gone to sleep.]
<bnagy> fwchld: I don't know why you'd think that when the error is pretty clear
<bnagy> undefined method `add_row' for #<Array ...
<fwchld> yeah
lyanchih_ has joined #ruby
zachallett has joined #ruby
<fwchld> ah holdon sorry
<bnagy> also most of the code below that looks like it's not going to work
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
<fwchld> is doc.add_sheet("name") do |sheet| and sheet = doc.add_sheet("name") equivalent?
crazymykl has joined #ruby
nari has joined #ruby
stryek has joined #ruby
<bnagy> I have no idea - you're using some lib I have never heard of
Megtastique has quit []
<bnagy> but I can tell you that doc.add_sheet is returning an Array there
<bnagy> I just don't know why or if that's correct or if it's not correct how to fix it
mattmcclure has quit [Quit: Connection closed for inactivity]
<bnagy> that's a matter for the documentation
Atw has joined #ruby
zachallett has quit [Ping timeout: 240 seconds]
<fwchld> hrm, maybe i dont fully understand blocks
nateberkopec has joined #ruby
Slavox|AFK is now known as Slavox
<fwchld> but let me go and have another fiddle
<fwchld> thanks though!
<fwchld> do blocks establish scope?
<bnagy> I guess?
<bnagy> blocks have a block local scope
<bnagy> but they can see all the locals in the scope in which they're defined
<bnagy> which is a thing known as a closure, they 'close' over all the locals in their binding
<fwchld> ok so if we had block { variable1 block2{ foo }} can block2 see variable 1
<bnagy> yes
<fwchld> ok thank you :)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fwchld> brb
joelroa has joined #ruby
meatherly has quit [Ping timeout: 264 seconds]
Xuisce has quit [Quit: Leaving...]
Axsuul_ has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joelroa has quit [Read error: Operation timed out]
shashin has quit [Quit: shashin]
macclearich_ has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
dingus_khan has quit [Remote host closed the connection]
<bodie_> looking for a little assistance here, i'm trying to make a companion script to go with the Rails "Getting Started" guide, to POST things via script. https://sbin.me/dematoxicu.coffee
shashin has joined #ruby
<bodie_> seems simple enough, but I keep getting error 422
shashin has quit [Changing host]
shashin has joined #ruby
<bodie_> if anyone has thoughts on that, would be much appreciated :)
s2013 has joined #ruby
Xuisce has joined #ruby
scarolan has joined #ruby
tjr9898 has joined #ruby
subbyyy has quit [Ping timeout: 264 seconds]
jetblack has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
tvw has quit [Remote host closed the connection]
gilest has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Read error: No route to host]
sham_ has joined #ruby
gilest has joined #ruby
mduvall has quit [Quit: Computer has gone to sleep.]
jetblack has joined #ruby
dingus_khan has joined #ruby
pwh has joined #ruby
axl_ has joined #ruby
shashin has quit [Quit: shashin]
mduvall has joined #ruby
Jake232 has joined #ruby
funburn has quit [Quit: funburn]
cj3kim has joined #ruby
dodosan has joined #ruby
itadder has quit [Remote host closed the connection]
itadder has joined #ruby
jmau5_ has quit [Remote host closed the connection]
niftyn8 has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
jmau5 has joined #ruby
ffranz has joined #ruby
cj3kim has joined #ruby
Honsby has joined #ruby
dodosan has quit [Remote host closed the connection]
itadder has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
mduvall has quit [Quit: Computer has gone to sleep.]
krz has joined #ruby
rbartos has quit [Ping timeout: 264 seconds]
jmau5 has quit [Ping timeout: 265 seconds]
s2013 has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
v0n has joined #ruby
Honsby has quit [Ping timeout: 240 seconds]
Megtastique has joined #ruby
yarou has quit [Remote host closed the connection]
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
zeade has quit [Quit: Leaving.]
codeFiend has joined #ruby
hamakn has joined #ruby
aspires has quit []
alexju has quit [Remote host closed the connection]
jbueza has quit [Ping timeout: 240 seconds]
wallerdev has quit [Ping timeout: 240 seconds]
Asher has joined #ruby
<bricker`LA> bodie_: check your rails server log, it will probably explain what the problem is
<bricker`LA> bodie_: or otherwise gist your controller
sriehl_ has quit []
Voodoofish430 has quit [Quit: Leaving.]
sriehl_ has joined #ruby
amclain has joined #ruby
sdouglass has quit [Remote host closed the connection]
sham_ has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
echevemaster has joined #ruby
sriehl has quit [Disconnected by services]
sriehl_ is now known as sriehl
<bodie_> bricker`LA, it was 422 due to token mismatch
<bodie_> thanks
sriehl_ has joined #ruby
yarou has joined #ruby
razrunelord has quit []
Avahey has joined #ruby
bklane has quit [Quit: Leaving...]
niftyn8 has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
jonah_k has quit [Remote host closed the connection]
CaptainJet has quit []
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
jmau5 has joined #ruby
maximski has quit []
Kricir has joined #ruby
mikepack has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
_reset has quit [Quit: Leaving...]
aces1up has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
glaksmono_ has quit [Quit: This computer has gone to sleep]
vpretzel has quit [Read error: Connection reset by peer]
ksinkar has joined #ruby
mneorr has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 272 seconds]
mneorr has joined #ruby
aces1up9939 has quit [Ping timeout: 264 seconds]
maximski has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
gilest has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
chrisja has quit [Quit: leaving]
ff__ has quit [Quit: Leaving]
weems has quit [Read error: Connection reset by peer]
absolutezeroff has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
weems has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
soheil has quit [Remote host closed the connection]
cherrypeel has joined #ruby
alexju has joined #ruby
cherrypeel has left #ruby [#ruby]
nateberkopec has quit [Quit: Leaving...]
joelroa has joined #ruby
joelroa has quit [Ping timeout: 272 seconds]
jlast has quit [Remote host closed the connection]
xaq has quit [Remote host closed the connection]
figgleberry has joined #ruby
saarinen has quit [Quit: saarinen]
Megtastique has quit []
lyanchih_ has quit [Quit: lyanchih_]
mansi has quit [Remote host closed the connection]
lyanchih has joined #ruby
mansi has joined #ruby
lpvn has quit [Ping timeout: 240 seconds]
jonr22 has quit [Remote host closed the connection]
Wolland_ has joined #ruby
mocfive has joined #ruby
geopet has quit []
jonr22 has joined #ruby
firewater has joined #ruby
Wolland has quit [Ping timeout: 265 seconds]
s2013 has quit [Ping timeout: 272 seconds]
no6 has quit [Quit: leaving]
mansi has quit [Ping timeout: 240 seconds]
Faris has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
robbyoconnor has joined #ruby
griffindy has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
vpretzel has joined #ruby
chuk has quit [Quit: This computer has gone to sleep]
jonr22 has quit [Ping timeout: 265 seconds]
meatherly has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
aces1up has quit [Excess Flood]
freezey has joined #ruby
aces1up9939 has joined #ruby
mary5030 has joined #ruby
freezey has quit [Read error: Connection reset by peer]
jle` has quit [Ping timeout: 264 seconds]
retnuh has joined #ruby
freezey has joined #ruby
vindictive27 has quit [Remote host closed the connection]
vindictive27 has joined #ruby
<pipework> bodie_: Check your ApplicationController for authenticity token stuff.
Hobogrammer has joined #ruby
sdouglass has joined #ruby
jjbohn has quit [Quit: Leaving...]
robbyoconnor has quit [Ping timeout: 252 seconds]
sriehl has quit []
<firewater> From my understanding, if I'm looking to have sometthing print out a list of things, this won't do it right: keywords.each {|key| key + "#{@hash[key]}"}
<firewater> That seems to only return all the keys in keywords
funburn has joined #ruby
<firewater> How can I get it, if keywords is a array, to print a new line each + print out from the value of the @hash, which is a hash?
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lpvn has joined #ruby
<centrx> firewater, Use puts
<firewater> Anyone have any thoughts on the above?
<firewater> I tried that, it doesn't do it. I will try again.
<centrx> firewater, That code doesn't actually print out anything without using a method like puts
<centrx> puts inside the block
<firewater> At the end, the code just returns the keywords list in an array.
<firewater> I did it in the block too.
<firewater> I can show you the whole code.
<firewater> But, IDK.
michael_lee has joined #ruby
sorpaas has quit [Quit: Connection closed for inactivity]
chipotle_ has joined #ruby
<centrx> keywords.each will return keywords
<centrx> Usually each is not used if you want to return something
jjbohn has joined #ruby
asteros has quit [Quit: asteros]
<firewater> That is what I think the issue is.
<firewater> Its with the each loop, I think its not doing anything.
<firewater> Its doing stuff.
AlexRussia has quit [Ping timeout: 244 seconds]
<firewater> But in the end, not changing anything.
<firewater> THe "objective" code is at the bottom.
<firewater> in the IF thing.
<firewater> if FILE
jjbohn has quit [Client Quit]
<centrx> Use map
<firewater> map solves it almost.
griffindy has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<firewater> But the results its looking for is [apple] "fruit" \n [zebra] "animal" etc....
<firewater> Mine solves it almost, but gives ["apple fruit", "zebra animal"]
<firewater> I think map just makes it a string
ukd1 has quit [Remote host closed the connection]
<centrx> So add those quotation marks and brackets that you want?
funburn has quit [Ping timeout: 252 seconds]
<firewater> Thing is, here is the fixed code.
lethjakman has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
charliesome has joined #ruby
<firewater> It almost solves it, but it surrounds everything by an array is what I mean. I guess because keyword is an array. Anyway to make that into a string before .map?
maximski has quit []
maximski has joined #ruby
gilest has joined #ruby
<firewater> nevermind, I think its something weird with my rspec code.
<centrx> firewater, Use Array#join
<firewater> oh, let me try that.
sdouglass has quit [Remote host closed the connection]
<Nilium> Hm, Dash is switching to using yard-generated docs for Gem docsets
<Nilium> This is going to be nice, but it's also going to break the everloving hell out of rdoc docs.
maximski has quit [Client Quit]
cantonic has quit [Quit: cantonic]
thumpba_ has joined #ruby
crystal77 has joined #ruby
niftyn8 has joined #ruby
ktosiek_ has joined #ruby
jjbohn has joined #ruby
<firewater> centrx: I almost have it solved.
invinceable has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cburyta has quit [Remote host closed the connection]
<firewater> Thanks for the help, but I will try again some other time. Its almost there, just need to play with it a little more.
<firewater> thanks again.
firewater has quit [Quit: Page closed]
funburn has joined #ruby
kobain has quit [Read error: Connection reset by peer]
ktosiek has quit [Ping timeout: 240 seconds]
larissa has quit [Quit: Leaving]
kobain has joined #ruby
mansi has joined #ruby
thumpba_ has quit [Ping timeout: 272 seconds]
lmickh has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
Celm has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
lyanchih has quit [Quit: lyanchih]
fwchld has quit [Quit: Textual IRC Client: www.textualapp.com]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mneorr has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 272 seconds]
lyanchih_ has joined #ruby
sensen has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
funburn has quit [Quit: funburn]
Hanmac has joined #ruby
JBreit has joined #ruby
nobitanobi has joined #ruby
dodosan has quit [Remote host closed the connection]
AndyWojo_ has quit [Ping timeout: 265 seconds]
jjbohn has quit [Quit: Leaving...]
cmhobbs has left #ruby ["Leaving"]
jmau5 has quit [Remote host closed the connection]
jmau5 has joined #ruby
slowcon has joined #ruby
Kricir has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
Rylee has quit [Ping timeout: 245 seconds]
AndyWojo has joined #ruby
sdouglas_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Honsby has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jmau5 has quit [Ping timeout: 252 seconds]
griffindy has quit [Quit: Computer has gone to sleep.]
stryek has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
codeFiend has quit [Quit: codeFiend]
koell has quit [Read error: Connection reset by peer]
Rylee has joined #ruby
nanoyak has joined #ruby
ringaroses has quit [Quit: Leaving]
radic has quit [Ping timeout: 264 seconds]
crystal__ has joined #ruby
radic has joined #ruby
freerobby has quit [Quit: Leaving.]
joelroa has joined #ruby
ringaroses has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
lyanchih_ has joined #ruby
asteros has joined #ruby
nszceta has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
v0n has joined #ruby
thelamest2 has quit [Quit: thelamest2]
crystal__ has quit [Quit: Textual IRC Client: www.textualapp.com]
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
Honsby has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
Honsby has joined #ruby
s2013 has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Remote host closed the connection]
sdouglas_ has quit [Ping timeout: 265 seconds]
mansi has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mansi has joined #ruby
Honsby has quit [Ping timeout: 240 seconds]
jmau5 has joined #ruby
sdouglas has joined #ruby
meatherly has quit [Remote host closed the connection]
crystal77 has quit [Quit: WeeChat 0.4.3]
meatherly has joined #ruby
snuffeluffegus has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
alekst has quit [Quit: Leaving...]
agent_white has quit [Client Quit]
agent_white has joined #ruby
meatherl_ has joined #ruby
chinkung has quit [Read error: Connection reset by peer]
meatherly has quit [Read error: Connection reset by peer]
chinkung has joined #ruby
<centrx> Would anyone like some random bytes?
vpretzel has quit [Quit: Adios!]
<slowcon> i don't know what that means but sure
meatherl_ has quit [Remote host closed the connection]
<abunchofdollarsi> Who wants to alphatest my new ruby irc client that does cool stuff with message formatting? When it goes big league you'll know that I know that you didn't do absolutely nothing to get it there.
<abunchofdollarsi> Even comes with limited *vim* bindings.
meatherly has joined #ruby
<slowcon> you're scaring me abunchofdollarsi
scrogson has joined #ruby
Xuisce has quit [Quit: Leaving...]
<abunchofdollarsi> Finally.
<centrx> slowcon, Here you go
<centrx> slowcon, <D5><81>f<E7><8E><93><C2>T^C[
<centrx> abunchofdollarsi, Are you spoofing your DNS address?
<slowcon> centrx: I'm taking these to the grave
xerox357 has joined #ruby
<abunchofdollarsi> No; I'm actually in the Death Star.
<pipework> centrx: enough of that
<pipework> ain't even funny
<centrx> You're right. This is serious business.
fridim__ has quit [Ping timeout: 244 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Quit: Leaving]
<scrogson> Having some issues with figuring out something with Shellwords...
<scrogson> >> Shellwords.join(["git", *["commit", "-m", "Commit message here"]])
<eval-in___> scrogson => uninitialized constant Shellwords (NameError) ... (https://eval.in/106118)
<scrogson> => "git commit -m Commit\\ message\\ here"
meatherly has quit [Ping timeout: 240 seconds]
Bish_ has quit [Ping timeout: 240 seconds]
<centrx> require 'shellwords'
browndawg has joined #ruby
<scrogson> how can I ensure that the commit message is quoted correctly?
jds has quit [Quit: Connection closed for inactivity]
<bnagy> put it in quotes
BadQuanta has joined #ruby
Waheedi has quit [Quit: Waheedi]
braincrash has quit [Quit: bye bye]
<abunchofdollarsi> centrx, use my client and I'll send you a postcard.
<centrx> I am standing right behind you
<abunchofdollarsi> I'm choosing not to turn around.
<centrx> Will this post card have the word l33t in it
<scrogson> bnagy: thanks...seems to do the trick
<abunchofdollarsi> Twice.
geopet_ has joined #ruby
<centrx> Okay, deal.
<centrx> My address is 123 Fake Street, Cambridge, MA
<bnagy> scrogson: it's trying to join for commands like rm filename\\ with\\ spaces not git commits where you'd actually type the quotes as part of the command
wallerdev has joined #ruby
Bish has joined #ruby
<abunchofdollarsi> centrx, you'll need gosu, faye-websocket, net-yail and timers as gems.
<centrx> aww man this is hard
<slowcon> centrx: question about curl. i implemented curb in my script to download the mp3s. the links i have are direct links to the mp3s. http://www.website.com/thissongrocks.mp3 i also make a call on the database to rename the file. everything works as intended but problem is, i can’t seem to get the string right to download the MP3. i keep downloading document or blank files. Also, I want to keep the file extension of the orig file name when
<slowcon> renaming. any ideas?
braincrash has joined #ruby
lewix has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 264 seconds]
kobain_ has joined #ruby
<bnagy> it's probably not actually a direct link
<centrx> slowcon, Are you sure the string is wrong? Could the site be sending you to a blank page because of your Referrer URL/User Agent/Bad Hair-do
<bnagy> check with commandline curl
<abunchofdollarsi> Once that task is completed; you are a clone and a command away from irc effervescence.
cj3kim has quit [Remote host closed the connection]
lewix has joined #ruby
<agent_white> I use unstable. I'm a badass though, ain't no gem fo' that.
<agent_white> MT DUUDE
<agent_white> ;D
<centrx> abunchofdollarsi, I'll have to do a line by line security review of the code so you don't l33t me up
<pipework> agent_white: Just build ahead of HEAD.
<pipework> Like a time-travelling bru.
<abunchofdollarsi> Seems warranted.
lyanchih_ has quit [Quit: lyanchih_]
<agent_white> pipework: I can't even help it! I eat capn' crunch without milk. Gives me special powers.
<centrx> abunchofdollarsi, 3<82><B7>X@Q<F1>:<F0><B3>
<centrx> abunchofdollarsi, Can you reverse engineer these random bytes and hack me based on them?
sailias has quit [Ping timeout: 272 seconds]
oso|away has quit [Ping timeout: 240 seconds]
mlpinit has joined #ruby
<pipework> The best thing about centrx's humor is that he kills the jokes himself.
wallerdev has quit [Quit: wallerdev]
Bish has quit [Quit: ZNC - http://znc.sourceforge.net]
niftyn8 has quit [Ping timeout: 265 seconds]
lethjakman has joined #ruby
mikepack has joined #ruby
sivoais has quit [Ping timeout: 245 seconds]
zz_jrhorn424 is now known as jrhorn424
cburyta has joined #ruby
<zacts> apeiros: are you apeiron on #perl?
alexju has quit [Remote host closed the connection]
sriehl has joined #ruby
<pipework> If he was on #perl, I bet he'd be apeiros.
geopet_ is now known as geopet
<zacts> hm.. ok
mikepack has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
niftyn8 has joined #ruby
incade has joined #ruby
mocfive has quit [Remote host closed the connection]
Wolland_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
mocfive has joined #ruby
Cache_Money has joined #ruby
pagioss has quit [Remote host closed the connection]
oso|away has joined #ruby
Wolland has joined #ruby
oso|away is now known as oso96_2000
baroquebobcat has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Bish has joined #ruby
agent_white has joined #ruby
mocfive has quit [Ping timeout: 252 seconds]
Bish has quit [Client Quit]
sivoais has joined #ruby
Bish_ has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
BWStearns has quit [Ping timeout: 244 seconds]
funburn has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
brucele_ has joined #ruby
xastion has joined #ruby
Kricir has joined #ruby
cj3kim has joined #ruby
codeFiend has joined #ruby
nszceta has quit [Remote host closed the connection]
xerox357 has quit [Remote host closed the connection]
xerox357 has joined #ruby
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Waheedi has joined #ruby
xerox357 has quit [Read error: No route to host]
xerox357_ has joined #ruby
pietr0 has joined #ruby
Jagori has joined #ruby
ffranz has quit [Quit: Leaving]
pietr0 has quit [Client Quit]
pagioss has joined #ruby
yacks has joined #ruby
Jagori has quit [Client Quit]
axl_ has quit [Quit: axl_]
Kricir_ has quit [Ping timeout: 272 seconds]
vindictive27 has quit [Quit: vindictive27]
Valesk has joined #ruby
msch has quit [Ping timeout: 240 seconds]
<slowcon> centrx: have a question about this example. https://github.com/taf2/curb/blob/master/samples/downloader.rb the #first sequential. easy.on_body {|data| f << data; data.size } this line
<Valesk> Does anyone have an experience with Gumby framework?
_ixti_ is now known as ixti
<centrx> <98>&<AE>^W<B1>^X<BB>v<C6>Q
retnuh has joined #ruby
<pipework> Valesk: Just ask your question about it.
<Valesk> I don't have a specific question, I wanted thoughts on how it compares to others out there at the moment. Anything they noticed that was difficult or how it surpassed others..etc
<havenwood> slowcon: what about it?
jmau5 has quit [Remote host closed the connection]
culturelabs has joined #ruby
msch has joined #ruby
Wolland has quit []
r00t_ has joined #ruby
jmau5 has joined #ruby
<slowcon> i understand what everything else is doing, but what happens at that line?
toddabrahm has quit [Read error: Operation timed out]
<r00t_> Is this channel just for ruby or also for rails/
<havenwood> r00t_: Rails is #RubyOnRails
toddabrahm has joined #ruby
rahult is now known as rahult_
jeregrine has quit [Quit: Connection closed for inactivity]
niftyn8 has quit [Ping timeout: 240 seconds]
<slowcon> that part just grabs the size of the file?
<pipework> r00t_: This is for ruby sans the rails.
thelamest has joined #ruby
<centrx> slowcon, writes data to the file
<centrx> slowcon, for some reason the author wanted the block to return data.size in each loop
<centrx> slowcon, Might be for performance reasons or something since I can see no semantic reason for it
rahult_ is now known as rahult
<centrx> "It should perform any processing necessary, and return the actual number of bytes handled."
Honsby has joined #ruby
<havenwood> centrx: maybe debugging purpose and the author just removed the `p`, not realizing there was no need to actually call size - dunno
<slowcon> hmmm ok
jonah_k has joined #ruby
<havenwood> slowcon: oh, they care about return value indeed
<havenwood> centrx: ah
<havenwood> centrx: is an odd way to do it though
jmau5 has quit [Ping timeout: 240 seconds]
<slowcon> i ran it,
<slowcon> I'm using that example and can't seem to grab the mp3
jle` has joined #ruby
mansi has joined #ruby
yasushi has joined #ruby
Honsby has quit [Ping timeout: 240 seconds]
cburyta has quit [Ping timeout: 265 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
jlast has joined #ruby
mikemac has joined #ruby
shado has quit [Read error: Connection reset by peer]
ksinkar has quit [Quit: Konversation terminated!]
pwh has quit [Ping timeout: 265 seconds]
oso96_2000 has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
mansi has quit [Ping timeout: 272 seconds]
slowcon has quit [Read error: Connection reset by peer]
invinceable has joined #ruby
crazymykl has quit [Ping timeout: 240 seconds]
ryanfrancis has joined #ruby
asteros has quit [Ping timeout: 264 seconds]
sivoais has quit [Ping timeout: 240 seconds]
sivoais has joined #ruby
oso|away has joined #ruby
asteros has joined #ruby
oso|away is now known as oso96_2000
asteros has quit [Client Quit]
robbyoconnor has joined #ruby
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
msch has quit [Ping timeout: 240 seconds]
mocfive has joined #ruby
heftig has quit [Ping timeout: 240 seconds]
ryanfrancis has quit [Quit: ryanfrancis]
gnephiak has joined #ruby
heftig has joined #ruby
r00t_ has quit [Remote host closed the connection]
mlpinit_ has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
lyanchih_ has joined #ruby
lethjakman has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
Kricir has joined #ruby
mikemac has quit [Read error: Connection reset by peer]
mikemac has joined #ruby
ringaroses has quit [Ping timeout: 240 seconds]
xastion has quit [Ping timeout: 264 seconds]
Astralum has joined #ruby
slowcon has joined #ruby
sriehl has quit []
mlpinit_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sensen_ has joined #ruby
sensen has quit [Ping timeout: 265 seconds]
gilest has quit [Remote host closed the connection]
msch has joined #ruby
yasushi has quit [Remote host closed the connection]
testcore has quit [Remote host closed the connection]
testcore has joined #ruby
Karu has quit [Ping timeout: 244 seconds]
sparrovv has joined #ruby
george2 has quit [Quit: No Ping reply in 180 seconds.]
george2 has joined #ruby
shiftins has quit [Ping timeout: 246 seconds]
lethjakman has quit [Ping timeout: 252 seconds]
figgleberry has quit [Ping timeout: 265 seconds]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
sparrovv has quit [Ping timeout: 240 seconds]
kenndel has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
figgleberry has joined #ruby
xerox357_ has quit [Remote host closed the connection]
xerox357 has joined #ruby
hiyosi has joined #ruby
mrsolo has joined #ruby
yasushi has joined #ruby
oso96_2000 has quit [Ping timeout: 252 seconds]
kenneth has joined #ruby
bluOxigen has joined #ruby
Karu has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
mrsolo has left #ruby [#ruby]
mduvall has joined #ruby
oso|away has joined #ruby
sivoais has joined #ruby
oso|away is now known as oso96_2000
xerox357 has quit [Ping timeout: 265 seconds]
gigetoo has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 253 seconds]
Aquilo_ is now known as Aquilo
sensen_ has quit [Ping timeout: 272 seconds]
gigetoo has joined #ruby
jack_rabbit has joined #ruby
yasushi has quit [Remote host closed the connection]
x1337807x has joined #ruby
yfeldblum has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
sensen has joined #ruby
lyanchih_ has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
zumba_addict has quit [Ping timeout: 252 seconds]
zumba_addict has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
makara has joined #ruby
Kricir has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
msch has quit [Excess Flood]
lyanchih_ has joined #ruby
jmau5 has joined #ruby
jetblack has quit [Ping timeout: 240 seconds]
browndawg1 has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
rezzack has quit [Read error: Operation timed out]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
chihhsin_cloud has joined #ruby
jmau5 has quit [Remote host closed the connection]
jmau5 has joined #ruby
Solnse has quit [Read error: Connection reset by peer]
pigzzcanfly has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
mlpinit has joined #ruby
joelroa has joined #ruby
alexju has joined #ruby
jmau5_ has joined #ruby
sdouglas has joined #ruby
v0n has joined #ruby
SiliconDon has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
echevemaster has quit [Quit: Leaving]
jmau5 has quit [Ping timeout: 265 seconds]
mocfive has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
mocfive has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
lyanchih_ has quit [Client Quit]
SiliconDon has quit [Client Quit]
mlpinit has quit [Ping timeout: 272 seconds]
lyanchih_ has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
SiliconDon has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mocfive has quit [Ping timeout: 240 seconds]
Valesk has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
danshult_ has quit [Remote host closed the connection]
Honsby has joined #ruby
lewix has quit [Quit: Leaving...]
danshultz has joined #ruby
SiliconDon has quit [Client Quit]
mansi has joined #ruby
JasmeetQA has joined #ruby
pranny has quit [Quit: Leaving.]
evenix has quit [Remote host closed the connection]
<slowcon> centrx: so the generated zippy share link is only going to work for the browser that it was generated in. because I'm using phantoms/watir to grab the link and curl to download it, do you think thats why its not grabbing the mp3?
<slowcon> if you grab a link in chrome and paste it in firefox, it redirects back to the orig page. and that pages html is whats downloading
evenix has joined #ruby
gilest has joined #ruby
<centrx> slowcon, Strange
<centrx> slowcon, Does it work if you set the Referrer URL?
shiftins has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 265 seconds]
figgleberry has quit [Ping timeout: 240 seconds]
wiku5__ has quit [Ping timeout: 240 seconds]
cburyta has joined #ruby
<slowcon> you can't set a referrer in phantoms and for curl the only thing i found in curb with referrer was autoreferer which can be true or false
<centrx> slowcon, It's there. Spelled referer
<slowcon> I'm using curb::easy
<slowcon> curl*
tvw has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
robbyoconnor has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
<centrx> hmm
<centrx> slowcon, You could just call curl directly
<slowcon> i don't have to use curb?
msch has joined #ruby
<bnagy> or just DL from you scraper
xastion has joined #ruby
lethjakman has joined #ruby
<slowcon> nothing for headless
Kricir has joined #ruby
lyanchih has joined #ruby
cburyta has quit [Ping timeout: 252 seconds]
<slowcon> i also need to be able to set download location and rename file name while keeping extension
mikepack has quit [Ping timeout: 272 seconds]
gja has joined #ruby
kzrl has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
<bnagy> the real url will have the file data in the body with some mimetype whatever, you just get it
<bnagy> and then save it
yarou has quit [Remote host closed the connection]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cburyta has joined #ruby
msch has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
<slowcon> bnagy: i just tried that with the scraper and it didn't work. redirected me
<slowcon> same behavior
<slowcon> maybe i should just click the button instead of trying to extract the url
<bnagy> then your urls are probably magic
robbyoconnor has joined #ruby
<bnagy> some JS trickery etc
flagg0204_ has quit [Ping timeout: 264 seconds]
kzrl has joined #ruby
flagg0204 has joined #ruby
<slowcon> yeah they are generated
gilest has quit [Remote host closed the connection]
<bnagy> I mean I would imagine the whole point of the site you're scraping is to avoid people doing exactly what you're doing
<slowcon> hahahaa
tagrudev has joined #ruby
mercwithamouth has joined #ruby
<slowcon> I've got this far
<bnagy> you could try burp, the free version would work for this
marcdel has quit []
<bnagy> see exactly what's going on
Astralum has quit [Ping timeout: 240 seconds]
<slowcon> so burp will generate the key for me?
riceandbeans has joined #ruby
<bnagy> no, it's a proxy
Avahey has quit [Quit: Connection closed for inactivity]
<bnagy> it will just sit in the middle and show you the actual request / responses
Kricir has quit [Ping timeout: 240 seconds]
Faris has quit [Ping timeout: 240 seconds]
cburyta has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
m104 has joined #ruby
ziyadb_ has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
nanoyak has joined #ruby
dodosan has joined #ruby
jonah_k has quit [Remote host closed the connection]
BWStearn1 has joined #ruby
OdNairy has joined #ruby
stupidystupid has quit [Quit: Leaving]
lxsameer has joined #ruby
lxsameer has joined #ruby
lyanchih has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has quit [Quit: Quitting]
xiphiasx1 has joined #ruby
xiphiasx_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
mocfive has joined #ruby
npearson has joined #ruby
xastion has quit [Read error: Connection reset by peer]
sski has joined #ruby
akemrir has joined #ruby
mlpinit has joined #ruby
joelroa has joined #ruby
jonah_k has joined #ruby
tommyvyo__ has quit [Quit: Connection closed for inactivity]
senayar_ has joined #ruby
kitak has quit [Ping timeout: 250 seconds]
jmau5_ has quit [Remote host closed the connection]
kitak has joined #ruby
jmau5 has joined #ruby
senayar has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 252 seconds]
mlpinit has quit [Ping timeout: 265 seconds]
<apeiros> zacts: I'm not on perl, no. apeiron is someone else
OdNairy has quit [Ping timeout: 272 seconds]
funburn has quit [Quit: funburn]
jmau5_ has joined #ruby
vlad_starkov has joined #ruby
mlpinit has joined #ruby
jmau5 has quit [Ping timeout: 240 seconds]
bobdobbs has joined #ruby
dodosan has quit [Remote host closed the connection]
amritanshu_RnD has joined #ruby
amritanshu_RnD is now known as Guest75679
mansi has joined #ruby
yasushi has quit [Remote host closed the connection]
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
OdNairy has joined #ruby
apeiros has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
markisonfire has joined #ruby
sigurding has quit [Quit: sigurding]
My_Hearing has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 240 seconds]
kobain_ has quit []
<zacts> ok
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
anarang has joined #ruby
gilest has joined #ruby
zeade has joined #ruby
gilest has quit [Remote host closed the connection]
riceandbeans has left #ruby [#ruby]
davedev24 has quit [Remote host closed the connection]
zeade has quit [Client Quit]
sensen has quit [Ping timeout: 265 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
mehlah has joined #ruby
pigzzcanfly has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<slowcon> bnagy: ok I'm inspecting the download but i don't really see anything that would help me further
ericmathison has joined #ruby
vlad_starkov has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
geopet has quit []
nfk has joined #ruby
postmodern has joined #ruby
shiftins has quit [Ping timeout: 240 seconds]
grvgr has joined #ruby
thumpba has joined #ruby
gilest has joined #ruby
sdouglas has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
Kricir has joined #ruby
zeade has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
sdouglas has joined #ruby
chuk has joined #ruby
chuk has quit [Client Quit]
jmau5_ has quit [Remote host closed the connection]
npearson has quit [Remote host closed the connection]
ndrei has joined #ruby
gilest has quit [Remote host closed the connection]
jmau5 has joined #ruby
rm__ has joined #ruby
rm_ has quit [Read error: No route to host]
shaileshg has joined #ruby
matchaw has joined #ruby
zeade has quit [Quit: zeade]
zeade has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
funburn has quit [Quit: funburn]
fella5s has joined #ruby
aspires has quit []
sdouglas has quit [Ping timeout: 265 seconds]
sensen has joined #ruby
jmau5_ has joined #ruby
jmau5 has quit [Ping timeout: 265 seconds]
jprovazn has joined #ruby
bobdobbs has quit [Read error: Connection reset by peer]
Kelgors has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
plexus_ has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
sawtooth1 has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
shadoi has quit [Quit: Leaving.]
kzrl has quit [Ping timeout: 241 seconds]
DropsOfSerenity has joined #ruby
sawtooth has joined #ruby
pontiki has joined #ruby
kzrl has joined #ruby
SteveBenner09 has joined #ruby
bal has joined #ruby
jlebrech has quit [Ping timeout: 256 seconds]
testcore has quit [Quit: BitchX: it's all day strong, all day long]
<shevy> lol
<shevy> apeiron!
<shevy> are you on perl!!!
<shevy> I am on LSD - let's share
<SteveBenner09> Question: what build tools do people like to use for ruby projects and why? I'm looking for a better solution than Rake; things like Thor, Chef, Jake, anything new or different?
<shevy> SteveBenner09 setup.rb
sdouglas_ has joined #ruby
<shevy> anything more complicated than that is the path of misery
Brian520 has joined #ruby
<Brian520> #join #javascript
<shevy> I do use a Rakelike approach though in that I use different .rb files to call what subtask I require
bleak2 has quit [Ping timeout: 264 seconds]
<Brian520> Sorry
<shevy> for instance, using class TraverseInstall recursively to do the same action in a subdir (like make, or doing ruby extconf.rb etc.. with it)
<SteveBenner09> hmm
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
azeddine has joined #ruby
azeddine has quit [Read error: Connection reset by peer]
<SteveBenner09> shevy: you are right about the path of misery... I am developing using Rhodes from Motorola. It is not documented and I already find myself building an ever-expanding set of tools for my own app and am even re-writing the code; it's pretty bad. Looking for a really spot-on solution if I am to make my own tools at this point.
charliesome has joined #ruby
<SteveBenner09> the Rhodes framework is a brilliant idea, executed most horrifically.
<shevy> hehe
Macaveli has joined #ruby
<SteveBenner09> sadface.
lyanchih has quit [Quit: lyanchih]
jph98 has joined #ruby
dseitz has joined #ruby
charliesome has quit [Client Quit]
klaut has joined #ruby
Honsby has quit [Remote host closed the connection]
sensen_ has joined #ruby
<shevy> why can we only use javascript in the browser...
joelroa has joined #ruby
sensen has quit [Ping timeout: 264 seconds]
<shevy> SteveBenner09 I am scared by projects without documentation
<shevy> even though I won't read it usually, what if I may need to have it available one day
<SteveBenner09> Ruby in the browser is coming... Projects like Decaf make me warm inside
<SteveBenner09> shevy: Yeah... I'm dissapoint @ motorola
kzrl has quit [Ping timeout: 264 seconds]
<shevy> http://trydecaf.org/ cool not heard of it before
<SteveBenner09> shevy: in fact the docs they DO have (for app development, not for the actual framework) are full of bugs and errors; I have my own docs to correct myself at this point, haha.
vlad_starkov has quit [Remote host closed the connection]
<SteveBenner09> seriously awesome isnt it
<shevy> haha
<shevy> that is what I did with ruby
<shevy> all that was useful aggregated locally
mduvall has quit [Quit: Computer has gone to sleep.]
slowcon has quit [Quit: slowcon]
vlad_starkov has joined #ruby
<shevy> oh well https://github.com/timahoney/decaf last commit 10 months ago
codenapper has joined #ruby
kitak has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
joelroa has quit [Ping timeout: 272 seconds]
<shevy> and why that guy uses things like console.log('The window loaded.') rather than console << 'The window loaded.' mystifies me
kitak has joined #ruby
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
ndrei has quit [Ping timeout: 265 seconds]
<shevy> I wanna do ruby! not simulate javascript
sivoais has quit [Read error: Operation timed out]
oso96_2000 has quit [Ping timeout: 244 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SegFaultAX has quit [Excess Flood]
ndrei has joined #ruby
mlpinit has joined #ruby
SegFaultAX has joined #ruby
mikepack has joined #ruby
<shevy> <script type='text/ruby'> is lovely though
<SteveBenner09> well the example is opinionated, sure, but RUBY
Macaveli has quit [Quit: Leaving]
<SteveBenner09> if I had ruby I could just make my own class based off console, and then MAKE it do '<<"
<SteveBenner09> thats the point for me at least
<SteveBenner09> I'm excited to use the framework
<shevy> true
<SteveBenner09> for another purpose
frem has quit [Quit: Connection closed for inactivity]
<SteveBenner09> perhaps implementing on mobile platforms
<SteveBenner09> like Rhodes and RubyMotion, but BETTER.
oso96_2000 has joined #ruby
mansi has joined #ruby
m104 has quit [Quit: bye]
zxd has quit []
oso96_2000 is now known as oso|away
browndawg1 has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 240 seconds]
gaussblurinc has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
lyanchih_ has joined #ruby
ephemerian has joined #ruby
jmau5_ has quit [Remote host closed the connection]
Macaveli has joined #ruby
<shevy> hmm
browndawg has joined #ruby
jmau5 has joined #ruby
brucele_ has quit [Ping timeout: 240 seconds]
pigzzcanfly has joined #ruby
mneorr has quit [Read error: Operation timed out]
<shevy> how many different combinations do we have with R,G,B values (range: 0 up to 255 each) ?
<shevy> I should have not slept in math at school....
<plexus_> 2**24
cj3kim has quit [Remote host closed the connection]
apeiros has joined #ruby
<plexus_> >> 2**24
<eval-in___> plexus_ => 16777216 (https://eval.in/106185)
aganov has joined #ruby
sivoais has joined #ruby
sikor_sxe has joined #ruby
jmau5 has quit [Read error: Connection reset by peer]
ahawkins has joined #ruby
NovapaX has joined #ruby
jmau5 has joined #ruby
jph98 has quit [Quit: jph98]
andikr has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
evenix has quit [Remote host closed the connection]
jmau5 has quit [Remote host closed the connection]
relix has joined #ruby
[gmi] has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
evenix has joined #ruby
pranny has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
jonah_k has quit [Remote host closed the connection]
slowcon has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
evenix has joined #ruby
Speed has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
rahult has joined #ruby
lolmaus has quit [Ping timeout: 265 seconds]
invinceable has quit [Ping timeout: 272 seconds]
Speed has quit [Read error: No route to host]
speed2 has joined #ruby
guilleiguaran has quit [Quit: Connection closed for inactivity]
Kricir has joined #ruby
speed2 has quit [Read error: No route to host]
davidcollom_ is now known as davidcollom
speed2 has joined #ruby
rm__ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
rootshift has joined #ruby
pranny has quit [Quit: Leaving.]
shashin has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
vt102 has quit [Ping timeout: 240 seconds]
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
mocfive has quit [Ping timeout: 272 seconds]
marr has joined #ruby
eVRiAL has joined #ruby
browndawg has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
speed2 has quit [Read error: No route to host]
thomasxie has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
speed3 has joined #ruby
thomasxie has joined #ruby
Hanmac1 has joined #ruby
hiyosi has quit [Read error: Operation timed out]
Es0teric_ has quit [Quit: Computer has gone to sleep.]
shashin has quit [Quit: shashin]
Hanmac has quit [Ping timeout: 272 seconds]
speed3 has quit [Read error: No route to host]
speed3 has joined #ruby
chuk has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
vlad_starkov has joined #ruby
sk87 has joined #ruby
claymore has joined #ruby
charliesome has joined #ruby
charliesome has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Hanmac has joined #ruby
jhass|off is now known as jhass
TuxLyn has joined #ruby
jrist has quit [Ping timeout: 244 seconds]
Matriks has joined #ruby
<TuxLyn> Hey guys :-) Anyone around here ?
Ariadeno has joined #ruby
speed3 is now known as Speed
Speed has left #ruby ["WeeChat 0.4.3"]
Faris has joined #ruby
mary5030 has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 265 seconds]
grvgr has quit [Quit: grvgr]
joelroa has joined #ruby
AlexRussia has joined #ruby
brucele_ has joined #ruby
bluenemo has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
crazymykl has joined #ruby
mikemac has quit [Ping timeout: 265 seconds]
cburyta has joined #ruby
Ariadeno has quit [Quit: HydraIRC -> http://www.hydrairc.com <- \o/]
Wolland has quit []
nvrch has joined #ruby
mlpinit has joined #ruby
poulson has joined #ruby
mansi has joined #ruby
jrist has joined #ruby
Matriks has quit [Remote host closed the connection]
pigzzcanfly has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Matriks has joined #ruby
olivier_bK has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
xastion has joined #ruby
SteveBenner09 has quit []
obs has joined #ruby
xastion has quit [Client Quit]
greenarrow has joined #ruby
Stalkr_ has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
pigzzcanfly has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
nouran has joined #ruby
Matriks has quit [Ping timeout: 240 seconds]
nouran has left #ruby [#ruby]
m1lt0n has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
andrewlio has joined #ruby
Astralum has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.3]
ndrei has joined #ruby
axsuul has joined #ruby
<certainty> TuxLyn: yep
slowcon has quit [Quit: slowcon]
greenarrow has quit [Quit: 500]
tesuji has joined #ruby
Xeago has joined #ruby
ikaros has joined #ruby
<TuxLyn> Hey certainty :)
<TuxLyn> What is the easiest way to match strings without using nokogiri
sdouglas_ has quit [Remote host closed the connection]
<certainty> TuxLyn: nokogiri is for xml
<TuxLyn> for example I did match table correctly it finds it
<TuxLyn> but then I wanted to find <tr>'s
<certainty> TuxLyn: nokogiri is the way to go
<TuxLyn> and this is where I hit the wall =(
<TuxLyn> this is html
<TuxLyn> not xml
flayer has quit []
timonv has joined #ruby
<TuxLyn> you just said nokogiri is for xml
poguez_ has quit [Quit: Connection closed for inactivity]
camelng has joined #ruby
brucele_ has quit [Ping timeout: 265 seconds]
tedstriker has joined #ruby
TMM has quit [Ping timeout: 264 seconds]
kenneth__ has joined #ruby
Ch4rAss has joined #ruby
<TuxLyn> alright I guess I'll try nokogiri with html ^_^
kenneth has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
<certainty> TuxLyn: yeah, i spoke too early. It may be usable for any SGML derived markup, dunno about that. It is at least usable for html as well
<TuxLyn> ok
rdark has joined #ruby
<TuxLyn> I'm coming from PHP I don't know if you know PHP, but what is the equlents for this tools > preg_match_all, preg_match, preg_replace
<TuxLyn> I think preg_replace is gsub...
<TuxLyn> then preg_match_all is scan?
<TuxLyn> what about match then is it more like preg_match ?
thomasxie has quit [Quit: Leaving.]
brucele_ has joined #ruby
Xeago has joined #ruby
<plexus_> Nokogiri has parsers for both XML and HTML
<plexus_> there's also subtle differences between a Nokogiri XML vs HTML document
<TuxLyn> oh I think nokogiri works with html ^_^
camelng has left #ruby [#ruby]
<TuxLyn> awesome, will play with it then
<plexus_> Nokogiri(..your html string) / 'tr'
<TuxLyn> its actually easier to use then regex
<plexus_> will give you a list of <tr> nodes
<TuxLyn> yeah I'm trying this now thanks :D
Azulinho has quit [Ping timeout: 272 seconds]
elaptics`away is now known as elaptics
<TuxLyn> awesome :D I alredy like nokogiri :D
lyanchih_ has quit [Quit: lyanchih_]
<TuxLyn> what is the diference between "match" and "scan" ?
Matriks has joined #ruby
Stalkr_ has quit [Quit: Linkinus - http://linkinus.com]
<jhass> match does a single match, scan continues until there are no more matches
<TuxLyn> sorry for too many dumb questions, just trying to code before I learn by reading lol learning the hard way hahaha
<TuxLyn> ok cool
<TuxLyn> so then preg_match == match and preg_match_all == scan :)
<TuxLyn> if I compare it with php I mean ;)
<plexus_> also, match returns a MatchData object, scan returns an Array of String
culturelabs has quit [Quit: Connection closed for inactivity]
<TuxLyn> ok
Kricir has joined #ruby
lyanchih has joined #ruby
<TuxLyn> Alright, I got table and tr's now by using nokogiri
<plexus_> try
<TuxLyn> now I need to match much more specific data, I don't know if nokogiri can do this, like for example ip address
<certainty> great
<plexus_> ri 'String#match'
<plexus_> in your terminal to get good docs
<TuxLyn> ok
<TuxLyn> lol > Nothing known about String#match
<jhass> TuxLyn: in your HTML tree? Out of text blob inside a tag? It's not wrapped by a tag?
<TuxLyn> it is
<plexus_> TuxLyn you might have to manually do some filtering with select {|node| ... }
<TuxLyn> actually I can try nokogiri hold on
<jhass> then just filter out that tag
<TuxLyn> I wanted to use something like this > tr.match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
jmoeller has joined #ruby
<TuxLyn> but its not working ^_^
<jhass> you probably can just dig it out with .xpatch('//tag').text
<jhass> *xpath
wjlafrance__ has quit [Quit: Leaving]
<TuxLyn> yeah but this is not regex it can do false positives if even one tag changes
klaut has quit [Remote host closed the connection]
kukyakya has quit [Ping timeout: 240 seconds]
<jhass> does it really change that often?
<plexus_> (Nokogiri(...) / 'tr').select {|tr| tr.text =~ /../}
<TuxLyn> no its not you right, but just wanted to have more fault talorent aproach that all
<TuxLyn> thanks plexus_ will try
<jhass> optimize when there's need not when you can imagine the need
Kricir has quit [Ping timeout: 240 seconds]
<certainty> also ipv4 only
<TuxLyn> yeah you right no need to complicate things at first
DaniG2k has joined #ruby
cburyta has quit [Ping timeout: 240 seconds]
<TuxLyn> yeah I'll need to match IPv4 and IPv6 will try using nokogiri for that now
nari has quit [Ping timeout: 245 seconds]
<jhass> if you'd be a bit more telling about the actual html you're parsing there we surely can assist you in that ;)
<jhass> like link it or put it into a pastebin
<certainty> TuxLyn: you may want to require 'ipaddress' to do the handling of ipaddresses
<TuxLyn> sure of course ^_^ I'm trying to code new ONiC but instead of bash now in ruby
<TuxLyn> its actually going to be much simpler
<TuxLyn> ok this just trows errors > tr.match(/<td>(.*)<br>(.*)<\/td>/)
<TuxLyn> ok what I'm doing wrong here ^_^
<TuxLyn> oh error I'm getting is >> `block in <main>': undefined method `match' for #<Nokogiri::XML::Element:0x00000000d7cf58> (NoMethodError)
<certainty> dunno
<jhass> so something like ips = html_as_nokogiri_object.xpath('//table[class='data']/tbody/tr[position()>1]/td[position()=2]').map(&:text) I guess
tonni has joined #ruby
<TuxLyn> jhass, thanks but this is just way too messy for me ^_^
<jhass> only because you don't yet understand what it does ;)
<TuxLyn> I'm using > tbl.search('tr').each do |tr|
<TuxLyn> then inside that I need something like > tr.match(/<td>(.*)<br>(.*)<\/td>/)
<TuxLyn> or simular
plexus_ has quit [Ping timeout: 264 seconds]
drsource has joined #ruby
<TuxLyn> jhass, no I do I just don't like this kind of coding at all
koell has joined #ruby
<TuxLyn> I always simplify code ;)
<certainty> xD
<TuxLyn> you'll see when I code this script
<jhass> it's pretty simple code actually
<TuxLyn> thank you :)
dANOKELOFF has joined #ruby
plexus_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
root_empire has joined #ruby
antroy has joined #ruby
TMM has joined #ruby
<TuxLyn> between this part here > //table[class='data']/tbody/ already done so I don't need it
blaxter_ has joined #ruby
<antroy> I am trying to understand why a token encrypted using the OpenSSL module differs to when the same token is encrypted using the same key using openssl directly on the commandline.
<antroy> Does anyone have any experience of the OpenSSL module?
michael_lee has quit [Ping timeout: 240 seconds]
Zunonia has quit [Quit: Computer has gone to sleep.]
<certainty> antroy: different cipher?
<antroy> Both are using RSA. Or is that different from the cipher?
<certainty> no
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> same cipher length?
alexherbo2 has joined #ruby
<antroy> Not sure. I'm not sure where that is set. Will have a google now.
sdouglas has joined #ruby
Matriks has quit [Remote host closed the connection]
<antroy> They are using the same padding type - the default is pkcs#1 v1.5 for both.
Matriks has joined #ruby
<antroy> Can't see any options in either method for cipher length
<certainty> same key size?
mikepack has joined #ruby
incade has quit [Quit: leaving]
<antroy> Same key.
thomasxie has joined #ruby
<certainty> alright
<TuxLyn> jhass, I got it with simply using >> tr.xpath('//td[position()=2]')
<TuxLyn> :D
<TuxLyn> thanks
razibog has joined #ruby
<certainty> antroy: can you show the code and the command line?
<jhass> TuxLyn: that'll be just a whole lot slower than mine extracting them directly ;)
<TuxLyn> that fine, speed is not whats important here :) simplicity is
<antroy> Ruby code: http://pastie.org/8802419
alexherbo2 has quit [Ping timeout: 240 seconds]
<antroy> Shell script: http://pastie.org/8802425
incade has joined #ruby
Matriks has quit [Ping timeout: 252 seconds]
<TuxLyn> still regex better ^_^
bigkevmcd has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 240 seconds]
<jhass> TuxLyn: only because you're more used to it
<TuxLyn> jhass, yeah perhaps
timonv has joined #ruby
<TuxLyn> jhass, is it possible to use match with this tr ?
<TuxLyn> I've tried and all I get is undefined method
monkegjinni has joined #ruby
<jhass> for good I'd say
<jhass> you could grab all text nodes with .text and match on that, but that's messy
joelroa has joined #ruby
<TuxLyn> yeah that what I did did not work
<certainty> antroy: hmm ok, i get different results here too. So that's confirmed :)
yasushi has joined #ruby
<TuxLyn> jhass, I did this > ip = tr.xpath('//td[position()=2]').map(&:text)
<TuxLyn> jhass, then > ip.match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
<TuxLyn> all I get is errors :)
<certainty> .map returns an array
<TuxLyn> oh you're right hahah
<TuxLyn> got it :D
dANOKELOFF has quit []
<TuxLyn> whooohooo :D thanks guys
<jhass> antroy: uhm, isn't one signing and one encrypting?
sdouglas has quit [Ping timeout: 265 seconds]
<jhass> antroy: try -encrypt instead of -sign in the shell version
<antroy> I was under the impression that signing is just encrypting but with the private key
<jhass> not quite, signing is hashing and encrypting the hash with the private key
<antroy> encrypt doesn't work - openssl won't let you encrypt with a private key
pigzzcanfly has joined #ruby
<jhass> hm, okay, maybe the openssl api does use private_encrypt for signing, hmm
<jhass> but seems odd
<TuxLyn> jhass, this is what I mean by clean and simple script ^_^ > http://pastebin.com/Q5MXxkP6
<antroy> When you verify a signed bit of data, it returns that bit of data - don't think that would work if signing did a hash
<TuxLyn> jhass, this is not done yet, I'll add more code but ips part is good :D
sk87 has joined #ruby
<TuxLyn> I know I'm mixing both nokogiri and regex together but it works ;)
joelroa has quit [Ping timeout: 272 seconds]
<certainty> antroy: signing uses the hashed plain text which is whay DSA is discouraged as it uses SHA1
<antroy> The OpenSSL::RSA module doesn't have the option of signing, just encrypting
<certainty> it might assume that you implement sign by hashing and then encrypting the plain text
<certainty> idk
TripleDES has joined #ruby
<TuxLyn> jhass, I would of just used > puts tr.text.scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) but its not picking up all the ips so have to mix it for now ^_^
jxport has quit [Read error: Operation timed out]
Faris has quit [Ping timeout: 265 seconds]
monsieurp has quit [Read error: Connection reset by peer]
claymore has quit [Ping timeout: 240 seconds]
<certainty> TuxLyn: it's totally fine to use nokogiri and regex they both work on a different representation of data
monsieurp has joined #ruby
<TuxLyn> certainty, ok thanks :)
brucele_ has quit [Ping timeout: 240 seconds]
bgy has quit [Read error: Operation timed out]
<jhass> antroy: actually there is #sign, it's on OpenSSL::PKey::PKey which is the base class of OpenSSL::PKey::RSA
joestrong has joined #ruby
pigzzcanfly has quit [Ping timeout: 265 seconds]
jxport has joined #ruby
wjlafrance has joined #ruby
_tpavel has joined #ruby
eregon has quit [Quit: No Ping reply in 180 seconds.]
mansi has joined #ruby
<jhass> or a module mixed into it? idk, the docs are unclear about that
eregon has joined #ruby
mlpinit_ has joined #ruby
<antroy> Ah - hadn't seen that. Will try it, thanks.
claymore has joined #ruby
monkegjinni has quit [Remote host closed the connection]
bgy has joined #ruby
coderhut has joined #ruby
alexherbo2 has joined #ruby
drsource has quit [Quit: • IRcap • 8.6 •]
mansi has quit [Ping timeout: 240 seconds]
mlpinit_ has quit [Ping timeout: 240 seconds]
Azulinho has joined #ruby
klaut has joined #ruby
jonah_k has joined #ruby
phansch has joined #ruby
barratt has joined #ruby
cbreeze has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
jlebrech has joined #ruby
timonv has quit [Remote host closed the connection]
markisonfire has quit [Quit: markisonfire]
monkegjinni has joined #ruby
sensen has joined #ruby
eelseth has joined #ruby
<eelseth> Is there a way to get the number of matches in a string when using regex?
corehook has joined #ruby
guest12214 has quit [Quit: Connection closed for inactivity]
sensen_ has quit [Ping timeout: 264 seconds]
<tobiasvl> string.scan(regex).size ?
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<eelseth> Thanks!
<jhass> for simple things String#count also accepts ranges and such
aaronmcadam has joined #ruby
jonah_k has quit [Ping timeout: 240 seconds]
<eelseth> I'm quite new to ruby, so the APIs are naturaly a bit unknown
bricker has quit [Read error: Operation timed out]
crazymykl has quit [Read error: Connection reset by peer]
crazymykl has joined #ruby
einarj has joined #ruby
mavcunha has joined #ruby
jmeeuwen has quit [Ping timeout: 245 seconds]
bricker has joined #ruby
evilt0ne_work has joined #ruby
<evilt0ne_work> hi
<certainty> hi
roolo has joined #ruby
segmond has joined #ruby
<evilt0ne_work> aktually i am working with redmine... and i am new to ruby,rails and redmine... since i dindn't got any answer on their channel i was hoping to find some help here
Xeago_ has joined #ruby
Kricir has joined #ruby
<evilt0ne_work> is there a way to delete sql-entrys with rake... since there is an old email left in the system after i've deletet it
corehook has quit [Quit: Leaving.]
corehook has joined #ruby
koell has quit [Read error: Connection reset by peer]
<evilt0ne_work> and i wuild like to create users via rake... has anybody done this before?
<evilt0ne_work> would
blaxter_ is now known as dumdedum
cburyta has joined #ruby
kukyakya has joined #ruby
gbt has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
kate_r has joined #ruby
Bulunmayan has joined #ruby
Bulunmayan has left #ruby [#ruby]
Xeago has quit [Ping timeout: 272 seconds]
<jhass> sure there is, rake is a generic tool to run tasks, much like make. You "just" have to code the task to do it ;)
Kricir has quit [Ping timeout: 265 seconds]
yasushi has quit [Remote host closed the connection]
kukyakya has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
<certainty> well actually that's probably more irritating than helping :) it should be pretty straight forward to dabble around in the console to see how a user can be created and put that into a rake task
<evilt0ne_work> thx
jmeeuwen has joined #ruby
shashin has joined #ruby
mengu has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
linduxed is now known as mike-burns_speak
mike-burns_speak is now known as linduxed
mavcunha has quit [Changing host]
mavcunha has joined #ruby
nari has joined #ruby
DaniG2k has quit [Quit: leaving]
Macaveli has joined #ruby
guest12214 has joined #ruby
kukyakya has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
<TuxLyn> How can I run scan on "MatchData" ?
<jhass> you mean on the result of a match group?
<TuxLyn> jhass, hey again :) alright so I have this >
<TuxLyn> tbl1 = tier1.match(/<table class="data">(.*)<\/table>/im)
<TuxLyn> now I want to run scan against it something like
<TuxLyn> like this > tbl.scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
<TuxLyn> but all I get is errors ;)
<TuxLyn> I'm trying something diferent
<jhass> you make me sad :( parsing html with regexes :(
<TuxLyn> :) well I need to learn this soo :)
<TuxLyn> I can already use nokogiri and its easy
<TuxLyn> now I need to figure out regex way
<jhass> do you?
<TuxLyn> yep
<jhass> who says so?
<napcae> for education !
<TuxLyn> lol
<TuxLyn> napcae, indeed
<napcae> yes
<napcae> good attitude :)
<jhass> anyway you need to extract the match group: match(..)[1] http://rubydoc.info/stdlib/core/MatchData#%5B%5D-instance_method
<TuxLyn> I don't understand why I can't run scan against "MatchData"
<jhass> because it's not a String
<TuxLyn> jhass, lol
<TuxLyn> jhass, that was easy :D
<TuxLyn> thanks mate
myst3r10n has joined #ruby
<myst3r10n> is it possible to read the blkindex.dat from bitcoin with ruby and bdb?
<TuxLyn> also I like this regex aproach better because it does not require nokogiri to be installed
<jhass> that's a bad reason
<certainty> >> class MatchData; def scan(*) "NO NO"; end end; "foo".match(/.*/).scan(:something)
<eval-in___> certainty => "NO NO" (https://eval.in/106293)
lolmaus has joined #ruby
<TuxLyn> jhass, not really if you consider many non-tech people will use it ;)
<certainty> because every non-tech person knows regex
<TuxLyn> lol
<TuxLyn> well I mean people who don't code at all
guest12214 is now known as not_a_guest
<TuxLyn> but simply would like to run my script ;)
<jhass> TuxLyn: then you want to make it a gem anyway so they can gem install foo and just run foo afterwards. And then nokogiri will just be installed along the way
<certainty> that didn't work for COBOL and it doesn't work now
aagdbl has joined #ruby
<TuxLyn> and this is how it looks > http://pastebin.com/BE4NTik4
<TuxLyn> nokogiri is not required ^_^
<TuxLyn> this is what I wanted from the start :D
<TuxLyn> its amazing what ruby can do when you can simplify it like that
<TuxLyn> only freaking 4 lines of code lol
<certainty> it will explode in your face once they change the site's markup
<TuxLyn> yeah they dont ;)
pigzzcanfly has joined #ruby
<TuxLyn> and this is actually way more fault talorent then nokogiri way
<certainty> alright, just tellin
<TuxLyn> np :)
<jhass> like if another space slips into "<table class="data">"
lkba has quit [Ping timeout: 272 seconds]
bnjamin has joined #ruby
<TuxLyn> yeah well this is wiki so they don't edit html
<jhass> or a second table appears on the page
<TuxLyn> when and if that happens I'll deal with it then ;)
<TuxLyn> for now this works well
<TuxLyn> thanks again guys
<jhass> some tips though: get used to use open with a block so file handles would be closed automatically, in this case you can shortcut it with tier1 = open(..., &:read)
agjacome has quit [Ping timeout: 264 seconds]
SegFaultAX has quit [Excess Flood]
<certainty> TuxLyn: you're a sysop right?
sdouglas has joined #ruby
<TuxLyn> jhass, thanks :)
<TuxLyn> certainty, where ?
<jhass> don't be afraid to type out descriptive variable names, tbl1 for example is horrible, table1 is just two more characters and you can tell apart l and 1
<jhass> but why 1 in the first place, is there 2?
joelroa has joined #ruby
<jhass> where's 2?
<TuxLyn> yeah will be
<certainty> TuxLyn: i'm just asking :) I'm guessing from dour code
<jhass> why isn't it an array if there are multiple?
<certainty> your
<TuxLyn> there is also tier2
agjacome has joined #ruby
<TuxLyn> certainty, neah just recoding my old onic.sh :)
<jhass> with the same operations I guess? so you'll want to make it a method anyway
jprovazn has quit [Quit: Leaving]
SegFaultAX has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
<TuxLyn> yeah
<TuxLyn> I like DRY coding so method will have to be done you're right
ianfleeton has joined #ruby
<certainty> TuxLyn: alright. It just looks like code which one of our sysop would've written. No offend though
<TuxLyn> certainty, lol thanks I guess
dEPy has joined #ruby
<dEPy> hi!
<dEPy> I need help with refactoring, I have a bunch of config hashes each in it's own method. And it looks pretty ugly but I have no idea how to make it more clean and simple: https://gist.github.com/depy/9247972
<TuxLyn> I have coded a lot of weird stuff, but I use it my self. I would of showed you my github but its wiped for now ;)
<TuxLyn> recently coded AtGet.rb basicly Apple Trailers Downloader in Ruby and Asus RT-N56U mac address monitor for local network ^_^
joelroa has quit [Read error: Operation timed out]
<TuxLyn> I like coding clean code, if I don't it bothers me ^_^
eVRiAL has quit [Quit: Textual IRC Client: www.textualapp.com]
mehlah has quit [Quit: Leaving...]
kaliya has joined #ruby
<TuxLyn> I can pastebin atget.rb if you like ;)
m1lt0n has quit [Quit: leaving]
<TuxLyn> even have my own rb script for msnbc news hahahaah
Lucky_Red has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<TuxLyn> Here if any one cares, just *please* don't judge it too harshly I'm new to ruby ^_^ http://pastebin.com/BVv6gxvF
sk87 has joined #ruby
<jhass> dEPy: for starters the first three methods are the same with even_name parameterized, so extract that
<TuxLyn> I've added additional folders like Covers (for movie covers) and Movies (is for trailers downloaded) and also Good and Crap folders to organise trailers I've seen into "Good" if I liked it and "Crap" if I did not so it wont download it again :)
<jhass> er, first two
cburyta has quit [Ping timeout: 240 seconds]
<TuxLyn> it works sooo ^_^
mlpinit has joined #ruby
<TuxLyn> certainty, its actually my atget.sh (bash script) recoded which is now much better in ruby then old bash one.
<jhass> dEPy: hm I guess the tricky part here is to find the balance number of between parameters and deduplication
<TuxLyn> anyway, thanks for help guys good night :)
<certainty> TuxLyn: yeah, looks like a bashscript turned into ruby :) Good night
<TuxLyn> certainty, lol told you I'm new ;)
<TuxLyn> hey it works so that a good start ahahah ^_^
<TuxLyn> Good night everyone ^_^
TuxLyn has quit [Quit: Leaving]
yasushi has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
segmond has quit [Quit: Leaving]
mlpinit has quit [Ping timeout: 272 seconds]
Faris has joined #ruby
<dEPy> jhass I can extract that but then I need another 2 methods for calling this method with proper params
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Cope__ is now known as Cope
gayrubyist has joined #ruby
AlexRussia has quit [Remote host closed the connection]
Matriks has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<gaussblurinc> hi!
<gaussblurinc> how to print nested structures?
eelseth has quit [Read error: Operation timed out]
<gaussblurinc> something like perl's Dumper module
eelseth has joined #ruby
decoponio has joined #ruby
mengu has joined #ruby
<jhass> gaussblurinc: pp from stdlib or the awesome_print gem
eelseth_ has joined #ruby
AlexRussia has joined #ruby
larsam has joined #ruby
moneydouble has quit [Quit: Leaving.]
diegoviola has joined #ruby
jprovazn has joined #ruby
eelseth has quit [Ping timeout: 240 seconds]
redlines has quit [Ping timeout: 240 seconds]
wjlafrance has quit [Quit: This computer has gone to sleep]
<jhass> dEPy: a first iteration I'd play around with would be something along these lines: http://paste.mrzyx.de/pc9435c5c/
redlines has joined #ruby
mrfoto has joined #ruby
thumpba has joined #ruby
vlad_starkov has joined #ruby
<dEPy> jhass: tnx, seems less cluttered with that kind of hash construction
Cache_Money has quit [Quit: Leaving]
<jhass> well, it abstracts the data structure away and focuses on what you define instead
Kricir has joined #ruby
gilest has joined #ruby
<certainty> jhass: impressing. One thing that is a bit disturbing is returning config in each of these methods. Do you think it would be good to return the config in the helpers instead?
thumpba has quit [Ping timeout: 265 seconds]
<jhass> yeah that or actually I'm trying out moving it into settings_for currently
<jhass> config.config just looks odd though
<certainty> jhass: well it producese a hash, how about removing the reader and provideng #to_hash? so you can config.to_hash
<jhass> ah, I like that
mansi has joined #ruby
<certainty> my typing is off :/
yeticry has quit [Ping timeout: 244 seconds]
einarj has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
it_tard has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
Astralum has quit [Ping timeout: 272 seconds]
yeticry has joined #ruby
mansi has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
mansi has joined #ruby
<gayrubyist> ruby is just a great language
<gayrubyist> :)
it_tard has quit [Client Quit]
nfk|laptop has joined #ruby
coderhut has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
<gayrubyist> simple and yet powerful enough to build awesome programs.
<gayrubyist> awsome
mikepack has joined #ruby
<certainty> it's not actually simple but it's certainly powerful
<dEPy> I wouldn't say it's simple. :) It looks simple.
<gayrubyist> puts ('hello world')
<jhass> dEPy: next iteration: http://paste.mrzyx.de/pf7150ac8/
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
renklaf has joined #ruby
lyanchih has quit [Ping timeout: 272 seconds]
<dEPy> jhass: you rock! :)
hiyosi has joined #ruby
shredding has joined #ruby
<gayrubyist> everyone's first program in any language
<gayrubyist> puts ('hello world!')
<olivier_bK> i have a stupid question how i can replace my caracter behind :
<olivier_bK> exemple userr : 20 ;
<certainty> jhass: good one. Also some more reptition is gone
<gayrubyist> anyone heard of puppet ?
alexju has quit [Remote host closed the connection]
davedev24 has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby
<certainty> gayrubyist: yes
<jhass> dEPy: careful though, this one slightly changes behavior to your old one, if the event is not found empty hash instead of nil is returned
<gayrubyist> puppet is a system admin tool that is written in ruby.
gr33n7007h has quit [Quit: leaving]
<jhass> dEPy: just wrap the if back around ll. 7 and 8 if you want to revert to the old behavior
Lucky_Red has quit [Quit: Leaving...]
<gayrubyist> of course i didn't realize that regex is it's own programming language
<dEPy> ok
<jhass> dEPy: the else nil is default and should be omitted IMO
<dEPy> I have tests written to no problem :)
<dEPy> to = so
mrfoto has quit []
gr33n7007h has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
<certainty> gayrubyist: regex are not turing complete though
<gayrubyist> certainty, ahhh yes. but it's used in all programming language environments!
chuk has quit [Quit: Leaving]
hiyosi has quit [Ping timeout: 265 seconds]
nfk|laptop has quit [Ping timeout: 264 seconds]
<plexus_> and modern regexps are definitely no longer a regular language
<gr33n7007h> >> factorial=->(n){(1..n).inject(:*)};factorial[6]
<eval-in___> gr33n7007h => 720 (https://eval.in/106315)
RyanV has joined #ruby
<gayrubyist> it certainly is. Perl is heavily based on RegEX.
ikaros has quit [Quit: Ex-Chat]
gaussblurinc has quit [Quit: Leaving.]
<gayrubyist> i know perl, ruby, php
<gayrubyist> and sh
<gayrubyist> c
claymore has quit [Ping timeout: 272 seconds]
<olivier_bK> how i can replace 31158 but sometimes i have only -1 or 10 , 'users_external' => 31158,
<gayrubyist> im a hard core programmer
<gayrubyist> factorial math
<gayrubyist> i see
pigzzcanfly has joined #ruby
datreh has joined #ruby
<jhass> olivier_bK: please elaborate
<gayrubyist> your using the inject method
<gayrubyist> for what
<gayrubyist> olivier_bK ?
DaniG2k has joined #ruby
<olivier_bK> i have a parameter 'users_external' => 31158,
<olivier_bK> and sometimes i need to udate the number
<gayrubyist> udate ?
<olivier_bK> but in different file the number can be -1
<olivier_bK> oh sorry update
claymore has joined #ruby
<gayrubyist> are you trying to point to some object ?
mmochan has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Remote host closed the connection]
<olivier_bK> no
<jhass> what do you mean by update? set to a static number? where does that come from?
<gayrubyist> i guess he created his own parameter using the equal to greater than symbol to a number
pigzzcanfly has quit [Ping timeout: 272 seconds]
<gayrubyist> where is the parameter located
<gayrubyist> ?
<jhass> parameter=variable? and it looks like a hash, yeah
<gayrubyist> i see he is injecting into a hash symbol
<jhass> olivier_bK: maybe make a gist of the whole code you have
<olivier_bK> i read a file in php
<gr33n7007h> >> Hash[(1..10).each_slice(2).map {|n| [n, hypot(*n)]}]
<eval-in___> gr33n7007h => undefined method `hypot' for main:Object (NoMethodError) ... (https://eval.in/106317)
<gr33n7007h> >> Hash[(1..10).each_slice(2).map {|n| [n, Math.hypot(*n)]}]
<eval-in___> gr33n7007h => {[1, 2]=>2.23606797749979, [3, 4]=>5.0, [5, 6]=>7.810249675906654, [7, 8]=>10.63014581273465, [9, 10]=>13.45362404707371} (https://eval.in/106318)
<gayrubyist> use pastebin
<gayrubyist> pleas
<olivier_bK> ok
zeeraw has joined #ruby
<gayrubyist> http://pastebin.com/ Paste Your code into here than show the link
<gr33n7007h> Just needed to check something
predator217 has quit [Remote host closed the connection]
<jhass> eval-in is for demonstration purposes, please use irb for experiments
joelroa has joined #ruby
dangerousdave has joined #ruby
<gr33n7007h> jhass, My irb is damaged at the mo, that's why just needed a little check
<certainty> that reminds me
BadQuanta has quit [Quit: Leaving.]
sdouglas has quit [Ping timeout: 265 seconds]
<jhass> gr33n7007h: you can also go directly to https://eval.in so your experiments aren't broadcasted to 800 people ;)
<gr33n7007h> jhass, didn't know, I do now :)
m00nlight has joined #ruby
poulson has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sensen has quit [Ping timeout: 240 seconds]
cburyta has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joelroa has quit [Ping timeout: 240 seconds]
gilest has quit [Remote host closed the connection]
sk87 has joined #ruby
jtdowney has joined #ruby
_tpavel has quit [Ping timeout: 272 seconds]
vlad_starkov has quit []
phansch has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 264 seconds]
kitak has quit [Remote host closed the connection]
nvrch has quit [Quit: nvrch]
senayar_ has quit [Remote host closed the connection]
mlpinit has joined #ruby
thumpba has joined #ruby
sparrovv has joined #ruby
evenix has joined #ruby
mneorr has joined #ruby
noopq has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
thumpba has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
ringaroses has joined #ruby
andikr has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
zeeraw has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
monkegjinni has joined #ruby
mneorr has quit [Ping timeout: 240 seconds]
_tpavel has joined #ruby
DaniG2k has quit [Quit: Lost terminal]
vlad_starkov has joined #ruby
DaniG2k has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
IceDragon has joined #ruby
yfeldblum has joined #ruby
tvw has quit []
workmad3 has joined #ruby
<certainty> also for testing one-liners ruby -e 'puts Hash[(1..10).each_slice(2).map {|n| [n, Math.hypot(*n)]}].inspect' :p
<popl> or just use irb
<certainty> or ruby -e 'loop{ puts eval(readline).inspect }' ... prittle as hell
<certainty> popl: his irb was broken
<certainty> or is
<popl> install pry?
shredding has quit [Quit: shredding]
<popl> you can compile vim with +ruby and have ruby support inside the buffer
<certainty> so many options :)
lxsameer has quit [Quit: Leaving]
babilen has joined #ruby
<gr33n7007h> Fixed :)
cek has joined #ruby
postmodern has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 252 seconds]
Faris has quit [Ping timeout: 252 seconds]
<cek> Hai gais. What would you recommend for escaping an URI path containing "["?
<cek> not query params, but path. they can't include [
<babilen> Hello, I encountered Ruby due to the fact that I am using vagrant and face a datastructure (which is?) such as 'this.is = { foo-bar-baz: something.else_entirely}' -- apparently "foo-bar-baz" is not valid syntax there and I tried enclosing it in "" to make it a single string, but I am not sure where to take it from here.
<babilen> It would help to know which datastructure this is and if I were able to read some seminal documentation on it.
<cek> Or wait .. they can? well, why is then: URI::InvalidURIError: bad URI(is not URI?): http://ya.ru/sdf[/asdf
<certainty> >> %s["foo-bar-baz"]
<eval-in___> certainty => :"\"foo-bar-baz\"" (https://eval.in/106345)
<certainty> woops
<certainty> >> %s[foo-bar-baz]
<eval-in___> certainty => :"foo-bar-baz" (https://eval.in/106346)
<cek> >> URI.escape('http://ya.ru/[/sdf')
<eval-in___> cek => uninitialized constant URI (NameError) ... (https://eval.in/106347)
<cek> >> require 'uri'; URI.escape('http://ya.ru/[/sdf')
<eval-in___> cek => "http://ya.ru/[/sdf" (https://eval.in/106348)
<certainty> babilen: it's a hash
jtdowney has quit []
<babilen> certainty: As in an associative array? Shouldn't that be "{"foo-bar-baz" => something.else_entirely}" ?
cburyta has quit [Remote host closed the connection]
cburyta has joined #ruby
<tobiasvl> babilen: associative arrays is what php calls them :P hashes
<certainty> babilen: yeah it's an associative datastructure. No it shouldn't. It seems to be using Symbols as keys
<tobiasvl> and { foo: 2 } is sugar for {:foo => 2 }
xjiujiu has joined #ruby
<babilen> tobiasvl: Well, associative array is what most books on datastructures calls it.
<babilen> *call
Kricir has joined #ruby
<apeiros> hi popl
<babilen> certainty: So, "foo-bar-baz" is not a valid symbol (by nature of being a string) and foo-bar-baz is also not a valid symbol (due to it contianing -) ?
pwh has joined #ruby
<tobiasvl> yep
<popl> Hi apeiros.
<certainty> babilen: correct
<certainty> babilen: you can make it a symbol though.
<certainty> >> :"foo-bar-baz"
<eval-in___> certainty => :"foo-bar-baz" (https://eval.in/106355)
<popl> Are you in a hurry to get those tests? I am just wondering. I do not plan to flake on it but I work from 16:00 to 01:00 and am usually pretty tired when I get home.
<apeiros> :"foo-bar-baz" is a symbol
<apeiros> foo-bar-baz is the expression foo.-(bar.-(baz))
predator117 has joined #ruby
<babilen> certainty: Okay, and the program that uses this datastructure is likely to specifically expect symbols there and is not working with strings?
Matriks has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
<apeiros> i.e., call - on foo, with the argument bar-baz, which itself is call - on bar with argument baz
<certainty> babilen: yeah I would assume it.
tkuchiki_ has quit [Read error: Connection reset by peer]
<tobiasvl> so just use {:foo-bar-baz => something } instead
<babilen> certainty: So there is no way to, well, somehow escape the string "foo-bar-baz" to turn it into a proper symbol?
<certainty> { :"foo-bar" => something }
<tobiasvl> uh
<tobiasvl> yeah that
<tobiasvl> mine obviously doesn't work either
<babilen> tobiasvl: Ah, so :foo-bar-baz would be a proper symbol?
* babilen has to keep up :)
<tobiasvl> no, sorry. :"foo-bar-baz"
griffindy has joined #ruby
<babilen> yeah, I wrote that before reading certainty's reply.
<babilen> Let me try that.
<apeiros> :foo-bar is not valid because it'd be (:foo).-(bar)
Kricir has quit [Ping timeout: 241 seconds]
<apeiros> i.e., call - on the symbol :foo, with argument bar
cina has joined #ruby
<apeiros> hence it needs quoting.
<certainty> which makes it a quoted symbol :D
<certainty> probably only funny for lispers
<babilen> I get: "syntax error, unexpected ':', expecting tASSOC" and "syntax error, unexpected '}', expecting '='" with that.
m00nlight has quit [Ping timeout: 252 seconds]
RyanV has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 264 seconds]
<certainty> babilen: can you show what exactly you have there?
<apeiros> babilen: with what?
<babilen> certainty: I am quite involved in Clojure, so haha
<apeiros> I guess you mixed syntaxes…
<tobiasvl> babilen: make sure you use the old hash syntax, { :"foo-bar-baz" => something }
Xeago has quit [Remote host closed the connection]
freerobby has joined #ruby
Xeago has joined #ruby
<certainty> babilen: so in clojure speak a Hash is closest to a map. Only that it's not persistent :)
<babilen> apeiros: Well, I am simply trying to use vagrant which, for a reason unbeknownst to me, uses plain Ruby in their configuration file. And they are indeed not using => in there.
<apeiros> babilen: no. the code you used.
<babilen> certainty: exactly, or a dictionary in Python
<workmad3> babilen: Vagrantfile is plain ruby because ruby is quite a nice configuration language in many situations
<babilen> apeiros: I used '{ :"foo-bar-baz": salt.minion_pub }' which I know learned is wrong as this seems to require me to use => in lieu of : to separate "keys" from "values" (no idea what its called in Ruby)
<workmad3> babilen: it's called keys and values ;)
<babilen> great \o/
hiyosi has joined #ruby
<workmad3> babilen: and => is called a hash-rocket
ianfleeton has quit [Remote host closed the connection]
<apeiros> babilen: that's mixing syntaxes and doesn't work :)
<apeiros> with :"foo" symbols, you must use =>, not :
<apeiros> { :"foo-bar-baz" => salt.minion_pub }
<certainty> babilen: we have special literal syntax for the case where the keys in a hash are symbols
<babilen> apeiros: I can assure you that I wasn't aware of that. How come both "=>" and ":" are used? Is that simply a historic artifact?
<apeiros> foo: can only be used with symbols that don't need quoting.
<popl> literally
pigzzcanfly has joined #ruby
<apeiros> babilen: {foo: bar} is newer
<apeiros> reason for it is that it's shorter than :foo => bar, which is a very often used construct in method calls.
<certainty> my theory is that it's this way to have a backwards compatible way to introduce proper keyword arguments
<certainty> dunno if that's true
<apeiros> yes
<workmad3> babilen: key: value is a newer syntax (1.9) which, iirc, is basically there as a stepping stone towards keyword args (introduced in 2.0)
<apeiros> that was the idea. IMO it backfired.
AlexRussia has quit [Remote host closed the connection]
nuck has quit [Ping timeout: 244 seconds]
<certainty> ah good, now i know for sure
<certainty> maybe my other conspiracy theories are true as well :D
<babilen> Okay, thanks for elaborating. If I use "=>" in there it seems to be valid syntactically and now I only have to check if it yields the proper result.
yacks has quit [Quit: Leaving]
AlexRussia has joined #ruby
<workmad3> apeiros: somewhat... it certainly got me used to writing method calls with 'method foo: bar' before 2.0 dropped proper kwargs on us :)
<babilen> I really tried to figure this out by myself, but the sheer fact that http://www.ruby-doc.org/core-2.1.1/Hash.html uses "=>" while I encountered ":" lead me to believe that I am dealing with a different datastructure.
<apeiros> workmad3: just that with it being a valid way to write hashes, we have an ugly mixture
hiyosi has quit [Ping timeout: 265 seconds]
PLejeck has joined #ruby
<workmad3> apeiros: so I guess in that sense it may have 'worked'... but I still feel some resentment every time I look at {"foo": "bar"} and think 'why didn't the make valid JSON valid ruby?'
<wuest> apeiros: only if coders don't value consistency (sadly, prevalent)
pigzzcanfly has quit [Ping timeout: 240 seconds]
<workmad3> apeiros: don't forget that '{:foo => :bar, fizz: :buzz, "hi" => "ho"}' is valid for that truly ugly line of code :)
<wuest> workmad3: I imagine the syntax was to subtly encourage people to use symbols for hash keys when declaring literals
<babilen> wuest: fwiw, it definitely violated the principle of least astonishment for me
gayrubyist is now known as help
<apeiros> workmad3: yupp
mostlybadfly has joined #ruby
help is now known as gayrubist
gayrubist is now known as gayrubyist
<apeiros> wuest: it creates problems which don't need bad coders to materialize
* apeiros back at work
<gayrubyist> d
gilest has joined #ruby
toertore has quit [Ping timeout: 272 seconds]
<wuest> apeiros: Does it? I mean, besides "this is ugly in heterogeneous codebases"
<wuest> (I kinda wish single-style throughout could be enforced)
<apeiros> wuest: yes. f.ex. def foo(hash_arg, **kwarg)
<apeiros> where do you think foo(bar: 1) the {bar: 1} hash goes with that?
<wuest> Ah, yeah. I avoid kwargs like the plague.
<workmad3> apeiros: kwargs would be my suspicion
<wuest> But, hash_arg is a required argument
<apeiros> workmad3: wrong
tjr9898 has quit [Remote host closed the connection]
<wuest> So {bar: 1} is the value of hash_arg
<apeiros> def foo(hash_arg=nil, **kwarg)
<workmad3> apeiros: aha :)
<apeiros> with that it goes to kwarg
<certainty> wuest: it's the hash
<certainty> just tried
<certainty> erm wrong
<apeiros> without the default, it goes to hash_arg
<certainty> wuest: sorry that was for workmad3
loc22 has joined #ruby
<wuest> certainty: no worries :)
<apeiros> IMO keyword args should be distinct from a hash
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> and converting a hash to keyword args should require explicit "kwarg splatting"
<wuest> Yeah, absolutely apeiros
<workmad3> apeiros: I've only ever used named kwargs in my own code
<apeiros> but with the introduction of "looky, hash like kwarg!", that became rather difficult to pull off.
poulson has joined #ruby
<wuest> I've not used any language that has kwargs (before ruby 2), so I've never given a crap about them.
<apeiros> workmad3: doesn't matter I think. let me try (I should actually work, though…)
<babilen> certainty, apeiros: Thank you so much. That did the trick and I can now continue working. Excuse my lack of Ruby knowledge, but I seem to have succeeded in making myself understood. May you have a nice day and may historical warts^Wlegacies such as ":" vs "=>" not hunt you often.
<apeiros> workmad3: yupp, doesn't need to be **kwarg
gayrubyist is now known as LGBTRubyist
<wuest> apeiros: you're acting as a "community representative" for your company. You're working by not working!
<apeiros> >> def foo(hash_arg=nil, foo: 2); p hash_arg, foo; end; foo a: 1
<eval-in___> apeiros => unknown keyword: a (ArgumentError) ... (https://eval.in/106357)
<certainty> babilen: yw, have fun
<workmad3> apeiros: right, ruby will try to ensure that required args are filled...
<apeiros> you must explicitly pass a second empty hash in
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> workmad3: foo is not a required arg
<apeiros> it has a default value
<apeiros> >> def foo(hash_arg=nil, foo: 2); p hash_arg, foo; end; foo({a: 1}, {})
<eval-in___> apeiros => {:a=>1} ... (https://eval.in/106358)
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gilest has quit [Remote host closed the connection]
gaussblurinc has joined #ruby
<apeiros> for those who don't want to visit the result, foo's value is 2
Faris has joined #ruby
<certainty> wat?
<workmad3> apeiros: def foo(hash_arg = {}, bar: nil) with foo(bar: 2) sets bar to 2
<cek> read the book.
<apeiros> the rule (which is fugly IMO) is, that if the last arg is a hash, and the method defines *any* kwargs, that last argument becomes promoted to kwargs
koell has joined #ruby
<apeiros> workmad3: yes.
<workmad3> hmm, foo(foo: 2, bar:1) gives an error as you said though...
<apeiros> workmad3: the problem is that if you want to set hash_arg instead, you must pass an empty hash as last arg.
gaussblurinc has quit [Client Quit]
<workmad3> I don't often write methods that take both a hash and kwargs :)
<apeiros> proper distinction of kwarg and hash would have avoided that
<apeiros> "I don't write often…" even more random will it seem when you do :-p
<certainty> +1
<cek> +2
cek has left #ruby [#ruby]
Matriks has joined #ruby
<certainty> that's probably due to the fact that kwargs are relatively new. They will be used all over the place in the future
<workmad3> apeiros: 'I don't often ...' == currently never but I can't predict the future with perfect accuracy ;)
gaussblurinc has joined #ruby
<certainty> i can :p
<workmad3> certainty: you can predict the future with ... certainty? *rimshot*
cina has quit [Quit: leaving]
<certainty> :D
Faris has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
joelroa has joined #ruby
<wuest> certainty: they will just (hopefully) become indistinguishable from a arg hash (which already IS a very common design pattern)
gaussblurinc has quit [Client Quit]
brucele_ has joined #ruby
joestrong has left #ruby [#ruby]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
SegFaultAX has quit [Excess Flood]
Fire-Dragon-DoL has joined #ruby
<certainty> so many different rules, positional args, positional hash-args, kwargs, restargs
<Fire-Dragon-DoL> Is this considereda one-line loop? records.each { |record| index += 1 and yield(record, index) }
<certainty> in scheme we have a special syntax to support DSSSL style lambdas with optional-,keyword- and rest args. It's a mess if you mix those
joelroa has quit [Ping timeout: 240 seconds]
<workmad3> Fire-Dragon-DoL: yes, but it's ugly
loc22 has quit [Ping timeout: 240 seconds]
<workmad3> Fire-Dragon-DoL: records.each_with_index{|record, idx| yield(record, idx)}
tkuchiki has joined #ruby
<wuest> certainty: Mmm, lisp :D
<workmad3> Fire-Dragon-DoL: or, if you have a &blk argument, just records.each_with_index(&blk)
brucele_ has quit [Ping timeout: 240 seconds]
cburyta has quit [Remote host closed the connection]
<DaniG2k> guys im trying to remove ruby 2.1.0 from my machine but when I do rvm remove 2.1.0 it seems passenger is complaining
<DaniG2k> permission denied
nvrch has joined #ruby
<DaniG2k> do I need to run rvm remove 2.1.0 with sudo?\
<Fire-Dragon-DoL> workmad3: yea but the entire thing is inside another loop so I must calculate the index by myself :S
<certainty> wuest: :) yeah
<certainty> Fire-Dragon-DoL: code or it didn't happen :)
<workmad3> Fire-Dragon-DoL: unlikely ;)
<wuest> Fire-Dragon-DoL: I don't think I've ever encountered a situation wherein the index must be calculated manually in ruby.
<Fire-Dragon-DoL> it's not hard
gaussblurinc has joined #ruby
<Fire-Dragon-DoL> you have a webpage which shows X records per page
<Fire-Dragon-DoL> you get data from that page
<Fire-Dragon-DoL> and you want ALL records
<Fire-Dragon-DoL> so records 1 will be the first record in page 1
<Fire-Dragon-DoL> but in page 2, it won't be record 1, while each_with_index will still yield one ^^
mlpinit has joined #ruby
cburyta has joined #ruby
terence has joined #ruby
jtdowney has joined #ruby
jmeeuwen has quit [Ping timeout: 265 seconds]
SegFaultAX has joined #ruby
nateberkopec has joined #ruby
matanya has joined #ruby
<workmad3> Fire-Dragon-DoL: potentially subtle bug there - you're starting your indexing there at 1, not 0
<Fire-Dragon-DoL> workmad3: you are right, thanks for spotting that
<Fire-Dragon-DoL> lol
<Fire-Dragon-DoL> insane
aryaching has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<matanya> anyone here from rubygems.org staff? i need to report a possible bug
mlpinit has quit [Ping timeout: 240 seconds]
<apeiros> Fire-Dragon-DoL: records.zip(from..until, &block)
mneorr has joined #ruby
<workmad3> Fire-Dragon-DoL: also, records.each_with_index{|r, idx| yield(record, current_offset + index)}
sk87 has joined #ruby
<terence> I define a method in C and call this method in Ruby, but Ruby says it's undefined, I'm using rb_define_singleton_method(...), not using FFI, I'm curious about this.
<Fire-Dragon-DoL> workmad3: crap you are right
<Fire-Dragon-DoL> lol
Astralum has joined #ruby
shredding has joined #ruby
<Fire-Dragon-DoL> terence: mhhh, why you use singleton_method instead of rb_define_method ?
<workmad3> Fire-Dragon-DoL: also 'records_per_page' is really 'records_on_previous_page' after iteration 1... ;)
Faris has joined #ruby
root_empire has quit [Quit: Ex-Chat]
yacks has joined #ruby
RyanV has joined #ruby
jtdowney has quit []
<gaussblurinc> guys, what is the best way to search through array of hashes?
<terence> Fire-Dragon-DoL: mhhh, I just use the original one and didn't modify this, in fact I'm wondering if using rb_define_method would work, BTW, what's the difference between the two?
<Fire-Dragon-DoL> workmad3: mhhh yes I can agree with that too
vlad_starkov has joined #ruby
<jhass> gaussblurinc: search? like .find {|hsh| hsh[key] == value } ?
<gaussblurinc> yes
mneorr has quit [Ping timeout: 240 seconds]
<Fire-Dragon-DoL> terence: I think the singleton methods define a completely different thing: a method on a SINGLE instance
cburyta has quit [Ping timeout: 265 seconds]
<Fire-Dragon-DoL> it's not a class method
<gaussblurinc> but like {key == specific_key}
<Fire-Dragon-DoL> but a method that exists only for one instance
zumba_addict has quit [Quit: zumba_addict]
BadQuanta has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
cloud|nix has joined #ruby
<jhass> Fire-Dragon-DoL: terence a class method is a singleton method, it's a method defined on a classes singleton class
<workmad3> Fire-Dragon-DoL: tbh, I'd probably do that loop as a 'loop { records = ...; records.each_with_index{...}; break if records.size != page_size; current_offset += page_size}'
cburyta has joined #ruby
mehlah has joined #ruby
charliesome has joined #ruby
<Fire-Dragon-DoL> jhass: the fact is that you can define a class method by just doing rb_define_method on the class
itadder has joined #ruby
<Fire-Dragon-DoL> I think rb_define_singleton_method is to obtain a behavior like ENV, which is an instance of Object (not a derived class) but has some additional methods like [] empty? and such
itadder has quit [Client Quit]
<terence> Ahh! Like this, I define a class 'NMatrix' using rb_define_class, and a module 'BLAS' under 'NMatrix' using rb_define_module_under(cNMatrix, "BLAS"), and the method I mentioned belongs to BLAS
prc has quit [Quit: Leaving.]
prc has joined #ruby
popl has quit [Quit: Touch the frog.]
mrnugget has joined #ruby
<terence> jhass: so rb_define_singleton_method() returns the method under the class provided in the parameter list
poulson has quit [Remote host closed the connection]
gaussblurinc has quit [Quit: Leaving.]
<DaniG2k> ok guys so I updated to ruby 2.1.1 and
gaussblurinc has joined #ruby
<DaniG2k> when I try to remove ruby 2.1.0 phusion passenger complains
<DaniG2k> any idea shwy?
gaussblurinc has quit [Client Quit]
karupanerura is now known as zz_karupanerura
<Fire-Dragon-DoL> workmad3: it's valid, I was trying to use a native while instead of "loop" method for I don't even remember what reason but it's ok to convert it in a loop
tvw has joined #ruby
matanya has quit [Quit: Ex-Chat]
rahult has joined #ruby
anarang has quit [Quit: Leaving]
DaniG2k has quit [Quit: leaving]
jmoeller has quit []
<workmad3> Fire-Dragon-DoL: you could also have considered a do ... while loop
<workmad3> Fire-Dragon-DoL: as you always want the loop body to execute once ;)
jrhorn424 is now known as zz_jrhorn424
mikepack has joined #ruby
Ch4rAss has quit [Quit: Lost terminal]
krz has quit [Quit: WeeChat 0.4.3]
RyanV has quit [Quit: Computer has gone to sleep.]
mourest has joined #ruby
Matriks has quit [Remote host closed the connection]
vt102 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RyanV has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
emerleite has joined #ruby
emerleite has quit [Client Quit]
kpshek has joined #ruby
cburyta has quit [Ping timeout: 272 seconds]
cburyta_ has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
jmoeller has joined #ruby
vt100 has joined #ruby
Kricir has joined #ruby
Brian520 has quit []
Brian520 has joined #ruby
mark_locklear has joined #ruby
Brian520 has quit [Client Quit]
Kneferilis has quit [Quit: Leaving]
Brian520 has joined #ruby
vt102 has quit [Ping timeout: 240 seconds]
Azulinho has quit [Ping timeout: 264 seconds]
rahult is now known as rahult_
Brian520 has quit [Client Quit]
lkba has joined #ruby
Brian520 has joined #ruby
gaussblurinc has joined #ruby
pigzzcanfly has joined #ruby
Brian520 has quit [Client Quit]
Kricir has quit [Ping timeout: 240 seconds]
Brian520 has joined #ruby
mansi_ has joined #ruby
rahult_ is now known as rahult
mlpinit has joined #ruby
Brian520 has quit [Client Quit]
tgkokk has joined #ruby
einarj has joined #ruby
zeeraw has quit [Quit: Textual IRC Client: www.textualapp.com]
dingus_khan has quit [Remote host closed the connection]
chrisseaton has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
davidcollom is now known as davidcollom_afk
hiyosi has joined #ruby
mansi_ has quit [Ping timeout: 240 seconds]
Faris has quit [Read error: Connection reset by peer]
aagdbl has quit [Quit: This computer has gone to sleep]
elimS has quit []
elimS has joined #ruby
DaniG2k has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
jmeeuwen has joined #ruby
bnjamin has quit [Remote host closed the connection]
<bgy> in capistrano 2 i used to do something like `set (:deploy_to) { "/var/www/#{webroot}" }` then in my stages (multistage extension) I did `set :webfoot, "foobar.com"` but I'm not able to get similar behavior in capistrano 3, any ideas?
<bgy> in capistrano 2 i used to do something like `set (:deploy_to) { "/var/www/#{webroot}" }` then in my stages (multistage extension) I did `set :webfoot, "foobar.com"` but I'm not able to get similar behavior in capistrano 3, any ideas?
<bgy> (oops)
bnjamin has joined #ruby
rudisimo has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 240 seconds]
codeFiend has quit [Quit: codeFiend]
rudisimo has joined #ruby
yeticry has joined #ruby
m1lt0n has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
dblessing has joined #ruby
davidcollom_afk is now known as davidcollom
m1lt0n has quit [Read error: Connection reset by peer]
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
mjs2600 has joined #ruby
ndrei has joined #ruby
Megtastique has joined #ruby
plexus_ has quit [Ping timeout: 264 seconds]
bnjamin has quit [Ping timeout: 253 seconds]
JasmeetQA has quit [Ping timeout: 253 seconds]
kirun has joined #ruby
guilleiguaran has joined #ruby
rudisimo has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Quit: Leaving...]
srji has joined #ruby
xbob has joined #ruby
datreh has quit [Remote host closed the connection]
rahult is now known as rahult_
rahult_ is now known as rahult
grvgr has joined #ruby
griffindy has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
srji_ has quit [Ping timeout: 252 seconds]
DaniG2k has quit [Quit: leaving]
aryaching has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
datreh has joined #ruby
tjr9898 has joined #ruby
yasushi has joined #ruby
joelroa has joined #ruby
phansch has joined #ruby
bnjamin has joined #ruby
bgy has quit [Changing host]
bgy has joined #ruby
nateberkopec has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
gaussblurinc has quit [Quit: Leaving.]
nateberkopec has quit [Client Quit]
browndawg has quit [Quit: Leaving.]
vindictive27 has joined #ruby
dkamioka has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
Tomasso has joined #ruby
marr has quit []
relix has joined #ruby
RaCx has joined #ruby
bnjamin has quit [Remote host closed the connection]
larissa has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Matriks has joined #ruby
dkamioka has quit [Remote host closed the connection]
mneorr has joined #ruby
jmoeller has quit []
rmorello has joined #ruby
m00nlight has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparrovv has quit [Remote host closed the connection]
danshultz has joined #ruby
jmoeller has joined #ruby
<Tomasso> does exist some type of hash structure on which the lookup process is based on a search algorithm of string proximity in terms of amount of operations? I mean suppose there is myhash = { :this_is_key_1 => "Hello World", :this_is_key_222 => "Hello World 2" } and somebody says myhash[:this_is_key_] a normal hash would return nil, but5 the one I pretend sould return the first matching key]s }
corehook has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 240 seconds]
corehook has joined #ruby
corehook has quit [Client Quit]
<Tomasso> as if it were that levenshtein algorithm on keys instead of an exact matching to locate the value
vindictive27 has quit [Quit: vindictive27]
ikaros has joined #ruby
casheew_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
jmoeller has quit [Client Quit]
<apeiros> Tomasso: not in core/stdlib
makara has quit [Ping timeout: 240 seconds]
<Tomasso> mm but have you ever seen or used something like that?
OdNairy has joined #ruby
<apeiros> I have, but not in an efficient manner.
sailias has joined #ruby
<apeiros> myhash.min_by { |k,v| distance(k, search_key) }
bal has quit [Quit: bal]
<apeiros> back then it was in perl, but that's more or less the "algorithm" I used
<workmad3> Tomasso: the question is - would you want fuzzy string matching, or just substring matching? what you described was substring matching, but then you mentioned levenshtein, which can be used for fuzzy string matching :)
toretore has joined #ruby
<Tomasso> because I want my applications to understand multiple formats, and if one of the keys is written differently it crashes.. i want it to locate the desired vallue even if it is found in a differen way
<apeiros> Tomasso: note that some dbs provide such search features
<apeiros> Tomasso: this is for human searches, right?
<apeiros> because otherwise it sounds like a horrible idea.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
breakingthings has joined #ruby
<Tomasso> yeah.. i mean fuzzy matching..sorry for the example
skaflem has joined #ruby
AlSquirrel has joined #ruby
nowthatsamatt has joined #ruby
freerobby has joined #ruby
Xeago_ has joined #ruby
<Tomasso> mm not for humans only.. there are people not respecting my json formats, and some other team that gets data,, their scripts produce data that is not always structured,, and thus i have to modify client code for that else i will get nil
stryek has joined #ruby
<apeiros> also, beware that levenshtein quickly degrades your result quality. e.g. the diff between World and Wall is only 3
sk87 has joined #ruby
meatherly has quit []
<apeiros> Tomasso: that is indeed a *horrible* idea. seriously, don't do that.
<apeiros> there's not just dragons down that path.
jmoeller has joined #ruby
<apeiros> if users of your API use it wrongly, give them the exception they deserve.
babilen has left #ruby [#ruby]
<workmad3> Tomasso: always, always, *always* normalise the incoming data into a homogenous format, don't store data in a heterogenous format
<apeiros> anything else is madness.
gaussblurinc has joined #ruby
<workmad3> and yes, throw errors
<Tomasso> so better to bother the other people to make the release good json
v0n has joined #ruby
<apeiros> absolutely.
DeanH has joined #ruby
datreh has quit [Quit: Computer has gone to sleep.]
<apeiros> you don't fix bugs by accepting them.
Xeago has quit [Ping timeout: 264 seconds]
_Cody has quit [Ping timeout: 240 seconds]
_bart has joined #ruby
tolstoi has quit [Ping timeout: 245 seconds]
pigzzcanfly has joined #ruby
tolstoi has joined #ruby
tolstoi has quit [Changing host]
tolstoi has joined #ruby
Azulinho has joined #ruby
evenix has joined #ruby
dik_dak has joined #ruby
Kricir has joined #ruby
jmoeller has quit []
meatherly has joined #ruby
fridim__ has joined #ruby
<workmad3> apeiros: but you get your bug-count down by marking them as 'expected behaviour' ;)
retnuh has joined #ruby
ffranz has joined #ruby
AdmirableSnackba has joined #ruby
sambao21 has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
Tomasso has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
LadyRainicorn has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
zachallett has joined #ruby
zz_jrhorn424 is now known as jrhorn424
evenix has quit [Remote host closed the connection]
foredoomed has joined #ruby
evenix has joined #ruby
tonni has quit [Remote host closed the connection]
sriehl_ is now known as sriehl
Kneferilis has joined #ruby
IceyEC has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
evenix has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
RaCx has joined #ruby
doodlehaus has joined #ruby
codabrink has joined #ruby
habanany has joined #ruby
RaCx has quit [Client Quit]
kpshek has quit []
doodlehaus has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 240 seconds]
fijimunkii has joined #ruby
jmau5 has joined #ruby
Macaveli has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
ohwhoa has joined #ruby
doodlehaus has joined #ruby
lyanchih has joined #ruby
eka has joined #ruby
enebo has joined #ruby
Azulinho has quit [Ping timeout: 252 seconds]
ffranz has quit [Quit: Leaving]
dingus_khan has joined #ruby
foredoomed has quit [Quit: foredoomed]
kevind has joined #ruby
ffranz has joined #ruby
BWStearn1 has quit [Ping timeout: 272 seconds]
meatherly has quit [Remote host closed the connection]
Stalkr^ has joined #ruby
pablovilas has joined #ruby
meatherly has joined #ruby
axl_ has quit [Quit: axl_]
nomenkun has joined #ruby
Hanmac1 has joined #ruby
Guest75679 has quit [Quit: Leaving]
cloud|nix has quit [Quit: Ex-Chat]
dingus_khan has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
xbob has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
ItSANg___ has quit [Read error: Connection reset by peer]
ItSANgo_ has joined #ruby
meatherly has quit [Ping timeout: 272 seconds]
tonni has joined #ruby
xbob has joined #ruby
jeregrine has joined #ruby
<apeiros> workmad3: you mean by doing s/bug/feature/?
kpshek has joined #ruby
joelroa has joined #ruby
jobewan has joined #ruby
<workmad3> apeiros: yup
geopet has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
oso|away has quit [Ping timeout: 240 seconds]
kukyakya_ has joined #ruby
fedesilva has joined #ruby
jtdowney has joined #ruby
sski has quit [Remote host closed the connection]
momomomomo has joined #ruby
figgleberry has joined #ruby
sski has joined #ruby
glebm has joined #ruby
jmau5 has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 240 seconds]
<glebm> I appreciate if you guys can upvote: I18n management is broken, here is a fix with static analysis @ https://news.ycombinator.com/newest
workmad3 has quit [Ping timeout: 240 seconds]
glebm has quit [Quit: Textual IRC Client: www.textualapp.com]
glebm has joined #ruby
<glebm> Thanks
cloud|nix has joined #ruby
jetblack has joined #ruby
chrisseaton has quit []
aryaching has quit [Ping timeout: 240 seconds]
<apeiros> glebm: saw your post about i18n-tasks on rubyflow. wanted to talk to you anyway. we work on something which is probably similar.
<glebm> apeiros: hi
workmad3 has joined #ruby
<apeiros> can't talk right now, though, too much work :(
gaussblurinc has quit [Quit: Leaving.]
<glebm> apeiros: feel free to drop an email to glex.spb@gmail.com if anything
lw has quit [Quit: s]
<glebm> apeiros: and please upvote :)
sski has quit [Ping timeout: 265 seconds]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluenemo has quit [Remote host closed the connection]
mansi has joined #ruby
grotr has joined #ruby
LGBTRubyist has quit [Ping timeout: 240 seconds]
lw has joined #ruby
terence has quit [Quit: Page closed]
<apeiros> when my mental state is back to something sane :-S
xerox357 has joined #ruby
Lucky_Red has joined #ruby
grotr has left #ruby [#ruby]
xbob has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
jmau5 has joined #ruby
datreh has joined #ruby
heftig has joined #ruby
mikepack has joined #ruby
ikaros has quit [Quit: Ex-Chat]
mansi has quit [Ping timeout: 272 seconds]
existensil_ is now known as existensil
vaktpost has joined #ruby
xbob has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ikaros has joined #ruby
jackneill has joined #ruby
datreh has quit [Ping timeout: 240 seconds]
mneorr has quit [Ping timeout: 264 seconds]
scttnlsn has quit [Ping timeout: 264 seconds]
mikepack has quit [Ping timeout: 240 seconds]
npearson has joined #ruby
datreh has joined #ruby
mansi has joined #ruby
doodleha_ has joined #ruby
AlSquirikou has joined #ruby
ringaroses1 has joined #ruby
fella6s has joined #ruby
monkegji_ has joined #ruby
toertore has joined #ruby
doodlehaus has quit [Ping timeout: 272 seconds]
oso|away has joined #ruby
kung has joined #ruby
_HolyCow1 has joined #ruby
oso|away is now known as oso96_2000
apeiros_ has joined #ruby
luke has joined #ruby
shredding has quit [Quit: shredding]
aaronmcada has joined #ruby
danshult_ has joined #ruby
yfeldblum has joined #ruby
luke is now known as Guest5666
davedev2_ has joined #ruby
jjbohn has joined #ruby
zumba_addict has joined #ruby
spider-mario_ has joined #ruby
pigzzcanfly has joined #ruby
lolmaus_ has joined #ruby
datreh has quit [Ping timeout: 240 seconds]
r0bby has joined #ruby
eregon_ has joined #ruby
george2|chakra has joined #ruby
sivoais has joined #ruby
noname001__ has joined #ruby
leonidlm has joined #ruby
lw has quit [Quit: s]
spider-mario has quit [Disconnected by services]
Derander_ has joined #ruby
blueOxigen has joined #ruby
agjacome_ has joined #ruby
cina has joined #ruby
npearson has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
relix_ has joined #ruby
olivier_bK1 has joined #ruby
Matriks has quit [Remote host closed the connection]
workmad3_ has joined #ruby
datreh has joined #ruby
DefV_ has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
TripleDE1 has joined #ruby
rdark_ has joined #ruby
npearson has joined #ruby
jqyklb has joined #ruby
jenskarlsen_ has joined #ruby
ohwhoa_ has joined #ruby
sriehl_ has joined #ruby
Matriks has joined #ruby
doodleha_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
momomomomo has quit [Quit: momomomomo]
pigzzcanfly has quit [Ping timeout: 272 seconds]
datreh_ has joined #ruby
andredie` has joined #ruby
xargoon_ has joined #ruby
oetjenj_ has joined #ruby
BWStearn1 has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
spider-mario_ has quit [Remote host closed the connection]
bahar_ has joined #ruby
flagg0204_ has joined #ruby
doodlehaus has joined #ruby
nilsove1 has joined #ruby
ikaros has quit [*.net *.split]
heftig has quit [*.net *.split]
workmad3 has quit [*.net *.split]
tonni has quit [*.net *.split]
ohwhoa has quit [*.net *.split]
AlSquirrel has quit [*.net *.split]
toretore has quit [*.net *.split]
danshultz has quit [*.net *.split]
relix has quit [*.net *.split]
phansch has quit [*.net *.split]
cburyta_ has quit [*.net *.split]
mourest has quit [*.net *.split]
tvw has quit [*.net *.split]
prc has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
predator117 has quit [*.net *.split]
monkegjinni has quit [*.net *.split]
ringaroses has quit [*.net *.split]
davedev24 has quit [*.net *.split]
jprovazn has quit [*.net *.split]
agjacome has quit [*.net *.split]
lolmaus has quit [*.net *.split]
kate_r has quit [*.net *.split]
aaronmcadam has quit [*.net *.split]
barratt has quit [*.net *.split]
eregon has quit [*.net *.split]
jxport has quit [*.net *.split]
TripleDES has quit [*.net *.split]
rdark has quit [*.net *.split]
tedstriker has quit [*.net *.split]
olivier_bK has quit [*.net *.split]
aganov has quit [*.net *.split]
apeiros has quit [*.net *.split]
fella5s has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
george2 has quit [*.net *.split]
chinkung has quit [*.net *.split]
absolutezeroff has quit [*.net *.split]
sriehl has quit [*.net *.split]
nilsove has quit [*.net *.split]
_HolyCow has quit [*.net *.split]
linduxed has quit [*.net *.split]
malcolmva has quit [*.net *.split]
__noname001__ has quit [*.net *.split]
jaimef has quit [*.net *.split]
bahar has quit [*.net *.split]
froy has quit [*.net *.split]
Derander has quit [*.net *.split]
zarul has quit [*.net *.split]
DefV has quit [*.net *.split]
andredieb has quit [*.net *.split]
xargoon has quit [*.net *.split]
Jelco has quit [*.net *.split]
jenskarlsen has quit [*.net *.split]
oetjenj has quit [*.net *.split]
oetjenj_ is now known as oetjenj
Derander_ is now known as Derander
spyderman4g63 has quit []
datreh has quit [Ping timeout: 264 seconds]
workmad3_ is now known as workmad3
george2|chakra is now known as george2
predator117 has joined #ruby
existensil has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
bahar_ is now known as bahar
xargoon_ is now known as xargoon
andredie` is now known as andredieb
Matriks has quit [Ping timeout: 274 seconds]
_HolyCow1 is now known as _HolyCow
jenskarlsen_ is now known as jenskarlsen
andredieb has quit [Changing host]
andredieb has joined #ruby
DaniG2k has joined #ruby
andy has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
Jelco has joined #ruby
_Cody has joined #ruby
datreh_ has quit [Ping timeout: 240 seconds]
makerops has joined #ruby
<makerops> what is the difference between || and or
<cout> precedence
jaimef has joined #ruby
<makerops> and why would one work in (or), and one not work ||
<makerops> cout, how so?
cburyta has joined #ruby
<cout> || has higher precedence than or
r0bby has quit [Ping timeout: 264 seconds]
<makerops> can you explain, im not following
tonni has joined #ruby
<makerops> 1 == 1 || 2== 1 why wouldnt that return false no matter if its || or or
<makerops> sorry* true
evenix has joined #ruby
<jhass> foo bar or baz isn't the same as foo bar || baz
<jhass> if foo is a method
<makerops> what if they are ust comparisons
datreh_ has joined #ruby
<makerops> one ecah side
<LadyRainicorn> If this is ever an issue, your code sucks.
absolutezeroff has joined #ruby
<makerops> not my code, the authority gem
<makerops> spend about an hour trying to figure out why or works, but not ||
<LadyRainicorn> makerops: 1 == (1 || 2) == 1
<LadyRainicorn> vs
cina has quit [Quit: leaving]
doodlehaus has quit [Ping timeout: 268 seconds]
<LadyRainicorn> (1 == 1) or (2 == 1)
aganov has joined #ruby
froy has joined #ruby
glebm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryanfrancis has joined #ruby
jprovazn has joined #ruby
zarul has joined #ruby
mengu has quit []
chipotle_ has quit [Ping timeout: 241 seconds]
ikaros has joined #ruby
linduxed has joined #ruby
mlpinit has quit [Remote host closed the connection]
malcolmva has joined #ruby
sdouglas has joined #ruby
heftig has joined #ruby
phansch has joined #ruby
mlpinit has joined #ruby
lfox has joined #ruby
prc has joined #ruby
lw has joined #ruby
niftyn8 has joined #ruby
crystal77 has joined #ruby
tedstriker has joined #ruby
vlad_starkov has joined #ruby
mlpinit has quit [Remote host closed the connection]
DropsOfSerenity has joined #ruby
mlpinit has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
meatherly has joined #ruby
napcae has quit [Quit: Lost terminal]
jlast has joined #ruby
lw has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
datreh_ has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
napcae has joined #ruby
pigzzcanfly has joined #ruby
greenarrow has joined #ruby
jxport has joined #ruby
tommyvyo__ has joined #ruby
Hanmac has joined #ruby
datreh_ has joined #ruby
phutch1ns has joined #ruby
AlexRussia has joined #ruby
armyriad has quit [Ping timeout: 272 seconds]
Hanmac1 has quit [Ping timeout: 272 seconds]
fantazo has joined #ruby
prc has quit [Ping timeout: 264 seconds]
armyriad has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
rm_ has joined #ruby
gaussblurinc has joined #ruby
mlpinit has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
marcdel has joined #ruby
jmau5 has quit [Remote host closed the connection]
figgleberry has quit [Ping timeout: 240 seconds]
pigzzcanfly has quit [Ping timeout: 272 seconds]
axl_ has joined #ruby
datreh_ has quit [Ping timeout: 240 seconds]
jmau5 has joined #ruby
lmickh has joined #ruby
blackmesa has joined #ruby
glebm has joined #ruby
existensil has joined #ruby
SCommette has joined #ruby
yourmysin has quit [Read error: Connection reset by peer]
sriehl_ is now known as sriehl
lfox has quit []
vlad_sta_ has quit [Ping timeout: 240 seconds]
forced_request has joined #ruby
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
marcdel has quit [Ping timeout: 272 seconds]
jmau5 has quit [Ping timeout: 240 seconds]
JasmeetQA has joined #ruby
JasmeetQA has quit [Client Quit]
rayners has joined #ruby
marcdel has joined #ruby
snath has quit [Ping timeout: 265 seconds]
jmau5 has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
lfox has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
Parker0 has joined #ruby
chipotle has joined #ruby
abstractj has quit [Disconnected by services]
abstractj has joined #ruby
joelbrewer has joined #ruby
Kelgors has quit []
<joelbrewer> hey, quick refactor question: https://gist.github.com/JahBrewski/9252720
danshult_ has quit [Remote host closed the connection]
<joelbrewer> is there a way to avoid the nested if statements here?
abstractj has quit [Disconnected by services]
abstractj has joined #ruby
jmau5 has quit [Read error: Connection reset by peer]
JBreit has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
danshultz has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
jmau5 has joined #ruby
Celm has joined #ruby
<jhass> not worth it, leave it that way
danshultz has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
joelroa has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
danshultz has joined #ruby
<jhass> you'd have to duplicate checks, which is worse than a simple nested if
<jhass> or resort to something like return action if condition where you use return only for control flow and don't actually care about the return value, which is IMO also worse
<joelbrewer> jhass: gotcha. so a nested if isn't *always* bad?
shredding has joined #ruby
<jhass> nothing is always bad
Stalkr^ has quit [Quit: Linkinus - http://linkinus.com]
tonni has quit [Ping timeout: 264 seconds]
larsam has quit [Quit: larsam]
<joelbrewer> jhass: cool
<mikecmpbll> you could make the first line: render 'signed_out_home' and return unless signed_in?
Hanmac has quit [Ping timeout: 240 seconds]
_tpavel has quit [Quit: Leaving]
<mikecmpbll> early exit is an alternative to control flow with if/else
<jhass> I prefer to only do that for edge or error cases
<jhass> which is neither given here
mikesplain has joined #ruby
tesuji has quit [Ping timeout: 265 seconds]
lyanchih has quit [Quit: lyanchih]
razibog has quit [Ping timeout: 264 seconds]
garndt has joined #ruby
kevind_ has joined #ruby
lyanchih_ has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
Faris has joined #ruby
kitak has joined #ruby
joelroa has quit [Ping timeout: 272 seconds]
Hanmac has joined #ruby
<mikecmpbll> just an alternative, it's developer preference in the main though.
<jhass> ugh, I hate ternary (?) for control flow :P
<mikecmpbll> there's an error in it, actually. you'll need to enclose redirect_to's params in parens
<mikecmpbll> jhass: why? :)
<jhass> IMO it's for values
bogeyd6 has joined #ruby
TheLarkInn has joined #ruby
kevind has quit [Ping timeout: 265 seconds]
kevind_ is now known as kevind
<jhass> foo = condition ? 'a' : 'b'
<mikecmpbll> it's for whatever it can be for
thumpba has joined #ruby
abstractj has quit [Disconnected by services]
<joelbrewer> mikecmpbll: thanks for the alternative
chrisseaton has joined #ruby
<mikecmpbll> gets icky when you nest them, or if you're doing more than returning a single value or calling a method
abstractj has joined #ruby
thomasxie has quit [Quit: Leaving.]
jonah_k has joined #ruby
<jhass> as you said preference, I try to assign redundant language features additional subtext about the intent. Like many do with do / end vs { / } for blocks for example
Celm has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonni has joined #ruby
kitak has quit [Ping timeout: 250 seconds]
dorei has joined #ruby
<jhass> also ? is IMO more refactor/extension resistant since you have to expand it to an if / else again if you want to add a statement to a branch
<workmad3> jhass: do you follow the one-line vs. multiline rule or weiricks rule?
<jhass> which happens quite frequently with control flow in my experience
xerox357_ has joined #ruby
<mikecmpbll> oh, what an arduous task :)
<joelbrewer> workmad3: what are those? I've never heard of them.
<jhass> workmad3: weiricks rule is "I care about the return value of the block"? If so yes, mostly
thumpba has quit [Ping timeout: 240 seconds]
<workmad3> jhass: yeah, although I think I got the spelling wrong
DropsOfSerenity has joined #ruby
<jhass> I kinda extended it to chaining though
<jhass> so I use { } for tap too
rmorello has quit [Quit: Textual IRC Client: www.textualapp.com]
mneorr has joined #ruby
<jhass> and I guess sometimes I use { } for single liners, most of the time I'll give it its three lines with do end though
21WACH657 has joined #ruby
DropsOfSerenity has quit [Client Quit]
tonni has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
<apeiros_> weiricks rules++
xerox357 has quit [Ping timeout: 265 seconds]
<apeiros_> *rule
VTLob has joined #ruby
<apeiros_> also correlates nicely with chaining and dsl use
<mikecmpbll> what is this rule?
<mikecmpbll> and who
<apeiros_> 17:03 jhass: workmad3: weiricks rule is "I care about the return value of the block"? If so yes, mostly
<certainty> citation needed
Azulinho has joined #ruby
<mikecmpbll> what
<certainty> weiricks rule
<workmad3> weirich* (I did get the spelling wrong)
<apeiros_> already wondered
<mikecmpbll> the late jim weirich?
<apeiros_> so jim's rule then
<workmad3> yup
thumpba has joined #ruby
DouweM_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<certainty> i see. Thanks
<certainty> i follow that one
<apeiros_> citation
Rickmasta has quit [Ping timeout: 252 seconds]
<certainty> apeiros_: yeah found it
<apeiros_> WHY DO I HAVE A TAIL? FREENODE?!?
apeiros_ is now known as apeiros
vlad_starkov has joined #ruby
DropsOfSerenity has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
DouweM has quit [Ping timeout: 240 seconds]
mneorr has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
rudisimo has joined #ruby
kevind has quit [Quit: kevind]
jjbohn has quit [Quit: Leaving...]
Rickmasta has joined #ruby
kevind has joined #ruby
wallerdev has joined #ruby
xbob has quit []
gaussblurinc has quit [Quit: Leaving.]
cina has joined #ruby
thumpba has quit [Ping timeout: 264 seconds]
danshultz has quit [Remote host closed the connection]
mikepack has joined #ruby
lw has joined #ruby
xbob has joined #ruby
nari has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
rmorello has joined #ruby
Scientz has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
petey has joined #ruby
razibog has joined #ruby
tgkokk has quit [Quit: Textual IRC Client: www.textualapp.com]
ada2358_ has quit [Ping timeout: 264 seconds]
mbuf has joined #ruby
makerops has left #ruby ["Leaving"]
danshult_ has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
radic has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
npearson has quit [Remote host closed the connection]
<mbuf> is there an example of a multi-threaded ruby server that can also make requests to clients and pass information between them?
<mbuf> that are connected to the server
npearson has joined #ruby
npearson has quit [Remote host closed the connection]
npearson has joined #ruby
yubrew has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
noopq has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
S0da has joined #ruby
antroy has quit [Quit: Page closed]
RaCx has quit [Quit: Computer has gone to sleep.]
gja has quit [Quit: This computer has gone to sleep]
aces1up9939 has quit []
marcgg has quit [Remote host closed the connection]
radic has joined #ruby
marcgg has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<certainty> mbuf: what do you mean by "make requests to clients"?
Macaveli has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
ada2358 has joined #ruby
pigzzcanfly has joined #ruby
hamakn has joined #ruby
<rdark_> mbuf: you mean something like http://en.wikipedia.org/wiki/Actor_model ?
Astralum has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
grvgr has quit [Quit: grvgr]
lw has quit [Read error: Connection reset by peer]
_Cody has quit [Ping timeout: 265 seconds]
koell has quit [Ping timeout: 240 seconds]
lw has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
figgleberry has joined #ruby
apeiros has quit [Remote host closed the connection]
armyriad has joined #ruby
jmau5 has quit [Remote host closed the connection]
xerox357_ has quit [Remote host closed the connection]
apeiros has joined #ruby
jmau5 has joined #ruby
xerox357 has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
ctp_ has joined #ruby
ctp_ has quit [Client Quit]
sambao21 has quit [Read error: Connection reset by peer]
moeSeth_ has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
xerox357_ has joined #ruby
sriehl has left #ruby [#ruby]
alexju has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
xerox357 has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
jmau5 has quit [Ping timeout: 272 seconds]
ctp has quit [Ping timeout: 272 seconds]
jonah_k has quit [Remote host closed the connection]
koell has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
snath has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has quit [Quit: Quitting]
d-snp_ is now known as d-snp
dangerousdave has joined #ruby
kirun_ has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
r0bby has joined #ruby
gbt has quit [Quit: Leaving...]
Hanmac has quit [Ping timeout: 240 seconds]
kirun has quit [Ping timeout: 272 seconds]
SCommette has quit [Quit: SCommette]
crystal77 has joined #ruby
<shevy> damn, didn't know Weirich is no longer among us
jkamenik has joined #ruby
philcrissman has joined #ruby
abstractj has quit [Quit: See ya!]
jonah_k has joined #ruby
shashin has quit [Quit: shashin]
tommyvyo__ is now known as tommyvyo
endless_walrus has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
kevind has quit [Quit: kevind]
LGBTRubyist has joined #ruby
CaptainJet has joined #ruby
jonno11 has joined #ruby
r0bby has quit [Excess Flood]
kukyakya has quit [Ping timeout: 272 seconds]
TMM has quit [Quit: Ex-Chat]
jmau5 has joined #ruby
r0bby has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Quit: Ex-Chat]
Matriks has joined #ruby
tagrudev has quit [Remote host closed the connection]
mikepack_ has joined #ruby
joelroa has joined #ruby
maxiujun has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
<mbuf> certainty, something like a monitoring server that needs to check status of devices connected in a network
abstractj has joined #ruby
malkomalko has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
<mbuf> certainty, and if clients request information from the Ruby server about these devices, it must provide the same
aganov has quit [Quit: Leaving]
jmau5 has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
jmau5 has joined #ruby
user258467 has quit [Read error: Connection reset by peer]
IceDragon has quit [Read error: No route to host]
jkassemi has joined #ruby
sdouglas has quit [Remote host closed the connection]
Matriks has quit [Ping timeout: 240 seconds]
<toertore> mbuf: there are a number of ways to do what you want; the implementation will depend on the details and your personal preference
<toertore> for communicating between threads you could use queues
petey_ has joined #ruby
<mbuf> toertore, are there existing examples that I can refer?
jmau5_ has joined #ruby
joelroa has quit [Ping timeout: 272 seconds]
xbob has quit []
<toertore> not that i know of..
IceDragon has joined #ruby
mikepack_ has quit [Ping timeout: 269 seconds]
gja has quit [Quit: This computer has gone to sleep]
<certainty> shevy: yeah, it's sad. We've been talking about it here the day it happened
petey__ has joined #ruby
<shevy> man, I didn't notice anything this month
<mbuf> toertore, I am looking for network monitoring
<toertore> that is a broad topic
petey has quit [Ping timeout: 240 seconds]
jmau5 has quit [Ping timeout: 265 seconds]
shadoi has joined #ruby
Solnse has joined #ruby
<mbuf> toertore, are there examples for Actor model implementation in Ruby?
petey__ has quit [Read error: Connection reset by peer]
<toertore> celluloid
<toertore> you should also consider using eventmachine
<shevy> cellulitis
<toertore> it would be pretty straight forward
petey has joined #ruby
pietr0 has joined #ruby
kcombs has joined #ruby
bleak has joined #ruby
Hobogrammer has joined #ruby
npearson_ has joined #ruby
marcdel has quit []
kpshek has quit []
petey_ has quit [Ping timeout: 272 seconds]
IceDragon has quit [Ping timeout: 264 seconds]
IceDragon has joined #ruby
terrellt has quit [Ping timeout: 246 seconds]
<certainty> chicken-install
phansch has joined #ruby
<certainty> bah
<toertore> ERR: chicken ran away
npearson has quit [Ping timeout: 272 seconds]
<shevy> hmm
<shevy> it does not want you to eat it
pigzzcanfly has joined #ruby
tolstoi has quit [Remote host closed the connection]
kpshek has joined #ruby
Valesk has joined #ruby
_Cody has joined #ruby
mneorr has joined #ruby
fedesilv_ has joined #ruby
ryanuber has left #ruby [#ruby]
maxiujun has quit [Quit: WeeChat 0.4.3]
pigzzcan_ has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
pigzzcan_ has quit [Read error: Connection reset by peer]
fedesilva has quit [Read error: No route to host]
cburyta has quit []
pigzzcanfly has quit [Read error: Connection reset by peer]
fedesilva has joined #ruby
pigzzcan_ has joined #ruby
<shevy> today I think I noticed something weird
<shevy> you can define ... def self.[](i)
<shevy> ok but...
apeiros has joined #ruby
<shevy> Foo['bla'] { :hmm => 'yeah' }
<shevy> when I use that, I can not pass a block like that right?
<shevy> whereas Foo.new('bla') { :hmm => 'yeah' }
<shevy> should work fine
shredding has quit [Quit: shredding]
kaliya has quit [Quit: Lost terminal]
<shevy> hmm
<shevy> or perhaps not
npearson_ has quit [Ping timeout: 272 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
mneorr has quit [Ping timeout: 240 seconds]
<shevy> Foo.new('bla') { {:hmm => 'yeah'} }
slowcon has joined #ruby
<shevy> now it works
SHyx0rmZ has joined #ruby
mbuf has quit [Quit: Leaving]
aloitius_ has joined #ruby
<slowcon> morning guys
Hanmac has joined #ruby
thumpba has joined #ruby
frem has joined #ruby
davidcollom is now known as davidcollom_
sambao21 has joined #ruby
olivier_bK1 has quit [Quit: Quitte]
lotherk has quit [Ping timeout: 240 seconds]
<aloitius_> So, Savon: returns an array of hashes when there are multiple items in an XML node, and a hash when there's only one? (Not, say, an array of one hash.)
krz has joined #ruby
pel_daniel has joined #ruby
lotherk has joined #ruby
lfox has quit [Quit: ZZZzzz…]
sambao21 has quit [Client Quit]
fedesilva has quit [Read error: Connection reset by peer]
Xeago_ has quit [Read error: Connection reset by peer]
fedesilva has joined #ruby
yfeldblum has joined #ruby
havenwood has joined #ruby
Xeago has joined #ruby
pigzzcan_ has quit [Remote host closed the connection]
sdouglas has joined #ruby
Robbo_ has joined #ruby
kzrl has joined #ruby
<Robbo_> I am using middleman-blog gem, can I extend that in some way? fairly new to ruby so asking noob questions
joelbrewer has quit [Ping timeout: 240 seconds]
<Robbo_> I assume I can just extend like any other language and have middleman point to my gem?
sailias has quit [Ping timeout: 240 seconds]
<jhass> aloitius_: that's said, I usually work around that by doing [*bla].each do |item|
<jhass> *sad
yasushi has quit [Remote host closed the connection]
lolmaus_ has quit [Ping timeout: 265 seconds]
xbob has joined #ruby
klaut has quit [Remote host closed the connection]
andy has quit [Quit: Leaving...]
aspires has joined #ruby
Honsby has joined #ruby
sikor_sxe has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<aloitius_> jhass: [*sad]? Oh, you use a splat?
jmau5_ has quit [Remote host closed the connection]
pwh has quit []
jmau5 has joined #ruby
<jhass> if the API I'm using is inconsistent in that regard (sometimes returning an array, sometimes not), I do, yes
andy has joined #ruby
x1337807x has quit [Client Quit]
cloud|nix has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
lethjakman has joined #ruby
JBreit has joined #ruby
yfeldblum has joined #ruby
<aloitius_> jhass: Well, the XML I'm getting back is always structured the same. <parent><item><item<item></parent> but sometimes I just get back <parent><item</parent>--and Savon seems to flatten that.
soulcake has quit [Ping timeout: 240 seconds]
<aloitius_> Unless I'm doing something else wrong.
gja has quit [Quit: This computer has gone to sleep]
DropsOfS_ has joined #ruby
<jhass> I don't know Savon but IMO it's inconsistent behavior
dumdedum has quit [Quit: foo]
malkomalko has quit []
soulcake has joined #ruby
pigzzcanfly has joined #ruby
jmau5 has quit [Ping timeout: 265 seconds]
zachallett has quit [Remote host closed the connection]
<aloitius_> jhass: 'tis indeed. The only things I found on the 'net about it say it's because Savon doesn't know WSDL data types, so it's just passing back based on what gets returned at any moment.
rbartos has joined #ruby
jtdowney has quit []
DropsOfSerenity has quit [Ping timeout: 264 seconds]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
razrunelord has joined #ruby
RaCx has joined #ruby
<bcavileer> aloitius_: thanks for that tip, I've seen other inconsistent apis like Net::LDAP results
mrnugget has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
grvgr has joined #ruby
r0bby has quit [Write error: Connection reset by peer]
xerox357_ has quit [Remote host closed the connection]
xerox357 has joined #ruby
<aloitius_> bcavalier: Hope it saves you some time!
glaksmono_ has joined #ruby
<bcavileer> Time and a few lines of code iirc
timonv has quit [Remote host closed the connection]
nvrch has quit [Quit: nvrch]
momomomomo has quit [Quit: momomomomo]
bahar has quit [Changing host]
bahar has joined #ruby
meatherly has quit []
barratt has joined #ruby
barratt has quit [Remote host closed the connection]
momomomomo has joined #ruby
xbob has quit []
sambao21 has joined #ruby
hiyosi has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
pushpak has joined #ruby
meatherly has joined #ruby
matchaw has quit [Ping timeout: 241 seconds]
xbob has joined #ruby
pablovilas has quit [Quit: Leaving]
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aloitius_> Now...how to fix...I've got a hash of "response[:parent][:subhead][:entry]" where entry can be either an array of hashes or just a hash. Can't seem to figure out how to apply splat here...
yfeldblum has quit [Ping timeout: 272 seconds]
<jhass> [*response[:parent][:subhead][:entry]]
xerox357 has quit [Remote host closed the connection]
<aloitius_> jhass: Getting a syntax error.
xerox357 has joined #ruby
<aloitius_> Wait...duh...
ohwhoa_ has quit [Quit: woah!]
Guest5666 has quit [Ping timeout: 265 seconds]
nouitfvf has joined #ruby
npearson has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
binaryhat has joined #ruby
<aloitius_> jhass: Ahhh. Not what I'm looking for. That turns my hash into an array, as opposed to turning my hash into the first element of a single-item array. (That's the issue: Savon gives me an array of hash when the return has more than one, but just a hash if there's only one.)
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has joined #ruby
greenarrow has quit [Quit: 500]
<jhass> >> a = {}; b = [{}, {}]; [[*a], [*b]]
<eval-in___> jhass => [[], [{}, {}]] (https://eval.in/106540)
Celm has quit [Remote host closed the connection]
<jhass> oh, hm, is that new?
Hamburglr has joined #ruby
xerox357 has quit [Ping timeout: 240 seconds]
<jhass> well, then [response[:parent][:subhead][:entry]].flatten(1)
mehlah has quit [Client Quit]
pwh has joined #ruby
jmau5 has joined #ruby
<TheLarkInn> yeah why not wrap what is returned in an array and then call .flatten
skaflem has quit [Quit: This computer has gone to sleep]
end_guy has joined #ruby
<TheLarkInn> so if it isn't already an array it will stay an array, if it is already flatten will remove the extra array brackets
<TheLarkInn> oh nevermind, that is identical to what jhass just said
<TheLarkInn> :-(
Azulinho has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
zachallett has joined #ruby
twiceaday has quit [Read error: Connection reset by peer]
napcae has quit [Quit: leaving]
napcae has joined #ruby
twiceaday has joined #ruby
jrhorn424 is now known as zz_jrhorn424
jgrevich has joined #ruby
roolo has quit [Quit: Leaving...]
jmau5_ has joined #ruby
cina has quit [Ping timeout: 240 seconds]
SegFaultAX has quit [Excess Flood]
pedda has joined #ruby
Celm has joined #ruby
xerox357 has joined #ruby
jmau5 has quit [Ping timeout: 240 seconds]
aspires has quit []
binaryhat has quit [Quit: Leaving]
npearson has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
larsam has joined #ruby
wjlafrance has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<shevy> is there a simple way to map "9" to "nine"?
npearson has joined #ruby
zz_jrhorn424 is now known as jrhorn424
roolo has joined #ruby
Heaplink has joined #ruby
<certainty> (format nil "~r" 9) ;=> nine
<certainty> scnr
v0n has quit [Ping timeout: 272 seconds]
<jhass> {9 => 'nine'}[9] scnr
<aloitius_> Thanks, guys, gonna try that.
pwh_ has joined #ruby
timonv has joined #ruby
monsieurp has quit [Quit: Lost terminal]
Hanmac has joined #ruby
SegFaultAX has joined #ruby
<certainty> >> def magic(*); "nine" end; magic(9)
<eval-in___> certainty => "nine" (https://eval.in/106543)
<certainty> *scnr*^2
shiftins has joined #ruby
razibog1 has joined #ruby
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joelroa has joined #ruby
<certainty> i believe wonado worked on something that did that
SCommette has joined #ruby
mercwithamouth has joined #ruby
aspires has joined #ruby
<certainty> shevy: also https://github.com/radar/humanize
jbueza has joined #ruby
jkamenik has quit [Quit: Leaving.]
razibog has quit [Ping timeout: 272 seconds]
jmau5_ has quit [Remote host closed the connection]
<havenwood> shevy: a gem
lfox has joined #ruby
pwh has quit [Ping timeout: 264 seconds]
browndawg has left #ruby [#ruby]
<havenwood> shevy: nothing in stdlib that i know of
Uranio has joined #ruby
<Uranio> sorry the Off-topic but, there is any FreeBSD user here?
momomomomo has quit [Quit: momomomomo]
* certainty avoids freebsd, but occasionally has to use it
<shevy> cool
<shevy> certainty I guess that does exactly what I needed
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> the name is odd though
LGBTRubyist has quit [Quit: Leaving]
<Uranio> certainty: please, could you showm a uname -a output?
sdouglas has quit [Remote host closed the connection]
monsieurp has joined #ruby
petey has quit [Ping timeout: 264 seconds]
<Uranio> shevy: hi...
<certainty> Uranio: nope, i'm not at work :)
joelroa has quit [Ping timeout: 272 seconds]
<shevy> Uranio hah
obs has quit [Quit: Konversation terminated!]
saarinen has joined #ruby
<shevy> Uranio switch to linux man
gja has joined #ruby
xerox357 has quit [Remote host closed the connection]
noopq has joined #ruby
<havenwood> shevy: oh, you mean just 9 really? heh, i assumed you wanted to map any number to English >.>
petey has joined #ruby
emptymag00 has joined #ruby
<Uranio> certainty: :-/ man... there is no one in ineternet, at less in google
crystal77 has quit [Quit: Computer has gone to sleep.]
<Uranio> QUÉ PORQUERíA!!!!!
mansi has quit [Read error: Connection reset by peer]
<Uranio> and the #freebsd user, have a big mistery with their uname -a output
kukyakya has joined #ruby
<Uranio> nobody wanna show me one, what is the danger
mansi has joined #ruby
einarj has quit [Remote host closed the connection]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fantazo has quit [Quit: Verlassend]
<shevy> havenwood well
<shevy> havenwood my current need case is to translate 1 up to about 30 to english words
John_John_ has joined #ruby
<shevy> I need to generate a bunch of long strings
mansi has quit [Read error: Connection reset by peer]
<shevy> "foo_bla_(30)" to "foo_bla_thirty"
subbyyy has joined #ruby
<Uranio> shevy: ??? what the matter?
<havenwood> shevy: require 'humanize'; include Humanize; 1.upto(30).map &:humanize
crystal77 has joined #ruby
<pipework> shevy: lul.
mansi has joined #ruby
<shevy> I am being humanized here :(
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
sailias has joined #ruby
kukyakya_ has quit [Remote host closed the connection]
<havenwood> shevy: gem
<shevy> I am being gemanized now
mocfive has joined #ruby
<shevy> soon I will be germanized, then I will /quit
<pipework> "Help, I'm being supressed!"
jkassemi has quit [Quit: jkassemi]
<pipework> shevy: Well, I was hoping for euthanized, but that'll work too.
tylersmith has joined #ruby
pranny has joined #ruby
<shevy> no
<shevy> euthanized is better than the above
xerox357 has joined #ruby
<shevy> humanize must have the longest constant I ever saw ... https://raw.github.com/radar/humanize/master/lib/cache.rb
jkassemi has joined #ruby
timonv_ has joined #ruby
figgleberry has quit [Ping timeout: 241 seconds]
<certainty> Uranio: try #freebsd
mneorr has joined #ruby
<certainty> dunno if that exists actually
davy has joined #ruby
<Uranio> certainty: yeah, from there I comming
<certainty> ah ok
<Uranio> NOBODY wanna drop a simple output
TorpedoSkyline has quit [Changing host]
TorpedoSkyline has joined #ruby
crystal77 has quit [Client Quit]
sailias has quit [Remote host closed the connection]
rmorello has joined #ruby
<shevy> hehe
hololeap has joined #ruby
<Uranio> looks like FreeBSD's uname come with some kind of mumbo-jumbo spell of silence
<shevy> Uranio, you need output of uname?
<Uranio> yes! from FreeBSD
sailias has joined #ruby
<Uranio> uname -a
<shevy> * ##freebsd :Cannot join channel (+r) - you need to be identified with services
<shevy> damn it
<shevy> stupid nazi channel
kevind has joined #ruby
figgleberry has joined #ruby
timonv has quit [Ping timeout: 241 seconds]
<Uranio> shevy: :-/ I can go inside
tedstriker has quit [Quit: Anti-Fraping status set.]
<shevy> I can't
<shevy> I am not on #ruby-lang because of that as well
<Uranio> shevy: and why not register?
aboudreault has quit [Ping timeout: 264 seconds]
<shevy> Uranio I am registered
<Uranio> oh...
<Uranio> another mistery
lethjakman has quit [Quit: WeeChat 0.4.0]
<Uranio> identified?
<shevy> no
<Uranio> your IRC client do not support startup commands?
tedstriker has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
peterhu has quit [Quit: leaving]
<shevy> dunno
peterhu has joined #ruby
<shevy> I am a minimalist
<Uranio> ctcp version?
<shevy> what is that
mneorr has quit [Ping timeout: 241 seconds]
<Uranio> minimalist almost always support it?
<shevy> I have a window and I type into it here
evilt0ne_work has quit [Quit: Lost terminal]
<shevy> anything more than that is luxury
<Uranio> OMG! what about irsii
<shevy> I mispaste with these clients a lot
<Uranio> powerfull por poor persons :D
sailias has quit [Ping timeout: 240 seconds]
<shevy> and I need to remember commands
21WACH657 has quit [Remote host closed the connection]
<Uranio> god bless you shild
Solnse has quit [Quit: Leaving.]
jonno11 has joined #ruby
larissa has quit [Ping timeout: 264 seconds]
ryanfrancis has quit [Quit: ryanfrancis]
gja has quit [Quit: This computer has gone to sleep]
sailias has joined #ruby
soheil has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
agarie has joined #ruby
gja has joined #ruby
aboudreault has joined #ruby
jmau5 has joined #ruby
blackmesa has joined #ruby
dangerousdave has joined #ruby
<kenichi> is there a way to get ruby-doc.org to parse latest gem source?
gja has quit [Client Quit]
rootshift has joined #ruby
sailias1 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
rootshift has quit [Remote host closed the connection]
kenneth has joined #ruby
yacks has quit [Quit: Leaving]
jlebrech has quit [Ping timeout: 256 seconds]
shedd has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
aspires has quit []
mlpinit has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
bean has joined #ruby
mattmcclure has joined #ruby
yfeldblum has joined #ruby
ndrei has joined #ruby
nomenkun has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
Rakden has joined #ruby
jkassemi has quit [Quit: jkassemi]
rbartos has quit [Remote host closed the connection]
jkassemi has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
braincrash has quit [Quit: bye bye]
deadlock has joined #ruby
jkassemi has left #ruby [#ruby]
jqyklb has quit [Remote host closed the connection]
nouitfvf has quit []
sailias has joined #ruby
razibog1 has quit [Ping timeout: 240 seconds]
jmau5 has quit [Remote host closed the connection]
tonni has joined #ruby
sailias1 has quit [Ping timeout: 240 seconds]
shadoi1 has joined #ruby
lw has quit [Quit: s]
rbartos has joined #ruby
jjbohn is now known as jjbohn|afk
braincrash has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
OdNairy has joined #ruby
timonv_ has quit [Remote host closed the connection]
tolstoi has joined #ruby
tolstoi has quit [Changing host]
tolstoi has joined #ruby
mehlah has joined #ruby
QKO has quit [Changing host]
QKO has joined #ruby
sailias1 has joined #ruby
jmau5 has joined #ruby
sailias1 has quit [Client Quit]
ikaros has quit [Quit: Ex-Chat]
kpshek has quit []
skaflem has joined #ruby
NovapaX has joined #ruby
ctp has joined #ruby
Es0teric has joined #ruby
miah has quit [Quit: DevOps? DerpOps maybe!]
Voodoofish430 has joined #ruby
Azulinho has joined #ruby
poguez_ has joined #ruby
miah has joined #ruby
jmau5 has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
aaronmcadam has joined #ruby
kpshek has joined #ruby
jmau5 has joined #ruby
moeSeth_ has quit [Quit: Connection closed for inactivity]
Xeago has quit [Remote host closed the connection]
jmau5 has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
agarie has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
agarie has joined #ruby
RaCx_ has joined #ruby
sailias has joined #ruby
blandflakes has quit [Ping timeout: 245 seconds]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
v0n has joined #ruby
rootshift has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Matriks has joined #ruby
RaCx has quit [Ping timeout: 264 seconds]
RaCx_ is now known as RaCx
aaronmcada has quit [Ping timeout: 265 seconds]
yarou has joined #ruby
gja has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
subbyyy has joined #ruby
aaronmcadam has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Remote host closed the connection]
jjbohn|afk is now known as jjbohn
mikepack_ has joined #ruby
codeFiend has quit [Quit: codeFiend]
starfox21 has joined #ruby
mehlah has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
decoponio has quit [Quit: Leaving...]
terrellt has joined #ruby
cina has joined #ruby
<aloitius_> OK, here's one: Idiom "for hash[x] = y if y"? Such that "hash[x]" will have a value if y exists, otherwise it won't exist in the hash? Or maybe I should just strip the nils at the end.
AlexRussia has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick> hash[x] &= y # i think
<pipework> aloitius_: I don't know what you're asking.
yfeldblum has quit [Remote host closed the connection]
Notte has joined #ruby
jcs222 has joined #ruby
<slash_nick> or &&=
<pipework> slash_nick: I think that'll just insert 'false'
yfeldblum has joined #ruby
mikecmpbll has joined #ruby
mikepack_ has quit [Ping timeout: 264 seconds]
<slash_nick> pipework: doh, you're right. that's not even close to right.
<pipework> &&= is correct though.
endless_walrus has quit [Quit: Textual IRC Client: www.textualapp.com]
crystal77 has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
craigp has joined #ruby
rubyracer has joined #ruby
jmau5 has joined #ruby
x77686d has joined #ruby
<certainty> >> h = { x: false }; h[:x] &&= :foo; h.inspect
<eval-in___> certainty => "{:x=>false}" (https://eval.in/106547)
<slash_nick> i think though it'd be "hash[x] = y if hash[x]"
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
shinobi_one has joined #ruby
mocfive has quit [Remote host closed the connection]
<pipework> I'm on 2.1.0 atm, I'll switch to 2.1.1
<pipework> >> RUBY_VERSION
<eval-in___> pipework => "2.1.0" (https://eval.in/106548)
<pipework> >> hash = Hash
<eval-in___> pipework => Hash (https://eval.in/106549)
lpavan has joined #ruby
mocfive has joined #ruby
andikr has joined #ruby
<pipework> >> h = Hash.new; h[:lol] &&= nil; h.inspect
<eval-in___> pipework => "{}" (https://eval.in/106550)
<xibalba> If I wanted to SSH/SCP via Ruby to another machine, what would I use? Net-SSH ?
<bricker> certainty: why didn't it set that to :foo? I must not understand &&= fully
sailias has quit [Remote host closed the connection]
<certainty> bricker: because h[:x] is false
<bricker> certainty: ah :/
shiftins has quit [Ping timeout: 240 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<bricker> duh
<certainty> :)
phansch has quit [Quit: WeeChat 0.4.2]
sailias has joined #ruby
lkba has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<certainty> that's also whay it doesn't work as suggested. At least if i understand aloitius_ correctly
pigzzcanfly has quit [Remote host closed the connection]
lkba has joined #ruby
jmau5 has quit [Remote host closed the connection]
pigzzcanfly has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
jmau5 has joined #ruby
<certainty> that's the problem with nil and false being considered falsy
Atw has quit [Ping timeout: 244 seconds]
<bricker> *you're* falsy
joelroa has joined #ruby
jmau5 has quit [Read error: Connection reset by peer]
<certainty> i probably am
<certainty> i'm certainly lagy
mocfive has quit [Ping timeout: 264 seconds]
razibog has joined #ruby
blaines has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<shevy> I <3 .zip
pfg has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
senayar_ has joined #ruby
sdouglas has joined #ruby
zonetti has joined #ruby
xerox357 has quit [Remote host closed the connection]
WormDrink has quit [Read error: Connection reset by peer]
Notte has quit [Remote host closed the connection]
mduvall has joined #ruby
<zonetti> how can I pass the body request using the RestClient::Request constructor? Can't find it in the docs..
<certainty> shevy: i love zippers
John_John_ has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
petey has quit [Remote host closed the connection]
John_John_ has joined #ruby
John_John_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jmau5 has joined #ruby
petey has joined #ruby
vlad_sta_ has joined #ruby
petey has quit [Remote host closed the connection]
<aloitius_> Thanks guys.
andy has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 265 seconds]
<aloitius_> &&= does the trick
PLejeck is now known as nuck
andy has joined #ruby
petey has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
agent_white has joined #ruby
pwh_ has quit []
sdouglas has quit [Ping timeout: 265 seconds]
lyanchih_ has quit [Quit: lyanchih_]
<certainty> aloitius_: are you sure? Do you want to set the value if the key exists or when the value is not falsy?
arietis has joined #ruby
WormDrink has joined #ruby
<aloitius_> certainty: If it's nil, I don't want to set it. Anything else should set it.
agent_white has quit [Client Quit]
Tamal has joined #ruby
joelbrewer has joined #ruby
xbob has quit [Remote host closed the connection]
LGBTRubyist has joined #ruby
xbob has joined #ruby
<LGBTRubyist> Ruby is written in C. :D
<aloitius_> certainty: But I'm pulling out of an XML file, so it's either nil or...I think a string. In any case, I don't think the Ruby false will be passed.
<shevy> ur mom is written in C++!
mansi has quit [Remote host closed the connection]
<LGBTRubyist> well it is
<LGBTRubyist> :)
<shevy> XML
<shevy> :(
<LGBTRubyist> c
agent_white has joined #ruby
<shevy> C embedded in XML
<shevy> :(((
mansi has joined #ruby
<LGBTRubyist> i have the source code to ruby
<LGBTRubyist> :O
<certainty> aloitius_: well then &&= is not correct
<LGBTRubyist> I just downloaded it
<shevy> well everyone has LGBTRubyist
predator117 has quit [Ping timeout: 240 seconds]
<LGBTRubyist> no shiiit
<shevy> here is how I update: ue URL_HERE; ry NAME... or just ry URL_HERE
sk87 has joined #ruby
<LGBTRubyist> u should realize it written in c. ;)
mneorr has joined #ruby
<shevy> isn't there a bit of assembler in it as well?
<agent_white> Afternoon everyone
<certainty> >> {x: false }.tap{ |hsh| hsh[:x] &&= :new_value }
<eval-in___> certainty => {:x=>false} (https://eval.in/106613)
rootshift has joined #ruby
<certainty> aloitius_: ^
<LGBTRubyist> mainly c
<LGBTRubyist> :)
ryanfrancis has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
<aloitius_> certainty: Right, I know but I don't think I can get a genuine false from this. Actually, there are no fields in the XML response that can be false, at least at this point.
sk87 has quit [Client Quit]
npearson has quit [Remote host closed the connection]
<certainty> aloitius_: alright. Do whatever pleases you. It's may be create subtle bugs in other cases though
petey has quit [Ping timeout: 272 seconds]
noopq has quit [Ping timeout: 272 seconds]
MattStratton has joined #ruby
<certainty> s/It's/It/
mduvall has quit [Ping timeout: 264 seconds]
<certainty> bah and -create
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
npearson has joined #ruby
craigp has quit []
Hanmac1 has joined #ruby
<aloitius_> certainty: I see that and have noted it in the code. But unless there's an alternative to &&= that only exclude nil, I think it's preferable to "h[x] = y if y", particularly when my "y" can actually be pretty long.
mansi has quit [Ping timeout: 240 seconds]
npearson has quit [Remote host closed the connection]
npearson has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<RubyPanther> Ruby makes a great C stdlib replacement
mneorr has quit [Ping timeout: 264 seconds]
<certainty> aloitius_: now i'm confused. h[x] &&= y is not equivalent to h[x] = y if y
predator117 has joined #ruby
<certainty> it's equivalent to h[x] && h[x] = y
Rakden has left #ruby ["Leaving"]
Rainicorn is now known as LadyRainicorn
Faris has quit [Ping timeout: 240 seconds]
aaronmcadam has joined #ruby
<aloitius_> certainty: Oh, well, that's not use at all, then. =P
<certainty> (well if you're not interested in the return value)
Hanmac1 has quit [Ping timeout: 240 seconds]
<aloitius_> I'm looking for "h[x] = y if y" replacement.
rdark_ has quit [Quit: leaving]
<certainty> that's pretty terse already
petey has joined #ruby
bigkevmcd has joined #ruby
Hanmac has joined #ruby
<aloitius_> certainty: Usually.
<certainty> aloitius_: but you already said that y is quite long. How do you mean?
<aloitius_> certainty: But it's h[x] = r[x][y][z][#][value] if r[x][y][z][#][value]
<aloitius_> certainty: I'm digging into a hashed XML repsonse.
dh64 has quit [Remote host closed the connection]
jmau5 has quit [Remote host closed the connection]
<LadyRainicorn> h... = r... || nil
<LadyRainicorn> err, || h
<shevy> LadyRainicorn will there be happiness rays for XML users too?
<LadyRainicorn> :$
nszceta has joined #ruby
jmau5 has joined #ruby
mansi has joined #ruby
Jake232 has joined #ruby
kpshek has quit []
<shinobi_one> shevy: lol
Faris has joined #ruby
<certainty> aloitius_: maybe you want to introduce a temp variable
<LadyRainicorn> Yes, alongside clean needles.
<shevy> lol
axsuul has quit [Ping timeout: 265 seconds]
kpshek has joined #ruby
LGBTRubyist has quit [Quit: Leaving]
jonah_k has quit [Remote host closed the connection]
<shinobi_one> there's always Nokogiri, no?
<aloitius_> certainty: I got about 30 of 'em. I was going to do a function, like "dontaddnils(h[x], r[x][y][whatever])"
datreh has joined #ruby
Honsby has quit [Remote host closed the connection]
<certainty> at least you'd push it down into a method this way
<aloitius_> Or just stripl the nils from the final result.
<aloitius_> Which I may do because: lazy.
jmau5 has quit [Ping timeout: 265 seconds]
jmau5 has joined #ruby
stryek has quit [Ping timeout: 240 seconds]
SegFaultAX has quit [Excess Flood]
ahawkins has quit [Quit: leaving]
andy has quit [Read error: Connection reset by peer]
<LadyRainicorn> nil = true
centrx has joined #ruby
ryanfrancis has quit [Read error: No route to host]
andy has joined #ruby
<lagweezle> mu ?
<pipework> LadyRainicorn: It'd be funny if that didn't raise an exception .
ryanfrancis has joined #ruby
<LadyRainicorn> yes :(
<LadyRainicorn> But we can do it in JS and laugh at them!
<certainty> better be glad it does
mikepack has quit [Remote host closed the connection]
<LadyRainicorn> Yeah, it would be hilariously awful if it didn't.
Rickmasta has joined #ruby
mehlah has joined #ruby
maximski has joined #ruby
LastWhisper has quit [Ping timeout: 245 seconds]
Uranio has quit [Quit: WeeChat 0.3.8]
cina has quit [Quit: Lost terminal]
andikr has quit [Remote host closed the connection]
cina has joined #ruby
mehlah has quit [Client Quit]
<certainty> either redefine canonical boolean constants or conditionals to have total mess. Neither is possible in ruby, which is good
SegFaultAX has joined #ruby
<certainty> in scheme you could (define-syntax if (syntax-rules () ((_ ?t ?c ?a) (or (and ?t ?a) ?c)))) (if #f "true" "false") ;=> "true"
nanoyak has quit [Quit: Computer has gone to sleep.]
yubrew has quit []
timonv has joined #ruby
ringaroses has joined #ruby
subbyyy has quit [Ping timeout: 269 seconds]
ringaroses1 has quit [Ping timeout: 269 seconds]
bean has joined #ruby
<shinobi_one> certainty: and then jump off a birdge
yubrew has joined #ruby
blackmesa has quit [Remote host closed the connection]
<certainty> yeah
lw has joined #ruby
cina has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
sambao21 has quit [Quit: Computer has gone to sleep.]
<LadyRainicorn> It is actually annoying that you can't redefine truthiness in Ruby.
<LadyRainicorn> Like super annoying.
<LadyRainicorn> I WANT TO MAKE THINGS FALSY TOO.
* LadyRainicorn cries in a corner, wronged.
<centrx> >> true != false
<eval-in___> centrx => true (https://eval.in/106622)
cina has joined #ruby
jmau5 has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
<RubyPanther> >> !!!"truish"
<eval-in___> RubyPanther => /tmp/execpad-e240e8938bf5/source-e240e8938bf5:2: warning: string literal in condition ... (https://eval.in/106623)
hiyosi has joined #ruby
jmau5 has joined #ruby
timonv has quit [Remote host closed the connection]
<RubyPanther> argh, silly bot, that is just a warning not the output
jmau5 has quit [Read error: Connection reset by peer]
senayar_ has quit [Remote host closed the connection]
toertore has quit [Quit: Leaving]
<certainty> :)
rbartos has quit [Remote host closed the connection]
wjlafrance has joined #ruby
Honsby has joined #ruby
stryek has joined #ruby
mehlah has joined #ruby
<frem> What's the best way to rescue an exception that has a specific message? I tried re-raising the exception if the message doesn't match, but when I have a block like `begin; rescue Foo => e; rescue => e`, and the exception is re-raised in the first rescue, the exception is not caught by the second rescue.
xaq has joined #ruby
rbartos has joined #ruby
<RubyPanther> frem: Don't do that, it hurts. Use a different exception.
<certainty> +1
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
tedstriker has quit [Quit: Anti-Fraping status set.]
<LadyRainicorn> begin begin rescue end rescue end
mehlah has quit [Client Quit]
alice|wl has joined #ruby
<certainty> LadyRainicorn: making other things behave falsy or truthy is different from changing the boolean meaning of existing constants.
<LadyRainicorn> Yes
<frem> RubyPanther: Can't help it. Rails is dumb when it comes to validations, especially when a different model raises an exception than the one the controller is validating. Same exception either way; only way to tell them apart is to read the message.
ndrei has quit [Ping timeout: 240 seconds]
<alice|wl> hello, I need the magicfile gem for another gem but get an error during install and cant find out what I m missing. On debian wheezy: http://pastie.org/8809918
<LadyRainicorn> But it is annoying you can't
<LadyRainicorn> One thing I miss about Python
<RubyPanther> rails validations are 100% flexible
<centrx> frem, Don't use exceptions for control flow
jmau5 has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
<pipework> ^
rm_ has quit [Remote host closed the connection]
toretore has joined #ruby
subbyyy has joined #ruby
rm_ has joined #ruby
einarj has joined #ruby
<RubyPanther> Using exceptions for flow control is awful, but a reasonable and known design pattern. But your exceptions have to be exactly correct for that. (obviously) Stuffing stings into them is like trying to use them as GOTO
<frem> centrx: I agree! But you haven't seen the mess of model dependencies I spent hours trying to work around. It's not worth another day of work to try and get it working "the right way."
vlad_starkov has joined #ruby
<certainty> LadyRainicorn: many assumptions about the code could be plain false then (pun intended) ... i'm not sure i like that
axl_ has quit [Quit: axl_]
<RubyPanther> And if you want goto, just use C. Ruby has lots of goto's in the C.
alvaro_o has joined #ruby
stryek has quit [Ping timeout: 264 seconds]
shedd has quit [Remote host closed the connection]
<shinobi_one> Apple loves goto's *troll face*
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
mocfive has joined #ruby
weems has quit [Quit: Leaving]
<centrx> Or compile Ruby with the SUPPORT_JOKE flag
<RubyPanther> LadyRainicorn: Most people hate the idea of being unsure of Truth. You can probably fiddle with it in C, though.
<frem> RubyPanther: is there something more specific than ActiveRecord::RecordInvalid I can rescue from?
Notte has joined #ruby
Kricir_ has joined #ruby
sambao21 has joined #ruby
<LadyRainicorn> Basically I just wanted to make a null object that returned null when an undefined method was called on it.
<pipework> RubyPanther: It's perfectly fine to use exceptions for control flow. there's no global agreement on it.
<LadyRainicorn> Instead of long check for nil chains.
<pipework> Just a bunch of opinions.
weems has joined #ruby
Hanmac1 has joined #ruby
<LadyRainicorn> But if you make that, you can't make it falsy.
<LadyRainicorn> Which is super duper annoying.
<RubyPanther> frem: You can write custom validations that raise any exception you want
Kricir has quit [Ping timeout: 264 seconds]
<pipework> frem: You can also use catch and throw, which sinatra makes extensive use of.
rootshift has joined #ruby
<pipework> There's a handful of tools you can use, the last I reach for is exceptions, but some people reach for them first.
axsuul has joined #ruby
Faris has quit [Ping timeout: 246 seconds]
petey has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
axsuul has quit [Max SendQ exceeded]
<LadyRainicorn> exceptions should be exceptional@
drumusician has joined #ruby
<LadyRainicorn> !
shashin has joined #ruby
shashin has joined #ruby
shashin has quit [Changing host]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Hanmac has quit [Ping timeout: 271 seconds]
axsuul has joined #ruby
BackEndCoder has joined #ruby
ReachingFarr has left #ruby [#ruby]
<pipework> ^
axsuul has quit [Max SendQ exceeded]
<RubyPanther> frem: generally you just subclass the one that rails defaults to
<napcae> hi pipework
ringaroses has quit [Read error: Connection timed out]
<frem> RubyPanther: Oh! Ok, that helps a lot. Thanks!
axsuul has joined #ruby
<pipework> napcae: hi.
axsuul has quit [Max SendQ exceeded]
ctp has quit [Quit: Leaving...]
vlad_starkov has quit [Ping timeout: 272 seconds]
cina has quit [Quit: leaving]
<RubyPanther> LadyRainicorn: it is a great line, but it only kicks the can... then instead of not agreeing when to raise exception, people don't agree on what is exceptional.
<pipework> frem: I don't always subclass them. Your goal should be to wrap them in your own application-specific exceptions in whatever way is most appropriate.
drumusician has quit [Remote host closed the connection]
cina has joined #ruby
<pipework> RubyPanther: People can make arguments for everything.
<RubyPanther> It is very interesting from a language perspective; the implementations are narrow and specific, but the use case is generally fuzzy. There is overlap, but there are also lots of very different ways it is used.
<frem> No, wait. If I subclass it, I can't use the errors hash built into models.
danshult_ has quit [Remote host closed the connection]
<frem> This is a minimal, cleaned up version of the mess I have to work around right now. https://gist.github.com/jamesgecko/7f97c486f2b5a624de8d
meatherly has quit [Remote host closed the connection]
jjbohn is now known as jjbohn|afk
danshultz has joined #ruby
axsuul has joined #ruby
<RubyPanther> There are so many One True Exception tribes, if you were to actually try to narrow the use case to a clear definition, you probably couldn't fit even 35% into the same basket. But "most" people will agree that exceptions should be "exceptional." Their children are also all exceptional.
axsuul has quit [Max SendQ exceeded]
meatherly has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<LadyRainicorn> All children are exceptional, except for orphans, who secretly vastly outnumber other children.
<pipework> One can always find any number of reasons to disagree and join a different group of opinions, but pointing that out lends no value.
<RubyPanther> Everybody's own children are exceptional, but most neighbor kids are not.
<pipework> LadyRainicorn: Until someone from another tribe asserts that they observe almost no orphans.
xerox357 has joined #ruby
lewix has joined #ruby
<pipework> Then you know, nothing really changes, but now you've got a disagreement.
<RubyPanther> Everybody's own use case is exceptional, but their neighbors was Not Invented Here
<LadyRainicorn> That's why they're secret orphans, duh.
chipotle has joined #ruby
<LadyRainicorn> And so all the parents who say their children are exceptional are correct!
jjbohn|afk is now known as jjbohn
<LadyRainicorn> Because most children are part of the secret orphan cohort.
<pipework> I'm closer to the avdi grimm camp of exceptions than the "I'm a programmer, motherfucker" side of things.
<shevy> hmm
John_John_ has joined #ruby
<shinobi_one> try catch all the things.. wait this isn't #python
<shevy> ruby has a million features
mneorr has joined #ruby
<certainty> lisps have the notion of conditions. which are a more general construct. They may be used in the same situations other languages may raise exceptions. They are not limited to those cases though
<shevy> but only one hundred thousand use cases for them
<RubyPanther> Has Zed posted on this? Because "Programming, Motherfucker" is about workflow paradigms
joelroa has joined #ruby
bklane has joined #ruby
<shevy> who reads zed
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
axsuul has joined #ruby
<LadyRainicorn> Y?
rm_ has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
axsuul has quit [Max SendQ exceeded]
<RubyPanther> He's pretty old-school, I'd suspect he has a strong, well-entrenched, strict interpretation of exceptions
RaCx has quit [Quit: Computer has gone to sleep.]
danshultz has quit [Ping timeout: 272 seconds]
<centrx> Wow. Ruby Rogues Parley is a mailing list you have to _pay_ to sign up for
gregf has quit [Quit: WeeChat 0.4.3]
reset has joined #ruby
axsuul has joined #ruby
RaCx has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shevy> hmm guys if I have a method and one input to it, and I want to check if the input is either a string, or a hash BUT if it is a hash, I need only one key
mehlah has joined #ruby
<RubyPanther> You have to pay to negotiate surrender, what more would you expect from rogues?
<LadyRainicorn> That sounds very much like Blackhat's business model.
rootshift has joined #ruby
<shevy> should I do... if input.is_a? Hash # and then make a new line... or should I check in one line
<pipework> RubyPanther: I haven't asked him personally, but I'm sure you'd just disagree on principle.
carraroj has joined #ruby
axsuul has joined #ruby
<shevy> RubyPanther agrees with clever people
<RubyPanther> shevy: respond_to? :to_str is canonical for testing for a string
momomomomo has joined #ruby
<shinobi_one> shevy: that's up to your personal style, what do you prefer?
DropsOfS_ has quit [Read error: Connection reset by peer]
<shevy> shinobi_one I am not sure. right now I use two separate lines but that seems bloaty
stryek has joined #ruby
DropsOfSerenity has joined #ruby
xerox357 has quit [Remote host closed the connection]
<LadyRainicorn> That is true for digit strings which sounds bad.
<centrx> shevy, I prefer starting off such methods with: return unless input.is_a?(Hash)
<centrx> shevy, Makes it very clear at the beginning the intended logic
<centrx> or raise instead of return
xerox357 has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
<pipework> I prefer only using asking about if something #is_a? only if it's the only thing I can do without going too far into duck typing that it becomes frustrating.
<RubyPanther> I'd certainly disagree "on principle" with the idea that Zed having an amusing site so he can sell more T-shirts somehow makes "I'm a programmer, motherfucker" a "side of things" technically.
sdouglas has joined #ruby
<pipework> Personally, I prefer to depend on #fetch
NovapaX has joined #ruby
meatherly has joined #ruby
gregf has joined #ruby
jlebrech has joined #ruby
jlast has quit [Remote host closed the connection]
<shinobi_one> RubyPanther: "Buy a T-Shirt, Asshole!"
momomomomo has quit [Client Quit]
ndrei has joined #ruby
jlebrech has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
brian______ has joined #ruby
GinoMan has joined #ruby
<RubyPanther> I don't even like Zed, and it makes me want to pay him for the shirt.
axsuul has quit [Ping timeout: 240 seconds]
<shinobi_one> haha
jlast has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
markisonfire has joined #ruby
<shevy> hehe
jlebrech has joined #ruby
bogeyd6 has quit [Ping timeout: 240 seconds]
jonah_k has joined #ruby
sambao21 has joined #ruby
Nyyx has quit [Ping timeout: 246 seconds]
<certainty> respond_to? is chickentyping
jlebrech has quit [Read error: Connection reset by peer]
* certainty hides
zerun0 has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
mneorr has quit [Remote host closed the connection]
philtr has joined #ruby
mikepack has joined #ruby
<certainty> i'm not fond of ducktyping
datreh has quit [Ping timeout: 240 seconds]
kirun__ has joined #ruby
kirun__ has quit [Remote host closed the connection]
arietis has quit [Read error: Connection reset by peer]
snuffeluffegus has joined #ruby
cina has quit [Quit: leaving]
<shevy> it's useless anyway
davy has quit [Remote host closed the connection]
Hanmac has joined #ruby
jlebrech has joined #ruby
Celm_ has joined #ruby
jlebrech has quit [Max SendQ exceeded]
<shevy> for just about all the methods I have used, the main input is either a string a hash or an array
<RubyPanther> Yeah, useless... until you try to pass some sort temp object or IO oddity that is string-like, and it blows up in your face. Then you start to wonder, "but it works everywhere else?"
caveat- has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
Rakden has joined #ruby
relix_ has quit [Quit: Textual IRC Client: www.textualapp.com]
rezzack has joined #ruby
<shevy> that must be truly a use cases that people encounter DAILY
gigetoo has quit [Ping timeout: 240 seconds]
jlebrech has joined #ruby
Phonix has joined #ruby
<certainty> it is useful, but also risky
jlast has quit [Remote host closed the connection]
<RubyPanther> Oh, StringIO, what is that? I dunno, I didn't write any support for that, I guess I don't need it. What do you mean I killed it with the ducks? What is this chickentyper talking about?
senayar has joined #ruby
<shevy> do you still have to test with ducktyping?
jjbohn is now known as jjbohn|afk
<RubyPanther> Yeah, risky if you can't tell a quack from a bok
stryek has quit [Ping timeout: 240 seconds]
kirun_ has quit [Ping timeout: 272 seconds]
jlebrech has quit [Max SendQ exceeded]
shiftins has joined #ruby
<certainty> RubyPanther: well the truth is that just because an object responds to a certain method and thus is compatible in the ducktyping sense, it doesn't mean that the semantic is compatible
datreh has joined #ruby
<certainty> that's all
relix has joined #ruby
Celm has quit [Ping timeout: 272 seconds]
gustavold1 has joined #ruby
Phonix has quit []
<RubyPanther> Yes, having the method #to_str is a promise that you are a "real" string
tedstriker has joined #ruby
<certainty> many languages have a form of ducktyping for good reasons. Some of them allow you to be a bit more specific about the parameters and return values
John_John_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<RubyPanther> Compare to #to_s which is a string representation of the object.
grvgr has quit [Quit: grvgr]
JBreit has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
<certainty> RubyPanther: yes. And most ruby programmers know and respect that rule. But it's not enforced
petey has quit [Remote host closed the connection]
timonv has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
skaflem has quit [Quit: Leaving]
petey has joined #ruby
<RubyPanther> of course it is not "enforced," this is Ruby. Almost nothing is enforced. Who would police the code police?
xerox357 has quit [Remote host closed the connection]
<centrx> RubyPanther would.
rayners has quit [Ping timeout: 240 seconds]
<RubyPanther> No way, man.
xerox357 has joined #ruby
jmoeller has joined #ruby
eichenwald has joined #ruby
<RubyPanther> The most I can do is tell them it is crap, there is no enforcement mechanism there.
oracal has joined #ruby
<centrx> You are very good at doing that.
jonah_k has quit []
<RubyPanther> Some of my best friends are ducks.
fridim__ has quit [Read error: Connection reset by peer]
larissa has joined #ruby
jjbohn|afk is now known as jjbohn
<certainty> RubyPanther: i know. As i said, it's useful
Honsby has quit [Remote host closed the connection]
Honsby has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
gilest has joined #ruby
petey has quit [Ping timeout: 264 seconds]
nvll is now known as nvIl
bklane has quit [Quit: Leaving...]
nvIl is now known as nvll
caveat- has joined #ruby
<certainty> the term chickentyping is common knowledge, no?
npearson has quit [Remote host closed the connection]
Kricir_ has quit [Remote host closed the connection]
Honsby has quit [Ping timeout: 240 seconds]
RaCx has quit [Ping timeout: 264 seconds]
npearson has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
momomomomo has joined #ruby
RaCx has joined #ruby
<AntelopeSalad> can someone please take a look at this for me -- i'm executing identical code on MRI 1.9.3 on 2 different machines and i'm getting different outputs with the same inputs -- https://gist.github.com/AntelopeSalad/59f038454238da3c5c5a
<pipework> Some of my best ducks are friends.
stryek has joined #ruby
jlebrech has joined #ruby
randomnick_ has joined #ruby
npearson has quit [Remote host closed the connection]
npearson has joined #ruby
jlebrech has quit [Max SendQ exceeded]
<centrx> AntelopeSalad, Maybe different versions of chef?
kirun has joined #ruby
jlebrech has joined #ruby
<AntelopeSalad> centrx: it's 11.x
mark_locklear has joined #ruby
mneorr has joined #ruby
<AntelopeSalad> i executed it on my computer (ruby 2.1), eval.in (1.9.3) and the chef node (1.9.3) -- and the chef node's output is the only one that's wrong
jlebrech has quit [Max SendQ exceeded]
rootshift has joined #ruby
<centrx> Tell your waitress that you have a complaint about the kitchen. That should solve it.
<pipework> lul
jlebrech_ has joined #ruby
<AntelopeSalad> for the record my regex version yesterday worked, it wasn't until i switched to pipework's ver that it broke
mark_locklear has quit [Remote host closed the connection]
jlebrech_ has quit [Max SendQ exceeded]
<pipework> AntelopeSalad: You might have to investigate further with some poking, prodding, and perusing.
<pipework> maybe even pry
Solnse has joined #ruby
<AntelopeSalad> how would i even begin to use pry in a chef run?
jlast has joined #ruby
John_John_ has joined #ruby
mjs2600 has quit []
jlebrech_ has joined #ruby
<shevy> first, you slowly get rid of your clothes ...
blackmesa has quit [Quit: WeeChat 0.4.3]
jlebrech_ has quit [Max SendQ exceeded]
<shevy> and then you should ask yourself "what the hell am I doing!"
klaut has joined #ruby
<shevy> so the question comes down to... why do we want to use pry in chef
jmoeller has quit []
Jetchisel has joined #ruby
dkamioka has joined #ruby
<AntelopeSalad> shevy: because i'm getting results that are mind boggling, it's like the .match method is broken during the chef run
pigzzcanfly has joined #ruby
phutch1ns has quit [Ping timeout: 264 seconds]
meanphil has joined #ruby
<pipework> AntelopeSalad: I'd probably prod in the machine itself rather than directly in the run.
<pipework> I'm sure the code exercises the environment correctly, but the environment might not be right.
<meanphil> Does anyone know if there are Ubuntu deb packages available for 2.1.1 yet? Brightbox PPA seems be on 2.1.0 still
<pipework> meanphil: I don't think so, none I know of.
<pipework> meanphil: For development though, you should consider using ruby-install and chruby.
<pipework> Then you don't have to wait.
<meanphil> Yeah, this is for deployment... was hoping to avoid system ruby + ruby-install version
kukyakya has quit [Ping timeout: 240 seconds]
MattStratton has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has quit [Quit: This computer has gone to sleep]
<meanphil> but might have to use chruby on prod as well
sdouglas has joined #ruby
<AntelopeSalad> pipework: if i take the exact function being ran and place it into a ruby file on my server and run it, i get the correct output
<shevy> real me compile from source
rdgawdzi_ has joined #ruby
<shevy> hmmm
<AntelopeSalad> that is reading from the real /etc/profile too
<shevy> I think I am tired :(
hiyosi has joined #ruby
<pipework> AntelopeSalad: How interesting!
jetblack has quit [Ping timeout: 264 seconds]
<pipework> meanphil: Well, not necessarily.
<pipework> meanphil: In prod, I use absolute paths.
<AntelopeSalad> pipework: but when i run it manually on the chef server, i'm using ruby 2.1.0 (provided by rvm), not chef's version of ruby which is 1.9.3
reset has quit [Quit: Leaving...]
<AntelopeSalad> but then eval.in's 1.9.3 version works, so it's clearly not a ruby version conflict right?
<pipework> AntelopeSalad: Try using the chef one as well.
<meanphil> pipework: actually, I might just grab Brightbox's 2.1.0 deb and build a 2.1.1 one myself ;)
<pipework> I'm not certain.
Spami has joined #ruby
rdgawdzi_ has quit [Quit: leaving]
<AntelopeSalad> pipework: i'm not actually sure how to run chef's ver of ruby directly -- let me try to figure that out
<pipework> meanphil: That's totally reasonable. I use ruby-install in development and use my own packages for ruby, my gems, scripts, and applications in production.
xerox357 has quit [Remote host closed the connection]
blackmesa has joined #ruby
rdgawdzi has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.3]
Hobogrammer has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
<AntelopeSalad> pipework: the implementation of the code is 10000% correct right?
<pipework> AntelopeSalad: It seems to do what you described, yes.
mduvall has joined #ruby
<pipework> Why don't you just use your debugging tools?
<pipework> I'm sure you know how to use a logger.
<AntelopeSalad> i ran it against chef's version of ruby and it works as expected btw
RaCx has quit [Quit: Computer has gone to sleep.]
<AntelopeSalad> it is ruby 1.9.3p484
<pipework> Hm, that's pretty interesting!
petey has joined #ruby
<pipework> I bet you'll find that chef people will ask you to use their ruby.
<AntelopeSalad> what exactly would i be logging? i already logged the output of the env_hash during the run
LadyRainicorn has quit [Quit: Bye]
LadyRainicorn has joined #ruby
<AntelopeSalad> that is how i confirmed it's not filled up
Mon_Ouie has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
RaCx has joined #ruby
rbartos has quit [Remote host closed the connection]
<pipework> All kinds of things, everything you can think of.
alice|wl has left #ruby [#ruby]
<pipework> The actual ENV hash?
Jork1 has joined #ruby
boboc has joined #ruby
TMM has joined #ruby
<pipework> AntelopeSalad: That's not ENV
incade has quit [Remote host closed the connection]
<pipework> Notice that E, N, and V, are capitalized.
LadyRainicorn has quit [Client Quit]
LadyRainicorn has joined #ruby
yfeldblu_ has joined #ruby
Uranio has joined #ruby
Jork1 has quit [Client Quit]
grvgr has joined #ruby
<AntelopeSalad> what would i be logging?
<AntelopeSalad> echo $env is empty
<toretore> lol
xerox357 has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
shinobi_one has quit [Quit: shinobi_one]
jlast has quit [Remote host closed the connection]
<shevy> lol
boboc has quit [Client Quit]
<AntelopeSalad> none of the env vars are set/sourced from anywhere on each chef command -- that is the whole reason i am building a hash from /etc/profile
yfeldblum has quit [Ping timeout: 240 seconds]
einarj has quit [Remote host closed the connection]
auxbuss has joined #ruby
<AntelopeSalad> so i can pass them to chef's "environment" method which sets up the environment before it runs a command based on the hash you provide
bthesorceror has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.3]
timonv has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
danshultz has joined #ruby
msch has joined #ruby
Honsby has joined #ruby
glaksmono_ has quit [Quit: This computer has gone to sleep]
joelroa has joined #ruby
mocfive has quit [Remote host closed the connection]
datreh has quit [Read error: Connection reset by peer]
wjlafrance has quit [Ping timeout: 240 seconds]
ffranz has quit [Ping timeout: 264 seconds]
mocfive has joined #ruby
vt100 is now known as vt102
auxbuss has quit [Client Quit]
datreh has joined #ruby
GinoMan has quit [Ping timeout: 264 seconds]
wjlafrance has joined #ruby
sdouglas has quit [Remote host closed the connection]
Vovko has quit []
danshult_ has joined #ruby
axl_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
pigzzcanfly has quit [Remote host closed the connection]
jackneill has quit [Ping timeout: 240 seconds]
george2 has quit [Remote host closed the connection]
Vovko has joined #ruby
razibog has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
xerox357 has quit [Remote host closed the connection]
mesamoo has joined #ruby
xerox357 has joined #ruby
mocfive has quit [Ping timeout: 264 seconds]
yfeldblu_ has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
axsuul has joined #ruby
mansi has quit [Remote host closed the connection]
axsuul has quit [Max SendQ exceeded]
John_John_ has quit [Ping timeout: 272 seconds]
gilest has quit [Remote host closed the connection]
mansi has joined #ruby
wjlafrance_ has joined #ruby
sdouglas has joined #ruby
xerox357 has quit [Ping timeout: 240 seconds]
pipework is now known as sourcerer
danshult_ has quit []
sourcerer is now known as pipework
xerox357 has joined #ruby
glaksmono has joined #ruby
jetblack has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
jokke has quit [Quit: WeeChat 0.4.2]
Hobogrammer has joined #ruby
<centrx> "Scala makes you a better programmer because you can learn other languages while it compiles."
<centrx> Discuss amongst yourselves
jokke has joined #ruby
Azure has quit [Quit: updating to 10.9.2]
wjlafrance has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
xerox357 has quit [Remote host closed the connection]
xerox357 has joined #ruby
senayar_ has joined #ruby
danshultz has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
<LadyRainicorn> lol
rodri_gore has joined #ruby
ffranz has joined #ruby
datreh_ has joined #ruby
datreh has quit [Ping timeout: 240 seconds]
reset has joined #ruby
npearson has quit [Remote host closed the connection]
John_John_ has joined #ruby
npearson has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
ikaros has joined #ruby
xerox357 has quit [Ping timeout: 240 seconds]
ffranz has quit [Client Quit]
kirun has quit [Quit: Client exiting]
reset has quit [Read error: Connection reset by peer]
reset has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
ryanfrancis has quit [Quit: ryanfrancis]
<agarie> lol great
grvgr has quit [Quit: grvgr]
ikaros has quit [Client Quit]
petey has quit [Remote host closed the connection]
pwh has joined #ruby
ryanfrancis has joined #ruby
xerox357 has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axsuul has joined #ruby
reset has quit [Ping timeout: 240 seconds]
axsuul has quit [Max SendQ exceeded]
shinobi_one has joined #ruby
<aloitius_> OK, I have a script that runs: "Go; log; exit 0; rescue Exception=>e; log; exit 1". In this case, it should be okay to do "rescue Exception=>e" because the program is ending, and I just want to capture any exceptions and log them. Reasonable?
kukyakya has joined #ruby
xerox357 has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
rbartos has joined #ruby
tylersmith has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby
xerox357 has joined #ruby
<centrx> aloitius_, Okay
jonno11 has joined #ruby
nomenkun has quit [Remote host closed the connection]
oracal has quit [Quit: Leaving]
nomenkun has joined #ruby
petey has joined #ruby
xerox357 has quit [Remote host closed the connection]
<LadyRainicorn> Do you want to log interrups to?
alexherbo2 has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<aloitius_> LadyRainicorn: Yep.
senayar_ has quit [Remote host closed the connection]
Vovko has quit []
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shinobi_one> aloitius_: I would still use something like rescue SystemExit to be more clear
tylersmith has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
eichenwald has quit [Quit: Leaving]
Vovko has joined #ruby
<shevy> wuest, you are my hero http://oi59.tinypic.com/23l1vmd.jpg
Guedes has quit [Ping timeout: 252 seconds]
bnjamin has joined #ruby
<aloitius_> shinobi_one: Wouldn't that cause me to miss some exceptions?
xerox357 has joined #ruby
Guedes has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
gilest has joined #ruby
<shinobi_one> aloitius_: yes, but aren't you trying to rescue from the system exit you just called? or are you rescuing from the Go; log; as well?
jcs222 has quit [Quit: leaving]
vlad_starkov has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
budrose has joined #ruby
budrose has quit [Max SendQ exceeded]
budrose has joined #ruby
ericmathison has quit [Quit: leaving]
senayar has joined #ruby
axsuul has joined #ruby
kzrl has quit [Ping timeout: 240 seconds]
axsuul has quit [Max SendQ exceeded]
agjacome_ has quit [Ping timeout: 265 seconds]
Bosox20051 has joined #ruby
codecop has joined #ruby
Bosox20051 has quit [Changing host]
Bosox20051 has joined #ruby
xerox357 has quit [Remote host closed the connection]
xerox357 has joined #ruby
charkost has joined #ruby
habanany has quit [Ping timeout: 265 seconds]
Bosox20051 has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
axsuul has joined #ruby
ffranz has joined #ruby
Bosox20051 has joined #ruby
axsuul has quit [Max SendQ exceeded]
Xeago has joined #ruby
<aloitius_> shinobi_one: I do the "Go", if that works, I exit with a 0--anything else exits with 1, with the exception being logged.
habanany has joined #ruby
yarou has quit [Remote host closed the connection]
<aloitius_> Ohhhhhhhhhhh. The exit 0 creates an exception. Got it. I should just leave that out, since 0 will be returned by default.
jrhorn424 is now known as zz_jrhorn424
pigzzcanfly has joined #ruby
<shinobi_one> aloitius_: now we're getting somewhere
aaronmcadam has quit [Quit: Leaving...]
yeticry_ has joined #ruby
<shinobi_one> aloitius_: always remember when catching exceptions to try and pinpoint exactly what you want to catch
zachallett has quit [Remote host closed the connection]
rbartos has quit [Remote host closed the connection]
<aloitius_> shinobi_one: And maybe I don't want to use exit at all. Just set the exit code, if possible.
<shinobi_one> aloitius_: calling `exit 1` will exit with an exit code of 1
<jtoy> hi
monkegji_ has quit [Ping timeout: 265 seconds]
yeticry has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
hephaestus_rg has joined #ruby
<shinobi_one> jtoy: hello
zellio has quit [Quit: Lost terminal]
xaq has quit [Remote host closed the connection]
<aloitius_> shinobi_one: Right, I have that. It's exit 0 that was causing me trouble. DIdn't need it.
<hephaestus_rg> hello, is there a clean way to refactor lines 3/4 https://gist.github.com/hayksaakian/58a4ac5d2778cf3226aa
<shinobi_one> aloitius_: yea it seemd a little ambiguous
<hephaestus_rg> or otherwise adding to something that might be nil, (setting it to 0 before doing so)
MattStratton has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
<charkost> Hello, i have a question. I have a lib that uses an other lib to do something. Should i create exceptions that will be raised when i rescue the corresponding exceptions from the internal lib or let the user to directly rescue the exceptions that internal lib raises?
<shinobi_one> hephaestus_rg: i think h ||= 0 && h += some_int could work, not sure off the top of my head
diegoviola has quit [Quit: WeeChat 0.4.3]
<hephaestus_rg> awesome thanks
<hephaestus_rg> i'll try it
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
isbadawi has joined #ruby
rodri_gore has quit [Ping timeout: 264 seconds]
tedstriker has quit [Quit: Anti-Fraping status set.]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
axsuul has joined #ruby
mikepack has quit [Remote host closed the connection]
rbartos has joined #ruby
isbadawi has quit [Client Quit]
habanany has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
<hephaestus_rg> shinobi_one: didn't work
axsuul has quit [Max SendQ exceeded]
moneydouble has joined #ruby
lewix has joined #ruby
<shinobi_one> hephaestus_rg: i guess it won't work when h is nil
jack_rabbit has joined #ruby
<hephaestus_rg> acutally it works if i use and instead of &&
isbadawi has joined #ruby
<shinobi_one> hephaestus_rg: and will work
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<shinobi_one> hephaestus_rg: the reason is the difference between `and` and `&&`, i make this mistake sometimes in ruby, google it to read why
habanany has joined #ruby
Guedes has quit [Ping timeout: 240 seconds]
ffranz has quit [Ping timeout: 272 seconds]
rodri_gore has joined #ruby
fedesilv_ has joined #ruby
shedd has quit [Ping timeout: 264 seconds]
davy has joined #ruby
npearson has quit [Remote host closed the connection]
npearson has joined #ruby
Guedes has joined #ruby
Guedes has joined #ruby
John_John_ has quit [Remote host closed the connection]
kukyakya has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
zellio has joined #ruby
nfk has quit [Quit: yawn]
aaronmcadam has joined #ruby
MattStratton has quit [Ping timeout: 240 seconds]
fedesilva has quit [Ping timeout: 240 seconds]
shadoi1 has quit [Quit: Leaving.]
ffranz has joined #ruby
meatherly has quit [Remote host closed the connection]
ouie has quit [Quit: Leaving...]
agarie has quit [Remote host closed the connection]
meatherly has joined #ruby
kzrl has joined #ruby
rootshift has joined #ruby
rodri_gore has quit [Quit: WeeChat 0.4.3]
Xeago has quit [Remote host closed the connection]
jcs222 has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
<lfox> hephaestus_rg: could do h.to_i += some_int
sailias has quit [Quit: Leaving.]
<lfox> assuming h will always be an integer
jprovazn has quit [Quit: Odcházím]
davy_ has joined #ruby
<wuest> shevy: haha, glad to be of help :)
x77686d has quit [Quit: x77686d]
Xeago has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
davy__ has joined #ruby
<hephaestus_rg> won't work if h is nil
davy has quit [Write error: Connection reset by peer]
<lfox> nil.to_i #=> 0
soulcake has joined #ruby
sparrovv has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
<hephaestus_rg> v = nil; v.to_i += 1; undefined method `to_i=' for nil:NilClass
shadoi1 has joined #ruby
<agent_white> tubbo: Katz used to be a designer?
momomomomo has quit [Quit: momomomomo]
<agent_white> MT
<centrx> >> nil.to_nil
<eval-in___> centrx => undefined method `to_nil' for nil:NilClass (NoMethodError) ... (https://eval.in/106655)
dingus_khan has joined #ruby
Nanuq has quit [Quit: leaving]
xbob has quit []
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Remote host closed the connection]
jonah_k has joined #ruby
meatherly has joined #ruby
jph98 has joined #ruby
mocfive has joined #ruby
tylersmith has joined #ruby
<lfox> Oh derp. Guess I should go home now.
davy_ has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
crystal77 has quit [Quit: Computer has gone to sleep.]
bthesorceror has quit [Remote host closed the connection]
Azure has joined #ruby
brucele_ has joined #ruby
jbueza has joined #ruby
crus has joined #ruby
chipotle_ has joined #ruby
_HolyCow has quit [Quit: Leaving.]
chipotle has quit [Read error: Connection reset by peer]
v4n has joined #ruby
carlyle has joined #ruby
zachallett has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
webgen has joined #ruby
aspires has quit []
aaronmcadam has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
isbadawi has quit [Quit: leaving]
Azure has quit [Client Quit]
webgen has left #ruby [#ruby]
webgen has joined #ruby
Azure has joined #ruby
Celm_ has quit [Remote host closed the connection]
Notte has quit []
webgen has left #ruby [#ruby]
IceyEC has quit [Quit: IceyEC]
Celm has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
ineb has quit [Ping timeout: 264 seconds]
TakumoKatekari is now known as Takumo
klaut has quit [Remote host closed the connection]
mansi has joined #ruby
lfox has quit []
mansi has quit [Remote host closed the connection]
jonah_k has quit [Remote host closed the connection]
mansi has joined #ruby
saarinen has quit [Quit: saarinen]
webgen_ has joined #ruby
Kricir has joined #ruby
aspires has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
kaldrenon has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
kaldrenon has joined #ruby
reset has joined #ruby
maximski has quit []
<webgen_> hey guys
<webgen_> i have trouble connecting to #RubyOnRails channel, anyone know if its just me ?
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
John_John_ has joined #ruby
Shidash has joined #ruby
sdouglas has quit [Quit: Leaving...]
crystal77 has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
<n88> webgen_: might want to look at your status window and check for any errors
<centrx> webgen_, You need to identify to a registered nick with Freenode services
Nyyx has joined #ruby
mansi has quit [Ping timeout: 269 seconds]
tjr9898 has joined #ruby
John_John_ has left #ruby [#ruby]
<webgen_> but I never have registered on irc channels, i dont even know what it means ? :D
<webgen_> last time i was there there was no problem :S
nszceta has left #ruby ["out"]
x77686d has joined #ruby
yubrew has quit [Remote host closed the connection]
tjr9898 has quit [Read error: Connection reset by peer]
TripTastic has joined #ruby
nowthatsamatt has joined #ruby
tjr9898 has joined #ruby
Asher has quit [Quit: Leaving.]
webgen_ has quit [Quit: Leaving]
<centrx> webgen_, type /nickserv help register
kaldrenon has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 240 seconds]
habanany has quit [Quit: Leaving.]
habanany has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
end_guy has joined #ruby
mikesplain has quit [Quit: WeeChat 0.4.3]
jonr22 has joined #ruby
dblessing has quit [Remote host closed the connection]
gtech has joined #ruby
charliesome has joined #ruby
webgen has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
dblessing has joined #ruby
figgleberry has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
afex has joined #ruby
mansi has joined #ruby
figgleberry has joined #ruby
<afex> is it possible to run a rubygems mirror with the bundler-supported api for quick dependency resolution? (instead of downloading the entire index)
xastion has joined #ruby
geopet has quit []
senayar has quit [Remote host closed the connection]
<webgen> well maybe you guys can help me here? I have sublime at /opt/sublime_text ("sublime text being the executable itself"), how can i make a link in terminal so i can open it like you open emacs or nano?
senayar has joined #ruby
falten has left #ruby ["WeeChat 0.4.2"]
axl_ has joined #ruby
rbartos has quit [Ping timeout: 264 seconds]
dblessing has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
jcs222 has quit [Quit: leaving]
methods has joined #ruby
yubrew has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
sarlalian has quit [Quit: WeeChat 0.4.0]
fedesilv_ has quit [Ping timeout: 264 seconds]
<shinobi_one> webgen: what os are you on?
<shinobi_one> webgen: and distribution i'm assuming linux
<webgen> ubuntu 13.10
Guest73350 has quit [Ping timeout: 265 seconds]
<shinobi_one> webgen: when you say link in terminal you mean you want to type something like `sublime` to open it?
<webgen> i am watching this tutorial for mac but its different there
petey has quit [Remote host closed the connection]
<webgen> yep lets say "sublime x.txt"
<webgen> or subl for short
<shinobi_one> webgen: doesn't it already support that?
<jgrevich> I'm confused, normal maintenance for 1.9.3 ended a few days ago but it's marked as 'maintained' https://bugs.ruby-lang.org/projects/ruby/wiki/ReleaseEngineering
jhn has joined #ruby
<jgrevich> I guess this is not 'normal maintenance'?
petey has joined #ruby
<webgen> hmm nope i just put the executable in this random folder called /opt so maybe the $PATH doesnt see it :S
<shinobi_one> webgen: try /usr/local/bin
<webgen> I am not familiar with whole thing so i am not sure what i am missing
reset has quit [Quit: Leaving...]
<webgen> ok will do i ll post results ^.^
<shinobi_one> webgen: well
<shinobi_one> you could symlink it from /opt to /usr/bin or /usr/local/bin or whatever
sdouglas has joined #ruby
<shinobi_one> `ln -s /opt/sublime /usr/local/bin/sublime`
<webgen> ye, i dont know how symlink is done :D
<webgen> i am very bad with terminal
<methods> how would one install a ruby gem using Gem::DependencyInstaller with an http proxy ?
npearson has quit [Remote host closed the connection]
mansi has joined #ruby
<webgen> shinobi_one ok let me try that !
danshultz has quit [Remote host closed the connection]
<shinobi_one> webgen: that's assuming the executable in /opt is called /opt/sublime ofcourse
npearson has joined #ruby
<shinobi_one> of course ofcourse
danshultz has joined #ruby
v4n has quit [Ping timeout: 264 seconds]
petey has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
<webgen> shinobi_one the command did execute but terminal still doesnt see sublime command :S ? makes sense or not really ? :D
<shinobi_one> webgen: type `echo $PATH` without the back ticks in your terminal
mansi has joined #ruby
Hamburglr has quit [Ping timeout: 272 seconds]
v4n has joined #ruby
v4n has quit [Changing host]
v4n has joined #ruby
kcombs has quit [Write error: Broken pipe]
blackmesa has joined #ruby
axl_ has quit [Quit: axl_]
jonr22 has quit [Write error: Broken pipe]
yarou has joined #ruby
zumba_addict has quit [Quit: zumba_addict]
Hamburglr has joined #ruby
stryek has quit [Quit: Leaving]
<shinobi_one> webgen: and the results are in?
petey has joined #ruby
<shinobi_one> webgen: i'm going to guess you might need su priveledges to run the command i gave you earlier `sudo ln -s /opt/sublime /usr/local/bin/sublime`
danshultz has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
jph98 has quit [Quit: jph98]
<shinobi_one> webgen: i'm also going to guess your executable isn't named "sublime" as in /opt/sublime
<shinobi_one> i'm not a sublime text user so i have no clue
mansi has quit [Ping timeout: 240 seconds]
<webgen> shinobi_one yep i screwed myself over by making mistake about sublime instead of sublime_text, was dealing with sudo file removals :D wasn't overwriting :P now it works dood thanks so much ! :)
<shinobi_one> webgen: `sudo ln -s /opt/sublime_text /usr/local/bin/sublime`, so you don't have to type sublime_text or autocomplete that much every time
<webgen> shinobi_one I am on the border of using either sublime or netbeans, which one would u recommend and anyways which one are u using yourself? are you doing RoR stuff?
Daemonik has joined #ruby
<shinobi_one> webgen: i use VIM, i would recommend sublime over netbeans IMO
<shinobi_one> webgen: i do some ror stuff
<webgen> vim scares me, so many weird shortcuts, when i used it first time lol
<Daemonik> I am new to Ruby working on a CentOS 5 system. I want to have a dedicated "Ruby stack" like /opt/ruby-1.9.3 with its own environment for Gems etc. Is there a quickstart guide to doing that?
<shinobi_one> Daemonik: look into rvm or rubyenv
mansi has joined #ruby
<shinobi_one> Daemonik: i like rvm because of the multiple gemsets per ruby installation
mansi has quit [Remote host closed the connection]
hiyosi has joined #ruby
<shinobi_one> webgen: run through `vimtutor` a few times, once you start to get the hang of it you'll probably never go back to anything else, especially with all of the plugins available
jkamenik has joined #ruby
mansi has joined #ruby
<shinobi_one> Daemonik: from what you're describing as a dedicated stack, you might prefer rubyenv
<shevy> webgen it will mess with your brain
<shinobi_one> ^ at first
<shevy> it will never stop
<shinobi_one> haha nah
<shevy> Daemonik well, there is --user-install so you can install all gems in your user dir
RaCx has quit [Quit: Computer has gone to sleep.]
<shevy> from that point I think it should be easy to install into another dir
kukyakya has joined #ruby
<shinobi_one> shevy: sounds like he wants a more dedicated stack like on a server or something
Hanmac1 has joined #ruby
<shevy> but I am not sure there is an in-built command available to relocate ruby gems. look at the output of "gem env" too
gustavold1 has quit [Read error: Connection reset by peer]
<webgen> shinobi_one assuming I try that, thanks for advise BUT, i have heard of this RoR plugin for vim and what does it have? I assume Only text coloring? if I am wrong what else ?
<shevy> shinobi_one, yeah, at work I have exactly this
<shevy> they use different servers on different computers, the shebang lines are like /biosw/ubuntu blablabla /ruby
sambao21 has joined #ruby
<shevy> at home everything is sooooooo much easier
tedstriker has joined #ruby
xastion has quit [Quit: leaving]
<shevy> and no stupid IT to tell me it can't be done
<shinobi_one> shevy: haha
<shinobi_one> webgen: tpope is king https://github.com/tpope/vim-rails
wiku5_ has joined #ruby
<shevy> funny thing is, that guy setup a rack environment with puma, which is pretty awesome right? but I can not mount the part where the database is at, so it is totally useless to me
evenix has quit [Remote host closed the connection]
datacrusher has joined #ruby
george2 has joined #ruby
<webgen> shinobi_one will try ^.^
yfeldblum has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
<shinobi_one> webgen: i suggest learning vim on it's own first, without introducing plugins
evenix has joined #ruby
<shinobi_one> its*
<webgen> shinobi_one are you using mac ?
hiyosi has quit [Ping timeout: 240 seconds]
<shinobi_one> webgen: yes with macvim
<shinobi_one> webgen: i also use several linux distributions
sdouglas has quit [Remote host closed the connection]
<shinobi_one> webgen: usually with gvim
rudisimo has quit []
<webgen> shinobi_one theres my problem, I m mostly on windows lol, mac's too expensive
<shevy> webgen try notepad++
<shevy> I have to use that at work
<shinobi_one> webgen: if you want to write rails applications, please dualboot linux ;)
<shinobi_one> webgen: if you want to write any non-.net application, please dualboot linux ;)
<shinobi_one> webgen: you can get away with java though.. I GUESS
<webgen> shevy I do have it but whats the use? I didnt want to develop ruby on windows, I have heard there are potential problems, also i couldnt make the mysql bridge work
<centrx> If you want to do anything except play Windows-only games...
Hanmac has joined #ruby
<shinobi_one> ^ lol
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<webgen> shinobi_one yes I am on dualboot ^.^ xD
sambao21 has quit [Ping timeout: 240 seconds]
<shevy> webgen I have no idea, I abandoned windows 10 years ago and will not go back
<shevy> except for work where I have to use it :(
<shinobi_one> centrx: if you want to do anything that utilizes your gpu..
kzrl has quit [Ping timeout: 240 seconds]
<shinobi_one> shevy: you write ruby on windows?
TheLarkInn has quit [Quit: Leaving.]
<shevy> shinobi_one at work yeah
<shevy> on an english keyboard
<shevy> at home I have a german keyboard
<shevy> can you imagine how much that upsets my brain?
x1337807x has joined #ruby
claymore has quit [Quit: Leaving]
<shevy> this is why I also meant vim does the same thing... it fires into my neurones, I don't like that at all
<shevy> the strange thing is...
<shevy> they all use english keyboards at work :\
<webgen> shinobi_one is .net easier than RoR or wise versa?
Bish_ is now known as Bish
<shinobi_one> webgen: easier is in the eye of the beholder
<redlines> you can't take a german keyboard into work?
<shevy> on my german keyboard I always wondered why matz picked {} because they are so hard to type
evenix has quit [Ping timeout: 240 seconds]
<webgen> shinobi_one somehow i wanted to try RoR first
yxhuvud has quit [Remote host closed the connection]
<shevy> but on an english keyboard, they are actually easy to type
Hanmac1 has quit [Ping timeout: 264 seconds]
prc has joined #ruby
<shinobi_one> webgen: if you already know .net programming asp type stuff, then windows will be your friend, if you don't, maybe you can learn something else instead if you want
<shevy> redlines hmm
jonah_k has joined #ruby
<shevy> redlines I am not sure that works, I don't have admin rights on windows. is it possible to just replace one?
<shinobi_one> shevy: do you really have to code on windows though? can't you just run a virtualbox instance?
<webgen> shinobi_one yep, i am new to both so i was taking a week to decide which way to go lol
<shevy> shinobi_one well I can use putty so I have a unix "environment"
<shinobi_one> webgen: there is a lot to choose from when it comes to web applications, ruby/rails is not the only answer
<shevy> notepad however runs on the windows non-admin part
<shevy> I mean notepad++
yfeldblum has quit [Remote host closed the connection]
<webgen> shinobi_one what are others anyway?
maximski has joined #ruby
datacrusher has quit [Quit: Saindo]
Jork1 has joined #ruby
yfeldblum has joined #ruby
<shinobi_one> shevy: if you have enough ram (i would assume so for a small linux instance) i'd virtual box it all and share the directory where your code resides, but sshing to a linux box would work too, no need for notepad++ in either scenario
habanany has quit [Quit: Leaving.]
<redlines> shevy: i'm 99% sure you don't need admin rights to swap a keyboard in windows
moneydouble has quit [Quit: Leaving.]
<shinobi_one> webgen: python/django, php/somanyoptions, grooy/grails, so many to name you can google many
<redlines> you definitely don't to swap a mouse
mansi has quit [Remote host closed the connection]
<shevy> shinobi_one cool. how can I do so without admin rights though?
<shevy> redlines, ok
<webgen> shinobi_one shevy I preferred dual boot over VMing linux, i do have xp vm on this boot though xD
Jork1 has quit [Client Quit]
mansi has joined #ruby
<shinobi_one> shevy: what? you shouldn't need admin rights to run a virtualbox instance, if they won't allow you to install virtualbox becausey you don't have rights to install, than i don't know what to tell you
<shinobi_one> then*
<shevy> shinobi_one welcome to non-admin land!
TripTastic is now known as JBreit
<webgen> shinobi_one i dont want to quit CS so i will stick with one for start, i just didnt expect so many that you listed lol
<shinobi_one> shevy: you literally can't install anything on the computer you develop on?
<shevy> shinobi_one nope unless it is into user dir
<shinobi_one> webgen: there are so many languages/webframeworks it will blow your mind
<shevy> otherwise there comes that password query popup
<webgen> shevy just bring it preinstalled on the flash drive xD
<shinobi_one> shevy: flash drive
_Cody has quit [Ping timeout: 240 seconds]
<shevy> webgen I had to sign something to work there :(
joelbrewer has quit [Quit: Lost terminal]
echevemaster has joined #ruby
<webgen> shevy :S like what lol
<shinobi_one> shevy: maybe if you ask your admin nicely he'll let you install virtualbox and a linux instance to run on
<shevy> don't think I can sneak in USB devices and sneakily connect it somewhere
Kricir has quit [Remote host closed the connection]
moneydouble has joined #ruby
<webgen> hmm thats a weirdo workplace
<shevy> webgen blabla dont do this dont do that blabla dont store things outside blablabla
maximski has quit [Client Quit]
<shevy> and some intellectual property blablabla
<shinobi_one> shevy: you can run the vm storage off of your user directory, but you just need virtualbox installed
<webgen> shevy so you develop mainly in ruby? on windows?
figgleberry has quit [Ping timeout: 272 seconds]
slowcon_ has joined #ruby
<shevy> shinobi_one you don't know how that works asking - you ask and then you will get "sure, I'll do it right away" and then 2 weeks pass... you still wait)
sarlalian has joined #ruby
nisstyre has joined #ruby
<shevy> webgen well yeah but via putty mostly
mansi has quit [Ping timeout: 240 seconds]
<shevy> shinobi_one because they are like "omg this guy wants to burden me with extra work, how can I do away with him"
<webgen> shevy ye that sounds weird, sounds like company paid for windows, instead it could have had free linux :D
<shinobi_one> shevy: tell them they can do away with you if they install virtualbox for you which will take 5 minutes or less
<shevy> webgen well the IT department in the cellar is all on linux
Alina-malina has quit [Ping timeout: 265 seconds]
v4n has quit [Ping timeout: 240 seconds]
<webgen> shevy hopefully x)
dingus_khan has quit [Read error: Connection reset by peer]
<shevy> shinobi_one yeah you are very optimistic, you should meet them actually, that'll get rid of some of your optimism ;)
<RubyPanther> 25% of IT are *nix dwarves, and another 15% are gnomes, so underground linux works well
Alina-malina has joined #ruby
dingus_khan has joined #ruby
<shinobi_one> RubyPanther: the university i went to has a CS department where the CS lab is called the "dungeon" because it literally used to be underground in what smelled/looked like a dungeon
sailias has joined #ruby
DeanH has joined #ruby
chipotle_ has quit [Quit: cya]
reset has joined #ruby
DeanH has quit [Client Quit]
v4n has joined #ruby
v4n has quit [Changing host]
v4n has joined #ruby
<RubyPanther> Probably the wailing cries of 1st year undergrads flunking out and changing majors didn't help
crystal77 has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Quit: jgrevich]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
<shinobi_one> RubyPanther: it's not underground or smelly or bad anymore.. luckily it never was while i was there
DeanH has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
mclee_ has quit [Ping timeout: 264 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
funburn has joined #ruby
saarinen has joined #ruby
saarinen has quit [Client Quit]
jmau5_ has joined #ruby
Tamal has quit [Quit: Textual IRC Client: www.textualapp.com]
reset has quit [Ping timeout: 240 seconds]
endash has joined #ruby
xerox357_ has joined #ruby
TheLarkInn has joined #ruby
saarinen has joined #ruby
<RubyPanther> shevy: Randal Schwartz violated the details of his contract, to test security after noticing a bunch of security holes, and they sent him to (real, regular) prison for computer crimes. Used against him at trial was the fact that he repeatedly and intentionally bypassed security to connect to a remote email gateway.
Kricir has joined #ruby
ankov has joined #ruby
enebo has quit [Quit: enebo]
<RubyPanther> He was the first, and still one of the only, people convicted under Oregon's computer crime law
jmau5 has quit [Ping timeout: 240 seconds]
blueOxigen has quit [Ping timeout: 240 seconds]
<centrx> RubyPanther, Shlemiel's preregister licking automobile's conventionally?
<shinobi_one> RubyPanther: I would never work for a company that imposes that type of limitation (within reason) on me. So, I should be good right?
<RubyPanther> It was Intel
RaCx has quit [Quit: Computer has gone to sleep.]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shinobi_one> RubyPanther: So?
Jetchisel has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<RubyPanther> I agree though, I wouldn't sign that stuff either
ephantom has joined #ruby
<bnagy> doesn't matter, these days
xerox357 has quit [Ping timeout: 240 seconds]
<bnagy> never test any live system, ever, without written permission
<bnagy> unless you like jail
Azulinho has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
dorei has quit []
<RubyPanther> Right, this was in the 90s though, everybody did that, testing security was considered extra-credit by most back then
rootshift has joined #ruby
<bnagy> you can mostly test dead software ( static binaries or local copies of live systems ), but depends on country
xerox357_ has quit [Ping timeout: 240 seconds]
<bnagy> yeah the schwartz case was kind of s surprise
<bnagy> *a
v4n has quit [Ping timeout: 240 seconds]
<bnagy> having said that, violating your employment contract is not a criminal matter per se
beardofbees has joined #ruby
habanany has joined #ruby
<beardofbees> hey all
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> so there was already a criminal statue, just that prosecutions were super rare back then
jetblack has quit [Ping timeout: 240 seconds]
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
<beardofbees> I'm trying to use the json gem to convert a hash to json, but it's using => instead of :
<RubyPanther> If he hadn't been written up for the email gateway, he'd have probably been acquitted. It made him look sinister, because the jury didn't really understand that "remote email gateway" means, in modern language, "checked his webmail on break"
<bnagy> *statute dammit need coffee
jmau5_ has quit []
<shinobi_one> RubyPanther: he must have had a shitty lawyer
v4n has joined #ruby
ktosiek_ is now known as ktosiek
chipotle_ has joined #ruby
<bnagy> uh
<RubyPanther> No, he had a regular lawyer, and the DA went all out since it was the first case under the statute
<bnagy> guy was flat out guilty
<bnagy> sentence was kind of nuts, maybe
RaCx has joined #ruby
<bnagy> the thing is the computer crime statutes are extremely broad
<RubyPanther> Actually if you look at the law, it is not at all clear that a contractor on-the-job is covered
moneydouble has quit [Quit: Leaving.]
<shinobi_one> The real point here is that Intel is fu*king stupid for pressing charges on this guy for helping them out.
<bnagy> I don't think that's the real point
<RubyPanther> One thing is clear, if he did all the same stuff and was an employee not a contractor, he would not have been legally liable.
<bnagy> the real point is 06:53 < bnagy> never test any live system, ever, without written permission
chipotle has quit [Ping timeout: 240 seconds]
<apeiros> beardofbees: show code, input, actual output and expected output please
andrewlio has quit [Remote host closed the connection]
<apeiros> beardofbees: best via gist (gist.github.com)
<RubyPanther> As a contractor, he probably should not have been also because in Oregon a long-term contractor is considered an employee under most statutes
dh64 has joined #ruby
<bnagy> RubyPanther: I'd need to be convinced of even that. Plenty of employees get prosecuted now
invinceable has joined #ruby
<shinobi_one> In reality, I wouldn't give a contractor the ability to even have access to start testing security holes in my system.
<bnagy> mostly the laws just go by authorized
<RubyPanther> No, zero. None. Doesn't happen.
<RubyPanther> In other places perhaps, but those are other laws
<invinceable> what's the best way to read XML files as an object? versus having to loop through them and search for the names of the node.
kzrl has joined #ruby
<invinceable> is there a specific library available here in ruby that is best for that?
<RubyPanther> shinobi_one: Right, that was part of his defense, he was given root access to lots of systems as part of his normal work
<bnagy> shinobi_one: there is always access to test for security holes, because that's what access restrictions are
<beardofbees> apeiros, i am using hash.to_json. Expected output is {"key":"value} but I'm getting {"key"=>"value"}
<invinceable> sorry, i meant gem.
<apeiros> invinceable: nokogiri
<beardofbees> all the information is there, just using rocket instead of semicolon
jobewan has quit [Quit: Leaving]
<shinobi_one> RubyPanther: Intel is crazy for giving him that. Even crazier to sue someone for helping them out.
* shinobi_one makes a note of never working for Intel.
<beardofbees> apeiros, I'm not using rails, just ruby
<RubyPanther> shinobi_one: in hindsight, they've continued to have a hiring crunch, so it doesn't seem to have hurt them
<invinceable> aperios: thanks
<apeiros> beardofbees: without further information, I can't reproduce your issue. I get > {"key" => "value"}.to_json => "{\"key\":\"value\"}"
reset has joined #ruby
<shinobi_one> RubyPanther: Considering *they* are all they care about that's awesome!
vlad_starkov has joined #ruby
<ephantom> I'm a mostly beginner ruby person, I know ruby has great date conversion built in. If you have the year, and the number of days since the first of the year, what is best way to get a standard date from that? Example 58 days from Jan 1st would be Thursday February, 27 2014
<RubyPanther> I've been running AMD since then.
kukyakya has quit [Ping timeout: 240 seconds]
<shinobi_one> RubyPanther: haha for reals?
ktosiek has quit [Ping timeout: 272 seconds]
moneydouble has joined #ruby
<RubyPanther> yeah, for real, except for cloud/VPS
redlines has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
<bnagy> >> require 'date'; Date.parse("Jan 1") + 58
<eval-in___> bnagy => #<Date: 2014-02-28 ((2456717j,0s,0n),+0s,2299161j)> (https://eval.in/106689)
<shinobi_one> RubyPanther: I dig it. Although, I'm going to continue to use Intel products.
Asher has joined #ruby
<RubyPanther> I use Ruby, I'm obviously not targeting the top 5% of performance. I target the cost/performance ratio, so AMD would win anyway.
SegFaultAX has quit [Excess Flood]
methods has left #ruby [#ruby]
redlines has joined #ruby
<apeiros> beardofbees: I suspect you (for whatever reason) don't use to_json but to_s: {"key" => "value"}.to_s # => "{\"key\"=>\"value\"}"
sambao21 has joined #ruby
<RubyPanther> I can't avoid them totally, I've ended up with onboard intel audio chips, it is like a tax
<bricker> I'm using open-uri to get an image file and write it to a Tempfile. The open() call returns a StringIO, and I can call #read on it once to get the actual content, but after that it just returns an empty string. Why?
<shinobi_one> RubyPanther: haha
<ephantom> bnagy: Thanks!
<bnagy> bricker: StrinIO is exactly like an IO stream, once you read it it is at the end
<shinobi_one> bricker: you read it all up ;)
senayar has quit []
<bnagy> bricker: rewind it
lkba has quit [Ping timeout: 240 seconds]
<beardofbees> apeiros, I will look into that :)
<shinobi_one> beardofbees: what? you know if you used either #to_json or #to_s right?
<bricker> bnagy: d'oh... thanks!
<beardofbees> i definitely used to_json
v0n has joined #ruby
<webgen> shinobi_one the plugin was called vim-rails right?
axl_ has joined #ruby
<apeiros> shinobi_one: I suspect something like: `x.to_json; puts x`
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kukyakya has joined #ruby
<apeiros> which wouldn't work because to_json can't change x to become a json string.
vlad_starkov has quit [Ping timeout: 264 seconds]
dallasm_ has joined #ruby
BadQuanta has quit [Quit: Leaving.]
RaCx has quit [Quit: Computer has gone to sleep.]
<webgen> shinobi_one is it this one ? https://github.com/tpope/vim-rails
<shinobi_one> webgen: yes, but you should learn vim first
Aryasam has joined #ruby
<shinobi_one> webgen: there are tons of other very nice plugins as well for ruby/rails programming and programming in general
<invinceable> using nokogiri how do i return just the value of the xml. for example this returns: api_key = api_return.xpath("//api_key");
<webgen> shinobi_one ok was just checking for future reference, i decided to run VM from real partition, same one I am running now hehehe
<invinceable> returns <api_key>dasdasdsadsa</api_key>. I want just the value in that api_key element
mehlah has quit [Quit: Leaving...]
* shinobi_one afk
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
carlyle has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
fedesilva has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<beardofbees> got it working with the Oj gem instead
NalloK has joined #ruby
SCommette has quit [Quit: SCommette]
Megtastique has quit []
eka has joined #ruby
NalloK has quit [Max SendQ exceeded]
jbueza has joined #ruby
vjt has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
DeanH has joined #ruby
jjbohn has quit [Quit: Leaving...]
dallasm_ has quit [Remote host closed the connection]
temple3188 has joined #ruby
MJBrune has quit [Read error: Connection reset by peer]
garndt has quit [Quit: Connection closed for inactivity]
vjt has quit [Client Quit]
<bricker> This has me confused... Is there something obviously wrong, or is it more likely something internal to Paperclip? (this is a *really* old version of paperclip) https://gist.github.com/bricker/9261922
SegFaultAX has joined #ruby
<bricker> The only difference is calling `tempfile.rewind` before passing it into the processor
Xeago has joined #ruby
DeanH has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
gregf has quit [Quit: WeeChat 0.4.3]
linojon has quit [Quit: linojon]
DeanH has joined #ruby
<bricker> The response creates a StringIO by the way instead of a File, I think it's because of the small file size
centrx has quit [Quit: All this computer hacking is making me thirsty]
<toretore> makes sense to me
<apeiros> to me too
<apeiros> if you write to a file and don't rewind, a read on it will return nothing
sambao21 has joined #ruby
<toretore> paperclip is expecting an object that will give it data on `read`
<toretore> it `read`s and gets nothing
<toretore> because it's at eof
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<bricker> ah
codecop has quit [Remote host closed the connection]
<apeiros> Tempfile.new('foo').tap { |t| t.write("bar") }.read # => ""
evenix has joined #ruby
<bricker> I wonder why this stopped working for me just recently... or maybe it never worked and nobody complained until now
<apeiros> Tempfile.new('foo').tap { |t| t.write("bar"); t.rewind }.read # => "bar"
ukd1 has joined #ruby
NalloK has joined #ruby
dallasm_ has joined #ruby
<bricker> and my tests sucks
NalloK has quit [Max SendQ exceeded]
sarlalian has quit [Quit: WeeChat 0.4.0]
DouweM_ has quit [Ping timeout: 252 seconds]
vjt has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
marcgg has quit [Read error: Connection reset by peer]
aspires has quit [Read error: Connection reset by peer]
MJBrune has joined #ruby
MJBrune has joined #ruby
MJBrune has quit [Changing host]
agent_white has joined #ruby
marcgg has joined #ruby
aspires has joined #ruby
datreh_ has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 264 seconds]
v0n has quit [Quit: WeeChat 0.4.3]
bandsaw1961 has joined #ruby
sarlalian has joined #ruby
v0n has joined #ruby
baroquebobcat has quit [Ping timeout: 264 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jetblack has joined #ruby
datreh_ has joined #ruby
evenix_ has joined #ruby
NalloK has joined #ruby
jhn has quit [Ping timeout: 240 seconds]
flagg0204_ has quit [Ping timeout: 272 seconds]
NalloK has quit [Max SendQ exceeded]
flagg0204 has joined #ruby
beardofbees has left #ruby ["Leaving"]
Kricir has quit [Remote host closed the connection]
sepp2k has joined #ruby
jbueza has quit [Ping timeout: 272 seconds]
eka has quit [Ping timeout: 272 seconds]
Karu has quit [Ping timeout: 272 seconds]
<shinobi_one> bricker: fix them tests homie
hiyosi has joined #ruby
Karu has joined #ruby
mercwith1mouth has joined #ruby
x1337807_ has joined #ruby
nanoyak_ has joined #ruby
carlyle has joined #ruby
Matriks_ has joined #ruby
lmickh_ has joined #ruby
_zxq9_ has joined #ruby
peterhu_ has joined #ruby
joelroa_ has joined #ruby
tjr9898 has quit [Remote host closed the connection]
sarlalia1 has joined #ruby
Lewix_ has joined #ruby
x77686d has quit [Quit: x77686d]
gigetoo_ has joined #ruby
Derander_ has joined #ruby
ahuman_ has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
bricker_ has joined #ruby
rm_ has quit [Disconnected by services]
CaptainJet has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
eka has joined #ruby
kpshek has quit []
Lulzon_ has joined #ruby
jkamenik1 has joined #ruby
_Cody has joined #ruby
hermanmunster has joined #ruby
sambao21_ has joined #ruby
pigzzcan_ has joined #ruby
wgosling has joined #ruby
hiyosi has quit [Ping timeout: 269 seconds]
v4n has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
bricker_ has quit [Client Quit]
Rainicorn has joined #ruby
sarlalian has quit [Ping timeout: 272 seconds]
x1337807x has quit [Ping timeout: 272 seconds]
evenix has quit [Ping timeout: 272 seconds]
joelroa has quit [Ping timeout: 272 seconds]
nanoyak has quit [Ping timeout: 272 seconds]
peterhu has quit [Ping timeout: 272 seconds]
Derander has quit [Read error: Connection reset by peer]
webgen has quit [Read error: Connection reset by peer]
sepp2k1 has quit [Ping timeout: 272 seconds]
niftyn8 has quit [Ping timeout: 272 seconds]
lmickh has quit [Ping timeout: 272 seconds]
ahuman has quit [Ping timeout: 272 seconds]
wchun has quit [Ping timeout: 272 seconds]
Matriks has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Remote host closed the connection]
Bosox20051 has quit [Ping timeout: 272 seconds]
existensil has quit [Ping timeout: 272 seconds]
toddabrahm has quit [Ping timeout: 272 seconds]
budrose has quit [Ping timeout: 272 seconds]
pwh has quit [Ping timeout: 272 seconds]
gigetoo has quit [Ping timeout: 272 seconds]
lotherk has quit [Ping timeout: 272 seconds]
jxport has quit [Ping timeout: 272 seconds]
DefV_ has quit [Ping timeout: 272 seconds]
davedev2_ has quit [Ping timeout: 272 seconds]
sambao21 has quit [Ping timeout: 272 seconds]
DeanH has quit [Ping timeout: 272 seconds]
lewix has quit [Ping timeout: 272 seconds]
bricker has quit [Ping timeout: 272 seconds]
Lulzon has quit [Ping timeout: 272 seconds]
zxq9 has quit [Ping timeout: 272 seconds]
pigzzcanfly has quit [Ping timeout: 272 seconds]
agent_white has quit [Ping timeout: 272 seconds]
afex has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
end_guy has quit [Ping timeout: 240 seconds]
hololeap has quit [Ping timeout: 240 seconds]
slowcon_ has quit [Ping timeout: 272 seconds]
jkamenik has quit [Ping timeout: 272 seconds]
DanBoy has quit [Ping timeout: 240 seconds]
ankov has quit [Ping timeout: 272 seconds]
LadyRainicorn has quit [Ping timeout: 272 seconds]
zerun0 has quit [Ping timeout: 272 seconds]
koell has quit [Ping timeout: 272 seconds]
davedev24 has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
TMM has quit [Ping timeout: 272 seconds]
snath has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
sambao21_ is now known as sambao21
Derander_ is now known as Derander
slowcon__ has joined #ruby
gigetoo_ is now known as gigetoo
Spami has joined #ruby
zerun0 has joined #ruby
wiku5_ has quit [Ping timeout: 272 seconds]
v4n has joined #ruby
v4n has quit [Changing host]
v4n has joined #ruby
jxport has joined #ruby
Matriks_ has quit [Remote host closed the connection]
niftyn8 has joined #ruby
blackmesa has joined #ruby
toddabrahm has joined #ruby
afex has joined #ruby
__zxq9__ has joined #ruby
CaptainJet has quit [Read error: Connection reset by peer]
__zxq9__ has quit [Client Quit]
blackmesa has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm__ has joined #ruby
lotherk has joined #ruby
koell has joined #ruby
_zxq9_ has quit [Write error: Connection reset by peer]
__zxq9__ has joined #ruby
shashin has quit [Ping timeout: 272 seconds]
dh64 has quit [Excess Flood]
lkba has joined #ruby
Lewix_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
dh64 has joined #ruby
NalloK has joined #ruby
__zxq9__ is now known as zxq9
Bosox20051 has joined #ruby
x1337807_ has quit [Ping timeout: 264 seconds]
Beoran has quit [Ping timeout: 264 seconds]
jonno11 has joined #ruby
agent_white has joined #ruby
temple3188 has quit [Remote host closed the connection]
end_guy has joined #ruby
temple3188 has joined #ruby
jkamenik1 has quit [Quit: Leaving.]
dik_dak has quit [Ping timeout: 264 seconds]
alexju has quit [Remote host closed the connection]
rootshift has joined #ruby
binaryhat has joined #ruby
DefV has joined #ruby
dallasm_ has quit [Remote host closed the connection]
rsahae has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
v4n has quit [Ping timeout: 264 seconds]
jonah_k has quit [Remote host closed the connection]
havenwood has quit []
kitak has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
wjlafrance_ has quit [Quit: This computer has gone to sleep]
TMM has joined #ruby
dkamioka has quit [Remote host closed the connection]
aaronransley has joined #ruby
ryanfrancis has quit [Quit: ryanfrancis]
sdouglas has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
CaptainJet has joined #ruby