apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<AntelopeSalad> just go with 2.1.2
<DreamingRainne> Specifically with doing Gtk apps in mind, I might add. Before, I had some Ruby/Gtk package, but apparently later ones (I tried 1.9 at some point) do that with Gems?
Solnse has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
WormDrink has quit [Ping timeout: 255 seconds]
kldskp has joined #ruby
iamcalledrob has joined #ruby
axl_ has joined #ruby
hekin has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
fgo has joined #ruby
kldskp has quit [Ping timeout: 245 seconds]
<DreamingRainne> Huh, apt-got 'ruby2.0' and `ruby --version` says 1.9.3p484. Go figure.
* DreamingRainne shrugs and goes with it.
sepp2k1 has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
iamcalledrob has quit [Ping timeout: 250 seconds]
sepp2k has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
alexju has joined #ruby
tjr9898 has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
<Radar> DreamingRainne: pretty much the sole reason why my blog post about installing on ubuntu says to not use apt-get for anything ruby related
stytown has quit [Quit: stytown]
<DreamingRainne> Link?
Kricir has joined #ruby
<Radar> When my internet loads :)
x1337807x has quit [Ping timeout: 255 seconds]
WormDrink has joined #ruby
zerosNones has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
ddv has joined #ruby
oo_ has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
jtdowney has quit []
tkuchiki has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<godd2> Is it possible to create your own method which uses the same sort of syntactic sugar that + does?
<godd2> That is, without having to use the dot
zz_karupa is now known as karupa
<zenspider> godd2: an arbitrary symbol? no
axsuul has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
<DreamingRainne> You can define your own + itself, though, if that's what you mean.
<zenspider> or the other usual binary operators. and a couple unary ones
<zenspider> but you can't define say... *** to be something.
<zenspider> if you want that, go code in racket/scheme/lisp
<godd2> I'd like to use =^ as the operator to model a different programming language, but I don't want to do x.=^ y
<zenspider> well, and you couldn't use it with dot anyways
<zenspider> you'd have to use send
<DreamingRainne> You pretty much can't make a method named '=^' anyway, without quoting it each time or something.
<DreamingRainne> And that.
mspah_ has quit [Ping timeout: 244 seconds]
<godd2> So my options are, use a normal method name and use the dot, OR get the source of Ruby and modify the parser and some other stuff and recompile it
<benzrf> in haskell you can make (=^)
<benzrf> =D
<DreamingRainne> Use a normal method name, or use the ^ operator if you're not already using it.
<zenspider> godd2: good fucking luck with that. the parser is ... special
mikesplain has joined #ruby
<zenspider> you certainly can... there's a couple talks on confreaks about it
<DreamingRainne> 0x3FFFFFFFFFFFFFFF.class >> Fixnum. Yay 64-bit. Hehe.
lw has quit [Quit: s]
overmacht has joined #ruby
jayunit100 has quit [Quit: jayunit100]
oo_ has quit [Remote host closed the connection]
SilkFox has joined #ruby
mikesplain has quit [Ping timeout: 244 seconds]
lw has joined #ruby
alexju has quit [Remote host closed the connection]
TDJACR has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
justinv has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Sauvin has joined #ruby
TDJACR has joined #ruby
benzrf is now known as benzrf|offline
lw has quit [Ping timeout: 260 seconds]
seamon has joined #ruby
justinv has quit [Remote host closed the connection]
nfk has quit [Ping timeout: 240 seconds]
seamon has quit [Client Quit]
beef-wellington has joined #ruby
InfraRuby has joined #ruby
oo_ has joined #ruby
jdj_dk has joined #ruby
echooo has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
Gooder has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
* pontiki sells godd2 a case of razors
<godd2> Ha, don't worry, I know when certain things are downright insane
hakunin has joined #ruby
peret has quit [Remote host closed the connection]
sevenseacat has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
mgorbach has quit [Quit: ZNC - http://znc.in]
mgorbach has joined #ruby
SouL_ has quit [Remote host closed the connection]
bogeyd6 has joined #ruby
acumiskey has joined #ruby
iteratorP has joined #ruby
kldskp has joined #ruby
iamcalledrob has joined #ruby
acumiskey has quit [Client Quit]
fgo has joined #ruby
jdj_dk has quit [Ping timeout: 264 seconds]
mattalexx has joined #ruby
fgo has quit [Read error: No route to host]
fgo has joined #ruby
ixti has quit [Quit: WeeChat 0.4.3]
<mattalexx> I have a script that runs this: `gem install dottie`; require 'dottie'
kldskp has quit [Ping timeout: 250 seconds]
<mattalexx> But I'm getting "cannot load such file -- dottie"
<mattalexx> Why?
banjara has quit [Quit: Leaving.]
sailias has joined #ruby
<sevenseacat> magic.
kireevco has joined #ruby
<mattalexx> Obviously when I call "require 'dottie'" when the gem is installed, it works
<mattalexx> Is there some sort of cache I need to flush or something?
<godd2> mattalexx because your load path wasn't changed since the last time
Kricir has quit [Remote host closed the connection]
<mattalexx> The last time what happened?
<godd2> once you ran `gem install dottie` you're still in a script running that doesn't know what dottie is
<mattalexx> Is there a way to reload paths?
x1337807x has joined #ruby
<mattalexx> Or, more specifically, how would you fix this problem
fgo has quit [Ping timeout: 245 seconds]
<mattalexx> (other than by usig Bundler :-)
<godd2> well the general way to fix it is to install your gems before you run yoru scripts
arya_ has joined #ruby
kireevco has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
Spami has joined #ruby
<godd2> and yes, use a Gemfile to do a bundle install so that when you jump from environment to environment, you can be more certain that the gems you need will be installed
<mattalexx> It's an install script. I guess I could automatically restart the install script if a missing gem is installed, but that's pretty dirty
<zenspider> mattalexx: 1) just because the gem is named x doesn't mean it has x.rb in it.
<godd2> Let me ask this, why do you have this script installing a gem?
<zenspider> 2) yes, you need to reset rubygems
<godd2> There are other, better ways to deal with dependencies
<zenspider> 3) what godd2 just asked
benzrf|offline is now known as benzrf
banjara has joined #ruby
Deele has quit [Ping timeout: 250 seconds]
<godd2> If you're writing a gem that has dependencies, add them to your gemspec
banjara has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara1 has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
<zenspider> you really don't want it reinstalling everytime the script is run. that's just dumb
benzrf is now known as benzrf|offline
<mattalexx> Found the solution on SO: `gem install dottie`; Gem.clear_paths; require 'dottie'
<zenspider> even if you do it via a LoadError... still dumb. declaring your dependencies is a better cleaner way to go
<zenspider> that's not necessarily enough
<zenspider> looking at isolate... it's Gem.loaded_specs.clear; Gem.clear_paths; Gem::Specification.reset
<mattalexx> Thanks for your help
<godd2> Well, you found the solution to a problem you probably shouldn't be having, but I've given my input
<zenspider> yup. me too
<zenspider> I need a better term than "test-order dependency bugs"
nateberkopec has joined #ruby
<zenspider> halp. I'm working on my readme and it's painful
<godd2> link it
<zenspider> it won't help, because there's no readme content yet: https://github.com/seattlerb/minitest-bisect
<godd2> What does this do?
<zenspider> helps you hunt down and isolate test-order dependency bugs
<godd2> What is a test-order dependency bug?
banjara1 has quit [Ping timeout: 245 seconds]
<zenspider> where running test_a then test_b pass, but running test_b then test_a fails
<zenspider> one depends on the other, based on the order
MatthewsFace has joined #ruby
Lexun has quit [Ping timeout: 244 seconds]
tjr9898 has joined #ruby
Lexun has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
<godd2> I sent you a pull request
<godd2> feel free to delete it if you don't like it haha
<godd2> The only one I don't like is the third sentence. It's a bit awkward.
arya__ has joined #ruby
tjr9898 has quit [Ping timeout: 250 seconds]
arya_ has quit [Ping timeout: 240 seconds]
<zenspider> thanks, but it doesn't really describe what it does. all I wanted was a better term than "test-order dependency bug"
<godd2> test inter-coupling?
robustus has quit [Ping timeout: 250 seconds]
phutchins has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<robscormack> testing intercourse
Jameser has joined #ruby
<zenspider> haha
<robscormack> ok that was a bad idea.
<godd2> "When in the intercourse of computer events, it becomes necessary..."
jdj_dk has joined #ruby
mspah_ has joined #ruby
robustus has joined #ruby
mikesplain has joined #ruby
kenneth has joined #ruby
<DreamingRainne> "Order-dependent testing bugs" maybe.
PanPan has joined #ruby
<DreamingRainne> Or sequence-dependent or something, but fancy words kinda get in the way of quick understanding.
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> yeah. I'm currently trying out "random test failures" in the hopes that it's clear enough
<DreamingRainne> The German language probably has one big word for the concept. Hehe.
<godd2> "Tests that don't work when you move them around"
<DreamingRainne> Well, "random test failures" sounds like "tests that fail randomly", which I'd take to mean, either for unknown reasons, or worse, non-deterministically.
oo_ has quit [Remote host closed the connection]
<zenspider> DreamingRainne: that's what ppl are often dealing with.
mikesplain has quit [Ping timeout: 250 seconds]
<zenspider> minitest randomizes the tests before it runs them. If you write bad tests where one depends on the side effects of another, and that test runs AFTER the bad test, then it fails
Kricir has joined #ruby
<DreamingRainne> Probably a simpler way is to test them in normal order, then in reverse order. That should catch most order-dependencies.
<zenspider> this tool will help figure out what the minimum culprits are
lidaaa has quit [Ping timeout: 264 seconds]
nymous has quit [Quit: RAGING AXE! RAGING AXE!]
<DreamingRainne> Unless "A then B" works, and "C then B" works, but B-first doesn't.
<zenspider> DreamingRainne: and if you have 200 tests in that run?
centipedefarmer has quit [Remote host closed the connection]
<DreamingRainne> Then you'll get a near-certain answer after 400, rather than a coin-flip after 200.
<DreamingRainne> After all, if you shuffle then, half the time, A will be run before B anyway.
<zenspider> you'll get a binary answer of "yes, you have a problem"
iamcalledrob has quit [Quit: Computer has gone to sleep.]
<zenspider> this will tell you what the problem is, specifically
iamcalledrob has joined #ruby
oo_ has joined #ruby
<ericmathison> just branstorming. how about conjoined test failure
<ericmathison> or coupled test failure
<zenspider> coupled isn't bad
<DreamingRainne> That sounds kinda like the opposite: if you run both tests ("coupled"), you get a failure, but they work separately.
<DreamingRainne> Order-dependent success / Non-order-invariant success.
<zenspider> not necessarily
iamcalledrob has quit [Ping timeout: 255 seconds]
<DreamingRainne> Or "side-effect-dependent" maybe, to get at the underlying cause.
benzrf|offline is now known as benzrf
tokik has joined #ruby
banjara has joined #ruby
brianherman has quit [Quit: Leaving]
GriffinHeart has joined #ruby
chipotle has quit [Quit: cya]
jdj_dk has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 260 seconds]
nasj has joined #ruby
SilkFox has quit [Quit: WeeChat 0.4.3]
banjara has quit [Ping timeout: 245 seconds]
SilkFox has joined #ruby
silentpost has quit [Quit: silentpost]
axl_ has quit [Quit: axl_]
axsuul has quit [Read error: Connection reset by peer]
axsuul_ has joined #ruby
OffTheRails has joined #ruby
nasj has quit [Ping timeout: 256 seconds]
Fezzler has joined #ruby
MatthewsFace has joined #ruby
silentpost has joined #ruby
goshdarnyou has joined #ruby
raparkhurst has joined #ruby
kireevco has joined #ruby
Arkaniad has joined #ruby
bmurt has joined #ruby
InfraRuby has left #ruby [#ruby]
kldskp has joined #ruby
chipotle has joined #ruby
fgo has joined #ruby
bogeyd6 has quit [Quit: Leaving]
Shidash has joined #ruby
nanoyak has joined #ruby
bogeyd6 has joined #ruby
Panicky has quit [Read error: Connection reset by peer]
kldskp has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
justinv has joined #ruby
jdj_dk has joined #ruby
postmodern has joined #ruby
rushed has joined #ruby
kireevco has quit [Quit: Leaving.]
x1337807x has quit [Ping timeout: 255 seconds]
jtdowney has joined #ruby
<pontiki> "intransitive"
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<pontiki> randomizing test order is an attempt to keep your code base and test base from entraining on each other
Lexun has quit [Ping timeout: 260 seconds]
<pontiki> it isn't a complete answer to that, but not too awful a practice
justinv has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
<robscormack> heh, if you run two tests separately and those are working but together those fail, shouldn't that be motivation to write a joint test so that the case gets fixed?
arya__ has quit [Ping timeout: 255 seconds]
<pontiki> it's certainly a strong motivation to see what's going on
bmurt has quit []
<pontiki> it may not be a code defect; there's several times i've found it's the tests themselves, which is maddening
<pontiki> but also it's sometimes something everyone thought was unrelated
oo_ has quit [Remote host closed the connection]
tjr9898 has joined #ruby
Xiti` has joined #ruby
bmurt_ has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
axsuul_ has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
eka has joined #ruby
Xiti has quit [Ping timeout: 255 seconds]
lyuzashi has joined #ruby
hfp has quit [Ping timeout: 260 seconds]
tjr9898 has quit [Ping timeout: 255 seconds]
TorpedoSkyline has joined #ruby
redondo has joined #ruby
tokik has quit [Quit: leaving]
hfp has joined #ruby
tokik has joined #ruby
Wolland has joined #ruby
voodoofish has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
dpbus has joined #ruby
voodoofish has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
SomeGuy123123132 has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
mikesplain has joined #ruby
Kricir has quit [Remote host closed the connection]
dpbus has left #ruby [#ruby]
nateberkopec has quit [Quit: Leaving...]
arup_r has joined #ruby
Wolland has quit [Ping timeout: 264 seconds]
mikesplain has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
oo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Xiti has joined #ruby
iamcalledrob has joined #ruby
Wolland has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
oo_ has joined #ruby
Avahey_ has joined #ruby
Wolland_ has joined #ruby
iamcalledrob has quit [Ping timeout: 245 seconds]
safier has joined #ruby
<safier> hello
<safier> shevy: are you here?
oo_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 255 seconds]
sailias has quit [Ping timeout: 264 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
Lexun has joined #ruby
dpbus has joined #ruby
<safier> shevy:
<safier> what are you doing?
GriffinHeart has quit [Remote host closed the connection]
oo_ has joined #ruby
zcreative has quit [Quit: Lingo - http://www.lingoirc.com]
nasj has joined #ruby
dpbus has quit [Quit: Lingo - http://www.lingoirc.com]
djbkd has quit [Quit: My people need me...]
arup_r has quit [Ping timeout: 250 seconds]
InfraRuby has joined #ruby
krz has joined #ruby
Kricir has joined #ruby
nasj has quit [Ping timeout: 250 seconds]
tylerkern has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
Wolland_ has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
MartinCleaver has quit [Read error: Connection reset by peer]
stytown has joined #ruby
magic has quit [Read error: Connection reset by peer]
jdj_dk_ has joined #ruby
mars777 has joined #ruby
jdj_dk_ has quit [Read error: Connection reset by peer]
goodenough has joined #ruby
djbkd has joined #ruby
jdj_dk_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Lexun has quit [Quit: Manjaro-KDE user leaving!]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinv has joined #ruby
nairys has quit [Quit: nairys]
saarinen has joined #ruby
fgo has joined #ruby
Kricir has quit [Remote host closed the connection]
kldskp has joined #ruby
SilkFox has quit [Ping timeout: 255 seconds]
beef-wellington has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
SecretAg1nt has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
justinv has quit [Remote host closed the connection]
crazed has quit [Ping timeout: 272 seconds]
crazed has joined #ruby
SecretAgent has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
kldskp has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
braincrash has joined #ruby
mary5030 has joined #ruby
iamcalledrob has joined #ruby
Wolland_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
iamayam has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
x1337807x has joined #ruby
magic has joined #ruby
magic has quit [Read error: Connection reset by peer]
iamayam has joined #ruby
peeja has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
yeltzooo has quit [Ping timeout: 250 seconds]
maxmanders has quit [Ping timeout: 250 seconds]
Wolland has quit [Ping timeout: 250 seconds]
rushed has quit [Quit: rushed]
zerosNones has quit [Ping timeout: 244 seconds]
bmurt_ has quit []
axsuul has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
ArchBeOS has quit [Ping timeout: 250 seconds]
Wolland_ has quit [Client Quit]
maxmanders has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
Fezzler has quit [Quit: Leaving]
yeltzooo has joined #ruby
jdj_dk_ has quit [Ping timeout: 245 seconds]
peeja has joined #ruby
Wolland has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
haroldwu has quit [Ping timeout: 260 seconds]
x1337807x has quit [Ping timeout: 245 seconds]
arup_r1 has joined #ruby
djbkd has joined #ruby
haroldwu has joined #ruby
iamcalledrob has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
iteratorP has quit [Read error: Connection reset by peer]
iteratorP has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
arup_r has quit [Ping timeout: 255 seconds]
newUser1234 has quit [Remote host closed the connection]
saarinen has joined #ruby
<mars777> is it ok to use instance variables in Ruby hash to reference objects of another hash like this? The first hash would be in something like, @users = Users.new({ id: 1, name: ‘Jake’}) { id: @users[:id], name: @users[:name] }
bmurt has quit [Client Quit]
tuxninja has quit [Remote host closed the connection]
magic has joined #ruby
tjr9898 has joined #ruby
Nilium has joined #ruby
magic has quit [Read error: Connection reset by peer]
SilkFox has joined #ruby
magic- has joined #ruby
magic- is now known as magic
beef-wellington has joined #ruby
Wolland_ has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
tjr9898 has quit [Ping timeout: 244 seconds]
jtdowney has quit []
koderok has joined #ruby
Photism has joined #ruby
saarinen has quit [Quit: saarinen]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
magic has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
saarinen has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
Channel6 has joined #ruby
banjara has joined #ruby
InfraRuby has left #ruby [#ruby]
mikesplain has quit [Ping timeout: 245 seconds]
niklasb has quit [Quit: WeeChat 0.4.3]
niklasb has joined #ruby
tuxninja has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
voodoofish has quit [Read error: Connection timed out]
patrick99e99 has joined #ruby
magic has joined #ruby
magic has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
voodoofish has joined #ruby
tjr9898 has joined #ruby
saarinen has quit [Quit: saarinen]
patrick99e99 has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cya]
magic has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
magic has quit [Read error: Connection reset by peer]
nasj has joined #ruby
magic has joined #ruby
zz_anildigital is now known as anildigital
rushed has joined #ruby
anildigital is now known as zz_anildigital
silentpost has left #ruby [#ruby]
postmodern has quit [Quit: Leaving]
Asher has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_anildigital is now known as anildigital
chrishough has quit [Quit: chrishough]
nasj has quit [Ping timeout: 264 seconds]
jdj_dk has quit [Ping timeout: 250 seconds]
jtdowney has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
tkuchiki_ has joined #ruby
p0sixpscl has joined #ruby
duncannz has joined #ruby
Guest65447 has joined #ruby
microdex has joined #ruby
magic has quit [Read error: Connection reset by peer]
<microdex> version = 1 require( "algorithm"+ version +".rb" )
<microdex> how to know which class is loaded in the file ?
<sevenseacat> you're probably going to get the same answer here.
tkuchiki has quit [Ping timeout: 245 seconds]
kenneth has joined #ruby
rushed has quit [Quit: rushed]
anildigital is now known as zz_anildigital
mary5030 has joined #ruby
axl_ has quit [Quit: axl_]
fgo has joined #ruby
agjacome has joined #ruby
whyy has quit [Read error: Connection reset by peer]
kldskp has joined #ruby
magic has joined #ruby
whyy has joined #ruby
magic has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
magic has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
jtdowney has quit []
kldskp has quit [Ping timeout: 250 seconds]
Asher has quit [Quit: Leaving.]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<microdex> haha , thanks sevenseacat
<microdex> just trying
arup_r1 has quit [Quit: Leaving.]
axl_ has joined #ruby
x1337807x has joined #ruby
zkay11 has quit [Quit: Leaving.]
elcontrastador has joined #ruby
tylerkern has joined #ruby
chipotle has joined #ruby
axl_ has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
Channel6 has quit [Quit: Leaving]
LexicalScope has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
rushed has joined #ruby
x1337807x has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
chipotle has joined #ruby
anaeem1 has joined #ruby
chipotle has quit [Client Quit]
magic has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
Asher has joined #ruby
chipotle has quit [Client Quit]
agjacome has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
saarinen has joined #ruby
jdj_dk has joined #ruby
chipotle has quit [Client Quit]
nairys has joined #ruby
chipotle has joined #ruby
nairys has quit [Client Quit]
bluOxigen has joined #ruby
ta_ has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
jtdowney has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jtdowney has quit [Client Quit]
magic has joined #ruby
magic has quit [Read error: Connection reset by peer]
rushed has quit [Quit: rushed]
microdex2 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
razum2um has joined #ruby
tjr9898 has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
tkuchiki_ has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
tkuchiki has joined #ruby
microdex has quit [Ping timeout: 244 seconds]
GriffinHeart has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
magic has joined #ruby
microdex2 has quit [Remote host closed the connection]
mikesplain has joined #ruby
oo_ has quit [Remote host closed the connection]
NinoScript has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwb3 has quit [Quit: leaving]
zz_anildigital is now known as anildigital
lidaaa has joined #ruby
hakunin has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
magic has quit [Read error: Connection reset by peer]
mikesplain has quit [Ping timeout: 244 seconds]
Spami has quit [Client Quit]
ascarter has joined #ruby
jdj_dk has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
chipotle has joined #ruby
chipotle has quit [Client Quit]
p0sixpscl has quit [Ping timeout: 255 seconds]
root_empire has joined #ruby
anildigital is now known as zz_anildigital
root_empire has quit [Read error: Connection reset by peer]
tjr9898_ has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
tjr9898_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
kriskropd has joined #ruby
tjr9898 has quit [Ping timeout: 244 seconds]
axl_ has quit [Client Quit]
zz_anildigital is now known as anildigital
abuzze_ has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
magic has joined #ruby
Guest89567 has quit [Read error: Connection reset by peer]
EvanR has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
EvanR is now known as Guest48339
Deele has joined #ruby
axl_ has joined #ruby
arya_ has joined #ruby
yacks has joined #ruby
oo_ has joined #ruby
timonv_ has joined #ruby
fgo has joined #ruby
mallu has joined #ruby
jdj_dk has joined #ruby
hakunin has joined #ruby
kldskp has joined #ruby
rushed has joined #ruby
magic has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 256 seconds]
arya__ has joined #ruby
kriskropd has quit [Quit: leaving]
arya_ has quit [Ping timeout: 245 seconds]
<benzrf> micah`_: don't d that
<benzrf> wwer
<benzrf> microdex
<benzrf> oh theyre gone
kldskp has quit [Ping timeout: 250 seconds]
kriskropd has joined #ruby
bMalum has quit [Quit: Computer has gone to sleep.]
bMalum has joined #ruby
<mallu> hello, so I have written first real world script and would like you to take a look at and let me know how you would improve it ... http://pastie.org/9443519
<mallu> also let me know if I'm committing any Ruby cardinal sins :)
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Solnse has quit [Ping timeout: 256 seconds]
axl_ has quit [Quit: axl_]
kireevco has joined #ruby
bMalum has quit [Ping timeout: 245 seconds]
<LadyRainicorn> mallu: execution continues after line 12
axl_ has joined #ruby
<OffTheRails> mallu, formatting is all over the place.
<OffTheRails> mallu, is that how it displays in your editor?
acumiskey has joined #ruby
<mallu> yeah.. I have to clean up formatting
acumiskey has quit [Client Quit]
<OffTheRails> hard to give you advice while formatting is that bad
<mallu> ok.. understood
magic has joined #ruby
<robscormack> mallu: don't use CAPS with variable declarations.
phinfonet has quit [Remote host closed the connection]
<mallu> robscormack: I thought global variables needs to be capitalized. Is that not true?
phinfonet has joined #ruby
phinfonet has quit [Client Quit]
<robscormack> @globalvariableshavethisthing
<LadyRainicorn> No.
<LadyRainicorn> Those are constants.
<sevenseacat> nope.
<mallu> OffTheRails: the formatting is really bad in pastie. not that bad on my editor.
<robscormack> you mean constants? if that's true, then go.
<LadyRainicorn> @theseareinstancevariables
<OffTheRails> mallu, thought so
<LadyRainicorn> $theseareglobalvariable
<LadyRainicorn> THESE_ARE_CONSTANTS
<mallu> got it...
<OffTheRails> mallu, my first suggestion would be to wrap this in an object, extract the code into small descriptive methods
<OffTheRails> will make it much easier to read and maintain
arya__ has quit [Ping timeout: 245 seconds]
<mallu> ok
<LadyRainicorn> mallu: Follow a consistent spacing convention.
<LadyRainicorn> You may like expand.
<mallu> ok
<OffTheRails> or, at least make more use of functions, with it being a script and not a class
<robscormack> not used to read this: DATE = Time.now.strftime("%m-%d-%Y") since semantically that is a variable value, not a constant one like PURGE_AFTER
overmacht has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
<mallu> ok...
rushed has quit [Quit: rushed]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> It is a constant from Ruby's perspective.
<mallu> I will change DATE
<LadyRainicorn> I think in the context of this script it makes sense.
Wolland has joined #ruby
<robscormack> it doesn't for me but it's just a matter of opinion.
<OffTheRails> I'd personally either use a singleton or a bunch of functions
<OffTheRails> breakdown as much as possible into smaller functions
jdj_dk has quit [Ping timeout: 244 seconds]
magic has quit [Read error: Connection reset by peer]
<mallu> so a stupid question.. I was going to create a method of each task.. ie getting instance_id, volume_id etc... how would you call a variable inside of a method from outside?
<LadyRainicorn> Yes, that is a better choice
timonv_ has joined #ruby
<LadyRainicorn> Hmm?
mattalexx has quit [Quit: Page closed]
<OffTheRails> create a class -- EbsSnapshotter or something, use class instance variables (@@variable = value)
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
IceDragon has quit [Quit: Space~~~]
<mallu> oh ok..
<wasamasa> zenspider: ping
<robscormack> and manage a pid, you don't want two or more processes doing snapshots.
<OffTheRails> or use objects, where you'd instantiate the class (EbsSnapshotter.new), then use instance variables (@variable = value)
<mallu> ok
Wolland_ has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
kireevco has quit [Quit: Leaving.]
<OffTheRails> lot to clean up, but looks like it actually does something useful! you're ahead of the crowd for that
<robscormack> yeah
kireevco has joined #ruby
<robscormack> mallu: another thing, don't be afraid of sharing code with us again :)
<LadyRainicorn> You probably actually want instance variable for DATE
<mallu> not at all.. great feedback...
<mallu> thanks a lot
kireevco has quit [Client Quit]
MatthewsFace has quit [Quit: This computer has gone to sleep]
ari-_-e has quit [Ping timeout: 255 seconds]
Cache_Money has quit [Client Quit]
<OffTheRails> they have code review on stackexchange too. might be worth checking out
Cache_Money has joined #ruby
<mallu> oh really! I didn't know that
<OffTheRails> you might not get many responses, but if you do, they'll likely be quite comprehensive
whomp has quit [Ping timeout: 255 seconds]
apeiros has quit [Remote host closed the connection]
<OffTheRails> people on there have ocd about clean code, and might be compelled to rewrite it for you
<mallu> :)
apeiros has joined #ruby
wchun has joined #ruby
beneggett has joined #ruby
kyb3r_ has joined #ruby
mike24 has joined #ruby
SilkFox has quit [Ping timeout: 260 seconds]
<robscormack> ocd :c
newUser1234 has quit [Remote host closed the connection]
tjr9898_ has quit [Remote host closed the connection]
magic has joined #ruby
tjr9898 has joined #ruby
apeiros has quit [Ping timeout: 250 seconds]
e4xit has joined #ruby
tylerkern has quit [Quit: Textual IRC Client: www.textualapp.com]
mikesplain has joined #ruby
magic has quit [Read error: Connection reset by peer]
<OffTheRails> you not a fan?
oo_ has quit [Remote host closed the connection]
<robscormack> I'm having serious issues with OCD, see #rubyonrails
<OffTheRails> more appropriately: you not a fan?
Wolland has quit [Ping timeout: 245 seconds]
<robscormack> fcuk
<OffTheRails> I suffered with ocd a while back
overmacht has joined #ruby
axl_ has joined #ruby
<OffTheRails> my mum had it terribly
<OffTheRails> she would count everything
Wolland has joined #ruby
maletor has joined #ruby
mary5030 has joined #ruby
mr-foobar has joined #ruby
tjr9898 has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
oo_ has joined #ruby
axl_ has quit [Client Quit]
aganov has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
relix has joined #ruby
tagrudev has joined #ruby
davedev24_ has joined #ruby
decoponio has joined #ruby
beef-wellington has quit [Ping timeout: 260 seconds]
maletor has quit [Ping timeout: 250 seconds]
davedev2_ has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
bMalum has joined #ruby
magic has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
bronson has joined #ruby
bMalum_ has joined #ruby
magic has quit [Read error: Connection reset by peer]
ari-_-e has joined #ruby
sputnik13 has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
mallu has quit [Quit: Page closed]
patrick99e99 has quit [Ping timeout: 240 seconds]
kdlv has quit [Ping timeout: 240 seconds]
kdlv has joined #ruby
timonv_ has quit [Remote host closed the connection]
coderhs has joined #ruby
<bronson> so... the ,= operator. Is "a ,= val" basically equal to "a = val.first" ?
<bronson> been googling but can't find docs on it...?
<bronson> join #angularjs
<bronson> dang
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum_ has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
<OffTheRails> I've never seen that operator
<bronson> OffTheRails: me neither, but it's in ActiveRecord 4.1.4
elcontrastador has joined #ruby
overmacht has quit [Quit: overmacht]
<sevenseacat> thats a new one
<bronson> lib/active_record/migration.rb line 1010
<OffTheRails> docs?
lkba has quit [Ping timeout: 244 seconds]
<sevenseacat> it might be like `a, _ = val` in which case i guess it is like val.first
<OffTheRails> would make more sense
Tricon has joined #ruby
<OffTheRails> wow, that's a terrible construction
<bronson> yea, it's a real code jock way of answering a simple question.
sigurding has joined #ruby
chater has joined #ruby
goodenough has quit []
<sevenseacat> neither google or symbolhound gives me anything for ,= so
<OffTheRails> it's not even clear whether it is a new operator or not
<sevenseacat> i dont think it is
magic has joined #ruby
<OffTheRails> I reckon seacat has it right, a, _ = val
goshdarnyou has quit [Quit: Connection closed for inactivity]
<OffTheRails> any way to search codebase for that ",="?
<OffTheRails> I tried on github search but couldn't find it
gauke has joined #ruby
Ayey_ has joined #ruby
<OffTheRails> tried exact search, returning a load of useless results
<bronson> well that looks like one boring and useless operator. Think I'm going to forget I ever saw it.
gauke has quit [Client Quit]
apeiros has joined #ruby
<OffTheRails> good for you. I can't until I find out how to search for it
axsuul has joined #ruby
timgauthier has joined #ruby
threesixes has joined #ruby
nasj has joined #ruby
<Hanmac> "a, = val" is also similar to "a, * = val" which i use more often
starkhalo has quit [Ping timeout: 245 seconds]
magic has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Hanmac> i used "a, _ = val" also sometimes, but i didnt know that "a, = val" is possible too
<OffTheRails> what is meaning of a, * = ?
<bronson> Hanmac: oo, I think you're right. it's not an operator, just confusing use of spaces
<bronson> a , = [1,2,3]
stytown has quit [Quit: stytown]
sinkensabe has joined #ruby
<timgauthier> man, its depressing, one beer and i'm tipsy
<timgauthier> and one beer and i spell it bear...
<Hanmac> OffTheRails:
<Hanmac> >> a, b = [1,2,3]
<eval-in> Hanmac => [1, 2, 3] (https://eval.in/175062)
* bronson needs a beer after this
<Hanmac> >> a, b = [1,2,3]; b
<eval-in> Hanmac => 2 (https://eval.in/175063)
<timgauthier> lol bronson
<Hanmac> >> a, *b = [1,2,3]; b
<eval-in> Hanmac => [2, 3] (https://eval.in/175064)
<OffTheRails> interesting
<OffTheRails> ok, exact search on github
<OffTheRails> how do I do it
<Hanmac> OffTheRails: just like in the parameters of an method where you can use * for rest array args, you can use it in a assignment too
<OffTheRails> ",=" ignores characters
<bronson> >> a ,= [1,2,3]; a
<eval-in> bronson => 1 (https://eval.in/175065)
<OffTheRails> good to know. hopefully I won't have to use it
Nahra has quit [Remote host closed the connection]
tobago has joined #ruby
stytown has joined #ruby
tjr9898 has joined #ruby
Tricon has quit [Quit: Leaving...]
<OffTheRails> >> a = [1,2,3].first; a
<eval-in> OffTheRails => 1 (https://eval.in/175066)
nasj has quit [Ping timeout: 260 seconds]
<bronson> yea, it's just idiotic use of spaces. somebody needs a larting.
<OffTheRails> github exact search... what is going on?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<OffTheRails> anyone here use github search much?
<OffTheRails> try find ",=" in rails codebase
nasj has joined #ruby
Ilyas has joined #ruby
<robscormack> I do, to find stupid things like $id = $_GET['id'];
<OffTheRails> comma is ignored
<OffTheRails> I tried escaping, no game
benzrf is now known as benzrf|offline
<OffTheRails> even with exact "a," ignores comma
bigkevmcd has joined #ruby
bal has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
<OffTheRails> robscormack, my only reply to that is: do whatever you can to get away from php
<sevenseacat> hah
<OffTheRails> I came from php to ruby, that was almost 3 years ago. I refuse to work in php now
<OffTheRails> have turned down clients because they wanted it built in php
<OffTheRails> nope. that part of my life is over haha
kldskp has joined #ruby
overmacht has joined #ruby
<sevenseacat> i also switched to ruby from php about three years ago.... ive had the odd bit of php work since though
overmacht has quit [Max SendQ exceeded]
Pharaoh2 has quit [Remote host closed the connection]
<ari-_-e> OffTheRails: the github code search is pretty bad
x1337807x has joined #ruby
<OffTheRails> ari-_-e, as I'm finding out
<OffTheRails> sevenseacat, a fellow convert! :)
<robscormack> I switched to Ruby from PostgreSQL :(
tjr9898 has quit [Ping timeout: 255 seconds]
<OffTheRails> I don't know what that means
<ari-_-e> I switched to ruby from cheese sandwiches
<robscormack> before programming, I only developed data models.
<OffTheRails> ahh
<OffTheRails> I kinda enjoy data modelling
<OffTheRails> damn, loaded that statement
<OffTheRails> so disappointed in github search, or my lack of knowledge about it
why_away has joined #ruby
relix has joined #ruby
OxBADA55 has quit [Ping timeout: 260 seconds]
boboc has joined #ruby
kldskp has quit [Ping timeout: 245 seconds]
<bronson> github search sucks so much. even when you get it to do what you want (which is rare) the ranking is random.
<robscormack> I loved it. but the first things I learned while using Rails were composite_primary_keys, foreigner and awesome_nested_set.
<apeiros> OffTheRails: I prefer `a, * = ary`, looks less like an accident
boboc has left #ruby [#ruby]
<OffTheRails> that's more explicit for sure, if you can call it that
<apeiros> that said, I'd prefer it by far if ruby wouldn't autosplat :-/
<OffTheRails> any other sites that index source code?
<OffTheRails> google doesn't appear to
whyy has quit [Ping timeout: 250 seconds]
<OffTheRails> *apart from github
<apeiros> symbolhound or what it's called maybe?
<bronson> OffTheRails: http://code.ohloh.net/ ?
<OffTheRails> I'll try it
Norrin has joined #ruby
Kricir has joined #ruby
Rainicorn has joined #ruby
Ayey_ has quit [Ping timeout: 260 seconds]
<ari-_-e> probably the reason that there aren't good code search sites is that to give the power that people generally want, you basically just have to do a grep
Tarential has quit [Ping timeout: 256 seconds]
<ari-_-e> which... doesn't really scale
<apeiros> the reason more likely is that indexing symbols is harder than words
<ari-_-e> well, it's a question of what exactly do you index
Sou|cutter has quit [Ping timeout: 245 seconds]
<ari-_-e> you can't anticipate what people will want to search for
<ari-_-e> can't anticipate everything, anyway
LadyRainicorn has quit [Ping timeout: 245 seconds]
nobodyzzz has joined #ruby
<OffTheRails> they didn't anticipate somebody was going to do ",=" in ruby, that's for sure!
<ari-_-e> right
<bronson> nor should they ...!
goshdarnyou has joined #ruby
<OffTheRails> nope
Rainicorn has quit [Ping timeout: 250 seconds]
<OffTheRails> ok, grep/search source on my machine is next option
<ari-_-e> maybe just clone the rails repo and search that?
<OffTheRails> that's what I'm going to do
fella5s has joined #ruby
Tarential has joined #ruby
mateu has quit [Ping timeout: 240 seconds]
bmn has quit [Quit: obai]
mateu has joined #ruby
kiri has joined #ruby
tjr9898 has joined #ruby
bmn has joined #ruby
sigurding has quit [Quit: sigurding]
Sou|cutter has joined #ruby
Pharaoh2 has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beef-wellington has joined #ruby
kiri has quit [Ping timeout: 250 seconds]
tjr9898 has quit [Ping timeout: 256 seconds]
_tpavel has joined #ruby
<safier> hi
safier is now known as fly2web_
<fly2web_> hello
gruz0[russia] has joined #ruby
<wasamasa> sneaky
<fly2web_> shevy:
<fly2web_> wasamasa: unban me plz
<wasamasa> fly2web_: fuck you
<fly2web_> i will never do trolling
<fly2web_> i m kind
<wasamasa> fly2web_: how often do I have to tell you, I'm not the guy you're after
<fly2web_> trust me. plz wasamasa
<wasamasa> the only superpower I have is common sense
<wasamasa> if I could unban people, I'd kickban you to hell
<robscormack> which is the less common of the senses, anyway
<fly2web_> i promiset to you. i will never do troll. i will just study ruby.
<apeiros> fly2web_: ask Mon_Ouie about that
beef-wellington has quit [Ping timeout: 256 seconds]
fly2web_ was kicked from #ruby by apeiros [you've been banned]
<wasamasa> robscormack: I'm still sad I've lost the credentials for my CAPTAIN_OBVIOUS hostmask/account for phrik
<apeiros> gack, damit. note to myself: don't op early morning
jdj_dk has joined #ruby
<robscormack> wasamasa: didn't understand :( anyway, hi!
<wasamasa> robscormack: hi
<wasamasa> robscormack: phrik is a bot on #archlinux and such
_tpavel has quit [Quit: Leaving]
<wasamasa> robscormack: you can do cool things like define your own factoids, do quotegrabs and so on if you've identified with it by creating an account
jdj_dk has quit [Read error: Connection reset by peer]
tectonic has quit []
<robscormack> aha, like eggdrops on steroids?
<wasamasa> pretty much
lsmola has joined #ruby
jdj_dk has joined #ruby
mikesplain has joined #ruby
<robscormack> wonder if it's difficult to write an eggdrop clone in Ruby. (just a thought)
<OffTheRails> after all that, those two instances of ",=" were all I could find in rails! :)
<wasamasa> robscormack: someone in here showed me an ircbot gem
Avahey_ has quit [Quit: Connection closed for inactivity]
<wasamasa> robscormack: https://github.com/cinchrb/cinch
dawkirst has joined #ruby
<sevenseacat> OffTheRails: i dare you to submit a PR removing them >_>
<OffTheRails> haha
GriffinHeart has quit [Remote host closed the connection]
<OffTheRails> I was about to git blame those fools
<sevenseacat> it was tenderlove, i already did
<OffTheRails> ha!
<OffTheRails> that's both shocking and upsetting
<wasamasa> robscormack: so sure, should be no problem
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<robscormack> was watching the same
<wasamasa> the functionality part would be more interesting anyways :P
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<sevenseacat> hah i see bronson already commented on it
Spami has joined #ruby
<OffTheRails> sevenseacat, my git fu is lacking. how did you find out which commit introduced this exact change?
sepp2k1 has quit [Read error: Connection reset by peer]
<bronson> yea, just now. couldn't let it go. :)
mikesplain has quit [Ping timeout: 256 seconds]
<sevenseacat> from the file https://github.com/rails/rails/blob/master/activerecord/lib/active_record/migration.rb i went to blame and then found the line
<OffTheRails> ahh, thought you'd used git command
coderhs has quit [Ping timeout: 250 seconds]
<sevenseacat> nah im lazy, though `git blame` on the file would tell me the commit for that line too
sputnik13 has joined #ruby
<sevenseacat> i dont have it checked out
axsuul has quit [Ping timeout: 255 seconds]
anaeem1 has quit [Quit: Leaving...]
axl_ has joined #ruby
axl_ has quit [Client Quit]
bMalum_ has joined #ruby
sputnik13 has quit [Client Quit]
Macaveli has joined #ruby
mike24 has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
w09x has joined #ruby
sinkensabe has joined #ruby
mike24 has joined #ruby
axl_ has joined #ruby
yeticry has quit [Quit: leaving]
bMalum_ has quit [Ping timeout: 255 seconds]
kaiwren has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
chater has quit [Quit: Saliendo]
alex-i has joined #ruby
JoshGlzBrk has joined #ruby
axl_ has quit [Client Quit]
gauke has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
vsoftoiletpaper has quit []
<Hanmac> shevy: huhu do you have currently many gems installed?
ta has joined #ruby
hellangel7 has joined #ruby
anaeem1_ has joined #ruby
basiclaser has quit [Excess Flood]
canton7 has joined #ruby
relix has joined #ruby
InfraRuby has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
basiclaser has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amundj has joined #ruby
sputnik13 has joined #ruby
noop has joined #ruby
sinkensabe has joined #ruby
fgo has joined #ruby
anaeem1_ has quit [Quit: Leaving...]
teddyp1cker has joined #ruby
jprovazn has joined #ruby
swks has joined #ruby
w09x has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
w09x has joined #ruby
advorak has quit [Ping timeout: 244 seconds]
yacks has quit [Quit: Leaving]
Morkel has joined #ruby
<shevy> Hanmac I reinstalled lately
<shevy> 113 gems right now installed
fgo has quit [Ping timeout: 256 seconds]
anaeem1_ has joined #ruby
Ayey_ has joined #ruby
swks has quit [Remote host closed the connection]
<Hanmac> oh thats more than me, try this: https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a ... call it like that: ./gemtree.rb --no-develop | dot -Tsvg -oout.svg; eog out.svg the last one depends what you use to show svg files (hm you might be able to switch to png of the type if you want)
axsuul has quit [Ping timeout: 264 seconds]
JBreit has joined #ruby
<Hanmac> shevy: that script is a rewrite of gem2gv and does show your installed gems in a dependency graph
<certainty> yo tagrudev
<shevy> can I install it via gem?
gruz0[russia] has quit [Quit: Leaving]
JBreit has left #ruby [#ruby]
dseitz has joined #ruby
mspah_ has quit [Ping timeout: 255 seconds]
arya_ has joined #ruby
sk87 has joined #ruby
kldskp has joined #ruby
dumdedum has joined #ruby
axl_ has joined #ruby
klaut has joined #ruby
jdj_dk has joined #ruby
coderhs has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
magic has joined #ruby
Kricir has joined #ruby
axl_ has quit [Quit: axl_]
w09x has quit []
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
aa47f8 has joined #ruby
anarang has joined #ruby
lidaaa has quit [Ping timeout: 264 seconds]
Rydekull has quit [Changing host]
Rydekull has joined #ruby
kdlv has quit [Ping timeout: 250 seconds]
sepp2k has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
ki0 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
arya_ has quit [Quit: sayonara^_^]
timonv_ has joined #ruby
alex88 has joined #ruby
godd2 has quit [Ping timeout: 264 seconds]
gauravagarwalr has joined #ruby
Kricir has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
Ankhers has quit [Remote host closed the connection]
Ankhers has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
mikesplain has joined #ruby
mahtennek has joined #ruby
rocknrollMarc has joined #ruby
mijicd has joined #ruby
Boohbah has quit [Ping timeout: 264 seconds]
bradleyprice has quit [Ping timeout: 240 seconds]
<Hanmac> shevy hm no but that would also not make much sense, ne? its only one little script .. one file, that does not make sense if you make a gem for just one file ... maybe if i have more scripts and then ship them as pack
InfraRuby has left #ruby [#ruby]
Boohbah has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
matrixdevuk has joined #ruby
kaspertidemann has joined #ruby
why_away has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
NinoScript has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mahtennek has quit [Remote host closed the connection]
koderok has quit [Quit: koderok]
ndrei has joined #ruby
swks has joined #ruby
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
mahtennek has joined #ruby
wallerdev has quit [Quit: wallerdev]
ndrei has quit [Quit: Lost terminal]
niklasb has quit [Ping timeout: 264 seconds]
mahtennek has quit []
ndrei has joined #ruby
anarang has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Atttwww has quit [Ping timeout: 244 seconds]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
zeropx has joined #ruby
jdj_dk has joined #ruby
stytown has quit [Quit: stytown]
mikecmpbll has joined #ruby
ghr has joined #ruby
Joulse has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
anarang has joined #ruby
timonv_ has quit [Remote host closed the connection]
Pharaoh2 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
kaspertidemann has quit [Read error: Connection reset by peer]
calleerlandsson has joined #ruby
kaspertidemann has joined #ruby
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
threesixes has quit [Quit: SATAN!!!!!!!!]
Pharaoh2 has joined #ruby
x1337807x has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
olivier_bK has joined #ruby
<mars777> Anybody there?
pandaant has joined #ruby
ephemerian has joined #ruby
Pharaoh2 has joined #ruby
bronson has quit [Read error: Connection reset by peer]
kaspergrubbe_ has joined #ruby
bronson has joined #ruby
<wasamasa> nope
oo_ has joined #ruby
<wasamasa> we're all ruby scripts
<canton7> all 848 of us
<wasamasa> we are legion
<wasamasa> all your base are belong to us
<mars777> I got a question
<wasamasa> you've already posted one
banister has joined #ruby
drakciR has joined #ruby
<robscormack> haha
banister has quit [Client Quit]
<DefV> don't be a dick wasamasa
<sevenseacat> lol
<wasamasa> also, don't make it so exciting, announcing your questions beforehand
<mars777> lol
jdj_dk has quit [Ping timeout: 264 seconds]
<sevenseacat> *fanfare* he has a question!
<wasamasa> it's like watching this american idol show
<sevenseacat> (or she, i shouldnt make presumptions)
sputnik13 has joined #ruby
fella5s has quit [Ping timeout: 240 seconds]
basiclaser has quit [Excess Flood]
LiohAu has joined #ruby
<OffTheRails> I don't understand, is there a question incoming?
LiohAu has quit [Client Quit]
kevkev____ has joined #ruby
LiohAu has joined #ruby
basiclaser has joined #ruby
<wasamasa> surely op will deliver, just wait
dANOKELOFF has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
<OffTheRails> it's like waiting for next season of Game of Thrones
<OffTheRails> this question better be the greatest damn question ever asked on this channel
<mars777> Is it ok if i pull out values from this hash @users = Users.new({ id: 1, name: ‘john’}) like this @user = { id: @users[:id], root_org_role: @users[:root_org_role] <—— I hope I can use instance variables in my hash is this bad design\
iteratorP has quit [Remote host closed the connection]
bmn has quit [Ping timeout: 264 seconds]
<OffTheRails> omg
anarang has quit [Quit: Leaving]
<sevenseacat> again?
<sevenseacat> you asked that this morning
<mars777> Yea i did not get a reply
<mars777> I mean sorry like this
<sevenseacat> because its a kinda nonsensical question
andrewlio has joined #ruby
<mars777> @users = Users.new({ id: 1, name: ‘john’})      like this @user = { id: @users[:id], root_org_role: @users[:name]     
iteratorP has joined #ruby
<DefV> it depends
<sevenseacat> i have no idea why you would do that
<mars777> @users = Users.new({ id: 1, name: ‘john’})      like this @user = { id: @users[:id], name: @users[:root_org_role]     
<OffTheRails> mars777, tell us what you're trying to achieve
<mars777> sorry i typed it wrong
<DefV> does your Users class implement []?
<OffTheRails> @users?
bmn has joined #ruby
beef-wellington has joined #ruby
bmn has quit [Excess Flood]
<OffTheRails> @user = User.new
<mars777> Ok i just wanted to know if its ok to use a instance variable in a hash to get the value
<mars777> is this ok or bad practice?
<OffTheRails> why are you trying to get the value?
<OffTheRails> maybe there is a better way
<OffTheRails> you returning json of the @user or something?
<mars777> Yea i am getting like the user name and the passwrod and role from the hash but i am creating it and since the instance variable comes from the initlalize method its in an instance variable ,
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mars777> It works for me i just want to know if there is a better way to do it
timonv_ has joined #ruby
bmn has joined #ruby
<OffTheRails> yes, create a method on your User object like `to_json`
yano has quit [Ping timeout: 612 seconds]
<OffTheRails> then call instance variables from within that -- { id: id, name: root_org_role }
<OffTheRails> @user.to_json
<OffTheRails> or to_hash, whatever
zipace has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
<OffTheRails> with that, you could even do: `@user = User.new({id: 1, name: "john"}).to_json`
timonv_ has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 256 seconds]
GriffinHeart has joined #ruby
<OffTheRails> though not sure why you are setting id of user
<mars777> Offtherails, I am just doing this purely in ruby
<mars777> heres another example
<mars777> def initialize(users)
<mars777> @users = users
<mars777> @person = { id: @users[:id], name: @users[:name] }
<mars777> end
<OffTheRails> it makes no sense, users?
<mars777> Its just an exercise im doing, so would it be bad practice for me to get instance variables
<OffTheRails> yet @users[:id]
<mars777> ohhh
<OffTheRails> @users should be an array
<OffTheRails> Your class should be User, each instance (User.new) is an individual User object
wilburj8477 has joined #ruby
yacks has joined #ruby
wilburj8477 has quit [Remote host closed the connection]
jeffersond2696 has joined #ruby
<OffTheRails> that user would have attributes (like id, name), but implemented using getters/setters
<mars777> yea
<OffTheRails> i.e. attr_reader, attr_writer, attr_accessor
mikesplain has joined #ruby
timonv_ has joined #ruby
<OffTheRails> so when you initialize you pass in values for those attributes
<mars777> users = Users.new({ id: 1, name: ‘John’})
<mars777> then
rdark has joined #ruby
<OffTheRails> which means initialize would be better read `def initialize(attributes)`
W0rmDr1nk has joined #ruby
<mars777> def initialize(users)
<mars777> @users = users
<mars777> @person = { id: @users[:id], name: @users[:name] }
<mars777> end
<mars777> would that work out?
<OffTheRails> using the instance variables is not bad practice, though it would be better to use attributes
<mars777> ohh ok
<OffTheRails> but that isn't the problem here, the problem is how you've set things up, and the naming... it's wrong
<OffTheRails> initialize(users) << users is not an array of users, it's a hash of attributes for a user
<OffTheRails> name it attributes
<mars777> ohhhh
<mars777> nice
marr has joined #ruby
<OffTheRails> @attributes = attributes
<mars777> got it
<OffTheRails> @person = { id: @attributes[:id] } etc
<mars777> Thanks!
<OffTheRails> but, another step is to extract those attributes into instance variables
jhass|off is now known as jhass
lxsameer has joined #ruby
<mars777> how would you do that
mikesplain has quit [Ping timeout: 255 seconds]
<mars777> or a small example
jeffersond2696 has quit [Remote host closed the connection]
<OffTheRails> just a sec
<mars777> ok
jdj_dk has joined #ruby
gaussblurinc1 has joined #ruby
spider-mario has joined #ruby
<mars777> and for the record pry is my best freind
jdj_dk has quit [Read error: Connection reset by peer]
<OffTheRails> pry is fantastic
lyuzashi has quit [Ping timeout: 272 seconds]
<txdv> best priends for ever
<mars777> yup
jdj_dk has joined #ruby
<OffTheRails> pry harder
anarang has joined #ruby
jxf has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
vsoftoiletpaper has joined #ruby
bradleyprice has joined #ruby
whyy has joined #ruby
gregf_ has quit [Quit: leaving]
franklinr3814 has joined #ruby
gregf_ has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
Photism has quit [Quit: Leaving]
banjara has quit [Quit: Leaving.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goshdarnyou has quit [Quit: Connection closed for inactivity]
franklinr3814 has quit [Remote host closed the connection]
<robscormack> with pry I found my computer when someone stole it.
<robscormack> shit, that is Prey!
<mars777> Well thanks again OffTheRails for the help!
<mars777> :)
<OffTheRails> mars777, no problem. just looking at extracting attributes hash now
axicaa has joined #ruby
Zebroid has joined #ruby
Xeago has joined #ruby
Kricir has joined #ruby
mervin_f8034 has joined #ruby
<OffTheRails> mars777, try this: http://pastie.org/9443839
sevenseacat has quit [Quit: Leaving.]
jdj_dk has quit [Ping timeout: 250 seconds]
Kricir has quit [Ping timeout: 245 seconds]
koderok has joined #ruby
<jhass> OffTheRails: mars777: I'd vote for public_send instead of send there
<jhass> or instance_variable_set
<OffTheRails> good point jhass
<OffTheRails> what about `self.class.instance_methods(false)`
<OffTheRails> it doesn't return just attributes, sadly
<OffTheRails> or store an array of attributes?
banister has joined #ruby
<jhass> I'd probably do
banister has quit [Max SendQ exceeded]
<jhass> you can write a simple module that you can extend your class with that provides something like property :foo, :bar or so
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<mars777> Nice thanks OfftheRails
<OffTheRails> true, I was just thinking of how I might do this in as simple way as pos
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Zebroid has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<OffTheRails> in this instance, instance_variable_set doesn't appear to work
banister has joined #ruby
<OffTheRails> instance_variable_set("@#{attr}", attributes[:attr])
<OffTheRails> still nil
<OffTheRails> am I missing something?
<jhass> literally [:attr] ?
<jhass> it should be attributes[attr]
<OffTheRails> course!
<OffTheRails> shouldn't have named it attr anyway, should be attr_key or something
kquig has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
<OffTheRails> better (I think):
<OffTheRails> def extract_attributes(attributes)
<OffTheRails> keys.each { |k| instance_variable_set("@#{k}", attributes[k]) }
<OffTheRails> keys = attributes.keys & self.class.instance_methods(false)
<OffTheRails> end
fold has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
blackmesa has joined #ruby
banister_ has joined #ruby
hfp has quit [Ping timeout: 250 seconds]
hfp has joined #ruby
banister has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
narcan has quit [Max SendQ exceeded]
mervin_f8034 has quit [Remote host closed the connection]
jefferson_p7226 has joined #ruby
workmad3 has joined #ruby
jefferson_p7226 has quit [Remote host closed the connection]
hfp_ has joined #ruby
vsoftoiletpaper has quit []
hfp has quit [Ping timeout: 255 seconds]
robscormack has quit [Quit: Leaving]
vanessaw7356 has joined #ruby
kirun has joined #ruby
arup_r has joined #ruby
goodenough has joined #ruby
vanessaw7356 has quit [Remote host closed the connection]
christopherv6951 has joined #ruby
<sandelius> Is there a Ruby standard for naming gems? Like plural or singular etc
christopherv6951 has quit [Remote host closed the connection]
InfraRuby has joined #ruby
<jhass> can't say I noticed any
DaniG2k has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
kyb3r_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<sandelius> jhass Thx but I've seen that. I'm thinging about "util" vs "utils"
jdj_dk__ has joined #ruby
brianherman has joined #ruby
clauswitt has joined #ruby
<jhass> well does it contain a single one or multiple?
<sandelius> multiple ones
drakciR has quit [Ping timeout: 260 seconds]
<jhass> there you have your answer
blackmesa has quit [Client Quit]
<sandelius> or I name my package "useful" :)
<jhass> though, is it really that generic?
<jhass> they don't do a common thing you can describe?
ptrrr has joined #ruby
<sandelius> yeah, I want to extract stuff from other packages to remove all duplications
<sandelius> utils is really the name I should use
crome has joined #ruby
<crome> 'lo
<jhass> I'm not sure. I'd even consider making distinct gems with the individual parts so you can pull in only what you need in the dependent projects
coderhs has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
mikesplain has joined #ruby
mikesplain has quit [Max SendQ exceeded]
drakciR_ has joined #ruby
banister_ has quit [Ping timeout: 250 seconds]
nobodyzzz has joined #ruby
byteddown has quit [Ping timeout: 264 seconds]
byteddown has joined #ruby
<OffTheRails> sandelius, that's what the gem does? extracts stuff from packages?
nobodyzzz has quit [Read error: Connection reset by peer]
<OffTheRails> oh, I see what you mean
krz has quit [Ping timeout: 264 seconds]
<sandelius> OffTheRails Yes but they're also being generalized so it could be used in whatever project
nobodyzzz has joined #ruby
<OffTheRails> I've thought of doing the same thing myself
<OffTheRails> for rails, though, and was going to name it rails_extensions
patrick99e99 has joined #ruby
<OffTheRails> but then I thought why not just contribute to rails
<OffTheRails> are the utils that generic?
<OffTheRails> could you not separate into logical modules, and divide those as gems
<sandelius> OffTheRails Perhaps but we don't want everything in rails :) An extension gem would be better in my opinion
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
alem0lars has joined #ruby
<OffTheRails> no, rails was just an example. my gem would only contain code relative to rails
<OffTheRails> if you have general utils, what I'm saying is, could you not group them into modules
<OffTheRails> could you give us an example of two completely different utils that would be in this gem?
echooo has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Ping timeout: 245 seconds]
jdj_dk__ has quit [Ping timeout: 260 seconds]
clauswitt has joined #ruby
rocknrollMarc has quit [Ping timeout: 240 seconds]
nobodyzzz has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
swks has quit [Remote host closed the connection]
Dr3amc0d3r|away has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
Dr3amc0d3r|away has joined #ruby
Macaveli has quit [Ping timeout: 250 seconds]
timonv_ has quit [Remote host closed the connection]
drakciR_ has quit [Ping timeout: 240 seconds]
Ilyas has quit [Read error: Connection reset by peer]
axicaa has quit [K-Lined]
DreamingRainne has quit [Ping timeout: 240 seconds]
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
whyy has quit [Ping timeout: 256 seconds]
why_away has joined #ruby
timonv_ has joined #ruby
kaspertidemann has quit []
gaussblurinc1 has quit [Quit: Leaving.]
krz has joined #ruby
whyy has joined #ruby
tvw has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
fella5s has joined #ruby
jdj_dk has joined #ruby
why_away has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
dangerousdave has joined #ruby
top4o has joined #ruby
<musicmatze> Hi, #ruby. Is there a way to parse "tag-like" commandline options with optparse? Like so: `programm.rb +tag`, but I cannot know the tagname, only the prefix which is either "+" or "-"
<musicmatze> do you guys have an idea?
GriffinHeart has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
nfk has joined #ruby
<jhass> that's mixed with normal commandline options or solely those "tags"?
<musicmatze> mixed with others
<jhass> and you differentiate them from shortcuts (-b) how?
TieSoul has joined #ruby
relix has quit [Read error: Connection reset by peer]
<musicmatze> mhm
<musicmatze> that's a valid question ...
relix has joined #ruby
<musicmatze> I guess I have to change the interface a bit! :-)
beef-wellington has joined #ruby
iteratorP has quit [Remote host closed the connection]
ferr has joined #ruby
bronson has quit [Quit: bronson]
jdj_dk has quit [Ping timeout: 260 seconds]
relix has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 255 seconds]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
relix has joined #ruby
bradleyprice has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Boohbah has quit [Remote host closed the connection]
Pharaoh2 has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
Boohbah has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikesplain has joined #ruby
Pharaoh2 has joined #ruby
bradleyprice has quit [Ping timeout: 255 seconds]
parduse has quit [Remote host closed the connection]
parduse has joined #ruby
TorpedoSkyline has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
TorpedoSkyline has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
banister has joined #ruby
chipotle has joined #ruby
koderok has quit [Quit: koderok]
sevenseacat has joined #ruby
gigihimo has joined #ruby
gigihimo is now known as fly3web
robbyoconnor has quit [Ping timeout: 260 seconds]
<fly3web> wasamasa: hello, i am hacked my id by someone. i try to log in ruby, i know that i m banned.
<wasamasa> Mon_Ouie: halp, he's at it again
<fly3web> wasamasa: unban me. my id is hacked.
sandelius has joined #ruby
sergiomiranda has joined #ruby
dANOKELOFF has quit [Ping timeout: 250 seconds]
<wasamasa> fly3web: no it's not, now stop being stupid
<fly3web> ok i see. then unbar me.
<Mon_Ouie> … fly3web we can tell it isn't, stop trying to circumvent bans
<fly3web> wasamasa:
<wasamasa> fly3web: I can't do that
fly3web was banned on #ruby by Mon_Ouie [*!01f5a132@gateway/web/freenode/ip.1.245.161.50]
fly3web was kicked from #ruby by Mon_Ouie [fly3web]
<wasamasa> fly3web: you imbecile
* wasamasa sighs
<Mon_Ouie> I don't know why he doesn't notice the name of the person who kicks him
<wasamasa> what is with that guy and why does he think I can help him out
dANOKELOFF has joined #ruby
robbyoconnor has joined #ruby
<wasamasa> there's exactly one channel I have ops on and it's not even official
kaspertidemann has joined #ruby
Norrin has quit [Ping timeout: 240 seconds]
<workmad3> wasamasa: probably confusing you with wmoxam
kquig is now known as krisquigley
<workmad3> wasamasa: who I think does have ops in here
phoo1234567 has joined #ruby
<popl> who gives a shit? :P
<popl> stop talking about it
<wasamasa> workmad3: hmm, that sounds about right
<workmad3> popl: there doesn't seem to be anything else to discuss atm :)
Macaveli has joined #ruby
jdj_dk has joined #ruby
<wasamasa> popl: it's a bit sad
p0sixpscl has joined #ruby
iteratorP has joined #ruby
<popl> ruby?
<popl> we could talk about ruby
ndrei has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
tkuchiki_ has joined #ruby
Norrin has joined #ruby
<OffTheRails> let's talk about ruby
<OffTheRails> oh man, what a wonderful language
TorpedoSkyline has quit [Client Quit]
<popl> or even haskell, or erlang
<workmad3> ruby wax? :P
<popl> what do programmers talk about?
<OffTheRails> programming?
<OffTheRails> what about jruby?
<workmad3> popl: quantum mechanics?
<OffTheRails> that's pretty interesting, right?
<popl> I forget that the ruby crowd are heralded as the arch-brogrammers.
<popl> generally speaking
<OffTheRails> jruby 9k coming out. heard great things about other improvements regarding truffle/graal
tkuchiki has quit [Ping timeout: 255 seconds]
<workmad3> popl: I'm no arch-brogrammer :(
<workmad3> popl: I'm at best a novitiate-brogrammer
<workmad3> noviciate?
<workmad3> meh, neither looks right :)
<popl> neophyte
<popl> or novice
<popl> English is hard. ;P
iteratorP has quit [Remote host closed the connection]
<workmad3> popl: I dislike people too much to be a brogrammer ;)
nateberkopec has joined #ruby
<popl> I don't dislike people, but I don't like them either.
tkuchiki_ has quit [Ping timeout: 244 seconds]
<Hanmac> my stuff will never work on jruby so i do not care about it
<OffTheRails> I dislike very likeable people
<OffTheRails> Hanmac, why will your stuff not work on jruby?
<Hanmac> C(++) bindings for C(++) libs
GriffinHeart has joined #ruby
<OffTheRails> so use the equivalents
<OffTheRails> or you mean custom C++ libs you've written yourself?
nfk has quit [Quit: yawn]
<Hanmac> OffTheRails: i write my own c++ binding for wxWidgets lib, it works on MRI and it also should work on rubinius, but it does not work on jruby and never will
<OffTheRails> there are just as performant solutions available on the JVM
sk87 has joined #ruby
<OffTheRails> shame
mijicd has joined #ruby
<workmad3> hmm... there should be some form of federated ruby interpreter that creates a drb-esque layer on various ruby runtimes and handles the intricacies of making sure Hanmac's C++ extensions are run on MRI instances and threaded code is run on jruby
funburn has joined #ruby
<ddv> patches are welcome, workmad3
nfk has joined #ruby
<funburn> I’m trying to write my first TCP client. The idea is to connect to a tcp socket that is spewing out NMEA sentences, and grab the ones I’m interested in, updating a class instance as it goes. https://gist.github.com/mtuckerb/778852bca6ee2a87381a
dANOKELO_ has joined #ruby
<funburn> but I’m totally stuck trying to make the while loop in #scan nonblocking
<ddv> funburn: I would stronly suggest using eventmachine
jdj_dk has quit [Ping timeout: 244 seconds]
<funburn> for the wole thing or just the loop?
dANOKELOFF has quit [Ping timeout: 255 seconds]
<ddv> whole thing
<funburn> ok
<funburn> I’ll read up
mijicd has quit [Remote host closed the connection]
<funburn> thanks!
<txdv> the badly implemented event loop engine for ruby
GriffinHeart has quit [Remote host closed the connection]
<ddv> works fine for me
<funburn> txdv: is there a well implemented event loop engine I should be looking at?
<ddv> funburn: he's trolling
<funburn> :)
<ddv> EventMachine has been around since the early 2000s and is a mature and battle tested library.
<funburn> yeah, I know i’ve used it in a rails project, but I’m going to have to start from scratch
whyy has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
aa47f8 has left #ruby [#ruby]
bluOxigen has quit [Ping timeout: 256 seconds]
<txdv> funburn: no
phinfonet has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
tkuchiki has joined #ruby
funburn has quit [Quit: funburn]
TorpedoSkyline has joined #ruby
Kricir has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
ferr has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Quit: Trynemjoel]
Panicky has joined #ruby
Trynemjoel has joined #ruby
chipotle has quit [Quit: cya]
<Hanmac> workmad3: do you currently have many gems installed? i made a new gem-list to graph script and i want others to look at it ... https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a ... can be called with "./gemtree.rb --no-develop | dot -Tsvg -oout.svg; eog out.svg" ( i used eog to display the svg files)
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
<workmad3> Hanmac: how different is it from 'bundle viz'?
whyy has joined #ruby
<workmad3> Hanmac: other than being for all installed gems, obviously :)
tokik has quit [Ping timeout: 260 seconds]
sergiomiranda has quit [Quit: sergiomiranda]
<Hanmac> first i dont know that bundle command, and yes where was a ruby-graphiz gem but it didnt work for my ruby version so i did make a new script
<workmad3> Hanmac: bundle viz generates a graph of all the gems in the bundle
ldnunes has joined #ruby
cmarques has joined #ruby
goodenough has quit [Remote host closed the connection]
<mikecmpbll> waaa, never seen bundle viz before. fun.
<workmad3> Hanmac: worked fine for me btw
Panicky has quit [Remote host closed the connection]
karupa is now known as zz_karupa
<Hanmac> there are some special features like my does detect if a gem require is unnecessary, (if A does require both B and C, but B does also require C them the connection A -> C is mostly unnecessary and marked like that) or if a relation should be updated ... like A does require a special version of B but a newer version of B is installed, then the releation is marked like that and it means that A might need to be updated
<Hanmac> workmad3: and? does the graph you get from my does look good for you? PS: --no-develop is currently necessary because it does also show development dependencies at default
<workmad3> Hanmac: looks fine, yes
<workmad3> Hanmac: would be nice if there were options to configure things like curved/straight connectors, version numbers, etc.
krisquigley has quit [Read error: Connection reset by peer]
cmarques has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
Kricir has quit [Remote host closed the connection]
<workmad3> Hanmac: especially if you could parse the dependences and construct a graph so it's more obvious if a version is no longer necessary (e.g. rack 1 is installed, but everything that uses rack as a dependency can use 1.2 (also installed) so rack 1 is an orphaned node)
jdj_dk has joined #ruby
lkba has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
<mikecmpbll> doesn't work on ruby 2.0.0 tho :p
mr-foobar has joined #ruby
<Hanmac> mikecmpbll: do you mean my script or the bundler command?
<mikecmpbll> your script.
jdj_dk has quit [Read error: Connection reset by peer]
<mikecmpbll> uses Array#to_h which is 2.1+
<Hanmac> hm ok then i need to debug that ... i only have "recent" ruby ... you can tell me later where you have problems after my other sentences
jdj_dk has joined #ruby
Takle has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
<mikecmpbll> runs fine replacing to_h
Panicky has joined #ruby
<Hanmac> ahh yeah the to_h yes i can replace if with Hash[] at the place there should not be a problem about that
<mikecmpbll> yep
jonr22 has joined #ruby
<Hanmac> workmad3: hm yeah i thought about version numbers, i will think about how to add them ... currently its "splines=ortho" to make it more ordered but that will be added to the options later ... and about the orphaned nodes, i will try to make it visible if a older version is not needed anymore (my idea is that i dont use extra node for that but does add the version at the connection between the nodes)
kquig has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
joshua__ has joined #ruby
patrick99e99 has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
<joshua__> ey guys, I've manually changed my database.yml to point to a diff database, touch tmp/restart.txt but my app doesn't look to be using the new database...ideas?
<mikecmpbll> joshua__: did you change the right environment?
<joshua__> in database.yml? yes
Asher has quit [Read error: Connection reset by peer]
<joshua__> I've also run rake tmp:clear to clear the cache..
<mikecmpbll> then it should work, unless you're changing the connection in your application code.
whyy has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
<workmad3> joshua__: and also assuming you're using an app server that restarts from tmp/restart.txt touches
<mikecmpbll> heh
<joshua__> lol indeed
<mikecmpbll> open rails console and check the connection there.
<mikecmpbll> or rails db, even.
<joshua__> How can I do that from the console?
Asher has joined #ruby
Morkel has quit [Quit: Morkel]
SouL has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 244 seconds]
<mikecmpbll> SomeModel.connection_config
AlSquire has joined #ruby
kaspertidemann has quit [Read error: Connection reset by peer]
koderok has joined #ruby
kaspertidemann has joined #ruby
jayunit100 has joined #ruby
claymore has joined #ruby
mostlybadfly has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
jdj_dk has quit [Ping timeout: 256 seconds]
amacou has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yano has joined #ruby
oo_ has quit [Remote host closed the connection]
Sgeo has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
oo_ has joined #ruby
ponyfleisch has left #ruby [#ruby]
charliesome has joined #ruby
nasj has quit [Remote host closed the connection]
<axilla> man, burlington ruby conference this weekend was a blast.
oo_ has quit [Ping timeout: 260 seconds]
yalue has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
aaronrl_ has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
tuxninja_ has joined #ruby
gauke_ has joined #ruby
koderok_ has joined #ruby
kasperti_ has joined #ruby
dvabr_ has joined #ruby
iaj_ has joined #ruby
gnarld_ has joined #ruby
aledovsky_ has joined #ruby
Vince has joined #ruby
camilasann has joined #ruby
nfk has quit [Ping timeout: 250 seconds]
lxsameer has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
lxsameer has joined #ruby
verto_ has joined #ruby
ccooke_ has joined #ruby
PaulePan1er has joined #ruby
bhuey_ has joined #ruby
IceyEC has joined #ruby
pandaant_ has joined #ruby
destructure has joined #ruby
suffice_ has joined #ruby
slash_ni1k has joined #ruby
axisys_ has joined #ruby
gkra_ has joined #ruby
ejnahc_ has joined #ruby
speaking1ode has joined #ruby
larissa has joined #ruby
yeltzooo4 has joined #ruby
drakciR_ has joined #ruby
DreamingRainne has joined #ruby
InfraRuby has left #ruby [#ruby]
<DreamingRainne> Tip of the day: remember to keep track of the difference between = and == if you don't want an innocent loop to eat all your memory all of a sudden! Hehe.
drakciR_ has quit [Remote host closed the connection]
Takle has joined #ruby
<DreamingRainne> elsif @elements[child+1] = NoElement # oops! (traversing a flattened/array-based tree)
GriffinHeart has quit []
<apeiros> use rubocop, get the line in big fat red :)
kquig is now known as krisquigley
samuelkadolph_ has joined #ruby
<alex-i> That and the infamous '=!'
kaspertidemann has quit [*.net *.split]
koderok has quit [*.net *.split]
Macaveli has quit [*.net *.split]
andrewlio has quit [*.net *.split]
pandaant has quit [*.net *.split]
gauke has quit [*.net *.split]
tagrudev has quit [*.net *.split]
tuxninja has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
Arkaniad has quit [*.net *.split]
doub has quit [*.net *.split]
aledovsky has quit [*.net *.split]
bartj3 has quit [*.net *.split]
mistergibson has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
Platini has quit [*.net *.split]
aaronrl has quit [*.net *.split]
speakingcode has quit [*.net *.split]
gkra has quit [*.net *.split]
cid404 has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
ccooke has quit [*.net *.split]
jimeh has quit [*.net *.split]
verto has quit [*.net *.split]
dvabr has quit [*.net *.split]
ejnahc has quit [*.net *.split]
suffice has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
drago777 has quit [*.net *.split]
nug has quit [*.net *.split]
slash_nick has quit [*.net *.split]
axisys has quit [*.net *.split]
iaj has quit [*.net *.split]
bhuey has quit [*.net *.split]
androidbruce has quit [*.net *.split]
IceyEC_ has quit [*.net *.split]
segv has quit [*.net *.split]
destruct1re has quit [*.net *.split]
Schmidt has quit [*.net *.split]
camilasan has quit [*.net *.split]
tsunamie has quit [*.net *.split]
samuelkadolph_ is now known as samuelkadolph
aledovsky_ is now known as aledovsky
gnarld_ is now known as nug
gauke_ is now known as gauke
whyy has joined #ruby
koderok_ is now known as koderok
doub has joined #ruby
phutchins has joined #ruby
jimeh has joined #ruby
GriffinHeart has joined #ruby
segv has joined #ruby
ferr has joined #ruby
<alex-i> Which is funny too, because you get boolean values everywhere
mary5030 has joined #ruby
Platini has joined #ruby
androidbruce has joined #ruby
androidbruce has quit [Changing host]
androidbruce has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cmarques has joined #ruby
jdj_dk has joined #ruby
sk87 has joined #ruby
andrewlio has joined #ruby
mary5030 has quit [Remote host closed the connection]
bradleyprice has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
InfraRuby has joined #ruby
mary5030 has joined #ruby
Schmidt has joined #ruby
jdj_dk has joined #ruby
banister has joined #ruby
tagrudev has joined #ruby
AntelopeSalad has joined #ruby
cid404 has joined #ruby
anildigital is now known as zz_anildigital
Arkaniad has joined #ruby
mistergibson has joined #ruby
zz_anildigital is now known as anildigital
larissa has quit [Ping timeout: 250 seconds]
hellangel7 has quit [Remote host closed the connection]
kachi8 has joined #ruby
beef-wellington has joined #ruby
bradleyprice has quit [Ping timeout: 255 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
fgo has quit []
mary5030 has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
NinoScript has joined #ruby
WillAmes has quit [Remote host closed the connection]
WillAmes has joined #ruby
obscured has joined #ruby
beef-wellington has quit [Ping timeout: 264 seconds]
amystephen has joined #ruby
sumark has quit [Remote host closed the connection]
NinoScript has quit [Ping timeout: 245 seconds]
MartinCleaver has joined #ruby
drago777 has joined #ruby
sumark has joined #ruby
nasj has joined #ruby
ccooke_ is now known as ccooke
Pharaoh2 has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 240 seconds]
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
Spami has joined #ruby
relix has joined #ruby
Pharaoh2 has joined #ruby
Spami has quit [Client Quit]
mijicd has joined #ruby
dEPy has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
mikesplain has joined #ruby
qwyeth has joined #ruby
qwyeth has quit [Max SendQ exceeded]
beef-wellington has joined #ruby
qwyeth has joined #ruby
qwyeth has quit [Max SendQ exceeded]
jdj_dk has quit [Ping timeout: 264 seconds]
nasj has quit [Ping timeout: 255 seconds]
qwyeth has joined #ruby
qwyeth has quit [Max SendQ exceeded]
qwyeth has joined #ruby
qwyeth has quit [Max SendQ exceeded]
sergiomiranda has joined #ruby
DaniG2k has quit [Quit: leaving]
diegoviola has joined #ruby
qwyeth has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
mikesplain has quit [Ping timeout: 255 seconds]
qwyeth has quit [Max SendQ exceeded]
qwyeth has joined #ruby
beef-wellington has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
Takle has quit [Remote host closed the connection]
PaulePan1er is now known as PaulePanter
dorei has joined #ruby
kaiwren has quit [Quit: kaiwren]
mike24 has quit [Ping timeout: 255 seconds]
suy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reisl has joined #ruby
sixxy has joined #ruby
nasj has joined #ruby
arup_r has quit []
dangerousdave has joined #ruby
joonty has joined #ruby
reisl is now known as larissa
whyy has quit [Remote host closed the connection]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
heftig has quit [Ping timeout: 250 seconds]
valner has joined #ruby
jerius has joined #ruby
whyy has joined #ruby
memph1s has joined #ruby
iamjarvo has joined #ruby
starkhalo has joined #ruby
tjr9898 has joined #ruby
umdstu has joined #ruby
Pharaoh2 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
OffTheRails has quit [Quit: Leaving]
ValicekB has quit [Ping timeout: 250 seconds]
Zenigor has joined #ruby
mars777 has quit [Quit: mars777]
Takle has joined #ruby
redlegion has quit [Ping timeout: 256 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
redlegion has joined #ruby
failshell has joined #ruby
jdj_dk has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
SouL has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
paulfm has joined #ruby
SouL has joined #ruby
charliesome has joined #ruby
bmurt has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has quit [Ping timeout: 240 seconds]
banister_ has joined #ruby
ffranz has joined #ruby
timonv_ has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
<Hanmac> workmad3: i added version number at the requirement (currently for the runtime only, will add for development ones later) and check if an gem can be cleaned up (old version, not used by any other gem that cant use newest version) ... i also added a check if a requirement does not match the newest version of the wanted gem ... (for sample nokogiri wants mini_portile=0.6.0 but mini_portile=0.6.1 is installed)
timonv_ has joined #ruby
ValicekB has joined #ruby
<Hanmac> banister_: hey, do you have many gems installed?
heftig has joined #ruby
gaussblurinc1 has joined #ruby
djcp has joined #ruby
djcp has left #ruby [#ruby]
oo_ has joined #ruby
Ayey_ has quit [Quit: leaving]
tsunamie has joined #ruby
Kricir has joined #ruby
whyy has quit [Ping timeout: 260 seconds]
hellangel7 has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
potyi has joined #ruby
justinv has joined #ruby
potyi has left #ruby [#ruby]
Gonzih has joined #ruby
autonomousdev has joined #ruby
MartinCleaver has joined #ruby
mary5030 has joined #ruby
ta has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 245 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
brianherman_ has joined #ruby
flak has joined #ruby
Hobogrammer_ has joined #ruby
niharvey has joined #ruby
uxp_ has joined #ruby
zer0px has joined #ruby
livingstn has joined #ruby
_foka has joined #ruby
klaut_ has joined #ruby
hakunin_ has joined #ruby
redlegion has quit [Ping timeout: 240 seconds]
Joulse_ has joined #ruby
Cache_Money_ has joined #ruby
doub__ has joined #ruby
redlegion has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
kachi8 has quit [Ping timeout: 240 seconds]
valner has quit [Ping timeout: 240 seconds]
Joulse has quit [Ping timeout: 240 seconds]
gregf has quit [Ping timeout: 240 seconds]
rippa has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
axisys_ has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Ping timeout: 240 seconds]
zeropx has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
hakunin has quit [Ping timeout: 240 seconds]
SecretAgent has quit [Ping timeout: 240 seconds]
Sthebig has quit [Ping timeout: 240 seconds]
dacamp has quit [Ping timeout: 240 seconds]
graft has quit [Ping timeout: 240 seconds]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
Cache_Money_ is now known as Cache_Money
Joulse_ is now known as Joulse
graft_ has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
iaj_ has quit [Write error: Connection reset by peer]
iaj has joined #ruby
teddyp1c_ has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
mijicd has quit [Ping timeout: 240 seconds]
Arkaniad has quit [Ping timeout: 240 seconds]
doub has quit [Ping timeout: 240 seconds]
suffice_ has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
brianherman has quit [Ping timeout: 240 seconds]
kirun has quit [Ping timeout: 240 seconds]
klaut has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
agent_white has quit [Ping timeout: 240 seconds]
txdv has quit [Ping timeout: 240 seconds]
uxp has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
Mikalv has quit [Ping timeout: 245 seconds]
snapcase has quit [Ping timeout: 245 seconds]
Deele has joined #ruby
snapcase has joined #ruby
ndrei has joined #ruby
zer0px is now known as zeropx
kirun has joined #ruby
NinoScript has joined #ruby
doub__ has left #ruby [#ruby]
InfraRuby has left #ruby [#ruby]
ahuman has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
axisys has joined #ruby
suffice has joined #ruby
SecretAgent has joined #ruby
dacamp has joined #ruby
txdv has joined #ruby
lxsameer has joined #ruby
axl_ has joined #ruby
mijicd has joined #ruby
Trynemjoel has joined #ruby
Sthebig has joined #ruby
valner has joined #ruby
Zesty has joined #ruby
Mikalv has joined #ruby
diegoviola has joined #ruby
top4o has joined #ruby
itspots has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
gregf has joined #ruby
axl_ has quit [Client Quit]
spastorino has joined #ruby
agent_white has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
iamjarvo has joined #ruby
anildigital is now known as zz_anildigital
snath has quit [Ping timeout: 255 seconds]
ValicekB has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
kevkev____ has quit [Read error: Connection reset by peer]
kevkev_____ has joined #ruby
mikesplain has joined #ruby
lxsameer has quit [Quit: Leaving]
InfraRuby has joined #ruby
vyorkin has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
kaspergrubbe_ has joined #ruby
oo__ has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
vyorkin has quit [Client Quit]
anaeem1_ has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
vyorkin has joined #ruby
Arkaniad has joined #ruby
beef-wellington has joined #ruby
vyorkin has quit [Client Quit]
claymore has joined #ruby
mikesplain has quit [Ping timeout: 250 seconds]
oo_ has quit [Ping timeout: 264 seconds]
mattstratton has joined #ruby
sevenseacat has quit [Quit: Leaving.]
nobodyzzz has joined #ruby
zorak has quit [Ping timeout: 255 seconds]
cocotton has joined #ruby
SilkFox has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
gtrak has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo__ has quit [Remote host closed the connection]
autonomousdev has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
cocotton has quit [Remote host closed the connection]
jdj_dk has joined #ruby
cocotton has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
pandaant_ has quit [Remote host closed the connection]
Photism has joined #ruby
top4o has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
goodenough has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
dEPy has quit [Quit: Computer has gone to sleep.]
cocotton has quit [Ping timeout: 240 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
autonomousdev has joined #ruby
cocotton has joined #ruby
mijicd has quit [Ping timeout: 245 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
jackneill has joined #ruby
etqqkoiflwhb has joined #ruby
<etqqkoiflwhb> anyone, why is
<etqqkoiflwhb> [2] pry(main)> x if x = 5
<etqqkoiflwhb> invalid
heftig has quit [Ping timeout: 256 seconds]
cocotton has quit [Remote host closed the connection]
<ericwood> etqqkoiflwhb: you really shouldn't be assigning in an if statement
gaussblurinc1 has quit [Quit: Leaving.]
<ericwood> try == instead :)
cocotton has joined #ruby
Kricir has quit [Remote host closed the connection]
theharshest has joined #ruby
zorak has joined #ruby
theharshest has quit [Client Quit]
anaeem1 has quit [Remote host closed the connection]
sambao21 has joined #ruby
<Hanmac> etqqkoiflwhb: because it does try to return the variable before its asigned ... that does not work that way
jottr_ has joined #ruby
koderok has quit [Quit: koderok]
thiagofm has joined #ruby
<etqqkoiflwhb> Hanmac: ericwood: Isn't assigning in an if, a common pattern? https://gist.github.com/anonymous/c2b9088cda498995e4a0
cocotton has quit [Ping timeout: 240 seconds]
jimms has joined #ruby
<ericwood> etqqkoiflwhb: I rarely see it in Ruby, and I HIGHLY discourage it
MartinCleaver has quit [Ping timeout: 240 seconds]
Zebroid has joined #ruby
<Hanmac> yeah but "if x = 5;p x;end" does work, "p x if x= 5" does not ... but "(x= 5) and p x" works again
zz_anildigital is now known as anildigital
<Hanmac> etqqkoiflwhb: the problem is the parser ... in the first one it did see the asignment first, and then the return, in the second it does see the return first and then the assignment
JohnFord has joined #ruby
nateberkopec has quit [Quit: Leaving...]
hydrozen has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
charliesome has quit [Client Quit]
klaut_ has quit [Remote host closed the connection]
bradleyprice has joined #ruby
St_Marx has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
klaut has joined #ruby
gaussblurinc1 has joined #ruby
lw has joined #ruby
momomomomo has joined #ruby
abuzze has joined #ruby
Cache_Money has quit [Ping timeout: 255 seconds]
sk87 has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MartinCleaver has joined #ruby
treehug88 has joined #ruby
bradleyprice has quit [Ping timeout: 260 seconds]
qwyeth has quit [Quit: Leaving]
klaut has quit [Ping timeout: 244 seconds]
qwyeth has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
abuzze_ has joined #ruby
cocotton has joined #ruby
diegoviola has joined #ruby
claymore has quit [Ping timeout: 250 seconds]
alexju has joined #ruby
<etqqkoiflwhb> Eric Hanmac: Thanks. A similar answer on Stack Overflow, http://stackoverflow.com/questions/1380331/conditional-statement-and-assigning-value-in-ruby
redlegion has quit [Ping timeout: 260 seconds]
drago777 has quit [Ping timeout: 260 seconds]
alexju has quit [Remote host closed the connection]
bluOxigen has joined #ruby
Zebroid has quit [Remote host closed the connection]
abuzze_ has quit [Remote host closed the connection]
redlegion has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has joined #ruby
_lazarevsky has joined #ruby
amacou has quit [Read error: Connection reset by peer]
abuzze has quit [Ping timeout: 255 seconds]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
amacou has joined #ruby
Cache_Money has joined #ruby
anaeem1 has joined #ruby
drago777 has joined #ruby
aganov has quit [Quit: Leaving]
abuzze has joined #ruby
sepp2k has joined #ruby
tagrudev has quit [Remote host closed the connection]
stef_204 has joined #ruby
_lazarevsky has quit [Ping timeout: 246 seconds]
krisquigley has quit [Remote host closed the connection]
goshdarnyou has joined #ruby
gtrak has quit [Remote host closed the connection]
mikesplain has joined #ruby
abuzze_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
gtrak has joined #ruby
abuzze has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
anildigital is now known as zz_anildigital
blackmesa has joined #ruby
dblessing has joined #ruby
zz_anildigital is now known as anildigital
<Mon_Ouie> File.write/File.read and IO.write/IO.read are the esamee
camilasann has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Mon_Ouie> same methods*
abuzze has joined #ruby
camilasan has joined #ruby
mikespla_ has joined #ruby
mikesplain has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
alem0lars has joined #ruby
Zebroid has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<DreamingRainne> That Dir.mktmpdir example, the block gets |dir| but it never uses it in the block?
<DreamingRainne> It just does File.open without reference to it; it gets made there automatically or something? chdir or something?
<DreamingRainne> * mktempdir
abuzze_ has quit [Ping timeout: 250 seconds]
eka has joined #ruby
jdj_dk has joined #ruby
<DreamingRainne> Or mktmpdir, whichever it is; the text uses both, inconsistently.
amargherio has joined #ruby
sambao21 has joined #ruby
failshel_ has joined #ruby
mikespla_ has quit [Ping timeout: 244 seconds]
omosoj has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<Mon_Ouie> It's mktmpdir and according to examples in the documentation, it just creates the directory and yields its name to the block
bal has quit [Quit: bal]
justinv has quit [Remote host closed the connection]
bal has joined #ruby
nateberkopec has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
<DreamingRainne> Makes sense. The code in that page never uses it, though. <shrug>
rubytor has joined #ruby
bal has quit [Client Quit]
bal has joined #ruby
axl_ has joined #ruby
mikespla_ has joined #ruby
bal has quit [Client Quit]
Takle has joined #ruby
sergiomiranda has quit [Quit: sergiomiranda]
AntelopeSalad has quit [Quit: Leaving]
bal has joined #ruby
devdazed has joined #ruby
j_mcnall_ has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
bal has quit [Client Quit]
tolo123 has joined #ruby
abuzze_ has joined #ruby
TorpedoSkyline has joined #ruby
AntelopeSalad has joined #ruby
ValicekB has quit [Ping timeout: 255 seconds]
abhi has joined #ruby
<abhi> wassup
<abhi> hi rubies...
<abhi> i'm on for 10 minutes only.. . so if anybody has any queries ask me fast
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
closures999 has joined #ruby
bal has joined #ruby
abuzze__ has joined #ruby
eka has joined #ruby
EMoreth has joined #ruby
bal has quit [Client Quit]
gregf has quit [Ping timeout: 240 seconds]
jds_ has joined #ruby
bal has joined #ruby
abuzze has quit [Ping timeout: 256 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
jottr_ has quit [Ping timeout: 240 seconds]
jds_ is now known as jds
bal has quit [Client Quit]
lagweezle has joined #ruby
lagweezle has quit [Changing host]
lagweezle has joined #ruby
bal has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
abhi has left #ruby [#ruby]
abuzze_ has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
godd2 has joined #ruby
jimms has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 240 seconds]
jprovazn has quit [Quit: Leaving]
paulfm has quit []
jimms has joined #ruby
etqqkoiflwhb_ has joined #ruby
paulfm has joined #ruby
stef_204 has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
anaeem1 has quit [Remote host closed the connection]
kasperti_ has quit []
kevkev_____ has quit [Quit: Computer has gone to sleep.]
<ddv> lol
<ddv> ^
justinv has joined #ruby
<jhass> I was tempted, just to find out wth it's about
umdstu has quit [Ping timeout: 246 seconds]
speaking1ode is now known as speakingcode
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
stef_204 has joined #ruby
cpruitt has joined #ruby
jshultz has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 250 seconds]
<Hanmac> sorry i didnt get the joke ...#
ValicekB has joined #ruby
LekeFly has joined #ruby
mikespla_ has quit [Ping timeout: 256 seconds]
mikesplain has joined #ruby
thiagofm has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
mikedugan has joined #ruby
closures999 has quit []
mijicd has joined #ruby
snath has joined #ruby
bmurt has quit [Ping timeout: 250 seconds]
<mikedugan> hola ruby-folk...any recommendations for a reference-style book? I see "The Ruby Programming Language" from oreilly and "Programming Ruby" from pragmatic...any good?
<banister_> mikedugan reference style book, the first one
<banister_> by o'reilly
<banister_> is gud
sixxy has quit [Remote host closed the connection]
Tricon has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju has joined #ruby
gwb3 has joined #ruby
bmurt has joined #ruby
mary5030 has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
eka has quit [Read error: Connection reset by peer]
sputnik13 has joined #ruby
eka has joined #ruby
ffranz has quit [Ping timeout: 256 seconds]
icarus has joined #ruby
penzur has joined #ruby
failshel_ is now known as failshell
<penzur> hello
<penzur> world
zkay11 has joined #ruby
<penzur> :D
vyorkin has joined #ruby
<shevy> die
vyorkin has quit [Client Quit]
<shevy> world
dawkirst has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 244 seconds]
IceDragon has joined #ruby
dawkirst has joined #ruby
bal has quit [Quit: bal]
p0sixpscl has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
anildigital is now known as zz_anildigital
nemesit|znc has quit [Ping timeout: 250 seconds]
taiansu has joined #ruby
cocotton has quit [Remote host closed the connection]
gregf has joined #ruby
alexju has joined #ruby
InfraRuby has left #ruby [#ruby]
cocotton has joined #ruby
sambao21 has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
nemesit|znc has joined #ruby
maestrojed has joined #ruby
maestrojed has quit [Client Quit]
jdj_dk has joined #ruby
anarang has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ValicekB has joined #ruby
tjr9898 has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
alexju has quit [Ping timeout: 255 seconds]
LekeFly has quit [Ping timeout: 250 seconds]
terrell_t is now known as terrellt
cocotton_ has joined #ruby
cocotton has quit [Ping timeout: 250 seconds]
poguez_ has joined #ruby
krisquigley has joined #ruby
Almis90 has joined #ruby
Almis90 has left #ruby [#ruby]
Vince has quit [Ping timeout: 244 seconds]
ffranz has joined #ruby
moted has joined #ruby
jottr_ has joined #ruby
<godd2> I find it odd that rspec uses 'it' but not 'its'.
<Nowaker> it 'works' do ... end
gwb3 has quit [Quit: leaving]
beneggett has joined #ruby
<godd2> its 'tail wags' do ... end
gwb3 has joined #ruby
<godd2> I'm saying it should have both
Petru has joined #ruby
Leehro has joined #ruby
vifino has joined #ruby
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> 3.0 removed its
MatthewsFace has quit [Quit: This computer has gone to sleep]
<jhass> 2.x has an its
centipedefarmer has joined #ruby
<godd2> I wonder what the rationale was
<godd2> I'll go rummage the repo
johnmolina has joined #ruby
<banister_> godd2 can you give an example of using its ?
electrical has joined #ruby
<electrical> hi all. been digging for a while but can't find it.. I have several gems installed and would like to get the metadata from an installed gem programatically ( via ruby code ) is there a good way to do it?
qwyeth has quit [Quit: Leaving]
<workmad3> godd2: it was a little more arcane... 'its(:tail) {should be_wagging}'
tjr9898 has joined #ruby
qwyeth has joined #ruby
dawkirst has quit [Remote host closed the connection]
<workmad3> godd2: which would then do subject.tail.should be_wagging
<kalleth> expect(:tail).to be_wagging tyvm
<workmad3> kalleth: this was rspec 2.3 its syntax ;)
<kalleth> well rspec2 should just die ;p
hamakn has joined #ruby
terrell_t has joined #ruby
<workmad3> s/.3//
<kalleth> oh come on
<kalleth> rspec isn't too bad
<kalleth> minitest is worsae
<workmad3> kalleth: that was me correcting my own typo
Gonzih has quit [Remote host closed the connection]
<kalleth> test:unit is dodge
<kalleth> oh
<kalleth> okay
<kalleth> if i'd followed through the replace
<kalleth> ;P
<workmad3> kalleth: I meant rspec 2, not rspec 2.3 :)
ValicekB has quit [Ping timeout: 256 seconds]
dawkirst has joined #ruby
larissa has quit [Quit: Leaving]
chrishough has joined #ruby
<godd2> I can see arguments against its as an expectation, but I like it as an example group identifier.
Joulse has quit [Ping timeout: 250 seconds]
jdj_dk has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
troyready has joined #ruby
Joulse has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
lw has quit [Quit: s]
sambao21 has quit [Quit: Computer has gone to sleep.]
<banister_> godd2 that's just bad english
<banister_> godd2 it "increases in frequency" reads much better
zz_jrhorn424 is now known as jrhorn424
willgorman_ has joined #ruby
<godd2> I admit this may not be the most poignant example
sambao21 has joined #ruby
Ilyas_ has joined #ruby
<Hanmac> workmad3: newest version: https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a ... does show version at the requirement (default only if there are more than one version of that gem), dashed connection there does the gem need to be updated to newer requirement (for sample nokogiri wants mini_portile=0.6.0 but mini_portile=0.6.1 is installed), dashed node means there are some versions of that gem that can be feely removed (with gem cleanup), dotted
ascarter has joined #ruby
<godd2> banister_ its "frequency increases" seems even better than your improvement
Joulse has quit [Ping timeout: 244 seconds]
<banister_> godd2 i disagree, but we'll ask Hanmac to judge (he's a true poet of the english language)
Joulse has joined #ruby
jimms has quit [Remote host closed the connection]
<godd2> Plus that conforms better to the notion of composition over inheritance, since it implies that a pitch has one frequency instead of a pitch being a frequency
ValicekB has joined #ruby
<godd2> if you're into that sort of thing
<Hanmac> banister_: look at my gist ... it can make a dot graph from the installed gems
Boohbah has quit [Ping timeout: 264 seconds]
LekeFly has joined #ruby
amacou has quit [Remote host closed the connection]
NinoScript has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Boohbah has joined #ruby
momomomomo has joined #ruby
Pharaoh2 has joined #ruby
MartinCleaver has joined #ruby
newUser1234 has joined #ruby
renderful has quit [Remote host closed the connection]
noop has quit [Quit: Leaving]
electrical has left #ruby [#ruby]
Takle has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
Takle has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
gauravagarwalr has quit []
mary5030 has quit [Ping timeout: 255 seconds]
Cache_Money has quit [Quit: Cache_Money]
maestrojed has joined #ruby
amargherio has quit [Remote host closed the connection]
yeticry has joined #ruby
terrell_t is now known as terrellt
mleone has joined #ruby
momomomomo has quit [Quit: momomomomo]
patrick99e99 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
cocotton_ has quit [Remote host closed the connection]
sk87 has joined #ruby
terrellt has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
terrellt has joined #ruby
cocotton has joined #ruby
Takle has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
b00stfr3ak has joined #ruby
initself has quit [Quit: leaving]
initself has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
rubygogo has joined #ruby
sk87 has joined #ruby
<rubygogo> i want to learn. how can i do?
<jhass> pratice!
aspires has joined #ruby
solussd has joined #ruby
<rubygogo> how?
<wasamasa> hmm
<jmeeuwen> you know how to get to Carnegie Hall, right?
<wasamasa> I suspect what the username of that person is
<wasamasa> it's lee!
* wasamasa checks
<shevy> hehe
<wasamasa> meh, webchat
b00stfr31k has joined #ruby
<rubygogo> ?
<rubygogo> what mean?
<shevy> Kim Lee Choek
<wasamasa> still, pretty likely that guy asks me to unban him
<pontiki> jmeeuwen: you just have to pony up $17,000
<wasamasa> like the five times before
axsuul has joined #ruby
mary5030 has joined #ruby
<jhass> rubygogo: (partially) automate a task you do regularly
<shevy> this time he really wants to learn ruby
renderful has joined #ruby
matrixdevuk has quit [Quit: Computer has gone to sleep.]
rdark has quit [Ping timeout: 255 seconds]
cocotton has quit [Remote host closed the connection]
<jhass> rubygogo: then post the script and let us point out what could be done better
<rubygogo> i come here firstly.
<jmeeuwen> rubygogo, just start studying eval.c, that'll teach you!
lw has joined #ruby
<DreamingRainne> Step 1: "#!/usr/bin/env ruby". Step 2: Write the rest of the script.
<jhass> rubygogo: so no single line of ruby yet? Any prior programming experience?
amargherio has joined #ruby
<rubygogo> c is most powerful language?
<jmeeuwen> yes.
<wasamasa> jhass: ten languages already
<shevy> lol
<rubygogo> oh
larsam has joined #ruby
<wasamasa> rubygogo: learn metasploit
<shevy> now you are just provoking him wasamasa
<wasamasa> rubygogo: that will teach you
Joulse_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
<shevy> he will ask you to unban him if you continue like that
<rubygogo> metasploit?? what is it?
<jhass> are you guys sure it's him again?
<jmeeuwen> rubygogo, it's written in some language that ultimately boils down to some c?
mary5030 has joined #ruby
<shevy> jhass hehehehe
p0sixpscl has joined #ruby
<shevy> now *you* are having fun :)
p0sixpscl has quit [Max SendQ exceeded]
<jhass> because I'm not
<wasamasa> jhass: he's evading the questions way too well, so yes
<shevy> rubygogo where do you live
<rubygogo> jhass: i m innocent.
Joulse has quit [Ping timeout: 255 seconds]
Joulse_ is now known as Joulse
<rubygogo> i live in my room
<jhass> okay, nvm
<shevy> rubygogo in which country
<shevy> haha :D
<rubygogo> why? where are you shevy
<rubygogo> ?
pangur has joined #ruby
<shevy> rubygogo answer man
<rubygogo> oh yes
<rubygogo> china
ValicekB has quit [Ping timeout: 256 seconds]
<wasamasa> nope, ip is from korea
gregf has quit [Quit: WeeChat 0.4.3]
<jmeeuwen> china? it even starts with a c!
<shevy> rubygogo, what means "bu yao ta wo"
<rubygogo> OMG
<shevy> rubygogo, what means "sian"
wallerdev has joined #ruby
<rubygogo> sian is city
<shevy> rubygogo, what means "wa liao"
<shevy> ok so you have never been to Singapore
agent_wh1te has joined #ruby
* jmeeuwen is having an "argo" moment
<shevy> I got trained in galaxynet by them
agent_white has quit [Ping timeout: 245 seconds]
<penzur> hello
<shevy> they were actually pretty heavy gamers even before the koreans took over
kireevco has joined #ruby
<penzur> what is up guys?
<rubygogo> i just want ruby. but i don't know why people say strangely.
<penzur> huh?
tjr9898 has quit [Remote host closed the connection]
<shevy> rubygogo do you think wasamasa is a nice guy?
<wasamasa> jmeeuwen: I'm still not sure whether to bother watching it
<jhass> rubygogo: post one of your scripts already
<rubygogo> i don't know.
<wasamasa> rubygogo: you've been told often enough how and where to learn it
<wasamasa> rubygogo: off you go
<shevy> I think he forgot you wasamasa
mary5030 has quit [Remote host closed the connection]
<jhass> penzur: if you have a question just ask and ignore the noise here ;)
<penzur> so many people in here
<penzur> hehehe
joonty has quit [Quit: Leaving]
<penzur> me liky!
<wasamasa> shevy: I haven't recommended anything actually
<DreamingRainne> If you want it badly enough, you'll already be looking into it yourself, trying things.
<shevy> and btw why does he keep on coming back?!
<wasamasa> DreamingRainne: spoiler: he doesn't
<DreamingRainne> Actions > Words.
agent_wh1te has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<shevy> wasamasa yeah but he did not ask you to unban him this time :)
Joulse has quit [Ping timeout: 250 seconds]
kireevco has quit [Client Quit]
bradleyprice has joined #ruby
<wasamasa> shevy: that's a beginning, yes
<rubygogo> ok
<rubygogo> then i will ask one thing.
alexju has joined #ruby
<rubygogo> just one.
<DreamingRainne> African or European?
<shevy> here it comes :>
<wasamasa> shevy: in fact, the only things hinting at his origin are the name containing "gogo", his ip address and the engrish
<rubygogo> python vs ruby vs perl, what is best language?
tjr9898_ has joined #ruby
<DreamingRainne> Still C.
<DreamingRainne> Now go!
Joulse has joined #ruby
<shevy> go is not an option
baroquebobcat has joined #ruby
<shevy> he said python ruby perl
<wasamasa> rubygogo: you're in #ruby
<shevy> he wants honest answer
kireevco has joined #ruby
<jhass> rubygogo: the one you like most
<DreamingRainne> Asp.NET. Go learn that. Best language ever.
<wasamasa> rubygogo: clearly you're not looking for an honest answer
<shevy> hehehe
<DreamingRainne> Or INTERCAL. Take your pick.
johnmolina is now known as John___
Sauvin has quit [Quit: mIRC for Linux ain't all it's cracked up to be.]
sambao21 has quit [Quit: Computer has gone to sleep.]
<rubygogo> i just select one language.
rdark has joined #ruby
Sauvin has joined #ruby
<DreamingRainne> INTERCAL it is.
ChristianDC has quit [Ping timeout: 260 seconds]
<DreamingRainne> Now go get something done with it.
<wasamasa> rubygogo: answer: yes
agent_white has joined #ruby
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubygogo> ruby man don't need to study python?
bronson has joined #ruby
<rubygogo> yes?
<jmeeuwen> of course you need to study python
<pontiki> ♫ feed the trolls, tuppence a bag ♫
<jmeeuwen> the art of programming is not in the language used, mate
ChristianDC has joined #ruby
momomomomo has joined #ruby
<DreamingRainne> Everyone needs to study Python. He's not a programmer, he's a very naughty boy!
baroquebobcat has quit [Client Quit]
<mikecmpbll> :D
<shevy> I wanna taekwondo him down
davispuh has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
<jmeeuwen> what you really want to learn is c.
<rubygogo> ruby man do something by ruby? i don't know that.
<rubygogo> ?
mary5030 has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
<jmeeuwen> everything boils down to c.
<mikecmpbll> rubyman sounds like the worst superhero ever.
<jmeeuwen> off you go ;-)
<DreamingRainne> And C boils down to machine code. Real Ultimate Power!
<rubygogo> but c is not OO.
bradleyprice has quit [Ping timeout: 240 seconds]
etqqkoiflwhb_ has joined #ruby
renier_ has joined #ruby
alexju has quit [Remote host closed the connection]
<wasamasa> C can be OO
<wasamasa> anything you want
baroquebobcat has joined #ruby
<jmeeuwen> strangely enough, "go" is ultimately "c" too
John___ is now known as Alaude
<wasamasa> ^
kevkev_____ has joined #ruby
<mikecmpbll> why's that strange?
<jmeeuwen> and you're in here as ruby*go*go*
<wasamasa> I don't get why people think go is modern
<rubygogo> c is procedure language.
<workmad3> jmeeuwen: everything boils down to +3.3v and -3.3v :P
<rubygogo> not OO
bricker`work has joined #ruby
<DreamingRainne> Ruby Man iterates over evil!
<mikecmpbll> :D
<jmeeuwen> workmad3, you've been tweaking!
<jmeeuwen> kudos ;-)
<Hanmac> rubygogo: with structs in C you can be a bit OO
<rubygogo> i heard that ruby library is not many.
gauke has quit [Quit: gauke]
<workmad3> jmeeuwen: heh :) or I don't remember what the +ve and -ve rails are set to at the moment
Alaude is now known as Alaude_
renier has quit [Ping timeout: 272 seconds]
<rubygogo> i want study ruby, so i come here. but Ruby Man don't teach me anything.
<wasamasa> he sounds unresponsible
<jhass> rubygogo: did you went through tryruby.org already?
larsam has quit [Read error: Connection reset by peer]
ValicekB has joined #ruby
<workmad3> jmeeuwen: of course, what's 'fun' is that the CRuby interpreter is a C program that consumes Ruby code, compiles it to an internal bytecode and then interprets that bytecode on a VM into the appropriate machine instructions
<wasamasa> jhass: he only went through trytrolling.org, give him some slack
<DreamingRainne> You have to install the Ruby Man Gem first. Obviously.
mspah_ has joined #ruby
<jmeeuwen> "fun" indeed
<rubygogo> ok
<workmad3> ♫ Ruby Ruby Ruby Ruby Ruby ♫
<Mon_Ouie> Is rubyman a new superhero
<mikecmpbll> yes.
<jmeeuwen> the emphasis being on the quotation marks
<rubygogo> jhass: what are you doing by ruby?
<DreamingRainne> More of a Meh hero at this point.
kldskp has quit [Quit: Computer has gone to sleep.]
<jhass> rubygogo: answer one of my questions, I might answer one of yours
treehug88 has quit [Ping timeout: 240 seconds]
<jmeeuwen> is anyone noticing that rubygogo has this other programming language in his nick not just once, but *twice*?
kldskp has joined #ruby
<rubygogo> what your question? jhass
<mikecmpbll> but it's half as long
<jhass> rubygogo: did you went through tryruby.org already?
<jmeeuwen> that's compensation i reckon
<rubygogo> NO jhass
j_mcnall_ has joined #ruby
jimms has joined #ruby
<workmad3> jmeeuwen: I'm not convinced 'his' nick has any programming relevance... I think it's a shortening of 'Ruby the GoGo guy'
<rubygogo> i come here first.
<jhass> rubygogo: then do that
<jmeeuwen> workmad3, it's not about being convinced, but about faith ;-)))
<rubygogo> but people is strange in here
<mikecmpbll> ^
<DreamingRainne> And you're not?
zkay11 has quit [Ping timeout: 245 seconds]
<jhass> rubygogo: let me tell, you fit perfectly ;) Did you start with tryruby.org already?
<workmad3> jmeeuwen: I only have faith in things that are convincing ;)
bronson has quit [Quit: bronson]
<jmeeuwen> workmad3, i only have faith in things that ultimately boil down to c. :PPP
<DreamingRainne> As it stands, you're indistinguishable from someone who doesn't actually want to learn the language.
<rubygogo> i come here firstly. what happened in here in past?
<workmad3> jmeeuwen: so... not much then :P
<jmeeuwen> :P
<jmeeuwen> hahaha
taiansu has quit [Remote host closed the connection]
<mikecmpbll> if you boil me
<mikecmpbll> i boil down to c
<workmad3> jmeeuwen: is your faith a dirac delta function around the PDP11?
<DreamingRainne> C boils down to C.
<jmeeuwen> if you burn me i boil down to c as well
<wasamasa> ok, this is getting silly
<jmeeuwen> workmad3, a little less classic, but... sure, something like that
<wasamasa> Mon_Ouie: my hero
<mikecmpbll> [17:11:39] <rubygogo> but people is strange in here
abuzze__ has quit [Ping timeout: 260 seconds]
<wasamasa> Mon_Ouie: he's belittling the PDP-11
zkay11 has joined #ruby
<rubygogo> wasamasa: you are dependable.
<DreamingRainne> Don't worry; the person responsible for the silliness has been sacked.
<rubygogo> so much
<workmad3> wasamasa: I'm not belittling it
<workmad3> wasamasa: I'm suggesting that it's the only thing that truly 'boils down to c' ;)
<wasamasa> workmad3: oh snap, you and rubygogo have the s
<wasamasa> ame nick color
<rubygogo> wasamasa: you must do thing yourself.
<wasamasa> damnit
kldskp has quit [Ping timeout: 250 seconds]
<hoelzro> I think this person was in #perl last week, asking the same time
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> workmad3: sorry 'bout that
lw has quit [Quit: s]
<workmad3> wasamasa: I'll forgive you... this time
kaspergrubbe_ has quit [Remote host closed the connection]
sigurding has joined #ruby
<eam> writing C is kinda fun when you include ruby.h
kevkev_____ has quit [Ping timeout: 250 seconds]
<pangur> I have a hash (R), which contains rows of addresses. I have tried R.each_pair { |key, value| R[key] = value} but it I want to add a "\n" at the end of each row. How do I achieve this please?
<wasamasa> rubygogo: you don't have to remind me you already know about me
<wasamasa> rubygogo: and no, I still don't have ops
<workmad3> eam: I read that as 'plunging your feet into boiling oil is kinda fun when you're eating marshmallows'...
<rubygogo> wasamasa: are you japanese?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rubygogo> i feel it
<pangur> I have a hash (R), which contains rows of addresses. I have tried R.each_pair { |key, value| R[key] = value} but I want it to add a "\n" at the end of each row. How do I achieve this please?
<eam> workmad3: don't be a hater :(
<wasamasa> lol
<DreamingRainne> pangur: = "#{value}\n"
<workmad3> eam: ;)
<jhass> pangur: R.each_value do |value| value << "\n"; end
abuzze has joined #ruby
<wasamasa> rubygogo: what makes you think so?
jlovick has joined #ruby
<DreamingRainne> Or what jhass said.
<pangur> ah, thanks DreamingRainne
<rubygogo> haha
<wasamasa> rubygogo: clearly my lack of engrish
timonv_ has joined #ruby
<rubygogo> no
<workmad3> wasamasa: you spaek england v pourly
<rubygogo> wasamasa: i feel it. so much
<pangur> Thanks to you too, jhass :)
<rubygogo> you want know it?
pietr0 has joined #ruby
<rubygogo> wasamasa:
<wasamasa> no, wank off to someone else
<rubygogo> wasamasa: == wasabi
* wasamasa sighs
<wasamasa> adding you to my /ignore won't help since you keep changing nicks
bronson has joined #ruby
<rubygogo> i must sleep now. see you later.
<rubygogo> and ruby man
timonv^ has joined #ruby
<rubygogo> BYE
alex88 has quit [Quit: Leaving...]
patrick99e99 has joined #ruby
Wolland has joined #ruby
gruz0[russia] has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
taiansu has joined #ruby
timonv_ has quit [Ping timeout: 244 seconds]
<crome> "must"
zcreative has joined #ruby
mark_locklear has joined #ruby
<crome> sleep is just highly recommended
centipedefarmer has quit []
<workmad3> crome: his spam-batteries were depleted, so he needed 'sleep' to charge them again
phinfonet has quit []
lw has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
rubygogo has quit [Ping timeout: 246 seconds]
SCHAAP137 has joined #ruby
<eam> you guys just let yourself get all riled up huh
<mikecmpbll> ruby man never gets riled.
NinoScript has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
<pangur> How can I write hash values to a file, please, and so that each value is one a line of its own?
<pangur> I can get the stuff to print out in terminal ok.
etqqkoiflwhb_ has quit [Quit: Lingo - http://www.lingoirc.com]
baroquebobcat has quit [Quit: baroquebobcat]
<pangur> The output file produces the same data but without line endings.
<eam> pangur: gist some code
Ankhers has quit [Remote host closed the connection]
dru has joined #ruby
centipedefarmer has joined #ruby
Wolland_ has joined #ruby
NinoScript has quit [Client Quit]
fold has joined #ruby
drusepth has quit [Ping timeout: 240 seconds]
NinoScript has joined #ruby
baroquebobcat has joined #ruby
Takle has joined #ruby
djbkd has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
troyready has quit [Ping timeout: 240 seconds]
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
baroquebobcat has quit [Client Quit]
<gaussblurinc1> guys, which method I should implement for pretty_inspect or inspect outputs?
theharshest has joined #ruby
<pangur> It produces the output I want in terminal but not in the file.
justinv has quit [Remote host closed the connection]
|RicharD| has joined #ruby
<eam> pangur: R.each_value { |v| somefile.puts v }
justinv has joined #ruby
<eam> or R.each_value { |v| somefile.puts v + "\n" } if you want another newline
<eam> but puts adds a newline for you each time you call it
<jhass> File.write "addra.txt", R.values.join("\n")
jameyd has quit [Quit: WeeChat 0.4.2]
<eam> jhass: mmmm, inefficient
<jhass> ?
<eam> what if R is large?
Zenigor has quit [Remote host closed the connection]
<jhass> use C
<eam> bwawhaha
<crome> haha
<workmad3> pangur: I'd probably suggest 'R.each_value{|v| somefile.write "{v}\n"}' personally
Joulse has quit [Quit: Joulse]
Zenigor has joined #ruby
<workmad3> pangur: or eam's puts
<jhass> pangur: use File.open only in block form so you don't forget to close it
ghr has quit [Ping timeout: 244 seconds]
<eam> jhass: I have a looooot of gigabyte sized ruby jobs
lw has quit [Quit: s]
<jhass> eam: I optimize if it's necessary
<jhass> until then I optimize for readability
mikecmpbll has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
<workmad3> jhass: optimise... that's throwing bigger CPUs at the job, right?
<eam> pretty sure R.each_value { |v| somefile.puts v } is also more readable
lkba has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
<jhass> workmad3: if that's an option...
<workmad3> jhass: ;)
lkba has joined #ruby
lw has joined #ruby
abuzze has quit [Remote host closed the connection]
arya_ has joined #ruby
Aryasam has quit [Client Quit]
<jhass> eam: my is the complete version, your complete version is File.open("bla", "w") do |somefile| R.each_value do |v| somefile.puts v end end
<jhass> *mine
centipedefarmer has quit [Remote host closed the connection]
<eam> shorter != more readable
lkba has quit [Read error: Connection reset by peer]
<eam> ruby suffers the same sickness as perl at times, I think
lkba has joined #ruby
<crome> eam: totally true, but it's just as easy to keep it readable as it is with perl
tuxninja_ has quit []
rdark has quit [Ping timeout: 260 seconds]
felgenh3 has joined #ruby
<eam> agree
Zenigor_ has joined #ruby
Zenigor has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
<workmad3> eam: tbh, 'File.write "foobar", R.values.join("\n") ' is pretty readable
lw has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
<eam> yeah, but for someone who's clearly just learning fundamentals of working with files I wouldn't offer shortcuts
matrixdevuk has joined #ruby
Hanmac has quit [Remote host closed the connection]
rdark has joined #ruby
charliesome has joined #ruby
Zebroid has quit [Remote host closed the connection]
<pangur> jhass: File.write "addra.txt", R.values.join("\n") worked :) I am also trying the other suggestions.
wallerdev has quit [Quit: wallerdev]
<pangur> Thanks to jhass, I meant to say.
havenwood has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
advorak has joined #ruby
ephemerian has quit [Quit: Leaving.]
nateberkopec has joined #ruby
dANOKELO_ has quit [Remote host closed the connection]
timonv^ has quit [Remote host closed the connection]
j_mcnall_ has quit [Quit: さよなら]
<pangur> eam somefile = File.open("addra.txt", "w"); R.each_value { |v| somefile.puts v + "\n"}; somefile.close works too :) Thanks.
troyready has joined #ruby
zoo-zed has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<toretore> anyone else having problems with rubygems.org?
j_mcnally has joined #ruby
kaspergrubbe_ has joined #ruby
craigbowen3 has joined #ruby
<havenwood> toretore: nope, seems all green here too: http://status.rubygems.org/
felgenh3 has quit [Quit: felgenh3]
mleone has quit [Ping timeout: 240 seconds]
dru has quit [Ping timeout: 245 seconds]
<toretore> it's probably my shitty isp then
nateberkopec has quit [Ping timeout: 240 seconds]
<toretore> gem install times out 9 times out of 10
SilkFox has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
<jhass> pangur: as said, get used to the block form of File.open, it makes sure the file is cleanly closed in case of errors
dru has joined #ruby
zoo-zed has quit [Client Quit]
cocotton has joined #ruby
<pangur> workmad3: R.each_value{|v| somefile.write "{v}\n"} did not work, gave me a file with each line saying "{v}".
<pangur> Thanks for the suggestion though.
basiclaser has quit [Excess Flood]
<workmad3> pangur: sorry, that should have been "#{v}\n"
<havenwood> pangur: #{}
<havenwood> pangur: ^ interpolation
kachi8 has joined #ruby
stytown has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
basiclaser has joined #ruby
<pangur> Worked with the #, workmad3. Thanks :)
<pangur> Thanks havenwood.
<godd2> >> "2 + 2 = #{2 + 2}"
<eval-in> godd2 => "2 + 2 = 4" (https://eval.in/175221)
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton_ has joined #ruby
relix has joined #ruby
jlovick has quit [Remote host closed the connection]
_foka has quit [Ping timeout: 260 seconds]
cocotton has quit [Read error: Connection reset by peer]
wjimenez_5271 has joined #ruby
oo_ has joined #ruby
n1lo has joined #ruby
oo_ has quit [Remote host closed the connection]
<pangur> Thanks very much folks. I think that File.open looks more modern. However, I appreciate that I was being helped to use what I already had.
oo_ has joined #ruby
<havenwood> pangur: aye, the block form is idiomatic
oo_ has quit [Remote host closed the connection]
<pangur> :)
taiansu has quit [Remote host closed the connection]
marr has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
ki0 has quit [Remote host closed the connection]
abuzze has joined #ruby
oo_ has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
oo_ has joined #ruby
<godd2> what's the best way to specify a gem dependency based on the platform?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<godd2> I want win32-sound to be a dependency but only if they're on a windows machine
oo_ has quit [Remote host closed the connection]
omosoj has quit [Ping timeout: 260 seconds]
felgenh3 has joined #ruby
oo_ has joined #ruby
rdark has quit [Quit: leaving]
joshua__ has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
codecop has joined #ruby
rdark has joined #ruby
Hanmac has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
ghr has joined #ruby
oo_ has quit [Remote host closed the connection]
MartinCleaver has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
oo_ has joined #ruby
sambao21 has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<havenwood> godd2: gem.add_runtime... if Gem.win_platform?
W0rmDr1nk has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
EMoreth has quit [Quit: Lingo - http://www.lingoirc.com]
<suy> Newbie doubt: From a language point of view, is gem 'rack-cache', require: 'rack/cache' equivalent to gem('rack-cache', {:require => 'rack/cache'}) ? I.e. function call with a string and a hash?
oo_ has joined #ruby
saarinen has joined #ruby
wallerdev has joined #ruby
<jhass> suy: yes, method call with string and a hash
oo_ has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
<havenwood> suy: some folk call that a 'naked hash'
<suy> Great, thank you. Liking the language so far :)
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2> havenwood oh no shit, thats awesome, thank you
oo_ has quit [Remote host closed the connection]
<workmad3> suy: it isn't necessarily equivalent in 2.0+ btw, as it would depend on if 'gem' was a method using named params or an options hash
ghr has quit [Ping timeout: 240 seconds]
nanoyak has quit [Read error: Connection reset by peer]
<havenwood> workmad3: ooh, good point
oo_ has joined #ruby
<havenwood> kwargs!
<havenwood> sounds like a klingon dish
InfraRuby has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<workmad3> :)
<workmad3> right, time to get home
<workmad3> hf
tkuchiki has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
cocotton_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
oo_ has joined #ruby
cocotton has joined #ruby
nateberkopec has joined #ruby
kriskropd has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
MartinCleaver has joined #ruby
kriskropd has joined #ruby
nanoyak has quit [Client Quit]
oo_ has joined #ruby
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
kriskropd has quit [Client Quit]
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
<suy> workmad3: ok, noted for the future, thank you too.
oo_ has quit [Remote host closed the connection]
kriskropd has joined #ruby
<Eiam> hmm
justinv has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
<Eiam> so the ruby docs say that "zip" 'converts any arguments to arrays"
<Eiam> >> [1].zip(1)
<eval-in> Eiam => wrong argument type Fixnum (must respond to :each) (TypeError) ... (https://eval.in/175222)
<Eiam> 1.to_a
<Eiam> >> 1.to_a
<eval-in> Eiam => undefined method `to_a' for 1:Fixnum (NoMethodError) ... (https://eval.in/175223)
oo_ has quit [Read error: Connection reset by peer]
<Eiam> so.. it doesn't convert any argument to an array
pangur has quit [Quit: Ex-Chat]
Killerkeksdose has quit [Ping timeout: 272 seconds]
rubytor has quit [Ping timeout: 264 seconds]
<wallerdev> yeah thats kinda weird
nateberkopec has quit [Ping timeout: 240 seconds]
<wallerdev> i always just pass an array
kevkev_____ has joined #ruby
<jhass> send a doc patch ;)
<Eiam> I mean, I know how to use it. I'm just wondering if I'm missing something =)
oo_ has joined #ruby
<wallerdev> mightve been old behavior that was removed at some point
koderok has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
icebourg has joined #ruby
oo_ has quit [Remote host closed the connection]
icebourg has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
oo_ has joined #ruby
Spami has joined #ruby
zoo-zed has joined #ruby
<wallerdev> hm
icebourg has joined #ruby
zoo-zed has quit [Excess Flood]
oo_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
wallerdev has quit [Quit: wallerdev]
icebourg has quit [Max SendQ exceeded]
Zebroid has joined #ruby
kriskropd has quit [Client Quit]
renderful has quit [Remote host closed the connection]
banjara has joined #ruby
oo_ has joined #ruby
zoo-zed has joined #ruby
icebourg has joined #ruby
mary5030 has quit [Remote host closed the connection]
zoo-zed has quit [Excess Flood]
ptrrr has quit [Quit: ptrrr]
SilkFox has joined #ruby
renderful has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
jimms has quit [Remote host closed the connection]
<Eiam> also.. oddly.. whats the purpose of supplying a block to zip?
<Eiam> it invokes on the resulting zip object, but it isn't return itself
<Eiam> its like a weird.. each on top of a zip?
kevkev_____ has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
<jhass> I guess it avoids building the potentially large result array
oo_ has joined #ruby
SegFaultAX has quit [Excess Flood]
<Eiam> ah okay that makes sense
clauswitt has joined #ruby
nanoyak has joined #ruby
<Eiam> but it is effectively an "each" on the resulting object, right?
<Eiam> (In my testing that what I see)
<jhass> effectively
gkra_ is now known as gkra
SegFaultAX has joined #ruby
initself has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 245 seconds]
zoo-zed has joined #ruby
zoo-zed has quit [Excess Flood]
sambao21 has quit [Quit: Computer has gone to sleep.]
chrishough has quit [Quit: chrishough]
SilkFox has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 255 seconds]
zz_anildigital is now known as anildigital
zoo-zed has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
zoo-zed has quit [Excess Flood]
justinv has joined #ruby
kriskropd has joined #ruby
zoo-zed has joined #ruby
zoo-zed has quit [Excess Flood]
<eam> >> "#{%}#{%}}}}}"
<eval-in> eam => "" (https://eval.in/175224)
Ulrike_Rayne is now known as Ulri[away]
bluenemo has quit [Ping timeout: 264 seconds]
pangur has joined #ruby
j416_ has joined #ruby
macclearich__ has joined #ruby
zoo-zed has joined #ruby
JohnFord has joined #ruby
zoo-zed has quit [Excess Flood]
sambao21 has joined #ruby
j416 has quit [Ping timeout: 250 seconds]
SilkFox has joined #ruby
lw has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
jay has joined #ruby
jay is now known as rubyonrailed
cocotton has quit [Remote host closed the connection]
Neomex has joined #ruby
terrell_t has joined #ruby
terrell_t is now known as terrellt_
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
terrellt has quit [Disconnected by services]
itspots has quit [Quit: Lingo - http://www.lingoirc.com]
terrellt_ is now known as terrellt
aspires has quit []
zoo-zed has joined #ruby
pangur has quit [Quit: Ex-Chat]
cocotton_ has joined #ruby
aspires has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
seanosaur has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
tjr9898 has joined #ruby
craigbowen3 has quit [Ping timeout: 240 seconds]
Zenigor_ has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
Zenigor has joined #ruby
kldskp has joined #ruby
heftig has joined #ruby
Petru has quit [Ping timeout: 255 seconds]
seanosau_ has joined #ruby
whomp has joined #ruby
Asher has quit [Quit: Leaving.]
LekeFly has joined #ruby
LekeFly has quit [Client Quit]
Zenigor_ has joined #ruby
Zenigor has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
krisquigley has quit [Remote host closed the connection]
aspires has quit []
seanosau_ has quit []
Asher has joined #ruby
reset has joined #ruby
gauke has joined #ruby
iamjarvo has joined #ruby
sinkensabe has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railsme has joined #ruby
klaut has quit [Remote host closed the connection]
anaeem1 has joined #ruby
klaut has joined #ruby
<godd2> Apparently "#{%}#{%}}}}"";end breaks irb in a weird way. It goes to indentation -1
heftig_ has joined #ruby
centipedefarmer has joined #ruby
InfraRuby has quit [Ping timeout: 255 seconds]
tvw has quit []
lw has quit [Quit: s]
clauswitt has joined #ruby
oo__ has joined #ruby
klaut has quit [Ping timeout: 240 seconds]
jmbrown412 has quit [Remote host closed the connection]
<eam> godd2: you're leaving a #{} open
oo__ has quit [Remote host closed the connection]
penzur has quit [Quit: WeeChat 0.4.3]
jmbrown412 has joined #ruby
heftig has quit [Ping timeout: 255 seconds]
oo__ has joined #ruby
aspires has quit []
testcore has joined #ruby
coldkey21 has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
<eam> godd2: you can close the quotes with this:
<eam> >> "#{%}#{%}}}}""}"
<eval-in> eam => "" (https://eval.in/175225)
oo_ has quit [Ping timeout: 250 seconds]
<eam> your last " opened up a double quote string inside the outer #{}
aspires has joined #ruby
oo_ has joined #ruby
<eam> this might help piece apart the ordering, each space separates a quoted string or a #{}
<eam> >> "#{ %} #{ %}} } } }"
<eval-in> eam => " " (https://eval.in/175226)
<godd2> ah, yea, "#{end is enough to do it
oo_ has quit [Read error: Connection reset by peer]
felgenh3 has quit [Quit: felgenh3]
GlenK has joined #ruby
<DreamingRainne> Or just a lone " by itself.
<eam> DreamingRainne: another } is needed
<godd2> " doesnt do the -1 thing
oo_ has joined #ruby
bradleyprice has joined #ruby
Ulri[away] is now known as Ulrike
Ulrike is now known as Ulrike_Rayne
<eam> >> %}sup}
<eval-in> eam => "sup" (https://eval.in/175227)
oo_ has quit [Remote host closed the connection]
kaspergrubbe_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
klaut has joined #ruby
centipedefarmer has quit [Ping timeout: 256 seconds]
pr0t has joined #ruby
kaspergrubbe_ has joined #ruby
anildigital is now known as zz_anildigital
oo_ has quit [Remote host closed the connection]
jmbrown412 has quit [Ping timeout: 250 seconds]
nobodyzzz has joined #ruby
zz_anildigital is now known as anildigital
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
Fratz has joined #ruby
oo_ has joined #ruby
jdj_dk has joined #ruby
ptrrr has joined #ruby
blackmesa has joined #ruby
mikecmpbll has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
oo_ has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<DreamingRainne> >> 5.size
<eval-in> DreamingRainne => 4 (https://eval.in/175229)
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<DreamingRainne> 32-bit, then. Mine are 64-bit, though I'm wondering whether it'd be better to stay 32-bit even on a 64-bit platform, since the only thing that benefits from it are Fixnums, able to go to higher numbers before reaching Bignum range.
MartinCleaver has quit [Quit: MartinCleaver]
oo_ has joined #ruby
teddyp1c_ has quit [Remote host closed the connection]
<DreamingRainne> Otherwise, it just makes for 8 bytes per reference, Array entry, etc rather than 4.
jprovazn has joined #ruby
oo_ has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
sandelius has joined #ruby
<godd2> Fixnum#size just does sizeof(long)
oo_ has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
<DreamingRainne> >> 0x3FFFFFFFFFFFFFFF.class
<eval-in> DreamingRainne => Bignum (https://eval.in/175230)
<DreamingRainne> On mine, ^ says Fixnum.
Morkel has joined #ruby
oo_ has joined #ruby
aspires has quit []
<godd2> >> 0x3FFFFFFFFFFFFFFF.class.superclass
<eval-in> godd2 => Integer (https://eval.in/175231)
<godd2> That'll be the same on yoruse :P
oo_ has quit [Remote host closed the connection]
<DreamingRainne> Well, yeah.
yokel has joined #ruby
felgenh3 has joined #ruby
oo_ has joined #ruby
<DreamingRainne> And "5.size" says 8. Ruby uses references internally, represented by a "long", I'm guessing. Half of that is reserved for Fixnums, and is the whole reason there's a Fixnum/Bignum distinction, so that Fixnums don't need to be instantiated, they're "right there".
oo_ has quit [Remote host closed the connection]
momomomomo has quit [Remote host closed the connection]
<DreamingRainne> The other half are object IDs, Symbol references, things like that.
craigbowen3 has joined #ruby
<godd2> plus, native register operations are faster than if you have to abstract larger numbers
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
qwyeth has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DreamingRainne> Indeed, but they don't come up all that often. I've worked with some really big bignums before, never had a problem on my last system (32-bit Ruby).
oo_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<eam> DreamingRainne: there are a number of tradeoffs between 32/64bit
oo_ has joined #ruby
ta has joined #ruby
aspires has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ki0 has joined #ruby
oo_ has joined #ruby
yetanotherdave has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
oo_ has quit [Read error: Connection reset by peer]
<DreamingRainne> Well, yeah. But in Ruby, I think only Fixnums benefit from it (63-bit rather than 31-bit); otherwise it just makes each reference twice as big. Unless there are other things it affects?
<eam> there's a lot more
anaeem1 has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<eam> there's more cpu registers available for example
<DreamingRainne> Having 64-bit internal references, that is; not referring to general i686/x86_64 differences like number of CPU registers.
axl_ has quit [Quit: axl_]
oo_ has joined #ruby
* DreamingRainne did go with a 64-bit OS for exactly that reason.
oo_ has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
<DreamingRainne> Like, if Ruby used 32-bit internal references (whatever they're called) even on a 64-bit build, I think that'd work fine.
oo_ has joined #ruby
danijoo has joined #ruby
<eam> pointers, you mean?
dru has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neersighted has quit [Remote host closed the connection]
<DreamingRainne> I mean like object IDs, and the numbers Ruby uses to refer to them, and half of that number space is set aside for Fixnum values.
Macaveli has joined #ruby
oo_ has joined #ruby
mongag has joined #ruby
neersighted has joined #ruby
oo_ has quit [Remote host closed the connection]
railsme has left #ruby ["Leaving"]
oo_ has joined #ruby
<DreamingRainne> >> [0x3FFFFFFF.class, 0x40000000.class]
<eval-in> DreamingRainne => [Fixnum, Bignum] (https://eval.in/175232)
<DreamingRainne> (And another bit for the sign, so the unsigned/positive range is half again.)
oo_ has quit [Remote host closed the connection]
<Hanmac> >> RbConfig::CONFIG["arch"]
<eval-in> Hanmac => "i686-linux" (https://eval.in/175233)
jdj_dk has quit [Remote host closed the connection]
oo_ has joined #ruby
<mongag> I'm new to ruby. I notice that I can omit brackets in methods. For example "abc".concat "edf" and I love it. My question is is it a good practice to omit the brackets?
nateberkopec has joined #ruby
axl_ has joined #ruby
<DreamingRainne> Yeah, I figured so from the "5.size" thing. Was just curious which one the eval bot was using.
oo_ has quit [Remote host closed the connection]
<DreamingRainne> Mine says x86_64-linux.
centipedefarmer has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
dawkirst has joined #ruby
oo_ has joined #ruby
<DreamingRainne> mongag: Well, for something simple like that (one argument, no other stuff around it), that's fine. But anything more complicated and it's probably best to be explicit about it.
oo_ has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
oo_ has joined #ruby
Macaveli has quit [Client Quit]
rdark has quit [Quit: leaving]
oo_ has quit [Read error: Connection reset by peer]
aspires has quit []
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
dru has joined #ruby
aspires has joined #ruby
oo_ has joined #ruby
renderful has joined #ruby
<DreamingRainne> Apparently you can leave parentheses off method defs, which doesn't sit right with me, so I don't do that.
<DreamingRainne> >> def herp derp;derp.class end
<eval-in> DreamingRainne => :herp (https://eval.in/175235)
<DreamingRainne> Oh, forgot to call it.
oo_ has quit [Read error: Connection reset by peer]
* DreamingRainne uses ; after all but the last statement in one-liners, as a matter of course.
nateberkopec has quit [Ping timeout: 240 seconds]
centipedefarmer has joined #ruby
<DreamingRainne> >> def herp(derp); derp.class; end; herp 0x3FFFFFFF
<eval-in> DreamingRainne => Fixnum (https://eval.in/175236)
kevkev_____ has joined #ruby
oo_ has joined #ruby
<DreamingRainne> Unless for things like "if herp then derp end" sometimes. (When not doing "derp if herp".)
aspires has quit [Client Quit]
oo_ has quit [Read error: Connection reset by peer]
* DreamingRainne shrugs.
oo_ has joined #ruby
MartinCleaver has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
qwyeth has joined #ruby
Tricon has quit [Quit: Leaving...]
oo_ has joined #ruby
kenneth has joined #ruby
oo_ has quit [Remote host closed the connection]
krisquigley has joined #ruby
dumdedum has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
pavelso has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
cocotton_ has quit [Remote host closed the connection]
kevkev_____ has quit [Ping timeout: 264 seconds]
cocotton has joined #ruby
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 0.4.3]
aspires has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<Hanmac> DreamingRainne: because "if x = func; print x; end" does work but "print x if x = func" does not ... but "x = func and print x" does again
oo_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
oo_ has joined #ruby
heftig_ is now known as heftig
oo_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
soulcake has quit [Quit: Quack.]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
aspires has quit [Client Quit]
lw has joined #ruby
lw has quit [Remote host closed the connection]
oo_ has joined #ruby
soulcake has joined #ruby
felgenh3 has quit [Quit: felgenh3]
tolo123 has quit [Quit: tolo123]
oo_ has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
tjr9898 has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
thumpba has joined #ruby
oo_ has quit [Remote host closed the connection]
Ilyas has joined #ruby
djbkd has quit [Remote host closed the connection]
Sauvin has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Ilyas_ has quit [Ping timeout: 264 seconds]
oo_ has quit [Read error: Connection reset by peer]
renderful has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
oo_ has joined #ruby
renderful has joined #ruby
renderful has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
renderful has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Radar has quit [Ping timeout: 240 seconds]
Radar has joined #ruby
oo_ has joined #ruby
Radar is now known as Guest72361
aspires has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
peret has joined #ruby
oo_ has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
x1337807x has joined #ruby
oo_ has joined #ruby
nasj has quit [Remote host closed the connection]
cocotton has joined #ruby
aspires has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
aspires has joined #ruby
oo_ has joined #ruby
jerius_ has joined #ruby
jerius_ has quit [Client Quit]
apeiros has joined #ruby
oo_ has quit [Remote host closed the connection]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
omosoj has joined #ruby
oo_ has joined #ruby
cocotton_ has joined #ruby
abuzze has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
beneggett has joined #ruby
oo_ has joined #ruby
yfeldblu_ has joined #ruby
F1skr has joined #ruby
oo_ has quit [Remote host closed the connection]
djbkd has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Spami_ has joined #ruby
dpatel has joined #ruby
JohnFord has joined #ruby
oo_ has joined #ruby
dpatel has quit [Client Quit]
sterlo has joined #ruby
dpatel has joined #ruby
oo_ has quit [Remote host closed the connection]
noop has joined #ruby
jerius has joined #ruby
oo_ has joined #ruby
<sterlo> I have a script here:https://github.com/grok/internet-status/blob/production/internet-status.rb -- its just checking internet status -- when the network goes down it throws an error... being the noob I am -- I don't know how to deal with that in Ruby. How do I catch that error and then fire a new status update?
oo_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
aspires has quit []
djbkd has quit [Remote host closed the connection]
dorei has quit [Read error: Connection reset by peer]
Spami has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Spami_ has quit [Read error: Connection reset by peer]
zcreative has quit [Quit: Lingo - http://www.lingoirc.com]
solussd has left #ruby [#ruby]
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
oo_ has joined #ruby
Spami_ has joined #ruby
oo_ has quit [Remote host closed the connection]
abuzze has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
klaut has quit []
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<jhass> sterlo: rescue the error class you get
oo_ has quit [Remote host closed the connection]
<jhass> btw. community standard is two spaces for indentation
renderful has quit [Remote host closed the connection]
oo_ has joined #ruby
top4o has joined #ruby
nasj has joined #ruby
<apeiros> s/community standard is/international law mandates/
aspires has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass> sterlo: while true -> loop do
<jhass> sterlo: I'd define the variables at the beginning of check_internet as constants
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
jackneill has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
ndrei has joined #ruby
bronson has quit [Quit: bronson]
oo_ has joined #ruby
tjr9898 has quit [Remote host closed the connection]
dru_ has joined #ruby
oo_ has quit [Remote host closed the connection]
tjr9898 has joined #ruby
oo_ has joined #ruby
Asher has quit [Quit: Leaving.]
renderful has joined #ruby
oo_ has quit [Remote host closed the connection]
dru has quit [Ping timeout: 255 seconds]
kldskp has quit [Quit: Computer has gone to sleep.]
nasj has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
W0rmDr1nk has joined #ruby
oo_ has quit [Remote host closed the connection]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
sigurding has quit [Quit: sigurding]
justinmcp has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Jackneill_ has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
Spami_ has quit [Quit: This computer has gone to sleep]
oo_ has quit [Read error: Connection reset by peer]
ki0 has quit [Remote host closed the connection]
Guest61096 is now known as graft
oo_ has joined #ruby
ki0 has joined #ruby
rkj has joined #ruby
<graft> is there a way to check a gzip header on a file without inflating the whole thing?
tjr9898 has quit [Ping timeout: 264 seconds]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Jackneill_ has quit [Read error: Connection reset by peer]
<apeiros> graft: afaik gzip is pretty streamy, so should be possible
oo_ has quit [Remote host closed the connection]
<apeiros> and I think even ruby's stdlib gzip supports streaming
jackneill has joined #ruby
<graft> i meant does it just have a method like Zlib.is_gzip? file
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
m8 has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
felgenh3 has joined #ruby
oo_ has joined #ruby
itspots has joined #ruby
itspots has quit [Changing host]
itspots has joined #ruby
<graft> guess not... Zlib::Inflate.new calls some thing called inflateInit2
rebelshrug has joined #ruby
oo_ has quit [Remote host closed the connection]
jackneill has quit [Read error: Connection reset by peer]
alvaro_o has joined #ruby
ki0 has quit [Ping timeout: 256 seconds]
spacemud has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
Xeago has joined #ruby
oo_ has quit [Remote host closed the connection]
rebelshrug has quit [Client Quit]
<apeiros> graft: you can use file-magic for that
oo_ has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
oo_ has joined #ruby
Asher has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
spacemud has joined #ruby
EminenceHC has joined #ruby
taiansu has quit [Quit: Leaving...]
paulfm has quit []
oo_ has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
blackmesa has quit [Quit: WeeChat 0.4.3]
oo_ has joined #ruby
centipedefarmer has joined #ruby
jxf has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
BadQuanta has joined #ruby
dawkirst has quit [Remote host closed the connection]
Alina-malina has quit [Quit: https://www.twitter.com/aleena_maleena]
oo_ has quit [Remote host closed the connection]
tjr9898 has joined #ruby
tylerkern has joined #ruby
oo_ has joined #ruby
paulfm has joined #ruby
rismoney1 has joined #ruby
oo_ has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
spacemud has quit [Ping timeout: 240 seconds]
<rismoney1> is there a way to call foo::bar::baz.open(key), where bar is a variable, so it uses its value?
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
SilverKey has joined #ruby
spacemud has joined #ruby
<jhass> Foo.const_get(bar)::Baz.open(key)
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
SilverKey has left #ruby [#ruby]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Alina-malina has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
jabbott has joined #ruby
<jabbott> anyone have any ideas on how to fix this: https://gist.github.com/comdexxsolutionsllc/9f657ae74455a066e002
nateberkopec has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass> start by making it readable and use a code fences (```) in the comment. Then ask #rubyonrails
mikecmpbll has quit [Quit: i've nodded off.]
<jhass> btw. a Gist can have multiple files
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
<rismoney1> don't think the const get works.
oo_ has quit [Remote host closed the connection]
EminenceHC has quit [Remote host closed the connection]
oo_ has joined #ruby
qwyeth has quit [Quit: Leaving]
<jhass> rismoney1: it's hard to decipher the actual question if your provide invalid ruby as example
treehug88 has joined #ruby
qwyeth has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
dru_ has quit [Ping timeout: 250 seconds]
kevkev_____ has joined #ruby
oo_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
RandyT has joined #ruby
<rismoney1> fair - i am doing - Win32::Registry::HKEY_LOCAL_MACHINE.open(key, reg_type) do |reg| ;
oo_ has joined #ruby
<rismoney1> and I would like HKLM to be a variable, so I can substitute HKEY_CURRENT_USER under specific operating circumstances
oo_ has quit [Remote host closed the connection]
djbkd has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass> hkey = condition ? :HKEY_LOCAL_MACHINE : :HKEY_CURRENT_USER; Win32::Registry.const_get(hkey).open(key, reg_type) do |reg|
mikecmpbll has joined #ruby
benzrf|offline is now known as benzrf
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
kopasetik_ has joined #ruby
oo_ has joined #ruby
kopasetik_ has quit [Remote host closed the connection]
rbenv has joined #ruby
oo_ has quit [Remote host closed the connection]
<Hanmac> shevy: havenwood did use my script ... that is the output of it: http://i.imgur.com/KSmpYpf.png ;P
kopasetik_ has joined #ruby
kevkev_____ has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
agrinb has joined #ruby
<benzrf> ew, windows
oo_ has quit [Remote host closed the connection]
apeiros has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.3]
tjr9898 has quit [Remote host closed the connection]
kldskp has joined #ruby
kopasetik_ has left #ruby [#ruby]
oo_ has joined #ruby
koderok has quit [Ping timeout: 264 seconds]
jdj_dk_ has joined #ruby
aspires has quit [Ping timeout: 245 seconds]
ChristianDC has quit [Ping timeout: 244 seconds]
Tricon has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
tjr9898_ has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
PigDude has joined #ruby
centipedefarmer has joined #ruby
ChristianDC has joined #ruby
PigDude has left #ruby [#ruby]
oo_ has joined #ruby
justinv has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
felgenh3 has quit [Quit: felgenh3]
oo_ has joined #ruby
<rismoney1> its good, i had a bad val ;) const_get did the trick
oo_ has quit [Remote host closed the connection]
<rismoney1> tyvm!
centipedefarmer has joined #ruby
heftig has quit [Quit: Quitting]
aspires has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
kldskp has quit [Ping timeout: 264 seconds]
heftig has joined #ruby
superscott[8] has joined #ruby
peret has quit [Remote host closed the connection]
oo_ has joined #ruby
MatthewsFace has joined #ruby
qrohlf has joined #ruby
momomomomo has quit [Quit: momomomomo]
oo_ has quit [Remote host closed the connection]
Shidash has joined #ruby
chrishough has joined #ruby
dru_ has joined #ruby
oo_ has joined #ruby
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
sterlo has quit [Ping timeout: 246 seconds]
InfraRuby has joined #ruby
Asher has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
hfp_ is now known as hfp
hfp is now known as hfp_
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
tylerkern has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
SouL has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
freerobby has joined #ruby
Lavender has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
jonahR has joined #ruby
oo_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
britneywright has joined #ruby
felixjet has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
dawkirst has joined #ruby
oo_ has joined #ruby
TorpedoSkyline has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
jabbott has quit [Quit: Page closed]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
renderful has joined #ruby
saarinen has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo__ has joined #ruby
jimms has joined #ruby
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
Ch0c0late has joined #ruby
matrixdevuk has quit [Quit: Lingo - http://www.lingoirc.com]
oo_ has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
coderhs has quit [Quit: Leaving]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
peret has joined #ruby
relix has joined #ruby
oo_ has quit [Remote host closed the connection]
felgenh3 has joined #ruby
<Ch0c0late> Is it a really bad written/brute force solution in Ruby? http://hastebin.com/ejilanatul
Guest65447 has quit [Ping timeout: 245 seconds]
duncannz has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
abuzze_ has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
TieSoul has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
thams has joined #ruby
abuzze has quit [Ping timeout: 256 seconds]
Spami_ has joined #ruby
oo_ has joined #ruby
icebourg_ has joined #ruby
oo_ has quit [Remote host closed the connection]
icebourg has quit [Ping timeout: 255 seconds]
qrohlf has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
phutchins has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
davispuh has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
justinv has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
falt has joined #ruby
oo_ has joined #ruby
Ch0c0late has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
zorak has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
falt has quit [Client Quit]
yfeldblu_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
babykosh has joined #ruby
yfeldblum has joined #ruby
oo_ has joined #ruby
ryanleesipes has joined #ruby
ryanleesipes has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
tobago has quit [Remote host closed the connection]
oo_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has quit [Quit: Morkel]
oo_ has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
ki0 has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
lw has joined #ruby
oo_ has joined #ruby
havenwood has quit [Remote host closed the connection]
lw has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Quit: Leaving]
<DreamingRainne> Well, largest_pow_2_less could be defined with something like: 1 << Math.log2(n).floor
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<DreamingRainne> >> def largest_pow_2_less(num); 1 << Math.log2(num).floor; end; largest_pow_2_less(50)
<eval-in> DreamingRainne => 32 (https://eval.in/175256)
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<DreamingRainne> Although giving it an actual power of 2 will give the same number back, so maybe use num-1 in the expression instead if you want, say, 32 to map to 16.
ki0 has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
tcstar has joined #ruby
choke has joined #ruby
oo_ has joined #ruby
<DreamingRainne> line 52: turn = 1 - turn
babykosh has quit [Quit: babykosh]
lw has joined #ruby
decoponio has quit [Quit: Leaving...]
lw has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
<DreamingRainne> Or more readably, turn = (turn == 0) ? 1 : 0
<DreamingRainne> Or turn ^= 1
<DreamingRainne> Probably a dozen other ways to do that. Hehe.
lw has joined #ruby
oo_ has joined #ruby
jgt has joined #ruby
oo_ has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
oo_ has joined #ruby
beneggett has joined #ruby
oo_ has quit [Remote host closed the connection]
CaptainJet has joined #ruby
peret has quit [Remote host closed the connection]
beneggett has quit [Client Quit]
havenwood has joined #ruby
oo_ has joined #ruby
beneggett has joined #ruby
<DreamingRainne> Line 49 is basically "n /= 2", and line 50 is "subtract the next lower power of two", in mutually exclusive conditions. However, if the number is already a power of two, they are equivalent and thus the conditions can be dropped.
oo_ has quit [Read error: Connection reset by peer]
<DreamingRainne> So 49 and 50 condense to: n -= largest_pow_2_less(n)
oo_ has joined #ruby
ferr has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
GlenK has quit []
kldskp has joined #ruby
diegoviola has joined #ruby
x1337807x has joined #ruby
oo_ has joined #ruby
St_Marx has joined #ruby
St_Marx has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
x1337807x has quit [Client Quit]
yfeldblu_ has quit [Read error: Connection reset by peer]
beneggett has quit [Client Quit]
oo_ has joined #ruby
yfeldblu_ has joined #ruby
oo_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
Hobogrammer has joined #ruby
oo_ has quit [Remote host closed the connection]
alexju has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
oo_ has quit [Remote host closed the connection]
<DreamingRainne> Or, rather than toggling the turn, just increment it and do "turn % 2" later on to see which one it is.
Hobogrammer_ has quit [Ping timeout: 255 seconds]
ptrrr has joined #ruby
oo_ has joined #ruby
<DreamingRainne> I'm guessing what this does is count the number of bits set in the number, or something? Or correlates to it maybe.
ptrrr has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo_ has joined #ruby
oo_ has joined #ruby
nateberkopec has joined #ruby
felixjet has joined #ruby
Vivekananda_y510 has joined #ruby
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
<DreamingRainne> Behold the perils of having the chat program hide join/part messages: the person I'm responding to isn't here. Hehe.
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
michaeldeol has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
alexju has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
kldskp has quit [Quit: Computer has gone to sleep.]
Vivekananda_y510 has quit [Remote host closed the connection]
thams has quit [Quit: thams]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
IceDragon has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
starkhalo has quit [Read error: Connection timed out]
kevkev_____ has joined #ruby
noop has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
thams has joined #ruby
starkhalo has joined #ruby
oo_ has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
oo_ has joined #ruby
beneggett has joined #ruby
mongag has quit [Quit: Leaving]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
NinoScript has quit [Quit: Textual IRC Client: www.textualapp.com]
ki0 has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
kevkev_____ has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
nanoyak has joined #ruby
beneggett has quit [Client Quit]
oo_ has quit [Read error: Connection reset by peer]
larsam has joined #ruby
oo_ has joined #ruby
kevkev_____ has joined #ruby
oo_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
jimmyhoughjr has quit [Ping timeout: 255 seconds]
justinv has quit [Remote host closed the connection]
oo_ has joined #ruby
tvw has joined #ruby
kachi8 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
bMalum has joined #ruby
oo_ has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has quit [Read error: Connection reset by peer]
kevkev_____ has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
djbkd has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Spami_ has quit [Quit: Leaving]
Neomex has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
Spami has joined #ruby
oo_ has joined #ruby
jtdowney has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
cocotton_ has quit [Remote host closed the connection]
cocotton has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
beneggett has joined #ruby
oo_ has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
jprovazn has quit [Quit: Odcházím]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
justinv has joined #ruby
oo_ has joined #ruby
mark_locklear has quit [Quit: Leaving]
oo_ has quit [Read error: Connection reset by peer]
codecop has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
everett has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
everett has joined #ruby
oo_ has joined #ruby
anildigital is now known as zz_anildigital
bricker`1ork has joined #ruby
ndrei has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
oo__ has joined #ruby
bricker`work has quit [Ping timeout: 240 seconds]
oo__ has quit [Read error: Connection reset by peer]
ndrei has quit [Client Quit]
oo__ has joined #ruby
abuzze has joined #ruby
oo__ has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo__ has joined #ruby
oo__ has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
swks has joined #ruby
abuzze_ has quit [Ping timeout: 256 seconds]
<ramblinpeck> hi all, does anyone know of a good gem for working with WordprocessingML (docx) files? I'm looking for bring in a docx file to use as a template and replace some of the content programatically using something like liquid and output a new docx. Trying to figure out how deep into the WordprocessingML rabbit hole I'm going to have to go for this
ndrei has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
advorak has quit [Remote host closed the connection]
stytown has quit [Quit: stytown]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
jtdowney has quit []
advorak has joined #ruby
Sie00 has joined #ruby
oo_ has joined #ruby
supersco_ has joined #ruby
oo_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ferr has joined #ruby
Sie00 has quit [Remote host closed the connection]
oo_ has joined #ruby
kldskp has joined #ruby
oo_ has quit [Remote host closed the connection]
Sie00 has joined #ruby
renier_ has quit [Ping timeout: 255 seconds]
jtdowney has joined #ruby
oo_ has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
oo_ has quit [Remote host closed the connection]
justinv has quit [Remote host closed the connection]
tjr9898 has joined #ruby
superscott[8] has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
codecop has joined #ruby
jtdowney has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
terrellt has quit [Remote host closed the connection]
oo_ has joined #ruby
Alaude_ has quit [Remote host closed the connection]
nasj has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
advorak has quit [Ping timeout: 250 seconds]
razrunelord has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
Alaude_ has joined #ruby
renier has joined #ruby
hfp_ is now known as hfp
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
zeropx has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
Spami has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
tjr9898 has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
kldskp has quit [Ping timeout: 250 seconds]
Grantlyk has joined #ruby
oo_ has joined #ruby
freerobby1 has joined #ruby
oo_ has quit [Remote host closed the connection]
nasj has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
seanosaur has quit [Remote host closed the connection]
stytown has joined #ruby
oo_ has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`1ork has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
oo_ has joined #ruby
obscured has quit [Quit: leaving]
oo_ has quit [Remote host closed the connection]
<Grantlyk> Hey guys!
oo_ has joined #ruby
kaspertidemann has quit []
oo_ has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
oo_ has joined #ruby
beneggett has joined #ruby
Trynemjoel has quit [Read error: Connection reset by peer]
Sie00 has quit [Ping timeout: 250 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
oo_ has quit [Remote host closed the connection]
swks has quit [Remote host closed the connection]
oo_ has joined #ruby
ssvo has joined #ruby
TorpedoSkyline has quit [Ping timeout: 244 seconds]
bricker`work has joined #ruby
swks has joined #ruby
oo_ has quit [Remote host closed the connection]
failshel_ has joined #ruby
oo_ has joined #ruby
vifino_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass> hi
devoknievo has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
TorpedoSkyline has joined #ruby
jtdowney has joined #ruby
oo_ has joined #ruby
failshel_ has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
jtdowney has quit [Client Quit]
ist has joined #ruby
vifino has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
paulfm has quit []
oo_ has joined #ruby
xkami has joined #ruby
Atttwww has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
jhass is now known as jhass|off
chatrjr has joined #ruby
oo_ has quit [Remote host closed the connection]
marr has joined #ruby
djbkd has quit [Remote host closed the connection]
Sauvin has joined #ruby
oo_ has joined #ruby
Ankhers has quit [Remote host closed the connection]
theharshest is now known as yu4
oo_ has quit [Read error: Connection reset by peer]
zorak has joined #ruby
Ankhers has joined #ruby
oo_ has joined #ruby
elaptics is now known as elaptics`away
Ankhers has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<yu4> can anyone tell me how to generically parse web pages. like for web pages representing product reviews, how can I extract the reviews? as different sites like amazon.com, ebay.com, store.nike.com, follow different div-ids, span-ids, div-class, span-class it cannot be done using the tags.
beneggett has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
<yu4> anyone has experience doing that? any pointers i can look at?
Leehro has quit [Quit: zzz]
kirun has quit [Quit: Client exiting]
oo_ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
jhass|off is now known as jhass
oo_ has joined #ruby
<Grantlyk> Can't you just use a gem like Nokogiri to parse it?
DaniG2k has joined #ruby
oo_ has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
<Grantlyk> @yu4
<yu4> Grantlyk, thanks but as I said, parsing on the basis of tags would be too specific, i cannot be generalized, coz different sites use different ids and classes.
<DreamingRainne> Well, you'd have to adapt it to each site, since they all follow their own conventions. But surely there's some way to pick things out CSS-style, like div.review or whatnot.
oo_ has joined #ruby
<momomomomo> yu4: There's no Gem to say "Grab me all the info I want from this page" without telling it what elements you want
yokel has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
gauke has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Remote host closed the connection]
rubytor has joined #ruby
<momomomomo> however, if you want to write your own deep learning algorithm to discover features about the documents, that's a different thing :P
oo_ has joined #ruby
<yu4> momomomomo: I understand, therefore any machine learning, nlp strategies or suggestions are also welcome
yokel has joined #ruby
<yu4> momomomomo: more interested in using an existing one :)
<DreamingRainne> That? Is well beyond the scope of picking things out of markup. :P
oo_ has quit [Remote host closed the connection]
<Grantlyk> yu4, DreamingRainne, Nokogiri supports parsing on the basis of CSS3
jdj_dk_ has quit [Remote host closed the connection]
Zenigor_ has quit [Remote host closed the connection]
<DreamingRainne> Just have a table of conventions, like "amazon" => ["div", "class", "review"], or whatever.
valner has quit [Remote host closed the connection]
oo_ has joined #ruby
<momomomomo> I don't know which unsupervised algo you could just generically apply yu4
<yu4> DreamingRainne: it won't scale :(
<DreamingRainne> And use whatever code you pick up (such as that Nokogiri) to pick them out.
<Grantlyk> yu4, ofcourse you will need to have your own different scripts for each website, I suggest you start writing them, make a gem out of them and upload it, to help out the next person with your problem
oo_ has quit [Read error: Connection reset by peer]
bmurt has quit []
centipedefarmer has joined #ruby
<DreamingRainne> Well, that's the best you can do since there's no universal semantic markup for that sort of thing, and even if there were, not all of them would use it.
bradleyprice has joined #ruby
oo_ has joined #ruby
<DreamingRainne> There's no <product-review> tag for example, and even if there were, not all would use it. There IS no universal solution here, not even in principle.
oo_ has quit [Remote host closed the connection]
<DreamingRainne> Short of heuristics like looking for an <h2> containing the word "review", or something, but even those are guesswork.
nateberkopec has quit [Ping timeout: 240 seconds]
advorak has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
oo_ has joined #ruby
whomp has quit [Ping timeout: 250 seconds]
stytown has quit [Quit: stytown]
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
renderful has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
<yu4> yes, I already covered basic stuffs like looking at header tags and div with a keyword in its class or id, but can't move further without being too specific
tylerkern has joined #ruby
bradleyp_ has joined #ruby
renderful has joined #ruby
<yu4> thanks everyone for your inputs! :)
oo_ has joined #ruby
<momomomomo> yu4: it's definitely possible to write your own parser for each site
carlyle has joined #ruby
<momomomomo> I think that's what places like track-if do
bradleyprice has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
<momomomomo> time for lunch :p
momomomomo has quit [Quit: momomomomo]
<yu4> momomomomo: I know, but I want to make a generic parser, writing parsers for each site separately would take me forever :)
Hobogrammer has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<DreamingRainne> You don't have to write a new parser for each site. Just write one parser and feed it some parameters tailored to each site.
<pontiki> there are things that do such, but i have no idea if they're open source
mg^ has joined #ruby
nfk has joined #ruby
gregf has joined #ruby
<DreamingRainne> Like, one looks for a div class="reviews", another looks for <td>s containing "review" in bold, whatever.
oo_ has joined #ruby
Alaude_ has quit []
<pontiki> readability, context, pocket, evernote, etc
<DreamingRainne> Maybe make the parser generic enough to be able to work with all of them, given parameters defining what to look for.
oo_ has quit [Remote host closed the connection]
thams has quit [Quit: thams]
<yu4> DreamingRainne: yes that is more practical, thanks
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton_ has joined #ruby
<DreamingRainne> Hell, maybe you can write up something in XSLT and use an XML-transformation library or something, rather than explicitly coding the process. Who knows.
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<Grantlyk> yu4: and then when you're done, share it with the community ;)
<yu4> would RDF help here in anyway?
<yu4> Grantlyk: with pleasure :D
oo_ has joined #ruby
<DreamingRainne> I doubt RDF would help; that's something the content provider would be tasked with, and, again, even if one site does it, that doesn't mean any others will.
oo_ has quit [Remote host closed the connection]
<yu4> DreamingRainne: right
<pontiki> i tried to come up with something in PHP ages ago for scraping and saving pages to a wiki, but it failed more often than not
EvanR has joined #ruby
Guest48339 has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
<Grantlyk> I used to have a python scraper kicking around
EvanR is now known as Guest17569
ldnunes has quit [Quit: Leaving]
oo_ has quit [Read error: Connection reset by peer]
<pontiki> scraping isn't all that hard. scraping generically is a bit of work
<benzrf> ew, php
cocotton has quit [Ping timeout: 240 seconds]
<pontiki> stop it
<pontiki> i'm not interested in your bigotry
oo_ has joined #ruby
Guest72361 is now known as Radar
<Grantlyk> Everyone has to start somewhere benzrf haha
<DreamingRainne> Maybe go ahead and write up separate scrapers for a few sites, then, with that experience, see what parts of it they have in common, and try to make them more generic/parameterizeable.
abuzze has quit []
oo_ has quit [Read error: Connection reset by peer]
bartj3 has joined #ruby
abuzze has joined #ruby
<Grantlyk> Then upload it to github and let us all write the most generic parser known to mankind
<yu4> schema.org is lot helpful as many many sites are following it
yu4 is now known as theharshest
Grantlyk has quit []
oo_ has joined #ruby
abuzze has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
abuzze has joined #ruby
cocotton_ has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
jgt has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
BeanDip_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
thams has joined #ruby
oo_ has joined #ruby
kevkev_____ has joined #ruby
justinv has joined #ruby
oo_ has quit [Remote host closed the connection]
Ilyas has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
oo_ has quit [Read error: Connection reset by peer]
axl_ has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
Petru has joined #ruby
djbkd has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has quit [Read error: Connection reset by peer]
stytown has joined #ruby
slash_ni1k is now known as slash_nick
slash_nick has quit [Changing host]
slash_nick has joined #ruby
oo_ has joined #ruby
xkami has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
swks has quit [Remote host closed the connection]
kevkev_____ has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
Tricon has quit [Quit: Leaving...]
krisquigley has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
oo_ has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InfraRuby has left #ruby [#ruby]
oo_ has quit [Remote host closed the connection]
silentpost has joined #ruby
oo_ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abuzze_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
oo_ has joined #ruby
razrunelord has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
tjr9898 has quit [Remote host closed the connection]
jerius has quit []
AlexRussia has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
tjr9898 has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
aspires has quit []
devoknievo has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
beneggett has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Ping timeout: 240 seconds]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
abuzze has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
jgt has joined #ruby
rubytor has joined #ruby
mattstratton has joined #ruby
jgt has quit [Remote host closed the connection]
freeone3000 has joined #ruby
<freeone3000> Rails question. I have https://gist.github.com/freeone3000/97b09b17ee45e354b9e2 when attempting to run my server with `rails server`. What's the cause of this?
oo_ has joined #ruby
JohnFord has joined #ruby
oo_ has quit [Remote host closed the connection]
<godd2> try #rubyonrails
ChristianDC has left #ruby ["WeeChat 0.4.3"]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
tjr9898 has quit [Ping timeout: 264 seconds]
tjr9898_ has joined #ruby
oo_ has joined #ruby
saarinen has joined #ruby
AlexRussia has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
tjr9898_ has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
chatrjr has quit [Quit: Leaving]
tjr9898 has joined #ruby
oo_ has joined #ruby
Trynemjoel has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
* felgenh3 your joining nil.join somewhere
Nahra has joined #ruby
oo_ has joined #ruby
Wolland_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
dawkirst has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
oo_ has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
oo_ has quit [Remote host closed the connection]
cuqa has joined #ruby
carlyle has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
axl__ has joined #ruby
oo_ has joined #ruby
OrangeJewce has joined #ruby
ziyadb has joined #ruby
relix has joined #ruby
oo_ has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 240 seconds]
<OrangeJewce> Hi all, using Nokogiri, how can I select a div that has a class name which contains spaces?
oo_ has joined #ruby
axl_ has quit [Ping timeout: 260 seconds]
axl__ is now known as axl_
jottr_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<jhass> OrangeJewce: class names can't contain spaces
dawkirst has quit [Ping timeout: 244 seconds]
amargherio has quit [Remote host closed the connection]
<jhass> it's likely a div with multiple classes (they're separated by spaces)
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<OrangeJewce> god
<OrangeJewce> darnit
<OrangeJewce> Thanks
* mikedugan is away: rm -rf /
oo_ has joined #ruby
aspires has quit []
oo_ has quit [Read error: Connection reset by peer]
_lucid__ has joined #ruby
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
oo_ has joined #ruby
<_lucid__> Hi
oo_ has quit [Read error: Connection reset by peer]
itspots has quit [Quit: Computer has gone to sleep.]
<jhass> OrangeJewce: that said for nokogiri it's a regular attribute: doc.at("div[class='foo bar']")
<_lucid__> Does anyone here know about receiving packets with PacketFu
<_lucid__> ?
AlexRussia has quit [Ping timeout: 255 seconds]
kldskp has joined #ruby
iamjarvo has joined #ruby
InfraRuby has joined #ruby
oo_ has joined #ruby
itspots has joined #ruby
itspots has quit [Changing host]
itspots has joined #ruby
silentpost has quit [Quit: silentpost]
oo_ has quit [Read error: Connection reset by peer]
larsam has quit [Quit: Exit]
Vivekananda_y510 has joined #ruby
oo_ has joined #ruby
charliesome has quit [Client Quit]
justinv has quit [Remote host closed the connection]
supersco_ is now known as superscott[8]
<_lucid__> Is there a way to filter for RST packets in PacketFu::Capture? Or alternatively to detect if I've received RST packets with another method?
seanosaur has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
rubytor has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
AlexRussia has joined #ruby
oo_ has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
oo_ has joined #ruby
<OrangeJewce> jhass if I try to select anything but the first classname in that way I am getting an empty list
kldskp has quit [Ping timeout: 250 seconds]
oo_ has quit [Read error: Connection reset by peer]
Sgeo has joined #ruby
itspots has quit [Ping timeout: 250 seconds]
britneywright has joined #ruby
michaeldeol has joined #ruby
<OrangeJewce> if I use doc.css
livingstn has quit []
moted has quit []
oo_ has joined #ruby
jmbrown412 has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
lw has quit [Read error: Connection reset by peer]
oo_ has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass> _lucid__: just looking at the docs, it looks like you can pass tcpdump style filter expressions with the filter option to Capture.new
tvw has quit []
lw has joined #ruby
seanosaur has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
itspots has joined #ruby
itspots has quit [Changing host]
itspots has joined #ruby
phoo1234567 has quit [Quit: Leaving]
oo_ has joined #ruby
dblessing has quit [Quit: dblessing]
jtdowney has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<jhass> that is bpf syntax
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
jtdowney has quit [Client Quit]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
carlyle has joined #ruby
saarinen has quit [Quit: saarinen]
postmodern has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
krisquigley has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
oo_ has joined #ruby
t0rc has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
codecop has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
silentpost has joined #ruby
oo_ has quit [Remote host closed the connection]
AlSquire has joined #ruby
oo_ has joined #ruby
<_lucid__> jhass: to a degree, but once you get to trying to filter tcpdump for RST packets it seems a little too complex for PacketFu::Capture's filter
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
<SegFaultAX> oo_: Fix your client.
oo_ has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
oo_ has joined #ruby
Atrumx has joined #ruby
kireevco has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
w09x has joined #ruby
charliesome has joined #ruby
kireevco has joined #ruby
charliesome has quit [Client Quit]
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
<jhass> _lucid__: so something like filter: 'tcp[tcpflags] & tcp-rst != 0' doesn't work?
oo_ has quit [Remote host closed the connection]
testcore has quit [Ping timeout: 264 seconds]
justinv has joined #ruby
oo_ has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Read error: Connection reset by peer]
gtrak has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
jonathanwallace_ has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
xkami has joined #ruby
mikesplain has joined #ruby
oo_ has joined #ruby
Lucky___ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
andrewlio has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
JohnFord has quit [Quit: Textual IRC Client: www.textualapp.com]
mikedugan has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
saarinen has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
renderful has joined #ruby
aspires has joined #ruby
Vivekananda_y510 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<jhass> _lucid__: digging a bit through the source it calls Pcap.setfilter with that value which calls the pcap_compile and pcap_setfilter C functions whose format is described in pcap-filter(7)
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass> which has an example like tcp[tcpflags] & (tcp-syn|tcp-fin) != 0, so I'd expect that to work
Spami has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
alem0lars has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
whomp has joined #ruby
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
t0rc has quit [Quit: WeeChat 0.4.3]
oo_ has quit [Remote host closed the connection]
beardofbees has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<beardofbees> hey, anyone using Middleman? I can't find how to add something into the <head> of a page without making a whole new layout.erb. In this case, adding in meta description
kevkev_____ has joined #ruby
oo_ has joined #ruby
OrangeJewce has quit [Quit: Leaving.]
Spami has joined #ruby
oo_ has quit [Remote host closed the connection]
j_mcnally has quit [Quit: ZNC - http://znc.in]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
oo_ has joined #ruby
<pontiki> beardofbees: have you tried using content_for ?
devoknievo has joined #ruby
icarus has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
<beardofbees> Would it be <%= current_page.data.meta %>
<beardofbees> pontiki: I haven't even heard of that :) The frontmatter page on their site isn't too helpful for me...
oo_ has joined #ruby
<pontiki> look at template helpers
alem0lars has quit [Quit: alem0lars]
saarinen has joined #ruby
oo_ has quit [Remote host closed the connection]
mikedugan has joined #ruby
oo_ has joined #ruby
kevkev_____ has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
felgenh3 has quit [Quit: felgenh3]
<beardofbees> so I could put a content_for anywhere because it's in an .erb correct?
charliesome has joined #ruby
<beardofbees> as opposed to in the YAML at the frontmatter
advorak has quit [Quit: Ex-Chat]
oo_ has joined #ruby
mikesplain has joined #ruby
<beardofbees> I'll try an experiment
oo_ has quit [Remote host closed the connection]
testcore has joined #ruby
oo_ has joined #ruby
ziprar has joined #ruby
ziprar has joined #ruby
ziprar has quit [Changing host]
oo_ has quit [Remote host closed the connection]
asmodlol has quit [Quit: Leaving]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<beardofbees> hmm
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<beardofbees> i did the content_for in my index.html.erb but it isn't showing with the rendered server's page
oo_ has quit [Remote host closed the connection]
<jhass> did you defined a corresponding yield_content somewhere?
oo_ has joined #ruby
ericmathison has quit [Quit: leaving]
nanoyak has quit [Quit: Computer has gone to sleep.]
silentpost has quit [Quit: silentpost]
devoknievo has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
justinv has quit [Remote host closed the connection]
devoknievo has joined #ruby
nanoyak has joined #ruby
oo_ has joined #ruby
<beardofbees> jhass: Nope! So I'll put something in the <head> for layout.erb...
zipace has quit [Ping timeout: 255 seconds]
oo_ has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
Fratz has quit [Quit: Nettalk6 - www.ntalk.de]
oo_ has joined #ruby
<beardofbees> so does that just look like <%= yield_content :assets %> ?
apeiros has joined #ruby
oo_ has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
tylerkern has joined #ruby
moted has joined #ruby
oo_ has joined #ruby
<pontiki> just like on the documentation page
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
w09x has quit []
oo_ has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
<|RicharD|> hi
tjr9898 has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
oo_ has quit [Remote host closed the connection]
aspires has quit []
oo_ has joined #ruby
carlyle has quit [Remote host closed the connection]
pumpkin360 has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
<|RicharD|> I have a sinatra app and a rails app that communicate together
oo_ has quit [Read error: Connection reset by peer]
<|RicharD|> when I do the call from my sinatra app to rails app sometimes I get this error in rails app:ActionDispatch::ParamsParser::ParseError (795: unexpected token
silentpost has joined #ruby
oo_ has joined #ruby
<beardofbees> got it. <meta name="description" content=<%= current_page.data.metadescription %> />
<beardofbees> in the head.
oo_ has quit [Read error: Connection reset by peer]
charliesome has quit [Read error: Connection reset by peer]
<|RicharD|> the problem is not about rails but how i do the call
kldskp has joined #ruby
<|RicharD|> because I tried with a sintra app as server and I got the same error
ki0 has quit [Remote host closed the connection]
oo_ has joined #ruby
Zebroid has quit [Remote host closed the connection]
BadQuanta has joined #ruby
oo_ has quit [Remote host closed the connection]
thams has quit [Quit: thams]
redondos has quit [Disconnected by services]
oo_ has joined #ruby
charliesome has joined #ruby
redondos- has joined #ruby
axl_ has quit [Quit: axl_]
oo_ has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
<slash_nick> |RicharD|: seems like the error is truncated in your gist... could you add the full trace?
oo_ has joined #ruby
<|RicharD|> then simply
<|RicharD|> there are my params
kldskp has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
<|RicharD|> email="myemail", email_token="asdkwsd1sd.1123222", label_id="Label_1"
<|RicharD|> something like this
<|RicharD|> I can't copy the real token :(
oo_ has joined #ruby
<|RicharD|> but I noticed that if I put a binding.pry before:
<pumpkin360> Hi. I am wondering (and even don't know how to google it), is it possible to print the lenght of an array and the array itself without assigining it to a variable or coping it twice? Maybe something like array.enum_for(:some_method) but the other way around (methods_array).foreach(args)
lw_ has joined #ruby
<|RicharD|> response = http.request(request)
oo_ has quit [Remote host closed the connection]
<|RicharD|> and I do again: request.set_form_data({"email" => current_user.email, "email_token" => current_user.access_token, "label_id" => current_user.label_id})
<|RicharD|> it works
<pontiki> pumpkin360: array.size, array.count, array.length are all synonyms
<slash_nick> puts "#{array.length} #{array.inspect}"
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
itspots has quit [Quit: Lingo - http://www.lingoirc.com]
lw has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
lw has joined #ruby
lw_ has quit [Read error: Connection reset by peer]
<Mon_Ouie> pontiki: array.count is not a synonym
oo_ has quit [Remote host closed the connection]
mleone has joined #ruby
<Mon_Ouie> >> [1, 2, 3].count(&:even?)
<eval-in> Mon_Ouie => 1 (https://eval.in/175369)
agrinb has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 255 seconds]
<Mon_Ouie> >> [1, 2, 3].size(&:even?)
<eval-in> Mon_Ouie => 3 (https://eval.in/175370)
dawkirst has quit [Ping timeout: 250 seconds]
<pontiki> it's not?
oo_ has joined #ruby
agrinb has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
agrinb has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<pontiki> i never knew you could pass it a block
aspires has joined #ruby
agrinb has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<pumpkin360> slash_nick: I don't have the array, I create it on-the-go
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
aspires has quit [Client Quit]
bradleyp_ has quit [Remote host closed the connection]
<pumpkin360> slash_nick: and don't want to do it twice because: 1) it is inefficient 2) the code responsible for it is not so short and it would not take lots of space
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
redondos- is now known as redondos
<pumpkin360> also I take some input on the go.
aspires has joined #ruby
oo_ has joined #ruby
<pumpkin360> "puts (1..gets.to_i).size"
oo_ has quit [Remote host closed the connection]
<pumpkin360> how to make it also print the content?
mikesplain has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
o0oo0o has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
ferr has quit [Ping timeout: 260 seconds]
punto has joined #ruby
oo_ has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
<Mon_Ouie> Maybe something like class Enumerable; def while_doing(&x); Enumartor.new { |y| each { |x| yield x; y << x } }; end; end
<Mon_Ouie> module*
mary5030 has quit [Remote host closed the connection]
oo_ has joined #ruby
<punto> hi.. I have a script with "def logger ::Rails.logger end", how do I change it to print to stdout?
mary5030 has joined #ruby
<DreamingRainne> pumpkin360: Assigning to a variable is quite efficient: Ruby deals in references, it doesn't do copy-on-write or anything. Just do that and be done with it.
threesixes has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie> "It doesn't do copy-on-write" -> this makes it sound like you don't know what copy-on-write refers to…
oo_ has joined #ruby
<DreamingRainne> punto: Well, if Rails.logger takes input the same as regular IO, just drop in $stdout in its place, or something.
oo_ has quit [Remote host closed the connection]
<Mon_Ouie> (And e.g. ruby arrays and strings use copy-on-write, as an optimization)
<DreamingRainne> Mon_Ouie: Er, yeah, wrong term; assignment doesn't copy, it just makes another reference.
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<punto> DreamingRainne: they call it like logger.debug "some string"
<Mon_Ouie> pumpkin360: But yes, that trick works if you fix Enumerator*
<DreamingRainne> [several_gigabyte_object] * 100 # no bigger than any other 100-element array; just 100 references to the same object.
oo_ has joined #ruby
<pontiki> punto: very briefly, def logger; @my_logger ||= Logger.new(STDOUT); end
<pontiki> but you should really look a the Logger stdlib
snath has quit [Ping timeout: 250 seconds]
oo_ has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
devoknievo has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
funburn has joined #ruby
<pumpkin360> DreamingRainne: it is more about the style of coding and not the efficiency when it comes to assigment. The efficiency is a reason not to do this : puts (1..n).size.to_s + " " (1..n).to_a.inspect
mary5030 has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
rbenv has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
<DreamingRainne> Indeed, so assign it to a variable and use that, rather than creating a different object each time.
oo_ has joined #ruby
saarinen has joined #ruby
alexju has joined #ruby
oo_ has quit [Remote host closed the connection]
<DreamingRainne> You could probably just define something simple like: def with(obj); yield obj; end And then do something like: with(1..n){ |r| puts "#{r.size} #{r.to_a}" }
<Mon_Ouie> Also is this just an example? Because Range#size does not iterate over the range
kaspergrubbe_ has quit []
oo_ has joined #ruby
<pumpkin360> Mon_Ouie: yes, this is just an example.
oo_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
oo_ has joined #ruby
<pumpkin360> DreamingRainne: this looks nice, needs to define a bit strange function though. But there come lambdas!
oo_ has quit [Remote host closed the connection]
<Mon_Ouie> We already have tap
treehug88 has quit [Ping timeout: 256 seconds]
<Mon_Ouie> >> 3.tap { |x| puts x }
<eval-in> Mon_Ouie => 3 ... (https://eval.in/175371)
<DreamingRainne> The point being that the 'r' only lives in the scope of the block, rather than needing a derp..end block.
oo_ has joined #ruby
razrunelord has joined #ruby
<DreamingRainne> Or use that, which looks like basically the same thing, just coming "out of" the object rather than "around" it.
<banister_> Mon_Ouie 'alut!
o0oo0o has joined #ruby
<Mon_Ouie> 'alut
oo_ has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
<banister_> Mon_Ouie i'm thinking of moving to brugges, do you guess it can be a nice place to live or do you think it's going to be so inundated with tourists that i'm going to be unable to live an authentic life
DrShoggoth has quit [Quit: Leaving]
oo_ has quit [Read error: Connection reset by peer]
<Mon_Ouie> My sister used to live in Brugge, it's a pretty nice place to be
oo_ has joined #ruby
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
vifino_ has quit [Quit: Ze Cat now leaves...]
oo_ has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinv has joined #ruby
oo_ has joined #ruby
<pumpkin360> DreamingRainne, Mon_Ouie: thanks for the help.
<shevy> Brugge is meschugge
carlyle has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
xkami has quit [Quit: The quieter you become the more you are able to hear]
thams has joined #ruby
dh64 has joined #ruby
oo_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
qwyeth has quit [Remote host closed the connection]
oo_ has joined #ruby
Hobogrammer has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
freerobby1 has quit [Quit: Leaving.]
InfraRuby has left #ruby [#ruby]
carlyle has quit [Ping timeout: 264 seconds]
funburn has quit [Ping timeout: 260 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
funburn has joined #ruby
seanosaur has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
m8 has quit [Quit: Sto andando via]
oo_ has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
oo_ has joined #ruby
CaptainJet has quit []
jhass is now known as jhass|off
tkuchiki has joined #ruby
felgenh3 has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
Kricir has joined #ruby
Channel6 has joined #ruby
freerobby has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
spider-mario has quit [Read error: Connection reset by peer]
rageberry has joined #ruby
larissa has joined #ruby
olivier_bK has joined #ruby
kevkev_____ has joined #ruby
aspires has quit []
rbartos has joined #ruby
Avahey_ has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has joined #ruby
tolo123 has joined #ruby
macclearich__ has quit [Quit: Lingo - http://www.lingoirc.com]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 244 seconds]
snath has joined #ruby
aspires has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
testcore has quit [Ping timeout: 264 seconds]
beardofbees has quit [Ping timeout: 255 seconds]
aspires has joined #ruby
Shidash has quit [Ping timeout: 255 seconds]
kevkev_____ has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
mikedugan has quit [Ping timeout: 244 seconds]
nanima has joined #ruby
nanima has left #ruby [#ruby]
olivier_bK has quit [Ping timeout: 256 seconds]
icebourg_ has quit []
InfraRuby has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silentpost has quit [Quit: silentpost]
Spami has quit [Ping timeout: 250 seconds]
kireevco has quit [Read error: Connection reset by peer]
ferr has joined #ruby
kireevco has joined #ruby
kldskp has joined #ruby
axl_ has joined #ruby
ferr has quit [Client Quit]
spastorino has quit [Quit: Connection closed for inactivity]
ki0 has joined #ruby
Spami has joined #ruby
silentpost has joined #ruby
Wolland has joined #ruby
seanosaur has quit []
nanoyak has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Quit: Leaving]
carlyle has joined #ruby
nanoyak has joined #ruby
funburn has quit [Ping timeout: 260 seconds]
kldskp has quit [Ping timeout: 250 seconds]
seanosau_ has joined #ruby
InfraRuby has left #ruby [#ruby]
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
ki0 has quit [Ping timeout: 250 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
funburn has joined #ruby
felgenh3 has quit [Quit: felgenh3]
Wolland has joined #ruby
seanosaur has joined #ruby
b00stfr31k has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 244 seconds]
seanosau_ has quit [Client Quit]
mikedugan has joined #ruby
djbkd has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
testcore has joined #ruby
bronson has joined #ruby
carlyle has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
circ-user-Za5qM has joined #ruby
lw has quit [Quit: s]
silentpost has quit [Quit: silentpost]
lidaaa has joined #ruby
lidaaa has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
|RicharD| has quit [Quit: Sto andando via]
lidaaa has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
lidaaa has quit [Max SendQ exceeded]
lidaaa has joined #ruby
lidaaa has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
freerobby has left #ruby [#ruby]
felgenh3 has joined #ruby
saarinen has joined #ruby
_lucid__ has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
omosoj has joined #ruby
jayunit100 has quit [Quit: jayunit100]
thams has quit [Quit: thams]