jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> zenspider lol
<shevy> as long as you were drunk it's all ok
eggoez has quit [Ping timeout: 240 seconds]
n008f4g_ has joined #ruby
qhartman has quit [Quit: Ex-Chat]
zacstewart has joined #ruby
sharpmachine has quit [Remote host closed the connection]
bruno- has joined #ruby
eggoez has joined #ruby
casadei_ has joined #ruby
chipotle has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Pupeno has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 265 seconds]
serivich has joined #ruby
tkuchiki has quit [Remote host closed the connection]
snockerton has quit [Quit: Leaving.]
casadei_ has quit [Ping timeout: 246 seconds]
mleung has joined #ruby
serivich has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
gard has quit [Ping timeout: 264 seconds]
davedev2_ has quit [Ping timeout: 246 seconds]
davedev24_ has joined #ruby
mrconfused has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
<chipotle> ?seen s2013
<ruboto> s2013, I don't know anything about seen
davedev2_ has joined #ruby
chipotle has quit [Quit: cheerio]
juanpablo_ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
davedev24_ has quit [Ping timeout: 248 seconds]
v4n has quit []
pawz has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Quit: WeeChat 1.2]
[SaM] has quit [Ping timeout: 256 seconds]
funnel has quit [Ping timeout: 265 seconds]
loc22 has quit [Quit: Be back later ...]
juanpablo_ has quit [Ping timeout: 240 seconds]
funnel has joined #ruby
hotpancakes has joined #ruby
pawz has joined #ruby
surs has joined #ruby
zenspider has quit [Quit: bye]
fgo has joined #ruby
Limix has quit [Quit: Limix]
surs4 has quit [Ping timeout: 265 seconds]
beef-wellington has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
zenspider has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrconfused has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 256 seconds]
_blizzy_ has quit [Ping timeout: 265 seconds]
sarkyniin has quit [Ping timeout: 252 seconds]
allcentury has quit [Ping timeout: 256 seconds]
mleung has quit [Quit: mleung]
GitGud has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
infinitone has quit [Remote host closed the connection]
chipotle has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
FernandoBasso has quit [Quit: WeeChat 1.2]
tomphp has joined #ruby
Ox0dea has joined #ruby
Crazy_Atheist has quit [Quit: Leaving]
<Ox0dea> bricker: It didn't work. I'm supposed to type seven asterisks, right?
[H]unt3r has joined #ruby
davedev2_ has quit [Ping timeout: 248 seconds]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
_ixti_ has joined #ruby
joast has quit [Quit: Leaving.]
<jhass> only if your stuff is ancient, else it's ⚫⚫⚫⚫⚫⚫⚫
scripore has quit [Quit: This computer has gone to sleep]
cajone has joined #ruby
towski_ has quit [Remote host closed the connection]
Aderium has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> TIL getty uses <input type="password" />.
<jhass> html5 is everywhere!
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
devdazed has joined #ruby
Musashi007 has quit [Quit: Musashi007]
davedev24_ has joined #ruby
surs1 has joined #ruby
blaines_ has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
sdothum has joined #ruby
surs has quit [Ping timeout: 248 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
scripore has joined #ruby
dfockler has joined #ruby
poguez_ has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 265 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
bruno- has quit [Ping timeout: 250 seconds]
RegulationD has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 256 seconds]
dfockler has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
Rodya_ has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
zacstewart has joined #ruby
_ixti_ has quit [Ping timeout: 264 seconds]
sharpmachine has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
ledestin has joined #ruby
blue_deref has joined #ruby
sharpmachine has quit [Ping timeout: 256 seconds]
surs2 has joined #ruby
Scroff has joined #ruby
surs1 has quit [Ping timeout: 252 seconds]
brain_shim has joined #ruby
dgutierrez1287 has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Scroff has quit [Ping timeout: 255 seconds]
nathanstitt has joined #ruby
loc22 has joined #ruby
josh has joined #ruby
josh is now known as Guest71946
quimrstorres has joined #ruby
hotpancakes has joined #ruby
matcouto has joined #ruby
brain_shim has quit [Ping timeout: 244 seconds]
gnudon has joined #ruby
omegahm has quit [Remote host closed the connection]
aaeron has quit [Quit: Leaving.]
Rodya_ has quit [Quit: Leaving...]
bffff_ has quit [Quit: Connection closed for inactivity]
n008f4g_ has quit [Ping timeout: 256 seconds]
pyon is now known as magical-imouto
v4n has joined #ruby
aaeron has joined #ruby
blaines has joined #ruby
quimrstorres has quit [Ping timeout: 246 seconds]
hotpancakes has quit [Ping timeout: 256 seconds]
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
Lucky___ has joined #ruby
blaines_ has joined #ruby
Azulinho has joined #ruby
eggoez has quit [Ping timeout: 248 seconds]
cajone has left #ruby [#ruby]
blaines has quit [Ping timeout: 248 seconds]
t_ has quit [Read error: Connection reset by peer]
i8igmac has joined #ruby
unreal has quit [Read error: Connection reset by peer]
[H]unt3r has quit [Quit: Leaving]
Guest71946 has quit [Ping timeout: 240 seconds]
GnuYawk has quit [Ping timeout: 264 seconds]
unreal has joined #ruby
Guest71946 has joined #ruby
blaines_ has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
t_ has joined #ruby
hal_9000 has quit [Quit: hal_9000]
eggoez has joined #ruby
wookiehangover has quit [Ping timeout: 248 seconds]
prestorium has joined #ruby
aaeron has quit [Quit: Leaving.]
omegahm has joined #ruby
quiXotic__ has joined #ruby
quiXotic__ has quit [Client Quit]
wookiehangover has joined #ruby
GnuYawk has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
surs3 has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
surs2 has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
chipotle has quit [Read error: Connection reset by peer]
riskish has joined #ruby
enders has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
thalassa has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
mase-chatter has quit [Quit: Leaving]
Hobogrammer_ has quit [Read error: Connection reset by peer]
fgo has joined #ruby
bungoman has joined #ruby
Hobogrammer has quit [Ping timeout: 244 seconds]
Guest71946 has quit [Ping timeout: 250 seconds]
Guest71946 has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
Musashi007 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
dgutierrez1287 has joined #ruby
christia_ has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
ValicekB has quit [Ping timeout: 246 seconds]
PlasmaStar has quit [Ping timeout: 246 seconds]
towski_ has joined #ruby
rikai has quit [Ping timeout: 264 seconds]
sdothum has quit [Ping timeout: 252 seconds]
juanpablo_ has joined #ruby
sharpmachine has joined #ruby
edwardly has quit [Ping timeout: 276 seconds]
rikai has joined #ruby
sdothum has joined #ruby
PlasmaStar has joined #ruby
ZeeNoodleyGamer has quit [Quit: WeeChat 1.2]
craysiii has joined #ruby
rbowlby_ has quit [Remote host closed the connection]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
prestorium has quit [Ping timeout: 264 seconds]
prestorium has joined #ruby
Guest71946 has quit [Ping timeout: 256 seconds]
juanpablo_ has quit [Ping timeout: 264 seconds]
<postmodern> is markdown now the defacto markup?
sharpmachine has quit [Ping timeout: 265 seconds]
<postmodern> even if you use the rdoc gem for documentation generation?
nfk has quit [Remote host closed the connection]
ValicekB has joined #ruby
Scroff has joined #ruby
jbw_ has quit [Ping timeout: 264 seconds]
howdoicomputer has quit [Ping timeout: 265 seconds]
fgo has quit [Quit: WeeChat 1.1.1]
dgutierrez1287 has quit [Remote host closed the connection]
rudak has joined #ruby
Hobogrammer has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
jbw_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Guest71946 has joined #ruby
fullofcaffeine has joined #ruby
howdoicomputer has joined #ruby
baweaver has quit [Remote host closed the connection]
kiki_lamb has quit [Ping timeout: 256 seconds]
hotpancakes has joined #ruby
quimrstorres has joined #ruby
[Keith] has quit [Ping timeout: 248 seconds]
TTilus has quit [Ping timeout: 244 seconds]
xsdg has quit [Ping timeout: 256 seconds]
jamo_ has quit [Ping timeout: 248 seconds]
kiki_lamb has joined #ruby
xsdg has joined #ruby
TTilus has joined #ruby
jamo_ has joined #ruby
zata has joined #ruby
arescorpio has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
quimrstorres has quit [Ping timeout: 265 seconds]
Scroff has quit [Ping timeout: 264 seconds]
aef has joined #ruby
zenguy_pc has quit [Ping timeout: 252 seconds]
zenguy_pc has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
j_mcnall_ has joined #ruby
j_mcnall_ has quit [Max SendQ exceeded]
j_mcnall_ has joined #ruby
RegulationD has joined #ruby
j_mcnally has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Ping timeout: 256 seconds]
zacstewart has quit [Remote host closed the connection]
radialneon has joined #ruby
howdoicomputer has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
tmtwd has joined #ruby
hmnhf has quit [Ping timeout: 252 seconds]
dgutierrez1287 has joined #ruby
iamse7en has joined #ruby
simplyianm has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 265 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
surs4 has joined #ruby
rudak has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
surs3 has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
jenrzzz has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 248 seconds]
loc22 has quit [Quit: Be back later ...]
ytti has quit [Ping timeout: 258 seconds]
Channel6 has quit [Quit: Leaving]
RandyT has joined #ruby
quimrstorres has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
yfeldblum has joined #ruby
metalic has joined #ruby
surs has joined #ruby
surs4 has quit [Ping timeout: 240 seconds]
mrconfused has joined #ruby
lavros has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
radialneon has quit [Read error: Connection reset by peer]
<nofxx> postmodern, I think so, long time no see a .rdoc
[k- has joined #ruby
mrconfused has quit [Ping timeout: 250 seconds]
rbowlby has joined #ruby
braincra- has quit [Quit: bye bye]
surs1 has joined #ruby
metalic has quit [Quit: Leaving]
juanpablo_ has joined #ruby
tkuchiki has joined #ruby
surs has quit [Ping timeout: 264 seconds]
sharpmachine has joined #ruby
casadei_ has joined #ruby
senayar has quit []
rbowlby has quit [Remote host closed the connection]
mike___1234 has quit [Ping timeout: 252 seconds]
juanpablo_ has quit [Ping timeout: 264 seconds]
zata has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has quit [Ping timeout: 264 seconds]
casadei_ has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
braincrash has joined #ruby
towski_ has quit [Remote host closed the connection]
<[k-> mwahahahaha
tkuchiki has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 256 seconds]
christia_ has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<[k-> I should grep the logs for <Ox0dea> >>
christiandsg has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
t_ has quit [Remote host closed the connection]
christiandsg has quit [Read error: Connection reset by peer]
jbw_ has quit [Ping timeout: 244 seconds]
t_ has joined #ruby
hotpancakes has joined #ruby
<Ox0dea> [k-: Having them all in close proximity like that makes me look like a total nutter. :P
<[k-> hue hue hue
<[k-> I should write a script for this
* Ox0dea is currently trying to figure out a symbols-only encoding of the Latin alphabet that doesn't break during regex interpolation.
<Ox0dea> 14 of the 29 ASCII symbols have meaning in regular expressions. :/
fallen_ has joined #ruby
junies has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
<junies> is it possible to make a pokemon game in ruby?
<Ox0dea> junies: Of course.
jbw_ has joined #ruby
<junies> what would it require Ox0dea
Azulinho has joined #ruby
<Ox0dea> Many things.
<[k-> wise words, wise words
<Ox0dea> junies: A comprehensive data source, a thoroughly contemplated object hierarchy, all the various formulae, and lots of special-casing for special moves and such.
icebourg has joined #ruby
howdoicomputer has joined #ruby
dudo has quit [Ping timeout: 265 seconds]
pengin has joined #ruby
darkf has joined #ruby
<[k-> wait a minute... you are trying to encode alphabets in symbols?!
hakunin has quit [Remote host closed the connection]
<Ox0dea> Just the Latin one.
v4n has quit []
tkuchiki has joined #ruby
<Ox0dea> And just lowercased letters, which I realize are technically "symbols", but I trust you catch my meaning.
tkuchiki has quit [Remote host closed the connection]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> common letters should be given one letter symbols like utf-8 does!
<[k-> or is that utf-7
gix has quit [Ping timeout: 264 seconds]
<Ox0dea> Well, I'd of course like to be able to just use one symbol for each letter, but then I won't be able to use the String =~ Regex trick to obtain the index into the alphabet.
RegulationD has joined #ruby
<Ox0dea> I'll have to loop for every character of every string. :/
sharpmachine has joined #ruby
<[k-> ah
nathanstitt has quit [Quit: I growing sleepy]
eggoez has joined #ruby
<[k-> you mean ?a =~ %r{,} == 0?
chipotle has joined #ruby
mike___1234 has joined #ruby
<i8igmac> im trying to setup a function for opening a url and handle all possible errors
zata has joined #ruby
<Ox0dea> i8igmac: Do you have nokogiri installed?
<i8igmac> well, if i remove that for the paste
<i8igmac> sorry
<i8igmac> 1 sec
<Ox0dea> Wait, what?
gix has joined #ruby
<i8igmac> without nokogiri, looks like eval.in dont have nokogiri
<chipotle> i just got out of a 300mg k hole
<chipotle> oops, wrong channel
<Ox0dea> Ha.
RegulationD has quit [Ping timeout: 246 seconds]
<i8igmac> so, ever once in a while i run into some errors that crash the script
<i8igmac> due to the connection
<i8igmac> in `read_nonblock': end of file reached (EOFError)
fallen_ is now known as atesec
Musashi007 has joined #ruby
<i8igmac> i hope to cover all errors that you could experience from a http connection
pengin has quit [Remote host closed the connection]
jbw_ has quit [Ping timeout: 244 seconds]
xcesariox has joined #ruby
<i8igmac> well, eval.in dont allow sockets
jbw_ has joined #ruby
reset has quit [Quit: Leaving...]
<Ox0dea> i8igmac: It's clear enough what you're trying to do, though.
<Ox0dea> But why do you want to do it manually rather than let the abstraction do what it's meant to?
<i8igmac> what do you mean
<Ox0dea> Well, HTTPError is there to catch the various non-200 response codes, and you're handling timeout and connection reset. Besides losing the connection (the cause of your EOFError, likely as not), what all do you feel you're missing?
arashb has joined #ruby
<Ox0dea> >> 'abc'['@#:' =~ /#/]
<ruboto> Ox0dea # => "b" (https://eval.in/396458)
<Ox0dea> [k-: More like that.
<[k-> ah
<Ox0dea> All of these have special meaning inside a regular expression: !$&()*+-./?[\]^
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<i8igmac> i was just looking for a cover all connection type error handling.
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<i8igmac> if my wifi connection goes out, for example will encounter a connection error
<[k-> ^ and $ only needs to be not in certain special cases
<Ox0dea> i8igmac: You'd probably bump into the timeout error in that case.
tjohnson has quit [Quit: Connection closed for inactivity]
<i8igmac> so i have that one covered ,-)
<Ox0dea> [k-: Right, but I'd be matching against *just* the character in order to obtain its index.
sharpmachine has quit [Remote host closed the connection]
<[k-> you forgot | <> "'
_blizzy_ has joined #ruby
hotpancakes has joined #ruby
<i8igmac> Ox0dea: so there are more errors i have to cover with this weak wifi signal
chipotle has quit [Quit: cheerio]
<i8igmac> more are to be found
poguez_ has quit [Quit: Connection closed for inactivity]
arashb has quit [Ping timeout: 256 seconds]
sharpmachine has joined #ruby
<i8igmac> the script crashing, is just lame
<i8igmac> i hope to retry ten times on all errors
<Ox0dea> i8igmac: Some programming environments don't think so.
<Ox0dea> It's quite common in some circles to let children die with reckless abandon, only to immediately reincarnate them.
<Ox0dea> It's quite strange, but it's just the right approach for some situations.
fabrice31 has joined #ruby
<[k-> shevy! he spoke in Oracle!
<i8igmac> lol
<i8igmac> you guys are to smart
v4n has joined #ruby
* [k- sends a pm to shevy
<Ox0dea> i8igmac: Still, I suspect you want $thing to loop indefinitely, so catching all the reasonable errors makes sense.
quimrstorres has joined #ruby
<[k-> [01:29:56] <ruboto> Ox0dea # => 2015-07-10 17:30:01 +0000 (https://eval.in/396404)
<[k-> [01:32:54] <ruboto> Ox0dea # => "abcdefghijklmnopqrstuvwxyz" (https://eval.in/396407)
<[k-> [01:32:53] <Ox0dea> >> _=$$/$$;[*?`...?{][_..-_]*''
<[k-> <Ox0dea> >> $_=$$/$$;@_=->_,__{_==[]?[]:[__[_[$_-$_]]]+@_[_[$_..-$_],__]}; foo = [1, 2, 3]; @_[foo, -> x { x + 1 }]
<[k-> [01:05:56] <ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/396394)
<[k-> [01:06:03] <Ox0dea> @_ is MAP there.
<[k-> [02:02:37] <Ox0dea> >> ?????:?:
<[k-> [02:02:38] <ruboto> Ox0dea # => /tmp/execpad-8e19d5c57214/source-8e19d5c57214:2: warning: string literal in condition ...check link for more (https://eval.in/396413)
<[k-> <Mon_Ouie> >> get_block = ->(&b) { b }; send = get_block[&:"send"]; send[:anything, "rand"]
<[k-> [01:07:55] <ruboto> Mon_Ouie # => 0.9301043372750087 (https://eval.in/396396)
<[k-> <Ox0dea> >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]] 
<[k-> 16:44 <ruboto> Ox0dea # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/396389)
<Ox0dea> Honestly.
<[k-> I had the wrong thing in my clipboard
<[k-> sorry!
<i8igmac> so, i just hit another error, => `rescue in rbuf_fill': Timeout::Error (Timeout::Error)
<Ox0dea> i8igmac: Right, you should be rescuing that error, nor TimeoutError.
<Ox0dea> *not
<i8igmac> script crashed, i thought i had timeout covered
<i8igmac> rescue Timeout::Error
* [k- makes a note to self: /msg only covers you for 1 line
icebourg has quit []
<Ox0dea> i8igmac: Yeah, that's weird.
<Ox0dea> You must have a really spotty connection. :/
<i8igmac> lol, ah i guess i should fix it
<[k-> Timeout is regarded as broken!
<Ox0dea> It's really not great.
fabrice31 has quit [Ping timeout: 240 seconds]
idiocrash has joined #ruby
<i8igmac> my connection is about 100 feet away
<[k-> it uses Threads to raise errors
<i8igmac> long range repeater
aef has quit [Remote host closed the connection]
<[k-> so it sleeps in the other thread
_blizzy_ has quit [Read error: Connection reset by peer]
<[k-> and when it wakes up, it raises an error
junies has quit [Ping timeout: 246 seconds]
quimrstorres has quit [Ping timeout: 264 seconds]
<[k-> so it can give you random errors at times
<i8igmac> i see
<Ox0dea> i8igmac: Windows?
<i8igmac> linux
<Ox0dea> You could do `while :; do ruby foo.rb; done`. :P
<Ox0dea> Just don't catch the errors and let your script start over. :P
<i8igmac> correction, my wireless connection is 1000 feet away
<Ox0dea> But don't actually do that.
<i8igmac> ah, i used to do everything this way
<i8igmac> its so ugly
willywos has joined #ruby
<Ox0dea> And almost useless if you're maintaining any sort of state.
<i8igmac> zero error handling, just start the script over
_blizzy_ has joined #ruby
<Ox0dea> [k-: Your IRC client should protect you from spewing.
<i8igmac> im trying to learn error handling, before i get so far ahead
<[k-> my irc client is android
<Ox0dea> i8igmac: The timeout library has great potential to sour that experience considerably.
<i8igmac> error handling procrastinating
Musashi007 has quit [Quit: Musashi007]
<i8igmac> i used to write my scripts, log everything... when a error was found to crash the script
<i8igmac> i would while `system('ruby script.rb STRING'); end
<Ox0dea> Catching and handling exceptions is obviously a good thing, but Timeout has ways of subverting your good intentions.
<i8igmac> with out running the script with string, the script would start off from its default state
lessless has joined #ruby
jimmythehat has quit [Remote host closed the connection]
<i8igmac> ill have to climb into my attic space and reconfigure my wireless repeater
zacstewart has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
startupality has joined #ruby
Scroff has joined #ruby
bungoman has quit [Remote host closed the connection]
sevenseacat has joined #ruby
chouhoulis has quit [Remote host closed the connection]
davedev24_ has quit []
arescorpio has quit [Quit: Leaving.]
t_ has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
casadei_ has joined #ruby
startupality has quit [Quit: startupality]
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
luriv_ has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
radialneon has joined #ruby
casadei_ has quit [Ping timeout: 256 seconds]
tmtwd has quit [Read error: Connection reset by peer]
radialneon_ has joined #ruby
v4n has quit []
meatchicken has quit [Ping timeout: 264 seconds]
meatchicken has joined #ruby
radialneon has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
iamse7en has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hmnhf has joined #ruby
idiocrash has quit []
baweaver_ has joined #ruby
surs2 has joined #ruby
surs1 has quit [Ping timeout: 248 seconds]
Fezzler has joined #ruby
hotpancakes has quit [Remote host closed the connection]
neanderslob has quit [Ping timeout: 256 seconds]
neanderslob_ has joined #ruby
baweaver_ has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
mrconfused has joined #ruby
mary5030 has quit [Remote host closed the connection]
<pontiki> hola hola
j_mcnall_ has quit [Ping timeout: 246 seconds]
skade has joined #ruby
skade has quit [Client Quit]
v4n has joined #ruby
quimrstorres has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
juanpablo_ has joined #ruby
<Ox0dea> >> $_=$$/$$;@_=->_{_==''?_:[*?`..?{]['. !#% & , :;<= >@_ `'=~/#{_[$.]}/]+@_[_[$_..-$_]]};_=->&_{_}[&:"#{@_['@%<#']}"];_[_[_[_['',@_['!: @@']],@_[' <!%@_=>@']][-$_-$_],@_['!=<@_']+?_+@_['&%_'],(''<<(_=$_+$_)**_**(_+$_)/(_+$_)-$_)+@_[',;%']],@_['<%`']]
quimrstorres has quit [Ping timeout: 264 seconds]
<ruboto> Ox0dea # => 2015-07-11 04:57:31 +0000 (https://eval.in/396475)
<Ox0dea> baweaver: I almost wish I were the one tasked with Muggling this thing.
<Ox0dea> Almost.
<sevenseacat> o.o
chinmay_dd has joined #ruby
<Ox0dea> It totally invokes Time.new.
surs3 has joined #ruby
<baweaver> Just a sec, finishing up practicing on a guitar solo.
idiocrash has joined #ruby
<Ox0dea> Roger.
juanpablo_ has quit [Ping timeout: 256 seconds]
<baweaver> Mr Crowley, old school Ozzy \o/
<sevenseacat> nice
<Ox0dea> \m/ \m/
<baweaver> that solo is going to take me a month though...
hotpancakes has joined #ruby
surs2 has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
symm- has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
t_ has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<baweaver> though either way that one would take a while
<[k-> you are totally doing the index thing!
<Ox0dea> [k-: But only because I get to use a limited alphabet.
<Ox0dea> I'd like to be able to generalize it.
mrconfused has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
DoubleMalt has quit [Ping timeout: 250 seconds]
<baweaver> How are you setting last line of STDIN I wonder... poke poke poke
<Ox0dea> baweaver: How do you mean?
<baweaver> thinking out loud
<baweaver> $_ is used a lot
<Ox0dea> I'm not touching stdin, though?
<baweaver> oh
<baweaver> it's set to one
<baweaver> derp
<baweaver> ignore that
<Ox0dea> I've repurposed $_ to be my 1 for every single one of these. :P
<[k-> following, Ox0dea's convention, me too
<Ox0dea> Well, I've used _ a few times if I only needed 1 at the top level to build other things, but it's pervasive in this one.
amclain has quit [Quit: Leaving]
t_ has quit [Ping timeout: 244 seconds]
<Ox0dea> baweaver: [k- made non-alphanumeric Infinity the other day.
<Ox0dea> With just twenty dollars, no less!
revath has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
riotjones has joined #ruby
<baweaver> >> _=$$/$$;_/(_-_)
<ruboto> baweaver # => divided by 0 (ZeroDivisionError) ...check link for more (https://eval.in/396478)
<baweaver> hm, doesn't work that way in ruby does it
<baweaver> drat
<baweaver> only floats
<Ox0dea> We can has non-alphanumeric Floats, of course.
mary5030 has joined #ruby
<[k-> ;)
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> mine was longer tho
<Ox0dea> Only just.
<[k-> I took the rational path
<Ox0dea> Well, as did I, but only because 2 ** -1 forced me to.
<[k-> I forgot what we both did
<[k-> my memory is really bad
<[k-> I should sleep more
<Ox0dea> >> [($_=$$/$$;$__=$_+$_;_=$_/$__;__=$__**($_-$__);_=_**(__**__);$_/_), (_=$$/$$;_=(_+_)**(_+_)**-_;_/(_-_))]
<ruboto> Ox0dea # => [Infinity, Infinity] (https://eval.in/396482)
revath1 has joined #ruby
<[k-> the first one is mine!
revath has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
<Ox0dea> Mine has butts in.
<Ox0dea> baweaver: Any idea what the hell `_[_[_[_[` is yet? :)
dseitz has joined #ruby
RegulationD has joined #ruby
<baweaver> Not quite
mary5030 has quit [Remote host closed the connection]
<baweaver> I derived that you have a T in there and the rest of the lower case alphabet
<Ox0dea> Aye, that feckin' T.
<baweaver> and somehow you're using special characters as an index retrieval for letters
<baweaver> that I bet spells out the rest of ime.now or something like it
sdothum has joined #ruby
<Ox0dea> Well, that's the overarching idea, more or less, but the actual mechanism of invocation is quite interesting.
<Ox0dea> I could've just used invoked `eval`, but that'd be lame.
chouhoulis has quit [Ping timeout: 248 seconds]
<baweaver> give me a bit, translating all occurrences of @_ function
GitGud has joined #ruby
prestorium has quit [Ping timeout: 256 seconds]
<Ox0dea> Mon_Ouie simultaneously spoiled and rekindled my fun in the same breath earlier, but revealing quite how would be a spoiler just yet.
<baweaver> ["c", "l", "a", "s", "s"]
RegulationD has quit [Ping timeout: 264 seconds]
<baweaver> working on the others
scripore has quit [Quit: This computer has gone to sleep]
<baweaver> symbol to proc up there.
Ropeney has joined #ruby
<Ox0dea> Nice! Hot on the trail.
lxsameer has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> and send
<baweaver> send.call
<baweaver> nested
<baweaver> ah that'll be fun
simplyianm has joined #ruby
KrzaQ has quit [Disconnected by services]
emdub_ has quit [Ping timeout: 256 seconds]
KrzaQ has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
<Ox0dea> Oh, come on! It's basically Scala. :P
<baweaver> >> self.send('class')
<ruboto> baweaver # => Object (https://eval.in/396493)
symm- has joined #ruby
<baweaver> hm
xcesariox has joined #ruby
<[k-> o_O
emdub has joined #ruby
<baweaver> >> self.send('', 'class')
<ruboto> baweaver # => undefined method `' for main:Object (NoMethodError) ...check link for more (https://eval.in/396495)
xcesariox has quit [Remote host closed the connection]
<Ox0dea> baweaver: Other way.
<Ox0dea> You'll need to channel your inner John McCarthy for this one.
DoubleMalt has joined #ruby
<baweaver> >> self.send('Time.now')
<ruboto> baweaver # => undefined method `Time.now' for main:Object (NoMethodError) ...check link for more (https://eval.in/396496)
<baweaver> I get the gist at least that somehow you're sending kernel or something upper level Time
<Ox0dea> Shall I reveal the "sane" version?
sharpmachine has quit [Ping timeout: 264 seconds]
mujou has quit [Quit: Leaving...]
<baweaver> const_get(Time)
<baweaver> nah
<Ox0dea> Excellent. :)
<Ox0dea> I mean, you're pretty much there.
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> It's probably something like kernel_send(const_get(Time), 'now')
<Ox0dea> You win.
<baweaver> translating the rest of it.
scripore has joined #ruby
<baweaver> New eh? I guess Time.new works too
towski_ has joined #ruby
<baweaver> >> Time.new
<ruboto> baweaver # => 2015-07-11 05:38:16 +0000 (https://eval.in/396501)
zacstewart has quit [Ping timeout: 248 seconds]
<Ox0dea> They're synonyous.
<Ox0dea> +m
<Ox0dea> Being able to #send means it's mostly trivial to convert any Ruby program to non-alphanumerics. ^_^
<Ox0dea> So many underscores, though! :/ If I end up doing a translator, I'll probably just use the Greek alphabet.
<Ox0dea> That puts a hard limit of 48 on local variables, but it should do.
<baweaver> String ancestors
<Ox0dea> Yep.
<baweaver> Kernel, huh
<[k-> Ox0dea I got NaN ;)
<Ox0dea> >> Object.include?(Kernel)
<ruboto> Ox0dea # => true (https://eval.in/396506)
<Ox0dea> [k-: That's, like, SuperNaN.
frem has quit [Quit: Connection closed for inactivity]
<Ox0dea> >> _=$$/$$;_=(_+_)**(_+_)**-_;(_-_)/(_-_)
<ruboto> Ox0dea # => NaN (https://eval.in/396508)
revath1 has quit [Ping timeout: 248 seconds]
symm- has quit [Read error: Connection reset by peer]
<[k-> :o
<Ox0dea> It's approximately 53% butts.
<sevenseacat> >> $$/($$-$$)
<ruboto> sevenseacat # => divided by 0 (ZeroDivisionError) ...check link for more (https://eval.in/396509)
<sevenseacat> \o/
<Ox0dea> DBZ error is best error.
<sevenseacat> and I'm done.
symm- has joined #ruby
<baweaver> though @_ returns a string
<baweaver> anyways
idiocras_ has joined #ruby
<[k-> turrdurrr I changed the - to + to get NaN https://eval.in/396510
<Ox0dea> baweaver: Almost.
<Ox0dea> send[foo, bar] is actually foo.send(bar).
<baweaver> forgot to correct that
<baweaver> I'd figured that out after poking it a bit.
<Ox0dea> But yeah, yer a wizard.
<Ox0dea> >> $_=$$/$$;@_=->_{_==''?_:[*?`...?{][' !# % & ,:;<>'=~/#{_[$.]}/]+@_[_[$_..-$_]]};->&_{_}[&:"#{@_[';#&!']}"]['',@_[':#,>%:#'],@_[';#<']]; Set
<ruboto> Ox0dea # => Set (https://eval.in/396513)
<baweaver> Nice try
<baweaver> Set on the end there.
<Ox0dea> For demonstration porpoises.
<atesec> whatcha doin
<Ox0dea> It's just meant to show that the principle can easily be applied to bring in dependencies.
<Ox0dea> atesec: We're making Ruby do very naughty things.
<sevenseacat> muggling.
<atesec> looks neat
<atesec> :)
<Ox0dea> Glad you think so.
<baweaver> Disclaimer
<baweaver> warning kids, don't try what you're seeing at home
<atesec> ive been reading for awhile but you guys are way outta my league so im just soaking up knowledge :P
<baweaver> or for gods sakes, in production
<sevenseacat> Ox0dea: is the king of making Ruby do very naughty things
<sevenseacat> atesec: its all crazy to me too, I'm just watching :) here, have some popcorn
<Ox0dea> atesec: Familiar with FizzBuzz?
<atesec> thanks! i forgot popcorn
kies^ has joined #ruby
<atesec> nope but im googling it now Ox0dea
<[k-> ah 0.0/0.0 is NaN and 1/0.0 is infinity
<Ox0dea> [k-: Because math says so.
idiocras_ has quit []
xkef has joined #ruby
<sevenseacat> dammit thats where i stuffed up in my NaN
<baweaver> >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
<ruboto> baweaver # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/396517)
<sevenseacat> >> ($$-$$)/($$-$$)
<ruboto> sevenseacat # => divided by 0 (ZeroDivisionError) ...check link for more (https://eval.in/396518)
<sevenseacat> dammit!
<baweaver> float, love
fabrice31 has joined #ruby
<[k-> not so easy!
<sevenseacat> oh man, I so want someone to use that in a programming interview
<baweaver> sevenseacat: I might have done that once after seeing that gem
<[k-> >> class Fixnum; def / other; self.to_f / other.to_f end end; ($$/$$-$$)
<ruboto> [k- # => -19064.0 (https://eval.in/396519)
<[k-> :o
<baweaver> Someone said programmers can't fizzbuzz
<baweaver> So I said watch and learn
<baweaver> and proceeded to horrify their junior selves
quimrstorres has joined #ruby
<Ox0dea> [k-: You forgot the other OOP.
<[k-> OOP?
<baweaver> order of operations
DoubleMalt has quit [Ping timeout: 246 seconds]
<[k-> ohhhhhh
<[k-> try dat
<[k-> tru*
<Ox0dea> But hey, at least we know you got PID 19065.
<baweaver> Do your parens know you've failed math?
<Ox0dea> Ha!
Alina-malina has joined #ruby
* baweaver bows
<sevenseacat> hehe
howdoicomputer has quit [Read error: Connection reset by peer]
<Ox0dea> [k-: And now we know you always use infix operators in your Haskell code.
fabrice31 has quit [Ping timeout: 256 seconds]
<baweaver> Ox0dea: took a bit longer than normal. Someone was celebrating today, brought in a bottle of Johnny Blue
<Ox0dea> Om nom nom.
<baweaver> still recovering a bit
<Ox0dea> Color me doubly impressed, then.
<Ox0dea> I do genuinely wanna Muggle something, though.
zata has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> Ox0dea: I came up with and implemented a good portion of Clairvoyant while tipsy.
<Ox0dea> I wonder if that Malbolge beam search could be repurposed to generate these.
quimrstorres has quit [Ping timeout: 256 seconds]
<Ox0dea> The Ballmer peak is real.
<[k-> oh gosh malbolge
<[k-> yes I use infix
Fezzler has quit [Quit: Leaving]
<Ox0dea> I think it's a fascinating language.
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> You have to actively fight the damned thing after every instruction executes.
<baweaver> Dante would be proud
<baweaver> speaking of which, DMC4 was rereleased on PS4
zacstewart has joined #ruby
<baweaver> <3
<baweaver> You all should buy one if you haven't yet </shameless-plug>
arashb has joined #ruby
<Ox0dea> That guy has never failed to remind me of Sephiroth.
revath has joined #ruby
<baweaver> Speaking of which
<baweaver> FF7 remake <3
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> comes out on PS4 first </shameless-hint>
hotpancakes has joined #ruby
arashb has quit [Ping timeout: 256 seconds]
zacstewa_ has joined #ruby
zacstewart has quit [Ping timeout: 248 seconds]
<[k-> <shameless-hint text="comes out on PS4 first" />
v4n has quit []
olistik has joined #ruby
xkef has quit [Read error: Connection reset by peer]
dellavg has joined #ruby
t_ has joined #ruby
Scroff has joined #ruby
<sevenseacat> plug, plug, plug
<Ox0dea> > obfuscated Ruby 2005 0x5adface
<baweaver> buy, buy, buy
<baweaver> Honestly though my income is more affected by me convincing people to join
rbowlby has joined #ruby
olistik has quit [Ping timeout: 256 seconds]
<Ox0dea> That's not to imply that membership is more profitable than game sales, of course.
rbowlby_ has joined #ruby
<baweaver> nope, just that my bottom line is more affected by recruiting other people than by convincing a few to buy a PS4.
casadei_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
Scroff has quit [Ping timeout: 264 seconds]
<sevenseacat> we'll get a PS4 one day
yfeldblum has quit [Ping timeout: 246 seconds]
<baweaver> Just recently got one myself honestly
<baweaver> I'm a Nintendo fanboy at heart
rbowlby has quit [Ping timeout: 248 seconds]
t_ has quit [Ping timeout: 240 seconds]
<sevenseacat> lot of good games coming out for PS4 later this year/early next year. will get one then.
rbowlby_ has quit [Ping timeout: 246 seconds]
casadei_ has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Ping timeout: 240 seconds]
hmnhf_ has joined #ruby
hmnhf has quit [Ping timeout: 246 seconds]
Zai00 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
surs3 has quit [Read error: No route to host]
acke_ has joined #ruby
acke_ has quit [Remote host closed the connection]
surs3 has joined #ruby
krz has joined #ruby
acke_ has joined #ruby
acke has quit [Ping timeout: 264 seconds]
bodgix_wrk has joined #ruby
zacstewa_ has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
ndrei has joined #ruby
rbowlby has joined #ruby
re9ulus has joined #ruby
charliesome has quit [Quit: zzz]
sharpmachine has joined #ruby
rippa has joined #ruby
jenrzzz has joined #ruby
ips|malc has joined #ruby
_blizzy_ has quit [Ping timeout: 255 seconds]
surs4 has joined #ruby
sharpmachine has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
surs3 has quit [Ping timeout: 256 seconds]
solars has joined #ruby
peter_paule has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
hmnhf__ has joined #ruby
SylarRuby has joined #ruby
hmnhf__ has quit [Client Quit]
hmnhf_ has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
juanpablo_ has joined #ruby
re9ulus has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jenrzzz has quit [Ping timeout: 246 seconds]
juanpablo_ has quit [Ping timeout: 264 seconds]
Mia has joined #ruby
Mia has joined #ruby
jenrzzz has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
Axy has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
tkuchiki has quit [Remote host closed the connection]
_ht has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
kies^ has quit [Ping timeout: 256 seconds]
idiocrash has joined #ruby
zacstewart has joined #ruby
t_ has joined #ruby
djbkd has quit [Quit: Leaving...]
tkuchiki has joined #ruby
mary5030 has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
quimrstorres has quit [Ping timeout: 265 seconds]
i8igmac has quit [Ping timeout: 246 seconds]
riotjones has joined #ruby
gnudon has quit [Read error: Connection reset by peer]
farn has joined #ruby
djbkd has joined #ruby
t_ has quit [Ping timeout: 248 seconds]
gard has joined #ruby
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
Sehryn has joined #ruby
acke has joined #ruby
Spami has joined #ruby
kies^ has joined #ruby
asif has joined #ruby
asif has left #ruby [#ruby]
Zai00 has quit [Client Quit]
hashrocket has quit [Quit: Connection closed for inactivity]
acke_ has quit [Ping timeout: 250 seconds]
hotpancakes has joined #ruby
jamesaxl has joined #ruby
Ilyas has joined #ruby
zacstewart has quit [Ping timeout: 255 seconds]
acke has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 250 seconds]
towski_ has quit [Remote host closed the connection]
Rollabunna has quit [Read error: Connection reset by peer]
[k- has quit [Ping timeout: 252 seconds]
acke has joined #ruby
Rollabunna has joined #ruby
Scroff has joined #ruby
simplyianm has quit [Remote host closed the connection]
MagePsycho has joined #ruby
t_ has joined #ruby
bodgix_wrk has quit [Quit: Leaving.]
hahuang61 has joined #ruby
bodgix_wrk has joined #ruby
Zai00 has joined #ruby
sharpmachine has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
Zai00 has quit [Client Quit]
hahuang61 has quit [Ping timeout: 248 seconds]
bodgix_wrk has quit [Ping timeout: 256 seconds]
xkef has joined #ruby
monod has joined #ruby
sharpmachine has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
xkef has quit [Read error: Connection reset by peer]
xkef has joined #ruby
CloCkWeRX has joined #ruby
zacstewart has joined #ruby
Rollabunna has quit [Remote host closed the connection]
farn has quit [Quit: farn]
Rollabunna has joined #ruby
farn has joined #ruby
surs4 has quit [Read error: Connection reset by peer]
zacstewart has quit [Read error: Connection reset by peer]
surs4 has joined #ruby
zacstewart has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
dgutierrez1287 has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
chinmay_dd has joined #ruby
robbyoconnor has joined #ruby
farn has quit [Quit: farn]
quimrstorres has joined #ruby
gthank has quit [Excess Flood]
Sehryn has quit [Ping timeout: 248 seconds]
gthank has joined #ruby
gthank has quit [Changing host]
gthank has joined #ruby
farn has joined #ruby
tkuchiki has quit [Remote host closed the connection]
r0bby_ has joined #ruby
xkef has quit [Ping timeout: 255 seconds]
surs has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 256 seconds]
r0bby_ is now known as robbyoconnor
quimrstorres has quit [Ping timeout: 246 seconds]
eGGsha has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
surs4 has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
acke has quit [Remote host closed the connection]
arup_r has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
ych_ has joined #ruby
idiocrash has quit []
ohaibbq has joined #ruby
[k- has joined #ruby
Musashi007 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
evanjs has joined #ruby
krz has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
baweaver has quit [Remote host closed the connection]
psy_ has quit [Quit: Leaving]
mike___1234 has quit [Ping timeout: 240 seconds]
suffice has quit [Ping timeout: 244 seconds]
allomov has joined #ruby
krz has joined #ruby
suffice has joined #ruby
RegulationD has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
SylarRuby has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
mike___1234 has joined #ruby
xkef has joined #ruby
lele is now known as Guest24
yfeldblum has joined #ruby
yfeldblu_ has joined #ruby
lkba_ has joined #ruby
havenwood has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
zacstewart has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
shadoi has quit [Quit: Leaving.]
frem has joined #ruby
roolo has joined #ruby
juanpablo_ has joined #ruby
timonv has quit [Quit: WeeChat 1.2]
fgo has joined #ruby
sharpmachine has joined #ruby
tacotaco_ has quit [Quit: leaving]
timonv has joined #ruby
Musashi007 has quit [Quit: Musashi007]
juanpablo_ has quit [Ping timeout: 252 seconds]
sharpmachine has quit [Ping timeout: 255 seconds]
ytti has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
ohaibbq has quit [Quit: Leaving...]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[k- has joined #ruby
arquebus has joined #ruby
<shevy> oh damn, you are a game cat
kies^ has joined #ruby
Jackneill has joined #ruby
_blizzy_ has joined #ruby
arquebus has quit [Quit: konversation disconnects]
evanjs has quit [Remote host closed the connection]
bashusr has quit [Ping timeout: 252 seconds]
atesec has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
cscheib has quit [Ping timeout: 276 seconds]
bricker has quit [Ping timeout: 256 seconds]
i8igmac has joined #ruby
kedibasi has joined #ruby
cscheib has joined #ruby
kedibasi has quit [Client Quit]
rbowlby has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 256 seconds]
bashusr has joined #ruby
El3ktra has quit [Ping timeout: 264 seconds]
DoubleMalt has joined #ruby
bronson has joined #ruby
bricker has joined #ruby
gard has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
olistik has joined #ruby
fullofcaffeine has joined #ruby
zacstewart has joined #ruby
hotpancakes has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
atesec has joined #ruby
kies^ has quit [Ping timeout: 250 seconds]
fullofcaffeine has quit [Ping timeout: 250 seconds]
olistik has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0.1]
bricker has quit [Ping timeout: 264 seconds]
bricker has joined #ruby
El3ktra has joined #ruby
n008f4g_ has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
MarkTurner has joined #ruby
MarkTurner is now known as Chromium
Chromium is now known as MarkTurner
bricker has quit [Remote host closed the connection]
bricker has joined #ruby
bodgix_wrk has joined #ruby
NeverDie has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peter_paule has quit [Ping timeout: 265 seconds]
hanyn has joined #ruby
haneen has quit [Read error: Connection reset by peer]
hanine has joined #ruby
tacotaco_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 264 seconds]
bricker has joined #ruby
sharpmachine has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
hanyn has quit [Ping timeout: 244 seconds]
surs1 has joined #ruby
olistik has joined #ruby
surs has quit [Ping timeout: 264 seconds]
arashb has joined #ruby
sharpmachine has quit [Ping timeout: 256 seconds]
bricker has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
zz_Outlastsheep is now known as Outlastsheep
arashb has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
sdothum has joined #ruby
psy_ has joined #ruby
tomphp has joined #ruby
JMoir has joined #ruby
whiteline has joined #ruby
<JMoir> Hey, for some reason this code won't add anything to the database. When it is ran nothing happens, the database file sits their empty. https://gist.github.com/jamalmoir/50b46fa2fd19bfb566d2
ruby-lang922 has joined #ruby
Rollabun_ has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
<sevenseacat> validation errors?
spider-mario has joined #ruby
<sevenseacat> what does User.create return?
fabrice31 has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
<JMoir> I don't get any errors, it just does nothing.
Rollabunna has joined #ruby
<sevenseacat> you wouldnt get any, because youre not checking for them
leonardoajim has quit [Quit: Be back later ...]
<JMoir> Haha, right. But the database is empty and I'm specifically putting in data that is valid, so there shouldn't be a problem right?
konsolebox has joined #ruby
<sevenseacat> check and see? :)
fabrice31 has quit [Ping timeout: 252 seconds]
<sevenseacat> what does User.create return?
ruby-lang922 has left #ruby [#ruby]
simplyianm has joined #ruby
ruby-lang722 has joined #ruby
FernandoBasso has joined #ruby
allcentury has joined #ruby
dfockler has joined #ruby
eGGsha has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
<JMoir> Ah, it's setting the id to nil
zacstewart has joined #ruby
simplyianm has quit [Ping timeout: 248 seconds]
ruby-lang722 has quit [Ping timeout: 246 seconds]
melter has quit [Ping timeout: 246 seconds]
<JMoir> I thought property :id, Serial is supposed to create an autoincrementing integer, why is it set to nil?
dfockler has quit [Ping timeout: 248 seconds]
<sevenseacat> do you have any validation errors on the user record?
<JMoir> Ah... The password hash is too long
<sevenseacat> :)
<JMoir> Haha, thanks xD
<sevenseacat> np
Ropeney has joined #ruby
lkba has joined #ruby
joelataylor has quit [Quit: Be back later ...]
<JMoir> Yup, that was it. All working now :)
<sevenseacat> good stuff
[k- has quit [Ping timeout: 244 seconds]
<ledestin> I've seen people embed Github code into web pages, but all I can find is gist-it. Those embeds that I've seen were like "hosted with love by Github"
lkba_ has quit [Ping timeout: 246 seconds]
<ledestin> any ideas?
<sevenseacat> ledestin: use the embed URL on a gist?
<ledestin> sevenseacat ah, right, they only do gists :(
<sevenseacat> got an example of what you mean, then?
MarkTurner has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
MarkTurner has joined #ruby
<ledestin> sevenseacat gits-it works, I just wanted a beautiful footer http://gist-it.appspot.com/
<sevenseacat> guess that's a no
MarkTurner has quit [Read error: Connection reset by peer]
<ledestin> sevenseacat there's example embedded
<ledestin> those that I mentioned earlier are apparently gists by Github
<sevenseacat> indeed.
<sevenseacat> thats why i asked :P
<ledestin> but gists won't do
melter has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
bubbys has quit [Ping timeout: 264 seconds]
juanpablo_ has joined #ruby
ada2358 has quit [Ping timeout: 256 seconds]
ada2358 has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Musashi007 has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
surs2 has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
omegahm has quit [Remote host closed the connection]
surs1 has quit [Ping timeout: 264 seconds]
peter_paule has joined #ruby
randiman has joined #ruby
DLSteve has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
braincrash has quit [Ping timeout: 252 seconds]
braincra- has joined #ruby
braincra- is now known as braincrash
sharpmachine has joined #ruby
bubbys has joined #ruby
yfeldblu_ has quit [Ping timeout: 248 seconds]
randiman has quit [Quit: (null)]
omegahm has joined #ruby
ht__ has joined #ruby
quimrstorres has joined #ruby
sharpmachine has quit [Ping timeout: 246 seconds]
denym_` has joined #ruby
Musashi007 has joined #ruby
<denym_`> Hey guys! Is there an escape sequence that also does the auto indentation? Like I have 2 Spaces in front of a text and do a \n at the end that the newline is also already 2 spaces?
Renich has quit [Quit: leaving]
neanderslob_ has quit [Read error: Connection reset by peer]
nfk has joined #ruby
MarkTurner has joined #ruby
jroith has joined #ruby
<hanmac> denym_`: it depends what you want to indent ... if its html or xml code you can use nokogiri for indenting
hotpancakes has joined #ruby
<jhass> I'd say the answer is no
peter_paule has quit [Ping timeout: 264 seconds]
surs3 has joined #ruby
mike___1234 has quit [Ping timeout: 256 seconds]
timonv has quit [Ping timeout: 250 seconds]
rbowlby has joined #ruby
edwinvdgraaf has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
peter_paule has joined #ruby
bodgix_wrk has quit [Quit: Leaving.]
surs2 has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
eGGsha is now known as eGGshke
AlphaAtom has joined #ruby
eGGshke is now known as eGGsha
Squarepy has joined #ruby
surs4 has joined #ruby
surs3 has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
stan has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
mahmoudmahfouz has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
MarkTurner has quit [Remote host closed the connection]
jroith has quit [Quit: Linkinus - http://linkinus.com]
jenrzzz has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby
bodgix_wrk has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
jroith has joined #ruby
Rollabun_ has joined #ruby
ips|malc has joined #ruby
<MagePsycho> hi guys
Rollabunna has quit [Ping timeout: 264 seconds]
<MagePsycho> thanks a ton to this channel
riotjones has quit [Ping timeout: 246 seconds]
<MagePsycho> i was able to run ruby + mechanize
MarkTurner has joined #ruby
bricker has joined #ruby
peter_paule has quit [Ping timeout: 265 seconds]
bricker has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
stan has quit [Ping timeout: 246 seconds]
davedev24_ has joined #ruby
bodgix_wrk is now known as bodzio
peter_paule has joined #ruby
hotpancakes has joined #ruby
bodzio has quit [Quit: Leaving.]
bricker has quit [Ping timeout: 240 seconds]
quimrstorres has joined #ruby
FernandoBasso has quit [Ping timeout: 256 seconds]
anisha has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
teoric has joined #ruby
eGGsha is now known as eGGshke
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 240 seconds]
mike___1234 has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
leonardoajim has joined #ruby
FernandoBasso has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Papierkorb has joined #ruby
ndrei has joined #ruby
peter_paule has quit [Ping timeout: 244 seconds]
zacstewart has joined #ruby
davedev2_ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
<wasamasa> I hope that's your blog screwing with indentation and not you
davedev24_ has quit [Ping timeout: 248 seconds]
fabrice31 has joined #ruby
postmodern has quit [Quit: Leaving]
hakunin has joined #ruby
zacstewart has quit [Ping timeout: 255 seconds]
omegahm has quit [Quit: YourBNC - (https://yourbnc.co.uk)]
fabrice31 has quit [Ping timeout: 246 seconds]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
allcentury has quit [Ping timeout: 248 seconds]
d3v has quit []
peter_paule has joined #ruby
Rollabun_ has joined #ruby
chinmay_dd has quit [Ping timeout: 265 seconds]
quimrstorres has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
peter_paule has quit [Ping timeout: 252 seconds]
surs has joined #ruby
hotpancakes has joined #ruby
lxsameer has quit [Quit: Leaving]
MagePsycho has quit [Ping timeout: 244 seconds]
surs4 has quit [Ping timeout: 256 seconds]
ips|malc has joined #ruby
jimmythehat has joined #ruby
juanpablo_ has joined #ruby
fantazo has quit [Quit: Verlassend]
hotpancakes has quit [Ping timeout: 246 seconds]
chinmay_dd has joined #ruby
hosttor has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
Timba-as has joined #ruby
jimmythehat has quit [Quit: Lost terminal]
xlogic has joined #ruby
scripore has joined #ruby
Timba-as has quit [Ping timeout: 246 seconds]
prestorium has joined #ruby
phutchins2 has joined #ruby
xlogic has quit [Client Quit]
anisha has quit [Ping timeout: 264 seconds]
MagePsycho has joined #ruby
dellavg has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Read error: Connection reset by peer]
serivich has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
_blizzy_ has joined #ruby
bricker has joined #ruby
xkef has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
Timba-as has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
simplyianm has joined #ruby
sharpmachine has joined #ruby
lordkryss has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
Musashi007 has quit [Quit: Musashi007]
mercwithamouth has quit [Ping timeout: 240 seconds]
simplyianm has quit [Ping timeout: 248 seconds]
sharpmachine has quit [Ping timeout: 264 seconds]
xkef has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
revath has quit [Ping timeout: 265 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabun_ has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
ndrei has joined #ruby
freerobby has joined #ruby
segfalt has joined #ruby
lkba_ has joined #ruby
prestorium has quit [Ping timeout: 246 seconds]
n008f4g_ has joined #ruby
olistik has quit [Remote host closed the connection]
quimrstorres has joined #ruby
eGGsha has joined #ruby
freerobby has quit [Client Quit]
lkba has quit [Ping timeout: 248 seconds]
victortyau has joined #ruby
peter_paule has joined #ruby
nfk has quit [Quit: yawn]
tomphp has joined #ruby
lkba has joined #ruby
[k- has joined #ruby
surs1 has joined #ruby
surs has quit [Ping timeout: 246 seconds]
lkba_ has quit [Ping timeout: 256 seconds]
tomphp has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
quimrsto_ has joined #ruby
monod has quit [Quit: Sto andando via]
chouhoulis has joined #ruby
scripore has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrsto_ has quit [Remote host closed the connection]
mahmoudmahfouz has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
evanjs has joined #ruby
arashb has joined #ruby
joelataylor has joined #ruby
GPrime has joined #ruby
teoric has quit [Ping timeout: 252 seconds]
devdazed has joined #ruby
davedev2_ has quit [Ping timeout: 248 seconds]
davedev24_ has joined #ruby
arashb has quit [Ping timeout: 264 seconds]
devdazed has quit [Read error: Connection reset by peer]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devdazed has joined #ruby
davedev2_ has joined #ruby
zacstewart has joined #ruby
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
surs2 has joined #ruby
dagda1 has joined #ruby
surs1 has quit [Ping timeout: 256 seconds]
davedev24_ has quit [Ping timeout: 248 seconds]
bsdbofh has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Ping timeout: 248 seconds]
yardenbar has quit [Ping timeout: 265 seconds]
evanjs has quit [Remote host closed the connection]
wlknsn has joined #ruby
<wlknsn> Afternoon guys
<wlknsn> Excited to join my new job on monday doing ruby, I'm being put through a 'Ruby Bootcamp'
lessless has joined #ruby
quimrstorres has joined #ruby
<jhass> ?guys
<ruboto> we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<jhass> ;)
<wlknsn> apologies
quimrstorres has quit [Remote host closed the connection]
<wlknsn> I meant guys and gals alike, here in England guys when spoken to kinda means both so please excuse my ignorance
<jhass> yeah, it's regionally different
<shevy> yeah
<shevy> you guys rock!
<shevy> it means both things at the same time!!!
<jhass> shevy: if you're bored write some Ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> I am not bored at all, I am excited and happy
Rutix has joined #ruby
Rutix has joined #ruby
tmtwd has joined #ruby
sharpmachine has joined #ruby
AlphaAtom has joined #ruby
<shevy> I wonder if Aderium solved his solaris problem
xkef has quit [Ping timeout: 252 seconds]
revath has joined #ruby
SCHAAP137 has joined #ruby
juanpablo_ has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
sharpmachine has quit [Ping timeout: 256 seconds]
<[k-> Poor shevy
<[k-> Shevy: did you see Ox0dea's oracle talk? :>
yardenbar has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
<shevy> [k- yeah
<shevy> <Ox0dea> It's quite common in some circles to let children die with reckless abandon, only to immediately reincarnate them.
<shevy> however soon after that you invoked his cthulhu code [k-
<shevy> the oracle was not approving of those many lines from you [k- -> <Ox0dea> Honestly. <-- The Oracle was not happy.
<[k-> Telling you that triggered his unhappiness :(
<[k-> It was an accident!
<shevy> hmm I just stumbled over this code written by someone else: Math::log10
<shevy> that is more commonly written as Math.log10 these days right?
juanpablo_ has quit [Ping timeout: 255 seconds]
<[k-> Yes
beef-wellington has joined #ruby
Rollabun_ has joined #ruby
kobain has joined #ruby
hotpancakes has joined #ruby
but3k4 has joined #ruby
fenjamin has joined #ruby
<shevy> I got all sorts of old weirdness Math::sin 45.degrees
Rollabunna has quit [Ping timeout: 256 seconds]
olistik has joined #ruby
surs3 has joined #ruby
dgutierrez1287 has joined #ruby
<shevy> the ruby cgi stdlib also has those old ways all over everywhere
<shevy> util.rb: # print CGI::unescapeElement(
<shevy> html.rb: s << CGI::escapeHTML(value.to_s)
<shevy> even camelcased methods!
<jhass> old crufty stuff is old and crufty
fabrice31 has joined #ruby
hotpancakes has quit [Ping timeout: 250 seconds]
surs2 has quit [Ping timeout: 264 seconds]
radialneon_ has quit [Remote host closed the connection]
radialneon has joined #ruby
olistik has quit [Ping timeout: 246 seconds]
Rollabun_ has quit [Remote host closed the connection]
MarkTurner has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
<fenjamin> is there a place to go for a more introductory conversation on Ruby?
<shevy> well this here is #ruby
<[k-> Should we have a #ruby-beginner
<shevy> so your topic is about ruby so it's a good topic to be had for #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
<[k-> there is one for haskell
<shevy> that's ok, haskell needs that
MarkTurner has joined #ruby
<fenjamin> im trying to write a method that takes an integer as its input and returns a comma separated integer as a string
unshadow has joined #ruby
<[k-> You mean method(1000) == "1,000"?
<jhass> fenjamin: call to_s and then forget that it's a number, view it as a series of characters in which you want to inject commas
peter_paule has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
halfdan has joined #ruby
<jhass> also there's ##new2ruby but you're just as welcome here ;)
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xkef has joined #ruby
<halfdan> is there a way to use Dir.glob and find directories that do NOT contain a file?
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mahmoudmahfouz has joined #ruby
<shevy> halfdan just obtain all entries, and apply a .select or .reject
AlphaAtom has joined #ruby
<shevy> on the directories there (File.directory? query)
hosttor has quit [Ping timeout: 265 seconds]
mahmoudmahfouz has quit [Client Quit]
AlphaAtom has quit [Max SendQ exceeded]
<[k-> He wants empty directories
AlphaAtom has joined #ruby
<[k-> Probably a delete script
<[k-> Gotta rid those damned empties
AlphaAtom has quit [Max SendQ exceeded]
Sehryn has joined #ruby
AlphaAtom has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
FernandoBasso has joined #ruby
tmtwd has quit [Remote host closed the connection]
fenjamin has quit [Quit: 离开]
jwaldrip has joined #ruby
tmtwd has joined #ruby
revath has left #ruby [#ruby]
gizmore has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> perhaps he wants to fill them with files!
eggoez has quit [Ping timeout: 256 seconds]
surs4 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
surs3 has quit [Ping timeout: 256 seconds]
Thomas-0725 has joined #ruby
Rollabun_ has joined #ruby
<[k-> So if there are no empty directories, what's he gonna do
_blizzy_ has quit [Ping timeout: 248 seconds]
<shevy> dance
scripore has joined #ruby
eggoez has joined #ruby
<[k-> I'll show you my NaN and Infinity!
c355E3B has joined #ruby
Rollabunna has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
gnudon has joined #ruby
tkuchiki has joined #ruby
<jhass> you too are so helpful
<jhass> er, *two even
<gizmore> NaN + 2 == NaP
<[k-> We cant help if he doesnt respond
<[k-> >> "NaN".succ.succ
<ruboto> [k- # => "NaP" (https://eval.in/396658)
<[k-> Indeed!
<gizmore> :)
chouhoulis has quit [Ping timeout: 240 seconds]
GitGud has quit [Read error: Connection reset by peer]
<shevy> oh but we already helped, the problem is solved!
GitGud has joined #ruby
<shevy> brb need to start mate-desktop
shevy has quit [Quit: ""]
beef-wellington has quit [Ping timeout: 256 seconds]
Timba-as has quit [Quit: Be back later ...]
shevy has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
hotpancakes has joined #ruby
bricker has joined #ruby
xkef has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
MagePsycho has quit [Quit: MagePsycho]
mmasaki has quit [Quit: bye]
mmasaki has joined #ruby
eggoez has joined #ruby
shevy has quit [Quit: ""]
ndrei has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
sharpmachine has joined #ruby
mmasaki has quit [Client Quit]
mmasaki has joined #ruby
timonv has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
sharpmachine has quit [Ping timeout: 248 seconds]
bricker has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
dgutierrez1287 has joined #ruby
eGGsha is now known as eGGshke
ferr has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
Thomas-0725 has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
Thomas-0725 has joined #ruby
hotpancakes has joined #ruby
tfitts has quit [Remote host closed the connection]
tfitts has joined #ruby
GPrime has quit [Max SendQ exceeded]
dgutierrez1287 has quit [Remote host closed the connection]
lalalaaa has joined #ruby
acke has joined #ruby
dgutierrez1287 has joined #ruby
acke has quit [Remote host closed the connection]
<lalalaaa> Anybody know how to `gem install eventmachine` on FreeBSD? error: cannot initialize a parameter of type 'rb_fdset_t *' with an rvalue of type 'fd_set *' -- https://gist.github.com/anonymous/eab1a155289c25b23494
charliesome has joined #ruby
schov has joined #ruby
GPrime has joined #ruby
nathanstitt has joined #ruby
edwardly has quit [Ping timeout: 256 seconds]
acke has joined #ruby
Sehryn has quit [Ping timeout: 248 seconds]
bricker has quit [Ping timeout: 265 seconds]
hashrocket has joined #ruby
<schov> hello, noob q - I'm wondering how to run a program within atom.io without resorting to command line
bricker has joined #ruby
Sehryn has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
<joneshf-laptop> does `require` only look in `lib`?
acke_ has joined #ruby
<jhass> joneshf-laptop: through all of $LOAD_PATH
hotpancakes has quit [Ping timeout: 256 seconds]
<jhass> in the case of a gem rubygems adds all require_paths to the $LOAD_PATH
nathanstitt has quit [Client Quit]
<jhass> (as specified in the gemspec)
MarkTurner has quit [Ping timeout: 256 seconds]
SilentEcho has joined #ruby
nathanstitt has joined #ruby
<joneshf-laptop> How does `lib` get into `$LOAD_PATH`?
whomp has joined #ruby
<joneshf-laptop> pry seems to only mention global path stuff
<joneshf-laptop> nothing local
SilentEcho has quit [Client Quit]
<joneshf-laptop> or maybe not, "How does `lib` get into `$LOAD_PATH`?", but when does require look outside of that for a `lib` directory?
<jhass> you (or something, e.g. rubygems or bundler) adds it
nathanstitt has quit [Client Quit]
<joneshf-laptop> so it might be something rspec is doing?
acke has quit [Ping timeout: 248 seconds]
<jhass> mmh, I don't think rspec adds lib, but your spec_helper.rb might
<pontiki> also depends how rspec is invoked
allcentury has joined #ruby
eGGshke is now known as eGGsha
<joneshf-laptop> `rspec`
SilentEcho has joined #ruby
<joneshf-laptop> hmm, looks like it does somewhere: http://www.rubydoc.info/github/rspec/rspec-core/file/README.md#Get_Started
bricker has quit [Ping timeout: 265 seconds]
<joneshf-laptop> that's really confusing
<joneshf-laptop> jhass, thanks!
bricker has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
bronson has joined #ruby
snakehsu has joined #ruby
havenwood has joined #ruby
zacstewart has joined #ruby
niemcu has joined #ruby
bigsky has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigsky has left #ruby [#ruby]
bigsky has joined #ruby
bigsky has quit [Remote host closed the connection]
bigsky has joined #ruby
<bigsky> hi all
bigsky_ has joined #ruby
<jhass> hi
bricker has quit [Ping timeout: 240 seconds]
<havenwood> hi
bronson has quit [Ping timeout: 264 seconds]
christiandsg has joined #ruby
<[k-> jhass just wasted some bytes
<[k-> Be thankful!
zacstewart has quit [Ping timeout: 265 seconds]
<jhass> *invested
christiandsg has quit [Remote host closed the connection]
eGGsha has joined #ruby
<Ox0dea> Is it possible to recover from $LOAD_PATH.clear?
zata has joined #ruby
surs has joined #ruby
<Ox0dea> That is, if that were the first line of the program, does Ruby provide sufficient information that you could theoretically reconstruct the default load path?
charliesome has quit [Quit: zzz]
<[k-> >> [$LOAD_PATH.clear, $LOAD_PATH, $:]
<ruboto> [k- # => [[], [], []] (https://eval.in/396689)
<[k-> :o
<jhass> if so it gotta be somewhere in RbConfig::CONFIG I guess
whomp has quit [Quit: Lost terminal]
casadei_ has joined #ruby
bigsky_ has quit [Ping timeout: 256 seconds]
surs4 has quit [Ping timeout: 246 seconds]
MarkTurner has joined #ruby
lapide_viridi has joined #ruby
ndrei has joined #ruby
casadei_ has quit [Ping timeout: 244 seconds]
xkef has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<shevy> [k- the oracle attempts to achieve the state of birth
but3k4 has joined #ruby
MarkTurner has quit [Max SendQ exceeded]
dgutierrez1287 has joined #ruby
MarkTurner has joined #ruby
<[k-> My guess is he is going to use the load path to get some letters
<jhass> no, as array so he can save typing []
joelataylor has quit [Quit: Lingo: www.lingoirc.com]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
<[k-> Using his send thing he can just use send[Array]
<shevy> aha so one value is ib RbConfig::CONFIG['rubylibprefix']
<shevy> *in
<shevy> that one even has keys such as 'rubyarchhdrdir'
s2013 has joined #ruby
<shevy> that's cthulhu worthy
poguez_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
radialneon has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
phutchins2 has quit [Ping timeout: 246 seconds]
juanpablo_ has joined #ruby
n008f4g_ has quit [Ping timeout: 248 seconds]
s2013 has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
<[k-> Ox0dea mungled run length encoder pls
MichaelGG has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilentEcho has quit [Quit: WeeChat 1.0.1]
<shevy> a bit like a virus
SilentEcho has joined #ruby
<shevy> it enters the dark parths of the ruby
bruno- has quit [Ping timeout: 265 seconds]
wlknsn has quit [Quit: WeeChat 1.1.1]
tkuchiki has joined #ruby
SilentEcho has quit [Client Quit]
SilentEcho has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
lapide_viridi has quit [Quit: Leaving]
<[k-> Parths: paths + farts?
peter_paule has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MarkTurner has quit [Ping timeout: 256 seconds]
MarkTurner has joined #ruby
Spami has joined #ruby
MarkTurner has left #ruby [#ruby]
sharpmachine has joined #ruby
mercwithamouth has joined #ruby
schov has quit [Quit: Leaving]
peter_paule has quit [Ping timeout: 244 seconds]
<pontiki> ewwww, dark farts
asdasdasdasd has joined #ruby
asdasdasdasd has quit [Client Quit]
startupality has joined #ruby
sharpmachine has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> >> $_=$$/$$;@__=->_{___=[];__=$_-$_;(@_=->{__+=$_;(_+' ')[$.+=$_]?((_[$.]!=_[$.-$_]?(___<<[_[$.-$_],__];__=$_-$_):$_-$_);@_[]):___})[]}; @__['aaaabbbccdddeee']
<ruboto> Ox0dea # => [["a", 4], ["b", 3], ["c", 2], ["d", 3], ["e", 3]] (https://eval.in/396717)
<Ox0dea> [k-: ^_^
dagda1 has joined #ruby
<[k-> I... I...
<Ox0dea> It's gross, though.
konsolebox has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
eGGsha has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
zacstewart has joined #ruby
lalalaaa has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
sigurding has joined #ruby
olistik has joined #ruby
blackmesa has joined #ruby
but3k4 has joined #ruby
fabrice31 has joined #ruby
hotpancakes has joined #ruby
Sehryn has quit [Ping timeout: 248 seconds]
kies^ has joined #ruby
olistik has quit [Ping timeout: 256 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Ping timeout: 265 seconds]
Muhannad has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
AlphaAtom has quit [Client Quit]
ivanf has joined #ruby
<[k-> What i am doing: https://eval.in/396729
Squarepy has quit [Quit: Leaving]
AlphaAtom has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Remote host closed the connection]
<shevy> [k- Fart vader!
fullofcaffeine has joined #ruby
<[k-> Darth*
<shevy> obviously the oracle inspires you to write ... alien code
<Ox0dea> [k-: This is the craziest code I've ever seen.
<shevy> and to be honest with you...
<shevy> your code is actually worse than Ox0dea code now :\ :/
AlphaAtom has quit [Client Quit]
<[k-> I write crazier code :)
konsolebox has joined #ruby
bricker has joined #ruby
<[k-> Afk~
devdazed has quit [Quit: Computer has gone to sleep.]
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 248 seconds]
zacstewart has quit [Remote host closed the connection]
scripore has joined #ruby
rippa has joined #ruby
sarkyniin has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
arashb has joined #ruby
chinmay_dd has quit [Ping timeout: 246 seconds]
ferr has left #ruby ["WeeChat 1.2"]
Thomas-0725 has joined #ruby
darkf has quit [Quit: Leaving]
arashb has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
Rickmasta has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
Sehryn has joined #ruby
AlphaAtom has joined #ruby
Sehryn_ has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
acke_ has quit [Ping timeout: 264 seconds]
AlphaAtom has joined #ruby
s2013 has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
sarkyniin has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
dh64 has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Max SendQ exceeded]
Sehryn has quit [Ping timeout: 240 seconds]
MarkTurner has joined #ruby
fgo has joined #ruby
sarkyniin has joined #ruby
AlphaAtom has joined #ruby
Sehryn_ has quit [Ping timeout: 265 seconds]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
joast has joined #ruby
AlphaAtom has quit [Client Quit]
casadei_ has joined #ruby
Channel6 has joined #ruby
dagda1 has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
blue_deref has joined #ruby
NeverDie has joined #ruby
jwaldrip has quit [Quit: Be back later ...]
casadei_ has quit [Ping timeout: 256 seconds]
surs1 has joined #ruby
AlphaAtom has joined #ruby
quimrstorres has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
surs has quit [Ping timeout: 252 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 264 seconds]
quimrstorres has quit [Remote host closed the connection]
lavros has quit [Quit: leaving]
zz_Outlastsheep is now known as Outlastsheep
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
victortyau has quit [Quit: Leaving]
AlphaAtom has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
lavros has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
toretore has joined #ruby
lalalaaa has joined #ruby
<[k-> I love it how $© is allowed
hotpancakes has joined #ruby
<gizmore> the hover text fits :)
eGGsha has joined #ruby
<pontiki> indeed :)
zacstewart has joined #ruby
[k-_ has joined #ruby
[k- has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
_blizzy_ has joined #ruby
AndChat-43764 has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
sigurding has quit [Quit: sigurding]
juanpablo_ has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
leonardoajim has quit [Quit: Be back later ...]
lkba_ has quit [Ping timeout: 244 seconds]
<shevy> lol
_blizzy_ has quit [Ping timeout: 248 seconds]
<heftig> what kind of implementation would you recommend for a priority queue?
<shevy> emoji in hover messages, now that is nasty
<heftig> right now I use a list with bsearch-based sorted insertion
Brainling has joined #ruby
|Brainling| has joined #ruby
<heftig> well, array
|Brainling| has quit [Client Quit]
chouhoulis has joined #ruby
Contigi has joined #ruby
quimrstorres has joined #ruby
juanpablo_ has quit [Ping timeout: 248 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has joined #ruby
haroldwu has quit [Ping timeout: 240 seconds]
craysiii has quit [Quit: craysiii]
haroldwu has joined #ruby
AndChat-43764 has quit [Ping timeout: 264 seconds]
felixjet_ has quit [Ping timeout: 264 seconds]
Azulinho has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
serivichi has joined #ruby
lessless has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
serivich has quit [Ping timeout: 244 seconds]
hotpancakes has joined #ruby
tjohnson has joined #ruby
lalalaaa has quit [Ping timeout: 240 seconds]
MarkTurner has quit [Quit: This is probably a wireless dropout]
surs2 has joined #ruby
surs1 has quit [Ping timeout: 248 seconds]
jayMillz has joined #ruby
jwaldrip has joined #ruby
Channel6 has quit [Quit: Leaving]
eGGsha is now known as eGGshke
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zata has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jayMillz has quit [Remote host closed the connection]
woodennails has joined #ruby
dgutierrez1287 has joined #ruby
gnudon has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
dgutierrez1287 has quit [Remote host closed the connection]
<woodennails> Can you folks recommend a small project to do tonight / tomorrow, i'm a beginner and start a new job on monday so kinda want to get ahead of the curve
<ljarvis> woodennails: what type of project?
<ljarvis> heftig: how big could it get?
<woodennails> something very basic
<ljarvis> woodennails: could you be more specific? you start a new job so presumably you're passed the basics :)
<heftig> ljarvis: a handful of priorities, a hundred thousand jobs
startupality has quit [Quit: startupality]
charliesome has quit [Quit: zzz]
<existensil> woodennails: you looking for a full stack project or pure ruby or rails but backend focused?
eGGsha has joined #ruby
Scroff has quit [Remote host closed the connection]
<ljarvis> heftig: have you benched it? insertion could still be pretty slow I guess. It depends on your goal
baweaver has joined #ruby
<woodennails> Well, thats the thing, Im a javascript developer and at my new job I'm going to be using Ruby as well and theyre fully aware I dont know Ruby and are going to train me on it.. just wanted to get a head start really :)
Scroff has joined #ruby
eGGsha is now known as eGGshke
eggoez has quit [Ping timeout: 252 seconds]
<existensil> woodennails: i'd start with a simple TODO list application. That's a good one and will require you to get familiar with rails' resource routing and active record
eGGshke has quit [Client Quit]
<ljarvis> woodennails: what type of Ruby will you be doing?
<woodennails> Im not using Rails i dont believe... im using just pure Ruby :)
<existensil> (assuming rails)
<ljarvis> I've heard nothing about rails yet so wouldn't recommend that
<ljarvis> are you doing web related stuff?
<woodennails> yes :D i believe so
<ljarvis> you start on Monday and don't know what your job entails? :D
Mia has quit [Read error: Connection reset by peer]
<existensil> you should have asked more questions :-P
zacstewart has quit [Ping timeout: 240 seconds]
<woodennails> I know its going to be mainly Javascript based I just know there may be some Ruby
<woodennails> its for a junior developer role :)
<existensil> that sure sounds like its probably rails. could be sinatra or something else.
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Azulinho has quit [Ping timeout: 250 seconds]
<woodennails> I asked and they said there isnt much Rails, its mainly Ruby and Sinatra :)
<existensil> ah, ok
<woodennails> maybe i'll look into Sinatra
peter_paule has joined #ruby
<existensil> so do a todo list app in sinatra
NateDeHiggers has joined #ruby
<NateDeHiggers> hi
Scroff has quit [Ping timeout: 255 seconds]
<woodennails> :)
zacstewart has joined #ruby
<existensil> woodennails: do you know what kind of data storage tools they are using? might be good to use something similar on your project
<existensil> so mysql, mongo, postgresql, redis... whatever they are using
<woodennails> I think i may just wait until Monday haha
<woodennails> :D
<woodennails> thanks folks
<heftig> ljarvis: hm, getting around 12.787k (±12.0%) insertions/s starting with 100000 entries
<woodennails> oh ps, any of you guys use Vim?
<woodennails> just wanted to know how you had it set up with ruby
casadei_ has joined #ruby
<pontiki> woodennails: over the weekend, maybe what you want to do is run through a bunch of ruby examples, koans, that sort of thing to get comfy with ruby by itself
<pontiki> read the docs, etc.
<woodennails> :)
<heftig> ljarvis: compared to a normal Queue at 8.410M (± 6.5%) insertions/s
<jhass> !ban NateDeHiggers 1d troll
NateDeHiggers is now known as ChipmunkHarris
<jhass> !ban ChipmunkHarris 1d troll
<heftig> well, it sucks, but i guess it's good enough
lalalaaa has joined #ruby
<jhass> !ban ChipmunkHarris !T 1d troll
ChipmunkHarris was banned on #ruby by ChanServ [ChipmunkHarris!*@*]
ChipmunkHarris was kicked from #ruby by ChanServ [Banned: troll]
<shevy> jhass lol are you scanning for naughty nicks?
<jhass> meh, I need an alias
<existensil> why is freenode having a recent rash of racist trolls? that never seemed to be a problem before
<havenwood> shevy: Same boring troll, don't feed em.
nfk has joined #ruby
<havenwood> existensil: One person can use a lot of nicks. :P
<existensil> true. probably just one obnoxious racist that doesn't like going outside and being racist
eGGsha has joined #ruby
eggoez has joined #ruby
peter_paule has quit [Ping timeout: 248 seconds]
<jhass> !unban ChipmunkHarris
casadei_ has quit [Ping timeout: 265 seconds]
<jhass> apeiros: meh, we don't have that?^
freerobby has joined #ruby
<[k-_> Tada! Ox0dea: shevy: https://eval.in/396785
fabrice31 has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
<shevy> I'm not going to look at that
aryaching has quit [Ping timeout: 256 seconds]
<shevy> you want to make me blind
s00pcan has quit [Ping timeout: 246 seconds]
yeticry has quit [Ping timeout: 244 seconds]
<[k-_> Hue
s00pcan has joined #ruby
arup_r has joined #ruby
eGGsha is now known as eGGshke
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
fabrice31 has quit [Ping timeout: 248 seconds]
Azulinho has joined #ruby
sarkyniin has quit [Quit: Quit]
sarkyniin has joined #ruby
GitGud has quit [Ping timeout: 244 seconds]
<[k-_> Bonus: no conditionals
ValicekB has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
<[k-_> I should get baweaver making one too
<baweaver> ?
autrilla has joined #ruby
<[k-_> A mungled run length encoder!
serivichi has quit [Ping timeout: 265 seconds]
theery has joined #ruby
blackmesa has joined #ruby
dgutierrez1287 has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
<[k-_> Bad point: it only works on alphabets
blackmesa has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
GitGud has joined #ruby
jhack has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
jwaldrip has quit [Quit: Be back later ...]
beef-wellington has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Outlastsheep is now known as zz_Outlastsheep
surs3 has joined #ruby
eGGsha has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
beef-wellington has quit [Ping timeout: 256 seconds]
s00pcan has quit [Ping timeout: 240 seconds]
surs2 has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
s00pcan has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
vdamewood has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
xxneolithicxx has joined #ruby
davedev2_ has quit [Client Quit]
olistik has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
atomical has joined #ruby
rfish2 has joined #ruby
rfish has quit [Read error: Connection reset by peer]
atomical has quit [Client Quit]
fantazo has quit [Quit: Verlassend]
yeticry has joined #ruby
atomical has joined #ruby
wprice has quit [Quit: wprice]
olistik has quit [Remote host closed the connection]
s00pcan has joined #ruby
GitGud has quit [Ping timeout: 264 seconds]
lalalaaa has quit [Quit: leaving]
xkef has quit [Ping timeout: 244 seconds]
dgutierrez1287 has joined #ruby
bronson has joined #ruby
rbowlby_ has joined #ruby
<shevy> we need more ruby
GitGud has joined #ruby
RegulationD has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Remote host closed the connection]
rbowlby has quit [Ping timeout: 240 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
hotpancakes has joined #ruby
claw_ has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
peter_paule has joined #ruby
juanpablo_ has joined #ruby
claw has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacstewart has quit [Remote host closed the connection]
dagda1 has joined #ruby
lkba has joined #ruby
icebourg has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
peter_paule has quit [Ping timeout: 255 seconds]
sharpmachine has joined #ruby
mandarinkin2 has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
mandarinkin2 has quit [Client Quit]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MarkTurner has joined #ruby
eGGsha has joined #ruby
yfeldblum has joined #ruby
Nahra has quit [Remote host closed the connection]
mrconfused has joined #ruby
DLSteve has joined #ruby
<gizmore> how would i make rake tasks available from my gem in another project/gem?
<gizmore> currently i have some tiny test task in Rakefile, and added Rakefile to the gem files... which is wrong i think
lokulin has quit [Ping timeout: 256 seconds]
bigsky has quit [Ping timeout: 256 seconds]
Torrieri has joined #ruby
Torrieri has quit [Changing host]
Torrieri has joined #ruby
n008f4g_ has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
<jhass> just ship a file and instruct your users to require it inside their Rakefile
ips|malc has joined #ruby
dseitz has joined #ruby
gnudon has joined #ruby
MagePsycho has joined #ruby
sharpmachine has quit [Remote host closed the connection]
monod has joined #ruby
monod has quit [Read error: Connection reset by peer]
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
davedev24_ has joined #ruby
<pontiki> i wouldn't add the whole project Rakefile
<shevy> private static boolean isApacheHttpClientPresent() {
<shevy> so beautiful
peter_paule has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
davedev2_ has joined #ruby
allomov has quit [Remote host closed the connection]
arashb has joined #ruby
KnownSyntax has joined #ruby
hotpancakes has quit [Remote host closed the connection]
startupality has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
i8igmac has quit [Ping timeout: 246 seconds]
<gizmore> can i include lib/somecommondir/*.rake?
<gizmore> and write with all my subgems in somecommondir?
lokulin has joined #ruby
arashb has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
<shevy> you can grab all files via Dir[] and '*' if you give it the right path
quimrstorres has quit [Remote host closed the connection]
allomov has joined #ruby
claw has quit [Read error: Connection reset by peer]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
Azulinho has quit [Ping timeout: 256 seconds]
eggoez has quit [Ping timeout: 256 seconds]
blue_deref has quit [Quit: bbn]
xxneolithicxx has quit [Ping timeout: 255 seconds]
cashnguns has joined #ruby
Azulinho has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
olistik has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
Torrieri has quit [Read error: No route to host]
Torrieri has joined #ruby
hotpancakes has joined #ruby
eggoez has joined #ruby
charliesome has joined #ruby
lkba_ has joined #ruby
casadei_ has joined #ruby
felixjet has joined #ruby
olistik has quit [Ping timeout: 244 seconds]
dagda1 has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 246 seconds]
Torrieri has quit [Read error: No route to host]
puddy has joined #ruby
Torrieri has joined #ruby
Torrieri has quit [Changing host]
Torrieri has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
mrconfused has quit [Remote host closed the connection]
puddy has left #ruby [#ruby]
tmtwd has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 244 seconds]
casadei_ has quit [Ping timeout: 264 seconds]
leonardoajim has joined #ruby
arashb has joined #ruby
charliesome has joined #ruby
serivichi has joined #ruby
MarkTurner has quit [Ping timeout: 256 seconds]
symm- has joined #ruby
eGGsha has joined #ruby
revath has joined #ruby
dagda1 has joined #ruby
JMoir has quit [Ping timeout: 256 seconds]
hotpancakes has joined #ruby
eGGsha has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
bubbys has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
lkba has joined #ruby
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 264 seconds]
multi_io has quit [Ping timeout: 256 seconds]
lkba_ has joined #ruby
MarkTurner has joined #ruby
s00pcan has quit [Ping timeout: 252 seconds]
multi_io has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
bubbys has joined #ruby
aaeron has joined #ruby
s00pcan has joined #ruby
<shevy> today is sleepy day on #ruby
ndrei has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
tmtwd has joined #ruby
j416 has quit [Quit: o/]
bruno- has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
bubbys has quit [Ping timeout: 246 seconds]
davedev24_ has joined #ruby
bubbys has joined #ruby
lavros has quit [Quit: leaving]
enders has joined #ruby
icebourg has quit []
jwaldrip has joined #ruby
Musashi007 has quit [Quit: Musashi007]
havenwood has joined #ruby
Hobogrammer_ has joined #ruby
Hobogrammer_ has quit [Read error: Connection reset by peer]
JMoir has joined #ruby
Hobogrammer_ has joined #ruby
davedev2_ has quit [Ping timeout: 248 seconds]
rbowlby_ has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 264 seconds]
jwaldrip has quit [Ping timeout: 248 seconds]
ddarkpassenger has joined #ruby
<arup_r> shevy: Bcoz I am on #css
konsolebox has quit [Quit: Leaving]
<arup_r> my elements on the page are not in expected location.... :/
<arup_r> time to learn CSS
scripore has quit [Quit: This computer has gone to sleep]
slumos has joined #ruby
<jhass> just use a grid system
<jhass> the jquery of css
<arup_r> jhass: Using bootstrp3 ,,, But things went wrong.. I applied wrong ofcourse..
<arup_r> #css is slow
ndrei has joined #ruby
<jhack> if hit_or_stay_prompt == "stay" && (hand[0].to_i + hand[1].to_i + hand[2].to_i + hand[3].to_i + hand[4].to_i) > 21
djbkd has joined #ruby
<jhack> is ther a simpler way to write this than to do the .to_i command?
startupality has quit [Quit: startupality]
chouhoulis has joined #ruby
<jhass> don't store strings
<jhass> and hand.inject(:+) > 21
startupality has joined #ruby
zacstewart has joined #ruby
startupality has quit [Client Quit]
vyorkin has joined #ruby
scripore has joined #ruby
peter_paule has quit [Ping timeout: 265 seconds]
<weaksauce> if you are forced to use strings you could use map too hand.map(&:to_i).inject(:+)
dgutierrez1287 has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 250 seconds]
peter_paule has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
<Ox0dea> But maybe you don't want to silently convert non-numeric strings to 0, in which case you'll need to use map(&method(:Integer)).
scripore has quit [Quit: This computer has gone to sleep]
j416 has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
postmodern has joined #ruby
t0rrieri has joined #ruby
djbkd has joined #ruby
MagePsycho has quit [Quit: MagePsycho]
<havenwood> `map(&Kernel.public_method(:Integer))` but really just use the simpler `map { |s| Integer(s) }` ;)
charlenopires has joined #ruby
<postmodern> map(&method(:Integer)) ?
crdpink has joined #ruby
<havenwood> >> %w[1 2 3].map &Kernel.public_method(:Integer)
<ruboto> havenwood # => [1, 2, 3] (https://eval.in/396815)
crdpink2 has quit [Ping timeout: 248 seconds]
<havenwood> >> %w[1 2 3].map &method(:Integer)
<ruboto> havenwood # => [1, 2, 3] (https://eval.in/396816)
nofxx has joined #ruby
nofxx has joined #ruby
Scroff has joined #ruby
<pipework> >> %w|1 2 3|.map &:Integer
<ruboto> pipework # => private method `Integer' called for "1":String (NoMethodError) ...check link for more (https://eval.in/396817)
<pipework> Darn.
hanmac has quit [Ping timeout: 256 seconds]
Torrieri has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
bubbys has quit [Ping timeout: 244 seconds]
peter_paule has quit [Ping timeout: 264 seconds]
<ljarvis> >> "1".send(:Integer, 2)
<ruboto> ljarvis # => 2 (https://eval.in/396818)
juanpablo_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<havenwood> >> Kernel.public_send :Integer, 2
<ruboto> havenwood # => 2 (https://eval.in/396819)
yfeldblum has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
<ljarvis> >> nil.send(:puts)
<ruboto> ljarvis # => ...check link for more (https://eval.in/396820)
serivichi has quit [Ping timeout: 248 seconds]
<apeiros> >> nil.send(:puts, "yay!")
<ruboto> apeiros # => yay! ...check link for more (https://eval.in/396821)
t0rrieri_ has joined #ruby
<ljarvis> #lolruby
<toretore> >> %w[1 2 3].map &Kernel.method(:Integer)
<ruboto> toretore # => [1, 2, 3] (https://eval.in/396822)
bubbys has joined #ruby
<pipework> >> send(:puts, "yay!")
<ruboto> pipework # => yay! ...check link for more (https://eval.in/396823)
ljt has joined #ruby
<apeiros> puts is in Kernel
<apeiros> Kernel is in Object
<apeiros> that's why they're private
<apeiros> and that's why module_function >> extend(self)
<ljarvis> yip
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
juanpablo_ has quit [Ping timeout: 264 seconds]
haroldwu has quit [Ping timeout: 240 seconds]
BTRRY has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
rbowlby has joined #ruby
<Ox0dea> >> [].send :require, 'json'
<ruboto> Ox0dea # => true (https://eval.in/396824)
devdazed has joined #ruby
t0rrieri has quit [Ping timeout: 256 seconds]
revath has quit [Read error: Connection reset by peer]
<jhass> >> send(:puts, "starting").send(:require, "json").send(:require, "yaml").send(:puts, "success")
<ruboto> jhass # => starting ...check link for more (https://eval.in/396825)
lxsameer has joined #ruby
lxsameer has joined #ruby
<jhass> ^ is that what's called a pipeline?
revath has joined #ruby
<Ox0dea> Not quite, I don't think.
<Ox0dea> A pipeline tends to be a series of transformations.
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
* pipework lines some pipes up
* Ox0dea pipes some lines up.
<havenwood> pipeline paralel-eeeesim
ruurd has joined #ruby
vyorkin has quit [Quit: WeeChat 1.2]
RobertBirnie has joined #ruby
aaeron has quit [Quit: Leaving.]
* shevy ipes some lines up
rbennacer has joined #ruby
<jhass> semicolon and newline free programming, can you do it?
hanmac has joined #ruby
<Ox0dea> I can do it.
hotpancakes has quit [Remote host closed the connection]
sarkyniin has quit [Ping timeout: 264 seconds]
rbennacer has quit [Remote host closed the connection]
<shevy> I see jhass got into lisp up there
<toretore> a series of tubes, the ideal program
<Ox0dea> What's the least invasive way to just completely throw out method visibility?
haroldwu has joined #ruby
<Ox0dea> `class Object; public *private_methods; end` doesn't quite get there.
Cache_Money has joined #ruby
<jhass> a preprocessor that replaces . with send?
Zinja has quit [Ping timeout: 250 seconds]
<toretore> ideally, class Object; def public_send(*a, &b); __send__(*a, &b); end; end
slumos is now known as slumos[away]
ruurd has quit [Quit: Zzzzz z zz ...]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Gulaangga has joined #ruby
<pipework> toretore: No keyword args?
hotpancakes has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
_ht has quit [Quit: Konversation terminated!]
<KrzaQ> Is there a way to use string::squeeze with strings?
<KrzaQ> [2] pry(main)> "a\r\nb\r\n\r\nc".squeeze("\r\n")
<KrzaQ> => "a\r\nb\r\n\r\nc"
<KrzaQ> I'd like to get "a\r\nb\r\nc"
ljt has quit []
<Gulaangga> any ideas how to open URL that contains a dot like "http://www.alexa.com/siteinfo/google.com" with open-uri? I'm getting "rfc3986_parser.rb:66:in `split': bad URI(is not URI?)" because of "google.com" part
<apeiros> KrzaQ: use gsub
<apeiros> and no, squeeze is char based
timonv has quit [Ping timeout: 252 seconds]
blue_deref has joined #ruby
<KrzaQ> thanks
djbkd has joined #ruby
<jhass> >>> require "uri"; URI.parse "http://www.alexa.com/siteinfo/google.com" # Gulaangga: I don't think your assumption is right
<ruboto> jhass # => /tmp/execpad-b1132210b3f5/source-b1132210b3f5:2: syntax error, unexpected '>' ...check link for more (https://eval.in/396826)
<jhass> bleh
<jhass> >> require "uri"; URI.parse "http://www.alexa.com/siteinfo/google.com"
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby
dgutierrez1287 has joined #ruby
davedev24_ has quit []
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
idiocrash has joined #ruby
maletor has joined #ruby
BTRRY is now known as BTRE
chipotle has quit [Quit: cheerio]
<gizmore> line = exec("ping -W 1.0 -c 1", @uri.host, "| grep '1 received'")
<gizmore> #<Errno::ENOENT: No such file or directory - ping -W 1.0 -c 1>
SylarRuby has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
<Gulaangga> jhass: yes, thanks, I'm looking into it
ruurd has joined #ruby
<Gulaangga> it's actually because I'm reading URLs from file
<jhass> gizmore: 1) exec replaces the current process, 2) the multi arg form doesn't invoke a shell (no piping) 3) the multi arg form expects just the binary as first argument, no parameters
<Gulaangga> with File.readlines('sites.txt').each
<toretore> pipework: *a will capture **kwargs too
<gizmore> jhass: thanks... should i use backticks and escape the host param?
<jhass> Gulaangga: .chomp of the trailing \n
prestorium has joined #ruby
i8igmac has joined #ruby
<Gulaangga> jhass: ok, thanks again
<jhass> gizmore: no, do the | grep with ruby methods, it's good at such
DLSteve has quit [Quit: Leaving]
<gizmore> jhass: do you hass a oneliner? :]
aj_ has joined #ruby
malconis has joined #ruby
jroith has quit [Quit: Linkinus - http://linkinus.com]
Thomas-0725 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
duoi has quit [Ping timeout: 248 seconds]
<jhass> require "open3"; output, _status = Open3.capture(["/usr/bin/ping", "-W", "1.0", "-c", "1", @uri.host); output.include?("1 received") I guess
Vile` has joined #ruby
<jhass> (completely untested)
sarkyniin has joined #ruby
lkba has joined #ruby
Gulaangga has quit []
malconis has quit [Client Quit]
Musashi007 has joined #ruby
<jhass> require "open3"; output, _status = Open3.capture2("/usr/bin/ping", "-W", "1.0", "-c", "1", @uri.host); output.include?("1 received") actually
<toretore> ok, tell me this expert genius programars: how do i make a thread wait for some signal before it continues?
prestorium has quit [Ping timeout: 256 seconds]
WeiJunLi has joined #ruby
<jhass> toretore: with a ConditionVariable
zacstewart has joined #ruby
lkba_ has quit [Ping timeout: 265 seconds]
niemcu has quit [Ping timeout: 256 seconds]
ddarkpassenger has joined #ruby
<toretore> jhass: without a bunch of edge cases to ruin my day?
<apeiros> jhass officially expert genius programar
<jhass> \o/
<jhass> where's my cookie?
<toretore> ?cookie jhass
<ruboto> jhass, I don't know anything about cookie
<gizmore> jhass: that looks complicated! :P
<apeiros> ?cookie jhass
<ruboto> jhass, here's your cookie
zanloy has joined #ruby
<toretore> wat
<jhass> toretore: pretty much, I'm not sure on Ruby's "random interrupt" semantics, so putting the wait in a while that checks the condition is still good practice
<toretore> oh you just added it
<apeiros> hehe
<apeiros> you were too quick
<apeiros> CV should work correctly without additional safeguarding
<apeiros> it'd be a bug if not
<jhass> well, the underlying pthread primitive has the random interrupt semantics
<toretore> am i doing it wrong?
hotpancakes has joined #ruby
<apeiros> yes
<apeiros> but that's just the reply I give by principle :)
<apeiros> tbh, I've to triple check CV code. I rarely ever used them.
duoi has joined #ruby
<toretore> i hate threads
zacstewart has quit [Ping timeout: 246 seconds]
<jhass> you don't need the synchronize to signal, but it shouldn't harm either, mh
lkba_ has joined #ruby
<toretore> really?
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 265 seconds]
eggoez has quit [Ping timeout: 252 seconds]
<jhass> http://paste.mrzyx.de/pmm0mxl0i works correctly here
ljt has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 248 seconds]
RobertBirnie has joined #ruby
<toretore> ok then tell me this if ure so smatr, why am i getting "fatal: No live threads left. Deadlock?"
lkba has quit [Ping timeout: 265 seconds]
<jhass> because you called .wait in all your active threads
<jhass> so none is left to .signal
Mweshi_ has joined #ruby
havenwood has joined #ruby
<jhass> (active threads means that it might also that you let others die)
<apeiros> ?code toretore
<ruboto> toretore, We can't help you without your code, please post it to https://gist.github.com
olistik has joined #ruby
<apeiros> :-p
<toretore> just a minute, got some real pipes to look after
<jhass> toretore: e.g. remove the final sleep 1 in my example and you'll have a race between the .wait returning and the main thread dying and taking everything down with it
bricker has joined #ruby
mary5030 has quit [Remote host closed the connection]
<apeiros> pipedreams…
allcentury has quit [Ping timeout: 246 seconds]
* apeiros has to look after his pillow. lemme check real quick. don't expect me to come back, though :-D
i8igmac has quit [Ping timeout: 244 seconds]
dagda1 has joined #ruby
<jhass> Thread.abort_on_exception = true might help to find accidentially dying threads
chipotle has joined #ruby
Papierkorb has joined #ruby
Jackneill has quit [Remote host closed the connection]
RobertBirnie has quit [Read error: Connection reset by peer]
eggoez has joined #ruby
<toretore> will reply to your questions in a sec, sorry
RobertBirnie has joined #ruby
ljt has quit [Ping timeout: 256 seconds]
<toretore> line 62, d.run blocks
<WeiJunLi> in python there is a pythonic way of writting code, such happens with ruby?
casadei_ has joined #ruby
<jhass> toretore: it's quite possible that the body of the thread runs before the main threads wait call even enters
<jhass> toretore: signal calls don't buffer up, if nobody's is waiting they just puff
<jhass> WeiJunLi: yeah, the general (and in the ruby community used) term is idiomatic code
Mweshi_ has quit [Quit: I'm out!]
blackmesa has joined #ruby
<WeiJunLi> jhass: can you show me any article that talks about that?
<jhass> nope
JMoir has quit [Ping timeout: 246 seconds]
<jhass> I learned it from this channel ;)
olistik has quit [Remote host closed the connection]
casadei_ has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
<apeiros> in ruby, you don't come to idiomatic code. idiomatic code comes to you.
rbennacer has quit [Remote host closed the connection]
<jhass> apeiros: the pillow seems to do stuff to you
rbennacer has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
<apeiros> toretore: you mean you could remove L47-58;68-83 and still have the exception?
<toretore> jhass: d'oh! you're right of course, the thread exited prematurely
<toretore> apeiros ^
giuseppesolinas has quit [Quit: Leaving]
* apeiros disappoint. toretore should know how to create reproducible examples :(
<apeiros> +minimal
Vile` has joined #ruby
lkba has joined #ruby
<toretore> undefined local variable or method `d'
<jhass> haha
<toretore> i am my own worst nightmare
<apeiros> whoops… :)
bricker has joined #ruby
<apeiros> I'll repeat that IMO Thread.abort_on_exception=true should be the default
<jhass> that's gonna cost you a few places on apeiros "people I'd like to work with" ranking list
Ox0dea has left #ruby ["WeeChat 1.2"]
<apeiros> also that it should be possible to set it per thread, to allow .value to work as intended.
<toretore> apeiros: well, to be fair, it's difficult to make a consistently reproducible example when it comes to threads
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> jhass: oh, there's things which cost him more ranks. like that he doesn't want to use ivars :<
<toretore> you can set it per thread tho
<apeiros> wait what?
<jhass> apeiros: you can set it per thread apparently
jordanm has quit [Quit: Konversation terminated!]
<apeiros> !
<toretore> Thread#abort_on_exception=
<apeiros> AND I NEVER EVEN CHECKED!
<apeiros> what's wrong with me?
<jhass> the pillow. I'm telling you the pillow
blackmesa has quit [Ping timeout: 250 seconds]
<apeiros> can we also start a thread in sleeping condition?
<toretore> apeiros: hey my Waiter uses only ivars!
<apeiros> toretore: who are you and what did you to toretore?
<apeiros> +the real
<jhass> apeiros: with subclassing perhaps, I forgot
* apeiros tries .allocate
lkba_ has quit [Ping timeout: 244 seconds]
<apeiros> "TypeError: allocator undefined for Thread", right. tried that before.
<toretore> Thread.new{ Thread.stop; ... }
<apeiros> toretore: race.
<toretore> oh
<toretore> i still hate threads
<apeiros> I don't. but yeah, they're easily brain melting.
<toretore> my hate stems from lack of knowledge, sure, but still
lkba_ has joined #ruby
mhb has quit [Quit: WeeChat 0.4.3]
<apeiros> do worry. it won't get better with knowledge. only worse.
<apeiros> you'll realize in how many additional places you actually have race conditions.
<apeiros> and you'll realize that you probably still don't even know half of all places.
<toretore> basically, "anything you can think of, and anything you can't think of will go wrong"
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> toretore: worse. it will also go wrong *at the same time* :'D
<toretore> lol
<apeiros> ok, not in MRIruby
<jhass> I'm not sure if it holds true in Ruby, but in theory you got a race condition in your Waiter class between the .wait and the until :P
mjuszczak has joined #ruby
chipotle_ has joined #ruby
<toretore> that's why we have jruby and rubinius, so that we can experience the pain of real parallelism
<apeiros> jhass: yes, definitively the pillow. I'm sure the vodka is unrelated. :o)
chipotle has quit [Read error: Connection reset by peer]
<apeiros> I'd still love if we had a way to control the scheduler.
<jhass> apeiros: that's what the vodka is telling me too all the time
<apeiros> it'd allow testing threads.
<apeiros> jhass: your vodka talks?!?!?
<toretore> jhass: really? it's holding the mutex at that point
<apeiros> where can I get that brand?
<jhass> toretore: mmh, true, nvm :P
Pupeno has quit [Read error: Connection reset by peer]
* toretore +1
<toretore> !!
<jhass> apeiros: if yours doesn't it just meant you didn't show it enough love
<jhass> *means
Pupeno has joined #ruby
<apeiros> :-O
lkba has quit [Ping timeout: 264 seconds]
<jhass> that you can still use a keyboard is another indicator for that^^
<apeiros> I've never managed to drink enough to be unable to use a keyboard :<
arooni-mobile has joined #ruby
<toretore> jhass: also re: your comment about missed signals, that's what @signalled is there for right?
<jhass> yeah
<jhass> my concentration is not good apparently :/
sigurding has joined #ruby
olistik has joined #ruby
Darkwater has quit [Ping timeout: 248 seconds]
Darkwater has joined #ruby
<apeiros> I'm not sure that'd be indicative that CV is the wrong tool (if you have to check whether it has been signaled)
idiocrash has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
<toretore> well, as a primitive used in the Waiter implementation i guess it is the right tool
allomov has quit [Remote host closed the connection]
gnudon has quit [Ping timeout: 248 seconds]
idiocrash has joined #ruby
<toretore> waiter/event/barrier being the "right" level of abstraction
tjohnson has quit [Quit: Connection closed for inactivity]
olistik has quit [Remote host closed the connection]
mike___1234 has quit [Ping timeout: 244 seconds]
<apeiros> ooooh, Thread.handle_interrupt looks interesting
djbkd has quit [Remote host closed the connection]
<toretore> isn't kill and raise for threads discouraged?
hotpancakes has joined #ruby
<jhass> apeiros: it's the right primitive to build the right tool
<jhass> Mutex, Thread and ConditionVariable are the essential primitives you can't reimplement because you need support from the scheduler
<apeiros> toretore: totally. but handle_interrupt might change the game. but I haven't read the docs yet.
arooni-mobile has quit [Ping timeout: 248 seconds]
<apeiros> jhass: I do think something is off if you have to check with an additional aid whether the signal has been sent before waiting for it.
jottr has joined #ruby
<jhass> nope, it's a really really common thing to do
Blaguvest has joined #ruby
<apeiros> but my thread experience is too limited to know this like "oh, generic case X, you're doing Y wrong, use Z instead".
<apeiros> jhass: a lot of bad code is common.
<toretore> java wait/notify behaves the same way afaik
<jhass> don't be confused by the name similarity, the conditionvariable signal and the @signalled are two different things
<apeiros> I'm not.
hotpancakes has quit [Ping timeout: 246 seconds]
<jhass> think of the classic Queue, you'll put the wait in pop in a loop to check for empty, same thing
einarj has joined #ruby
balazs has joined #ruby
<jhass> it guards against contention and random interrupts
gnudon has joined #ruby
pabs has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
bronson has joined #ruby
pabs has joined #ruby
olistik has joined #ruby
lkba has joined #ruby
Azulinho has joined #ruby
<toretore> i guess what's missing are more higher-level concurrency primitives
AndChat-43764 has joined #ruby
<jhass> concurrent-ruby has some I've heard
beef-wellington has joined #ruby
<toretore> yeah
<toretore> and "concurrent" too
<jhass> you waiter is actually a high level primitive, but I can't remember the proper name :/
<jhass> Barrier?
<toretore> yeah
<apeiros> not really
<apeiros> it'd be a "singlebarrier" :D
decoponio has quit [Read error: Connection reset by peer]
<apeiros> barriers wait for N entities to complete
<jhass> N = 2
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> where N is variable.
<apeiros> not fixed.
<jhass> the main thread and the one
lkba_ has quit [Ping timeout: 255 seconds]
decoponio has joined #ruby
Thomas-0725 has joined #ruby
<toretore> just replace with wait_until{ @counter == @n }
<jhass> running the schedule thing
jhack has quit [Ping timeout: 250 seconds]
<jhass> I guess you could use an Exchanger too and trade nil :P
fabrice31 has quit [Ping timeout: 252 seconds]
lkba_ has joined #ruby
simplyianm has joined #ruby
scripore has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 248 seconds]
AndChat-43764 has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
mweshi has joined #ruby
micalexander has joined #ruby
mandarinkin has quit [Ping timeout: 256 seconds]
lkba has quit [Read error: Connection reset by peer]
[k-_ has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
Thomas-0725 has quit [Ping timeout: 248 seconds]
schov has joined #ruby
<schov> I have a basic query. If user enters a number using gets.chomp how can i check if it's an integer?
<micalexander> I want to include mina-deploy https://github.com/mina-deploy into my gem and work directly with it allowing me to have access to the variables set in the config/deploy.rb. What is the best way to do this? Am I stuck with only being about to call its commands using exec? Or can I interface with it directly?
hotpancakes has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
<apeiros> schov: Integer(input, 10) raises if input is not a valid base10 int
swgillespie has joined #ruby
<jhass> schov: if input[/\A\d+\z/]
<apeiros> schov: alternatively use highline. I think it's got stuff for that
allomov has joined #ruby
<apeiros> jhass: missing neg. int already ;-p
Sembei has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<jhass> pff
<jhass> fine add a -?
<apeiros> is +10 valid?
<jhass> no
toretore has quit [Ping timeout: 246 seconds]
<apeiros> how do you know?!? that's a question for schov!
swgillespie has quit [Max SendQ exceeded]
<jhass> magic
<havenwood> =>> Integer("+10")
<havenwood> #=> 10
weemsledeux has joined #ruby
<apeiros> o0
swgillespie has joined #ruby
<apeiros> ok, I'm honestly not sure anymore how I implemented Thread.stopped
swgillespie has quit [Client Quit]
<apeiros> when I think about it now, it seems to me it'd have to signal *after* calling sleep. but that's impossibru :<
<apeiros> and spinning is fugly
<havenwood> oops, there's a new test for elixir.rb - i did it wrong >.>
weemsledeux has quit [Max SendQ exceeded]
<havenwood> well, accidentally correct \o/
sigurding has quit [Quit: sigurding]
<havenwood> testing anyways so i don't break my accidental correctness in refactor :)
<apeiros> ooooh, silly me!
toretore has joined #ruby
<apeiros> hm
<apeiros> no. while I had an idea which makes implementing Thread.stopped stupidly simple, it's probably also a way any truly parallel ruby would dislike…
aj_ has quit [Ping timeout: 246 seconds]
zacstewart has joined #ruby
<apeiros> "rb_thread_sleep_deadly" uh?
<apeiros> what are you doing, ruby?!
Thomas-0725 has joined #ruby
beef-wellington has quit [Ping timeout: 256 seconds]
allcentury has joined #ruby
vdamewood has quit [Quit: Life beckons.]
<apeiros> hm, that stupidly easy way doesn't even work :-/
bricker_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<jhass> class LazyThread; def initialize(&code); @code = code; end; def start; @thread.new(&@code); end; end; + delegate stuff
<jhass> er, @thread = Thread
scripore has quit [Quit: This computer has gone to sleep]
<apeiros> and then somebody calls LazyThread.start and you're f'ed :-p
bricker has quit [Ping timeout: 240 seconds]
<apeiros> but ok, that's a line I didn't consider.
<apeiros> use SimpleDelegator
<jhass> yeah
lkba has quit [Remote host closed the connection]
<apeiros> as Thread.stopped, the only way I can currently think of is by spinning
<apeiros> def Thread.stopped(*args); th = Thread.new do; sleep; yield(*args); end; Thread.pass until th.sleep?; th; end
<toretore> class LazyThread < Thread; def initialize(&b); m, cv = Mutex.new, ConditionVariable.new; super{ m.sync{ cv.wait(m); } }; end; def start; cv.signal; end; end ?
chipotle_ has quit [Quit: cheerio]
<toretore> and a b.call after the wait there
<apeiros> I wouldn't want a special .start
<apeiros> I'd want .wakeup to work
<micalexander> I want to include mina-deploy https://github.com/mina-deploy into my gem and work directly with it allowing me to have access to the variables set in the config/deploy.rb. What is the best way to do this? Am I stuck with only being about to call its commands using exec? Or can I interface with it directly?
<apeiros> but yeah, can check whether it's not yet started in wakeup and branch to start/wakeup
<toretore> that should work
<apeiros> I wonder how many things one can do wrong adding the whole thread api, tho
MarkTurner has quit [Quit: This is probably a wireless dropout]
crdpink2 has joined #ruby
Zai00 has joined #ruby
crdpink has quit [Ping timeout: 248 seconds]
<toretore> so immediately after a `Thread.new{};here`, can i safely assume that this thread is running?
existensil has quit [Quit: WeeChat 0.4.2]
xkef has joined #ruby
prestorium has joined #ruby
spider-mario has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
<jhass> no
<Antiarc> toretore: you can assume that it will run at some time now or in the future
poguez_ has quit [Quit: Connection closed for inactivity]
<Antiarc> Though it may also be that that thread has run and terminated by the time that next instruction is reached
<toretore> by that i mean assume that the scheduler knows about the thread and that i can use a Mutex without risking a deadlock
ryanprior has joined #ruby
<jhass> oh, yeah
girakrok has joined #ruby
<jhass> mh, well except for the case Antiarc just mentioned
<jhass> but if you can assure that your thread won't exit till whatever you do in the mutex is done, it's okay
vickleton has quit [Ping timeout: 246 seconds]
<ryanprior> I want to split a string like "cow cat=yellow dog=black" into an array ["cow", "cat=", "yellow", "dog=", "black"]
bricker_ has quit [Ping timeout: 256 seconds]
leonardoajim has quit [Quit: Be back later ...]
<Antiarc> How would you achieve a deadlock with a single mutex, anyhow?
hotpancakes has joined #ruby
<toretore> ok, that's what i meant
<Antiarc> I'm trying to figure that one out and can't come up with a case for it, though it may be that I am just not thinking about it sufficently thoroughly
juanpablo_ has quit [Ping timeout: 255 seconds]
<toretore> Antiarc: well, not an actual deadlock, but ruby telling me about a "possible deadlock"
<Antiarc> Taking a reentrant mutex will throw an exception anyhow
<Antiarc> Ah
<toretore> as it does in that case
blackmesa has joined #ruby
bungoman has joined #ruby
bluOxigen has joined #ruby
existensil has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
bricker has joined #ruby
<jhass> ryanprior: .split(/(?: |(?<==))/)
bluOxigen has left #ruby [#ruby]
zacstewart has quit [Ping timeout: 244 seconds]
<toretore> i'd do split(' ').map{|s| s.split('=') }
mjuszczak has quit []
<jhass> read again
<ljarvis> that doesn't do the same thing
Ilyas has quit [Read error: Connection reset by peer]
<jhass> but derp, .split(/ |(?<==)/)
<toretore> >>"cow cat=yellow dog=black".split(' ').flat_map{|s| s.split('=') }
<ruboto> toretore # => ["cow", "cat", "yellow", "dog", "black"] (https://eval.in/396830)
xkef has quit [Ping timeout: 255 seconds]
<ljarvis> ...
<toretore> ok youre right
prestorium has quit [Quit: Konversation terminated!]
mike___1234 has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
<toretore> i'm just assuming that these are parameter keys that may or may not have values
mgorbach has quit [Quit: ZNC - http://znc.in]
olistik has quit [Remote host closed the connection]
<jhass> and how do you differentiate the keys from the values if you drop the =?
<toretore> >>"cow cat=yellow dog=black".split(' ').map{|s| s.split('=') }
<ruboto> toretore # => [["cow"], ["cat", "yellow"], ["dog", "black"]] (https://eval.in/396831)
existensil has quit [Client Quit]
* apeiros somewhat suspects that ryanprior will do something after that split which would make a different approach better
<jhass> meh, I should just say good night for today
blackmesa has quit [Ping timeout: 255 seconds]
xkef has joined #ruby
mgorbach has joined #ruby
<toretore> it sounds like they are asking about what they think is a partial solution on the way to the final solution
<apeiros> jhass: do the same as I did - say good night and stay around :-p
<apeiros> toretore: yupp.
<apeiros> and I suspect it's a bad partial solution to the real goal.
<apeiros> or rather: it's a bad partial solution to what I suspect to be the real goal.
existensil has joined #ruby
Muhannad has quit [Ping timeout: 256 seconds]
hotpancakes has joined #ruby
allcentury has quit [Ping timeout: 248 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
xkef_ has joined #ruby
xkef has quit [Ping timeout: 240 seconds]
charlenopires has quit [Quit: Lingo: www.lingoirc.com]
Yiota has joined #ruby
<ryanprior> apeiros: I'm doing bash completions and want to be able to check for '=' as I go.
allcentury has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ryanprior> apeiros: if I get more sophisticated in the future, I'll use an actual parser for command line strings and build a data structure. But for the time being I'm just tokenizing it, checking the end of strings for '=', etc.
Azulinho has quit [Ping timeout: 240 seconds]
phutchins2 has joined #ruby
Thomas-0725 has joined #ruby
<ryanprior> incidentally: nobody knows of a ruby parser for system shell strings that builds a data structure, do they?
fgo has joined #ruby
<apeiros> see whether Shellwords covers what you need
bubbys has quit [Ping timeout: 264 seconds]
cashnguns has quit [Remote host closed the connection]
workmad3 has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
<apeiros> if you're processing shell argv data, split is the wrong choice anyway. you'll handle none of the edge cases (quoted values etc.)
<apeiros> you should use Shellwords.split for that and postprocess for =
<ryanprior> apeiros: Shellwords doesn't do anything with constructs of the type --foo=bar afaik
<apeiros> no, it doesn't. as that's a single argument.
<apeiros> it's optionparsers which do something with that.
<apeiros> not the shell.
blenny has left #ruby [#ruby]
<apeiros> and it's depending on the individual optionparser what it actually does with it.
<Thomas-0725> text="someTextWithoutSpaces"; words=["some", "words"]; ... Is there an obvious, easy solution to find the index of the first character of a word in text that is not in words? e.g. first_difference("thisIsText", ["this", "text"]) == 5
<apeiros> e.g. whether -xyz is a single flag "xyz" or a contraction of "-x -y -z"
<apeiros> so all *those* special cases are still undealt with.
<apeiros> Thomas-0725: do you mean == 4?
<apeiros> remember, strings are 0 indexed
<Thomas-0725> apeiros, I do. My mistake
<ryanprior> apeiros: I do want something like an option parser.
<apeiros> ryanprior: I don't know your use case, but remember that each optionparser deals with options differently. see my example.
Fezzler has joined #ruby
<ryanprior> apeiros: my use case is writing bash completions, so option parsers that just take an option string and return a data structure representing its contents aren't actually that useful
<ljarvis> and good option parsers will allow you to configure the ambiguity away
fgo has quit [Ping timeout: 256 seconds]
<apeiros> ryanprior: you keep repeating that. it doesn't really provide meaningful context, though.
<ryanprior> hmm, I'm not sure what more to say
<Thomas-0725> apeiros, for more context, see here ( http://pastebin.com/kd7hf2Nh ) ... specifically, the PigLatinConsonants.first_non_consonant_position(word) method.
<ruboto> Thomas-0725, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/275e3ae52357e2a5c338
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Thomas-0725> noted.
Fezzler has quit [Client Quit]
existensil has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
<apeiros> Thomas-0725: I don't have any obvious way, and too late for me to come up with something sensible.
<Thomas-0725> alrighty. Anyone else?
<apeiros> also the rules matter a bit. e.g. foo("thisthis", ["this"]) == 4 or nil?
hotpancakes has quit [Remote host closed the connection]
<micalexander> I want to include mina-deploy https://github.com/mina-deploy into my gem and work directly with it allowing me to have access to the variables set in the config/deploy.rb. What is the best way to do this? Am I stuck with only being about to call its commands using exec? Or can I interface with it directly?
<Thomas-0725> apeiros it would equal nil
<apeiros> and what about "thisthis", ["is", "thi"] ?
<apeiros> (or just "this", ["is", "thi"])
arooni-mobile has joined #ruby
<Thomas-0725> in that case, we would seek for the longer words first, which would mean that "s" would be excluded, and the return value would be 3.
rehat has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
<apeiros> so text already hit is no longer eligible
gnudon has quit [Read error: Connection reset by peer]
<Thomas-0725> correct
<apeiros> kinda important for a correct algorithm :-p
<apeiros> any characters which can't be in the string? e.g. "\0"?
<apeiros> can't -> are not allowed (in the original string)
<rehat> I need help with reading ruby docs. I am reading a tutorial on Mechanize and it has this line 'agent.page.parser.css('form')' I see the parser method in the doc but not css. Am I reading this wrong?
existensil has quit [Quit: WeeChat 0.4.2]
<Thomas-0725> apeiros, we can assume that the original string is just lowercase, alphabetical characters.
eggoez has quit [Ping timeout: 246 seconds]
<apeiros> Thomas-0725: k. gsub your way through it, replacing stuff with \0 of same length. then just =~ /[^\0]/ :)
revath has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
rbowlby has quit []
existensil has joined #ruby
xkef_ has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Thomas-0725> =~ returns the position of the first exclusion? I thought it returned false. Also, did you view the pastebin/gist.github post? I believe you have described what I already did.
<Thomas-0725> true/false
<apeiros> >> t="thisIsText"; ws=["this", "text"]; ws.each do |w| t.gsub!(w, "\0"*w.size) end; t =~ /[^\0]/
<ruboto> apeiros # => 4 (https://eval.in/396832)
simplyianm has quit [Remote host closed the connection]
<apeiros> =~ returns the position of the match
<apeiros> nil if nothing matched
<apeiros> docs help with such things ;-p
<Thomas-0725> oh ok. That is convenient. I was using .index
<Thomas-0725> In any case, our solutions are essentially the same. So now I at least have backup that my solution doesn't have any glaring issues.
<apeiros> Thomas-0725: oh, also "Text" != "text"
<Thomas-0725> right right. I downcase the input string
ferr has quit [Quit: WeeChat 1.2]
<Thomas-0725> I was using caps only to highlight word spacing for you, my human reader.
simplyianm has joined #ruby
xkef has joined #ruby
ruurd has quit [Quit: Zzzzz z zz ...]
bubbys has joined #ruby
bubbys has quit [Client Quit]
<apeiros> k, kinda important too :-p
<apeiros> ("kinda important" = include it in your descriptions)
Soda has quit [Remote host closed the connection]
eggoez has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<Thomas-0725> ok. Well, issue solved. I posted the paste to clarify any ambiguity in my original question. I will note however to be more specific with future questions.
<Thomas-0725> Thanks bud
SylarRuby has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
bungoman has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
<apeiros> yw
simplyianm has quit [Remote host closed the connection]
hololeap has joined #ruby
sross07 has quit [Read error: Connection reset by peer]
charlenopires has joined #ruby
sross07 has joined #ruby
casadei_ has joined #ruby
fenjamin has joined #ruby
hotpancakes has joined #ruby
but3k4 has joined #ruby
balazs has quit [Remote host closed the connection]
<fenjamin> im looking at destructive methods and {|tree| tree + " Tree"}
zacstewart has quit [Ping timeout: 265 seconds]
<fenjamin> more specifically trees.collect! {|tree| tree + " Tree"}
<cout> fenjamin: if you start with Zero then the result should should be a multiple of Tree :)
<fenjamin> i've assigned trees to an array and would like to understand more about {|tree| tree + " Tree"}
<fenjamin> |tree| what does that mean?
<adaedra> argument of a block
<Antiarc> That's just a block which accepts a argument named "tree", and calls tree.+("Tree") and returns the result
<fenjamin> it inserts Tree into the array
<fenjamin> but how?
RobertBirnie has joined #ruby
casadei_ has quit [Ping timeout: 244 seconds]
simplyianm has joined #ruby
<Antiarc> That should explain it
i8igmac has joined #ruby
phutchins2 has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Ping timeout: 256 seconds]
<fenjamin> the array is called trees - how does it unerstand |trees|?
<fenjamin> *|tree|
RobertBirnie has quit [Read error: Connection reset by peer]
<adaedra> { ... } is a block, it will be called by collect! for each element of the array
<fenjamin> if i call an array times then call the item |time| Ruby understand singular?
<fenjamin> does that makes sense?
RobertBirnie has joined #ruby
<Antiarc> The name doesn't matter
<adaedra> tree is a parameter (like in a function/method), and is passed array elements one by one
<fenjamin> ok so item can be anything
<Antiarc> Yes, you should read up on Ruby blocks
WeiJunLi has quit [Ping timeout: 264 seconds]
WeiJunLi has joined #ruby
<fenjamin> i didn't declare tree as a parameter, i can still call |tree| (or |treats| or |trease|) and it still understands as an item?
scripore has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<fenjamin> and so || is to declare an item without using a parameter?
RobertBirnie has quit [Client Quit]
weemsledeux has joined #ruby
<Thomas-0725> fenjamin, when you call a method and give it a {block}, it basically uses the {block} as a separate method with parameters in |here| instead of (here). So trees.each { |variable| some code} basically means that it will take every item in the array trees and pass it, one-by-one, into the block of code you give it with the individiaul elements passed in as the |tree| parameter.
kirun has quit [Quit: Client exiting]
<fenjamin> awesome
weemsledeux has quit [Max SendQ exceeded]
<fenjamin> I understand clearly!
<Thomas-0725> Like Antiarc said, it will help you to read up on code blocks, Enumerable class, and Enumerable methods. fenjamin
<apeiros> fenjamin: same as with a method or any other variable
<apeiros> def foo(bar) # ruby does not care that you named the argument "bar". it's not relevant to ruby.
<Antiarc> Understanding blocks is pretty fundamental to grokking Ruby
<Antiarc> It's worth spending some time on
<apeiros> same with trees = ["some", "trees"]. ruby has no concept of language. it doesn't understand that your variable refers to a concept in the real world. you could just as well assign those values to x0123z
<fenjamin> you would only declare a parameter if you have no use immediately using it
dopie has joined #ruby
Cache_Money has joined #ruby
phutchins2 has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<fenjamin> blocks really really want to use a method that you didn't do anything to previously
<fenjamin> *use blocks when you really really want to use a method that yo udidn't do anything to previously
<apeiros> o0
vt102 has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
<apeiros> I don't think I understood what you were saying in any of the last 3 messages of yours…
<fenjamin> when you declare a method without a parameter you can use a block on that method when you suddenly need to do something to that method
<adaedra> õ_o
<fenjamin> parameters merely save an ability to perform something
<apeiros> fenjamin: anyway, let me phrase it differently: *all* names in a computer program are *for you*, the programmer. the computer doesn't care at all. all it needs is that different variables have different names.
<fenjamin> aperios: i know and love this part of ruby. my programming school curriculm feels otherwise.
<apeiros> fenjamin: use tab completion. my nick ain't aperios.
<fenjamin> which makes it tremendously confusing and hard to understand because i feel like i'm performing a routine of "who's on first"
nertzy has quit [Read error: Connection reset by peer]
<apeiros> parameters don't save an ability to perform something.
<apeiros> parameters pass values.
<apeiros> from one part of your program to another.
nertzy has joined #ruby
<fenjamin> but in and of themselves are useless until you perform an action on them
einarj has quit [Remote host closed the connection]
<apeiros> whether you do something with that parameter immediately or later is up to the method. it's not part of it being a parameter.
Pupeno_ has joined #ruby
whiteline has quit [Ping timeout: 252 seconds]
<fenjamin> apeiros, cool
<apeiros> um. you could say that about all data.
<fenjamin> this helps me to learn
<fenjamin> brb
<apeiros> regardless of whether the data is passed as params or not… data you don't do something with is useless (even if "do something" just means "store it to disk")
Pupeno has quit [Ping timeout: 244 seconds]
lxsameer has quit [Remote host closed the connection]
Thomas-0725 has joined #ruby
FernandoBasso has quit [Ping timeout: 256 seconds]
MichaelGG has joined #ruby
armyriad has quit [Quit: Leaving]
dopie has quit [Quit: Leaving]
Thomas-0725 has quit [Client Quit]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
zacstewart has joined #ruby
LeDiegue has joined #ruby
arooni-mobile has quit [Ping timeout: 248 seconds]
zacstewart has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
zacstewart has joined #ruby
<LeDiegue> Hi hi
chipotle has joined #ruby
<adaedra> Greetings
leonardoajim has joined #ruby
<LeDiegue> :D
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
Scroff has quit [Remote host closed the connection]
davedev24 has quit []
MichaelGG_ has joined #ruby
bmurt has joined #ruby
dgutierrez1287 has joined #ruby
davedev24 has joined #ruby
CloCkWeRX has joined #ruby
MichaelGG has quit [Ping timeout: 244 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
fabrice31 has joined #ruby