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/
centrx has quit [Quit: Shutting down, Please wait...]
hahuang65 has joined #ruby
x1337807x has quit [Ping timeout: 256 seconds]
ruby-lang481 has quit [Quit: Page closed]
christiandsg has quit [Ping timeout: 267 seconds]
phat4life has quit [Read error: Connection reset by peer]
pgatt has quit [Quit: Connection closed for inactivity]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
drew0 has quit [Quit: WeeChat 1.2]
wprice has quit [Quit: wprice]
marr has quit [Read error: Connection reset by peer]
eggoez has quit [Ping timeout: 256 seconds]
Feyn has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
j_mcnally has joined #ruby
<j_mcnally> hi
<craysiii> hi
<j_mcnally> what are the cool kids using to generate new gems these days
<j_mcnally> is bundler still the defacto generator?
jlast has quit [Ping timeout: 256 seconds]
<baweaver> yep
<baweaver> avoid x-posting by the way
phat4life has joined #ruby
<baweaver> some people are touchy on that.
howdoicomputer has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
ledestin has joined #ruby
bf4 has quit [Quit: leaving]
Musashi007 has joined #ruby
jesterfraud has joined #ruby
sevenseacat has joined #ruby
jerematic has quit [Remote host closed the connection]
Ropeney has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
rcvalle has quit [Quit: rcvalle]
jesterfraud is now known as jesterfraud_afk
Sid05 has quit [Quit: Sid05]
eggoez has joined #ruby
devdazed has joined #ruby
gusrub has quit [Quit: Leaving]
Sid05 has joined #ruby
CloCkWeRX has joined #ruby
Aswebb_ has joined #ruby
DexterLB has quit [Ping timeout: 252 seconds]
whiteline has quit [Ping timeout: 256 seconds]
Sid05 has quit [Client Quit]
swgillespie has joined #ruby
freerobby has joined #ruby
baweaver has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
DexterLB has joined #ruby
<shevy> awww where is arup_r now
<shevy> sevenseacat is awake \o/
<sevenseacat> well... kinda
finisherr has quit [Quit: finisherr]
jesterfraud_afk is now known as jesterfraud
rehat has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
<jesterfraud> sevenseacat I don't even pretend to be awake before midday
Aswebb_ has quit [Ping timeout: 246 seconds]
<sevenseacat> I say kinda because its 8.25am and I have had no caffeine
<jesterfraud> ah yes
bullcitydev has joined #ruby
gambl0re has quit [Ping timeout: 252 seconds]
<jesterfraud> I keep forgetting you're GMT+8, not GMT+10
<sevenseacat> aye
<jesterfraud> I'll let you in on a secret - the next two hours are a rollercoaster ride
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> i like rollercoasters.
<jesterfraud> then you'll love the next two hours
shazaum_ has joined #ruby
michael_mbp has quit [Excess Flood]
mleung has quit [Quit: mleung]
momomomomo has joined #ruby
michael_mbp has joined #ruby
zendrix has quit [Ping timeout: 252 seconds]
<Papierkorb> I have a host name like: www.google.com. Anyone knows a smart split regex so I get this: ["www.google.com", "google.com", "com"] ?
<Radar> Papierkorb: lol regex
<Radar> URI.parse("www.google.com")
momomomomo has quit [Client Quit]
tmtwd has joined #ruby
<Papierkorb> yes I get that string from URI(..).host
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> yup
<Radar> What problem are you trying to solve here?
<Papierkorb> The point is that I get an array with a (sub-)domain removed per element
<eam> Papierkorb: split "." will give you all the names, you can join 'em together as you wish
renderfu_ has quit [Remote host closed the connection]
blackmes1 has joined #ruby
<eam> >> "foo.bar.baz.cx".split(?.)[1..-1].join ?.
<ruboto> eam # => "bar.baz.cx" (https://eval.in/393764)
podman has quit [Quit: Connection closed for inactivity]
<Papierkorb> currently tinkering with my irc bot. I want to give rules for specific URLs to look up, and i want the rule for "youtube.com" also to match "www.youtube.com". Cheating is not allowed, as services like deviantart give each user a subdomain on their own ;)
keen__________13 has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<Papierkorb> There's a short-cut for single character strings? oh man
keen__________13 has joined #ruby
RegulationD has joined #ruby
<Darkwater> which is really weird imo
PotatoCrisps has joined #ruby
oo_ has joined #ruby
maletor has quit [Max SendQ exceeded]
blackmes1 has quit [Ping timeout: 256 seconds]
jackjackdripper has quit [Quit: Leaving.]
pen has quit [Remote host closed the connection]
<shevy> >> ?l
RegulationD has quit [Ping timeout: 248 seconds]
<ruboto> shevy # => "l" (https://eval.in/393765)
<shevy> saved one char!
pen has joined #ruby
<shevy> save the forests... save the keyboards
Sid05 has joined #ruby
fmcgeough has joined #ruby
Muhannad has quit [Ping timeout: 265 seconds]
Sid05 has quit [Client Quit]
Sid05 has joined #ruby
Sid05 has quit [Client Quit]
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
swgillespie has quit [Remote host closed the connection]
Zamyatin has joined #ruby
<eam> it doesn't concat at parse time though, which is a bummer
<eam> >> ?? ??
<ruboto> eam # => /tmp/execpad-151bd5a1e066/source-151bd5a1e066:2: warning: invalid character syntax; use ?\n ...check link for more (https://eval.in/393766)
<eam> >> "?" "?"
<ruboto> eam # => "??" (https://eval.in/393767)
<Papierkorb> >> ??
<ruboto> Papierkorb # => "?" (https://eval.in/393768)
jlast_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
pen has quit [Ping timeout: 256 seconds]
stardiviner has quit [Ping timeout: 244 seconds]
gambl0re has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<eam> >> $VERBOSE=nil or eval "????::??"
<ruboto> eam # => ":" (https://eval.in/393769)
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
RegulationD has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<Papierkorb> >> a = "www.google.com"; a.count('.').times.to_a.map{|i| a.split(/(?<=\.)/)[(i + 1)..-1].join}
<ruboto> Papierkorb # => ["google.com", "com"] (https://eval.in/393770)
jlast_ has quit [Read error: Connection reset by peer]
<Papierkorb> >> a = "www.google.com"; a.count('.').times.to_a.map{|i| a.split(/(?<=\.)/)[i..-1].join}
<ruboto> Papierkorb # => ["www.google.com", "google.com"] (https://eval.in/393771)
<Papierkorb> there we go
jlast has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky_ has joined #ruby
Lucky_ has quit [Client Quit]
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
Soda has quit [Remote host closed the connection]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jesterfraud> what's the difference between /\Ablah\z/ and /\Ablah\Z/?
RegulationD has quit [Ping timeout: 246 seconds]
jlast has quit [Read error: Connection reset by peer]
musty has quit [Quit: ZNC - http://znc.in]
jeramyRR has joined #ruby
<hoelzro> jesterfraud: \Z matches an optional newline
<sevenseacat> I've only seen the former I think
<Radar> hoelzro beat me to it
jlast has joined #ruby
<sevenseacat> ah hah
<jesterfraud> hoelzro: thanks
<sevenseacat> Radar: whoa at that page
<sevenseacat> is it ruby-specific?
sepp2k has quit [Quit: Leaving.]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
jlast_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
<eam> sevenseacat: it's perl specific :)
bruno- has quit [Ping timeout: 264 seconds]
rushed has joined #ruby
<sevenseacat> lol
<sevenseacat> should have guessed that from the url
<bricker> Thinking about the implementation of that... it must use a regex to parse the regex
<sevenseacat> that hurts my brain
jlast_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<bricker> so... many... backslashes...
ebbflowgo has joined #ruby
<eam> maybe it just compiles the regex and looks at the result
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
bruno- has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
stardiviner has joined #ruby
bmurt has joined #ruby
tkuchiki has joined #ruby
dseitz has joined #ruby
jlast_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
ivanskie has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 244 seconds]
jlast has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
allomov has joined #ruby
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
oo_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
allomov_ has quit [Ping timeout: 250 seconds]
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
Pupeno has joined #ruby
stardiviner has quit [Ping timeout: 264 seconds]
bricker has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
devbug has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<jesterfraud> maybe it uses an xml parser. http://stackoverflow.com/a/1732454/201487
<eam> perl -wle'use re Debug => "PARSE"; /foo|bar/'
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
Pupeno has quit [Ping timeout: 250 seconds]
jlast has quit [Read error: Connection reset by peer]
<eam> you actually can parse html with regex; indeed pretty much every parser uses a regex engine for sub-expressions
jlast has joined #ruby
Lucky_ has joined #ruby
leonardoajim has quit [Quit: Be back later ...]
<eam> it's more accurate to say you can't parse it with only one regex
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
Scroff has joined #ruby
jlast has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
jlast has joined #ruby
penzur has joined #ruby
jlast has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has joined #ruby
<jesterfraud> I think it's more a feasibility than a possibility issue
FernandoBasso has quit [Quit: WeeChat 1.2]
rbennacer has joined #ruby
jlast_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
reset has quit [Quit: Leaving...]
<eam> it is feasible though -- pretty much everyone does it
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Scroff has quit [Ping timeout: 276 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
rbennacer has quit [Remote host closed the connection]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
jlast has joined #ruby
coffeecupp has quit [Quit: Leaving]
apt-get_ has quit [Ping timeout: 264 seconds]
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
scrudrv has joined #ruby
ivanskie has joined #ruby
ivanskie has quit [Client Quit]
bruno- has quit [Ping timeout: 252 seconds]
jlast_ has joined #ruby
<jesterfraud> people want it for a quick and dirty though, in general
jlast has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
<jesterfraud> browsers don't :P
Hobogrammer has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> jesterfraud: what I'm saying is that lex(1), the C lexing utility, uses regexes to describe the parsing engine
<eam> rubys own grammar is defined (in part) using regexes
jlast_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
<jesterfraud> yeah, that's fine
<eam> it's totally fine to use regexes in conjunction with a state machine to parse arbitrary complexity stuff
<jesterfraud> sure
<jesterfraud> but assuming valid html is a big assumption
<jesterfraud> among other complexities - are you allowing for HTML entities?
<jesterfraud> that kind of thing
scrudrv has quit [Ping timeout: 256 seconds]
jeramyRR has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
jlast_ has quit [Read error: Connection reset by peer]
symbol has joined #ruby
jlast has joined #ruby
symbol has quit [Client Quit]
dgutierrez1287 has joined #ruby
Channel6 has joined #ruby
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
<eam> jesterfraud: libxml2 is implemented with regexes, for example
jlast_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
phat4life has quit [Read error: Connection reset by peer]
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
hahuang65 has joined #ruby
i8igmac has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
jlast has joined #ruby
_blizzy_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
iamninja has quit [Ping timeout: 246 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
jlast has joined #ruby
jamesaxl has quit [Remote host closed the connection]
bullcitydev has joined #ruby
GitGud has quit [Ping timeout: 255 seconds]
dgutierrez1287 has joined #ruby
phat4life has joined #ruby
jlast has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
scrudrv has joined #ruby
Agoldfish has quit [Quit: G'Bye]
christiandsg has joined #ruby
jlast has joined #ruby
dstarh has joined #ruby
hodI is now known as bosma
jlast has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Ping timeout: 246 seconds]
devdazed has joined #ruby
jlast has joined #ruby
tkuchiki has quit [Client Quit]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
wallerdev_ has quit [Ping timeout: 248 seconds]
j_mcnally has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
Vile` has quit [Remote host closed the connection]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
bronson has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
jcdesimp has joined #ruby
pen has joined #ruby
Vile` has joined #ruby
towski_ has quit [Remote host closed the connection]
chipotle has joined #ruby
Alayde has quit [Ping timeout: 265 seconds]
balazs has joined #ruby
bmurt has quit []
GriffinHeart has joined #ruby
tkuchiki has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jlast has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
jerematic has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
balazs has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
pdoherty has joined #ruby
ValicekB has quit [Ping timeout: 252 seconds]
Azulinho has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
scrudrv has left #ruby [#ruby]
meph has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
nitenq has left #ruby [#ruby]
devdazed has joined #ruby
pdoherty has quit [Quit: Leaving]
ValicekB has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
Aswebb_ has quit [Ping timeout: 252 seconds]
tmtwd has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
mistermocha has joined #ruby
christiandsg has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
umgrosscol has joined #ruby
bruno- has joined #ruby
mistermocha has joined #ruby
NeverDie has joined #ruby
znz_jp has quit [Quit: kill -QUIT $$]
ZeeNoodleyGamer has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
znz_jp has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
parabolize has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
jlast has joined #ruby
jlast has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
jlast_ has joined #ruby
PaulCapestany has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Quit: Leaving...]
shazaum_ has quit [Quit: Leaving]
jlast_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
dothebar1wa has joined #ruby
jeramyRR has quit [Quit: Peace out!]
leonardoajim has joined #ruby
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
dothebar1wa has quit [Client Quit]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has joined #ruby
rushed has quit [Quit: rushed]
jlast has quit [Read error: Connection reset by peer]
rushed has joined #ruby
jlast has joined #ruby
oo_ has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
oo_ has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 252 seconds]
XandnaX has joined #ruby
KnownSyntax has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
sdothum has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
santana has joined #ruby
sharpmachine has quit [Remote host closed the connection]
RegulationD has joined #ruby
darkf has joined #ruby
jlast_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
jlast_ has quit [Remote host closed the connection]
charliesome has joined #ruby
havenwood has joined #ruby
blue_deref has quit [Remote host closed the connection]
djbkd has joined #ruby
howdoicomputer has joined #ruby
chipotle has quit [Ping timeout: 265 seconds]
christiandsg has quit [Remote host closed the connection]
growlove has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 255 seconds]
balazs has joined #ruby
djbkd has quit [Client Quit]
yashinbasement has joined #ruby
ivanskie has joined #ruby
leonardoajim has quit [Ping timeout: 265 seconds]
d0lph1n98 has joined #ruby
<yashinbasement> what's the point of not having () in ruby , it makes coders life easy but I don't know it's kind of bad sometimes
leonardoajim has joined #ruby
<sevenseacat> to reduce unnecessary noise
<sevenseacat> you can still use all the () if you like
timonv has quit [Ping timeout: 265 seconds]
balazs has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
Torrieri has joined #ruby
Torrieri has joined #ruby
f3lp has joined #ruby
icebourg has joined #ruby
jlast_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
Scroff has joined #ruby
sharpmachine has joined #ruby
rodfersou has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
workmad3 has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
<yashinbasement> hi
jesterfraud has joined #ruby
Scroff has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
sharpmachine has quit [Remote host closed the connection]
yashinbasement has quit [Quit: Leaving]
arescorpio has joined #ruby
braincrash has joined #ruby
icebourg has quit []
christiandsg has joined #ruby
Pupeno has quit [Ping timeout: 246 seconds]
eggoez has joined #ruby
baweaver has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
di3soft has joined #ruby
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eggoez has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
howdoicomputer has quit [Read error: Connection reset by peer]
penzur has quit [Quit: Leaving]
olistik has joined #ruby
howdoicomputer has joined #ruby
jlast has joined #ruby
bronson has quit [Remote host closed the connection]
mistermocha has joined #ruby
bronson has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
eggoez has joined #ruby
olistik has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
d0lph1n98 has quit [Quit: leaving]
mistermocha has quit [Ping timeout: 248 seconds]
a346 has quit [Quit: a346]
bigkevmcd has quit [Ping timeout: 265 seconds]
dopie has joined #ruby
Miesco has joined #ruby
<Miesco> Hi, I am getting this error when I direct my browser to my helloworld app: http://paste.debian.net/279698/
<Miesco> What is the first step to fixing this error?
shadoi has quit [Quit: Leaving.]
bigkevmcd has joined #ruby
gix has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
dellavg has joined #ruby
pocketprotector has joined #ruby
juanca_ has joined #ruby
christiandsg has quit [Remote host closed the connection]
oo_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
konsolebox has quit [Read error: Connection reset by peer]
gix has joined #ruby
umgrosscol has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
quazimodo has joined #ruby
hahuang65 has joined #ruby
kkeuning has joined #ruby
ledestin has joined #ruby
hahuang61 has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
danielpclark has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
<quazimodo> morning all
hahuang61 has quit [Client Quit]
<quazimodo> sevenseacat: hey cat
cochise has joined #ruby
hahuang61 has joined #ruby
casadei has quit [Remote host closed the connection]
icebourg has joined #ruby
<sevenseacat> quazimodo: good morning
hahuang65 has quit [Ping timeout: 252 seconds]
di3soft has quit [Remote host closed the connection]
<jesterfraud> you awake yet sevenseacat?
<sevenseacat> jesterfraud: yep.
<sevenseacat> against my better judgement.
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
<quazimodo> how's all
<jesterfraud> know that feeling
idafyaid has joined #ruby
howdoicomputer has quit [Ping timeout: 252 seconds]
hahuang61 has quit [Quit: WeeChat 1.2]
PaulCapestany has joined #ruby
Aswebb_ has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
kkeuning has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jerematic has quit [Remote host closed the connection]
kkeuning has joined #ruby
danielpclark has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
veekram has joined #ruby
mary5030 has joined #ruby
Aswebb_ has quit [Ping timeout: 256 seconds]
jaimessi has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
kkeuning has quit [Ping timeout: 252 seconds]
lessless has joined #ruby
s00pcan has quit [Quit: Lost terminal]
howdoicomputer has joined #ruby
michael_mbp has quit [Excess Flood]
MagePsycho_ has joined #ruby
jaimessi has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
tmtwd has joined #ruby
MagePsycho has quit [Ping timeout: 246 seconds]
sharpmachine has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
michael_mbp has joined #ruby
jlast has joined #ruby
crdpink2 has joined #ruby
jlast has quit [Remote host closed the connection]
crdpink has quit [Ping timeout: 248 seconds]
juanca_ has quit []
sharpmachine has quit [Ping timeout: 248 seconds]
juanca_ has joined #ruby
konsolebox has joined #ruby
christiandsg has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
Pr1zr4k has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
Pr1zr4k has quit [Quit: Saliendo]
jsaak_ has quit [Ping timeout: 252 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
GriffinHeart has joined #ruby
Channel6 has quit [Quit: Leaving]
howdoicomputer has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
howdoicomputer has joined #ruby
j_mcnally has joined #ruby
towski_ has joined #ruby
karols has joined #ruby
jlast has joined #ruby
baweaver_ has joined #ruby
karols has quit [Max SendQ exceeded]
hotpanca_ has quit [Remote host closed the connection]
karols has joined #ruby
jlast has quit [Read error: Connection reset by peer]
karols has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 246 seconds]
karols has joined #ruby
hotpancakes has joined #ruby
mistermocha has joined #ruby
danielpclark has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
karols has quit [Client Quit]
baweaver_ has quit [Ping timeout: 248 seconds]
howdoicomputer has quit [Read error: Connection reset by peer]
iateadonut has quit [Quit: Leaving.]
frem has joined #ruby
karols has joined #ruby
karols has quit [Max SendQ exceeded]
mistermocha has quit [Ping timeout: 252 seconds]
karols has joined #ruby
howdoicomputer has joined #ruby
karols has quit [Max SendQ exceeded]
karols has joined #ruby
_blizzy_ has quit [Ping timeout: 255 seconds]
karols has quit [Max SendQ exceeded]
karols has joined #ruby
Miesco has quit [Read error: No route to host]
RegulationD has joined #ruby
karols has quit [Max SendQ exceeded]
iamninja has joined #ruby
karols has joined #ruby
karols has quit [Max SendQ exceeded]
arescorpio has quit [Quit: Leaving.]
hahuang65 has quit [Ping timeout: 248 seconds]
karols has joined #ruby
santana has quit [Ping timeout: 256 seconds]
chipotle_ has joined #ruby
elcuervo has joined #ruby
elcuervo has quit [Client Quit]
GitGud has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
danielpclark has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
niemcu has joined #ruby
<quazimodo> ox
<quazimodo> how do i name a collection data structure?
<quazimodo> class BusinessListings has instances, each of which is a collection of business listings
<quazimodo> is that wrong?
bhuvanaurora has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
bhuvan_aurora has joined #ruby
charliesome has quit [Quit: zzz]
dellavg has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
konsolebox has quit [Excess Flood]
konsolebox has joined #ruby
davedev24_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
Scroff has joined #ruby
msnyon has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
chinmay_dd has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
christiandsg has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
rushed has quit [Quit: rushed]
devbug_ has joined #ruby
balazs has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
peter_paule has joined #ruby
devbug has quit [Ping timeout: 265 seconds]
howdoicomputer has quit [Ping timeout: 246 seconds]
Ox0dea has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has quit [Ping timeout: 276 seconds]
doctorly has joined #ruby
havenwood has joined #ruby
bhuvan_aurora has quit [Ping timeout: 240 seconds]
bhuvanaurora has quit [Ping timeout: 240 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karols has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
unshadow has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
fenjamin has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 246 seconds]
karols has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
karols has quit [Max SendQ exceeded]
<bnagy> quazimodo: the name seems ok, but make sure you're not just thinly wrapped a standard storage type
<bnagy> like don't < Array for example
karols has joined #ruby
Helheim has quit [Ping timeout: 265 seconds]
karols has quit [Max SendQ exceeded]
peter_paule has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
karols has joined #ruby
acke has joined #ruby
karols has quit [Max SendQ exceeded]
jsaak has joined #ruby
karols has joined #ruby
sharpmachine has joined #ruby
M-Technic has joined #ruby
ivanskie has joined #ruby
tmtwd_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
acke has quit [Ping timeout: 244 seconds]
roolo has joined #ruby
sharpmachine has quit [Ping timeout: 248 seconds]
<baweaver> def [](x) for reader, def []=(x) for writer, define each as yielding from the collection and include Enumerable
chipotle_ has quit [Ping timeout: 256 seconds]
GitGud has quit [Read error: Connection reset by peer]
GitGud has joined #ruby
t_ has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
kiddorails has joined #ruby
Spami has joined #ruby
bhuvan_aurora has joined #ruby
bhuvanaurora has joined #ruby
f3lp has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
kiddorails has quit [Remote host closed the connection]
f3lp has joined #ruby
oo_ has quit [Remote host closed the connection]
thalassa has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
hotpancakes has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
riotjones has joined #ruby
jlast_ has joined #ruby
bronson has joined #ruby
Exponential has joined #ruby
tvw has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
thalassa has joined #ruby
tmtwd_ has quit [Remote host closed the connection]
tmtwd has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 256 seconds]
t_ has joined #ruby
cochise has quit []
jcdesimp has quit [Quit: Leaving...]
towski_ has quit [Remote host closed the connection]
theery has joined #ruby
<pontiki> latest ep of ruby tapas talks about this very thing
mistermocha has joined #ruby
XandnaX has quit [Quit: Leaving...]
<baweaver> avdi is making a hard run for the level of comprehensiveness that Railscasts had, and doing a pretty stellar job of it so far.
<baweaver> considering I now tend to say there's a Tapa for that when asked a ruby question.
doctorly has quit [Ping timeout: 255 seconds]
daas has joined #ruby
hotpancakes has joined #ruby
<pontiki> still not on the order of Randall Munroe, though :D
Gottaname|Mobili has joined #ruby
<baweaver> that's not fair to compare anyone to :P
eGGsha is now known as eGGshke
<pontiki> heehee
<quazimodo> bnagy: nah it has a collection + more stuff
<baweaver> see above
<pontiki> episode 321
<pontiki> hint: use the delegate stdlib
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0lph1n98 has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
musty has joined #ruby
<daas> I'm having a bit of trouble getting shotgun to work
khebbie has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<daas> my simple app is working when I run it normally but if I use shotgun it doesnt
<daas> this is what happens if I go to localhost:9393: http://i.imgur.com/7Jv1GeU.png
darkf_ has joined #ruby
<daas> and this is what the terminal shows: http://i.imgur.com/QIbdl4X.png
Gottaname|Mobili has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 256 seconds]
Aswebb_ has joined #ruby
whiteline has joined #ruby
solars has joined #ruby
darkf has quit [Ping timeout: 248 seconds]
toretore has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
Exponential has quit [Quit: Textual IRC Client: www.textualapp.com]
acke has joined #ruby
sigurding has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<Radar> daas: The port might already be in use. Try running `ps -e | grep ruby` and show us what that outputs please
<daas> 22675 ?? 0:04.51 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby /usr/bin/shotgun app.rb
<daas> 24294 ttys001 0:00.00 grep ruby
Tarkers34 has quit [Ping timeout: 256 seconds]
Aswebb_ has quit [Ping timeout: 264 seconds]
<Radar> Yup, already running.
<Radar> kill -9 22675
<Radar> try again
yfeldblum has joined #ruby
<daas> Thanks a lot
<daas> What exactly did the line `ps -e | grep ruby` do?
<daas> what does it show*
<baweaver> `man ps`
yfeldblu_ has joined #ruby
leonardoajim has quit [Quit: Be back later ...]
juanca_ has quit []
<Radar> "Display information about other users' processes, including those without controlling terminals."
<daas> Thanks baweaver too
jenrzzz has joined #ruby
<Radar> And then the "| grep ruby" part of it looks through that list to find a line that contains '
<Radar> "ruby"
kiddorails has joined #ruby
<daas> cool, got it
darkf_ is now known as darkf
<baweaver> netstat -anp tcp | grep 9000
<baweaver> or
<Radar> On my machine that doesn't show a process?
<baweaver> lsof -i tcp:9000
<baweaver> also work
<baweaver> you don't have anything on 9000 do you?
<Radar> I changed it to 3000
<baweaver> odd
<Radar> tcp4 0 0 127.0.0.1.3000 *.* LISTEN
<Radar> ruby 6894 ryanbigg 12u IPv4 0xa7ac96589d7e3db3 0t0 TCP localhost:hbci (LISTEN)
<Radar> the second one is the lsof output
kreantos has quit [Ping timeout: 248 seconds]
rdark has joined #ruby
<Radar> 6894 is the PID
andikr has joined #ruby
kreantos has joined #ruby
<MagePsycho_> hi guys
<baweaver> probably linux vs mac implementations again
<MagePsycho_> unable to run: gem install mechanize
christiandsg has joined #ruby
<MagePsycho_> ERROR: While executing gem ... (Gem::FilePermissionError)
yfeldblum has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
towski_ has joined #ruby
<MagePsycho_> i installed gem via sudo ..
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> well there was your first mistake
<baweaver> Are you using any ruby version manager?
<MagePsycho_> should i install mechanize via: sudo gem install mechanize?
acke has quit [Remote host closed the connection]
<baweaver> sudo is off limits 9/10 times
<pontiki> no, MagePsycho_
<baweaver> it's like a rocket launcher, use liberally at your own peril
<pontiki> add the following line to $HOME/.gemrc:
daas has quit [Remote host closed the connection]
<pontiki> gem: --user-install
chipotle has quit [Quit: cheerio]
<pontiki> there are much better solutions than that, however
Aswebb_ has joined #ruby
gix has quit [Ping timeout: 240 seconds]
<baweaver> rvm, rbenv, and whatever the flavor of the day is for version managers
<baweaver> what's the most popular now anyways?
tmtwd has joined #ruby
<baweaver> I always get flak for suggesting RVM anymore.
<pontiki> chruby + ruby-install here
<havenwood> chruby + ruby-install
<sevenseacat> ^ that combo is gaining popularity.
<MagePsycho_> baweaver, pontiki FYI, i installed the rvm via: \curl -sSL https://get.rvm.io | sudo bash -s stable
<sevenseacat> (thanks postmodern)
rushed has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
<MagePsycho_> using sudo bash.. as only bash was giving write permission error
RegulationD has joined #ruby
Nahra` has quit [Remote host closed the connection]
<baweaver> Now you're using nuclear bombs
<baweaver> better hope your aim is good
<pontiki> what???
<baweaver> sudo bash
<sevenseacat> * MagePsycho_ accidentally hits Japan
<sevenseacat> oops.
<pontiki> no, i mean not being able to install rvm withOUT sudo
christiandsg has quit [Ping timeout: 265 seconds]
<baweaver> ah
konsolebox has quit [Read error: Connection reset by peer]
_ht has joined #ruby
<MagePsycho_> sevenseacat, pontiki, baweaver: I am lost. may be i need to remove all those and re-install everything
saltsa has joined #ruby
wallerdev has quit [Quit: wallerdev]
karols has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
lxsameer has joined #ruby
<havenwood> MagePsycho_: OS/distro? Installing for development or production?
<bnagy> curl | sudo bash
RegulationD has quit [Ping timeout: 255 seconds]
<bnagy> stab stab stab stab
<Aeyrix> bnagy: For a blind moment I thought you were suggesting that
<Aeyrix> and I got really upset
Pupeno has joined #ruby
<MagePsycho_> FYI, i am using Ubuntu 12.04
howdoi has joined #ruby
<MagePsycho_> and development
<sevenseacat> why 12.04? :/
<sevenseacat> thats three years old
<baweaver> LTS
<Aeyrix> LTS.
<sevenseacat> so is 14.04
<pontiki> doesn't matter in this case, tho
<baweaver> Just stating probably reasons
eGGshke is now known as eGGsha
<Aeyrix> 12.04 is still in support though.
<baweaver> unless you need to be on it though, probably best to upgrade
<Aeyrix> ja
roolo has quit [Remote host closed the connection]
<Aeyrix> It doesn't have a new start menu to wrangle with so you'll be fine. ;)
eGGsha is now known as eGGshke
hahuang65 has joined #ruby
<baweaver> apt-get install gnome3 or cinnamon
<baweaver> fixed
<Aeyrix> Unity.
<baweaver> Never was a fan honestly
<sevenseacat> unity is fine.
eGGshke is now known as eGGsha
<bnagy> iterm2 :P
<baweaver> though that doesn't matter much
niemcu has quit [Ping timeout: 256 seconds]
<baweaver> as I pretty well live in ZSH/TMUX/VIM
<Aeyrix> Nobody here uses Emacs as their OS?
crdpink has joined #ruby
icebourg has quit []
crdpink2 has quit [Ping timeout: 248 seconds]
riotjones has joined #ruby
<MagePsycho_> sevenseacat, pontiki, baweaver: can you help guys? I am lost
<havenwood> MagePsycho_: Do you want just one Ruby, like latest stable, or to be able to switch.
<havenwood> MagePsycho_: Working on apps that require older Rubies?
wallerdev has joined #ruby
hotpancakes has joined #ruby
<havenwood> MagePsycho_: As has been suggested, ruby-install to install Rubies and chruby to switch between them is a nice, flexible option.
<pontiki> i don't know what you did, MagePsycho_, i just fired up a clean precise64 vm, and rvm install just fine without sudo
<MagePsycho_> let me explain how i did
<havenwood> pontiki: I'd expect it to.
<pontiki> exactly
timonv has joined #ruby
<Aeyrix> Has nobody linked Radar's ruby-install thing yet?
iateadonut has joined #ruby
sharpmachine has joined #ruby
<Radar> Not yet.
<ruboto> MagePsycho_, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/dbb230df0d642ee63f80
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
hahuang65 has quit [Ping timeout: 264 seconds]
<Aeyrix> Go go gadget Radar.
<MagePsycho_> here is the full code that i used
<Aeyrix> I don't have the link on hand lel
<Aeyrix> is it in the bot?
<Aeyrix> ?rvm
<ruboto> I don't know anything about rvm
<havenwood> MagePsycho_: So you installed with sudo?
<Aeyrix> Yeah me neither, ruboto.
<Aeyrix> Me neither.
<havenwood> MagePsycho_: sudo bash -s stable <- note the sudo
<MagePsycho_> ruboto, thanks noted
<pontiki> i would really like to see what the problem was trying to install it without sudo
<Aeyrix> MagePsycho_: kek
<Aeyrix> ruboto is a bot
<MagePsycho_> havenwood, yeah
olistik has joined #ruby
<Aeyrix> > sudo bash
<Aeyrix> ;_;
<havenwood> MagePsycho_: Why did you do a system install? Any reason?
<MagePsycho_> new to ruby.. so did as per the tutorial from net
Xeago has joined #ruby
djbkd has quit [Remote host closed the connection]
<pontiki> [20150707|0100.27] < MagePsycho_> using sudo bash.. as only bash was giving write permission error
<havenwood> MagePsycho_: It's not recommended to install RVM with sudo or as root.
<Aeyrix> MagePsycho_: Yeah, I'm just astounded that after all this time it's still the suggested way
<pontiki> that was the reason i saw for using sudo bash
jsaak has quit [Ping timeout: 264 seconds]
<havenwood> pontiki: Likely a previous system install's env vars.
arturaz has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
<havenwood> MagePsycho_: implode your system install and start a completely new terminal session.
<pontiki> havenwood: you must have more psychic power than i do
<baweaver> Well bed for me, 'night all.
sharpmachine has quit [Ping timeout: 244 seconds]
<Aeyrix> ciao
<havenwood> pontiki: Just seen the problem before.
pengin has joined #ruby
baweaver has quit [Remote host closed the connection]
<pontiki> havenwood: i'm unfamiliar with ubuntu installations that render the user's homedir inaccessible
konsolebox has joined #ruby
yardenbar has joined #ruby
<havenwood> pontiki: Person installs RVM with sudo, decides that was a bad idea and either implodes and doesn't start a new shell session or doesn't implode, either way leaving the env vars in place that will cause a regular RVM installation to fail due to root locations.
olistik has quit [Ping timeout: 248 seconds]
<havenwood> pontiki: Lingering sudo install screws up non-sudo install. That's all.
<havenwood> pontiki: Fresh system, no prob.
<pontiki> havenwood: i see
<MagePsycho_> so guys how to fix? uninstall all and re-install using this tutorial: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
<pontiki> perhaps i shouldn't take what people say at face value...
<havenwood> pontiki: Users are *not* to be trusted. :)
<pontiki> havenwood: what about devs?
jlast has joined #ruby
<havenwood> pontiki: Definitely not! :)
<pontiki> i know we must worship the dbas
<havenwood> MagePsycho_: That would be a nice way. There's more than one way to do it.
bruno- has joined #ruby
jlast has quit [Remote host closed the connection]
<MagePsycho_> havenwood, my ruby says: ruby --version
<MagePsycho_> ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
<MagePsycho_> but while installing mechanize: ERROR: Error installing mechanize:
<MagePsycho_> mime-types requires Ruby version >= 1.9.2.
thalassa has quit [Ping timeout: 256 seconds]
<havenwood> MagePsycho_: Are you using sudo?
<MagePsycho_> havenwood, yeah for now just for testing sudo gem install mechanize
<Aeyrix> sudo ruby and ruby are not the same.
<havenwood> MagePsycho_: When you do you drop the RVM env. If you want to use sudo with RVM (you most certainly don't here) you can use rvmsudo to not drop the env.
<MagePsycho_> quickly i need to test one mechanize script for web scraping so
krz has joined #ruby
<MagePsycho_> havenwood, OK i want to uninstall all the ruby rvm
<MagePsycho_> havenwood, how to uninstall all
<havenwood> MagePsycho_: Either start over with RVM and follow their installation instructions or implode it go as suggested.
<havenwood> MagePsycho_: rvm implode
thiagovsk has quit [Quit: Connection closed for inactivity]
<pontiki> probably have to use sudo rvm implode now...
<havenwood> ;)
<MagePsycho_> Could not remove '/usr/share/rvm/', please try removing it manually.
<MagePsycho_> --> :)
<havenwood> pontiki: You mean `rvmsudo rvm implode`, as we discussed. :P
bruno- has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
<MagePsycho_> rvm implode --> sudo rvm implode?
<Aeyrix> rvmsudo
<pontiki> what does --> mean?
<MagePsycho_> sudo rvm implode OR rvmsudo implode
<jesterfraud> sudo should come with a built in quiz to make sure you understand what you're doing, I know I'd fail it :P
<MagePsycho_> which one to use
<Aeyrix> jesterfraud: i agree
<Aeyrix> MagePsycho_: Use the latter.
<havenwood> MagePsycho_: rvmsudo rvm implode
<Aeyrix> rvmsudo implode
<Aeyrix> ya what havenwood said
<Aeyrix> i forgot the middle bit
lee-jon has joined #ruby
jsaak has joined #ruby
<MagePsycho_> havenwood, yeha it worked
<MagePsycho_> now what? sudo gem insall mechanize OR ...
<Aeyrix> no
<Aeyrix> now
<Aeyrix> you follow that guide
<Aeyrix> by Radar
cvtsx1 has quit [Quit: Leaving]
<Aeyrix> it's pretty quick
<Aeyrix> and then you can `gem install mechanize`
<Aeyrix> stop using sudo
<Radar> yers
<Aeyrix> ye
<Radar> -r
<jesterfraud> general rule of thumb: assume a command is run without sudo
<jesterfraud> because sudo is kinda evil
<Aeyrix> Unless anything in that guide explicitly had "sudo" at the start, run it as your user.
<MagePsycho_> OK got your point
<MagePsycho_> ruby --version
<MagePsycho_> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<Aeyrix> has *
<Aeyrix> yes
<Aeyrix> that's default
<MagePsycho_> why? though i just implode it
<Aeyrix> no
<Aeyrix> you imploded ruby 2.x
<Aeyrix> ruby 1.8.7 comes with ubuntu 12.04
<MagePsycho_> ah cool
<Aeyrix> wait, no it doesn't, you installed it with apt
chinmay_dd has quit [Read error: Connection reset by peer]
<Aeyrix> did you?
<Aeyrix> how many versions of ruby do you have lmao
<MagePsycho_> thanks guys.. let me re-install
<noethics> lol
towski_ has quit [Remote host closed the connection]
<MagePsycho_> yeah i installed via https://gist.github.com/dbb230df0d642ee63f80
<sevenseacat> ubuntu does not come with any ruby preinstalled
<Aeyrix> sudo apt-get purge rubygems
<sevenseacat> why did you sudo apt-get install rubygems
<Aeyrix> sudo apt-get purge ruby rubygems
<Aeyrix> do the second one
<Aeyrix> then
<sevenseacat> that would have installed a whole host of crap
<Aeyrix> follow Ryan's guide
<Aeyrix> then
<Aeyrix> you're good
<Aeyrix> you can do what you want
<MagePsycho_> sudo apt-get install build-essential --> it has sudo ;)
<Aeyrix> Yes, because it explicitly is mentioned.
<Aeyrix> It's also required to install the gnu C compiler.
d0lph1n98 has quit [Quit: leaving]
acke has joined #ruby
acke has quit [Read error: Connection reset by peer]
acke has joined #ruby
<MagePsycho_> so far so good.. installing ruby using ruby-install
<Radar> \o/
<havenwood> the crisp, cool breeze
fabrice31 has joined #ruby
workmad3 has joined #ruby
lee-jon has left #ruby [#ruby]
towski_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
<MagePsycho_> but in my mac OSx it was working fine.. i used brew command
<MagePsycho_> just to note :)
<sevenseacat> we wouldnt typically recommend that on osx either.
hotpancakes has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
<MagePsycho_> i use mac osx at home and ubuntu at work
<MagePsycho_> i love mac :)
<MagePsycho_> anyway
<MagePsycho_> >>> Successfully installed ruby 2.2.0 into /home/rajendra/.rubies/ruby-2.2.0
<ruboto> MagePsycho_ # => /tmp/execpad-cc7154d0c89c/source-cc7154d0c89c:2: syntax error, unexpected '>' ...check link for more (https://eval.in/393917)
<sevenseacat> hooray.
<MagePsycho_> but ruby --version says the old
<sevenseacat> err, what old?
<MagePsycho_> sorry i am too fast.. need to follow other steps as well
hotpancakes has quit [Ping timeout: 250 seconds]
<Aeyrix> MagePsycho_: Mac's p great.
<Aeyrix> `brew install ruby` works for Mac though. ;)
Scroff has joined #ruby
<sevenseacat> Aeyrix: why bother if you just want ruby? it comes pre-installed on osx
<Aeyrix> sevenseacat: Older version.
<sevenseacat> for real use we'd still recommend a ruby version manager
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
<Aeyrix> For real use I wouldn't be using OS X in production. :P
<sevenseacat> who said anything about production?
<pontiki> my everyday use of ruby on my mac is production
yardenbar has quit [Quit: Leaving]
<Aeyrix> oh boy
<pontiki> it's not a web site out on the internet
<Aeyrix> Ah.
<pontiki> but it's *my* production
<pontiki> my scripts, my gems, my tools, etc
<Aeyrix> Yeah.
Timba-as has joined #ruby
i8igmac has quit [Ping timeout: 256 seconds]
ta has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
<MagePsycho_> ruby -v says: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
<MagePsycho_> yaayyy
<sevenseacat> yay
<MagePsycho_> need to install ruby gems?
<sevenseacat> now you can gem install whatever you like
Scroff has quit [Ping timeout: 240 seconds]
<MagePsycho_> or it's by default
<sevenseacat> no sudo or anything
<sevenseacat> it comes by default.
<MagePsycho_> wow.. this is cool
<Radar> very cool
mandarinkin has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
dopie has quit [Quit: This computer has gone to sleep]
yayfoxes has joined #ruby
bronson has quit [Remote host closed the connection]
jlast has joined #ruby
yardenbar has joined #ruby
jlast has quit [Remote host closed the connection]
tmtwd has quit [Remote host closed the connection]
hotpancakes has joined #ruby
workmad3 has joined #ruby
msgodf has quit [Ping timeout: 276 seconds]
darkf has quit [Read error: Connection reset by peer]
yardenbar has quit [Read error: Connection reset by peer]
darkf has joined #ruby
yardenbar has joined #ruby
solocsha1 has quit [Ping timeout: 255 seconds]
yardenbar has quit [Client Quit]
yardenbar has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
yardenbar has quit [Remote host closed the connection]
<MagePsycho_> gem install mechanize -> worked like a charm.. thanks a lot guys.. this channel rocks
olistik has joined #ruby
<MagePsycho_> now let me run the ruby script :P
dhjondoh has joined #ruby
<sevenseacat> :)
veekram has quit [Ping timeout: 252 seconds]
theery has quit [Remote host closed the connection]
codecop has joined #ruby
Xeago has joined #ruby
<sevenseacat> now you have a super-easy way of managing versions of ruby, and installing stuff.
hotpancakes has quit [Remote host closed the connection]
yardenbar has joined #ruby
lkba_ has joined #ruby
idafyaid has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
kiddorails has quit [Remote host closed the connection]
dumdedum has joined #ruby
blackmes1 has joined #ruby
towski_ has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
last_staff has joined #ruby
sharpmachine has joined #ruby
ybian has joined #ruby
tagrudev has joined #ruby
doertedev has joined #ruby
iateadonut has quit [Quit: Leaving.]
vondruch has joined #ruby
sharpmachine has quit [Ping timeout: 255 seconds]
ta has joined #ruby
<flughafen> moin sevenseacat shevy certainty
<sevenseacat> guten tag
<flughafen> g'day mate
<sevenseacat> :D
niemcu has joined #ruby
<flughafen> how goeees it? are you level 503 yet in eso?
<sevenseacat> no - only veteran rank 12
<sevenseacat> havent played in a while actually
ta has quit [Remote host closed the connection]
<Radar> E_TOO_MANY_GAMES
<apeiros> Errno::ETOOLITTLETIME
<sevenseacat> oh so many games
<sevenseacat> I think if I never bought another game for the rest of my life, I still would never finish all the ones I have.
dumdedum has quit [Ping timeout: 246 seconds]
* Radar eagerly awaits Just Cause 3 and might be feeling very sick the week that comes out
veekram has joined #ruby
<Radar> Oh, and No Man's Sky
<sevenseacat> next game I'll be sinking a lot of time into is rory mcilroy pga tour 15 <_<
<apeiros> golf?
<sevenseacat> aye!
<apeiros> I think last time I played golf was on the NES
<sevenseacat> <3 golf
ingreave_ has joined #ruby
* apeiros imagines playing golf with the wiimote…
<sevenseacat> I've done that. its harder than it looks.
blackmes1 has quit [Ping timeout: 256 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
senayar has joined #ruby
<flughafen> sevenseacat: i have tons of games i haven't finished, buyt i did recenntly buy and finished the stick of truth.
<lnx> Radar: oh man, no man's sky looks so wicked
<sevenseacat> fallout 4 is probably the next big one i'll buy
monod has joined #ruby
* flughafen still wants to get gta5, it'll look nnice collecting dust next to the other games
fabrice31 has quit [Remote host closed the connection]
agent_white has joined #ruby
apatite_lark has joined #ruby
<sevenseacat> oh i have many hundreds of games doing that.
<agent_white> Evenin' folks
<sevenseacat> sup agent_white
joneshf-laptop has quit [Ping timeout: 256 seconds]
ohaibbq has quit [Quit: Leaving...]
<agent_white> sevenseacat: \o Heya 7-c!
Burgestrand has joined #ruby
Xeago has quit [Remote host closed the connection]
<Radar> lnx: yesss
fabrice31 has joined #ruby
<Radar> gnight folks
<sevenseacat> see ya dood
ta has joined #ruby
<ytti> not to push anyone's buttons, but is someone really using slop4?
chenillen has joined #ruby
<ytti> to me it's just utter show stopper, that i can't use pry
<ytti> so 3.6 it is
<agent_white> Radar: Night!
_blizzy_ has joined #ruby
arooni-mobile has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
abuzze has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
mandarinkin has quit [Ping timeout: 244 seconds]
ingreave_ has quit [Ping timeout: 246 seconds]
eGGsha has joined #ruby
mandarinkin has joined #ruby
wallerdev has quit [Quit: wallerdev]
_blizzy_ has quit [Ping timeout: 248 seconds]
dhjondoh has quit [Quit: dhjondoh]
troulouliou_dev has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
olistik has quit [Remote host closed the connection]
<MagePsycho_> when i run the script. it says: .rb Argument Missing
dhjondoh has joined #ruby
monod has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<sevenseacat> what script?
dumdedum has joined #ruby
tjbiddle has joined #ruby
ta has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<adaedra> Hello
Scroff has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
christiandsg has joined #ruby
lxsameer has joined #ruby
<sevenseacat> and how are you tunning it?
<sevenseacat> *running
krz has quit [Read error: Connection reset by peer]
<MagePsycho_> chmod +x mechanize-test.rb
<MagePsycho_> ruby mechanize-test.rb
mistermocha has quit [Ping timeout: 250 seconds]
<sevenseacat> try just ./mechanize-test
<MagePsycho_> even tried with: ./mechanize-test.rb
<sevenseacat> no .rb
michael_mbp has joined #ruby
<MagePsycho_> .rb is there. typo
<sevenseacat> no .rb
RegulationD has joined #ruby
gagrio has joined #ruby
seal has joined #ruby
apatite_lark has left #ruby [#ruby]
seal has quit [Read error: Connection reset by peer]
<MagePsycho_> extension doesn't matter i guess
christiandsg has quit [Ping timeout: 265 seconds]
<MagePsycho_> in mac it worked fine
<sevenseacat> great. you're not on your mac.
<sevenseacat> rules are different on a mac.
<adaedra> wut
astrobun_ has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
arup_r has joined #ruby
ta has joined #ruby
<MagePsycho_> sevenseacat, i got the issue
<MagePsycho_> sevenseacat, i am running that script from /var/www/
TheHodge has joined #ruby
crazydiamond has quit [Ping timeout: 256 seconds]
RoryHughes has quit [Ping timeout: 246 seconds]
<MagePsycho_> if i run the script from home directory(~), it works fine
bb010g has quit [Quit: Connection closed for inactivity]
<sevenseacat> okay...?
<sevenseacat> that doesnt make a lot of sense, but sure.
eGGsha has joined #ruby
timonv has quit [Ping timeout: 250 seconds]
<MagePsycho_> in /var/www/ i have to use sudo for write permission
<sevenseacat> dont. use. sudo. did we not drill this into your head?
bronson has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
<MagePsycho_> sevenseacat, Yeah. but here we develop in /var/www which is available for root user
<sevenseacat> lol why -_-
<adaedra> should be available for another user, like www
<sevenseacat> thats just horrible
<tobiasvl> MagePsycho_: you develop directly in production?
<adaedra> but that should not be dev env :°
krz has joined #ruby
ferr has joined #ruby
Xeago has joined #ruby
allomov has joined #ruby
senayar has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
axl_ has joined #ruby
Scrofff has joined #ruby
michael_mbp has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 264 seconds]
posixpascal has joined #ruby
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
posixpascal has quit [Max SendQ exceeded]
Xeago has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
marr has joined #ruby
jlast has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
<ddv> MagePsycho_: you should develop locally
jlast has quit [Remote host closed the connection]
<ddv> don't carry bad habits from php to ruby
<sevenseacat> thats not a good idea even in php
<apeiros> do we need `?badidea`?
<Radar> xyes
<sevenseacat> only if we can put a picture of Rad..... hi Radar!
<Radar> OI
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axl_ has quit [Ping timeout: 245 seconds]
<apeiros> lol
<apeiros> and there I thought a pic of 0xABAD1DEA
noname1 has joined #ruby
jas02 has joined #ruby
sharpmachine has joined #ruby
khebbie has joined #ruby
msgodf has joined #ruby
Hounddog has joined #ruby
craysiii has quit [Quit: craysiii]
<arup_r> php is bad.. I lost weight in 2 days after using some php :)
sigurding has quit [Quit: sigurding]
sharpmachine has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
<ddv> really? I need to use php then
<adaedra> lul
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmes1 has joined #ruby
xcesariox has joined #ruby
<yorickpeterse> morning
jud has quit [Quit: Leaving]
olistik has joined #ruby
<adaedra> hi yorickpeterse
jas02 has left #ruby [#ruby]
oo_ has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 250 seconds]
axl_ has joined #ruby
arup_r has quit [Remote host closed the connection]
<neanias> Morninh
<neanias> I now speak Portuguese ^
dionysus69 has joined #ruby
<adaedra> ok
<yorickpeterse> Fun for the whole family: debugging Sinatra regex routes
anisha has joined #ruby
oo_ has joined #ruby
<yorickpeterse> and "why the heck does this not route to where it should"
CustosLimen has quit [Ping timeout: 264 seconds]
<apeiros> and that's why I don't have routes to begin with.
<neanias> What's the regex?
<apeiros> because I'm a person entirely devoid of fun.
* neanias likes regex
<neanias> apeiros: I'm amazed you even go as far as person!
<apeiros> neanias: people tend to not understand the word 'entity'
<MagePsycho_> ddv, php and ruby are for different purpose.. you just cant compare apple with magoes
<apeiros> MagePsycho_: actually, I can
<neanias> People aren't trying hard enough
<neanias> What's a magoes?
* apeiros assumes mangos
<sevenseacat> you really can compare php and ruby
<MagePsycho_> typo ;) mango
<apeiros> you can also really compare apples & mangos & oranges & pears.
<neanias> You can compare anything if you try hard enough
<sevenseacat> one is a shitty scripting language, the other is ruby
<ddv> nothing compares to me tho
konsolebox has quit [Read error: Connection reset by peer]
<yorickpeterse> ddv: that's because nobody wants to compare themselves to you
<yorickpeterse> :>
<yorickpeterse> ho ho ho
<ddv> yorickpeterse: lol
iateadonut has joined #ruby
<apeiros> ddv: well, yeah, difficult to go that low ;-p
<MagePsycho_> php > python > ruby
<MagePsycho_> lol
<sevenseacat> oh dear
<MagePsycho_> no hard feeling.. statistics speak itself
<apeiros> that explains some things
<adaedra> using statistics to compare languages
<sevenseacat> there's statistics about the quality of language? are they written in php? thats the only way php will come out on top
<apeiros> I mean, of course somebody who thinks php > python > ruby would develop with root privileges…
<ddv> only amateurs use php
<adaedra> u w0t m8
<MagePsycho_> i know . you can compare RoR with MVC frameworks of PHP
<sevenseacat> if they're buggy to favour php
<sevenseacat> kind of.
<ddv> nothing comes close to rails tho, even django is always trying to be like rails and still fails
<sevenseacat> not really.
<MagePsycho_> there is demand of all those language.. if you guys are good at ruby then why others need to be ;) they should focus on other languages
<MagePsycho_> LOL
<MagePsycho_> so that it's win win for all
<MagePsycho_> LOL
<sevenseacat> you're more than welcome to focus on php :)
<adaedra> uh
<ddv> ruby is not perfect, take a look at elixir or crystal-lang
<sevenseacat> cuz I really don't want to anymore
<MagePsycho_> nothing is perfect in the world.. you should be adopt to any language
withnale_ has joined #ruby
<MagePsycho_> able to*
<sevenseacat> I sure did, thats why I don't use php anymore
<ddv> come on you love php, sevenseacat
<sevenseacat> I thought it was the shit in like 2004
<neanias> ddv: only behind closed doors
<flughafen> sevenseacat: before you knew any better?
<flughafen> ;)
<sevenseacat> pretty much
renderful has joined #ruby
<MagePsycho_> Go script > python script > ruby script > shell script
<sevenseacat> MagePsycho_ got all the help they needed, now they just want to sit and poke fun
<neanias> MagePsycho_: haskell script
<flughafen> python > ruby > writing binary by hand > php
<sevenseacat> joke's on them
<MagePsycho_> sevenseacat, LOL.. i appreciate you help buddy
<MagePsycho_> your* so many typos
<ddv> buddy :p
<sevenseacat> MagePsycho_: pretty sure the rest of us are laughing at you, not with you.
<adaedra> Or you know, you could just stop trying to compare languages.
<MagePsycho_> so flughafen agrees python > ruby
<neanias> All languages are good for certain purposes
<adaedra> ^
<MagePsycho_> neanias, thats the truth
<adaedra> If only we had a FAQ where this was already explained.
<sevenseacat> I'm not sure when I would ever reach for php over another language
<neanias> I've never touched PHP
<neanias> And I don't intend to
<neanias> Because I don't want to
<adaedra> A virgin :>
<neanias> Steady
<sevenseacat> I did it for quite a few years
arup_r has joined #ruby
<sevenseacat> wrote more than my fair share of monstrosities
tjbiddle has quit [Quit: tjbiddle]
renderful has quit [Ping timeout: 255 seconds]
<MagePsycho_> I am in the process of automating some thing.. and using shell script.. but since it's not so easy for web scraping.. heard about ruby's mechanize.. so thought giving a try
<MagePsycho_> mechanize is simply the best for web scraping
<neanias> Nokogiri
<sevenseacat> I think mechanize uses nokogiri under the hood
<neanias> Take out the middle man then
lee-jon has joined #ruby
<neanias> Oh, hey
<neanias> lee-jon
<nofxx> ruby > python any day, any case
<ddv> nofxx: any arguments?
<yorickpeterse> __python__
<lee-jon> neanias ?
<adaedra> LOLCODE > *
<neanias> It's Will from Cake
<nofxx> ddv, alphabetical or my personal rank?
Ox0dea has joined #ruby
<ddv> oh sorry I read it wrong
<Ox0dea> adaedra: Do you know LOLCODE?
andikr has quit [Remote host closed the connection]
<adaedra> OHAI
<nofxx> mechanize is good if you need to interact (forms, buttons..).. iirc if you can run inside phantojs
<nofxx> to crawl there's polipus
<adaedra> Ox0dea: from name
<nofxx> *you can even run inside phantom
<Ox0dea> adaedra: Ah, okay. You should totally learn it. :)
arooni-mobile has quit [Ping timeout: 248 seconds]
<adaedra> KTHXBYE
* flughafen likes phantomjs
<adaedra> uuuuuuuuuugh phantomjs
jenrzzz has quit [Ping timeout: 240 seconds]
<neanias> I might learn some more haskell
mistermocha has joined #ruby
<flughafen> adaedra: i take it you love phantomjs
lee-jon has left #ruby [#ruby]
ArchRogem has joined #ruby
workmad3 has joined #ruby
<adaedra> flughafen: s/ve/athe/
* sevenseacat goes to learn more elixir
<sevenseacat> actually the book I'm reading uses clojure
havenwood has quit [Ping timeout: 276 seconds]
davedev24_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
<MagePsycho_> sevenseacat, yeah nokogri is there by default in mechanize
MrQuux has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
davedev2_ has quit [Read error: Connection reset by peer]
<yorickpeterse> phantomjs isn't too bad
mistermocha has joined #ruby
jeanlinux has joined #ruby
davedev2_ has joined #ruby
<shevy> sevenseacat you are addicted to that elixir!
<sevenseacat> its what keeps me looking so fresh and young.
kislak has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
<MrQuux> Hi. I have a SOAP interface that returns an error in the form of: "de.foo.bar.SomeJavaClass: 1234: Page is dirty". I intend to match for /de\.foo\.bar\.SomeJavaClass: \d+/ and create a custom error class, where I offer an accessor for the error code, and an accessor for the actual error string ("page is dirty")
<MrQuux> Would this be acceptable design wise?
<ddv> ew soap
<ddv> the java world surely likes old legacy soap stuff apis
davedev24_ has quit [Ping timeout: 248 seconds]
arturaz has quit [Remote host closed the connection]
arturaz has joined #ruby
<ddv> MrQuux: also I have no idea what the problem is
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<MrQuux> ddv: The idea of an error class that provides its own logic how to obtain error related data
PotatoCrisps has quit [Remote host closed the connection]
thalassa has joined #ruby
<bnagy> I would reflexively do that with error subclasses
Musashi007 has joined #ruby
jlast has joined #ruby
jenrzzz has joined #ruby
<bnagy> because it makes the rescues look prettier when people use your code
sigurding has joined #ruby
solocshaw has joined #ruby
jlast has quit [Remote host closed the connection]
<bnagy> ToplevelFooErr < StandardError FooPageDirty < ToplevelFooErr
willhumphreys has joined #ruby
<bnagy> then raise FooPageDirty, "page is dirty, but yolo!"
<MrQuux> bnagy: So I could subclass for the common errors, and just use the generic versions for the others?
<MrQuux> I have a couple thousand errno in this API. :)
<bnagy> you will always get the string, just subclass for the ones users might conceivably want to handle
<bnagy> or use code generation to create them all, it's like 5 loc
<bnagy> so you can rescue ToplevelFooErr and then just use $! for the error string if you want any errors
<MrQuux> bnagy: Cant, my table just lists an error code and a description what it means. You only get to know that its a PageFault if you catch it.
blackmes1 has joined #ruby
<bnagy> well worst case you could generate FooErr1234 classes for everything
<bnagy> but whatever, I can't see your code :)
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 255 seconds]
<bnagy> I'm talking about using code generation once to create a .rb file with all the class definitions, if that wasn't clear
<shevy> use your remote sensing powers!
oo_ has joined #ruby
<MagePsycho_> which ruby cheatsheet you recommend - by learning so many languages confuses you the syntax
parabolize has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<ddv> just read a book
konsolebox has joined #ruby
<bnagy> ?cheatsheet
<ruboto> I don't know anything about cheatsheet
<bnagy> ffs
rushed has quit [Quit: rushed]
<bnagy> derp, it's probably quickref
<bnagy> ?quickref
<bnagy> yeah. I suck.
<adaedra> :<
lkba has joined #ruby
arup_r has quit [Remote host closed the connection]
<Ox0dea> Best parameters for a linear congruential generator?
<shevy> The Oracle is asking a question to the channel inhabitants.
<bnagy> ?linearcongruentialgeneratorparams
<ruboto> I don't know anything about linearcongruentialgeneratorparams
lkba_ has quit [Ping timeout: 250 seconds]
<flughafen> shevy: nothing's taking off for 18 more years
<bnagy> Ox0dea: "It sounds like you're about to do something dangerous with crypto! Would you like help with that?"
<shevy> flughafen lol
<shevy> huh
<Ox0dea> bnagy: Ha. You're not entirely wrong.
<shevy> he is hacking into the CIA?
mistermocha has quit [Read error: Connection reset by peer]
pen has quit []
<bnagy> I can't even think of a good use for LCGs, tbh
<MagePsycho_> FYI, http://githut.info/
mistermocha has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
<bnagy> even ruby builtin is better (mersenne twister)
<bnagy> I guess they're really fast
<Ox0dea> bnagy: Right, but I, er, can't use Ruby's builtin...
Igorshp has joined #ruby
<bnagy> what do you need the random for?
<Ox0dea> Randomness.
dangerousdave has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<bnagy> yes.
<bnagy> what are you going to use your randomness for?
ixti has quit [Ping timeout: 246 seconds]
sharpmachine has joined #ruby
<Ox0dea> Sufficiently unpredictable sequences of numbers?
platzhirsch has joined #ruby
<bnagy> ok then you can't use LCGs at all
<yorickpeterse> man, Sinatra's route compilation is fucking wack
<Ox0dea> The randomness doesn't actually need to be cryptographically secure.
<bnagy> first you say unpredictable then you say doesn't need to be unpredictable :)
ixti has joined #ruby
<Ox0dea> I was careful to couch with "sufficiently".
<yorickpeterse> e.g. say you have a path at /foo and use get { } then it matches /foo
<yorickpeterse> but if you do get '' { } the regex becomes \A/foo\z
<yorickpeterse> and if you combine this with sinatra-namespace and regex routes you get even crazier stuff
Scroff has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
sharpmachine has quit [Ping timeout: 248 seconds]
<flughafen> everytime i hit play in spotify i immediately have to get up and go to another office
andikr has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31_ has joined #ruby
Scrofff has quit [Ping timeout: 255 seconds]
<adaedra> workify
sevenseacat has quit [Quit: Me dun like you no more.]
quazimodo has joined #ruby
fella5s has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
workmad3 has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
GriffinHeart has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
danielglh has joined #ruby
jaimessi has quit [Read error: Connection reset by peer]
jaimessi has joined #ruby
eGGsha has joined #ruby
arup_r has joined #ruby
christiandsg has joined #ruby
jlast has joined #ruby
msnyon has joined #ruby
_blizzy_ has joined #ruby
olistik has quit [Remote host closed the connection]
tobacco_joe has joined #ruby
bruno- has joined #ruby
RegulationD has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
meph has joined #ruby
msnyon has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
jlast has quit [Read error: Connection reset by peer]
chenillen has quit [Quit: chenillen]
jlast has joined #ruby
_blizzy_ has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
jlast has quit [Read error: Connection reset by peer]
tobacco_joe is now known as tobacco_joe01
neanderslob has quit [Remote host closed the connection]
neanderslob_ has joined #ruby
neanderslob_ has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
niemcu has quit [Remote host closed the connection]
hotpancakes has joined #ruby
ndrei has joined #ruby
Zai00 has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danielglh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 248 seconds]
<MagePsycho_> how to log in ruby
futilegames has joined #ruby
_joes_ has quit [Ping timeout: 248 seconds]
DEac-_ is now known as DEac-
<MagePsycho_> fp = File.new("mechanize.log", "a+"); fp.write() ?
oo_ has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
eGGsha has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
jaimessi has quit [Read error: Connection reset by peer]
bronson has joined #ruby
jaimessi has joined #ruby
<adaedra> There are gems for that
_joes_ has joined #ruby
<MagePsycho_> adaedra, which gems you use
<adaedra> I used yell
M-Technic has quit [Ping timeout: 244 seconds]
gambl0re has quit [Ping timeout: 256 seconds]
DLSteve has joined #ruby
Igorshp has quit [Remote host closed the connection]
krz has joined #ruby
ndrei has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
jeanlinux has quit [Remote host closed the connection]
magical-imouto is now known as pyon
<shevy> le french 'ell
konsolebox has joined #ruby
pyon is now known as magical-imouto
denver has joined #ruby
stamina has joined #ruby
willhumphreys has quit [Ping timeout: 246 seconds]
eightyeights has joined #ruby
icosa has joined #ruby
olistik has joined #ruby
_joes_ has quit [Ping timeout: 256 seconds]
_joes_ has joined #ruby
Nick_joes has joined #ruby
<_mh_> morning. Trying to get an extconf.rb to run flex and bison, then to compile the results. (current extconf.rb: https://gist.github.com/mbbh/d11c164283bc160d43a5) Someone got any pointers for me? ( a working example would suffice )
fabrice31_ has quit [Remote host closed the connection]
magical-imouto is now known as pyon
_joes_ has quit [Ping timeout: 256 seconds]
mistermocha has joined #ruby
sharpmachine has joined #ruby
oo_ has quit [Remote host closed the connection]
konsolebox has quit [Read error: Connection reset by peer]
Alina-malina has quit [Read error: Connection reset by peer]
lokulin has quit [Ping timeout: 252 seconds]
Siyfion has joined #ruby
neanderslob has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Ox0dea> What is the penalty for using -> do end?
Rickmasta has joined #ruby
codecop has quit [Ping timeout: 256 seconds]
<shevy> someone will kill a kitten
sharpmachine has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
<MagePsycho_> -bash: /usr/share/ruby-rvm/scripts/initialize: No such file or directory
<tobacco_joe01> why should there be a penalty?
<neanias> shevy: sounds about right
astrobun_ has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<MagePsycho_> whenver i do cd /path/ -> gives me the above error
jlast has joined #ruby
mistermo_ has joined #ruby
<shevy> possibly depends on what kind of penalty. Maybe it is super slow
<Ox0dea> No, it just doesn't look right.
<shevy> YES
<shevy> FINALLY :)
<Ox0dea> -> {} and proc do end, but no mixing.
<shevy> I shall immortalize the Oracle's statement
jlast has quit [Remote host closed the connection]
<Ox0dea> To be clear, I have no problem with stabby lambdas.
<shevy> It just doesn't look right.
mistermocha has quit [Ping timeout: 248 seconds]
<shevy> I actually use {} usually
<shevy> I liked it as visual separator
<shevy> def bla
<shevy> lala.each {
<shevy> }
<shevy> end
<Ox0dea> Eh, I just use Weirich's rule.
<ytti> shevy, you monster
<shevy> ytti haha
Igorshp has joined #ruby
<shevy> well it does not work for DSLs
chinmay_dd has quit [Ping timeout: 248 seconds]
<shevy> in sinatra I use the do/end
sdothum has joined #ruby
<ytti> big thing with do/end is that you need ruby specific intelligence in vim, to get '%' working
<shevy> or just use emacs!
jenrzzz has quit [Ping timeout: 276 seconds]
<adaedra> lolno
<apeiros> Ox0dea: {} vs. do/end?
<apeiros> if so: jim weirich's rule++
<neanias> Ox0dea, what's Weirich's rule?
<neanias> ytti: vim-ruby obvs
senayar has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
senayar has joined #ruby
<Ox0dea> apeiros: I kvetch specifically at the combination of -> and do/end, but otherwise yeah, Weirich's rule is best rule.
nettoweb has joined #ruby
k3asd` has joined #ruby
<apeiros> but with ->, you always want the return value, therefore -> is always {} according to JW's rule :)
oo_ has joined #ruby
<Ox0dea> No, that needn't be so.
<apeiros> I don't know what kvetching is, though :D
<apeiros> I'm quite curious for a case where you don't want the return value of -> ^^
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<apeiros> (if you .call it -> return value, if you assign it to a variable -> return value, if you pass it to a method -> return value…)
<Ox0dea> Not if you're passing it to a method simply for the side effects it'll have.
<Ox0dea> Which is admittedly quite unorthodox.
lokulin has joined #ruby
<apeiros> that's still using its return value
ndrei has quit [Ping timeout: 255 seconds]
<apeiros> the return value of -> is the Proc instance you get
j_mcnally has joined #ruby
lkba_ has joined #ruby
<apeiros> and passing that object is using it :)
<apeiros> ->{} doesn't have any immediate side effect. you have to invoke it. one way or another.
<Ox0dea> I learned "kvetch" from Guy Steele's "Growing a Language" talk, in which he limited himself to words of one syllable or those he'd previously defined (using words of one syllable).
<Ox0dea> It's basically "blech".
Zai00 has quit [Quit: Zai00]
<apeiros> man, fuck those SAN SSL cert vendors
<apeiros> "we sell you a SAN, but please pay up for each domain you want to add to the cert…"
konsolebox has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
<shevy> now this is how to make apeiros angry!
<Ox0dea> Let's Encrypt should be interesting.
konsolebox has quit [Read error: Connection reset by peer]
<apeiros> are they operational already?
<shevy> SSL the world - and pay for it :)
<Ox0dea> apeiros: Coming September.
j_mcnally has quit [Client Quit]
lkba has quit [Ping timeout: 252 seconds]
khebbie has joined #ruby
<apeiros> fuck them. does a CNAME to an SSL certified domain name work?
<Ox0dea> It seems that would be the crux of the operation, no?
<ljarvis> undefined method `flap_map' for #<Array
<ljarvis> I do this way too often
<apeiros> flap_flap
<apeiros> you played too much
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
wpp has joined #ruby
duncannz has quit [Remote host closed the connection]
<shevy> bird attack
<shevy> the map that flaps
<shevy> flat_flats
pyon has quit [Quit: fix config]
<shevy> "remove mysterious fflush() introduced at r19890, maybe accidentally."
<shevy> mystery code!
quazimodo has joined #ruby
Mon_Ouie has joined #ruby
niemcu has joined #ruby
lxsameer has joined #ruby
<Ox0dea> My patch to make Kernel.global_variables not lie (https://gist.github.com/anonymous/4f39fe276dcf168ffa76#file-gvars-patch-L14) would add bewbs to the source tree, but it's probably not gonna get in.
mistermo_ has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> why won't it get in?
<agent_white> JUST PUSH IT. PUSH IT GOOD.
<adaedra> lewd
phutchins has joined #ruby
konsolebox has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
<Ox0dea> shevy: I do think the code should be "correct" and that methods should return what they say they do, but how often does it really matter that $1-9 are always in there, or that $10+ will never be?
Igorshp has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 255 seconds]
<adaedra> (O)x(0)dea
<Ox0dea> It still bugs me that $1-9 are artificially added to the result, if only because I can't hit upon the logic that made nobu do it.
<shevy> ah I see
<shevy> well the logic is simple!
<shevy> $9 is two chars
<shevy> $10 is three chars!!!!
veekram has quit [Ping timeout: 250 seconds]
<Ox0dea> It's still a perfectly valid global variable, of course.
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> $10 is a meal
sigurding has quit [Quit: sigurding]
nfk has joined #ruby
bronson has joined #ruby
<Ox0dea> >> [defined?($1), global_variables.include?(:$1), ''[/#{'()'*10}/], defined?($10), global_variables.include?(:$10)]
<ruboto> Ox0dea # => [nil, true, "", "global-variable", false] (https://eval.in/394095)
<Ox0dea> That is a very surprising result.
<shevy> it really bugs you
<Ox0dea> It does.
<ddv> rofl I have been seeing the same discussion for weeks
crazydiamond has joined #ruby
<Ox0dea> In my defense, `ps aux` has 11 columns.
solocsha1 has joined #ruby
sgambino has joined #ruby
<neanias> MagePsycho_: http://githut.info if you look at Q3/14, it's Python > Ruby > PHP
sgambino has quit [Client Quit]
meph has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 256 seconds]
AxonetBE has joined #ruby
<AxonetBE> I do an import of some information through csv and in my mysql database the text is : https://gist.github.com/bigbentobox/bd87b4cd22093dc54e26 You see some starts and I want to make this a html list (ul->li). I thought to use markdown -> html but as it is on the same line it is not working. What other solutions are there?
blackmes1 has joined #ruby
solocsha1 has quit [Ping timeout: 255 seconds]
willhumphreys has joined #ruby
<Ox0dea> AxonetBE: Will your list elements ever contain asterisks?
<AxonetBE> AxonetBE: No
Nick_joes_ has joined #ruby
<AxonetBE> Ox0dea: No
<Ox0dea> AxonetBE: Then a regular expression could do.
eGGsha has joined #ruby
<Ox0dea> AxonetBE: Something along the lines of gsub(/\* ([^*]+)/, '<li>\1</li>')
<AxonetBE> Ox0dea: I also thought about it but how to know from where to where to surround li and ul
<Ox0dea> AxonetBE: Are the lists always going to be introduced with a colon?
Nick_joes_ has quit [Read error: Connection reset by peer]
Nick_joes_ has joined #ruby
<AxonetBE> not sure
Igorshp has joined #ruby
Nick_joes has quit [Ping timeout: 240 seconds]
<AxonetBE> Ox0dea: better maybe to do first the gsub(/\* ([^*]+)/, '<li>\1</li>') part and after find the first <li> and the last </li> and surround it by ul
oo_ has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
veekram has joined #ruby
codecop has joined #ruby
<Ox0dea> >> 'here comes a list * foo * bar * baz'.gsub(/\* ([^*]+)/, '<li>\1</li>').sub(/(<.*>)/, '<ul>\1</ul>')
<ruboto> Ox0dea # => "here comes a list <ul><li>foo </li><li>bar </li><li>baz</li></ul>" (https://eval.in/394100)
<Ox0dea> AxonetBE: ^ That would indeed do the trick, but it looks a little gnarly.
<MagePsycho_> neanias, yeah ruby is dong good, thats why i am in #ruby channel :)
c355E3B has joined #ruby
<neanias> Fair
<Ox0dea> -1 for choosing Ruby because of its popularity and not on its merits as a language.
<adaedra> -1 for getting a -1 from Ox0dea
jesterfraud has joined #ruby
codecop has quit [Remote host closed the connection]
sharpmachine has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<neanias> +1 for something
<heftig> +√˗1 for dong
<neanias> +i for dong?
<shevy> ding dong ding dong!
<Ox0dea> Shame.
<AxonetBE> Ox0dea: problem with my text https://eval.in/394103 don't see from where it comes
cek has joined #ruby
<heftig> don't support the oppression of the number line!
<heftig> wake up, realpe!
<cek> Hi. Need json formatter with color (html) for our support dept.
<jhass> cek: highlight.js
rodfersou has joined #ruby
sharpmachine has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 264 seconds]
Scroff has quit [Ping timeout: 246 seconds]
<Ox0dea> AxonetBE: You'll need to put the "m" flag (multi-line) on your regular expressions.
ndrei has joined #ruby
Guest24 has quit [Ping timeout: 244 seconds]
eightyeights has quit [Quit: Textual IRC Client: www.textualapp.com]
christiandsg has joined #ruby
yfeldblu_ has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
<Ox0dea> AxonetBE: Erm, just the second one, in the call to #sub.
sigurding has joined #ruby
CatMartyn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nick_joes_ has quit [Ping timeout: 264 seconds]
but3k4 has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
diegoviola has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
christiandsg has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 248 seconds]
y0da has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
jeanlinux has joined #ruby
lele has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
Soda has joined #ruby
Scroff has joined #ruby
Musashi007 has joined #ruby
pyon has joined #ruby
dgutierrez1287 has joined #ruby
fabrice31 has joined #ruby
dangerousdave has joined #ruby
ldnunes has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
Vile` has joined #ruby
chthon has joined #ruby
millerti has joined #ruby
joneshf-laptop has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
hotpancakes has joined #ruby
joneshf-laptop has quit [Read error: Connection reset by peer]
joneshf-laptop has joined #ruby
varunwachaspati has joined #ruby
eGGsha has joined #ruby
<cek> tnx
<shevy> gah I can not code in this heat
aryaching has joined #ruby
* adaedra throws shevy a bucket of ice
mandarinkin has quit [Ping timeout: 264 seconds]
stamina has quit [Quit: WeeChat 1.2]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpancakes has quit [Ping timeout: 252 seconds]
sa233sad has joined #ruby
superrorc has joined #ruby
ledestin has joined #ruby
<superrorc> Hi there!
<sa233sad> Oh, hello.
ArchRogem has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<superrorc> i have string - [15:25:10] [INFO] retrieved: "nfive@mail.ru","d9b17a0af10e7b8a83b8ec04e57b9b78"
arturaz has quit [Ping timeout: 264 seconds]
<superrorc> trying to select mail and hash like this " .scan(/"\d+\","\d+\"/) "
khebbie has quit [Ping timeout: 244 seconds]
<superrorc> but it doesnt works
mistermocha has joined #ruby
<shevy> did you try rubular.com?
<superrorc> no
Igorshp has quit [Remote host closed the connection]
<shevy> btw \d will match for numbers
Nick_joes_ has joined #ruby
<superrorc> ow
<shevy> this is not the regex you should use btw, just a demo
<shevy> in the box "Match groups" you can see the two match groups, which will be stored in $1 and $2 respectively
Pathfinder has joined #ruby
<shevy> you can improve on that regex - first one for instance, might always include a "@" character
Tarkers34 has joined #ruby
Pathfinder has quit [Remote host closed the connection]
<ljarvis> >> '[15:25:10] [INFO] retrieved: "nfive@mail.ru","d9b17a0af10e7b8a83b8ec04e57b9b78"'.scan(/"([^"]+)"/)
<ruboto> ljarvis # => [["nfive@mail.ru"], ["d9b17a0af10e7b8a83b8ec04e57b9b78"]] (https://eval.in/394119)
Scroff has quit [Ping timeout: 240 seconds]
<superrorc> shevy: ow . that is i need! thanks a lot!
mutuma has joined #ruby
<shevy> yeah rubular is awesome for finding regexes
<superrorc> yea! and for what need 2d fiels?
t3k has joined #ruby
mutuma has quit [Client Quit]
<superrorc> like / reg ex / / here ?
zacstewart has joined #ruby
<shevy> hmm where do you see that
astrobun_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
<yorickpeterse> Does Sinatra have a way to customize what regular expressions it generates for named parameters in paths? e.g. "/:id" results in basically /\/([^/?#]+)/ but I want it to use a different pattern (e.g. /\/(\d+)/)
<shevy> I only see / foo /
sa233sad has quit [Quit: leaving]
<ljarvis> yorickpeterse: I think you can use named captures?
hoofed has joined #ruby
<yorickpeterse> ljarvis: Yes, so here's the problem:
<yorickpeterse> I can't use regular expressions as paths because we use the paths in our documentation
<ljarvis> yes that does seem like a problem
<yorickpeterse> and "/:id" reads way better than /\d(?<id>\d+)/
<yorickpeterse> errr
<yorickpeterse> that should be /\/(?<id>\d+)/
<yorickpeterse> We use the paths so people actually know where to send their stuff to
michael_mbp has quit [Excess Flood]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has joined #ruby
_ixti_ has joined #ruby
khebbie has joined #ruby
<yorickpeterse> hrmpf, looking at the code I'll have to hack this in
Zai00 has joined #ruby
ixti has quit [Ping timeout: 265 seconds]
zeeraw has joined #ruby
mandarinkin has joined #ruby
michael_mbp has joined #ruby
balazs has joined #ruby
zeeraw has quit [Client Quit]
zeeraw has joined #ruby
last_staff has quit [Remote host closed the connection]
rbennacer has joined #ruby
<yorickpeterse> https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb#L1650 hnngngng, if only I could easily hijack code here
senayar has quit [Remote host closed the connection]
Tarkers34 has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
Soda has quit [Remote host closed the connection]
[k- has joined #ruby
Igorshp has joined #ruby
acke_ has joined #ruby
acke has quit [Read error: Connection reset by peer]
acke has joined #ruby
abuzze has quit [Remote host closed the connection]
acke_ has quit [Read error: No route to host]
icosa has quit [Remote host closed the connection]
thiagovsk has joined #ruby
matp has quit [Remote host closed the connection]
bruno- has joined #ruby
matp has joined #ruby
abuzze has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
nateberkopec has joined #ruby
sharpmachine has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
bayed has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
CatMartyn has joined #ruby
arturaz has joined #ruby
willhumphreys has quit [Ping timeout: 252 seconds]
astrobun_ has joined #ruby
ArchRogem has joined #ruby
<shevy> huh
<shevy> Symbols have an encoding?
<shevy> >> :foo.encoding.to_s
<ruboto> shevy # => "US-ASCII" (https://eval.in/394148)
sharpmachine has quit [Ping timeout: 248 seconds]
rbennacer has quit [Remote host closed the connection]
shum has joined #ruby
sdothum has quit [Ping timeout: 264 seconds]
Tarkers34 has joined #ruby
<[k-> >> :"£".encoding.to_s
<ruboto> [k- # => "UTF-8" (https://eval.in/394149)
<Ox0dea> It makes perfect sense; Symbols are just interned strings.
<yorickpeterse> man it's amazing how taking a poop can give such wonderful ideas
Alina-malina has joined #ruby
<Ox0dea> [k-: I made you a thing: https://eval.in/394150
sigurding has quit [Quit: sigurding]
<yorickpeterse> and thanks to Ruby for actually exposing Regex named captures in a Regexp instance
<[k-> noice :3
varunwachaspati has quit [Ping timeout: 255 seconds]
<yorickpeterse> From the rdoc:
<[k-> there aren't any - tho
<yorickpeterse> If there are no named captures, an empty hash is returned.
<[k-> how does that work
<yorickpeterse> /(.)(.)/.named_captures
<yorickpeterse> somebody had a giggle there I Think
<[k-> ahh different base
<[k-> ((.).(.).(.)) is legit haskell
<Ox0dea> .().().().().() is legit Ruby.
<[k-> that is nothing special
<Ox0dea> You're right.
<[k-> :>
varunwachaspati has joined #ruby
<yorickpeterse> Ox0dea: it's not
<Ox0dea> yorickpeterse: It is.
<yorickpeterse> >> .().().().().()
<ruboto> yorickpeterse # => /tmp/execpad-17b24de75791/source-17b24de75791:2: syntax error, unexpected '.' ...check link for more (https://eval.in/394153)
RegulationD has joined #ruby
<yorickpeterse> it's not
<Ox0dea> yorickpeterse: I didn't mean by itself.
<yorickpeterse> suuuuuure
<Ox0dea> You'd obviously need to call it on a lambda that returned a lambda that returned a lambda...
<[k-> >> class A def .call; self end end; A.new.().().().().().().()
<ruboto> [k- # => /tmp/execpad-2d3980cd969a/source-2d3980cd969a:2: syntax error, unexpected keyword_def, expecting '<' ...check link for more (https://eval.in/394154)
<[k-> oops
<adaedra> >> A = -> { A }; A.().().().().().()
<ruboto> adaedra # => #<Proc:0x40eae148@/tmp/execpad-8cea00a3f76f/source-8cea00a3f76f:2 (lambda)> (https://eval.in/394155)
millerti has joined #ruby
k3asd` has quit [Ping timeout: 252 seconds]
<[k-> >> class A; def call; self end end; A.new.().().().().().().()
sigurding has joined #ruby
<ruboto> [k- # => #<A:0x40e63fa8> (https://eval.in/394156)
Nick_joes has joined #ruby
<[k-> I learnt from Ox0dea that ends do not need to start on separate lines!
<Ox0dea> [k-: And I learned that from the Japanese.
<Ox0dea> They write such strange Ruby sometimes. I love it, though.
jerematic has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
symbol has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danielglh has joined #ruby
<[k-> :o
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> they know Ruby best
<[k-> afterall, they were the first adopters of ruby
RegulationD has quit [Ping timeout: 265 seconds]
danielglh has quit [Max SendQ exceeded]
Nick_joes_ has quit [Ping timeout: 250 seconds]
shum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
stardiviner has joined #ruby
jeanlinux has joined #ruby
<Ox0dea> The language's original aesthetic, insofar as it could be said to have such a thing, has certainly become unorthodox, but I suppose that's for the better; a language is its ecosystem, after all.
but3k4 has joined #ruby
y0da has quit [Read error: Connection reset by peer]
<yorickpeterse> yay I wrote a regex to parse/find/replace regexes
<yorickpeterse> >> '/groups%r{/(?<id>\\d+)/reviews/(?<foo>\w+)/butts}'.gsub(/%r{|}/, '').gsub(/\(\?<([^>]+)>[^\)]+\)/, ':\\1')
<ruboto> yorickpeterse # => "/groups/:id/reviews/:foo/butts" (https://eval.in/394165)
<yorickpeterse> \0/
blackmes1 has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
pyon is now known as magical-imouto
<yorickpeterse> somewhere out there a baby seal just hung itself
blackmes1 has joined #ruby
<canton7> I swear I wrote a regex to generate regexes at some point...
eGGsha has joined #ruby
willhumphreys has joined #ruby
eGGsha has quit [Max SendQ exceeded]
<[k-> >> Regexp.union *%w(dog cat human bat)
<ruboto> [k- # => /dog|cat|human|bat/ (https://eval.in/394169)
jeanlinux has quit [Ping timeout: 255 seconds]
<yorickpeterse> Hm, it would be nice if you could do something like X.gsub(/%r(.)|$1/, '')/
<yorickpeterse> errr
<yorickpeterse> X.gsub(/%r(.)|$1/, '')
<yorickpeterse> which would replace "%r{" and "}" with ''
<yorickpeterse> or "%r(" and ")"
<[k-> but that would break pita
<[k-> pola
<[k-> err what was the acronym?
<Ox0dea> It was "surprise" long before "astonishment", I think.
jhwhite has joined #ruby
<Burgestrand> yorickpeterse: and it would automatically figure out that the closing brace of ( or { is ) or }? :O
fabrice31 has quit [Remote host closed the connection]
<yorickpeterse> Yes
<yorickpeterse> magic
<Ox0dea> require 'dwim'; DWIM.dwim
<Burgestrand> Magic is scary
tmi has quit [Ping timeout: 256 seconds]
hotpancakes has joined #ruby
paulcsmith has joined #ruby
iwishiwerearobot has joined #ruby
<Burgestrand> I just found this http://installrails.com/ — it's nice to have a how-to install guide. Are there any more similar to this somewhere else?
danielglh has joined #ruby
eGGsha has joined #ruby
<yorickpeterse> another reason not to use fucking Ripper
Meow-J has joined #ruby
lxsameer has quit [Quit: Leaving]
anisha has quit [Ping timeout: 244 seconds]
danielglh has quit [Read error: Connection reset by peer]
<yorickpeterse> but surely Ripper is a well designed standard library
<Burgestrand> Surely all the standard libraries are well designed and well written
<Burgestrand> and well documented and tested
<Burgestrand> !
<yorickpeterse> it's been getting better
<yorickpeterse> but Ripper needs to burn
<[k-> you all sound like my online Japanese friend
<[k-> surely ...
<Burgestrand> There are many dragons in the standard library, people who dare venture in those depths to slay them are heroes.
<yorickpeterse> My solution is far easier
hotpancakes has quit [Ping timeout: 265 seconds]
<yorickpeterse> rm -rf lib/ripper
<[k-> you get commit access if you do venture!
<[k-> Ox0dea - in tr ;-;
byroniczero has quit [Quit: Textual IRC Client: www.textualapp.com]
stardiviner has quit [Ping timeout: 250 seconds]
<Ox0dea> [k-: This is bad?
byroniczero has joined #ruby
fabrice31 has joined #ruby
jaimessi has quit [Read error: Connection reset by peer]
troulouliou_dev has quit [Quit: Leaving]
dangerousdave has joined #ruby
sigurding has quit [Quit: sigurding]
stardiviner has joined #ruby
jaimessi has joined #ruby
tmi has joined #ruby
sgambino has joined #ruby
neanderslob has joined #ruby
jaimessi has quit [Read error: Connection reset by peer]
thelastinuit has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
bronson has joined #ruby
anisha has joined #ruby
freerobby has joined #ruby
<Ox0dea> yorickpeterse: Do you know the significance of those commented-out %%s, and why they differ between parse.y and ripper.y?
St1gma has quit [Quit: Leaving]
<yorickpeterse> eh?
jaimessi has joined #ruby
<Ox0dea> Never mind, then.
<[k-> what does - mean
bruno- has joined #ruby
<yorickpeterse> [k-: it's a dash
<yorickpeterse> Ox0dea: I have no idea what you're asking
solocshaw has joined #ruby
<Ox0dea> yorickpeterse: Right, I got that.
<[k-> yorickpeterse you are losing context here
<Ox0dea> No worries.
<yorickpeterse> [k-: :P
<Ox0dea> [k-: It lets you specify a range.
<Ox0dea> >> 'abcdefg'.tr('a-g', 'x')
sigurding has joined #ruby
<ruboto> Ox0dea # => "xxxxxxx" (https://eval.in/394210)
ferr has quit [Ping timeout: 246 seconds]
stardiviner has quit [Ping timeout: 250 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
<[k-> but what if the replacement String has 3 characters
dblessing has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby
<neanias> What language uses '.y'?
jenksy has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
<tobiasvl> yacc?
<neanias> Makes sense
jenksy has joined #ruby
<Ox0dea> And, by extension, Bison.
victortyau has joined #ruby
jlast has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 255 seconds]
<Ox0dea> [k-: Ruby's #tr copies the coreutil in repeating the last letter of the replacement, but I think cycling would make more sense.
lavros has joined #ruby
tmtwd has joined #ruby
Muhannad has joined #ruby
<jhass> >> "([{foo)}]".match(/(?>(\()|(\{)|(\[))(?(1)[^\)]+\)|(?(2)[^\}]+\}|(?(3)[^\]]+\]|\A)))/)
<ruboto> jhass # => #<MatchData "([{foo)" 1:"(" 2:nil 3:nil> (https://eval.in/394212)
<jhass> those conditionals are interesting :D
badeball_ is now known as badeball
<[k-> pls at least use #{variables}
<[k-> so what does this do .tr('0-2', "$ \n"))
<shevy> mystery code
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
<yorickpeterse> >> 'fooo 0 1 2 3".tr('0-2', "$ \n")
<ruboto> yorickpeterse # => /tmp/execpad-00352f458393/source-00352f458393:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/394213)
<yorickpeterse> ehm derp
<yorickpeterse> >> "fooo 0 1 2 3".tr('0-2', "$ \n")j
<ruboto> yorickpeterse # => /tmp/execpad-e5fef05d2972/source-e5fef05d2972:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/394215)
sevenseacat has joined #ruby
<yorickpeterse> ugh I suck
jerius has joined #ruby
<yorickpeterse> >> "fooo 0 1 2 3".tr('0-2', "$ \n")
<ruboto> yorickpeterse # => "fooo $ \n 3" (https://eval.in/394216)
<yorickpeterse> ^
Rickmasta has joined #ruby
<Ox0dea> >> puts 455991286304676962.to_s(3).tr('0-2', "$ \n")
<ruboto> Ox0dea # => $$$ $$$ ...check link for more (https://eval.in/394218)
christiandsg has joined #ruby
fenjamin has joined #ruby
<Ox0dea> [k-: Ternary represents numbers using the digits 0, 1, and 2, and I'm just translating those to the characters used for the ASCII art.
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
fabrice31_ has joined #ruby
<[k-> but shouldn't tr take - literally?!
fabrice31 has quit [Read error: Connection reset by peer]
<Ox0dea> [k-: Why?
veekram has quit [Ping timeout: 248 seconds]
<Ox0dea> Being able to specify ranges is often very convenient.
<[k-> is there a note about this in the docs
<Ox0dea> [k-: I'm sure there is, but it's named after a Unix utility, so not copying the behavior would've been "astonishing".
<[k-> >> "foo x012345".tr "x1-4", "y$"
<ruboto> [k- # => "foo y0$$$$5" (https://eval.in/394223)
InternetFriend has joined #ruby
<[k-> this makes it clearer now
<fenjamin> hi, is there a better place to talk about json?
mistermocha has joined #ruby
<[k-> is this a bad place? :(
<jhass> fenjamin: what's there much to talk about? it's just a serialization format
<Ox0dea> What's the best cerealization format?
<Ox0dea> libcheerios?
<adaedra> .
Bitcrusher01 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
<[k-> .
dangerousdave has joined #ruby
stantonnet has quit [Remote host closed the connection]
<shevy> yum, cereals
avril14th has joined #ruby
<Ox0dea> -1 for not being able to count higher than two.
<[k-> were we counting?
<Bitcrusher01> Hi guys, I'm a Ruby user and have a question that Google can't seem to answer for me
fgo has quit [Quit: WeeChat 1.1.1]
zz_Outlastsheep is now known as Outlastsheep
<Ox0dea> Bitcrusher01: Try one more time.
<fenjamin> i want activity to update across servers
<jhass> Bitcrusher01: sup girl?
<jhass> fenjamin: trying to make a record in being vague?
sharpmachine has joined #ruby
<[k-> Ox0dea you are too impatient, he could be typing out his question!
<[k-> that's how irc works
<Ox0dea> [k-: No, I meant that Google can be finicky that way.
<[k-> we split it over many lines
charliesome has joined #ruby
<Ox0dea> Sometimes you just need to ask it again.
<Bitcrusher01> How do I use a variable to access a hash key? What works for me is: config[:network_interfaces]
<fenjamin> i can think of this for myself but i would a but of clarity
<[k-> you are ambiguous then!
<shevy> Bitcrusher01 that is a symbol though
mary5030 has joined #ruby
<shevy> if you really need it a var: var = :network_interfaces; config[var]
<fenjamin> when a transaction occurs, i would like the charts to update on all servers
willhumphreys has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
<Ox0dea> fenjamin: And you think this is a task for JSON?
jpfuentes2 has joined #ruby
nettoweb has joined #ruby
<Bitcrusher01> but the subkey of that has is a variable, and I've tried various combinations to access it: config[:network_interfaces]["#{name}"], config[:network_interfaces][:name] and other variations, with no luck
mary5030 has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
malconis has joined #ruby
<Bitcrusher01> shevy: i've tried using config[:network_interfaces][name.to_s] on it as well
<[k-> no, no, its a task for ajax! /s
<Ox0dea> Could be, though.
<adaedra> .to_s will give you a string, you want a symbol, Bitcrusher01
symbol has quit [Ping timeout: 256 seconds]
<Ox0dea> Depends on what her Hash actually looks like.
<[k-> Bitcrusher01, symbols and strings are not the same
<adaedra> you need to use .to_sym to obtain a symbol
<Ox0dea> Bitcrusher01: Are you able to post the Hash you're trying to key into?
<jhass> Bitcrusher01: where does name come from and what does it contain
<fenjamin> i'll do some more homework and come back when the weather's better
<[k-> we know she uses symbols as keys!
ESpiney has joined #ruby
<fenjamin> you guys going to be around?
<Ox0dea> ?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?
<[k-> not me
zacstewart has quit [Remote host closed the connection]
<Bitcrusher01> name is the result of a each loop, that has an array of all network interfaces (eth0, eth1, wlan0, etc)
sharpmachine has quit [Ping timeout: 252 seconds]
NeverDie has joined #ruby
<yorickpeterse> We were all planning on leaving this channel at 17:00
willhumphreys has joined #ruby
failshell has joined #ruby
<Ox0dea> yorickpeterse: UGT?
<[k-> yes, and its personal time!
<jhass> yorickpeterse: please, use space time. don't assume we're all from earth
<fenjamin> i'll be back a little after that - give you time to leave:-)
<Burgestrand> Sangrias at my place.
leonardoajim has joined #ruby
<jhass> ?code Bitcrusher01
<ruboto> Bitcrusher01, We can't help you without your code, please post it to https://gist.github.com
<yorickpeterse> jhass: pretty sure none of us in here are in the ISS
<yorickpeterse> so UTC will do just fine
<jhass> you never know!
<Bitcrusher01> The full hash is here: http://pastebin.com/RXH1Jmc1
<ruboto> Bitcrusher01, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/61bde28ef0d4d4eadd55
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jvrmaia has joined #ruby
<Ox0dea> Bitcrusher01: You want foo.to_sym.
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
Papierkorb has joined #ruby
fenjamin has quit [Quit: 离开]
InternetFriend has joined #ruby
<[k-> I prefer #intern
<Bitcrusher01> Ox0dea: I'll try that right now
<Bitcrusher01> ruboto: sorry about that
i8igmac has joined #ruby
<[k-> you don't have to press shift to get an underscore too, so that's a bonus
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wpp has quit []
RegulationD has joined #ruby
paulcsmith has joined #ruby
<Ox0dea> It breaks symmetry with all the other to_* methods, though.
Igorshp has quit [Ping timeout: 265 seconds]
anisha has quit [Ping timeout: 248 seconds]
<neanias> [k-: what does #intern do?
<Ox0dea> It's an alias for #to_sym.
<neanias> Oh
sideshowcoder has quit [Remote host closed the connection]
<Ox0dea> [k-: It's okay, though; the to_* methods are already kind of asymmetrical:
<Ox0dea> >> class Fixnum; def to_a; [:lol] end; def to_hash; {wt: ?f} end end; [*4, **2]
<ruboto> Ox0dea # => [:lol, {:wt=>"f"}] (https://eval.in/394246)
decoponio has joined #ruby
<Ox0dea> #to_a for * coercion, #to_hash for **.
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sideshowcoder has joined #ruby
<[k-> I knew that!
tvw has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
JoshL has joined #ruby
tmtwd has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 248 seconds]
di3soft has joined #ruby
dangerousdave has joined #ruby
di3soft has quit [Remote host closed the connection]
di3soft has joined #ruby
<shevy> hmm when do I use .force_encoding and when do I use .encode
tmtwd has joined #ruby
<Bitcrusher01> Ox0dea: I've tried puts config[:network_interfaces][name.to_sym], but it does not work
<Burgestrand> shevy: source.force_encoding(target) is used when the source is already in the target encoding, but ruby doesn't know it yet.
<shevy> aha
hinbody has joined #ruby
<[k-> are you not using UTF-8? Monster!
<shevy> very strange
<Burgestrand> shevy: source.encode(target) is used when the source is in some encoding, and you want ruby to change the data to turn it into the target encoding.
mistermocha has quit [Read error: Connection reset by peer]
<shevy> [k- actually I do have to use UTF-8 as well now :(
<Ox0dea> Bitcrusher01: Does config[:network_interfaces][:eth0] work?
di3soft has quit [Client Quit]
<[k-> Bitcrusher01, replace Hash#[] with Hash#fetch
<shevy> [k- ruby-gnome uses it internally and yaml require it as well
<[k-> shevy of course they do!
<[k-> you monster!
devdazed has joined #ruby
tvw has joined #ruby
<Bitcrusher01> Ox0dea: yes it does
<Burgestrand> Bitcrusher01: I believe it'll be easier to help you if you post an example that can be run that is failing for you. Try to keep it short.
<Bitcrusher01> [k-: I don't know you mean by that
<shevy> Burgestrand when you handle encoding-related issues, do you ever find yourself to have to do: force_encoding() and also encode() at the same time, or in the same program?
<Burgestrand> Bitcrusher01: as in, not just the hash, but an actual runnable example.
<Burgestrand> shevy: yes, for example if data is coming from somewhere and the encoding associated with that string is wrong.
charliesome has quit [Quit: zzz]
<shevy> ah ok
pullphinger15 has joined #ruby
<[k-> I mean to replace all the object[name.to_sym] with object.fetch(name.to_sym)
<Burgestrand> shevy: consider for example, you have data coming in from some websocket gem, in encoding BINARY. You *know* that the data coming in is ALWAYS in Latin-1, but you want it in UTF-8.
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
Channel6 has joined #ruby
Igorshp has joined #ruby
whippythellama has joined #ruby
sngeth has joined #ruby
<Burgestrand> shevy: in which case you would do: websocket.read.force_encoding("ISO-8859-1").encode("UTF-8")
<Bitcrusher01> Burgestrand: i currently relies heavy on server_spec and other libs - I'll try to make it independent of it...
<Ox0dea> Bitcrusher01: Debug print the value of `name` and ensure it doesn't contain any leading or trailing spaces.
theery has joined #ruby
<shevy> ok!
pullphinger15 has quit [Client Quit]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icflournoy has joined #ruby
pullphinger has joined #ruby
<Ox0dea> >> :eth0 == 'eth0'.to_sym
<ruboto> Ox0dea # => true (https://eval.in/394277)
<Ox0dea> Bitcrusher01: ^
<Burgestrand> shevy: I guess another name for #force_encoding could have been #encoding= :)
Guest54365 has quit [Changing host]
Guest54365 has joined #ruby
<shevy> [k- do your chinese symbols work in UTF-8?
Guest54365 is now known as starship
* [k- withdraws
<[k-> yes they do
<shevy> :)
jvrmaia has quit [Ping timeout: 264 seconds]
duggiefresh has joined #ruby
icebourg has joined #ruby
duggiefresh is now known as Guest80357
decoponyo has joined #ruby
Guest80357 has quit [Remote host closed the connection]
pullphinger has quit [Client Quit]
icebourg has quit [Client Quit]
pullphinger has joined #ruby
anisha has joined #ruby
denver has quit [Read error: Connection reset by peer]
varunwachaspati has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
decoponio has quit [Ping timeout: 264 seconds]
theery has quit [Remote host closed the connection]
joonty has joined #ruby
rbennacer has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
quazimodo has joined #ruby
eGGsha has joined #ruby
darkf_ has joined #ruby
charliesome has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
Scroff has quit [Remote host closed the connection]
<Bitcrusher01> Ox0dea: sorry, was just called away
mistermocha has quit [Ping timeout: 256 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bitcrusher01> Ox0dea: it's not a problem when I have string - it's a problem when I have a variable containing a string, I want to convert to a symbol
Azulinho has quit [Ping timeout: 252 seconds]
fmcgeough has joined #ruby
yeticry has joined #ruby
<Ox0dea> >> foo = 'eth0'; foo.to_sym
<ruboto> Ox0dea # => :eth0 (https://eval.in/394296)
dstarh has joined #ruby
darkf has quit [Ping timeout: 248 seconds]
JDiPierro has joined #ruby
rbennacer has quit [Remote host closed the connection]
havenwood has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
<[k-> >> foo = "eth0; :"#{foo}"
<ruboto> [k- # => "eth0; :" (https://eval.in/394300)
<Bitcrusher01> Here is the code standalone: https://gist.github.com/anonymous/cc565e5795cc0d19345a
<[k-> foo = "eth0"; :"#{foo}"
eggoez has quit [Ping timeout: 240 seconds]
<[k-> >> foo = "eth0"; :"#{foo}"
<ruboto> [k- # => :eth0 (https://eval.in/394303)
axl_ has quit [Ping timeout: 245 seconds]
rbennacer has joined #ruby
pullphinger has quit []
<Burgestrand> Bitcrusher01: readlines also include a final \n.
<[k-> >> [%i(eth0).first, foo = "eth0"; %I(#{foo}).first]
<ruboto> [k- # => /tmp/execpad-85ae7aa15451/source-85ae7aa15451:2: syntax error, unexpected ';', expecting ']' ...check link for more (https://eval.in/394304)
xcesariox has quit [Ping timeout: 276 seconds]
Scroff has joined #ruby
<Burgestrand> Bitcrusher01: it doesn't chop it off for every line, so each iface will have a line break at the end.
<Ox0dea> Bitcrusher01: I told you to check for that, by the way. :)
pullphinger has joined #ruby
<[k-> >> foo="eth0"; [%i(eth0).first,%I(#{foo}).first]
<ruboto> [k- # => [:eth0, :eth0] (https://eval.in/394306)
<Bitcrusher01> shit! is there a way to get readlines, without it or will I have to replace it "manually"?
<Bitcrusher01> *without \n
griffindy has joined #ruby
<Burgestrand> Bitcrusher01: you can do iface.rstrip.to_sym is one way, it's possible there's a #readlines without the trailing newline as well.
<[k-> use .chomp
<Ox0dea> Bitcrusher01: You could also do read.split("\n")
<[k-> well, that be better than chomping all the messages
<Ox0dea> Aye.
<Ox0dea> No sense creating two arrays when one'll do.
blackmes1 has quit [Ping timeout: 256 seconds]
<TheBrayn> isn't there a built-in way of getting ip adresses?
<TheBrayn> instead of calling ip addr and sed
<[k-> how many ways are there to obtain symbols from strings
rwilcox has joined #ruby
<Bitcrusher01> Ox0dea: i'll try that instead
<Bitcrusher01> Thanks for the input :)
<Ox0dea> Sure thing.
<Burgestrand> TheBrayn: yes, through methods on Socket.
<TheBrayn> s/ip addresses/interfaces/
darkf_ is now known as darkf
<[k-> I counted 5!
<Ox0dea> [k-: Oh?
<Ox0dea> Are you counting #send?
<[k-> nope
<Ox0dea> Hm.
denver has joined #ruby
jpfuentes2 has joined #ruby
<[k-> >> Symbol.new("eth0") # haven't counted thid
<ruboto> [k- # => undefined method `new' for Symbol:Class (NoMethodError) ...check link for more (https://eval.in/394314)
ta has quit [Remote host closed the connection]
<[k-> awh
<Bitcrusher01> It totally works now - thank you :)
<Ox0dea> Nice!
<Burgestrand> \o/
<Ox0dea> >> Symbol.allocate
<ruboto> Ox0dea # => allocator undefined for Symbol (TypeError) ...check link for more (https://eval.in/394316)
<[k-> if we count send we should count public_send too!
<[k-> and eval
<[k-> instance_eval
<[k-> instance_exec
<[k-> module_exec
<[k-> class_exec
<[k-> etc
pulgolino has joined #ruby
jvrmaia has joined #ruby
<Burgestrand> >> Socket.getifaddrs.map(&:addr).select(&:ip?).map(&:ip_address)
<ruboto> Burgestrand # => uninitialized constant Socket (NameError) ...check link for more (https://eval.in/394317)
<Burgestrand> Hehe.
<Burgestrand> TheBrayn: ^
kislak has quit [Remote host closed the connection]
<[k-> that's 3 loops!
<TheBrayn> and the interfaces?
<[k-> and many allocations!
<Burgestrand> TheBrayn: they're all in Socket.getifaddrs, I'm just reducing the collection to find only those containing an ip address.
umgrosscol has joined #ruby
<Burgestrand> [k-: Socket.getifaddrs.lazy.map(&:addr).select(&:ip?).map(&:ip_address).to_a
arup_r has quit [Remote host closed the connection]
<Burgestrand> [k-: there you go :-(
<neanias> >> Socket.getifaddrs.lazy.map(&:addr).select(&:ip?).map(&:ip_address).to_a
<ruboto> neanias # => uninitialized constant Socket (NameError) ...check link for more (https://eval.in/394321)
<neanias> >> require 'socket'; Socket.getifaddrs.lazy.map(&:addr).select(&:ip?).map(&:ip_address).to_a
<ruboto> neanias # => (https://eval.in/394322)
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
varunwachaspati has joined #ruby
tvw has joined #ruby
<Ox0dea> >> require 'fiddle'; Fiddle::Pointer.new(:x.__id__)[0]
<ruboto> Ox0dea # => /tmp/execpad-0a16c09770ba/source-0a16c09770ba:2: [BUG] Segmentation fault at 0x0565f2 ...check link for more (https://eval.in/394323)
<Ox0dea> Well, that didn't go well.
dopie has joined #ruby
inoic has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
<neanias> kek
eggoez has joined #ruby
<Ox0dea> [k-: I thought maybe the class-changing trick from the other day would work to turn numbers into the Symbol at that address.
christiandsg has joined #ruby
senayar has quit [Remote host closed the connection]
<[k-> ah
yeticry has joined #ruby
balazs has joined #ruby
<Ox0dea> Symbols really do get "internalized"; they don't behave like normal objects at all.
senayar has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<Ox0dea> Internally, pretty much every object's "root" is an RBasic construct containing flags and the object's class, but not Symbols.
<[k-> >> {f: ?&}.keys.first
<ruboto> [k- # => :f (https://eval.in/394326)
hinbody has quit [Quit: Lost terminal]
<[k-> that's 6!
<Ox0dea> That's not turning a String into a Symbol, though.
<inoic> just wondering if the convention in Ruby for `a < 1000` is `a < 1_000` — is 1_000 preferred? I'm doing the full stack track at Bloc.io and that's how they write 1000, 2000, etc.
hinbody has joined #ruby
<[k-> wellllllllll
<Ox0dea> inoic: Doesn't strike me as very idiomatic.
<inoic> Yeah me neither, I mean 1000 is certainly more readable.
Bitcrusher01 has quit [Ping timeout: 246 seconds]
<Burgestrand> inoic: for larger numbers I do it, but 1000 is a bit too low.
<Ox0dea> > Add underscores to large numeric literals to improve their readability.
<Ox0dea> That's all the style guide's got to say on it.
bmurt has quit [Ping timeout: 276 seconds]
<inoic> Burgestrand: I guess they're just trying to introduce a convention and use 1000 as an example.
<[k-> >> /(?<#{"foop"}>hey)/.match("foop")
<ruboto> [k- # => nil (https://eval.in/394327)
<Burgestrand> inoic: I have really bad troubles reading anything with the same number repeated more than 3 times.
<Ox0dea> >> 0b1001_1100_0010_0110
<ruboto> Ox0dea # => 39974 (https://eval.in/394328)
_blizzy_ has joined #ruby
<inoic> Alright makes sense. Thanks!
casadei has joined #ruby
quazimodo has quit [Ping timeout: 246 seconds]
<[k-> >> /(?<#{"foop"}>hey)/.match("hey")
<ruboto> [k- # => #<MatchData "hey" foop:"hey"> (https://eval.in/394329)
<Burgestrand> inoic: but in general, go with what the surrounding code looks like.
<[k-> now to extract the key
<inoic> Sounds good.
<Burgestrand> >> define_method("hello") {}
<ruboto> Burgestrand # => :hello (https://eval.in/394330)
<Ox0dea> >> def hello() end
<ruboto> Ox0dea # => :hello (https://eval.in/394331)
balazs has quit [Ping timeout: 248 seconds]
<Ox0dea> Oh, right, strings.
<Burgestrand> ;)
JDiPierro has joined #ruby
riotjones has quit [Remote host closed the connection]
sepp2k has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aganov has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
<[k-> >> eval(":foo")
<ruboto> [k- # => :foo (https://eval.in/394333)
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
jvrmaia has quit [Ping timeout: 240 seconds]
<Ox0dea> >> %I(#{'foo'})
<ruboto> Ox0dea # => [:foo] (https://eval.in/394334)
gamename has joined #ruby
Zamyatin has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
fabrice31_ has quit [Remote host closed the connection]
krz has joined #ruby
<[k-> I did that already
<[k-> :p
<[k-> it's wayyyyy above
<Ox0dea> Seems you did. Whoops.
<Ox0dea> I wonder why %s doesn't have an interpolating variation.
<shevy> evil == [k-
<[k-> nil
Musashi007 has quit [Quit: Musashi007]
<shevy> the knights who said
<Ox0dea> evil *would* return a non-boolean for equality checks.
j_mcnally has joined #ruby
<[k-> shevy, you don't experiment with Ruby anymore :(
dopie has quit [Ping timeout: 246 seconds]
<shevy> well, I experiment with it if the end result is better
Torrieri has quit [Quit: Be back later ...]
_blizzy_ has joined #ruby
EagleDelta has joined #ruby
<Ox0dea> That sentence is temporally nonsensical.
k3asd` has joined #ruby
<shevy> The Oracle is idling.
<Ox0dea> How can you know the outcome of an experiment prior to doing it?
gamename has quit [Remote host closed the connection]
<Ox0dea> Have you secretly been the Oracle all along?
<shevy> I look at your code and notice how awful things can be!
<shevy> though [k- outperformed you some days ago
gamename has joined #ruby
jeanjack has joined #ruby
veekram has joined #ruby
<shevy> -> do end
<shevy> aha!!!
<shevy> [k- show some newer code :)
<neanias> >> eval(1 + 2)
<ruboto> neanias # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/394336)
<neanias> eval('ls')
<shevy> well :D
<neanias> >> eval('ls')
<ruboto> neanias # => undefined local variable or method `ls' for main:Object (NameError) ...check link for more (https://eval.in/394337)
<neanias> >> `ls`
<[k-> >> `ls`
<ruboto> neanias # => (https://eval.in/394338)
<ruboto> [k- # => (https://eval.in/394339)
hinbody has quit [Quit: Lost terminal]
sarkyniin has joined #ruby
werelivinginthef has joined #ruby
hinbody has joined #ruby
<[k-> >> LALALA="LALALA"; Module.constants # does this count
<ruboto> [k- # => [:Object, :Module, :Class, :BasicObject, :Kernel, :NilClass, :NIL, :Data, :TrueClass, :TRUE, :FalseC ...check link for more (https://eval.in/394340)
xcesariox has joined #ruby
msnyon has joined #ruby
sharpmachine has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
xcesariox has quit [Client Quit]
quazimodo has joined #ruby
<[k-> >> Module.const_set("T", ?T); Module.constants.last(5)
<ruboto> [k- # => [:Queue, :SizedQueue, :MonitorMixin, :Monitor, :RUBYGEMS_ACTIVATION_MONITOR] (https://eval.in/394341)
sshuff has joined #ruby
<[k-> :(
<[k-> >> Module.const_set("T", ?T); Module.constants
<ruboto> [k- # => [:Object, :Module, :Class, :BasicObject, :Kernel, :NilClass, :NIL, :Data, :TrueClass, :TRUE, :FalseC ...check link for more (https://eval.in/394342)
RegulationD has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
<[k-> can't see T at all
blackmes1 has joined #ruby
gamename has quit [Remote host closed the connection]
MrQuux has quit [Ping timeout: 246 seconds]
gamename has joined #ruby
enebo has joined #ruby
<Ox0dea> >> Object.const_set('Foo', 1); Object.constants.grep(/Foo/)[0]
<ruboto> Ox0dea # => :Foo (https://eval.in/394343)
GriffinHeart has joined #ruby
<Ox0dea> >> Dir['*']
<ruboto> Ox0dea # => ["output-7cf23a8dea0a", "input-7cf23a8dea0a", "source-7cf23a8dea0a"] (https://eval.in/394345)
<Ox0dea> Uh-oh.
cochise has joined #ruby
<Ox0dea> >> File.read('source-7cf23a8dea0a')
<ruboto> Ox0dea # => No such file or directory @ rb_sysopen - source-7cf23a8dea0a (Errno::ENOENT) ...check link for more (https://eval.in/394346)
axl_ has joined #ruby
sharpmachine has quit [Ping timeout: 250 seconds]
<[k-> >> a = 1; binding.local_variables
<ruboto> [k- # => [:a] (https://eval.in/394347)
stardiviner has quit [Ping timeout: 255 seconds]
<[k-> not String tho :(
<Ox0dea> No need for the binding, for what it's worth.
jvrmaia has joined #ruby
<neanias> >> Dir.pwd
<ruboto> neanias # => "/tmp/execpad-27a026c001ca" (https://eval.in/394348)
kies^ has joined #ruby
gamename has quit [Read error: Connection reset by peer]
hotpancakes has quit [Ping timeout: 246 seconds]
<Ox0dea> >> instance_variable_set("@foo", 1); instance_variables[0]
<ruboto> Ox0dea # => :@foo (https://eval.in/394350)
pullphinger has quit []
pullphinger has joined #ruby
sshuff has quit [Disconnected by services]
fella6s has joined #ruby
DLSteve has joined #ruby
astrobun_ has quit [Remote host closed the connection]
jvrmaia has quit [Client Quit]
rdaviesDG has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
TTilus has quit [Ping timeout: 256 seconds]
TTilus has joined #ruby
fella5s has quit [Ping timeout: 256 seconds]
<Ox0dea> >> d = Dir.pwd; IO.read(d + '/output-' + d[/\h+$/])
<ruboto> Ox0dea # => "" (https://eval.in/394356)
CloCkWeRX has quit [Ping timeout: 246 seconds]
<Ox0dea> >> d = Dir.pwd; puts IO.read(d + '/output-' + d[/\h+$/])
<ruboto> Ox0dea # => ...check link for more (https://eval.in/394357)
<Ox0dea> Grr.
<[k-> >> Symbol.all_symbols
<ruboto> [k- # => [:!, :"\"", :"#", :"$", :%, :&, :"'", :"(", :")", :*, :+, :",", :-, :".", :/, :":", :";", :<, :"=", ...check link for more (https://eval.in/394358)
<[k-> >> Symbol.all_symbols.length
<ruboto> [k- # => 2511 (https://eval.in/394360)
<Ox0dea> Wow.
<[k-> wo
<Ox0dea> >> ObjectSpace.each_object.count
freerobby has joined #ruby
<ruboto> Ox0dea # => 12221 (https://eval.in/394361)
bronson has joined #ruby
quimrstorres has joined #ruby
<[k-> that's 1/6!
lkba_ has quit [Remote host closed the connection]
snockerton has joined #ruby
tvw has quit [Remote host closed the connection]
arturmartins has joined #ruby
<neanias> >> 2511 / 12221
<ruboto> neanias # => 0 (https://eval.in/394362)
dhjondoh has joined #ruby
<neanias> >> 2511 / 12221.0
<ruboto> neanias # => 0.2054660011455691 (https://eval.in/394363)
dhjondoh has quit [Client Quit]
<[k-> pls
<neanias> >> require 'bigdecimal'; BigDecimal.new('2511') / BigDecimal.new('12221')
<ruboto> neanias # => #<BigDecimal:40b9e3a4,'0.2054660011 45569102E0',18(36)> (https://eval.in/394364)
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<[k-> I rounded off to highest placimg
<neanias> Wait
<neanias> It's closer to 1/5
<[k-> >> 2000.to_rational/12000
<ruboto> [k- # => undefined method `to_rational' for 2000:Fixnum (NoMethodError) ...check link for more (https://eval.in/394365)
<[k-> :(
<[k-> >> 2000.to_r/12000
<ruboto> [k- # => (1/6) (https://eval.in/394366)
iwishiwerearobot has quit [Quit: Be back later ...]
<[k-> this is called estimation!
<Ox0dea> [k-: Ruby has rational literals.
<[k-> >. 2000r
<Ox0dea> >> 2ri
<ruboto> Ox0dea # => (0+(2/1)*i) (https://eval.in/394367)
bronson has quit [Ping timeout: 264 seconds]
<[k-> >> 2r
<ruboto> [k- # => (2/1) (https://eval.in/394368)
<Ox0dea> But not `2ir` for some reason.
<[k-> o noice
i8igmac has quit [Ping timeout: 252 seconds]
<Ox0dea> >> ObjectSpace.each_object(Bignum).to_a
<ruboto> Ox0dea # => [1106001736, 1105955520, 18446744073709551615, 25823805195023478761146785925466853366, 1105147640] (https://eval.in/394369)
<Ox0dea> I wonder what those are.
<neanias> What's the ri do?
<neanias> >> 3ri
<ruboto> neanias # => (0+(3/1)*i) (https://eval.in/394370)
<Ox0dea> Imaginary rational.
<[k-> r is rational
<neanias> Ah
<[k-> I is imaginary
<neanias> >> 3r
<[k-> :(
<ruboto> neanias # => (3/1) (https://eval.in/394371)
<Ox0dea> >> [0.1 + 0.2, 0.1r + 0.2r]
<ruboto> Ox0dea # => [0.30000000000000004, (3/10)] (https://eval.in/394372)
lkba has joined #ruby
<Burgestrand> >> (2 ** 64 - 1) == 18446744073709551615
<ruboto> Burgestrand # => true (https://eval.in/394373)
sdothum has joined #ruby
<Ox0dea> Burgestrand: How about the monster?
<[k-> o
<Burgestrand> Ox0dea: no idea, I haven't added that useless knowledge to my bank yet. :p
<[k-> 2 ** 128?
<Ox0dea> Probably something to do with SSL.
iamninja has quit [Ping timeout: 250 seconds]
<[k-> SSL wasn't required?
ta has joined #ruby
<Ox0dea> Fair point, but maybe there's some internal preparation.
Feyn has quit [Quit: Leaving]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
renderful has joined #ruby
<Burgestrand> Wonder if it's always the same.
<Burgestrand> >> ObjectSpace.each_object(Bignum).to_a
<Ox0dea> It's not.
<ruboto> Burgestrand # => [1104318288, 1104272072, 18446744073709551615, 206469298196742749142725102654777982875, 1104548168] (https://eval.in/394376)
hoofed has quit [Read error: Connection reset by peer]
hoofed_ has joined #ruby
jonathanwallace has joined #ruby
<jhass> ?experiment
<ruboto> Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
intinig has joined #ruby
bruno- has joined #ruby
wildroman2 has joined #ruby
<[k-> he was demonstrating that it was not the same :3
<agent_white> Or as Trillian would say: Buttons are not toys!
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
<[k-> yes they are!
varunwachaspati has quit [Ping timeout: 250 seconds]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
foureight84 has joined #ruby
renderful has quit [Ping timeout: 248 seconds]
<Ox0dea> Ugh, where is that Bignum coming from?!
Igorshp_ has joined #ruby
Igorshp has quit [Read error: No route to host]
JDiPierro has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
Outlastsheep is now known as zz_Outlastsheep
solars has quit [Ping timeout: 264 seconds]
<[k-> >> [foo = ObjectSpace.each_object(Exception).to_a, foo.count]
<ruboto> [k- # => [[#<IOError: stream closed>, #<NoMemoryError: failed to allocate memory>, #<SystemStackError: stack ...check link for more (https://eval.in/394377)
jeanlinux has joined #ruby
<neanias> >> (2r + 1r).to_f
<ruboto> neanias # => 3.0 (https://eval.in/394378)
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<[k-> rationals are just what we need to do precise calculations!
arturmartins has quit [Quit: Leaving...]
<neanias> >> require 'bigdecimal'; (BigDecimal.new('0.2') + BigDecimal.new('0.1')).to_f
<ruboto> neanias # => 0.3 (https://eval.in/394379)
CloCkWeRX has joined #ruby
<neanias> >> 0.001r + 0.002r
<ruboto> neanias # => (3/1000) (https://eval.in/394380)
<[k-> #<fatal: exception reentered>,
<neanias> >> (0.001r + 0.002r).to_f
<ruboto> neanias # => 0.003 (https://eval.in/394381)
<neanias> >> (0.001r + 0.002r).to_f == (0.001 + 0.002)
<ruboto> neanias # => true (https://eval.in/394382)
<jhass> neanias: what are you proving?
zz_Outlastsheep is now known as Outlastsheep
<neanias> I dunno
<jhass> and to who?
mistermocha has joined #ruby
<neanias> Just mucking about
<neanias> Should probably do that on pry
<jhass> ?experiment neanias
<ruboto> neanias, Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
<[k-> lel
<neanias> Sozzle
<ddv> :)
<ddv> ?ddv
<ruboto> I don't know anything about ddv
<[k-> ?flood
<ruboto> Please use https://gist.github.com for more than three lines of text!
<ddv> lies
<shevy> whoa
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<shevy> neanias and Ox0dea really had fun with ruboto while I was gone
<neanias> shevy: cheeky
<[k-> you don't use bots anyway shevy
dopie has joined #ruby
<shevy> depends!
<shevy> my first ruby program was an IRC bot
<shevy> I broke it years ago though :(
<neanias> Anyway, I was fascinated by this new rational literal
mistermocha has quit [Read error: Connection reset by peer]
<neanias> My IRC bot is written in Ruby
<neanias> It uses cinch
<neanias> Cinch is goo
<neanias> d
bruno- has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
<ljarvis> some might say it's a.. cinch
<[k-> real irc bots use their own frameworks!
<ljarvis> ^ this is why there are so many broken irc bots
<Ox0dea> I made a ruboto "quine":
<Ox0dea> >> d = Dir.pwd; IO.read(d + '/source-' + d[/\h+$/]).lines[1]
<ruboto> Ox0dea # => " d = Dir.pwd; IO.read(d + '/source-' + d[/\\h+$/]).lines[1]\n" (https://eval.in/394385)
<[k-> ._.
dangerousdave has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> neanias: who doesn't have his cinch bot? :o
<[k-> >> File.open(__FILE__).readlines(__LINE__)
<ruboto> [k- # => ["p ", "be", "gi", "n\n", " ", "Fi", "le", ".o", "pe", "n(", "__", "FI", "LE", "__", ").", "re", "a ...check link for more (https://eval.in/394386)
jschoolcraft has joined #ruby
<[k-> eww
aryaching has quit [Ping timeout: 256 seconds]
<Ox0dea> What even.
tagrudev has quit [Remote host closed the connection]
<Ox0dea> You told it to read in chunks of two.
<[k-> oh
<[k-> oops
<shevy> we need a lego-bot
<[k-> >> File.open(__FILE__).readlines.to_a[__LINE__]
<ruboto> [k- # => "rescue Exception\n" (https://eval.in/394387)
<jhass> >> File.readlines(__FILE__)[__LINE__-1]
<ruboto> jhass # => " File.readlines(__FILE__)[__LINE__-1]\n" (https://eval.in/394388)
<Burgestrand> Ox0dea: tried to find the magic number by excluding rubygems and encdb, but no luck… http://pastie.org/private/zyzojtrl6ouajwlldeoa
<shevy> if we have a file called foo.rb and one module is in it called module Bar; end, how would you let ruby know that this is the main namespace/constant of that file?
<Burgestrand> Could it be the random seed?
<[k-> require "foo"; Bar
<shevy> [k- but you know the name!
<Burgestrand> shevy: what do you mean by main?
<shevy> I have a module here which has lots of array constants
Azulinho has joined #ruby
* yorickpeterse just realized it's Burgestrand and not Burgerstand
<shevy> so for me it works fine; but it should also support loading custom .rb files
<neanias> yorickpeterse: he's beachy
<shevy> yorickpeterse yeah I get hungry when I read his nick
<Burgestrand> yorickpeterse: it's a common mistake :)
<shevy> also mozzarella makes me hungry and pizzaops
<[k-> ahh a problem I have tackled before
<shevy> burgers?
<agent_white> [k-: Pizza problem?!
<Burgestrand> I'd like to open a burgerstand once. It'd be called Burgestrands Burgerstand
Nick_joes_ has joined #ruby
<shevy> haha
<[k-> the constants
<pizzaops> Why have I been summoned?
<pizzaops>
* adaedra noms pizzaops
<jhass> shevy: ruby has no concept of filename to constant mapping
<shevy> because your nick makes people hungry!
<[k-> before=Module.constants; load; after=Module.constants
Internet_ has joined #ruby
<shevy> awwwww
<shevy> Plan B!
<[k-> haskell has those!
<shevy> haskell has what? Plan B?
<oz> no, it has those.
<[k-> <jhass> shevy: ruby has no concept of filename to constant mapping
zeeraw has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
<shevy> I don't even know how haskell loads its diabolic files
<Ox0dea> shevy: Why not module_eval?
<shevy> ack
<[k-> so u have polynomial/ten.hs it would expect Polynomial.Ten
Outlastsheep is now known as zz_Outlastsheep
<adaedra> huehue
<yorickpeterse> but what about continuous integration and deployments of the pizza?
<shevy> [k- ok I guess that can be the same as in ruby... so people should write foo.rb and have module Foo or class Foo, rather than module Bar inside
<yorickpeterse> also I hope those pizzas come with tests
<shevy> how do you test a pizza?
<[k-> but the compiler expects it to be like that
<[k-> if it is not, it errors
<yorickpeterse> shevy: pizzaspec
<pizzaops> Those are not as punny so who cares.
<pizzaops> PunOps
<adaedra> shevy: you never tested a pizza? D:
<shevy> [k- hmm... so it is more strict than in ruby
eGGsha has joined #ruby
<[k-> yes, it is compiled afterall
<shevy> adaedra hawaii pizza... I am undecided whether I can eat it or not
icflournoy has quit [Ping timeout: 244 seconds]
Nick_joes has quit [Ping timeout: 244 seconds]
<[k-> and statically typed
<pizzaops> Hawaiian pizza is the work of Satan.
<[k-> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<shevy> here is the pizza expert :)
<shevy> [k- it's his nick!!!
* agent_white coughs
<[k-> ^
sharpmachine has joined #ruby
<shevy> bad pizza for agent_white
<yorickpeterse> Pizza hawaii isn't that bad
<yorickpeterse> if you're a monster
Kully3xf has joined #ruby
<agent_white> I make pizza for a living. I accept your PM's as I provide pizza-consulting.
<adaedra> :|
christiandsg has quit [Remote host closed the connection]
<shevy> really agent_white?
DLSteve has joined #ruby
solocsha1 has joined #ruby
<agent_white> shevy: Hm. No the pizza consulting is a lie.
<pizzaops> PIZZA IS NEVER OFF TOPIC. Ok, I'm done derailing now. Sorry [k-
<adaedra> agent_white: pics or it didn't happened.
<agent_white> But yes, I do roll pizza for a job.
<shevy> cool
christiandsg has joined #ruby
<yorickpeterse> Do the pizzas also come with built-in error reporting?
<agent_white> shevy: No it's awful.
<yorickpeterse> and Slack integration?
<agent_white> But that's ok.
<shevy> pizza rolling AND ruby coding
icflournoy has joined #ruby
<agent_white> Hm. I roll pizza so I can learn ruby. :)
<yorickpeterse> somebody start news.pizzacombinator.com
<adaedra> pizzaops: you can derail #ruby-offtopic. Or at least you can try.
<[k-> pizzas activate the taste buds in your mouth
intinig has quit [Remote host closed the connection]
<neanias> Damn
<neanias> Now I want me some pizza
<[k-> it will raise an error if it is disgusting
<adaedra> erf
<neanias> >> raise "Pizza isn't good enough"
<ruboto> neanias # => Pizza isn't good enough (RuntimeError) ...check link for more (https://eval.in/394397)
arturaz has quit [Ping timeout: 240 seconds]
<shevy> [k- can we describe a living system in ruby?
<[k-> neanias, fail pls
<pizzaops> Yeah but we can't just test in production. That's like saying the website won't load if we have an error in our syntax. Technically true?
ta has quit [Remote host closed the connection]
<neanias> [k-: I do what I want
<shevy> I guess you can fail and exit or fail and continue
<shevy> like erlang!
<shevy> they accepted that things are not perfect
DLSteve has quit [Client Quit]
<[k-> >> fail "I am better"
<ruboto> [k- # => I am better (RuntimeError) ...check link for more (https://eval.in/394402)
<agent_white> [k-: My first ever switch statement in ruby checked pizza toppings. If you gave it mushrooms it said "ICK"!
<agent_white> So yes, this is possible.
mistermocha has quit [Read error: Connection reset by peer]
<sevenseacat> smart switch statement. i hate mushrooms.
<shevy> cats just don't like mushrooms
<agent_white> sevenseacat: \o
<neanias> Can't stand mushrooms either
intinig has joined #ruby
<slash_nick> shevy: must be composed of cells (can do); has different levels of organization (tissues, organs, etc); uses energy; responds to its environment (responds to stimulus); grows; reproduces; traits change in adapting to environment...
<yorickpeterse> ActivePizza::PizzaWithIndifferentTaste
<Ox0dea> >> require 'objspace'; mystery = ObjectSpace.each_object(Bignum).find { |n| n > 2 ** 64 }; ObjectSpace.dump(mystery)
<ruboto> Ox0dea # => "{\"address\":\"0x42173fa8\", \"type\":\"BIGNUM\", \"class\":\"0x42171014\", \"frozen\":true, \"mems ...check link for more (https://eval.in/394404)
<shevy> slash_nick ok but there is cell-cell(s) communication too
<Ox0dea> Burgestrand: I had hoped that would be more insightful.
<[k-> I like mushrooms :(
<[k-> well some types
solocsha1 has quit [Ping timeout: 255 seconds]
<[k-> >> abort "test"
<ruboto> [k- # => test ...check link for more (https://eval.in/394405)
<[k-> hmm abort isn't an error
alienaut has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
stardiviner has joined #ruby
<neanias> No
<shevy> >> fail abort
<ruboto> shevy # => exit (SystemExit) (https://eval.in/394406)
<neanias> abort exits with a message
shadoi has joined #ruby
Igorshp_ has quit [Read error: No route to host]
Igorshp has joined #ruby
mistermocha has joined #ruby
<[k-> we didn't even play hangman
<[k-> shevyyyyyyy
ArchRogem has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> you didn't keep your word!
<[k-> we kept ours!
<[k-> ;-;
<shevy> I have no problem with hangman!
<shevy> only unicode!!!
rippa has joined #ruby
<adaedra> shevy: unicode is life, unicode is love.
<shevy> lol
<Ox0dea> Burgestrand: Also, the object allocation tracer doesn't run early enough to show where the mystery number is coming from. :/
<adaedra> Come in the 21st century and use unicode.
<shevy> I still don't know from where that "x is love, x is life" quote is from
<Ox0dea> shevy: The Internet.
<adaedra> me neither
<[k-> shrek is love, shrek is life...
<[k-> I saw the video
<shevy> Ox0dea yeah but I heard it before and I dunno from where!
<[k-> whoops
<[k-> hint 4chan
riotjones has joined #ruby
<Ox0dea> [k-: Who is that?
<Burgestrand> Ox0dea: I'm guessing it's coming from Random.new_seed.
<[k-> 4chan.org
<shevy> I don't know what is a 4chan either
<Ox0dea> [k-: Does he afraid of anything?
<[k-> noes, he do nots
werelivinginthef has quit [Remote host closed the connection]
ArchRogem has joined #ruby
<Ox0dea> Burgestrand: Ah, yeah, that makes sense.
<[k-> >> Random.new_seed
<ruboto> [k- # => 33113697059959617379391802790303359999 (https://eval.in/394408)
<[k-> looks too long
<Burgestrand> >> p Random::DEFAULT.seed; p ObjectSpace.each_object(Bignum).to_a
<ruboto> Burgestrand # => 335500703423792315755524711159384466299 ...check link for more (https://eval.in/394410)
ta has joined #ruby
icebourg has joined #ruby
<Burgestrand> :)
werelivinginthef has joined #ruby
<Burgestrand> It is the mystery number!
<Burgestrand> Now I can go home, woop.
<[k-> :o
joneshf-laptop has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Quit: Burgestrand]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
riotjones has quit [Ping timeout: 276 seconds]
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
blackmes1 has quit [Ping timeout: 265 seconds]
juanca_ has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
Tarkers34 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
mistermocha has quit [Ping timeout: 252 seconds]
symbol has joined #ruby
aryaching has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
bauruine has quit [Quit: ZNC - http://znc.in]
quimrstorres has quit [Remote host closed the connection]
hotpancakes has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
jamesaxl has joined #ruby
<yorickpeterse> I have a Sinatra controller
<yorickpeterse> it has 96 lines of code
<yorickpeterse> and 662 lines of comments
<yorickpeterse> dat ratio
<[k-> good
<adaedra> dat documentation
niemcu has quit [Ping timeout: 250 seconds]
<yorickpeterse> it's used for our dev/api portal, so go figure
<yorickpeterse> it includes examples, a bunch of tables, etc
hotpancakes has quit [Ping timeout: 252 seconds]
RobertBirnie has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
bruno- has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
brotspinne has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
t_ has quit [Ping timeout: 264 seconds]
bhuvan_aurora has quit [Ping timeout: 248 seconds]
bhuvanaurora has quit [Ping timeout: 256 seconds]
zeeraw has joined #ruby
podman has joined #ruby
momomomomo has joined #ruby
bauruine has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
finisherr has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl__ has joined #ruby
sharpmachine has quit [Remote host closed the connection]
NeverDie has joined #ruby
sarkyniin has quit [Ping timeout: 244 seconds]
ReK2 has joined #ruby
Cache_Money has joined #ruby
<shevy> why is rand() called rand() and not random() ?
<[k-> cuz we are lazy
<jhass> because man 3 rand
<neanias> Because we're like totes rand
Xeago has joined #ruby
centrx has joined #ruby
<yorickpeterse> Because somewhere in the 60s somebody was too lazy to type it out in full
Internet_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> yup
<yorickpeterse> So now we have to deal with shit like "int" and "float" and "string" and "rand"
<yorickpeterse> but "array" is still "array", unless you're MRI then it's sometimes ary
avril14th has quit [Ping timeout: 246 seconds]
<jhass> huh, what would be the better name for string down?
<yorickpeterse> and thankfully "hash" is just "hash" (e.g. to_hash), and not to_hsh
<jhass> character array?
yeticry has quit [Read error: Connection reset by peer]
<yorickpeterse> jhass: "str"?
<yorickpeterse> if you want to keep it short
finisherr has quit [Client Quit]
<yorickpeterse> If you're writing something inspired by Paul Graham call it "essay"
sarkyniin has joined #ruby
<yorickpeterse> "wow this program allocated 12389123 essays, jebus"
vondruch has quit [Ping timeout: 255 seconds]
<[k-> we lacked storage space and memory in the 60s
<brotspinne> shevy: I think programmers like keywords with only one syllable
<centrx> str has no syllables
<neanias> So it's one
Scroff has quit [Read error: Connection reset by peer]
<yorickpeterse> well, the average floppy has space for 1468006 ASCII characters
<brotspinne> centrx: not sure how you do but I pronounce it "string"
zanloy has joined #ruby
<Ox0dea> brotspinne: It's pronounced "stir" or "struh".
Scroff has joined #ruby
<[k-> yorickpeterse how many chars does your controller have
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<brotspinne> Ox0dea: who claims that?
dangerousdave has joined #ruby
<Ox0dea> brotspinne: Are you going to phone the authorities?
<yorickpeterse> 29112
<brotspinne> Ox0dea: how do you pronounce ctrl from your keyboard?
<brotspinne> cotroll?
<yorickpeterse> if you're going down the route of compression you'll probably strip docs before dumping it on a floppy
<brotspinne> :)
<shevy> a troll key!
<shevy> hit cotroll now
<yorickpeterse> has anybody ever found the Any key?
* agent_white does a barrel roll
<yorickpeterse> I'm still looking for it
<shevy> any
<shevy> ary
<shevy> same thing!
<agent_white> No, still trying to find a left-handed keyboard.
<shevy> haha
<Ox0dea> yorickpeterse: The Model 01 has an Any key.
<yorickpeterse> brotspinne: not sure if trying to counter troll or just super oblivious
<jhass> Ox0dea: brotspinne centrx I think it's pronounced like this https://youtu.be/cuCw5k-Lph0?list=PL9383CC2C6DBD902F&t=196
Xeago has quit [Remote host closed the connection]
<brotspinne> yorickpeterse: the first
yeticry has joined #ruby
zanloy has quit [Quit: Leaving]
<yorickpeterse> Ox0dea: that looks more like the Hippie Key
<yorickpeterse> press it for a magical journey into Unix
lessless has joined #ruby
pyrotecnix has joined #ruby
<jhass> yorickpeterse: https://www.getdigital.eu/Any-Key.html you can order one here
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
pullphinger has quit []
<Ox0dea> yorickpeterse: I think perhaps you've mistaken the magical butterfly key for the actual Any key at the top left.
<yorickpeterse> I'm sure as hell not going to replace my current topre keys with that
<yorickpeterse> Ox0dea: oh lol
<yorickpeterse> I completely missed that
sharpmachine has joined #ruby
<yorickpeterse> sweet, everybody is leaving the office
casadei has quit [Remote host closed the connection]
<yorickpeterse> that means the last donuts are mine
ZoanthusR has joined #ruby
varunwachaspati has joined #ruby
<neanias> yorickpeterse: lucky you
towski_ has joined #ruby
<neanias> With the doughnuts
a346 has joined #ruby
Xeago has joined #ruby
Ilyas has joined #ruby
<yorickpeterse> 2 people left, heart pounding
<yorickpeterse> *heavy breathing*
<[k-> just grab them all
<yorickpeterse> then people will complain I ate them all
<neanias> Hoard them
yardenbar has quit [Quit: Leaving]
momomomomo has quit [Quit: momomomomo]
platzhirsch has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
Sehryn has joined #ruby
pleiosaur has quit [Remote host closed the connection]
pleiosaur has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
rehat has joined #ruby
<[k-> you were planning to eat them all anyway
Igorshp has joined #ruby
momomomomo has joined #ruby
wallerdev has joined #ruby
gagrio has quit [Ping timeout: 276 seconds]
platzhirsch has joined #ruby
Scroff has quit [Remote host closed the connection]
j_mcnally has joined #ruby
<yorickpeterse> Yes but if everybody leaves I can just pretend I didn't do it
<[k-> might as well
<yorickpeterse> I can just blame it on gnomes
<[k-> but you are the last one!
theery has joined #ruby
<yorickpeterse> Yessss, they're leaving
<yorickpeterse> hey did you just call me a gnome?
<agent_white> "I wish they made a cinnamon roll incense because I don't always have time to make a pan. Perhaps I'd rather light a stick and then have my roommates wake up with false hopes."
Agoldfish has joined #ruby
<[k-> say you are feeling giddy and need sugar to boost your blood sugar
k3asd` has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
<adaedra> yorickpeterse: the place you work in seems interesting.
<[k-> do you wish to be addressed as a gnome
Meow-J has quit [Quit: Connection closed for inactivity]
<shevy> pick gnome or troll
zendrix has joined #ruby
avril14th has joined #ruby
<shevy> or a gnoll!
<adaedra> he prefers to be addressed as a kde, I'm sure.
* adaedra flees
<[k-> kde?
CloCkWeRX has quit [Quit: Leaving.]
<slash_nick> shevy: gromeroll?
InternetFriend has joined #ruby
Igorshp_ has joined #ruby
<yorickpeterse> I'm actually an xfce user
<adaedra> oooh
Igorshp has quit [Read error: Connection reset by peer]
<slash_nick> gromenoll.
Scroff has joined #ruby
brettnem has quit [Quit: brettnem]
brotspinne has quit [Quit: Textual IRC Client: www.textualapp.com]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcdesimp has joined #ruby
<yorickpeterse> sweet, time to wreck my teeth with pure sugar
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
casadei has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tobacco_joe01 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
platzhirsch has quit [Ping timeout: 240 seconds]
pullphinger has joined #ruby
lavros has quit [Ping timeout: 264 seconds]
Hounddog has quit [Remote host closed the connection]
ddarkpassenger has joined #ruby
platzhirsch has joined #ruby
<yorickpeterse> TooMuchSugarError
jxpx777 has joined #ruby
* neanias is hungry
<neanias> Stop it
<yorickpeterse> tonight I'm having instant pancakes
<yorickpeterse> or a pasta
<yorickpeterse> not sure, either way I can't cook for shit anyway
balazs has joined #ruby
<centrx> Unable to compute due to missing data.
symbol has quit [Ping timeout: 248 seconds]
lavros has joined #ruby
<yorickpeterse> I can take a picture
<yorickpeterse> (of the donut at least)
<yorickpeterse> oh hm, don't have my USB cable with me
Outlastsheep is now known as zz_Outlastsheep
inoic has quit [Read error: Connection reset by peer]
darkf has quit [Quit: Leaving]
momomomomo_ has joined #ruby
Alayde has joined #ruby
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
GriffinHeart has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
<[k-> USB is dangerous
balazs has quit [Ping timeout: 265 seconds]
<yorickpeterse> as long as you only stick it into devices it should be safe
blaines has joined #ruby
momomomomo has quit [Client Quit]
Xeago has joined #ruby
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> but devices are the ones that make it unsafe
<agent_white> s/devices/people/
ddarkpassenger has joined #ruby
zeeraw has joined #ruby
woodennails has joined #ruby
failshell has quit [Remote host closed the connection]
<[k-> people can't do it without devices
<[k-> check.mate.
blaines_ has joined #ruby
blackmes1 has joined #ruby
Xeago has quit [Remote host closed the connection]
<yorickpeterse> maybe one day USB becomes self aware
rbennacer has quit [Remote host closed the connection]
<cscheib> win 4
joonty has quit [Quit: joonty]
Lucky_ has joined #ruby
bluOxigen has joined #ruby
blaines has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
christiandsg has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
ddarkpassenger has quit [Ping timeout: 276 seconds]
senayar has quit []
allomov has quit [Remote host closed the connection]
mistermocha has joined #ruby
blackmes1 has quit [Ping timeout: 250 seconds]
lee-jon has joined #ruby
<Senjai> Good morning ruby
darithorn has quit [Quit: Leaving]
solars has joined #ruby
mleung has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
paulcsmith has joined #ruby
<Ox0dea> Senjai: Did you ever figure out the glob incantation?
ledestin has joined #ruby
finisherr has joined #ruby
finisherr has quit [Client Quit]
andikr has quit [Remote host closed the connection]
dagda1 has joined #ruby
tvw has joined #ruby
<[k-> someday I will print [k- using tr
<[k-> I wanted to print Ox0dea but it is too long
<Ox0dea> [k-: You can escape the hyphen.
baweaver has joined #ruby
<[k-> I haven't started trying yet :o
<Ox0dea> Ah, okay. It also helps that the hyphen isn't special if it's the last character.
finisherr has joined #ruby
<Senjai> Ox0dea: Nope
paulcsmith has quit [Quit: Be back later ...]
<Senjai> Ox0dea: We just solved it a different way
<Senjai> Moving things into serperate directories instead
<Senjai> Which was the best solution, but we were mostly just curious
<Ox0dea> Senjai: Well, you could've just made it so that none of the others started with an 'l'.
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
symbol has joined #ruby
quimrstorres has joined #ruby
baweaver has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 240 seconds]
<Senjai> Meh
<Senjai> Thanks for the help anyway :P
<Senjai> Honestly, the major problem is not being able to pass in a list of files
Xeago has joined #ruby
bruno- has quit [Quit: Lost terminal]
<Senjai> Which is a failure of the library
<Senjai> Even if we could make that glob work, it shouldn't have to
<Ox0dea> But, well, it's called Dir. :P
danzilio has joined #ruby
<symbol> Just curious if anyone thinks this is a remotely good deal or can vouch for some of the books- http://rubybookbundle.com
bruno- has joined #ruby
bricker has joined #ruby
pyrotecnix has quit [Quit: WeeChat 0.4.2]
bronson has joined #ruby
dcunliffe has joined #ruby
eGGsha has joined #ruby
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
pandaant has quit [Quit: Lost terminal]
Xeago has quit [Remote host closed the connection]
<agent_white> $199?! eek!
pdoherty has joined #ruby
sepp2k has quit [Client Quit]
<Senjai> symbol: loll
<Senjai> symbol: dont get any of them
wildroman2 has quit []
<Senjai> symbol: Get Programming Ruby 1.9 and 2.0 for learning ruby
<neanias> lrthw for the win
<Senjai> and Rails 4 in action for rails
dcunliffe is now known as pyrotecnix
Torrieri has joined #ruby
Torrieri has joined #ruby
<Senjai> Metaprogramming ruby is a good book too, and practical object oriented design in ruby
<Senjai> You dont really need any other books by that point
<Ox0dea> /thread
<Senjai> the last two being more advanced
<symbol> I'm already an employed ruby dev...just always looking for ways to sharpen myself.
* Senjai drop the mic
sepp2k has joined #ruby
<symbol> I suppose I should just build more :)
<Senjai> symbol: POODR & Metaprogramming ruby
<Senjai> also yeah, build more
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
<agent_white> <3 POODR. Sandy has such a way with words.
hotpancakes has joined #ruby
bullcitydev has joined #ruby
<symbol> I've read POODR three times now I think
<[k-> Sandi*
<agent_white> [k-: Thank you :)
<Senjai> Sandy can over-optimize things sometime
<Ox0dea> *Sandi
<Senjai> but the concepts are sound
willhumphreys has quit [Ping timeout: 264 seconds]
<symbol> I'll check out Metaprogramming for sure
<[k-> Sandi*
hotpancakes has quit [Remote host closed the connection]
<Senjai> symbol: If you like poodr, you can check out design patterns by the gang of four
<agent_white> !poodr
<agent_white> :(
<Senjai> ?poodr
<ruboto> I don't know anything about poodr
<symbol> I found her examples a bit difficult to apply to my code but that might just be me.
<rehat> I want to save stuff into a mysql, do I need to use Rails in order to use require 'active_record' or can my simple Ruby script still use it
<symbol> Yay! More design patterns, that's really what I'm interested in.
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
<Senjai> symbol: Also Code Complete 2nd ed, and the Pragmatic Programmer
Xeago has joined #ruby
<shevy> [k- loooook my first ruby-gnome version of my exam-question trainer http://shevegen.square7.ch/screenshot.png totally unstyled so far
<jhass> rehat: no, you can install and use activerecord separately, a popular alternative is sequel
cir0x has joined #ruby
<symbol> Senjai: Is that the gang of four?
<Senjai> yes
<rehat> jhass: sweet thanks
bronson has quit [Ping timeout: 256 seconds]
<symbol> Would you recomend that over Martin Fowlers?
<Senjai> symbol: What? Different books man
<Senjai> symbol: Martin fowler is known for the refactoring book
<Senjai> what book are you referencing
<Senjai> Different books
<Senjai> Design patterns is literally an encyclopedia of patterns
<Senjai> with examples
<symbol> Oh spiffy
Xeago has quit [Remote host closed the connection]
<Senjai> Just get all of them really
<Senjai> Also Refactoring by Martin Fowler is great too
<symbol> I have the workbook
<symbol> It was over my head when I first read it
hahuang65 has joined #ruby
shinnya has joined #ruby
towski_ has quit [Remote host closed the connection]
<symbol> Senjai: Thanks for redirecting my money ;)
willhumphreys has joined #ruby
pyrotecnix has quit [Quit: WeeChat 0.4.2]
dcunliffe has joined #ruby
<Senjai> symbol: Feel free to send some my way, I won't complain :P
varunwachaspati has quit [Ping timeout: 276 seconds]
mistermocha has quit [Read error: Connection reset by peer]
zendrix has quit [Remote host closed the connection]
dcunliffe has quit [Client Quit]
<[k-> shevy, quite okay. but I'm a critic of interfaces :>
finisherr has quit [Quit: finisherr]
mistermocha has joined #ruby
<shevy> yeah, I am just glad it runs without erroring for now
<[k-> who reads books :/
<[k-> who even has time
<[k-> I has no time
<Aria> People who commute by train.
<Aria> And people who like to learn the durable parts of our craft.
<[k-> I commute by bus and I read Haskell :o
<shevy> Aria is a trainee! someone who travels by train
<[k-> learn by conferences!
<symbol> I generally wake up early to get 1-2 hours of tech reading done.
<[k-> I only watched the railsconf2014 half way
<[k-> symbol:
c_nick has joined #ruby
zendrix has joined #ruby
hotpancakes has joined #ruby
finisherr has joined #ruby
hotpanca_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<symbol> Heh...you asked who even has time.
JoshL has quit [Read error: No route to host]
spider-mario has joined #ruby
JoshL has joined #ruby
Xeago has joined #ruby
prettiestPony11 has joined #ruby
Zai00 has quit [Quit: Zai00]
mistermocha has quit [Ping timeout: 248 seconds]
anisha has quit [Ping timeout: 256 seconds]
Gadgetoid has joined #ruby
Jackneill has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
paulcsmith has joined #ruby
veekram has quit [Quit: Lost terminal]
chipotle has joined #ruby
<[k-> you have time, I has school :(
<shevy> you'll become smarter every day because of school!
t3k has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> and then you'll be a millionaire
<[k-> poor shevy missing out :c
<[k-> has you been schooled
rcvalle has joined #ruby
<chipotle> good afternoon
willhumphreys has quit [Ping timeout: 264 seconds]
<[k-> your answer: very yes/yes/no/absolute no
bronson has joined #ruby
gamename has joined #ruby
<c_nick> Hi my application is using active records for database connectivity to get database table entries the function uses where method passing each and every column name with last one an object of database
RegulationD has quit [Remote host closed the connection]
varunwachaspati has joined #ruby
<c_nick> I don't know how to get db entries with query having like
sarkyniin has quit [Ping timeout: 265 seconds]
jonathanwallace has joined #ruby
<shevy> [k- sure but I was very lazy
Xeago has quit [Remote host closed the connection]
<[k-> your reply does not match the tailored responses
JDiPierro has joined #ruby
<[k-> pls try again
lee-jon has quit [Quit: lee-jon]
yfeldblum has joined #ruby
<shevy> I was extremely lazy
dopie has quit [Quit: This computer has gone to sleep]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> your responses cannot be recognised, pls give a number instead (yes 1 - 4 no)
rbennacer has quit [Remote host closed the connection]
j_mcnally has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has joined #ruby
Igorshp_ has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|lunch
* [k- boops shevy
<shevy> In fact I was so lazy that the metric system has no way of measuring that kind of laziness
<shevy> just like the dudedudeman here
wallerdev_ has joined #ruby
<dudedudeman> hey now!
solocshaw has joined #ruby
<dudedudeman> i can measure stuff
djbkd has joined #ruby
<[k-> c_nick have you finished your question? we are still waiting
<dudedudeman> might take some time though. gotta work it in to my schedule
Spami has joined #ruby
<[k-> but you can't measure how much time it would take
<[k-> and how much time to offset
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
Sehryn has quit [Ping timeout: 240 seconds]
varunwachaspati has quit [Ping timeout: 264 seconds]
Kn|t3 has joined #ruby
kotk_ has joined #ruby
woodennails has joined #ruby
Kn|t3 has left #ruby [#ruby]
kotk has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
Kricir has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
InternetFriend has joined #ruby
GitGud has quit [Ping timeout: 246 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
sarkyniin has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
varunwachaspati has joined #ruby
niemcu has joined #ruby
Antiarc has joined #ruby
Igorshp has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpanca_ has quit [Remote host closed the connection]
Synthead has joined #ruby
Scroff has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
RobertBirnie has joined #ruby
failshell has joined #ruby
arooni-mobile has joined #ruby
Contigi has joined #ruby
JDiPierro has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
failshell has quit [Remote host closed the connection]
intinig has quit [Remote host closed the connection]
<c_nick> [k- yes
failshell has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bmurt has joined #ruby
parabolize has joined #ruby
<[k-> but your sentence isn't complete
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dumdedum has quit [Ping timeout: 250 seconds]
psy_ has quit [Read error: Connection reset by peer]
bruno- has quit [Quit: Lost terminal]
MatrixBridge has quit [Ping timeout: 256 seconds]
<Senjai> I forget
<Senjai> what's faster, set#include? or array#include?
<[k-> set
<jhass> Senjai: what's faster, Array#include? or Hash#has_key?
<Senjai> As well as for all set related operations, like unions etc
<[k-> has_key?
kotk has joined #ruby
<Senjai> jhass: I would imagine the latter.
bruno- has joined #ruby
<Senjai> I was just double checking
<[k-> the latter is definitely faster
<jhass> exactly, O(n) for array, O(1) for hash key lookup
<jhass> and Set is just a wrapper around a hash without values
<[k-> ^
<eam> but not has_value? :)
havenwood has joined #ruby
<[k-> sets are collection of values
<[k-> so no.
<[k-> well not exactly :)
kotk_ has quit [Ping timeout: 252 seconds]
platzhirsch has left #ruby [#ruby]
hotpancakes has joined #ruby
psy_ has joined #ruby
MatrixBridge has joined #ruby
astrobun_ has joined #ruby
peter_paule has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
thiagovsk has quit [Quit: Connection closed for inactivity]
jcdesimp has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 248 seconds]
werelivinginthef has quit [Read error: Connection reset by peer]
hotpancakes has quit [Ping timeout: 265 seconds]
werelivinginthef has joined #ruby
hotpancakes has joined #ruby
freerobby has quit [Quit: Leaving.]
kinduff has joined #ruby
astrobun_ has quit [Ping timeout: 240 seconds]
Timba-as has quit [Quit: Be back later ...]
JDiPierro has joined #ruby
<cout> jhass: Hash#has_key? isn't _quite_ O(1) due to the cost of the computation of the hash, so the answer to the question of whether Array#include? or Hash#has_key? is faster depends partly on the hash function, but yeah, saying Hash#has_key? is faster is a good rule of thumb
icebourg has quit []
peter_paule has quit [Ping timeout: 264 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> if your hash function is really really bad and throws everything into the same bucket it's O(n) too, but then you fucked up
JDiPierro has quit [Remote host closed the connection]
<canton7> a very very very rough rule of thumb is that arrays are cheaper for fewer than around 10ish elements
<eam> cout: it's exactly O(1) because it doesn't change based on the size of the dataset
JDiPierro has joined #ruby
<canton7> 3 elements? array's probably quicker. 300 elements? go with a hash
<eam> a hash lookup has the same cost whether there are 1 or 1 million elements
<jhass> but what's said with O(n) vs O(1) is that for the hash the bigger it gets, the lookup time stays roughly constant, while for an array it grows liner with size
<hanmac> shevy: Color, Point, Rect and Size now has #hash methods and eql? is an alias for == for them, and i already add them into the specs
<jhass> *linear
theery has quit []
<cout> eam: you're ignoring the cost of the hash function when you say that. The cost could be thought of as O(m) for string keys where m is your string length.
dangerousdave has joined #ruby
<eam> cout: the entire definition of big-O notation is that it ignores those things
<eam> that's what the symbol means
JDiPierro has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
<eam> it tracks the change in computation cost as a function of data size
eggoez has joined #ruby
<eam> there are plenty of O(1) algorithms which are slower than O(n) or slower than O(n^2)
<eam> the formula describes the rate of change - not the efficiency
herbst has joined #ruby
<Senjai> Uhm
<jidar> for specific datasets
<eam> jidar: yes
<Senjai> I need a flat_map, that also somewhat behaves like an inject
ndogz has joined #ruby
<Senjai> thing.flat_map{...}.inject(&:|) is what I'm seeing now
<herbst> hi, any ideas how i could stop to_json to make things like "-2165370312541948811" out of sha3 hashes?
<Senjai> and I dont like it
<cout> eam: I don't believe that is correct; the string length is an observation of the data size.
<eam> jidar: of course we could concoct an algorithm that's O(1) and never finishes :)
<Senjai> cout: not in ruby I don't think so.
<jhass> Senjai: .each_with_object([]) {|item, acc| acc.concat item }
Xeago has joined #ruby
<Antiarc> cout: The hash key computation time may be O(n), but n for the purpose of hash lookups is the number of entries in the hash, not the size of the hash key
Sebastia1Thorn is now known as SebastianThorn
<Senjai> jhass: ty
<eam> cout: sure, generally if you want to look at a second dimension you'd say something like O(m*n)
dangerousdave has quit [Client Quit]
rippa has quit [Ping timeout: 256 seconds]
<jhass> Senjai: well, or |= or whatever
<Ox0dea> >> require 'objspace'; require 'set'; foo = Array.new(300) { rand }; [ObjectSpace.memsize_of(foo), ObjectSpace.memsize_of(foo.to_set)]
<ruboto> Ox0dea # => [1220, 20] (https://eval.in/394526)
dangerousdave has joined #ruby
<jidar> but o(m*n) is just o(x)
<eam> however in this case Hash is still faster - because both forms must iterate the string length of the source which is O(n)
<jidar> when reduced
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> however Array must *also* iterate all of the other strings, and Hash does not
<Senjai> jhass: aye, I follow
helpa-bot has joined #ruby
AlphaAtom has joined #ruby
helpa has quit [Remote host closed the connection]
<eam> so we would say comparing two strings is O(n). Hashing a string into a lookup value is O(n). Applying the lookup value to find the Hash value is O(1). Searching an Array for a matching string is O(n) in terms of elements of the array and O(m*n) in terms of elements * string length
helpa-bot has quit [Remote host closed the connection]
t_ has joined #ruby
helpa has joined #ruby
jhwhite has quit [Ping timeout: 250 seconds]
<eam> compare/hash have the same big-o
<cout> eam: I would agree, but while the array element comparison and the hash function are computationally equivalent in terms of big-O, linear search through the array has the advantage that it can abort the comparison early if the strings don't match on the first or second character, whereas hash _has_ to iterate over the entire string to compute the hash value
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> you're talking about a radix search?
railsraider has joined #ruby
<eam> Array doesn't work like that
<cout> eam: no, just a regular linear search
<eam> Array does the same or more work even in the best case
<Antiarc> Just use benchmark/ips for your use case and measure it :P
<eam> Array must fully iterate the string length at least once
<eam> correct?
<eam> Hash also iterates the string length exactly once
<Antiarc> Not necessarily, string comparison uses length checks and memcmp
<cout> mean: e.g. let's say your searching for "foo" in the array [ 'abc'*10000, 'def'*10000, 'ghi'*1000, 'foo' ]
yardenbar has joined #ruby
<cout> s/mean/eam/
<eam> cout: hash(foo) has the same cost as comparing to "foo"
<eam> same big-o
<cout> eam: agreed
<eam> so it's not an advantage
howdoi has quit [Quit: Connection closed for inactivity]
<cout> eam: but in the case of array you can abort the comparison on the first character so you don't have to iterate over the entire string
<Mon_Ouie> The hash table implementation will only hash the key you're trying to lookup then compare it with all the elements that are in the matching buckets. Those string comparisons can be exited early just as when you perform a linear search.
<eam> in fact, cmp has to iterate both of them :)
<eam> cout: no you must iterate the full string at least once
<eam> cout: you said " cout> eam: agreed" to < eam> cout: hash(foo) has the same cost as comparing to "foo"
failshell has quit []
<cout> same big-O cost
<eam> comparing the full string "foo" is what you do in the final element
mdarby has joined #ruby
<eam> correct?
arooni-mobile has quit [Ping timeout: 248 seconds]
<eam> you traverse your entire input
axl__ has quit [Ping timeout: 245 seconds]
<cout> sure, but the 1st 3 elements in the array are 30K long strings
<eam> so what?
<cout> oic, I got it backward
<eam> hash wouldn't traverse those either
<eam> hash(foo) is o(n) and "foo
mistermocha has joined #ruby
<eam> "foo" == "foo" is O(n) actually O(2n) if you want to count constants
<cout> (I've been dealing with a similar real-life problem recently, but the issue was insertion cost into the hash not lookup, which is why I stated the problem backward)
<eam> ah yeah
howdoicomputer has joined #ruby
<[k-> all the smarts talking o.o
<Antiarc> "f" == "foo" is O(1) though :)
<eam> it's sometimes counter-intuitive how these things interact
<Antiarc> (because length checks are just an integer comparison)
<eam> Antiarc: :)
<Mon_Ouie> I mean, "foo" == "foo" is also O(1) because you're comparing a constant with a constant which takes constant time overall…
<eam> yeah n can be 1 :)
peter_paule has joined #ruby
<Antiarc> Those will be separate string instances, so I don't think it'll be constant time in that case
dellavg has joined #ruby
<Antiarc> a = b = "foo"; a == b would be constant time though
<eam> in theory ruby could optimize a constant expression like that
<Antiarc> In practice it doesn't :P
<eam> sure :)
reset has joined #ruby
<eam> now, if you attack the hashing mechanism you can make Hash lookups O(n)
<Kully3xf> best way to sleep threads?
<Mon_Ouie> It doesn't matter that it doesn't with regards to that comparison being O(1). It takes constant time because the size of the string is a constant, it doesn't matter if you iterate over the string or not.
j_mcnally has joined #ruby
<Kully3xf> my threads are launching to quickly and AWS is giving me a resource limit (too much data being sent throgh
jeanlinux has quit [Remote host closed the connection]
<eam> Mon_Ouie: well, we are saying n WRT elements and m WRT string size
<eam> "foo" is just an example
<cout> eam: class MyString < String; def hash; sleep(2**32); super; end; end # still O(1), right? :)
<eam> cout: it is :)
towski_ has joined #ruby
<Antiarc> Kully3xf: Kernel#sleep should do it. But if threads are launching too quickly maybe you should be using a thread pool?
<eam> cout: or even just sleep()
<eam> O(1) can be slower than O(2^n)
<Kully3xf> i'm not sure what a thread pool is - I'll check it out
<Antiarc> It's just a resource pool where you create X threads and then check one out when you want to use it, check it back in when you're done with it
<havenwood> Kully3xf: You want to rate-limit the requests? Or are you spawning too many Threads?
<cout> eam: yeah but then I have to modify YARV to solve the halting problem
<Antiarc> That way you don't have to continually pay the thread creation overhead cost
<Antiarc> And you aren't going to run into FD limits
RegulationD has joined #ruby
lkba has joined #ruby
__butch__ has joined #ruby
<Kully3xf> i'm spawning only 10 threads, but AWS doesn't like the amount of data being sent so fast, I need to slow down how fast the threads are sending the data
[k- has quit [Quit: AndroidIrc Disconnecting]
relix has joined #ruby
davedev2_ has quit [Ping timeout: 276 seconds]
<Kully3xf> I am using a thread pool
<Antiarc> I rather doubt that the problem is "the amount of data"; AWS will happily accept throughput up to network link saturation if you can handle it
<Kully3xf> nope
davedev24_ has joined #ruby
<Kully3xf> error from AWS "RequestLimitExceded"
<havenwood> Kully3xf: See if something like ThrottleQueue suits your fancy: https://github.com/ryancalhoun/throttle-queue#readme
lokulin has quit [Ping timeout: 250 seconds]
<Kully3xf> The maximum request rate permitted by the Amazon EC2 APIs has been exceeded for your account. For best results, use an increasing or variable sleep interval between requests.
<Antiarc> Oh, request limits. Okay, so you need to throttle your requests.
<shevy> hanmac \o/
<Kully3xf> I'll check that out @havenwood
c_nick has quit [Ping timeout: 240 seconds]
<eam> Antiarc: that ain't true
<Antiarc> Which bit?
tvw has quit [Remote host closed the connection]
zz_Outlastsheep is now known as Outlastsheep
<eam> lots of aws services have per-connection throughput limits. You can do 100 parallel s3 uploads and get lots more throughput than one
<miah> aws is all about request limits, but also making sure you memoize results so that you dont perform lookups without reason
<Senjai> Today I realized how much I suck at writing recursive functions
SCHAAP137 has joined #ruby
<Antiarc> I was thinking EC2 stuff - I figured Kully3xf was hitting actual resource limits, in the ulimit sense
<eam> ah
<havenwood> Senjai: Did you realize it recursively?
<Kully3xf> I'm sending a knife ec2 server create request with ruby in multiple threads.
<Kully3xf> throttle queue is exactly what i'm looking for I think
<Antiarc> Senjai: To understand how much you suck at recursion, you must first understand how much you suck at recursion
<Senjai> Antiarc: hahahaahaha
<miah> depending on your account, your limits are likely going to be default, so make sure you memoize =) but if you are a customer giving aws tens of thousands of dollars per month you can have some limits increased
<Kully3xf> yes the later
lokulin has joined #ruby
timonv has joined #ruby
<Kully3xf> it's easier to queue in the time being than request limit increase for this error
<miah> ya
sarkyniin has quit [Ping timeout: 256 seconds]
<miah> you have to reach out to your aws rep and it does take time to increase limits; queing, memoizing, etc are the good ways to deal
<Kully3xf> excellent
<Kully3xf> thanks all
<Kully3xf> day 4 of ruby = day 4 of issues lol
<miah> day 4 of any language is like that
<havenwood> if you're lucky enough to get as far as issues!
<Antiarc> Kully3xf: For future reference, sleep(int) in a thread will sleep that thread for that many seconds.
<Antiarc> (See Kernel#sleep for documentation)
jcdesimp has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
anisha has joined #ruby
lkba_ has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
Outlastsheep is now known as zz_Outlastsheep
<Senjai> havenwood: https://gist.github.com/Senjai/ad3711729f910460390f was what I was writing. Kinda meh about it
lkba has quit [Ping timeout: 256 seconds]
zz_Outlastsheep is now known as Outlastsheep
hotpancakes has quit [Remote host closed the connection]
craysiii has joined #ruby
pfish has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
frem has joined #ruby
InternetFriend has joined #ruby
InternetFriend has quit [Client Quit]
MasterPiece has joined #ruby
leonardoajim has quit [Quit: Be back later ...]
di3soft has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Xeago has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
crazydiamond has quit [Remote host closed the connection]
rippa has joined #ruby
dopie has joined #ruby
hurlyburly has joined #ruby
jhwhite has joined #ruby
wallerdev_ has quit [Quit: wallerdev_]
mleung has quit [Quit: mleung]
wallerdev_ has joined #ruby
Mojo_Nixon has joined #ruby
sarkyniin has joined #ruby
freerobby has joined #ruby
Mojo_Nixon has quit [Client Quit]
hurlyburly has quit [Client Quit]
blackmes1 has joined #ruby
zendrix has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
mleung has joined #ruby
monod has joined #ruby
gix has joined #ruby
Scroff has joined #ruby
<Kully3xf> ok so AWS says I need to do retries intead of queuing - how can I retry a failed thread
quimrstorres has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 255 seconds]
anisha has quit [Ping timeout: 252 seconds]
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
baweaver has joined #ruby
<Kully3xf> so if I launch ten servers, test1-test10 and test6 and test7 fail, how do I handle that thread's error
solars has quit [Ping timeout: 250 seconds]
<jhass> rescue, maybe sleep, retry
di3soft has quit [Remote host closed the connection]
<jhass> forget that it's a thread
blackmes1 has quit [Ping timeout: 246 seconds]
<jhass> just don't let it die
di3soft has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
shadoi has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 250 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
InternetFriend has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
kirun has joined #ruby
finisherr has quit [Quit: finisherr]
axsuul has joined #ruby
jayrmotta has joined #ruby
Spami has joined #ruby
cpruitt has joined #ruby
rbennacer has joined #ruby
<Kully3xf> so my error handler I guess is incompetent
<Kully3xf> lol
finisherr has joined #ruby
a346 has quit [Quit: a346]
djbkd has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
djbkd has joined #ruby
<Kully3xf> right now i'm just ignoring them and not letting the thread die - so if I just wait long enough will the thread retry?
<jhass> no
j_mcnally has quit [Ping timeout: 265 seconds]
rodfersou|lunch is now known as rodfersou
<Antiarc> you're just shelling out to a command there; it's not likely to raise an exception. You'll need to look for exceptional text in the body of the command response, or check the return code of the command
pdoherty has quit [Remote host closed the connection]
stantonnet has joined #ruby
prettiestPony11 has quit [Quit: Textual IRC Client: www.textualapp.com]
postmodern has joined #ruby
s00pcan has joined #ruby
fmcgeough_ has joined #ruby
hotpancakes has joined #ruby
workmad3 has joined #ruby
thiagovsk has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
fmcgeough has quit [Ping timeout: 248 seconds]
fmcgeough_ is now known as fmcgeough
Soda has quit [Remote host closed the connection]
fantazo has joined #ruby
j_mcnally has joined #ruby
freerobby has quit [Quit: Leaving.]
Muhannad has quit [Ping timeout: 264 seconds]
finisherr has quit [Quit: finisherr]
sargas has joined #ruby
withnale_ has quit [Ping timeout: 264 seconds]
sngeth has quit [Quit: Lost terminal]
rqde has joined #ruby
yardenbar has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 244 seconds]
mleung has quit [Quit: mleung]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
mleung has joined #ruby
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
symm- has joined #ruby
di3soft has quit []
yardenbar has joined #ruby
jackjackdripper has joined #ruby
x1337807x has joined #ruby
hmnhf has joined #ruby
monod has quit [Ping timeout: 256 seconds]
rdark has joined #ruby
renderfu_ has joined #ruby
rdark has quit [Client Quit]
bmurt has quit [Ping timeout: 252 seconds]
jmhmccr has joined #ruby
icebourg has joined #ruby
zendrix has joined #ruby
a346 has joined #ruby
<shevy> I feel so alone with ruby + GUIs here in this room :(
renderfu_ has quit [Ping timeout: 248 seconds]
DEac- has quit [Ping timeout: 256 seconds]
<dudedudeman> i'd love to learn and figure out GUIs
<dudedudeman> shevy: teach me
<shevy> yay \o/
<dudedudeman> show me the gui way
kadoppe has quit [Ping timeout: 248 seconds]
<shevy> yeah lemme think
woodennails has joined #ruby
<shevy> I guess the first hurdle is to get things to run (the bindings)
<dudedudeman> bind all the things!
<shevy> I usually grab the source archive
Voker57|2 has quit [Remote host closed the connection]
<dudedudeman> what type of service are you actually writing a GUI for?
<shevy> everything! write all the things
bhuvanaurora has joined #ruby
bhuvan_aurora has joined #ruby
<woodennails> Hello guys, Im moving to a new job as a junior developer and im going to be primarily using Ruby, not necessarily Rails but definitely Ruby. They are aware i know zero Ruby and are willing to train me up on it but is there any recommeded guides or tutorials that I can practice before at so that I dont look a total noob :)
<shevy> right now just an exam-trainer, but I also have to port code I wrote many years ago, which was for all sorts of things, most of them incomplete; like you know mc (midnight commander?) - that thing could be in ruby-gnome too I thought once
<dudedudeman> woodennails: woo! congrats on the new job(i'm searching for one myself)
<shevy> dudedudeman are you on linux?
kadoppe has joined #ruby
<dudedudeman> are you a book person? video person? courses, lectures, etc?
<dudedudeman> shevy: yes. linux all the things
<dudedudeman> at least at work i am
baweaver has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
<shevy> woodennails have you used another programming language before?
<shevy> dudedudeman ok excellent
<olas> how would you have a ruby script respond to external commands? for example, we have 'counter' daemon that runs and we want to run say 'counter --current-count' to get what it's currently on?
<woodennails> shevy im a javascript developer in my current role :)
<dudedudeman> oh lawd. shevy, he said it
<jhass> olas: via IPC, drb might the easiest for that purpose
last_staff has joined #ruby
<shevy> dudedudeman let's try to see if you can install two small gems on your system, I found these to be quite important for ruby-gnome; first, pkg-config: "gem install pkg-config", which I hope should work without a problem.
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<dudedudeman> done
xtsee has quit []
<dudedudeman> at least, it installed
Scroff has quit [Remote host closed the connection]
<shevy> \o/ woooot
tobacco_joe has joined #ruby
<dudedudeman> 1.1.6
<shevy> yeah that is the latest. let me look at the other one... this one has to do with cairo... ruby bindings to cairo... a moment
bruno- has quit [Ping timeout: 264 seconds]
<craysiii> woodennails codecademy was good for an intro course
<woodennails> Yeh i've been working through that
<dudedudeman> woodennails: codecademy would be a good, easy place to start. free, too. from there you can pick up the pickaxe book, and so many other good books
<woodennails> Ive gotten hold of Chris Pine Learn to Program
<shevy> ok it should be "gem install cairo" but! it may require some cairo .h file, via this check here: "checking for cairo version (>= 1.2.0)... yes" not sure if your current system has it dudedudeman
<Senjai> woodennails: Pickaxe book for the win man
<craysiii> i did codecademy, and right now im running through the full-stack web course through bloc.io. hoping i can get a ruby job in 9 months or so
wldcordeiro has joined #ruby
<woodennails> Im not aware of that one Senjai
treehug88 has joined #ruby
<dudedudeman> ^
<Senjai> craysiii: I used teamtreehouse
<shevy> woodennails knowing javascript is good, you should not have a big problem with ruby. Chris Pine is pretty simple, perhaps boring, but after you read it, you should be able to answer questions such as "what is a block in ruby?"
<Senjai> craysiii: Back in the day
mdarby has quit [Ping timeout: 250 seconds]
<woodennails> So Pragmatic Ruby is recommended then?
<shevy> pickaxe has a great reference with examples in the last 400 pages ( :P ) or so
<dudedudeman> i get a failure on that one, shevy
<shevy> dudedudeman ah dang ok
<dudedudeman> woodennails: yes! it's a good'en
<craysiii> i actually went to school for CS but then dropped out because of the calculus requirement. so far it seems easy (especially because i am already well versed in MVC from django)
ndogz has quit [Quit: Leaving...]
<olas> jhass: hmm it seems like drb is limited to ruby 1.9.3
<Senjai> craysiii: the math is handy
howdoicomputer has quit [Ping timeout: 256 seconds]
<jhass> olas: where did you read that? oO
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
<shevy> craysiii you also don't like math?
<craysiii> yes it is, i did this when i was younger
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<craysiii> its not that i dont like math, i used to be really good, then took a long break from school and went back and sucked, was very frustrating
workmad3 has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Outlastsheep is now known as zz_Outlastsheep
<shevy> dudedudeman: can you try this, in some terminal (or your current one), "wget https://rubygems.org/downloads/cairo-1.14.1.gem; gem unpack cairo-1.14.1.gem; cd cairo-1.14.1"
<Senjai> shevy: eek
<dudedudeman> man
Scroff has joined #ruby
sigurding has joined #ruby
<dudedudeman> huh. that did it
bhuvanaurora has quit [Ping timeout: 240 seconds]
doertedev has quit [Quit: Lost terminal]
bhuvan_aurora has quit [Ping timeout: 248 seconds]
<dudedudeman> i think
monod has joined #ruby
<shevy> a moment
<shevy> dudedudeman the output should then be something like: http://pastie.org/pastes/10278144/text
<shevy> but I think you may lack some header or perhaps a library too... hmm
leonardoajim has joined #ruby
dcunliffe has joined #ruby
dcunliffe is now known as Pyrotecnix
leonardoajim has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
leonardoajim has joined #ruby
<shevy> my system confuses me
<dudedudeman> no... definitely don't have that
workmad3 has quit [Ping timeout: 250 seconds]
<olas> jhass, Senjai: my god i was trying to gem install when it was part of the stdlib
<shevy> I am using some script to install .gem files ... via a system 'gem install --ignore-dependencies '
tjohnson has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
<shevy> dudedudeman ok good, that is also usually what I have when I try to install ruby-gnome bindings on a fresh install
<craysiii> what OS you guys running?
solocshaw has joined #ruby
dblessing has quit [Ping timeout: 252 seconds]
<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?
<eam> is your operating system running?
<shevy> craysiii linux here but mostly I compile from source
GBrawl has joined #ruby
<eam> better go catch it
quimrstorres has joined #ruby
<craysiii> sorry i dont mean to offend
mhib has joined #ruby
<jhass> anyway, arch here
eggoez has joined #ruby
<shevy> dudedudeman ok... let's try the old way... I am sure there are better ones, but this one I know... we grab good old setup.rb ... let me find the latest version...
<jhass> and #ruby-offtopic if anybody feels like fighting over the best ;)
lavros has quit [Quit: leaving]
axsuul has joined #ruby
denver has quit [Remote host closed the connection]
<atomical> ?girls
<ruboto> I don't know anything about girls
kinduff has quit [Quit: leaving]
<shevy> 2% girls here but they are hiding
dagda1 has joined #ruby
<craysiii> 7% of statistics are made up on the spot
tno has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
<shevy> ok dudedudeman this is the setup.rb from 2005, I just copy pasted it -> https://goo.gl/07U1Go, you can save it as "setup.rb" in the same directory as you are in of cairo*; you could also use the original source if you want to, which you could obtain from here: http://i.loveruby.net/en/projects/setup/ or you could also use a somewhat more recent updated variant (but by another author) at: https://github.com/r
<shevy> ubyworks/setup
<woodennails> What editors do you guys use?
<shevy> woodennails bluefish 1.1.7 still \o/ though if I were to start from scratch today, I would probably opt for something such as sublime
GriffinHeart has joined #ruby
<woodennails> im trying to get into Vim, people i know swear by it but i just find it takes longer
jayrmotta has quit [Quit: This computer has gone to sleep]
<shevy> dudedudeman once you have setup.rb (sorry for the extra steps... I don't know of a simpler way), run this please: "ruby setup.rb config"
eggoez has quit [Ping timeout: 246 seconds]
<shevy> woodennails vim has nice keybindings
<shevy> I did not like the extension syntax much
<dudedudeman> shevy: this be crazy
bronson has joined #ruby
<shevy> yea :(
juanca__ has joined #ruby
<woodennails> I've never bought a programming book before, i've just used online resources.. you reckon it may be better to use a paperback rather than epub/pdf?
solocshaw has joined #ruby
<shevy> dunno. I do have some .pdf files from paper books, but I prefer good old books in general
<craysiii> theres pros and cons to each. I like a physical book so i can flip to pages
juanca_ has quit [Ping timeout: 265 seconds]
Igorshp has joined #ruby
<shevy> woodennails for programming I started to keep local reference things/notes
<shevy> like tricks, hints, examples, tests
<shevy> for science-related stuff, I definitely prefer books
<woodennails> There any online tutorials for Ruby you guys can recommend
<dudedudeman> definitely the codecademy stuff, for free
bronson has quit [Remote host closed the connection]
<dudedudeman> the oden project has a bunch of good ruby resources if you're looking for web related development
jayrmotta has joined #ruby
<woodennails> Yeah i'm going through that at minute.. codeschool?
bronson has joined #ruby
<dudedudeman> codeschool is awesome, but doesn't have too many courses for pure ruby
GriffinHeart has quit [Ping timeout: 256 seconds]
<dudedudeman> lots of rails, lots of javascript, lots of stuff for things htat compliment ruby/rails, like sql/bootstrap/etc
arescorpio has joined #ruby
<shevy> woodennails ultimately one of the best ways to learn is to sit down and simply do all the basic stuff, by yourself... how to create directories... how to create symlinks... how to copy, delete, remove... how to group code into modules/class
bruno- has joined #ruby
<woodennails> yeah ive been doing Javascript for the past year at work, im still a junior developer... and just accepted a job where i'll be primarily doing ruby
Kricir has quit [Remote host closed the connection]
railsraider has quit [Quit: railsraider]
<eam> the best way to learn is to assert your ideas as true and wait for people to correct you
SuMo_D has joined #ruby
momomomomo has joined #ruby
DEac- has joined #ruby
_blizzy_ has joined #ruby
<shevy> oh
eggoez has joined #ruby
hotpancakes has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
<shevy> I let my old friend, the ruby parser, correct me
<woodennails> im just struggling on what to create between now and hten
<woodennails> then*
* eam waits
sarkyniin has joined #ruby
wallerdev_ has quit [Quit: wallerdev_]
<shevy> 18th october 2014: <eam> well that's super dumb; <eam> I'm disappointed in perl
<shevy> \o/
mistermocha has joined #ruby
sharpmachine has quit [Remote host closed the connection]
<craysiii> i always like to write a brainf*ck emulator / interpreter in whatever language
momomomomo has quit [Client Quit]
<craysiii> good first execise
<eam> shevy: what was that about anyway I forgot
<shevy> sadly I did not store the ruby-parser = devilish reference
<shevy> eam not entirely sure... the rest of the quote is: <eam> oh holy cow; <eam> you're right, that's insane (looks like you disable it with binmode); <eam> $^I disables it, looks like
<shevy> I really could not tell you what $^I means in the first place
JoshL has quit []
<eam> oh, it was the i/o layer translating \n inside write()
<eam> which is why you should always use syswrite
<Ox0dea> craysiii: What is a "brainfuck emulator"?
axsuul has quit [Ping timeout: 250 seconds]
hmnhf has quit [Ping timeout: 276 seconds]
<shevy> reminds me of puts "foo\n" versus puts "foo" now... where the one without \n is slower
<shevy> hmm or perhaps "more expensive"
<eam> shevy: both
<Ox0dea> shevy: They aren't the same.
<eam> Ox0dea: they're the same output
<craysiii> more of an interpreter. but if you don't know what brainf*ck is, it's an esoteric programming language
<eam> but letting puts add the \n is much slower
digifiv5e is now known as daynaskully
<ytti> puts "foo\n" likely is thread safe
<ytti> puts "foo" definitely is not
<eam> ytti: well, what's threadsafe?
<ytti> perhaps that is wrong word
<eam> you mean in terms of interleaved writes?
<ytti> i mean puts "foo" is "foo" and "\n" done separately
<eam> yeah
sshuff has joined #ruby
<ytti> and if two threads are writing to same output
<Ox0dea> craysiii: Right, I'd just never heard the term "emulator" used in the context of brainfuck is why I asked.
<shevy> cool
<ytti> it might be that output is unexpected
_blizzy_ has quit [Read error: Connection reset by peer]
<ytti> i tink "foo\n" would produce expected output
<eam> puts should use writev() or have a writev() ruby i/o layer equiv
<craysiii> i shouldn't have used the term
sharpmachine has joined #ruby
<shevy> ruby has so much thread stuff... threads ... fiber... mutex... probably something else that I forgot
icflournoy has quit [Ping timeout: 244 seconds]
railsraider has joined #ruby
poguez_ has joined #ruby
<eam> callcc
ayonkhan has joined #ruby
icflournoy has joined #ruby
sarkyniin has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
sharpmachine has joined #ruby
<Ox0dea> So, for Kernel.puts, "foo" and "foo\n" are the same, but "foo\n" and "foo\n\n" are not. Why isn't it just defined as print + newline?
<eam> perlism
phutchins has quit [Ping timeout: 264 seconds]
<eam> DWIM
KnownSyntax has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
Sthebig_ has joined #ruby
Sthebig_ has joined #ruby
<Ox0dea> It seems TNWIM hasn't caught on.
sarkyniin has joined #ruby
ayonkhan has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
lele has quit [Ping timeout: 250 seconds]
Sthebig_ is now known as Sthebig
AlphaAtom has joined #ruby
<shevy> nobody else knows what that is, you fossil coders you!
Muhannad has joined #ruby
<shevy> born in the 1960s
<shevy> I have an idea... let's bring larry wall to #ruby :)
f3lp has quit [Ping timeout: 252 seconds]
blue_deref has joined #ruby
<Ox0dea> shevy: You're supposed to have read The Jargon File by now. :P
<Ox0dea> On Larry, I think Black Perl provides some interesting insight into his psyche.
Drakevr has quit [Ping timeout: 276 seconds]
howdoicomputer has joined #ruby
mjuszczak has joined #ruby
Zai00 has joined #ruby
<mjuszczak> In Ubuntu, what is the proper way to repoint /usr/bin/ruby to something else? Or to tell apt to never install ruby1.9 packages even if something depends on it? I installed ruby2.1 into /opt and repointed /usr/bin/ruby to it (seems there's no way to do it with alternatives like other operating systems though I could be mistaken), but any time the ruby1.9 package gets updated or installed it repoints symlinks.
hahuang65 has quit [Ping timeout: 276 seconds]
<Ox0dea> mjuszczak: Please use a Ruby version manager.
<bougyman> mjuszczak: on the debuntus, you use update-alternatives to manage those links.
CustosLimen has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
<bougyman> but Ox0dea's idea is much better.
ayonkhan has joined #ruby
bronson has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 255 seconds]
lele has joined #ruby
<bougyman> use system ruby only for essential stuff (chef/puppet/system stuff)
<shevy> mjuszczak sounds pretty annoying - debian tells you to not use any alternatives :)
<bougyman> debian provides the most complete alternatives system available
tobacco_joe has quit []
<bougyman> so no, it doesn't tell you not to use alternatives.
juanca_ has joined #ruby
juanca__ has quit [Ping timeout: 265 seconds]
<shevy> what business of it is it to modify a symlink made by the USER of the system?
<bougyman> it won't, if you use update-alternatives --install
<bougyman> from then on it's part of the alternatives system.
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
mjuszczak has quit []
SpeakerToMeat has joined #ruby
<SpeakerToMeat> Hello. I'll try my hand here too
<Ox0dea> shevy: The system must assume the user does not know what it's doing, and vice versa. This may be the only truly insoluble conflict facing our respective species.
SuMo_D has quit [Quit: Off into this... Real world place...]
<SpeakerToMeat> I'm trying to modify an xml document with Nokogiri. I'm doing this: http://pastebin.com/f26ehTjc to try and add a namespace to the root element, but this causing the insertion of a <root> element instead... what am I doing wrong?
<ruboto> SpeakerToMeat, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/4058b8a3ae82529744e2
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
sigurding has quit [Quit: sigurding]
lele is now known as Guest24
<SpeakerToMeat> ruboto: Thank you bot
mistermocha has quit [Ping timeout: 252 seconds]
<shevy> Ox0dea yeah, like a virus
mjuszczak has joined #ruby
mistermocha has joined #ruby
<Ox0dea> shevy: In either's eyes.
Muhannad has quit [Ping timeout: 256 seconds]
<Ox0dea> SpeakerToMeat: ruboto is just a really fast typer.
<SpeakerToMeat> Really fast
sargas has quit [Quit: This computer has gone to sleep]
zendrix has quit [Remote host closed the connection]
<SpeakerToMeat> I guess my xml.root call is taken as a "element named root" rather than "root element", but I wonder how to fix it
<SpeakerToMeat> Maybe...... reusing doc.root.node_name ? then what....
symbol has quit [Ping timeout: 246 seconds]
Muhannad has joined #ruby
werelivinginthef has joined #ruby
hotpancakes has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nettoweb has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
Carnage\ has joined #ruby
rqde has quit [Quit: Page closed]
momomomomo has joined #ruby
transiency has joined #ruby
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t_ has quit [Ping timeout: 276 seconds]
solars has joined #ruby
khebbie has joined #ruby
stoodfarback has joined #ruby
bashusr has quit [Ping timeout: 256 seconds]
hoofed_ has quit [Read error: Connection reset by peer]
hotpancakes has quit [Ping timeout: 248 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
Limix has joined #ruby
arup_r has joined #ruby
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
__butch__ has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
quimrstorres has quit [Remote host closed the connection]
nettoweb has quit [Read error: Connection reset by peer]
Kruppe has quit [Ping timeout: 248 seconds]
nettoweb has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jenrzzz has joined #ruby
cpruitt has joined #ruby
railsraider has quit [Quit: railsraider]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kruppe has joined #ruby
apt-get_ has joined #ruby
lkba has joined #ruby
sarkyniin has quit [Ping timeout: 265 seconds]
tvw has quit [Remote host closed the connection]
hotpanca_ has joined #ruby
Muhannad has quit [Read error: Connection reset by peer]
sargas has joined #ruby
<SpeakerToMeat> I turned it to this: https://gist.github.com/Lars/8418797358c13d46befe but it fails to find the namespace if I try to use it bellow.. Even if I do this: xml.namespace_definitions.find{|ns|ns.prefix=="dsig"}
lkba_ has quit [Ping timeout: 240 seconds]
apt-get_ has quit [Quit: Quit]
sarkyniin has joined #ruby
intinig has joined #ruby
ringarin has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
multi_io has quit [Ping timeout: 256 seconds]
Helheim has joined #ruby
jcdesimp has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
hahuang65 has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
<AlphaAtom> Is there a different channel for rails or is here okay?
sdothum has joined #ruby
multi_io has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<pipework> #RubyOnRails
<AlphaAtom> thanks
failshell has joined #ruby
sshuff has quit [Quit: Leaving]
roolo has joined #ruby
varunwachaspati has quit [Quit: Leaving]
woodennails has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
sargas has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
jcdesimp has joined #ruby
zendrix has joined #ruby
woodennails has quit [Client Quit]
iwishiwerearobot has quit [Ping timeout: 264 seconds]
symbol has joined #ruby
ausec has joined #ruby
ringarin has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
jhwhite has quit [Ping timeout: 244 seconds]
dblessing has joined #ruby
wlknsn has joined #ruby
wlknsn has left #ruby [#ruby]
jcdesimp has quit [Remote host closed the connection]
<ausec> hey all, i want to modify this: http://pastebin.com/nXwhCkr0 to loop over a certain number of lines at a time
<ruboto> ausec, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/665f3e878b2a9a30a7aa
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
cpruitt has quit [Quit: cpruitt]
djbkd has quit [Remote host closed the connection]
<craysiii> what. are. ads.
jhwhite has joined #ruby
<ausec> hey all, i want to modify this: https://gist.github.com/665f3e878b2a9a30a7aa to loop over a certain number of lines at a time
<slash_nick> craysiii: application developer shortcuts?
* craysiii chuckles
fantazo has quit [Quit: Verlassend]
<craysiii> ausec what do you mean certain number of lines at a time
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
<Senjai> zenspider: I literally see you everywhere on the internet now.
axsuul has joined #ruby
<ausec> well, demo.txt contains 200 lines and i only want to print the first 100
sargas has joined #ruby
wallerdev_ has joined #ruby
<craysiii> ausec i would create an argument to accept an int, and then do int.times do X
jschoolcraft has quit [Quit: peace]
Ox0dea has quit [Read error: Connection reset by peer]
<craysiii> if you wanted to do it outside a function you could just do 100.times { |line| puts line }
wlknsn has joined #ruby
<wlknsn> hey guys
crdpink2 has joined #ruby
woodennails has joined #ruby
<craysiii> oh wait wtf.
<craysiii> im stupid
crdpink has quit [Ping timeout: 248 seconds]
<shevy> Senjai what is he doing to become famous?
<Senjai> shevy: He's in my email now
<Senjai> some sort of ruby mailing list
<craysiii> ausec http://ruby-doc.org/core-1.9.3/IO.html#method-c-readlines you can specify a limit of lines to read when you open the file.
craysiii has left #ruby [#ruby]
Anthony__ has joined #ruby
<symbol> Senjai: That gang of four book is written with C examples...would a rubyist still find it valuable?
<Senjai> symbol: Yes, it's all just code
<Senjai> It's not all C either
zendrix has quit [Remote host closed the connection]
<symbol> Gotcha - I should stop being afraid of X
<symbol> *C
<Senjai> symbol: You'll get to a point where code is all just code.
<symbol> Cool, thanks!
icebourg has quit []
<Senjai> Reading anything is a lot easier than writing anything though :P
<Senjai> symbol: You might want to brush up a bit on pointers and references, if anything though.
<Senjai> If you're not familiar with memory and how memory works
<Senjai> that's the only gotcha
<symbol> I know a bit about memory. While I know it's better to write code...writing bad practices won't improve my code quality.
fmcgeough has quit [Quit: fmcgeough]
<symbol> But I suppose that's why my workplace does peer reviews.
zendrix has joined #ruby
<Senjai> :)
<Senjai> We have mandatory code review on every commit on gerrit, and every pr on github
_blizzy_ has quit [Ping timeout: 240 seconds]
<Senjai> It's how you get better
hotpanca_ has quit [Remote host closed the connection]
<symbol> I love them but sometimes I fear people aren't being harsh enough.
Carnage\ has quit []
sargas has quit [Quit: Leaving]
<slash_nick> symbol: post non-sensitive stuff here... these guys will tear your code apart ;)
<slash_nick> (while building you up)
_ht has quit [Quit: Konversation terminated!]
<slash_nick> s/guys/people/
axsuul has quit [Read error: No route to host]
axsuul has joined #ruby
wldcordeiro_ has joined #ruby
<symbol> Good call!
<symbol> I did that once in #javascript and left weeping (in a great way)
<daxroc> Anyone know offhand if restclient does any session caching - seeing a strange 403 issue directly after authenticating but next auth works fine looks like to token is invalid.
crdpink has joined #ruby
<Kully3xf> does this solution to my earlier problem work/earlier problem - need to pause thread creation because they are launching to many api calls simoultaniously triggering a hard cutoff from the API receiver. My solution is to put a sleep(rand(5)) in before the API call
<Kully3xf> that should cause each thread to sleep a random amount of seconds (negligible in the over creation time)
crdpink2 has quit [Ping timeout: 248 seconds]
<Kully3xf> thus freeing up the api calls per second
bubbys has quit [Ping timeout: 276 seconds]
<Kully3xf> or even better, sleep(i) where i is the number of the thread in creation, that way there's no way it randomly creates all 2 second sleeps
djbkd has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jxpx777 has quit [Quit: Leaving...]
MasterPiece has quit [Quit: Leaving]
bubbys has joined #ruby
<slash_nick> Kully3xf: why not run them serially? sounds like you're doing a lot of work to make this run *less* concurrently... serially is less concurrent.
jxpx777 has joined #ruby
<Kully3xf> serially takes too long. Each api call takes 30-60 minutes to complete and we need to do 5-100 of them at a time
GitGud has joined #ruby
<Kully3xf> 100 times 30 minutes is too long
simplyaubs has joined #ruby
Igorshp has quit [Remote host closed the connection]
wlknsn has quit [Quit: WeeChat 1.1.1]
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has joined #ruby
<bricker> :O
<bricker> I have to know... what API call are you making that takes 60 minutes to complete? Can you even keep a connection open for that long?
centrx has quit [Quit: Shutting down, Please wait...]
<snockerton> can someone tell me how to use .map on an array and have it skip certain elements instead of putting nil back in the resultant array? https://gist.github.com/adampats/c59e77eb3f56e6d0bce3
<snockerton> next doesn't appear to work?
<ytti> not possible
<ytti> do each_with_object
<slash_nick> snockerton: just call #compact after map
<eam> bricker: plenty of db queries run for hours
ruby-lang044 has joined #ruby
simplyaubs has quit [Client Quit]
<slash_nick> snockerton: @arr.map {|x| x==0 ? nil : x }.compact
<ytti> ary = ary.each_with_object |e, new_ary|
timonv has quit [Ping timeout: 240 seconds]
<ytti> new_ary << e if poop
<ytti> end
GBrawl has quit [Read error: Connection reset by peer]
cabreraM516 has joined #ruby
failshell has quit []
sharpmachine has quit [Remote host closed the connection]
Musashi007 has quit [Client Quit]
<snockerton> wow two answers, now i have to decide something for myself
bronson has joined #ruby
hotpancakes has joined #ruby
<slash_nick> snockerton: you could even benchmark the two and let us know which performs best
jhwhite has quit [Ping timeout: 255 seconds]
<Mon_Ouie> You could also use select { |service| service[:hidden] != "true" }.map { … }
moredhel- has left #ruby ["Textual IRC Client: www.textualapp.com"]
<Mon_Ouie> Or do that with #lazy as well
ValicekB has quit [Ping timeout: 252 seconds]
<cabreraM516> hm
<slash_nick> Mon_Ouie: wouldn't that require a second iteration over the array?
ruby-lang044 has quit [Ping timeout: 246 seconds]
<Mon_Ouie> That's what map + compact does too
<slash_nick> Mon_Ouie: I guess I never thought about how/where all the nils go lol
<Mon_Ouie> Also it's not obvious that two iterations vs. one iteration that does twice as much is better
<Kully3xf> @bricker it's a chef exec knife ec2 server create
rbennacer has quit [Remote host closed the connection]
last_staff has joined #ruby
davedev__ has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
howdoicomputer has quit [Quit: WeeChat 1.2]
solars has quit [Ping timeout: 250 seconds]
<Kully3xf> it creates a server with chef - but the thread can't complete until the server has been created - the instances are quite large 16 core in some cases and they can take quite some time to launch and register with chef, download and configure new files/settings etc
jenrzzz has quit [Ping timeout: 252 seconds]
<slash_nick> Mon_Ouie: in that case, I'd think the select/map would be quicker... iterate over all elements, then iterate over only the remaining........ map/compact would have to iterate over all elements both times
jfarmer has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Ping timeout: 265 seconds]
redteam has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
momomomomo has quit [Ping timeout: 246 seconds]
<Mon_Ouie> Yes, but on the other hand the inner loop of #compact does not have to execute any Ruby code in MRI, while the select version has to switch to a block. Which one is faster probably depends on how many of the entries need to be filtered out.
momomomomo has joined #ruby
<slash_nick> lovely
KaZeR has joined #ruby
<KaZeR> hey there.
dgutierrez1287 has joined #ruby
a346 has quit [Quit: a346]
msnyon has quit [Ping timeout: 255 seconds]
cabreraM516 has quit [Quit: Textual IRC Client: www.textualapp.com]
zendrix has quit [Remote host closed the connection]
<bricker> Kully3xf: oh :)
quimrstorres has joined #ruby
ausec has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
rbennacer has joined #ruby
intinig has quit [Remote host closed the connection]
msnyon has joined #ruby
mistermocha has joined #ruby
<Kully3xf> sleep didn't work lol - the threads wait like they're supposed too, but they get the wrong number when iterating the name
ValicekB has joined #ruby
workmad3 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 246 seconds]
__butch__ has quit [Remote host closed the connection]
Anthony__ is now known as _blizzy_
baweaver has quit [Remote host closed the connection]
hotpancakes has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<Kully3xf> nevermind - got it. Sleep works great! solution solved.
duncannz has joined #ruby
zendrix has joined #ruby
hanmac has joined #ruby
Sehryn has joined #ruby
blkperl has joined #ruby
<blkperl> anyone know if net::ssh supports a io read timeout
workmad3 has quit [Ping timeout: 246 seconds]
BeatNick_ has joined #ruby
pullphinger has quit [Ping timeout: 264 seconds]
pullphinger15 has joined #ruby
quimrstorres has joined #ruby
n3vtelen has joined #ruby
__butch__ has joined #ruby
bruno- has joined #ruby
yfeldblum has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sharpmachine has joined #ruby
<n3vtelen> I use this code but I get SSL error message: https://eval.in/394559
krz has quit [Quit: WeeChat 1.0.1]
quimrstorres has joined #ruby
<jfarmer> n3vtelen The error message would be useful.
<olas> is it better to do command line arg parsing inside a class or inside a wrapper around the class?
krz has joined #ruby
BeatNick_ has quit [Quit: Leaving]
<n3vtelen> jfarmer: sure, http://dpaste.com/0ZCY4HJ
workmad3 has joined #ruby
eGGsha is now known as eGGshke
dopie has quit [Quit: This computer has gone to sleep]
dopie has joined #ruby
eGGshke is now known as eGGsha
<jfarmer> n3vtelen When you looked up information about that error message, what did you learn? What do you currently think it means?
krz has quit [Client Quit]
finisherr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Yiota has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
<jfarmer> n3vtelen I don't see anything on that page about that specific error message.
Kully3xf has quit [Ping timeout: 255 seconds]
<jfarmer> (Might be missing it.)
krz has joined #ruby
krz has quit [Client Quit]
finisherr has quit [Client Quit]
<n3vtelen> jfarmer: HTTP tries to verify the validity of the certificate
Scroff has quit [Remote host closed the connection]
Scroff has joined #ruby
<jfarmer> https://www.google.com/search?q=ruby+OpenSSL::SSL::SSLError+certificate+verify+failed
krz has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
Scroff has quit [Remote host closed the connection]
finisherr has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
diegoviola has quit [Quit: WeeChat 1.2]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanca__ has joined #ruby
<jfarmer> The first thing that happens to establish a secure connection is the client connects to the server and the server presents the client a digital certificate.
msnyon has quit [Ping timeout: 244 seconds]
<n3vtelen> jfarmer: I know that :D
<jfarmer> Ok.
j_mcnally has quit [Ping timeout: 248 seconds]
j_mcnally has joined #ruby
<jfarmer> The error means that your client can't verify the server's certificate.
juanca_ has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
zendrix has quit [Remote host closed the connection]
<jfarmer> This could be for a few reasons: (1) the certificate is actually invalid/expired/etc., (2) the certificate isn't signed by a certificate authority that your computer trusts
dellavg has quit [Ping timeout: 264 seconds]
<jfarmer> And the always-present (3) neither of those because there's something I didn't think of
zendrix has joined #ruby
Sehryn has quit [Ping timeout: 244 seconds]
hotpancakes has quit [Remote host closed the connection]
monod has quit [Remote host closed the connection]
EagleDelta has quit [Ping timeout: 264 seconds]
xxneolithicxx has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.0.1]
rodfersou has quit [Quit: leaving]
juanca__ has quit [Ping timeout: 252 seconds]
iamse7en has joined #ruby
krz has joined #ruby
zendrix has quit [Ping timeout: 256 seconds]
krz has quit [Client Quit]
<jfarmer> n3vtelen And if you look at that page of Google results I linked, the posts consistently point to (2) being the problem.
msnyon has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jfarmer> Some operating systems / Ruby installations don't come with all the root certificates you'd expect, causing OpenSSL to report that the certificate isn't valid / shouldn't be trusted.
GBrawl has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Yiota has joined #ruby
zendrix has joined #ruby
Yiota has quit [Read error: Connection reset by peer]
jcdesimp has joined #ruby
GBrawl has quit [Client Quit]
<n3vtelen> jfarmer: yes, that's ok on linux
<jfarmer> What operating system are you using?
<n3vtelen> jfarmer: windows
krz has joined #ruby
mistermocha has joined #ruby
<jfarmer> I would google "ruby windows openssl certificate verify failed"
meph has joined #ruby
<jfarmer> I'd wager there's a ton of info on the best way to correct it.
Yiota has joined #ruby
ESpiney has quit [Read error: Connection reset by peer]
krz has quit [Client Quit]
ferret_guy has joined #ruby
<jfarmer> Just don't ever set verify_mode to VERIFY_NONE, which folks often suggest.
krz has joined #ruby
astrobun_ has quit [Ping timeout: 248 seconds]
<jfarmer> The solution is to get the right certificates on your machine, not to disable all SSL certificate verification. :D
prettiestPony11 has joined #ruby
<jfarmer> "My smoke alarm won't stop going off! What do I do?" "Just remove the batteries, that'll solve it."
<prettiestPony11> trying to `rvm install 2.2.2` and getting `Version 2.2.2 is to confusing to select ruby interpreter.`
krz has quit [Client Quit]
crdpink2 has joined #ruby
hotpancakes has joined #ruby
crdpink has quit [Ping timeout: 248 seconds]
ldnunes has quit [Quit: Leaving]
krz has joined #ruby
<jfarmer> I haven't used rvm in ages, but it seems like it's saying that 2.2.2 is ambiguous
<jfarmer> There's a way to list out the known versions you can install with rvm.
<prettiestPony11> jfarmer: is rvm not widely used anymore?
<jfarmer> I'd guess something like rvm versions, rvm list, or the like, but rvm --help will say for sure.
<Senjai> prettiestPony11: chruby is recommended
vickleton has joined #ruby
<jfarmer> I don't have a sense of how widely used it is — I'm pretty sure it's still widely used — but lots of folks moved to rbenv and, more recently, to chruby
<Senjai> rvm is mostly useful for servers, and things that need gemsets, which a development system doesnt
<prettiestPony11> interesting. ok thanks!
<jfarmer> But don't worry about that right now. It's tangential to your issue.
<jfarmer> 2.2.2 is ambiguous, likely
<Senjai> I really miss function overloading
agent_white has quit [Quit: bbl]
<shevy> we have a pony!
<jfarmer> e.g., JRuby might have a version 2.2.2 and MRI might have a version 2.2.2
<jfarmer> So rvm is like, "I don't know which you mean."
slumos has left #ruby [#ruby]
<headius> our 2.2.2 means compat with and same stdlib as MRI 2.2.2
<jfarmer> It'd be more useful if the error printed out all the possible matches and included example commands to install them.
<headius> our = jruby
<adaedra> shevy: you can't call people ponies like that, it's mean
<headius> we have a separate version number for jruby itself
<postmodern> Senjai, you do not need a ruby manager on the server, use brightbox's packages instead: https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng
<shevy> adaedra hey, you even showed french ponies not long ago
jfarmer has quit []
<adaedra> those were real ponies tho
jenrzzz has joined #ruby
<Senjai> postmodern: what, no.
<shevy> might have been kids disguised as ponies!
<adaedra> but stop horsing around, shevy
<Senjai> postmodern: A jenkins server needs multiple rubies and gemsets
<postmodern> Senjai, yes
mistermocha has quit [Ping timeout: 255 seconds]
<postmodern> Senjai, ok in that case, install rubies into /opt/rubies/
<postmodern> Senjai, but for 99% of the time, just use brightbox's packages
<Senjai> postmodern: You're also assuming we're willing to add this PPA.
<Senjai> And that we're on ubuntu
cochise_ has joined #ruby
<postmodern> Senjai, well you said "rvm is mostly useful on the server"
<Senjai> I meant that I would only use rvm on a server
cochise has quit [Ping timeout: 246 seconds]
<Senjai> that serves multiple applications
hinbody has quit [Quit: leaving]
<postmodern> Senjai, CI is the only edge-case where you need dynamic switching on the server
crdpink2 has quit [Ping timeout: 248 seconds]
crdpink has joined #ruby
<postmodern> Senjai, for multi-app servers you can explicitly configure the ruby via passenger or .bashrc
<Senjai> And we run a jenkins server
<Senjai> postmodern: We also dont use passenger.
<Senjai> Not saying that there isnt a number of solutions. I was just making a statement of the only time I would use rvm
jayrmotta has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
icflournoy has quit [Ping timeout: 244 seconds]
<postmodern> Senjai, passenger for apps, I mean
<Senjai> We use unicorn
Jackneill has quit [Remote host closed the connection]
<postmodern> Senjai, pretty sure you can also configure the PATH in apache/nginx2 directly
<Senjai> As mentioned, there's a thousand different ways to do it
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> our way works for us
stantonnet has quit [Ping timeout: 252 seconds]
<postmodern> sure, and 99% of the time you don't need RVM on the server
<Senjai> Did I say need?
<postmodern> set PATH and `bundle install --deployment`, done
<Senjai> I said I can use rvm, and make use of the gemsets for an ideal workflow that works for me. It makes writing the init.d scripts dead simple
<Senjai> Sure
krz has quit [Quit: WeeChat 1.0.1]
<Senjai> I dont want to set the PATH for each application, I think that's silly
<Senjai> but I'm going to drop this now, as mentioned, its totally subjective
<bougyman> what's wrong with setting PATH for each app?
<bougyman> that seems quite sane.
<postmodern> also protip: try to keep all apps running on the latest stable version of their ruby, makes managing things much simpler
<bougyman> any supervisor should support it.
<Senjai> I didn't say there was something wrong with it, I said I didn't want to..
<Senjai> Please dont confuse that
<bougyman> runit, s6, daemontools, systemd, upstart
<bougyman> all allow for environment variables.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bougyman> you said it was silly.
drewo has quit [Ping timeout: 240 seconds]
<bougyman> I countered with: "It's sane"
jerius has quit [Quit: /quit]
<Senjai> Okay, sure, I will retract that. Can we move on now? :)
j_mcnally has joined #ruby
<n3vtelen> ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE' outputs:
<adaedra> I deploy my rails apps with php-fpm
ayonkhan has quit []
jhwhite has joined #ruby
<n3vtelen> "C:/Users/Justin/Projects/knap-build/var/knapsack/software/x64-windows/openssl/1.0.1l/ssl/cert.pem"
<n3vtelen> :O
<adaedra> That's a long path
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<n3vtelen> how do I change that?
atomical has quit [Ping timeout: 248 seconds]
solocshaw has quit [Ping timeout: 255 seconds]
solocsha1 has joined #ruby
jhwhite has quit [Ping timeout: 264 seconds]
mhib has quit [Remote host closed the connection]
rwilcox has quit [Ping timeout: 252 seconds]
jayrmotta has joined #ruby
solars has joined #ruby
cochise_ has quit [Read error: Connection reset by peer]
cochise has joined #ruby
bruno- has quit [Quit: Lost terminal]
gamename has quit []
symbol has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
Limix has quit [Quit: Limix]
jlast has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
fmcgeough has joined #ruby
cir0x has quit [Quit: Leaving.]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
Igorshp has joined #ruby
neohunter has joined #ruby
last_staff has quit [Quit: last_staff]
rbennacer has quit [Ping timeout: 265 seconds]
pullphinger15 has quit []
bronson has joined #ruby
iwishiwerearobot has joined #ruby
yardenbar has quit [Quit: Leaving]
<zenspider> rawr
phutchins has joined #ruby
noethics has quit [Ping timeout: 246 seconds]
bruno- has quit [Quit: Lost terminal]
bruno- has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
spider-mario has quit [Remote host closed the connection]
mjuszczak has quit []
charliesome has quit [Quit: zzz]
vickleton has quit [Ping timeout: 264 seconds]
erma has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
michael_mbp has quit [Excess Flood]
iwishiwerearobot has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
<radens> Hey, how can I get the value of an instance variable in pry?
Limix has joined #ruby
bruno- has quit [Client Quit]
jlast has quit [Remote host closed the connection]
Limix has quit [Client Quit]
<al2o3-cr> radens: instance_variable_get?
xxneolithicxx has joined #ruby
bruno- has joined #ruby
michael_mbp has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
JDiPierro has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<al2o3-cr> radens: depends in what context
lxsameer has quit [Quit: Leaving]
<radens> params.instance_variable_get('token')
<radens> I tried that, it's not working.
axl_ has quit [Quit: axl_]
decoponyo has quit [Read error: Connection reset by peer]
<al2o3-cr> radens: params is an object right?
<radens> yeah
jlast has joined #ruby
<al2o3-cr> so, params.instance_variable_get :@token
axl_ has joined #ruby
douglasssss has joined #ruby
decoponio has joined #ruby
<radens> ah, thanks, I tried it without the @ sign
<al2o3-cr> np :)
Scroff has joined #ruby
rodfersou has joined #ruby
bruno- has quit [Client Quit]
<jhass> radens: also simply cd params
axl_ has quit [Client Quit]
<jhass> @token
drewo has joined #ruby
<al2o3-cr> or that :)
bruno- has joined #ruby
jlast has quit [Remote host closed the connection]
randiman has joined #ruby
bruno- is now known as Guest89713
finisherr has quit [Quit: finisherr]
mary5030 has quit [Remote host closed the connection]
mjuszczak has quit []
nik_-_ has joined #ruby
foureight84 has quit [Quit: Lingo: www.lingoirc.com]
<havenwood> Released Elixir.rb 0.1.0! \o/ https://github.com/havenwood/elixir.rb#readme
n3vtelen has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
RegulationD has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 244 seconds]
<havenwood> In case you were wanting the Elixir standard library in Ruby...
moredhel- has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
<radens> that's an odd desire. As opposed to making your erlang look like ruby now you're making your ruby act like erlang! Still, pretty neat.
niemcu has quit [Ping timeout: 240 seconds]
dgutierrez1287 has joined #ruby
Limix has joined #ruby
balazs has joined #ruby
sepp2k has quit [Quit: Leaving.]
nofxx has quit [Ping timeout: 248 seconds]
whippythellama has quit [Ping timeout: 246 seconds]
pfish has quit [Quit: Page closed]
sepp2k has joined #ruby
k3asd` has joined #ruby
jhack32 has joined #ruby
whippythellama has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<jhack32> Hey!
k3asd`_ has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
Guest89713 has quit [Quit: Lost terminal]
<jhass> hi
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno-_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
platzhirsch has joined #ruby
jhack32 has quit [Remote host closed the connection]
jhack32 has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
victortyau has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
bruno-_ has quit [Client Quit]
gguggi has joined #ruby
mistermocha has joined #ruby
hotpancakes has quit [Remote host closed the connection]
jhack32 has quit [Remote host closed the connection]
ledestin has joined #ruby
PaulCapestany has quit [Quit: .]
bubbys has quit [Ping timeout: 246 seconds]
bruno-_ has joined #ruby
jhack has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
PaulCapestany has joined #ruby
jhack has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
jhack has joined #ruby
mistermocha has joined #ruby
<jhack> how do i hide my hostname?
scripore has joined #ruby
_blizzy_ has joined #ruby
charliesome has joined #ruby
<havenwood> jhack: Ask for a mask in the #freenode channel.
<jhass> well, if somebody wants to find it out they will, regardless of cloak
<jhack> alright, thanks @havenwood
redteam has quit [Quit: Leaving]
arooni-mobile has quit [Ping timeout: 248 seconds]
Torrieri has quit [Quit: Be back later ...]
Axy has joined #ruby
Axy has joined #ruby
<zenspider> havenwood: 'grats. that looks neat
jhack has quit [Changing host]
jhack has joined #ruby
<havenwood> zenspider: Thanks! :D
astrobun_ has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
<jhass> jhack: make sure to enable sasl auth at least to not make your cloak completely useless
atomical has joined #ruby
i8igmac has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
<eam> no advice to use a proxy? :)
erma has quit [Quit: Leaving]
<jhass> there's still the ctcp issues anyway
_blizzy_ has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
jhack has quit [Ping timeout: 246 seconds]
astrobun_ has quit [Ping timeout: 248 seconds]
Sehryn has joined #ruby
symbol has joined #ruby
umgrosscol has quit [Quit: Quit]
noethics has joined #ruby
jhwhite has joined #ruby
kirun has quit [Quit: Client exiting]
jxpx777 has quit [Quit: Leaving...]
randiman has quit [Quit: (null)]
<iamse7en> anyone who is good with active record querying. I'm getting a PG::UndefinedTable and I can't figure out why. much appreciated! https://gist.github.com/austinarchibald/12ca85819db3bd6dc87f#file-games-rake-L32
chouhoulis has quit [Ping timeout: 244 seconds]
quazimodo has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
bronson has joined #ruby
baweaver has joined #ruby
<jhass> iamse7en: game_id: some_hash doesn't make a whole lot of sense
danzilio has quit [Quit: Baiii!]
mistermocha has quit [Read error: Connection reset by peer]
<bricker> iamse7en: does your Game table really have a "game_id" column?
<jhass> maybe you meant game_id: game_data[:preview] ?
<iamse7en> the task pulls in :preview. i'm changing the name to :game_id for my table
<iamse7en> like I'm doing with away_score and home_score
<jhass> iamse7en: don't. actually read what I wrote
<jhass> oh, nvm, read that as you're going to rename your table
<jhass> but it still applies
<jhass> you're passing a hash, so AR treats game_id as a table/association
<jhass> and that doesn't exist
jayrmotta has quit [Quit: Leaving]
hotpancakes has joined #ruby
unreal has quit [Ping timeout: 264 seconds]
<iamse7en> ok, so I want to update each game by finding the game_id, how would I do that?
Soda has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
<iamse7en> am i on the right track with find_by(game_id at least?
Sehryn has quit [Ping timeout: 252 seconds]
<iamse7en> it's a unique id for each game, so i want to access that, then update the values in that task
eggoez has quit [Ping timeout: 240 seconds]
<jhass> so it's repeating myself five times time? fine.
charliesome has quit [Ping timeout: 276 seconds]
<iamse7en> sorry, i'm pretty new
<jhass> you're passing a hash with Game.find_by(game_id: game_data)
<jhass> you're passing a hash with Game.find_by(game_id: game_data)
<jhass> you're passing a hash with Game.find_by(game_id: game_data)
<jhass> you're passing a hash with Game.find_by(game_id: game_data)
<jhass> is that enough?
<yorickpeterse> wut
<demophoon> wat
<yorickpeterse> jhass: I think writing the message once would've been enough
<jhass> yorickpeterse: if you read back I already wrote it two times before and that wasn't
freerobby has quit [Quit: Leaving.]
<iamse7en> you're saying what i'm doing wrong. i was asking what i need to do right
<yorickpeterse> jhass: don't lose your shit with newbies
jhwhite has quit [Ping timeout: 250 seconds]
<iamse7en> sorry, i'm very new to this world of programming
<yorickpeterse> it's a free ticket for them to never come back
<Senjai> jhass: ^ please, calm down :(
<jhass> 00:36 <jhass> maybe you meant game_id: game_data[:preview] ?
<yorickpeterse> Either calm the fuck down or simply stop replying
hotpancakes has quit [Ping timeout: 252 seconds]
renderful has joined #ruby
<iamse7en> jhass: thanks for your help. that worked
<zenspider> heh
<iamse7en> apologize for missing it. all the best!
eggoez has joined #ruby
hornairs has joined #ruby
Rickmasta has joined #ruby
davedev__ has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
<jhass> ah and crossposter too
werelivinginthef has quit [Remote host closed the connection]
davedev24_ has joined #ruby
<baweaver> Speaking of crosspost, I'll only mention it once in here, but in #ruby-offtopic I'm debating on writing a book
<baweaver> publishing free through leanpub, but more of getting what people are interested in. Probably going to cover FP
Torrieri has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
renderful has quit [Ping timeout: 248 seconds]
Igorshp has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
Igorshp has joined #ruby
rehat has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 246 seconds]
iateadonut has quit [Quit: Leaving.]
mistermocha has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
rodfersou has quit [Ping timeout: 244 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Narzew has joined #ruby
Igorshp_ has joined #ruby
x1337807x has joined #ruby
Igorshp has quit [Read error: No route to host]
symbol has quit [Ping timeout: 246 seconds]
icebourg has joined #ruby
swgillespie has joined #ruby
quimrstorres has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
nik_-_ has quit [Quit: nik_-_]
CatMartyn has quit [Quit: Textual IRC Client: www.textualapp.com]
x1337807x has joined #ruby
J4D has joined #ruby
wldcordeiro_ has quit [Ping timeout: 240 seconds]
quimrstorres has quit [Ping timeout: 256 seconds]
wldcordeiro has quit [Ping timeout: 276 seconds]
gix has quit [Ping timeout: 240 seconds]
Narzew has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sphex_> hey. is there an easy way to get the amount of memory allocated for a given object?
sphex_ is now known as sphex
RegulationD has joined #ruby
momomomomo has quit [Quit: momomomomo]
hoofed has joined #ruby
<zenspider> sphex: why?
<yorickpeterse> sphex: you can use the ObjectSpace module
<yorickpeterse> e.g.
<sphex> zenspider: just to get an general idea
<yorickpeterse> >> require 'objspace'; ObjectSpace.memsize_of('hello')
<ruboto> yorickpeterse # => 20 (https://eval.in/394565)
<yorickpeterse> not sure how accurate it is though
<sphex> oh ok. gonna play with it a little. thanks!
<sphex> 20 seems pretty low...
tno has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has joined #ruby
wldcordeiro has joined #ruby
<yorickpeterse> 20 bytes for a 5 byte string isn't really that bad
Yiota has joined #ruby
snapfractalpop has joined #ruby
<yorickpeterse> it's a struct + the underlying char + some metadata IIRC
balazs has joined #ruby
<snapfractalpop> can someone remind me of the name of a file in place
RegulationD has quit [Ping timeout: 248 seconds]
<sphex> yorickpeterse: hrm. that's strange I keep getting 0 out of memsize_of.
<snapfractalpop> like.. the start and end of the file are arbitrary, and it's used to put SQL
bruno-_ has quit [Ping timeout: 264 seconds]
<zenspider> >> ObjectSpace.memsize_of(Object.new)
<zenspider> => 40
<zenspider> >> ObjectSpace.memsize_of("hello")
<ruboto> zenspider # => undefined method `memsize_of' for ObjectSpace:Module (NoMethodError) ...check link for more (https://eval.in/394566)
<zenspider> => 40
<ruboto> zenspider # => undefined method `memsize_of' for ObjectSpace:Module (NoMethodError) ...check link for more (https://eval.in/394568)
<zenspider> hah
<yorickpeterse> needs a require
FernandoBasso has quit [Quit: WeeChat 1.2]
<zenspider> small strings get embedded inside the object's struct
<yorickpeterse> snapfractalpop: your question is confusing
<snapfractalpop> yorickpeterse: I know.. I don't know how to word it
<yorickpeterse> what does it do?
<sphex> it's a riddle!
<snapfractalpop> it's like.. suppose you have SQL, that would be a string, but you put it down as a file, right within your code
<zenspider> hrm
<zenspider> ObjectSpace.memsize_of("hello, this is a kinda sorta longer string. damn... how much space can this possibly take? fuck you buddy")
<zenspider> => 40
<zenspider> perhaps it isn't the most accurate function
hahuang65 has joined #ruby
hotpancakes has joined #ruby
<yorickpeterse> snapfractalpop: you mean as a comment?
<yorickpeterse> zenspider: yeah the rdoc mentions the "return value is incomplete"
<yorickpeterse> whatever that means
devdazed has joined #ruby
roolo has quit [Remote host closed the connection]
<snapfractalpop> yorickpeterse: no.. it becomes a string, with newline literals
sharpmachine has quit [Remote host closed the connection]
<yorickpeterse> eh, you mean just a string literal?
<snapfractalpop> the start and end tags have to match
<snapfractalpop> I guess?
<zenspider> heredoc
<snapfractalpop> ah!
<zenspider> <<TAG
<zenspider> blah blah
<zenspider> TAG
<yorickpeterse> hm, good one
<snapfractalpop> yes, a heredoc!
<zenspider> hate them
<snapfractalpop> I don't know why I forgot the name of it
wldcordeiro has quit [Read error: Connection reset by peer]
<yorickpeterse> well, some call them nowdoc too I believe
<yorickpeterse> or maybe that was just PHP
<snapfractalpop> I'm not a huge fan of them.. just couldn't remember the name and it was bugging me
balazs has quit [Ping timeout: 240 seconds]
<snapfractalpop> thanks for "scratching that itch
<snapfractalpop> "
<yorickpeterse> np
duncannz has quit [Remote host closed the connection]
axsuul_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
<zenspider> om nom nom... 18 oz ribeye is in the oven...
casadei has quit [Remote host closed the connection]
<Senjai> nowdocs?
<Senjai> What
<Senjai> I mean I never got why they were called heredocs in the first place
olistik has quit [Remote host closed the connection]
<yorickpeterse> because they're here
devdazed has quit [Quit: Computer has gone to sleep.]
yizr_ has joined #ruby
<yorickpeterse> ?rimshot
<Senjai> 6/10
<Senjai> I only use them for things like testing yaml parsers
<Senjai> and stuff
<baweaver> I kinda wish Ruby used Scala's triple quote
<zenspider> goes back to at least shell days. I dunno
<Senjai> Or when i need to use StringIO in lieu of some filesystem access
xxneolithicxx has joined #ruby
<baweaver> you can left brace it with pipes
<zenspider> baweaver: you mean python's triple quote?
<Senjai> I wish ruby had proper block comments
xxneolithicxx has quit [Max SendQ exceeded]
<zenspider> it does
<zenspider> they're just ugly
<Senjai> Very
<Senjai> and they have to be on the beginning of the line
<wallerdev_> theyre beautiful in their own special way
* baweaver steps away from landmine issue
<zenspider> wallerdev_: you must be its mother :P
<Senjai> I would EVENT SETTLE for c-style block comments.
ryan has joined #ruby
<Senjai> EVEN*
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
<zenspider> you can probably arrange that via cpp
<Senjai> Or coffeescript style block comments
ryan is now known as Guest46454
<Senjai> ### totally legit
<zenspider> set up cpp and we even get *cough*fake/bad*cough* macros!
Guest46454 is now known as vale_tudo
<Senjai> :(
<baweaver> L(et) O(ver) L(ambda)
casadei_ has joined #ruby
<wallerdev_> i never found the appeal of multiline comments haha
FernandoBasso has joined #ruby
<wallerdev_> i prefer // or # on every line
bruno- has joined #ruby
<Senjai> wallerdev_: It used to bother me before I knew how to vim and comment blocks that way
<zenspider> baweaver: I've been trying to take a whack at that... it's really hard to get into common lisp when you love scheme
<wallerdev_> ah yeah i guess if you're using notepad or something and have to type in each that would suck
<baweaver> Fair point
chouhoulis has joined #ruby
<baweaver> Also a dense book
<zenspider> the macros are so... gross.
<zenspider> scheme's macro system is ... hard... but so damn pretty
<baweaver> Clojure at least got that somewhat decently
Scroff has joined #ruby
<Senjai> It has been forever since I've usedd scheme
<zenspider> we're working through the entire little schemer series in our study group. just finishing the reasoned schemer. it's amazing what you can do with lambdas + hygenic macros
<baweaver> Might have tried to write a photoshop variant in scheme once when I was bored.
<baweaver> Peano / Church numerals abound
hahuang65 has quit [Ping timeout: 265 seconds]
<ferret_guy> I am using passenger with apache and when I load the page I configured it shows the directory as opposed to the ruby app
<Senjai> zenspider: Which study group is this
<Senjai> have you tried that MIT book
<zenspider> SeaRbSg == Seattle.rb Study Group
<zenspider> "that MIT book" is beyond vague
mandarinkin has quit [Quit: Leaving]
<zenspider> they have their own press, ya know...
<Radar> ferret_guy: screenshot plz
sharpmachine has joined #ruby
<baweaver> SICP is probably what
<Senjai> zenspider: I've been meaning to come down to seattle sometime for one of the ruby meetups
<Senjai> I'm not exactly far away
<baweaver> Structure and Interpretation of Computer Programs
<baweaver> if I got that right
<Senjai> baweaver: Yeah
<Senjai> that's the one
<baweaver> I'll be up there in July at least.
<baweaver> What time does that normally happen at anyways?
<Senjai> baweaver: Maybe we could coordinate ;)
* baweaver goes to meetups to find it
<baweaver> I live in the San Francisco area
<baweaver> just up there for vacation.
<baweaver> figured I'd drop by.
Scroff has quit [Ping timeout: 276 seconds]
<Senjai> I live in Victoria BC, Can
<Senjai> Literally a clipper ride away
<Radar> Literally.
<Radar> :D
<Senjai> Literally
<Senjai> :P
platzhirsch has quit [Remote host closed the connection]
phutchins has quit [Read error: Connection reset by peer]
<Senjai> You should join us Radar, I'm sure its not that far for you either /s
<Radar> Senjai: 14hrs by plane
<Senjai> ik :P, if you ask me: worth it
<Radar> TIL: Senjai is paying for my flight to Seattle
<baweaver> Heh, if I really wanted to I could sign up to give a talk for July too :D
<baweaver> Clairvoyant should have enough to it by then to be fun
<zenspider> yeah. we did SICP a few years back.
k3asd` has quit [Ping timeout: 256 seconds]
dented42 has joined #ruby
<Senjai> I still havent got through it
<Radar> Flights are only $1462.
k3asd`_ has quit [Ping timeout: 244 seconds]
<zenspider> Senjai: you should come! we've had canadian members before. miles used to show up fairly regularly
<zenspider> there's a seaplane that goes up to BC and back
<Senjai> Yeah
<Senjai> It's super fast
<zenspider> has to have incredible views of the san juans
<Senjai> could go there and back in a day ez
al2o3-cr has quit [Ping timeout: 248 seconds]
<Senjai> zenspider: I have to get my passport renewed, then i'll come down for sure
<Senjai> possibly not july, or maybe late july
<zenspider> miles is in frasier valley. it's even further (but no ferry to deal with)
<Senjai> I dont think I want to drive
bronson has joined #ruby
<zenspider> not with that horrid ferry system.
<Senjai> It is pretty bad
<baweaver> zenspider: They already have a talk for this month?
axsuul_ has quit [Ping timeout: 246 seconds]
<zenspider> tonight, yeah
<baweaver> The 28th
<Senjai> baweaver: You're going on the 28th?
<zenspider> we only do talks / foods / booze on the first tuesday of the month
<baweaver> there is still a meeting then right? Or did I get that wrong?
ohaibbq has joined #ruby
<baweaver> ah
<zenspider> julia will be speaking tonight about kubernetes (sp?)
<zenspider> we meet every tuesday
<baweaver> I get there at the last week of the month.
<zenspider> then you can have the best espresso you've ever had
<zenspider> (or beer, but I can't vouch for that)
<baweaver> There are a few snooty baristas around here that'd likely disagree :P
<zenspider> they're wrong
phutchins has joined #ruby
<zenspider> blue bottle is the closest I've seen SF get, but it's still only 90% or so
<zenspider> there was a teeny stand near github that was good... still not as good
<zenspider> but really, in SF they seem to focus on the "snooty" part, and not the coffee part
<baweaver> I'm down by Southpark
<zenspider> they've got that down pat
<baweaver> sounds par for course.
<Senjai> I could see if I could come by on the 28th, passport permitting
al2o3-cr has joined #ruby
axsuul has joined #ruby
axsuul has quit [Excess Flood]
<zenspider> southpark was close to github iirc, so I think it is near you
<baweaver> 2nd and Harrison is where we're at.
quazimodo has joined #ruby
jhwhite has joined #ruby
<zenspider> (github may have moved since I was last in the office)
iwishiwerearobot has joined #ruby
<zenspider> (I don't track)
axsuul has joined #ruby
jesterfraud has joined #ruby
<baweaver> Right by Twilio, Atlassian, and Ubisoft
axsuul has quit [Excess Flood]
<zenspider> *shrug*
<baweaver> There are so many I lose track honestly.
iamninja has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
<zenspider> from the github office, it was .... west 1-2 blocks, then down an alley ... north?
nertzy has quit [Quit: This computer has gone to sleep]
<zenspider> who knows. may not exist anymore. it was tastyish, but not worth the wait :)
<zenspider> must check on beef...
dseitz has joined #ruby
<zenspider> man... this reverse sear is gonna take forever. :/
<zenspider> I guess its only been 20 minutes
<Senjai> mmm
momomomomo has joined #ruby
sharpmachine has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
iwishiwerearobot has quit [Ping timeout: 252 seconds]
casadei_ has quit [Remote host closed the connection]
jhwhite has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
<ferret_guy> @Radar Image http://i.imgur.com/uliDnaA.png relevent config http://pastebin.com/yftwxRqj
<ruboto> ferret_guy, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/16dd4a908906219b4ec1
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jfarmer has joined #ruby
<ferret_guy> ruboto TIL
<Radar> ferret_guy: Your apache config is pointing to the application dir, rather than the public dir inside the application dir.
<Radar> ferret_guy: change your config + restart apache
<Radar> HEY PRESTO it's fixed
Igorshp_ has quit [Remote host closed the connection]
jeramyRR has joined #ruby
<ferret_guy> @Radar AppRppt?
<ferret_guy> @Radar AppRoot?*?
<Radar> ferret_guy: Show me the whole VirtualHost config please (in a Gist)
mistermocha has joined #ruby
<Senjai> I will also take a small sidebar and suggest nginx instead
<zenspider> baweaver: if you have good coffee suggestions for SF, I'd love them. I always feel looked down upon (and yet, still get worse coffee) when I try to get coffee down there
* Senjai runs away
sharpmachine has joined #ruby
<baweaver> Four Barrel tends to be decent, and Small Foods is fairly nice.
<Radar> ferret_guy: https://gist.github.com/markomo/9f8fc20aabe38f5d476a#file-gistfile1-txt-L9 should be home/mark/dashboard/public
<shevy> cool
<shevy> we now have a ferret and a beaver
<jesterfraud> and a jester
<Radar> and a spider
mistermocha has quit [Read error: Connection reset by peer]
<ferret_guy> @Radar :/ no go
<Radar> ferret_guy: What happens now?
<shevy> well zenspider that's scary... I read the intro part... lemme find it ...
<Radar> ferret_guy: Did you restart your apache server?
<ferret_guy> @Radar Yep, Same thing
scripore has quit [Quit: This computer has gone to sleep]
<shevy> "...they can afford to move so fucking slow, man, they'll wait years and years. Give you a whole life, just so you'll have more to lose when they come and take it away. Patient like a spider. Zen spiders."
mistermocha has joined #ruby
<shevy> it scared me sufficiently much so that I instantly stopped to read right there!
<Radar> ferret_guy: oh rly
<Radar> ferret_guy: Still showing a directory listing of app? Not public?
hahuang65 has joined #ruby
devdazed has joined #ruby
<ferret_guy> Radar: hmm good point let me clear my cache
iamse7en has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> shevy: heh
jhack has joined #ruby
rcvalle has quit [Quit: rcvalle]
nofxx has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<jhack> Hey is anyone doing or has experience with software dev Bootcamps?
<zenspider> 28 more degrees... huge jump in just 10 minutes.
<Senjai> jhack: Many of them are not fantastic
<Senjai> And cost quite a bit of money
<ferret_guy> @Radar very odd I updated my gist to be current and it still shows the root directory https://gist.github.com/markomo/9f8fc20aabe38f5d476a
<Senjai> jhack: Not fantastic as measured from people we get applying from them
nateberkopec has quit [Quit: Leaving...]
<zenspider> jhack: some. just ask your q's
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yizr_ has quit [Ping timeout: 246 seconds]
<Radar> ferret_guy: I have no idea then.
<Radar> ferret_guy: It all checks out to me.
<ferret_guy> @Radar stopped reloaded to verifyd it was stopped started and still at the same directory
<jhack> I've been planning on applying to flatiron
<zenspider> ferret_guy: perms?
<jhack> Don't know how to determine if I'm ready
<zenspider> or... verify you're not caching the old result?
<jhack> And I wanna get some more reviews on dev bootcamp in nyc
<ferret_guy> @zenspide all 777 for good mesure
prettiestPony11 has joined #ruby
<zenspider> that might not be allowed.
<zenspider> turn off write
yfeldblum has joined #ruby
<zenspider> depends on what you're trying to do... apache is a pita with this shit
<zenspider> "it's wrong" "what's wrong?" "it"
<zenspider> always feels like that
<baweaver> s/with this shit// - ftfy
<zenspider> s/is a/is especially a/
<ferret_guy> @zenspider the access logs are showing the files are allowed, and obviously i can browse them
<zenspider> kk. ignore me then
nerium has joined #ruby
scripore has joined #ruby
<nerium> Is there any lib for downloading a partial file using Ruby?
<ferret_guy> the passenger IRC irc dead :/ gotta wait at least a couple hours for help
<Senjai> ferret_guy: I know this isn't a solution to your issue, have you considered using nginx instead?
<Senjai> If you have the flexibility to do so
<ferret_guy> @Senjai kinda locked in
Sehryn has joined #ruby
<Senjai> That's mega unfortunate
<ferret_guy> yep :(
<bricker> ferret_guy: what's the problemz
<zenspider> jhack: only you can say whether you're ready.
<ferret_guy> I am using passenger with apache and when I load the page I configured it shows the directory as opposed to the ruby app
<jhack> @zen
<zenspider> if you're willing to go nose down and really work for it, you can get a lot of value out of the structure that a bootcamp can provide. if not... well... don't waste your money until you are ready
<ferret_guy> @bricker Image http://i.imgur.com/uliDnaA.png relevent config http://pastebin.com/yftwxRqj
<ruboto> ferret_guy, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/cd6fe64be9e387d0983d
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.