jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
wildroman2 has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 250 seconds]
<Senjai> bougyman: https://gist.github.com/Senjai/7fbe5f9b7181a1574513 is what we use to manage unicorn
nofxx has joined #ruby
nofxx has joined #ruby
<Senjai> I mean yeah, I get that unicorn requires a little leg work to use nicely, but I still stand by the fact that it's super powerful at what it can do
Igorshp has joined #ruby
<bougyman> Senjai: http://sprunge.us/MWWb?sh
<bougyman> there's mine
NeverDie has quit [Max SendQ exceeded]
<Senjai> Ah, we needed a script that can be passed to systemd.
<bougyman> oh, and http://sprunge.us/cEHB?ruby
<bougyman> yeah, runit, here.
whippythellama has quit [Ping timeout: 272 seconds]
<Senjai> bougyman: What do you use to host your stack?
charliesome has joined #ruby
<bougyman> Senjai: runit-ed ubuntu
sevenseacat has joined #ruby
<bougyman> for now.
Guest24828 has quit [Ping timeout: 252 seconds]
<Senjai> bougyman: I mean like, EC2? Opsworks?
<bougyman> we're going to move to either void snapshots or alpine, before ubuntu's next release.
<bougyman> Senjai: a variety.
<elektronaut> i like passenger well enough. i've got a ton of mostly low traffic apps running on dozens of servers, i love that it's pretty much set and forget.
<bougyman> we have quite a bit of our our own bare metal which we virtualize with lxc.
Igorshp has quit [Remote host closed the connection]
<bougyman> then leverage VPSie, OVH, Vultr, Rackspace, AWS, and DigitalOcean
<Senjai> That sounds pretty involved
<bougyman> as well as some local providers in other joint.
<bougyman> not at all.
<bougyman> it's all just knife <some shit>
<Senjai> Aye, we got rid of our chef stack largely by swapping over to Opsworks
<Senjai> should check it out :)
<bougyman> have
<Senjai> except for those cookbooks I linked
<bougyman> it doesn't really matter which cfgmanager you use.
<bougyman> just do it intelligently.
eggoez has joined #ruby
<Senjai> Opsworks isn't a cfgmanager
<Senjai> :P
<bougyman> i could make arguments for ansible, salt, juju, name it.
<bougyman> AWS OpsWorks is an application management service
<bougyman> from page 1
<bougyman> cfgmanagement, application management, plz let's not go semantic.
NeverDie_ has joined #ruby
<Senjai> Sure, I just haven't heard it be called that before
<bougyman> well I started with home-baked automation, of course.
zivix is now known as cbednarski
<bougyman> then cfgengine showed up and it was like wow.
<bougyman> this was over a decade ago
sdwrage has quit [Quit: Leaving]
<Senjai> I'm a big opsworks fan. Deployments are DEAD simple https://github.com/freerunningtech/oops
<bougyman> deployments are done by ci, here.
<bougyman> we haven't touched a deployment in over a year.
<Senjai> Ours our too
<Senjai> Done with jenkins
<bougyman> buildbot, here
<Senjai> under the hood, jenkins uses oops though
<Senjai> I'll have to checkout buildbot
jackjackdripper has joined #ruby
<bougyman> in any case... there's no one perfect tool. do it right and any of them will get you the right results.
jackjackdripper1 has quit [Read error: Connection reset by peer]
x44x45x41x4E has quit [Remote host closed the connection]
<Senjai> I can't argue with that
danman has quit [Quit: danman]
j4cknewt has quit [Remote host closed the connection]
ndhamecom has quit [Quit: Textual IRC Client: www.textualapp.com]
<bougyman> build.voidlinux.eu
<bougyman> use it in my open source distro, too :)
fabrice31 has joined #ruby
<bougyman> actually I started using it at $dayjob after I was introduced to it by the void fellas
<bougyman> we used Gerrit/Jenkins before and everybody hated it.
<Senjai> You're a void contributor?
<bougyman> everyone loves buildbot
<bougyman> yessi,.
<Senjai> Nice
<bougyman> *yessir
<Senjai> Going to add you to my list of peoplr worth talking to :)
<Senjai> people*
simplyianm has quit [Read error: Connection reset by peer]
failshell has quit []
<Senjai> I've considered trying out Fedora
<Senjai> I run Ubuntu Gnome atm, with what will be Awesome
simplyianm has joined #ruby
mgeek has quit [Quit: Page closed]
NeverDie_ is now known as NeverDie
fabrice31 has quit [Ping timeout: 245 seconds]
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
<bougyman> we just got gnome working again.
<bougyman> it's quite the pita, without systemd
<bougyman> but it's finally running smooth again.
<bougyman> archlinux, which has systemd, has a crappy gnome atm.
<bougyman> heh.
uptownhr has joined #ruby
nickfausnight has quit [Quit: Connection closed for inactivity]
<bougyman> Senjai: if musl interests you, we recently added full musl images/repos
<bougyman> well, not as many packages build on musl.
cndiv has quit []
<bougyman> musl doesn't like bad C, and we can only patch so fast.
segfalt has quit [Ping timeout: 276 seconds]
<bougyman> having access to alpine's patches help.
Yiota has joined #ruby
Casty has joined #ruby
jfarmer has joined #ruby
Pupeno has joined #ruby
j4cknewt has joined #ruby
jfarmer has quit [Max SendQ exceeded]
<bougyman> we also keep daily snapshots (though we had a big gap :( ): http://archive.voidlinux.com/ and to round this back to ruby: https://github.com/voidlinux/documentation/wiki/RVM-Ruby-installation
<shevy> <bougyman> archlinux, which has systemd, has a crappy gnome atm.
<shevy> no wonder
<shevy> it has systemd!!!!!!!!!
dgutierrez1287 has joined #ruby
jfarmer has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
jfarmer has quit [Client Quit]
Guest82953 is now known as graft
<Senjai> bougyman: I'll check it out
<Senjai> bougyman: But I dont need gnome
<Senjai> I just want to boot into awesome
<Senjai> I use gnome for certain other things but yeah
<bougyman> can do
fgo has joined #ruby
<bougyman> hit me up on #xbps for a non-DE way to do that.
<Senjai> Sure, I might poke at it over the weekend for like my laptop or something to start
uptownhr has quit [Quit: uptownhr]
<bougyman> careful: void is known to cause excessive idle processor and underutilize ram.
<arcanez> am I the only one that uses xfce?
<bougyman> you may suffer from a quiet computer that gets extra long battery life.
wallerdev has joined #ruby
marr has quit [Ping timeout: 264 seconds]
<Senjai> arcanez: Most in our office that dont use tiled window manager, uses xfce
<Senjai> I think I'm the only gnome one left
<arcanez> I can't tile :(
<sevenseacat> hello from unity-land
<bougyman> I guarantee i'm the only on in here using stumpwm
Pupeno has quit [Ping timeout: 265 seconds]
<bougyman> there's only 15 of us in the world, and none use ruby other than me.
<Senjai> sevenseacat: TEARS :( My subjective opinion that unity is terrible is totally more meritous than yours.
<sevenseacat> lol
<Senjai> One guy uses i3 here, another uses dwm
<elektronaut> i swore off linux on the desktop 10 years ago, but i should probably give it a chance again
<Senjai> a few xmonad users
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uptownhr has joined #ruby
<sevenseacat> that being said, i'm typing this from OSX because my work machine is a mbp
<bougyman> why people can't appreciate the elegance of a lisp machine as one's desktop is beyond me.
northfurr has quit [Quit: northfurr]
<bougyman> i've used stump since it replaced ratpoison.
<Senjai> bougyman: not beyond me
<Senjai> :P
<elektronaut> i use emacs, totally get it :)
<bougyman> I don't have a media player or xdgblahblah or an image viewer or most of the std apps people have to have.
<bougyman> it's all just part of the lisp machine
<bougyman> elektronaut: imagine that but as your desktop.
<shevy> hey sevenseacat you have become an OSX-cat now
zenguy_pc has quit [Read error: Connection reset by peer]
sharpmachine has quit [Remote host closed the connection]
<elektronaut> at this pace, emacs is going to end up as my desktop
<shevy> (I(imagine(a(lisp(machine(here
<sevenseacat> shevy: unfotunately.
<bougyman> elektronaut: the funny thing is, i'm one of the few lispers who uses vim as an editor.
<bougyman> I can't use emacs.... stumpwm takes all the keybindings :)
j4cknewt has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
charliesome has quit [Quit: zzz]
Xeago has quit [Remote host closed the connection]
uptownhr has quit [Client Quit]
<bougyman> slime.vim finally got usable enough that I don't miss anything from emacs integration.
krisquigley has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
jtdoncas has joined #ruby
rubie has joined #ruby
michaeldeol has quit [Ping timeout: 245 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
jenrzzz has quit [Ping timeout: 250 seconds]
<elektronaut> nice
RobertBirnie has quit [Ping timeout: 272 seconds]
robustus has quit [Ping timeout: 264 seconds]
<elektronaut> currently on my lisp pilgrimage, which i suppose happens to all programmers at one point in life
<bougyman> scheme or c-l?
krisquigley has quit [Ping timeout: 246 seconds]
<elektronaut> scheme (sicp) and clojur
robustus|Off has joined #ruby
<elektronaut> +e
robustus|Off is now known as robustus
<bougyman> clojure is lispish.
Yiota has joined #ruby
<bougyman> i dunno any schemer or common lisper who would acknowledge clojure as "a lisp"
<elektronaut> true. it's an interesting language, though.
<bougyman> agree
msnyon has quit [Read error: Connection reset by peer]
<bougyman> clojurescript is quite nice.
<bougyman> we're so far off-topic I don't know how to get back.
* bougyman cigarette
slash_nick has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
daveg_ has joined #ruby
daveg_ has quit [Max SendQ exceeded]
<zenspider> I would acknowledge clojure as a lisp. So would phil hagelberg... I suspect a lot of ppl would.
<zenspider> I don't _like_ it, necessarily... but it's definitely a lisp
daveg_ has joined #ruby
<zenspider> I'm much more of a fan of racket, personally
<zenspider> elektronaut: welcome to your pilgrimage. :)
et09 has quit [Ping timeout: 272 seconds]
icebourg has quit []
<acsigusz> ruby isn't considered a lisp?
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
bgmarx_ has joined #ruby
<zenspider> no
oo_ has joined #ruby
<acsigusz> not even lispy?
enebo has quit [Quit: enebo]
Marsupermammal has joined #ruby
sdothum has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
Pupeno has joined #ruby
<acsigusz> when writing nested do end blocks it sure reminds me of something quasi lisp, at least
blaines has joined #ruby
bgmarx has quit [Ping timeout: 265 seconds]
daveg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> acsigusz, Ruby has functional parts, such as enumerable blocks, and can be written in a very functional way, but is not technically a functional programming language
commondream has joined #ruby
bgmarx_ has quit [Ping timeout: 255 seconds]
<noethics> technically any language that supports functional programming is a functional language
<noethics> ~technically~
zenguy_pc has joined #ruby
bkxd has joined #ruby
<centrx> Yeah I tend to think of it as supporting functional programming
<centrx> I guess I mean "not popularly considered a functional language"
<noethics> maybe you mean it's a functional declarative language
slash_nick has quit [Ping timeout: 244 seconds]
MyMind has joined #ruby
<centrx> interesting
jtdoncas has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<noethics> centrx, lol oops
<noethics> i meant imperative
ProLoser has joined #ruby
<noethics> i get them mixed up on the daily
<ProLoser> can someone please suggest a better way to do this? http://hastebin.com/vihogivevo
<centrx> it's more object-oriented
Pupeno has quit [Ping timeout: 276 seconds]
<bougyman> no, that is horrible and I can't read it
<centrx> ProLoser, I assume that stuff on the right is just a mistake duplication?
<noethics> yeah that's not mutually exclusive though
Akagi201 has joined #ruby
<ProLoser> centrx: the stuff on the right is shitty engineering
<noethics> lol
<sevenseacat> ow, wtf is with that code
<ProLoser> like i said
<ProLoser> what's the "proper" way
commondream has quit [Ping timeout: 256 seconds]
<elektronaut> i'd argue the stuff on the left is shitty engineering as well :p
<ProLoser> in js i'd use some sort of Object.assign or extend()
<ProLoser> i don't know ruby
<ProLoser> additionally, i need to whitelist the hash
<elektronaut> is this rails?
<ProLoser> i just realized, yes the doubling is accidental
<ProLoser> sorry
<ProLoser> i copied a huge diff
Sembei has quit [Ping timeout: 276 seconds]
<sevenseacat> use strong params to select the params you want
blaines has quit [Ping timeout: 252 seconds]
msnyon has joined #ruby
BanzaiJoe has quit [Ping timeout: 252 seconds]
<ProLoser> i may want more (i figure) but they may not be used for this part of the code
<noethics> i think that the whole user_params array isnt necessary at all
<zenspider> that's just awful.
kyle__ has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
<kyle__> How do you test a return code in mechanize? I found some examples, but they don't appear to work anymore. I know I can do it with Net::HTTP, but was hoping to use just one library to keep things simple.
<ProLoser> noethics: so would you just add the uuid to params?
<ProLoser> is it normal to add to params?
<kyle__> well, they don't work, if there's a 404.
<noethics> ProLoser, yeah probably
<noethics> or make a copy
<elektronaut> user_params = { uuid: @user.uuid }.merge(params.reject_if { |k, v| v.nil? })
<elektronaut> should be equivalent, but you probably want to look into strong parameters if you're using rails
dudo has joined #ruby
auzty has joined #ruby
blaines has joined #ruby
msnyon has quit [Ping timeout: 264 seconds]
Evidlo has left #ruby ["WeeChat 1.0.1"]
workmad3 has joined #ruby
jtdoncas has joined #ruby
drewo has quit [Ping timeout: 246 seconds]
danman has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
jtdoncas has quit [Client Quit]
charliesome has joined #ruby
torpig has quit [Ping timeout: 256 seconds]
danman has quit [Client Quit]
FernandoBasso has quit [Ping timeout: 265 seconds]
<elektronaut> proloser: sorry, that doesn't whitelist at all. here: https://gist.github.com/elektronaut/98a745c68f77267a573c
casadei has joined #ruby
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Remote host closed the connection]
bruno- has joined #ruby
Marsupermammal has joined #ruby
FernandoBasso has joined #ruby
nahtnam has joined #ruby
dgutierrez1287 has joined #ruby
jtdoncas has joined #ruby
rubie has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
FernandoBasso has quit [Client Quit]
wookiehangover has quit [Ping timeout: 265 seconds]
astrobunny has joined #ruby
casadei has quit [Ping timeout: 264 seconds]
<elektronaut> argh, keep_if mutates the hash in place
axl_ has left #ruby [#ruby]
bruno- has quit [Ping timeout: 265 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaycee has joined #ruby
nb_bez___ has joined #ruby
<centrx> elektronaut, Use #select for immutable
<zenspider> or reject
<elektronaut> correct. i've been writing too much 1.8 compatible code, where #select returns an array.
<heftig> i'm kinda missing Hash#map! as a shortcut for hash.each { |k, v| hash.store k, foo(v) }
<zenspider> reject returns a copy
wookiehangover has joined #ruby
amclain has joined #ruby
rbowlby_ has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
mdih has quit [Ping timeout: 252 seconds]
datanoise has quit [Ping timeout: 256 seconds]
Yiota has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
lele has quit [Ping timeout: 272 seconds]
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
lordkryss has quit [Quit: Connection closed for inactivity]
ledestin has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 252 seconds]
rcvalle has quit [Quit: rcvalle]
nofxx has joined #ruby
rbowlby has joined #ruby
lele has joined #ruby
jgpawletko has joined #ruby
tkuchiki has joined #ruby
tkuchiki_ has joined #ruby
fujimura has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
torpig has joined #ruby
blazes816 has joined #ruby
toretore has joined #ruby
francois_ has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
tcrypt has quit [Ping timeout: 246 seconds]
fujimura has quit [Ping timeout: 255 seconds]
blazes816 has quit [Ping timeout: 246 seconds]
BanzaiJoe has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
RegulationD has quit [Remote host closed the connection]
luksaur has quit [Quit: Leaving]
RegulationD has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
et09 has joined #ruby
wallerdev has quit [Ping timeout: 256 seconds]
francois_ has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
starfox_sf has quit [Ping timeout: 256 seconds]
Leef_ has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
drewo has joined #ruby
rubie has quit [Remote host closed the connection]
freerobby has joined #ruby
andywojo has joined #ruby
dfockler has joined #ruby
andywojo has quit [Client Quit]
freerobby has joined #ruby
claptor has joined #ruby
drewo has quit [Client Quit]
andywojo has joined #ruby
commondream has joined #ruby
simplyianm has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 244 seconds]
dfockler has quit [Ping timeout: 265 seconds]
jpfuentes2 has joined #ruby
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has quit [Ping timeout: 276 seconds]
Marsupermammal has joined #ruby
Leef_ has quit [Quit: Leaving]
guardianx has joined #ruby
mdih has joined #ruby
j4cknewt has quit [Remote host closed the connection]
fabrice31 has joined #ruby
duderonomy has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
slash_nick has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
haraoka has joined #ruby
AlexAltea has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
bkxd has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
casadei has joined #ruby
j4cknewt has joined #ruby
oo_ has joined #ruby
mdih has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
dudo has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 255 seconds]
mdih has joined #ruby
rbowlby has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 276 seconds]
lessless has joined #ruby
dopie has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datanoise has joined #ruby
CloCkWeRX has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bayed has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
Al3ks_ has joined #ruby
krisquigley has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
krz has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
davedev2_ has quit [Ping timeout: 255 seconds]
davedev24_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
Al3ks has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
millerti has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
krisquigley has quit [Ping timeout: 276 seconds]
Channel6 has quit [Quit: Leaving]
dented42 has joined #ruby
imperator has joined #ruby
insaneinside has joined #ruby
mrmargolis` has joined #ruby
<insaneinside> I don't suppose anyone here has experience wrapping C/C++ APIs for Ruby using SWIG...?
veinofstars has joined #ruby
<Ox0dea> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
ralphTrinton has joined #ruby
dopie has joined #ruby
mrmargolis` has left #ruby [#ruby]
bgmarx has joined #ruby
andywojo has quit [Quit: Lost terminal]
apoplexy has quit [Quit: Check out the following topic specific channels: ##investments ~ ##accounting ~ ##internetmarketing :]]
Xeago has joined #ruby
A205B064 has quit [Ping timeout: 272 seconds]
CloCkWeRX has joined #ruby
_djbkd has quit [Remote host closed the connection]
ruby-lang766 has joined #ruby
Soda has joined #ruby
ruby-lang766 has quit [Client Quit]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
David______ has joined #ruby
mrmargolis has quit []
dudo has joined #ruby
<David______> Can anyone explain this bug to me? http://eclipse-honey.codio.io:3000/contacts/new
mary5030 has joined #ruby
Marsupermammal has joined #ruby
<sevenseacat> what bug?
Xeago has quit [Ping timeout: 252 seconds]
Yiota has joined #ruby
haraoka has quit [Remote host closed the connection]
<David______> NoMethodError: undefined method `name' for #<Contact id: nil>
towski_ has quit [Remote host closed the connection]
<sevenseacat> seems straightforward
<sevenseacat> there's no `name` method
datanoise has quit [Ping timeout: 264 seconds]
endash has quit [Quit: endash]
ferr has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<sevenseacat> where do you expect it to be defined?
rubie has joined #ruby
nateberkopec has joined #ruby
RegulationD has joined #ruby
<David______> I'm kinda following a video tutorial so I'm not really sure how the methods are supposed to work, but :name works fine in the line before it.
<sevenseacat> code?
fujimura has joined #ruby
darkf has joined #ruby
workmad3 has joined #ruby
ledestin has joined #ruby
<David______> Here's the code from the file: http://repl.it/tNl
_djbkd has joined #ruby
<David______> ignore the fact that I put it in a JS repl :l
<David______> And you can view the full error message here: http://eclipse-honey.codio.io:3000/contacts/new
<sevenseacat> I sure can ignore the fact that people ignore the channel rules
uptownhr has joined #ruby
yqt has quit [Ping timeout: 245 seconds]
<David______> Ok I'll try again.
commondream has joined #ruby
fujimura has quit [Ping timeout: 252 seconds]
rubie has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 276 seconds]
<David______> I'm not used to using irc chat, I've just been trying to fix this all day and I can't find the answer.
workmad3 has quit [Ping timeout: 256 seconds]
<havenwood> ?rails David______
<ruboto> David______, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<David______> Ok, thanks.
shinnya has quit [Ping timeout: 265 seconds]
insaneinside has left #ruby ["bye"]
yfeldblum has joined #ruby
Channel6 has joined #ruby
tkuchiki has joined #ruby
mary5030 has quit [Remote host closed the connection]
GPrime has joined #ruby
ralphTrinton has quit [Ping timeout: 265 seconds]
claptor has quit [Quit: this channel is bakas]
ramfjord has quit [Ping timeout: 276 seconds]
pwnz0r_ has joined #ruby
northfurr has joined #ruby
uptownhr has quit [Ping timeout: 246 seconds]
uptownhr has joined #ruby
jamesaxl has quit [Remote host closed the connection]
scx_ has joined #ruby
bootstrappm has left #ruby [#ruby]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uptownhr has quit [Client Quit]
avahey has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
Yiota has joined #ruby
ivancp has joined #ruby
ivancp has left #ruby [#ruby]
scx has quit [Ping timeout: 246 seconds]
pyon has quit [Quit: fix config]
braincrash has quit [Quit: bye bye]
pyon has joined #ruby
Igorshp has joined #ruby
lkba has quit [Read error: Connection reset by peer]
krz has quit [Read error: Connection reset by peer]
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has joined #ruby
_blizzy_ has joined #ruby
krz has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
BanzaiJoe has quit [Ping timeout: 255 seconds]
Igorshp has quit [Ping timeout: 265 seconds]
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
sarkyniin has quit [Quit: Quit]
j4cknewt has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
braincrash has joined #ruby
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ferr has quit [Quit: WeeChat 1.2]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ikares has joined #ruby
j_mcnally has joined #ruby
<Ikares> Hey everyone!
rbowlby has joined #ruby
pwnz0r_ has quit [Remote host closed the connection]
<bkxd> exit
zenguy_pc has joined #ruby
duderonomy has joined #ruby
bkxd has quit [Quit: leaving]
wookiehangover has quit [Ping timeout: 265 seconds]
francois_ has joined #ruby
bkxd has joined #ruby
bkxd has quit [Client Quit]
bkxd has joined #ruby
athos_diddy has quit [Remote host closed the connection]
athos_diddy has joined #ruby
balazs has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
nb_bez___ has quit [Quit: Connection closed for inactivity]
bgmarx has quit [Remote host closed the connection]
bMalum has joined #ruby
Casty has joined #ruby
AndroidLoverInSF has joined #ruby
francois_ has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
wookiehangover has joined #ruby
bMalum has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
theery has joined #ruby
Pisuke has joined #ruby
fgo has quit [Ping timeout: 276 seconds]
nofxx has quit [Ping timeout: 252 seconds]
j4cknewt has joined #ruby
nofxx has joined #ruby
akkad has quit [Excess Flood]
MyMind has quit [Ping timeout: 265 seconds]
chinmay_dd has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
fgo has joined #ruby
oo_ has joined #ruby
<havenwood> Ikares: hi!
akkad has joined #ruby
Hongo has joined #ruby
aphprentice_ has joined #ruby
Hongo has left #ruby [#ruby]
jpfuentes2 has joined #ruby
stryek has quit [Remote host closed the connection]
gix has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby
stryek has joined #ruby
David______ has quit [Ping timeout: 246 seconds]
imperator has quit [Quit: Leaving]
gix has joined #ruby
ruby-lang517 has joined #ruby
<ruby-lang517> Hi all, quick question. I'm trying to do this: a=Hash.new(Hash.new(Hash.new([]))); a[1][2][3] = 4
<ruby-lang517> however, a.keys is empty
fabrice31 has joined #ruby
<ruby-lang517> but a[1][2][3] will give me 4
<ruby-lang517> any clues?
* ruby-lang517 really wants to a[1][2][3] << '4' but ... that's beside the point
<bnagy> >> a=Hash.new("Go fish"); [a[:blah], a.keys]
<ruboto> bnagy # => ["Go fish", []] (https://eval.in/384130)
<bnagy> that's how default values work
bronson has joined #ruby
<bnagy> >> a=Hash.new {|h,k| h[k] = "Go fish"}; [a[:blah], a.keys]
<ruboto> bnagy # => ["Go fish", [:blah]] (https://eval.in/384134)
michaeldeol has joined #ruby
<pabs> you might want something like this: Hash.new { |h, k| h[k] = Hash.new { |h, k| h[k] = Hash.new { |h, k| h[k] = [] } } }
fabrice31 has quit [Ping timeout: 272 seconds]
<pabs> >> a = Hash.new { |h, k| h[k] = Hash.new { |h, k| h[k] = Hash.new { |h, k| h[k] = [] } } }
<ruboto> pabs # => {} (https://eval.in/384136)
<pabs> >> a[1][2][3] << 4
<pabs> => [4]
<ruboto> pabs # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/384137)
<pabs> >> a = Hash.new { |h, k| h[k] = Hash.new { |h, k| h[k] = Hash.new { |h, k| h[k] = [] } } }; a[1][2][3] << 4; a[1][2][3]
<ruboto> pabs # => [4] (https://eval.in/384139)
nobitanobi has joined #ruby
<pabs> make sense?
<ruby-lang517> Yes, it does. Thanks :)
<pabs> sure, no problem
hakunin has joined #ruby
commondream has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
balazs has quit [Remote host closed the connection]
starfox_sf has joined #ruby
ruby-lang517 has quit [Ping timeout: 246 seconds]
theery has quit [Remote host closed the connection]
towski_ has joined #ruby
tvw has joined #ruby
celly has joined #ruby
GGMethos has quit [Quit: WeeChat 1.3-dev]
Musashi007 has joined #ruby
<celly> test
<celly> good evening all
krisquigley has joined #ruby
swgillespie has joined #ruby
AndroidLoverInSF has quit [Quit: This computer has gone to sleep]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has quit [Max SendQ exceeded]
j4cknewt has joined #ruby
swgillespie has joined #ruby
psyprus has quit [Ping timeout: 248 seconds]
krisquigley has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Remote host closed the connection]
swgillespie has quit [Max SendQ exceeded]
ProLoser has quit [Remote host closed the connection]
Exuma has joined #ruby
swgillespie has joined #ruby
northfurr has quit [Quit: northfurr]
fedexo has joined #ruby
theery has joined #ruby
psyprus has joined #ruby
gkra has quit [Ping timeout: 255 seconds]
gkra has joined #ruby
chinmay_dd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
chinmay_dd has quit [Client Quit]
northfurr has joined #ruby
rbowlby has quit [Ping timeout: 250 seconds]
rbowlby has joined #ruby
freerobby has quit [Quit: Leaving.]
balazs has joined #ruby
LMity has joined #ruby
Casty has quit [Quit: Textual IRC Client: www.textualapp.com]
slash_nick has quit [Ping timeout: 272 seconds]
ralphTrinton has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
fujimura has joined #ruby
iamninja has joined #ruby
balazs has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
dudo has quit [Read error: Connection reset by peer]
dudo has joined #ruby
skade has joined #ruby
Exuma has quit []
fujimura has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
davedev24_ has quit [Ping timeout: 265 seconds]
GGMethos has joined #ruby
Channel6 has quit [Quit: Leaving]
bruno- has joined #ruby
Prawnzy has joined #ruby
LMity has quit [Ping timeout: 245 seconds]
j4cknewt has quit [Remote host closed the connection]
GitGud has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Remote host closed the connection]
<shevy> test worked
renier has joined #ruby
simplyianm has joined #ruby
<celly> thank you shevy. wasn't sure how to properly post to the room
hanmac has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
Agoldfish has quit [Quit: G'Bye]
Makorak has joined #ruby
simplyianm has quit [Remote host closed the connection]
darithorn has joined #ruby
simplyianm has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
yeticry has quit [Read error: Connection reset by peer]
_djbkd has quit [Quit: My people need me...]
<shevy> wow... I started to compile webkitgtk 8 hours before, then went to bed
sepp2k has joined #ruby
<shevy> I woke up not too long ago and it is still compiling
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<Radar> Get a faster computer
<Radar> A Tianhe-2 should compile it under an hour.
Makorak has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
renderfu_ has joined #ruby
Makorak has joined #ruby
celly has quit [Remote host closed the connection]
hanmac has joined #ruby
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
Makorak has quit [Ping timeout: 244 seconds]
valeri_uF0 has joined #ruby
monsieur1 has joined #ruby
yeticry has joined #ruby
renderfu_ has quit [Ping timeout: 276 seconds]
diegok has quit [Ping timeout: 256 seconds]
monsieurp has quit [Read error: Connection reset by peer]
valeri_ufo has quit [Read error: Connection reset by peer]
valeri_uF0 is now known as valeri_ufo
<i8igmac> how do i block threw xpath resaults
<i8igmac> xpath("//tr[contains(@class, 'even')]").size=>13
<i8igmac> xpath("//tr[contains(@class, 'even')]").each => no block given
<i8igmac> there are 13 blocks,
<i8igmac> oh im dumb
icebourg has joined #ruby
diegok has joined #ruby
pontiki has joined #ruby
<pontiki> hi
arescorpio has quit [Quit: Leaving.]
theery_ has joined #ruby
<shevy> pontiki!
<shevy> you have come to do stuff
<pontiki> not particularly
datanoise has joined #ruby
penzur has joined #ruby
theery has quit [Ping timeout: 265 seconds]
yeticry has quit [Ping timeout: 252 seconds]
francois_ has joined #ruby
yeticry has joined #ruby
GitGud has quit [Ping timeout: 255 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simi has quit [Ping timeout: 246 seconds]
dudo has quit [Ping timeout: 276 seconds]
revath has joined #ruby
pontiki has quit [Quit: <poit>]
Makorak has joined #ruby
tkuchiki has joined #ruby
francois_ has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
Makorak has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 245 seconds]
AndroidLoverInSF has joined #ruby
icebourg has quit []
Jarboe has quit []
alphaatom|pc has quit [Read error: Connection reset by peer]
alphaatom|pc has joined #ruby
AlphaAtom has joined #ruby
balazs has joined #ruby
A205B064 has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
tagrudev has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nobitanobi has quit [Remote host closed the connection]
toretore has quit [Quit: This computer has gone to sleep]
AlphaAtom has quit [Ping timeout: 250 seconds]
Palmer11 has joined #ruby
balazs has quit [Ping timeout: 255 seconds]
AndroidLoverInSF has quit [Quit: This computer has gone to sleep]
balazs has joined #ruby
jtdoncas has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
fabrice31 has joined #ruby
haraoka has joined #ruby
dhjondoh has joined #ruby
kahuna_ has quit [Quit: Lost terminal]
fabrice31 has quit [Ping timeout: 272 seconds]
StephenOTT has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
sevenseacat has quit [Remote host closed the connection]
towski__ has joined #ruby
sevenseacat has joined #ruby
towski_ has quit [Ping timeout: 255 seconds]
snockerton has joined #ruby
uptownhr has joined #ruby
swgillespie has joined #ruby
konsolebox has joined #ruby
balazs has quit [Remote host closed the connection]
balazs has joined #ruby
<snockerton> how do i make "Building native extensions. This could take a while…" not take a while?
_djbkd has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
revath has quit [Ping timeout: 276 seconds]
Makorak has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
charliesome has quit [Quit: zzz]
towski_ has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
peter_paule has joined #ruby
michael_mbp has quit [Excess Flood]
krisquigley has joined #ruby
balazs has quit [Remote host closed the connection]
<bnagy> does it?
Pupeno has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
Pupeno has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
towski__ has quit [Ping timeout: 246 seconds]
theery_ has quit [Remote host closed the connection]
ndrei has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> snockerton: get a faster computer
krisquigley has quit [Ping timeout: 265 seconds]
<shevy> snockerton it will compile things without showing you the results; you can make it show you the results e. g. if you are in the same directory
<shevy> so it's just like compiling stuff anyway
<Ox0dea> shevy: You sound like a Gentoo user.
langlands has joined #ruby
jtdoncas has joined #ruby
<shevy> don't insult me man
<shevy> I don't use python to manage my system
<Ox0dea> Nice.
<Ox0dea> To be fair, you don't use Ruby either. :)
chinmay_dd has joined #ruby
Dopagod has joined #ruby
<shevy> yeah I guess you are right https://rubygems.org/profiles/58718
Pupeno has quit [Ping timeout: 256 seconds]
peter_paule has quit [Ping timeout: 246 seconds]
<Ox0dea> That is very impressive, but in which language is your package manager written?
Pupeno has joined #ruby
<snockerton> Radar: I suppose I can use a bigger EC2 instance
jpfuentes2 has joined #ruby
<Radar> snockerton: What are you using now?
datanoise has quit [Ping timeout: 276 seconds]
<snockerton> i'm doing an automated deployment and this part takes 10+ minutes on a c3.large
<snockerton> 2 cpu
<Radar> which gem?
<shevy> Ox0dea https://rubygems.org/gems/easycompile https://rubygems.org/gems/rbt https://rubygems.org/gems/cookbooks - don't use any of these though, I am rewriting again :\
theery has joined #ruby
theery has quit [Client Quit]
<snockerton> it's when i run rvm install 2.1.5
<snockerton> Successfully installed mini_portile-0.6.2
<snockerton> Building native extensions. This could take a while...
tkuchiki has quit [Remote host closed the connection]
<snockerton> wait, what am i talking about, it's rails 4.2.1
charliesome has joined #ruby
<snockerton> i was hoping someone would say their's an rvm for gem extension binaries or something
<shevy> 10 minutes sounds quite a long time
Iskarlar has joined #ruby
<shevy> I think there is some repository where things can be downloaded too
<snockerton> of pre-compiled binaries?
<shevy> or at least I seem to remember that from ... perhaps 10 weeks ago here on #ruby?
<shevy> yeah
<shevy> didn't jhass say something like that? hmm
<shevy> snockerton what gem takes +10 minutes btw?
AndroidLoverInSF has joined #ruby
<snockerton> luislavena/gem-compiler
<shevy> gem install gem-compiler
<shevy> Fetching: gem-compiler-0.3.0.gem (100%)
<shevy> Successfully installed gem-compiler-0.3.0
<shevy> are you sure?
<snockerton> no, i was saying that looks promising for the pre-compiled binaries deal
<shevy> ah I see
revath has joined #ruby
<snockerton> ah, it's this little basterd
<snockerton> nokogiri-1.6.6.2
skade has joined #ruby
Makorak has quit [Remote host closed the connection]
AndroidLoverInSF has quit [Remote host closed the connection]
<shevy> ok let's see
<shevy> "Building native extensions. This could take a while..."
tejasmanohar has joined #ruby
<shevy> finished, in 140 seconds
<tejasmanohar> anyone know what ruby version is to be used with this project?
<shevy> my machine has 8 gig ram, Intel(R) Celeron(R) CPU G1630 @ 2.80GHz
<tejasmanohar> doesnt seem to be working w/ 2.2
<tejasmanohar> /Users/tejas/.rvm/gems/ruby-2.2.2/gems/rake-0.8.7/lib/rake/alt_system.rb:32:in `<module:AltSystem>': uninitialized constant Rake::AltSystem::Config (NameError)
<tejasmanohar> (`rackup` after `bundle install`)
ramfjord has quit [Ping timeout: 252 seconds]
<shevy> tejasmanohar no idea but file an issue request? :)
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tejasmanohar> ehhhh i could probably make a new version by the time a response comes :P
pyon has quit [Quit: iz fixin muh confignyareshun nya!]
<tejasmanohar> looks inactive
dopie has quit [Quit: This computer has gone to sleep]
<tejasmanohar> anyone know a better alternative to this?
<shevy> yeah no change in more than a year
<tejasmanohar> yeah
<tejasmanohar> trying to find a nicer alternative
snockerton has quit [Quit: Leaving.]
<tejasmanohar> thats in a language i can work with
<shevy> rmagick could do the same perhaps?
<tejasmanohar> yes
<tejasmanohar> could rewrite my own as i said :P
<tejasmanohar> but more trying to go fast here
<shevy> \o/
andikr has joined #ruby
<tejasmanohar> yeah
<tejasmanohar> just trying to deploy a quick service i can proxy s3 thru and do image resizes on the fly
<Radar> issue is probably very simple
<Radar> clone repo, try to fix
ndrei has quit [Ping timeout: 256 seconds]
<tejasmanohar> going to try to force a rack version
<tejasmanohar> i think that might be the issue
<tejasmanohar> rake i meant
rubie has joined #ruby
fujimura has joined #ruby
workmad3 has joined #ruby
djellemah has joined #ruby
tkuchiki has joined #ruby
kohgpat has joined #ruby
fujimura_ has joined #ruby
<Radar> there might've been no response to issue #20 because it's a shit issue
<Radar> No steps to reproduce or any info at all
<sevenseacat> +1 to that
fujimura has quit [Read error: Connection reset by peer]
<shevy> hehe
keen___________ has joined #ruby
dg-ratiodata has joined #ruby
Rarikon has quit [Read error: Connection reset by peer]
Rarikon has joined #ruby
keen__________ has quit [Ping timeout: 252 seconds]
rubie has quit [Ping timeout: 266 seconds]
<tejasmanohar> true
workmad3 has quit [Ping timeout: 272 seconds]
psy_ has quit [Ping timeout: 276 seconds]
jas02 has joined #ruby
chussenot has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
khebbie has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
TTilus has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 255 seconds]
<Radar> tejasmanohar: From what I can tell, it's because Rake 0.8.7 is trying to access Config, which is not a constant in Ruby any more.
<Radar> The right constant is RbConfig
khebbie_ has joined #ruby
<Radar> Bumping the Rake version allows `bundle exec rackup` to wor
<Radar> work*
sigurding has quit [Quit: sigurding]
khebbie has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dg-ratiodata has quit [Read error: Connection reset by peer]
towski_ has quit [Remote host closed the connection]
dg-ratiodata has joined #ruby
<flughafen> +26 to that!
lupine has joined #ruby
ndrei has joined #ruby
Spami has joined #ruby
msgodf has joined #ruby
railsraider has joined #ruby
railsraider has quit [Client Quit]
pyon has joined #ruby
railsraider has joined #ruby
dg-ratiodata has quit [Ping timeout: 246 seconds]
<tejasmanohar> Radar: ah
Lucky__ has quit [Quit: Textual IRC Client: www.textualapp.com]
Lucky__ has joined #ruby
roolo has joined #ruby
x0f has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
stan has joined #ruby
Makorak has joined #ruby
fujimura_ has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
x0f has joined #ruby
fabrice31 has joined #ruby
torpig has quit [Quit: WeeChat 1.1.1]
mengu has quit [Remote host closed the connection]
torpig has joined #ruby
hubcaps has joined #ruby
troulouliou_dev has joined #ruby
mengu has joined #ruby
oo_ has quit [Remote host closed the connection]
fgo has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
Palmer11 has quit [Remote host closed the connection]
northfurr has quit [Remote host closed the connection]
fujimura has joined #ruby
Palmer11 has joined #ruby
SOLDIERz has joined #ruby
dmolina has joined #ruby
fantazo has joined #ruby
oo_ has joined #ruby
vondruch has joined #ruby
dg-ratiodata has joined #ruby
datanoise has joined #ruby
_ht has joined #ruby
francoi__ has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
et09 has quit [Ping timeout: 252 seconds]
francoi__ has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
Al3ks_ has quit [Ping timeout: 252 seconds]
Cust0sLim3n has quit [Read error: Connection timed out]
fgo has quit [Ping timeout: 246 seconds]
wpp has joined #ruby
blue_deref has quit [Quit: bbn]
Dopagod has quit [Ping timeout: 264 seconds]
djellemah_ has joined #ruby
havenwood has quit [Ping timeout: 276 seconds]
djellemah has quit [Ping timeout: 256 seconds]
C1V0 has joined #ruby
<Ox0dea> What're the chances this makes it in?
k3asd` has joined #ruby
psy_ has joined #ruby
Cust0sLim3n has joined #ruby
<shevy> just call Nobu by phone
<Ox0dea> He doesn't even lurk in #ruby-core. :(
uptownhr has quit [Quit: uptownhr]
Koshian is now known as Koshian
<sevenseacat> Ox0dea: i know nothing about ruby core but it seems good to me. i didnt even know grep could do that.
<Ox0dea> sevenseacat: It's sort of its raison d'être.
khebbie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> It's basically #include? on steroids.
<Ox0dea> Where the steroids are case equalities.
* sevenseacat is not very good rubyist sometimes.
<Ox0dea> Case equality is a really great idea, and I find it odd that Hash and Set don't define their own #===.
monsieur1 is now known as monsieurp
monsieurp has quit [Changing host]
monsieurp has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
khebbie has joined #ruby
<Ox0dea> s/#include?/#select/
* Ox0dea is not a very good Rubyist sometimes.
khebbie_ has joined #ruby
casadei has joined #ruby
veinofstars has quit [Quit: veinofstars]
skade has joined #ruby
rdark has joined #ruby
skade has quit [Client Quit]
quimrstorres has joined #ruby
francoi__ has joined #ruby
khebbie has quit [Ping timeout: 276 seconds]
allomov has joined #ruby
casadei has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Remote host closed the connection]
<shevy> sevenseacat you make up for it with a superior accent
psy_ has quit [Ping timeout: 255 seconds]
monsieur1 has joined #ruby
monsieur1 has quit [Client Quit]
anisha has joined #ruby
datanoise has quit [Ping timeout: 276 seconds]
psy_ has joined #ruby
<mdih> hi guys,may i ask what good book to read bout ruby? :D
<mdih> i'd prefer something that touches the core :)
Iskarlar has joined #ruby
sinkensabe has joined #ruby
<shevy> the pickaxe is ok mdih
codecop has joined #ruby
j4cknewt has joined #ruby
t88m33s has joined #ruby
<mdih> thanx @shevy, ill take a look
oo_ has quit [Remote host closed the connection]
bruno- has joined #ruby
micmus has joined #ruby
krisquigley has joined #ruby
khebbie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
<t88m33s> How do you mock a class, as opposed to an instance of it? I mean, when your class-under-test initializes some object inside of itself, as opposed to having it passed to it (DI).
c0m0 has joined #ruby
chussenot has quit [Quit: chussenot]
dumdedum has joined #ruby
fabrice31_ has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
Iskarlar has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31_ has joined #ruby
sandstrom has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
veleno has joined #ruby
sigurding has joined #ruby
t88m33s has quit [Quit: Leaving]
kohgpat has quit [Ping timeout: 264 seconds]
krisquigley has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 244 seconds]
<shevy> Does anyone of you have an example for readline completion support, when you do something like "command foo<PRESS TAB HERE>"? In other words, I need to show a list of tab-completions not solely alone on foo<TAB> but on the command prior to foo; I want to complete on different subcommands, for a main command
Iskarlar has joined #ruby
mattarse has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
jtdoncas has quit [Ping timeout: 244 seconds]
dmolina has quit [Quit: Leaving.]
dmolina has joined #ruby
quentin has joined #ruby
houhoulis has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
Forgetful_Lion has joined #ruby
x0f has quit [Ping timeout: 272 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdih has quit [Ping timeout: 255 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
last_staff has joined #ruby
<quentin> hi everyone, I am modifying a native C extension and I experience a crash when I pass more than 14 arguments to rb_struct_define(...).
<quentin> any idea ?
charliesome has quit [Quit: zzz]
psy_ has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
mattarse has quit [Quit: Leaving]
psy_ has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
<Ox0dea> I suspect that has something to do with it.
fgo has joined #ruby
<quentin> yes probably!
oo_ has joined #ruby
amclain has quit [Quit: Leaving]
Musashi007 has quit [Client Quit]
<quentin> or is it a limitation from ruby side, not able to call C function with more than 15 arguments
DEA7TH has joined #ruby
<Ox0dea> quentin: As long as you're using a compiler from this century, that seems less likely.
Spami has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 276 seconds]
<shevy> hehe
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> quentin I think the limit is higher, 15 is too low
<quentin> i means the code that you point out looks like it is made to call C function from ruby
<ljarvis> 127 is the C limit iirc
<ljarvis> (arguments to one function call)
<ljarvis> or 256
lee-jon has joined #ruby
zudochkin has joined #ruby
krz has joined #ruby
_djbkd has quit [Quit: My people need me...]
lkba has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 245 seconds]
<ddv> anyknow how I can call unpack on a binary literal?
<DefV> a/2
<ddv> anyone*
sinkensabe has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
naftilos76 has joined #ruby
t88m33s has joined #ruby
<zenspider> binary literal? that doesn't make sense
Zai00 has joined #ruby
djbkd_ has joined #ruby
MatthewsFace has joined #ruby
<quentin> so, I found the problem, as you know the last argument for rb_struct_create is supposed to be "NULL" (many people commenting about that online), but it only works with less than 15 arguments (I guess it is related to the number of registers available in x86-64). With more than 14 arguments, I have to pass (void*)0.
<ddv> ah found it
<zenspider> quentin: do you mean NULL or "NULL"?
<quentin> NULL
<zenspider> because NULL _is_ (void*)0
<quentin> well, gcc disagrees with you zenspider
quazimodo has quit [Ping timeout: 250 seconds]
<quentin> probably a way varargs are read and 0 is put onto the stack or registers
<Ox0dea> ~ $ echo -e "#include <stdio.h>\nNULL" | gcc -E - | tail -1
<Ox0dea> ((void *)0)
<quentin> in fact when i use NULL, the segfault is on 0x007fff0000000
<Ox0dea> quentin: gcc is not (and will likely never be) the cause of your troubles.
<zenspider> quentin: don't think so
<zenspider> running this through cc -E: void * x = NULL;
<zenspider> results in: void * x = ((void *)0);
<zenspider>
<quentin> no of course but the way varargs are put on the stack and red by the ruby api fucked something
<zenspider> of course, Ox0dea beat me to it. tho, my output was from clang's cc. :)
<zenspider> I'm a bit slow. Sorry Ox0dea
<Ox0dea> zenspider: No worries.
<zenspider> I've only ever found one bug in gcc (or any C compiler for that matter)
<zenspider> but boy was it a doozy
et09 has joined #ruby
<zenspider> caused one tiny c file to take ~20-30 minutes to compile because of a static initialization
<zenspider> incredibly hard to hunt down and slowed us down for a very long time
CloCkWeRX has quit [Quit: Leaving.]
tesuji has joined #ruby
<Ox0dea> What ended up being the overarching issue?
mattarse has joined #ruby
<Ox0dea> That is, how did the initialization's being static so thoroughly confuse the compiler?
<zenspider> something about the code it had to generate in order for the static initialization to occur. it was calling functions IN the initialization and something about load sequences meant that it had to be more complicated than normal function calls
<zenspider> but... it was STATIC data, so I replaced it with a simple comment of what it was, and the perl code to generate the static data we needed (ctimes, iirc)
<zenspider> boom, millisecond compile time again
<zenspider> *shrug*
<zenspider> that was a long time ago. sure it's been fixed by now
<Ox0dea> Kudos to that compiler for (eventually) figuring out how to do it, though.
krisquigley has joined #ruby
<zenspider> honestly, I'd rather it bomb out after 5 seconds so the build would fail and we would have caught it weeks earlier instead of wasting man hours on it
<zenspider> exit 1 "nope... this is dumb"
* Ox0dea would insert a joke about strength reduction if he knew anything about how compilers do their magic.
axl__ has joined #ruby
Xeago has joined #ruby
edwinvdgraaf has joined #ruby
Squarepy has joined #ruby
ringarin has joined #ruby
marr has joined #ruby
veinofstars has joined #ruby
veinofstars has quit [Client Quit]
<zenspider> quentin: I think I'm gonna have to disagree with your assessment.
<quentin> fine
<Ox0dea> zenspider: If you've got the time to take a look, does this seem good? https://bugs.ruby-lang.org/issues/11286
sinkensabe has joined #ruby
djbkd_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
<zenspider> holy shit. there's a #one? now ?
sinkensabe has quit [Remote host closed the connection]
MatthewsFace has quit [Remote host closed the connection]
<quentin> i guess that in fact ruby is taking my 0 pointer and try to access somewhere in a negative offset leading to that 0x0077ff... address where the segfault happens
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<zenspider> no
simplyianm has quit [Remote host closed the connection]
<zenspider> and it doesn't have anything to do with the number of x86 registers either. stop blaming your tools before totally proving your code is 100% correct.
<zenspider> Ox0dea: I like the idea. a lot.
<Ox0dea> Awesome. :)
<Ox0dea> I'm not sure my implementation is ideal, but it's the least "invasive".
<zenspider> studying the patch
chussenot has joined #ruby
dg-ratiodata has quit [Remote host closed the connection]
dg-ratiodata has joined #ruby
<quentin> zenspider: i'm blaming no tool, only the code using the tool, and i'm looking for the problem, if you don't want to be constructive fine but i don't need your sad mood.
kohgpat has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<zenspider> Ox0dea: you can use refute(x) instead of assert(!x)
<zenspider> style, really...
tkuchiki has joined #ruby
<zenspider> quentin: sad mood? you might be projecting.
<Ox0dea> zenspider: I tried to mimic the style of the surrounding code.
revath has quit [Ping timeout: 256 seconds]
<zenspider> Ox0dea: absolutely... but some of that code is crufty :)
et09 has quit [Ping timeout: 264 seconds]
withnale_ has joined #ruby
<Ox0dea> It is, but I didn't want to clutter what is already a big-ish patch.
<zenspider> Ox0dea: I'm not entirely sure about the enum_* changes... but since you have tests... *shrug* seems good
<zenspider> ok. I _don't_ like ENUMFUNC... but that might be unavoidable
chussenot has quit [Client Quit]
allomov has quit [Remote host closed the connection]
<Ox0dea> Yep, that's the really questionable part of the patch.
mandarinkin has joined #ruby
<zenspider> meh. they were already doing a double-hash macro... so whatever
kohgpat has quit [Client Quit]
<Ox0dea> Ah, I thought you meant my modifying it to take a second argument.
dg-ratiodata has quit [Remote host closed the connection]
<Ox0dea> I didn't see how else to different the one-argument case without making significant changes.
<Ox0dea> *differentiate
dg-ratiodata has joined #ruby
<zenspider> tada. commented on the issue
<Ox0dea> That word does not like me right now.
lessless has joined #ruby
<Ox0dea> Huzzah! Thanks for your vote. ^_^
<zenspider> good luck with that patch! I hope they accept it
<zenspider> course, prolly won't be released for a while even if it does... but hey... if you get a patch in, that's all that matters
Cust0sLim3n has quit [Ping timeout: 264 seconds]
<Ox0dea> Yeah, it doesn't seem the kind of thing worth backporting, but it would be nice to have it in trunk.
<Ox0dea> And, of course, 3.0.
senayar has joined #ruby
senayar has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<Ox0dea> I heard that's gonna have hygienic macros.
yaw has joined #ruby
iamninja has joined #ruby
last_staff has quit [Quit: last_staff]
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
lala has joined #ruby
Tempesta has joined #ruby
ahmetkapikiran has joined #ruby
lee-jon_ has joined #ruby
starfox_sf has quit [Ping timeout: 256 seconds]
nofxx has quit [Ping timeout: 265 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
lee-jon has quit [Ping timeout: 264 seconds]
lee-jon_ is now known as lee-jon
x44x45x41x4E has joined #ruby
quentin has left #ruby [#ruby]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> ok. one more shot of bourbon and then bed. 'ta
<Ox0dea> [Enjoy] * 2, and thanks again.
Oog has joined #ruby
sinkensabe has joined #ruby
<Oog> def foo; yield; end def bar; foo{yield}; end bar{puts 'hi') - anything wrong/odd with the foo {yield} ?
sinkensabe has quit [Remote host closed the connection]
<scx_> How to add new line to string? I don't want to use 'str += "\n"' or Document here. I am looking for variable which is "\n" on UNIX and "\r\n" on Windows.
scx_ is now known as scx
workmad3 has joined #ruby
<Ox0dea> scx: The $/ contains the system's default record separator.
<Ox0dea> $/ variable
dg-ratiodata has quit [Ping timeout: 276 seconds]
<Ox0dea> >> foo = 'line'; foo << $/; foo
<ruboto> Ox0dea # => "line\n" (https://eval.in/384222)
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> scx: You can require 'English' and use $INPUT_RECORD_SEPARATOR if you're opposed to cryptic global variables.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
tomphp has joined #ruby
<ljarvis> Oog: in terms of what?
denver has joined #ruby
<scx> Ox0dea: thanks
<Oog> im conerned about the {yield}
<Ox0dea> scx: Sure thing.
quimrstorres has joined #ruby
tkuchiki has joined #ruby
<Ox0dea> Oog: You can "double yield" just fine, if that's the crux of your question.
Cust0sLim3n has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
jmhmccr has quit [Quit: Connection closed for inactivity]
senayar has quit [Remote host closed the connection]
<ljarvis> Oog: yes the yield is fine
MatthewsFace has joined #ruby
air_ has joined #ruby
<Oog> i guess i was worried about the yield in the other block making sure it calls the right yield (ie the one passed to with_lock_save
<air_> how do i get .so file while creating ffi wrapper via ruby https://github.com/ffi/ffi/wiki/Examples
<Oog> also makes me question why this post exists http://mudge.name/2011/01/26/passing-blocks-in-ruby-without-block.html seems problem is solved via the {yield} trick
<Oog> as the firs tcomment seems to point out
nofxx has quit [Read error: Connection reset by peer]
senayar has joined #ruby
nofxx has joined #ruby
<yorickpeterse> morning
<undeadaedra> hi yorickpeterse
yaw has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
tomphp has quit [Ping timeout: 276 seconds]
revath has joined #ruby
fgo has joined #ruby
air_ has quit [Quit: Page closed]
dg-ratiodata has joined #ruby
GPrime has joined #ruby
darkf_ has joined #ruby
casadei has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
fgo has quit [Ping timeout: 255 seconds]
darkf has quit [Ping timeout: 256 seconds]
incomplete has joined #ruby
mandarinkin has quit [Ping timeout: 276 seconds]
BTRE has quit [Quit: Leaving]
mengu has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
casadei has quit [Ping timeout: 252 seconds]
multi_io has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
keernel1 has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
konieczkow has quit [Ping timeout: 246 seconds]
mandarinkin has joined #ruby
multi_io has joined #ruby
Ilyas has joined #ruby
allomov has joined #ruby
mdih has joined #ruby
Iskarlar has joined #ruby
keernel has joined #ruby
MatthewsFace has quit [Ping timeout: 264 seconds]
woollyams has joined #ruby
fgo has joined #ruby
oo_ has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
Igorshp has joined #ruby
zudochkin has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
incomplete has left #ruby [#ruby]
ndrei has quit [Ping timeout: 252 seconds]
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
railsraider has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
edwinvdg_ has joined #ruby
zudochkin has joined #ruby
DEA7TH has quit [Ping timeout: 255 seconds]
railsraider has joined #ruby
DEA7TH has joined #ruby
camilasan has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
sandstrom has joined #ruby
zudochkin has quit [Remote host closed the connection]
skade has joined #ruby
hectortrope has joined #ruby
djellemah__ has joined #ruby
sgambino has joined #ruby
rbowlby has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
auzty has quit [Quit: Leaving]
A205B064 has quit [Ping timeout: 245 seconds]
djellemah_ has quit [Ping timeout: 265 seconds]
krisquigley has quit [Read error: Connection reset by peer]
startupality has joined #ruby
Cust0sLim3n has quit [Ping timeout: 250 seconds]
jamespeach has joined #ruby
<jamespeach> Has anyone here completed one of those coding bootcamps?
Makorak has quit [Ping timeout: 245 seconds]
<Ox0dea> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
krisquigley has joined #ruby
yoongkang has quit [Remote host closed the connection]
yoongkang has joined #ruby
rubie has joined #ruby
railsraider has quit [Read error: Connection reset by peer]
railsraider has joined #ruby
Makorak_ has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
dhjondoh has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<abyss> apeiros: hey;) Regarding to the yesterday's script;) something like this: if ( line !~ /INSERT INTO.*)|UPDATE.*)|DELETE.*)/ ) should pass? I mean then it will check each line between INSERT INTO and ) or it doesn't work this way?
khebbie has joined #ruby
Oog has quit [Remote host closed the connection]
zz_Outlastsheep is now known as Outlastsheep
<abyss> sorry if ( line =~ should be ofcourse
Cust0sLim3n has joined #ruby
Akagi201 has quit []
zudochkin has joined #ruby
sdothum has joined #ruby
sigurding has quit [Quit: sigurding]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
bluish has joined #ruby
oo_ has joined #ruby
bluish has quit [Remote host closed the connection]
dionysus69 has joined #ruby
air_ has joined #ruby
sinkensabe has joined #ruby
<air_> how path are given in ruby?
Soda has quit [Remote host closed the connection]
railsraider has quit [Read error: Connection reset by peer]
<undeadaedra> what path
<air_> suppose i want to give path(ffi) to particular folder
dg-ratiodata has quit [Remote host closed the connection]
mattarse has quit [Remote host closed the connection]
dg-ratiodata has joined #ruby
railsraider has joined #ruby
Zai00 has quit [Quit: Zai00]
nofxx has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
strixd has joined #ruby
strixd has quit [Excess Flood]
sinkensabe has quit [Remote host closed the connection]
Siyfion has joined #ruby
strixd has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderfu_ has joined #ruby
mengu has joined #ruby
senayar has quit [Remote host closed the connection]
sheeny has joined #ruby
air_ has quit [Ping timeout: 246 seconds]
woollyams has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<izzol> Moin :)
<sheeny> Hi, would anybody be able to explain to my why inject gives me this? https://gist.github.com/anonymous/43b4dc8780b61253b7d9
<Ox0dea> >> 0.1 + 0.2
<ruboto> Ox0dea # => 0.30000000000000004 (https://eval.in/384263)
renderfu_ has quit [Ping timeout: 276 seconds]
<Ox0dea> sheeny: ^
mengu has quit [Ping timeout: 252 seconds]
zudochkin has left #ruby [#ruby]
<undeadaedra> >> 3.50 + 3.03
<ruboto> undeadaedra # => 6.529999999999999 (https://eval.in/384264)
<undeadaedra> It's not inject the problem
<sheeny> ah
<ccooke> sheeny: For what it's worth, you could also try:
<ccooke> >> [3.50,3.03].inject(:+)
<ruboto> ccooke # => 6.529999999999999 (https://eval.in/384265)
<Ox0dea> Pfft.
<ccooke> (in terms of nice code. It won't make any difference to the answer)
<sheeny> ccooke: ah yes thank you :)
sigurding has joined #ruby
<sheeny> thanks everyone that website makes more sense.. guess I just wasnt expecting that haha! much appreciated :)
<Ox0dea> sheeny: Ruby has rational number support via the Rational class, if you really need it.
chussenot has joined #ruby
Iskarlar has joined #ruby
<undeadaedra> Floats are often a (bad) surprise
<sheeny> Ox0dea: Thanks ill take a look
<Darkwater> 2 is really 2.0000000000019
<Darkwater> but don't tell anyone
<Darkwater> ssh
<sheeny> yeah It's for a project which I inherited, i would have prefered everything stored in pence/cents but hey ho
chussenot has quit [Client Quit]
<ccooke> sheeny: If perfect accuracy is needed, you could use the bigdecimal module
<undeadaedra> Darkwater: not enough arguments
khebbie has joined #ruby
<ccooke> >> require 'bigdecimal'; [BigDecimal.new("3.50"),3.03].inject(:+)
<ruboto> ccooke # => #<BigDecimal:41d3a144,'0.653E1',18(27)> (https://eval.in/384266)
<Darkwater> undeadaedra: what if I want the usage help text
<workmad3> Darkwater: thankfully, all integers are properly representable in floats :P
<undeadaedra> Darkwater: too long for IRC :)
<Darkwater> workmad3: yeah
<sheeny> thanks :)
<workmad3> shame about things like 0.1 though :D
<Darkwater> sidenote, for anyone having trouble understanding why floats are shit: imagine 0.3333333333
<Darkwater> that's perfectly writable in base 3 as 0.1
<Darkwater> 0.5 is perfectly writable in base 2 as 0.1
commondream has joined #ruby
<Darkwater> 0.25 in base 2 is 0.01
<workmad3> Darkwater: I always prefer to show the rational compared to the float/decimal notation personally... e.g. 1/3 rather than 0.33333...
<workmad3> Darkwater: less confusion IMO
<undeadaedra> yes, because 1/3 ≠ 0.33333
<Darkwater> 0.24 in base 2 is 0.0011110101110000101000111101etc
rodfersou has joined #ruby
LMity has joined #ruby
<Darkwater> workmad3: yeah, but it's harder to work with 1/3 than with 0.33333 as a computer
<Darkwater> also in my personal opinion
fgo has quit [Ping timeout: 256 seconds]
<workmad3> Darkwater: yeah... but you're not dealing with a computer... you're explaining number representability to people :P
<Darkwater> and also why computers can't handle numbers like 0.24 as floats usually
<workmad3> Darkwater: and saying '0.5 is 0.1 in base 2' gets people going 'wuh, why are you showing me two different decimals and saying they're the same?' as you forgot to specify that 0.5 was in base10 decimal notation ;)
<Darkwater> kind of
towski_ has joined #ruby
<Darkwater> meh whatever
<Darkwater> still asleep
Iskarlar has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby
tkuchiki has quit [Remote host closed the connection]
commondream has quit [Ping timeout: 276 seconds]
phutchins has joined #ruby
tkuchiki has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
mengu has joined #ruby
towski_ has quit [Ping timeout: 252 seconds]
lee-jon has quit [Ping timeout: 246 seconds]
lordkryss has joined #ruby
sigurding has quit [Quit: sigurding]
sheeny has quit [Quit: Page closed]
lee-jon has joined #ruby
commondream has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
LMity has quit [Ping timeout: 272 seconds]
Al3ks has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
jud has joined #ruby
jud has joined #ruby
<scx> What i best way to use getters and setters in ruby?
allomov has quit [Ping timeout: 255 seconds]
haraoka has quit [Ping timeout: 256 seconds]
<scx> should i use attr_reader, attr_writer if it is possible?
<scx> (or attr_accessor)
<GarethAdams> if the alternative is writing methods which do exactly the same thing, I don't see why you wouldn't use the shorthand
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
<bnagy> I don't tend to use attr_writer / accessor much because often you want to sanity check
krisquig_ has joined #ruby
<bnagy> attr_reader yes, especially if you're writing def foo @foo end
sandstrom has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
chinmay_dd has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
francoi__ has quit [Remote host closed the connection]
lee-jon has left #ruby [#ruby]
sevenseacat has quit [Quit: Me dun like you no more.]
krisquigley has quit [Ping timeout: 264 seconds]
yoongkang has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Iskarlar_ has joined #ruby
Iskarlar has quit [Read error: No route to host]
CamonZ has joined #ruby
yoongkang has joined #ruby
tkuchiki has quit [Remote host closed the connection]
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby
ton31337 has joined #ruby
tkuchiki has joined #ruby
<ton31337> what's the best way to convert a = '1.1.1.1' to a = ['1.1.1.1'] ?
jamespeach has quit [Ping timeout: 246 seconds]
Iskarlar_ has quit [Client Quit]
Papierkorb has joined #ruby
micmus has quit [Quit: Leaving]
allomov has joined #ruby
<bnagy> [a]
<al2o3-cr> >> a = '1.1.1.1'; a = [a]
<ruboto> al2o3-cr # => ["1.1.1.1"] (https://eval.in/384280)
tkuchiki_ has quit [Ping timeout: 265 seconds]
<Takumo> what's the best way to load a Logger level from a configuration file?
<ton31337> (y)
<Darkwater> use this: b
fujimura has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
casadei has joined #ruby
[k- has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
casadei has quit [Ping timeout: 256 seconds]
sgambino has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
Billias has quit [Ping timeout: 256 seconds]
k3asd` has quit [Ping timeout: 250 seconds]
patricknegri has joined #ruby
k3asd` has joined #ruby
_blizzy_ has joined #ruby
Billias has joined #ruby
dgutierrez1287 has joined #ruby
Igorshp has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
zudochkin has joined #ruby
darkf_ is now known as darkf
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
strixd has quit [Quit: 500]
nikhgupta has joined #ruby
stardiviner has joined #ruby
penzur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
Igorshp has quit [Read error: No route to host]
dg-ratiodata has quit [Remote host closed the connection]
Igorshp has joined #ruby
strixd has joined #ruby
strixd has quit [Excess Flood]
bruno-_ has joined #ruby
dg-ratiodata has joined #ruby
Iskarlar has joined #ruby
strixd has joined #ruby
x0f has joined #ruby
dzejrou has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 256 seconds]
dede has joined #ruby
fgo has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
commondream has quit [Remote host closed the connection]
railsraider has quit [Quit: railsraider]
psy_ has quit [Ping timeout: 265 seconds]
diegoviola has joined #ruby
tesuji has quit [Ping timeout: 265 seconds]
NeverDie has joined #ruby
millerti has joined #ruby
<shevy> scx if you have minimal requirements to the getters and setters then sure use the attr* methods, they were added precisely because of that
sandstrom has quit [Quit: My computer has gone to sleep.]
fgo has quit [Ping timeout: 255 seconds]
ducklobster has quit [Ping timeout: 252 seconds]
Palmer11 has quit [Quit: Palmer11]
zudochkin has quit [Remote host closed the connection]
ndrei has joined #ruby
mdih has quit [Ping timeout: 265 seconds]
Zai00 has joined #ruby
commondream has joined #ruby
hakunin has quit [Remote host closed the connection]
jenrzzz has joined #ruby
code_ has quit [Quit: BNC - Hosted by EpicKitty]
ahmetkapikiran has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
code_ has joined #ruby
chthon has joined #ruby
nofxx has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby
chussenot has joined #ruby
User458764 has joined #ruby
arturhoo has joined #ruby
lee-jon has joined #ruby
lee-jon has left #ruby [#ruby]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
francoi__ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sigurding has quit [Quit: sigurding]
oo_ has quit [Remote host closed the connection]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
sigurding has joined #ruby
blackmesa has joined #ruby
mattarse has joined #ruby
<ljarvis> moin
blue_deref has joined #ruby
freerobby has joined #ruby
fantazo has quit [Ping timeout: 265 seconds]
francoi__ has quit [Ping timeout: 272 seconds]
Igorshp has quit [Remote host closed the connection]
Iskarlar has joined #ruby
mcclurmc has joined #ruby
serivich has joined #ruby
naftilos76 has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 276 seconds]
senayar has quit [Remote host closed the connection]
GitGud has joined #ruby
carlosoliveira has joined #ruby
thelastinuit has joined #ruby
Igorshp has joined #ruby
barkerd427 is now known as zz_barkerd427
senayar has joined #ruby
mrgrieves has joined #ruby
railsraider has joined #ruby
francoi__ has joined #ruby
fantazo has joined #ruby
railsraider has quit [Client Quit]
chussenot has quit [Quit: chussenot]
s2013 has joined #ruby
<shevy> anyone has a ruby script with ascii fun? like xmas ascii and such
dgutierrez1287 has quit [Remote host closed the connection]
migbar has joined #ruby
<mrgrieves> hi, I have an array as follows ["packageA-version_1.blah", "packageA-version_2.blah", "packageB-version_3-blah", "packageB-version_7.blah"] , what can I do to remove entries from the array and only leave the entries for the latest version of each package?
Igorshp has quit [Remote host closed the connection]
<ljarvis> mrgrieves: are the numbers only single digits?
chussenot has joined #ruby
houhoulis has joined #ruby
dg-ratiodata has quit [Ping timeout: 272 seconds]
* flughafen wonders how long I have to be in this chat before shevy acknowledges me
<havenwood> >> ["packageA-version_1.blah", "packageA-version_2.blah", "packageB-version_3-blah", "packageB-version_7.blah"].max
<mrgrieves> ljarvis: no it can be combinations of multiple digits and letters i.e. 1.8.0-1.el6.ngx.x86_64.rpm
<ruboto> havenwood # => "packageB-version_7.blah" (https://eval.in/384333)
<ljarvis> havenwood: grouped by package
<ljarvis> nice try though
<havenwood> oh, max for each pacakage?
<ljarvis> that's how I read it
<havenwood> mrgrieves: ^
<havenwood> ljarvis: I haven't had coffee. I'm lucky I'm even ballpark. ;)
<ljarvis> mrgrieves: that version is *very* different to your example
<mrgrieves> yes, sorry
<havenwood> mrgrieves: Show some real examples of input and the desired output for each.
<ljarvis> ^
<ljarvis> I basically wreckon something like group by gsub(/\d+/, "") -> sort -> max would work. But who knows
edwinvdg_ has joined #ruby
<ddv> how do you call all getter/accessor dynamically (via send(string)) of an instance?
krisquig_ has quit [Remote host closed the connection]
<ddv> +methods
<ljarvis> ddv: call all methods?
<shevy> flughafen I didn't know you were there, aren't you idling all the time which is why you aren't finished!
millerti has joined #ruby
<flughafen> yes! very good
<ddv> ljarvis: for example some_instance.methods(false) {|method_name| r.send(method_name)} problem is I want to call only getters
ton31337 has left #ruby [#ruby]
<ddv> +.each etc
<ljarvis> ddv: just.. don't do that
<ljarvis> why would you do that?
<mrgrieves> ["nginx-1.7.4-1.el6.ngx.x86_64.rpm", "nginx-1.8.0-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.7.4-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.8.0-1.el6.ngx.x86_64.rpm", "hieradata_prod_6322.jax.rpm", "puppet_6322.jax.rpm"]
postmodern has quit [Quit: Leaving]
<ddv> ljarvis: because those methods return data I want to log and I don't want to write a lot of logger.info statements
chussenot has quit [Quit: chussenot]
<ljarvis> ddv: that's what a delegator is for
<ddv> ljarvis: cool do you have an example?
<mrgrieves> and I would like to get ["nginx-1.8.0-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.8.0-1.el6.ngx.x86_64.rpm", "hieradata_prod_6322.jax.rpm", "puppet_6322.jax.rpm"]
<yorickpeterse> instance_variables.each { |ivar| send(ivar.to_s[1..-1]) if respond_to?(ivar.to_s[1..-1]) }
* yorickpeterse runs
sigurding has quit [Quit: sigurding]
<ddv> yorickpeterse: thanks
edwinvdgraaf has quit [Ping timeout: 255 seconds]
<yorickpeterse> ddv: you really shouldn't use that though
<ddv> probably yeah
<ljarvis> mrgrieves: group_by { |i| i.gsub(/\d+/, "") }.map { |_, v| v.max }
<ljarvis> that assumes you can sort them
<ljarvis> but with the data you've given us, that's possible
<ljarvis> maybe you should be careful though
<mrgrieves> ljarvis: yes, we can sort them
mcclurmc has quit [Remote host closed the connection]
<ljarvis> ok
<ljarvis> also you probably want [^a-z] rather than \d+
<mrgrieves> the order is not important at the end, I'm planning to iterate over the whole array
millerti has quit [Client Quit]
rubie has joined #ruby
<ljarvis> >> ["nginx-1.7.4-1.el6.ngx.x86_64.rpm", "nginx-1.8.0-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.7.4-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.8.0-1.el6.ngx.x86_64.rpm", "hieradata_prod_6322.jax.rpm", "puppet_6322.jax.rpm"].group_by { |n| n.gsub(/[^a-z]/, "") }.map { |_, v| v.max }
<ruboto> ljarvis # => ["nginx-1.8.0-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.8.0-1.el6.ngx.x86_64.rpm", "hieradata_prod_6 ...check link for more (https://eval.in/384335)
<ljarvis> meh
chussenot has joined #ruby
<havenwood> >> ["nginx-1.7.4-1.el6.ngx.x86_64.rpm", "nginx-1.8.0-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.7.4-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.8.0-1.el6.ngx.x86_64.rpm", "hieradata_prod_6322.jax.rpm", "puppet_6322.jax.rpm"].group_by { |package| package.partition(/\d/).first }.map(&:last).map &:max
<ruboto> havenwood # => ["nginx-1.8.0-1.el6.ngx.x86_64.rpm", "nginx-debuginfo-1.8.0-1.el6.ngx.x86_64.rpm", "hieradata_prod_6 ...check link for more (https://eval.in/384336)
Igorshp has joined #ruby
<ljarvis> psh
<havenwood> ljarvis: pre2, rc1
<ljarvis> why use partition if you're going to ignore the second result
<ljarvis> havenwood: im using the example im given :D
codecop has quit [Remote host closed the connection]
<havenwood> ljarvis: my defense remains lack of coffee
* apeiros says: use a class for the packages
<havenwood> i'm invincible!
<mrgrieves> thanks you both !!!
<ljarvis> havenwood: I've had 3 cups and I've used the same execuse 4 times in the past hour :(
<mrgrieves> both invincible
<havenwood> ljarvis: hehe
<mrgrieves> gonna give this a try with a bigger sample
<ljarvis> apeiros: aye I'd probably do that too
yeticry has quit [Ping timeout: 256 seconds]
athos_diddy has quit [Remote host closed the connection]
athos_diddy has joined #ruby
<apeiros> packages.group_by(&:name).values.map { |pkgs| pkgs.max }
ahmetkapikiran has quit [Quit: ahmetkapikiran]
yeticry has joined #ruby
<ljarvis> psh, dont use to_proc once and then reject it
rubie has quit [Ping timeout: 265 seconds]
<apeiros> means Package needs #name and #<=>
<havenwood> apeiros: i can't count how many times i've done `map(&:last)` instead of `values`, i never learn
<apeiros> oh
krz has quit [Ping timeout: 246 seconds]
<apeiros> packages.group_by(&:name).values.map(&:max)
<ljarvis> ty
<apeiros> tiping with one arm still sucks
<apeiros> *typing
<ljarvis> dont tip
sevenseacat has joined #ruby
* apeiros tips ljarvis
fgo has joined #ruby
* ljarvis tips fedora
<havenwood> a vestige of a bygone era
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rapier- has joined #ruby
<shevy> oh! we are talking about windows again!
<ljarvis> going to the gym during lunch break is almost always an awful idea
<ljarvis> shevy: no we're not
<havenwood> vestige, bygone and era... which are gems?
<havenwood> aww, no fun - just era and it's my gem ;(
<wasamasa> I found the sources of matz' self-made mail client
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<havenwood> wasamasa: ya?
<wasamasa> havenwood: yes, cmail
<shevy> cool where?
<wasamasa> sourceforge.jp :P
ahmetkapikiran has joined #ruby
<wasamasa> it hasn't been touched in over a decade
<ljarvis> that's the emacs one?
<wasamasa> yup
<shevy> http://cmail.osdn.jp/ 2003/01/27 00:08:05 $
<wasamasa> and I'm a fan of antique japanese elisp :P
<shevy> (defvar *cmail-simap4-noremote-p nil)
<linduxed> pop quiz: what would you guys put after a percent literal like %w ?
<shevy> (setq res (cons (car dirlist) res))
<shevy> so beautiful
<shevy> linduxed ()
<havenwood> shevy: Matz mentioned merging Streem's concurrency into Ruby 3 as a possible third alternative to Actors or a more Rust-like transferring ownership.
<shevy> just like in lisp
<canton7> linduxed, {}, most of the time. maybe | if necessary
<wasamasa> gobble-crash-box, aha
fgo has quit [Ping timeout: 252 seconds]
<shevy> syntax of streem is weird, it's not ruby or?
<wasamasa> I wonder what he's using these days
<wasamasa> gmail?
<havenwood> shevy: It's not Ruby, Matz mentioned `|` is already taken in Ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
<havenwood> shevy: Maybe something like Elixir's `|>` but he rejected that for Streem, so who knows?
<wasamasa> lol, the password scrambling
<wasamasa> almost as good as thunderbirds password "protection"
sigurding has joined #ruby
chussenot has quit [Quit: chussenot]
ZOMGITSABEAR has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
sgambino has joined #ruby
zudochkin has joined #ruby
sgambino has quit [Client Quit]
stamina has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
bollullera has joined #ruby
bollullera has left #ruby [#ruby]
sgambino has joined #ruby
dg-ratiodata has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
zudochkin has quit [Ping timeout: 244 seconds]
<ljarvis> linduxed: I use ()
<ljarvis> linduxed: but the best part is that it doesn't matter
<linduxed> i know
<linduxed> just curious what other people use
<bougyman> i use () because it's what rubocop wants.
<havenwood> linduxed: []
<shevy> :)
<bougyman> if you ever want to wonder which is 'standard', run rubocop on it.
<ljarvis> eff the po po
<ljarvis> but yeah I use () too
<ljarvis> it's much nicer
<havenwood> rubocop can go back to the 80s where he belongs!
<shevy> even lisp knew what to pick!
<Darkwater> I use () or sometimes {}
<Darkwater> if this is about literals
BTRE has joined #ruby
<bougyman> I used to use {}
<linduxed> hard time deciding [] or ()
<bougyman> til I started using rubocop
<havenwood> () but [] if it's an Array sometimes
<bougyman> then I moved to ()
<linduxed> i think i like [] more, but () is what most people use
<linduxed> it seems
<Darkwater> fuck it
<havenwood> linduxed: the sheeple fear cyborg police
<Darkwater> from now on I'll use space
<ljarvis> use @
<linduxed> ljarvis: we have a winner
<shevy> >> %w( abc def )
<ruboto> shevy # => ["abc", "def"] (https://eval.in/384354)
<shevy> >> %w@ abc def @
livathinos has joined #ruby
<ruboto> shevy # => ["abc", "def"] (https://eval.in/384355)
<shevy> ewwwww
<Darkwater> >> %w abc
<ruboto> Darkwater # => /tmp/execpad-b1b2edbde08b/source-b1b2edbde08b:2: unterminated string meets end of file ...check link for more (https://eval.in/384356)
<shevy> fail!
<Darkwater> bullshit
<Darkwater> >> %w abc ;
<havenwood> >> %w*splats splats!*
<ruboto> Darkwater # => /tmp/execpad-9666161b7fcd/source-9666161b7fcd:2: unterminated string meets end of file ...check link for more (https://eval.in/384358)
<ruboto> havenwood # => ["splats", "splats!"] (https://eval.in/384358)
<shevy> lol
<ljarvis> just use %
<ljarvis> %w%
<Darkwater> I guess it doesn't work with w
<Darkwater> it works with x
<shevy> linduxed so what will you choose?
dg-ratio1 has joined #ruby
<ljarvis> >> %x%ls%
<linduxed> i think i'll go with (), but with spaces after the ( and befor the )
<ruboto> ljarvis # => (https://eval.in/384359)
s2013 has joined #ruby
<linduxed> *before
<Darkwater> >> puts %x uname
<ruboto> Darkwater # => /tmp/execpad-b63382930e21/source-b63382930e21:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/384360)
<Darkwater> >> puts %x uname ;
<ruboto> Darkwater # => (https://eval.in/384361)
<shevy> linduxed my brother! \o/
<havenwood> ruboto doesn't do trailing whitespace
dg-ratiodata has quit [Ping timeout: 246 seconds]
<havenwood> every time you use an extra space a fairy dies
<ljarvis> ^
<havenwood> just saying, be humane
droidburgundy has joined #ruby
<workmad3> >>
<ruboto> workmad3 # => nil (https://eval.in/384362)
<Darkwater> but what about whitespace (programming language)
ldnunes has joined #ruby
<ljarvis> BUT, you should *always* add a trailing comma to the last line of a multiple line hash literal
<ljarvis> unless you're a monster
<havenwood> Darkwater: not a fairy friendly lang
<Darkwater> hehe
<havenwood> Darkwater: though those whitespaces are necessary
<Darkwater> yeah but they're trailing
<shevy> lol
<bougyman> lj: i hate the trailing comma
<shevy> "<ljarvis> unless you're a monster"
<ljarvis> WOT
<Darkwater> the trailing whitespace in %x uname is also necessaryt
<bougyman> people get used to that and leave it all over their json, too.
<ljarvis> bougyman: y u say this :(
casadei has joined #ruby
<undeadaedra> >> % hello # why the ;
<ruboto> undeadaedra # => "hello" (https://eval.in/384363)
<bougyman> and other lingos don't like, either.
<ljarvis> bougyman: think of the git log
<bougyman> we use more than just ruby at the office.
<bougyman> it's just a bad habit.
<shevy> lisp!
<undeadaedra> (lisp)
<bougyman> lisp doesn't need commas, heh
<Darkwater> it's too bad you can't use alphanumerics or unicode characters as delimiters
migbar has quit []
<Darkwater> %xaunamea or %xアunameア
<workmad3> >> puts %x|uname|
<ruboto> workmad3 # => (https://eval.in/384364)
<Darkwater> s/aunamea/xunamex/
<ljarvis>
bMalum has joined #ruby
GitGud has quit [Ping timeout: 265 seconds]
edwinvdg_ has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 276 seconds]
chussenot has joined #ruby
dblessing has joined #ruby
edwinvdgraaf has joined #ruby
bMalum has quit [Read error: No route to host]
dg-ratio1 has quit [Ping timeout: 246 seconds]
symm- has joined #ruby
langland_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
jlast has joined #ruby
chinmay_dd has joined #ruby
InternetFriend has joined #ruby
dstarh has joined #ruby
langlands has quit [Ping timeout: 252 seconds]
serivich has joined #ruby
Forgetful_Lion has quit [Remote host closed the connection]
uptownhr has joined #ruby
rbennacer has joined #ruby
<shevy> I'd love to have a powerful pipe in ruby
JakFrist has joined #ruby
<acsigusz> shevy: a powerful pipe?
rbennacer has quit [Remote host closed the connection]
rippa has joined #ruby
<shevy> yeah! one where you can pipe objects
griffindy has joined #ruby
<jhass> Pipe = Queue
chinmay_dd has quit [Ping timeout: 252 seconds]
<jhass> done
endash has joined #ruby
rbennacer has joined #ruby
bMalum has joined #ruby
mister_solo has joined #ruby
chinmay_dd has joined #ruby
User458764 has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
CloCkWeRX has joined #ruby
Xeago has quit [Remote host closed the connection]
chinmay_dd has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 250 seconds]
chussenot has quit [Quit: chussenot]
konsolebox has quit [Quit: Leaving]
lee-jon has joined #ruby
lee-jon has left #ruby [#ruby]
patricknegri has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I see that jhass has never tried to pipe a cat
Xeago has joined #ruby
<sevenseacat> :3
chinmay_dd has joined #ruby
njs126 has quit [Ping timeout: 255 seconds]
fmcgeough has joined #ruby
zz_barkerd427 is now known as barkerd427
bMalum has joined #ruby
jphenow has joined #ruby
senayar has quit [Remote host closed the connection]
zudochkin has joined #ruby
arturhoo has quit [Quit: arturhoo]
<ddv> <3
<undeadaedra> cat /dev/cat | pet
mengu has quit []
<shevy> I have no /dev/cat here
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
sonOfRa has quit [Quit: Bye!]
mary5030 has joined #ruby
sonOfRa has joined #ruby
zudochkin has quit [Remote host closed the connection]
JoshL has joined #ruby
zudochkin has joined #ruby
patteh has quit [Quit: leaving]
zudochkin has quit [Remote host closed the connection]
coderhs has joined #ruby
patteh has joined #ruby
zudochkin has joined #ruby
tkuchiki has joined #ruby
revath has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
senayar has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
zipace has joined #ruby
blue_deref has quit [Quit: bbn]
x44x45x41x4E_ has joined #ruby
nateberkopec has joined #ruby
edwinvdg_ has joined #ruby
zudochkin has quit []
ziprar has joined #ruby
ziprar has joined #ruby
x44x45x41x4E_ has quit [Remote host closed the connection]
x44x45x41x4E_ has joined #ruby
krisquigley has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
RegulationD has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
psy_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
psy_ has quit [Max SendQ exceeded]
edwinvdgraaf has quit [Ping timeout: 245 seconds]
zipace has quit [Disconnected by services]
jordanm has quit [Ping timeout: 265 seconds]
whippythellama has joined #ruby
ziprar is now known as zipace
psy_ has joined #ruby
C1V0 has quit []
jordanm has joined #ruby
techsethi has joined #ruby
gambl0re has quit [Ping timeout: 276 seconds]
blue_deref has joined #ruby
devdazed has joined #ruby
krisquigley has quit [Ping timeout: 276 seconds]
chussenot has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
quimrstorres has joined #ruby
nateberkopec has quit [Quit: Leaving...]
skade has joined #ruby
andikr has quit [Ping timeout: 252 seconds]
serivich has quit [Ping timeout: 272 seconds]
dumdedum has quit [Quit: foo]
malconis has joined #ruby
quimrstorres has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
t88m33s has quit [Remote host closed the connection]
doertedev has joined #ruby
qwertme has joined #ruby
GitGud has joined #ruby
ghostpl has joined #ruby
nateberkopec has joined #ruby
serivich has joined #ruby
segfalt has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
ndrei has joined #ruby
fantazo has quit [Ping timeout: 276 seconds]
enebo has joined #ruby
alex88 has joined #ruby
revath has joined #ruby
arturhoo has joined #ruby
krisquigley has joined #ruby
chussenot has quit [Quit: chussenot]
hinbody has joined #ruby
quazimodo has joined #ruby
fabrice31 has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
rafaelsales has joined #ruby
fabrice31_ has quit [Ping timeout: 255 seconds]
JoshL has quit [Remote host closed the connection]
msnyon has joined #ruby
NeverDie has joined #ruby
tkuchiki has quit [Remote host closed the connection]
JoshL has joined #ruby
sanguisdex has quit [Quit: Leaving.]
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
haxrbyte has joined #ruby
chussenot has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
et09 has joined #ruby
wookiehangover has quit [Ping timeout: 265 seconds]
white_bear has joined #ruby
uptownhr has quit [Quit: uptownhr]
unshadow has joined #ruby
<white_bear> hi. is there a way to use string concatenation's alias using the ternary operator only? i.e., 'foo' (<< 'bar' if <cond>)
x44x45x41x4E_ has quit [Ping timeout: 256 seconds]
livathinos has quit []
rafaelsales has quit []
<undeadaedra> >> 'foo'.tap do |s| s << bar if true end
<ruboto> undeadaedra # => undefined local variable or method `bar' for main:Object (NameError) ...check link for more (https://eval.in/384384)
<undeadaedra> >> 'foo'.tap do |s| s << 'bar' if true end
<ruboto> undeadaedra # => "foobar" (https://eval.in/384385)
<undeadaedra> >> 'foo'.tap do |s| s << 'bar' if false end
<ruboto> undeadaedra # => "foo" (https://eval.in/384386)
<undeadaedra> white_bear: there's this way ^
mahtennek has joined #ruby
tkuchiki has joined #ruby
zudochkin has joined #ruby
tagrudev has quit [Remote host closed the connection]
k3asd` has joined #ruby
rafaelsales has joined #ruby
rafaelsales has quit [Client Quit]
rafaelsales has joined #ruby
haxrbyte_ has joined #ruby
<white_bear> undeadaedra: cool, thanks!
peter_paule has joined #ruby
revath has quit [Ping timeout: 250 seconds]
newnews has joined #ruby
<newnews> www.VALBOT.com provides domain valuations. Reporting globally on Site Traffic, Pagerank, Malware, WHOIS data, SEO & even Social Media presence.
<undeadaedra> !ops
<ruboto> fflush, apeiros, zzak, Mon_Ouie, seanstickle, banisterfiend, jhass, Havenn, Radar, sevenseacat, miah, Coraline, workmad3, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<sevenseacat> hello
wookiehangover has joined #ruby
<havenwood> !mute newnews
* apeiros too slow with only one arm :<
momomomomo has joined #ruby
<sevenseacat> apeiros: what happened to the other one?
<undeadaedra> It's not a race, apeiros, it's all good
<apeiros> eaten by a grue :-o
<sevenseacat> I hate when that happens.
<apeiros> shouldn't have forgotten to bring a candle
newnews has left #ruby [#ruby]
spyderman4g63 has quit []
blackmesa has joined #ruby
<apeiros> sevenseacat: bursa inflammation
x44x45x41x4E has quit [Ping timeout: 276 seconds]
<sevenseacat> ow :/
fer_ has joined #ruby
langland_ has quit [Ping timeout: 252 seconds]
peter_paule has quit [Ping timeout: 244 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
<yorickpeterse> clearly we need a machine learning approach to have the bot auto ban people
allomov has quit [Remote host closed the connection]
<yorickpeterse> or just hook it up to spamassassin
Soda has joined #ruby
<apeiros> contributions welcome :)
InternetFriend has joined #ruby
<ljarvis> did you release the source?
mallu has joined #ruby
RegulationD has joined #ruby
ahmetkapikiran has joined #ruby
<apeiros> no. you can contribute by writing a cinch plugin
aryaching has joined #ruby
fer_ has quit [Client Quit]
slash_nick has joined #ruby
<ponga> hi guys
<yorickpeterse> apeiros: source or gtfo
iamninja has quit [Ping timeout: 265 seconds]
Igorshp has quit [Remote host closed the connection]
<yorickpeterse> also meh I cbf anyway, too much effort to train it
<ponga> i guess that would require some nlp
<yorickpeterse> spam doesn't appear very often in here either
granthatcher has joined #ruby
casadei has joined #ruby
<quazimodo> do we have any refactoring tools like the auto refactoring tools in java?
rafaelsales has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 265 seconds]
umgrosscol has joined #ruby
penzur has joined #ruby
InternetFriend has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 265 seconds]
dopie has joined #ruby
ringarin has quit [Ping timeout: 272 seconds]
<yorickpeterse> I think RubyMine has some
Sirrr has joined #ruby
<yorickpeterse> But there are no real standalone tools IIRC
symm- has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
dfockler has joined #ruby
<white_bear> undeadaedra: how would you do the same with a frozen string?
EasyCo has quit [Quit: Connection closed for inactivity]
<undeadaedra> you can't
banister has joined #ruby
<undeadaedra> a frozen string can't be modified, you'll have to use +
banister has quit [Read error: Connection reset by peer]
<white_bear> undeadaedra: that's what i thought :p
<undeadaedra> and so, tap is not suitable
<white_bear> undeadaedra: alright
skade has quit [Quit: Computer has gone to sleep.]
blue_deref has quit [Quit: bbn]
Igorshp has joined #ruby
serivich has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
sarkyniin has joined #ruby
dgutierrez1287 has joined #ruby
gambl0re has joined #ruby
dfockler has quit [Ping timeout: 252 seconds]
JoshL has quit [Remote host closed the connection]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
slash_nick has quit [Ping timeout: 276 seconds]
Matadoer has quit [Ping timeout: 264 seconds]
krz has joined #ruby
yqt has joined #ruby
juanpaucar has joined #ruby
hahuang65 has joined #ruby
peter_paule has joined #ruby
<white_bear> is it better to do x: "#{y}.#{z}" or x: y << z or x: y + z # ? i guess it's the right order, the former being the fastest
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Ox0dea> >> require 'fiddle'; s = 'foo'.freeze; Fiddle::Pointer.new(s.object_id << 1)[1] ^= 8; s << 'bar'
<ruboto> Ox0dea # => "foobar" (https://eval.in/384419)
sevenseacat has quit [Quit: Me dun like you no more.]
<apeiros> they are not doing the same
dgutierrez1287 has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
<undeadaedra> y << z will modify the y variable, not y + z
<apeiros> also the first adds a dot
<white_bear> oh sorry i forgot the dot
EagleDelta has joined #ruby
<white_bear> the + operator makes a copy
guillaume-rb has joined #ruby
blackmesa has joined #ruby
<Ox0dea> It creates a new string from its operands.
chinmay_dd has quit [Remote host closed the connection]
tfitts has quit [Ping timeout: 276 seconds]
chinmay_dd has joined #ruby
mister_solo has quit [Ping timeout: 255 seconds]
<undeadaedra> "#{y}.#{z}" is better than y + "." + z, as the latter will create an intermediate string (y + ".")
<white_bear> right, so "#{x}.#{y}" is faster than x << '.' << y since there's no call to concat, right?
peter_paule has quit [Ping timeout: 272 seconds]
<undeadaedra> they're not the same
revath has joined #ruby
<undeadaedra> << modifies left operand
<Ox0dea> Those are the same.
hahuang65 has quit [Ping timeout: 255 seconds]
<Ox0dea> Ah, sorry, I meant that the result is the same.
houhoulis has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
fgo has joined #ruby
<shevy> << won't create a new object
aryaching has quit [Ping timeout: 265 seconds]
haxrbyte has joined #ruby
<shevy> + will
<ljarvis> also, this shouldn't really be about speed
aryaching_ has joined #ruby
<undeadaedra> well, not exactly, if you use y afterwards, Ox0dea
<ljarvis> if you're concerned about << vs creating a new string Object wrt speed, you're doing it wrong
<white_bear> yes the result is the same, but << modifies x, alright
<shevy> it is perfectly fine to care about the difference in speed between << and +
haxrbyte has quit [Read error: Connection reset by peer]
<undeadaedra> s/y/x/
<yorickpeterse> ljarvis: actually there are cases where that makes sense
senayar has quit [Remote host closed the connection]
<yorickpeterse> I've dealt with them, they're annoying
<ljarvis> I respectfully disagree in the real world, there are things I would care more about than speed in this situation
<undeadaedra> white_bear: don't use << just becuase it looks cooler than +, do it if you want to modify an existing string.
langlands has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
<shevy> you can also use << for Arrays :)
<linduxed> can someone elaborate on this style guide rule? https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
SOLDIERz has quit [Ping timeout: 272 seconds]
JoshL has joined #ruby
<shevy> linduxed hmm jhass wrote about this yesterday I think
micmus has joined #ruby
bronson has joined #ruby
<ljarvis> linduxed: it's because Struct.new is special, so instead of creating 1 class and assigning it to Person it creates some superfluous class and inherits from it instead
<linduxed> i don't have a log that goes that far back
jenrzzz has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<havenwood> linduxed: Look at `Person.ancestors` for both cases.
<shevy> that styleguide is weird
<undeadaedra> linduxed: see the channel topic
shredding has joined #ruby
<yorickpeterse> https://github.com/YorickPeterse/oga/commit/a5cd75cb7e31e7c3bdbd9f417cd590e29855a629 <- e.g. stuff like this can make difference
aryaching_ has quit [Ping timeout: 255 seconds]
<white_bear> undeadaedra: got it
tfitts has joined #ruby
<ljarvis> yorickpeterse: really? you're comparing general to writing a damned xml parser? :D
<apeiros> .rll?
<linduxed> havenwood: oooh, that makes sense
<ljarvis> ruby-ll
<mrgrieves> how can I make this better? http://pastebin.com/VnU33GLZ the idea is that I have many packages with names that start with "hieradata_" i.e. "hieradata_integration_12.rpm", "hieradata_uat_15.rpm" & "hieradata_prod_15.rpm"
<ruboto> mrgrieves, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/21c3ff8507fcbcd1b933
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<linduxed> undeadaedra: thx
fgo has quit [Ping timeout: 265 seconds]
<mrgrieves> I'm only interested in hieradata_prod_xxx packages
<shevy> mrgrieves what is the intent
<shevy> you seem to only output stuff
<mrgrieves> yes
<shevy> you could apply a .select, then output based on that result
<mrgrieves> just output
rubie has joined #ruby
<shevy> and unify both conditions
<yorickpeterse> ljarvis: yesh
<shevy> if name.start_with?("hieradata_") if name.include? "prod_"
<yorickpeterse> :P
<shevy> dataset.select {|entry| entry.start_with?('hieradata_') && entry.include?('prod_') }
<shevy> should work
j_mcnally has joined #ruby
allomov has joined #ruby
<ljarvis> yorickpeterse: I would concede that in the case of doing insane things, it is ok to be insane
micmus has quit [Ping timeout: 264 seconds]
<yorickpeterse> heh
bahar has joined #ruby
<white_bear> also, still about concatenation, is there a way to make something like: "#{x}.#{y}" with .#{y} appended on condition? e.g., "#{x}#{.#{y} if <cond>}"
bronson has quit [Ping timeout: 276 seconds]
<mrgrieves> shevy: cheers
<Ox0dea> white_bear: "#{x}.#{y if cond}"
<ljarvis> ^ wrong
<Ox0dea> You can interpolate any valid Ruby expression.
<undeadaedra> Ox0dea: you have the point at any case here
* ljarvis passes Ox0dea the period
durham has joined #ruby
<shevy> ack
j_mcnally has quit [Client Quit]
<shevy> it is beginning to look really ugly
<undeadaedra> white_bear: cond ? "#{x}.#{y}" : x
wpp has quit [Quit: ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
<yorickpeterse> You need a StringBuilder for this
<ljarvis> lol
<undeadaedra> StringFactory
<ljarvis> it's Ruby, every string is a stringbuilder
<ljarvis> herp derp mutable state
tkuchiki has joined #ruby
<undeadaedra> ljarvis: apparently white_bear has frozen strings
RandyT has quit [Read error: Connection reset by peer]
<yorickpeterse> they must be cold
<shevy> well, where do white bears live?
<Ox0dea> Frozen strings can be thawed. :)
<yorickpeterse> (get it, white bear?)
<shevy> surely not in McDonalds
<yorickpeterse> I'll see myself out
<undeadaedra> yorickpeterse: HOHOHOHO
piet_ has joined #ruby
<shevy> explaining a joke is a risky thing to do yorickpeterse!
davedev24_ has joined #ruby
commondream has quit [Remote host closed the connection]
<shevy> they may end up laughing more about you rather than the joke
<yorickpeterse> They do anyway
<shevy> but you still get a laugh :P
<shevy> haha
<ljarvis> he's right
<ljarvis> we do
<diegoviola> how do I stay sane when I have to write php code? laravel?
<havenwood> hmm, we should be able to #steam a String and have it become *really* mutable
Soda has quit [Remote host closed the connection]
<havenwood> maybe mutate randomly
RandyT has joined #ruby
<undeadaedra> diegoviola: you don't.
<yorickpeterse> steam?
<ljarvis> diegoviola: you stop writing php code
<white_bear> yorickpeterse: nice one :D
aryaching has joined #ruby
<yorickpeterse> oh shit, there's actually somebody called white_bear here?
<yorickpeterse> haha, I didn't even see that
<havenwood> yorickpeterse: when you heat water instead of cool it
<ljarvis> lrntoirc
yqt has quit [Read error: Connection reset by peer]
<shevy> diegoviola does the php syntax make you happy?
* undeadaedra gives yorickpeterse glasses
<ljarvis> lol havenwood
<diegoviola> ljarvis: I'm not sure how I would do that, provided they only write php and JS code at this company
<diegoviola> shevy: NO
<ljarvis> it's a bit hilarious that you explained that
<ljarvis> diegoviola: seems like that's easily solved
<yorickpeterse> diegoviola: write a Ruby-to-PHP compiler
<diegoviola> undeadaedra: good luck with that, everyone is doing PHP and JS here
<diegoviola> ljarvis: how?
<shevy> yorickpeterse you really did not see the white bear?
<ljarvis> diegoviola: by... leaving?
<yorickpeterse> http://php.rubyforge.org/ lel
<diegoviola> ljarvis: they have a server here where they push code with SFTP, and their server only serves php and js
<yorickpeterse> shevy: no
<diegoviola> ljarvis: no ruby
<undeadaedra> diegoviola: I succeeded at doing ruby in a company that does only PHP \o/
<diegoviola> ljarvis: I need the job
fabrice31_ has joined #ruby
<ljarvis> diegoviola: my answer is still valid
<shevy> that goes to show that a white bear can hide in ice areas
<ljarvis> get a different job
fabrice31 has quit [Read error: Connection reset by peer]
<diegoviola> undeadaedra: how?
<ljarvis> or, embrace php
<shevy> this is even better:
<durham> Hi all is there a way to force clear all instances of an object? I have this: https://gist.github.com/anonymous/e544abbc34c6a57aaa72 which shows how i have it working using a class variable to store the objects but using ObjectSpace seems like a better alternative but im not sure how to clear these as they are getting built multiple times so my tests are failing
datanoise has joined #ruby
<shevy> "INSTALL:"
<shevy> "No."
<diegoviola> guys help... I don't want to go back to PHP
<undeadaedra> diegoviola: making a 3rd party tool that they now use and that I continue to develop.
<shevy> diegoviola convince the company that ruby is better
uptownhr has joined #ruby
zach_ has joined #ruby
<yorickpeterse> shevy: worse: tenderlove is actually submitting commits
<ljarvis> durham: use your first example
<undeadaedra> It doesn't mean I don't do PHP, but it is a nice escape
<shevy> yorickpeterse lol
<shevy> undeadaedra as long as php pays for the daily baguettes!
<undeadaedra> shevy: fun fact: I rarely eat bread.
<diegoviola> shevy: I don't think I will succeed, they like their own PHP ways
<ljarvis> durham: why does using ObjectSpace seem better? because it's not
<yorickpeterse> apparently it doesn't pay for enough baguettes then
<ljarvis> durham: you want to mutate the list, you can't do that, so you need a mutable object
<shevy> diegoviola well, that's the nature of evolution there - you need to outperform them with ruby so clearly that ruby wins
<shevy> and if you fail
<shevy> then ruby obviously sucks
<diegoviola> shevy: they like using composer, but I don't think their code is very nice as my Ruby code
<yorickpeterse> oh, that reminds me of something
<zach_> I'm about to launch a gem that depends on a debian package. The default error when attempting to install the gem will lead 99% of ubuntu users to waste time figuring out which package to install. I know which package to install, but I do not know the idiomatic way of either A. doing this for the user. or B. telling the user which package to install.
<diegoviola> shevy: they don't use any frameworks, etc
<durham> ljarvis: ah okay, problem solved!
<durham> ljarvis: thanks
<ljarvis> durham: I would use a class instance variable instead of a class variable though :P
<diegoviola> shevy: I've look at some of their code and it doesn't have any structure like most rails projects
<diegoviola> their PHP is glued up with HTML
axl_ has joined #ruby
<diegoviola> it makes my eyes bleed
<yorickpeterse> ignore all the trolls though
<shevy> zach_ you could display a message when someone tries to install the gem
<yorickpeterse> and the .gifs
<shevy> zack s.post_install_message = <<-EOF; Please keep in mind that bla bla bla; EOF
<diegoviola> so how do I stay sane with this PHP crap?
<ljarvis> diegoviola: please stop
jbisnett has joined #ruby
<hal_9000> “How do I stay clean working in this stable?”
<ljarvis> you've said it 100 times
<ljarvis> it's now boring and other people are trying to ask Ruby questions
<Ox0dea> You've been fed fit to bursting, troll, now back whence you come!
durham has quit [Quit: Page closed]
<white_bear> undeadaedra: foo.include? ... ? ... : ... # the two "?" looks redundant, don't they?
<diegoviola> ljarvis: why?
<zach_> thanks shevy
<ljarvis> diegoviola: because I asked you nicely?
<undeadaedra> white_bear: they're not.
<diegoviola> ljarvis: how about no?
<hal_9000> white_bear: i see your point, but it’s unavoidable
zach_ has left #ruby [#ruby]
<ljarvis> !kick diegoviola then please come back later
diegoviola was kicked from #ruby by ruboto [then please come back later]
aryaching has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
<diegoviola> ljarvis: that wasn't very nice of you
<ljarvis> I asked you nicely
Sirrr has quit [Ping timeout: 265 seconds]
<ljarvis> so, it's your choice
<diegoviola> ljarvis: I'm not trolling or anything
<havenwood> diegoviola: PHP is off-topic, but there's #ruby-offtopic so head that way and lets talk us some PHP!
<ljarvis> I asked you to stop. Stop, or leave
<diegoviola> I've started writing a rails project at this company that only uses PHP but then we have the problem of deploying my app, they only have a server that handles PHP
<undeadaedra> yeah, go put some activity in the ot channel
<Ox0dea> >> ['foo'.empty?? 0:1, ??]
<ruboto> Ox0dea # => [1, "?"] (https://eval.in/384446)
<diegoviola> havenwood: ok, he could have explained this but then he just tells me to stop
<Ox0dea> Ruby has not one but *two* meanings for double question marks.
<diegoviola> havenwood: I understand, I'll stop then
<diegoviola> sorry
Spami has joined #ruby
allomov has quit [Remote host closed the connection]
<hal_9000> Ox0dea: it’s better to space reasonably
<undeadaedra> Ox0dea: wow, it took me some time to get this
<diegoviola> ljarvis: sorry about that
<[k-> It took me some time too
<ljarvis> diegoviola: no problem, thank you
<[k-> If you would add a bit more spaces
<diegoviola> I'll ask the company if I can write the project with Rails
zudochkin has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<diegoviola> because I honestly don't feel like I will be ok writing PHP code, I can't, I haven't wrote a single line of PHP code in 8 years
<hal_9000> [‘foo’.empty? ? 0 : 1, ??]
arooni-mobile has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
<Ox0dea> Get out of here with your syntactically invalid fancy quotes.
<[k-> [(‘foo’.empty? ? 0 : 1), ??]
tkuchiki has quit [Remote host closed the connection]
njs126 has joined #ruby
withnale_ has quit [Quit: Be back later ...]
<[k-> I just... noticed that
<white_bear> i've got a warning about string literal in condition (used ternary operator), why that? i.e., foo = x.include? '.' ? x : "#{x}.#{y}"
<havenwood> diegoviola: There really is a #ruby-offtopic and PHP really is on-topic there: /join #ruby-offtopic
<hal_9000> ha, i did not intentionally use those — must be an annoying feature of Colloquy
<diegoviola> ok
<hal_9000> white_bear: precedence issue?
<[k-> It seems so
j_mcnally has joined #ruby
fabrice31_ has quit [Read error: No route to host]
<[k-> This is one case where Ruby does what you might not expect
<Ox0dea> Parentheses are optional until they're not.
fabrice31 has joined #ruby
momomomomo has joined #ruby
<hal_9000> no, they’re optional ;) you’re still required to say what you mean
<[k-> It probably evaluated '.' ? ... first
AlexRussia has quit [Quit: WeeChat 1.2-dev]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<Obfuscate> That isn't a very intuitive binding order.
ogpastaling has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<hal_9000> this always bothered me a little: puts var unless (var = my_func()).nil?
<[k-> Nim may solve this issue
<hal_9000> Obfuscate: agreed, but precedence is always a tradeff, and i think ruby does better than most languages
<[k-> With space sensitive binding
<[k-> Haskell does better in this respect imo
Igorshp has quit [Remote host closed the connection]
<white_bear> fixed: foo = x.include?('.') ? x : "#{x}.#{y}"
aryaching has joined #ruby
<Obfuscate> hal_9000: Well, it might be hard to change now. I can't think of many situations in which I'd prefer that particular behavior though.
senayar has quit []
<Obfuscate> hal_9000: What happens with 'unless' there?
<hal_9000> Obfuscate: true, i’m ust saying if you fix that, you will probably break something else
<hal_9000> even though the Boolean is (would be) evaluated first, you get an error because var is undefined
nobitanobi has quit [Remote host closed the connection]
tkuchiki has joined #ruby
rafaelsales has joined #ruby
<hal_9000> the nil? is not really relvant there, it could be any expr
AvidChronos has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
AlexRussia has joined #ruby
yaw has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<[k-> I prefer if ! to unless
tkuchiki has joined #ruby
<Obfuscate> hal_9000: Ah, okay. I've become rather used to the requirement to forward declare. That's rather common across languages.
shinnya has joined #ruby
<Ox0dea> [k-: Vile heathen.
<[k-> unless always screws me up
eedham has joined #ruby
ongolk has joined #ruby
<[k-> if not nil reads better than unless nil
<Ox0dea> Try again with a real example.
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<[k-> :(
<phat4life> rubocop tells me to use unless sometimes, i musst obey
<hal_9000> well, if/unles is not relevant to the example — change it to if ! and it’s the same issue
nobitano_ has joined #ruby
<phat4life> i don't like using unless
<[k-> (New issue) I feel that if ! is clearer tho
<eedham> what would be a good way to hack into a linux game server
<hal_9000> unless is confusing, true, esp. with an else
<bougyman> i use unless only in suffix mode.
nisstyre has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
mahtennek has quit []
<hal_9000> bougyman: i tend to do taht as well
<bougyman> return :boo unless something
<bougyman> that's my usual usage of it.
<eedham> Is there any way to use the ruby scripting language to hack into routers and packet capture
<[k-> I think I'll avoid unless totally
<bougyman> eedham: yes.
<hal_9000> the point i was making is that a variable appearing first in a suffixed clause is not valid
<phat4life> [k- do you use rubocop
<bougyman> i'd recommend leveraging metasploit rather than writing it all yourself, though.
<eedham> like if I have the username and password to say a Cisco gateway, Ubiquoss, Huawei, or other router, can you use ruby to be lik ethe ruby katana and view traffic there
<eedham> oh ok
<[k-> Nope
davedev24_ has quit []
<[k-> That thing impedes my work!
wookiehangover has quit [Ping timeout: 256 seconds]
<bougyman> it shouldn't
<eedham> Runna ma nae, I'm GAY!
<bougyman> you can tune it to your style.
<bougyman> then it just enforces your own style on you.
snockerton has joined #ruby
<bougyman> if that slows you down ....
<hal_9000> i like to rebel against myself
<hal_9000> j/k, j/k
<[k-> I declare that I have read the style guide as of 2013 and have followed convention for the most part
<phat4life> i can't see whitespace
<Ox0dea> phat4life: Get a better editor.
aryaching has quit [Ping timeout: 256 seconds]
<phat4life> i mean from a philisophical standpoint
mister_solo has joined #ruby
<eedham> i've noticed some japanese people coming here
<phat4life> if i need like 10 extra spaces or returns imma use them
AndroidLoverInSF has joined #ruby
<bougyman> trailing whitespace is asstastic
<eedham> what's a good way to break into japanese servers
<bougyman> might as well use tabs, too.
<havenwood> !mute eedham
eedham has left #ruby [#ruby]
eedhem has joined #ruby
<eedhem> sorry
veleno has quit [Ping timeout: 252 seconds]
<phat4life> i just let rubocop yell at me
_blizzy_ has joined #ruby
<phat4life> what i really need is one of those pavlok shock bracelets
<undeadaedra> you can tweak it, you know
<eedhem> could someone help me out with css and making a ruby script to format pages to provide optimal room
<bougyman> it will learn from any current codebase.
<eedhem> I'm making a ruby HTML generator
<bougyman> and make a ruleset based on it.
<eedhem> We I'm lest come.
<eedhem> We chisisis of ling. Incream. Wit down execs. Vands fres. Squad. Withe chin' th Kortin't dream. Frease dos tos of Diviny! I'm liver. It's Fream, viol. Wit Korth goes. Destin life! Dee the of Son affly execs. Squad Sonic execs. I'm lis industriesting. Wortionic execs. Divater. Vandelayin' th gets frea! Man. It's Fresh, Playin th andelay, Mening getwork! Vandelay egs, Call over! Incream. It's of
<eedhem> Neshnesh goes. We'reaver! Mentos over! Nord!
<eedhem> life!
<eedhem> MandelayState drease doo dow we'll over, Call of Dee cook dreshneshmandelay. Vand Stayindelay bets fork! Mentos of living fre jets the jets oning jetterthis ony ing th Mentos baby, Mandelay. Vandelay bably me.
edwinvdg_ has quit [Remote host closed the connection]
<eedhem> Thild full overting ching ter withim affliving probay it dow we'rease better! Wortin lindelaying the bette Lizard of Stay bets th goesh Meniesh goesh Mand of livatioling coo dow we'll over. Vand wit's oniesh Koread Stat moliat dos Fre andelay, bayStatiolisis. Sonie Lizard Squad withe doo doo! Increstries. Menie execs. It's th goesh goesh andelay eggs, ing jets of Diver ing. Freasy hackindelay
<jhass> !mute eedhem
<eedhem> RIUNNA MA NAE
<eedhem> Nothe Lizard!
<eedhem> ing jetworehe the It cre bayStaying. We cooleggs. It's fres.
<eedhem> Nesh goes th goes. With goess.
<eedhem> Thisies th a nown life! Mand Stay execs. Stay bets bably baby, is the a mestationy! As in't dress. WortindelayStay, Lizard we'reheas ing th goes th air, ving fres, bette on air, in life! Divertin't doo dithe him andelay hacking tentos of Des. Sony bably hattentos Fream, ing priestriesn't doo Nothe doest doo frehe egs, asy moleam. VandelayStento dithe dresh Mento your ind fream, Vionic lin andelay
nobitano_ has quit [Remote host closed the connection]
eedhem was kicked from #ruby by ljarvis [eedhem]
eedhem has joined #ruby
<eedhem> po
<eedhem> We bion air, andustin andelay bette hacking. Yo-ho-ho-ho-ho-hoh-ho-hoh-hoh! Diving fly baby, Call of liny ing. I'm affly industea's fres in the a molife! Squad Squad molesh as thild baby, thisis fres, Play mol. Wore Lizard Stattentos Fife! DDoS th Mentos the bay, a mesn' to Northe the th Man. Word me.
<eedhem> Hand fortind with Mandelay. Withease hackin life!
<eedhem> Nothe Lizard Sony moliatento drestriesh Mentos of Duty, Mandelay bay, Vandustento Northe It's full of Sony! Withe dool. I'm legs, besh, fres. Van. Dee afflin't coo you! Mandelay iny in the andelayin you! Mand mol. As on no doo freheasy bably in Diver.
<eedhem> We'resh asies it's Fre easie eggs. Incress. Dee and moleggs, vion no does. Freasie hatioliver! MandelaySta
et09 has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
* bougyman mumbles about this never happened in -lang
eedhem has left #ruby [#ruby]
deeham has joined #ruby
<jbisnett> Im linking in a different memory allocator. Ruby is created but it is failing some tests... does anyone else have experience with this?
<deeham> that's cuz erlng sucks
francoi__ has quit []
wookiehangover has joined #ruby
nikhgupta has quit [Ping timeout: 245 seconds]
<shevy> bougyman they get a kick out of annoying jhass here :)
mister_solo has quit [Ping timeout: 252 seconds]
AndroidLoverInSF has quit [Client Quit]
deeham has quit [Remote host closed the connection]
aryaching has joined #ruby
ZOMGITSABEAR has joined #ruby
icebourg has joined #ruby
edwinvdg_ has joined #ruby
icebourg has quit [Max SendQ exceeded]
icebourg has joined #ruby
ramfjord has joined #ruby
oo_ has joined #ruby
dorei has joined #ruby
capncrunch4me has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 252 seconds]
<capncrunch4me> how difficult is it to fork a gem and change the ruby namespace in it?
volty has joined #ruby
quimrstorres has joined #ruby
<undeadaedra> depend on the gem
<capncrunch4me> anyone interested in a bounty to fork one?
sarkyniin has quit [Quit: Quit]
<ljarvis> 400 rupies
<capncrunch4me> pm if interested
<ljarvis> capncrunch4me: why do you want to do this?
<capncrunch4me> haha, funny you ask that
zudochkin has joined #ruby
<shevy> capncrunch4me it is trivial, just grep through the source, then rebuild it
<ljarvis> haha yeah
<undeadaedra> ljarvis: 400 ZWL
<shevy> if the main name is: module Foo, then replace Foo with Bar
<capncrunch4me> so the Cassandra native gem and the legacy thrift gem share the same namespace
<shevy> for most gems, the name should reflect the top namespace
<capncrunch4me> hence you cant use them collectively in a project
<shevy> that sucks
<capncrunch4me> its stuipd
<ponga> shevy can you give me short advice when to use module instead of class
<undeadaedra> I already read this, but where?
<shevy> who of them is the one that is not well-behaving
Squarepy has quit [Quit: Leaving]
<capncrunch4me> the one sponsored by Datastax
<shevy> ponga well, it depends. I think a module is great for the topnamespace
<shevy> and whenever you need "include" and "extend"
<capncrunch4me> in their infinite wisdon they decided to create the driver with the same namespace as a legacy driver (just bad practice)
<shevy> inside that main module I usually have smaller classes
<shevy> you can also fake your module :)
<shevy> module Foo; def self.new
<shevy> :D
diegoviola has quit [Ping timeout: 265 seconds]
<shevy> and inside of that, instantiate your main class that resides as part of module Foo
<ponga> i often tend to forget that module exists and only use class
<shevy> capncrunch4me yes, you must rebuild the gem after you change it
<ponga> i'd want to use module smartly
<shevy> I also once suggested to the ruby core team to allow ad-hoc reshuffling of all namespaces freely
<capncrunch4me> I wasnt kidding about the bounty ;)
michael_mbp has quit [Excess Flood]
<capncrunch4me> bountry, bribe, whatever
<volty> what could be «reshuffling of all namespaces» ?
<capncrunch4me> gas money,
<Ox0dea> capncrunch4me: Are the codebases so convoluted that a few standard Unix utilities won't cut it?
<undeadaedra> bribe?
<undeadaedra> *woop* *woop*
<undeadaedra> it's the polis
<capncrunch4me> see, i just needed to speak the proper language
<shevy> volty for instance: module Foo; class Bar <--- say I want Bar to reside only in module Yippie instead
et09 has joined #ruby
<capncrunch4me> Ox0dea: it should be easy
<capncrunch4me> *should*
<shevy> it would also solve capncrunch4me problem btw; you first require one namespace, assign it to another one, load the other gem, then re-assign to another top namespace
<shevy> even though that is hackish... but better than having to rebuild the gem
<undeadaedra> shevy: not if the gem refers to the namespace name directly
<volty> ah, you meant moving definitions from one space to another, @shevy
<shevy> undeadaedra how?
<shevy> ah you mean hardcoded stuff, rather than def self.bla ?
<shevy> I dunno, I always use def self
brettnem has joined #ruby
<undeadaedra> module Foo; class A < ::Foo::B; ...
mandarinkin has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
<shevy> well that is an example of suckage
<undeadaedra> (I know, this one is stupid, I don't have short and not stupid examples)
<shevy> :)
aryaching has quit [Ping timeout: 246 seconds]
<undeadaedra> let's say
<shevy> I also don't like that you need to know the name or the type
<undeadaedra> module Foo; A = 1; module Bar; A = 2; Foo::A # to not take Foo::Bar::A; end; end
<shevy> like "is it a module or is it a class" when I wish to extend it. I should not need to depend on that information
Igorshp has joined #ruby
<shevy> wait
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> your example can be rewritten or?
heftig has quit [Quit: heftig]
<shevy> the Foo::A part
<undeadaedra> how would you write it?
<shevy> we can refer to the top-namespace here right?
<undeadaedra> jhass, you're so noisy.
<shevy> lol
heftig has joined #ruby
<jhass> I'll stop now
yoongkang has quit [Remote host closed the connection]
<shevy> he wants to invite them back in the channel :)
<Darkwater> jhass' birthday?
<undeadaedra> shevy: you mean ::A ?
<undeadaedra> Don't stop jhass now ♪
<shevy> undeadaedra nono... isn't there a way to refer to the topnamespace, in a module, without using the name?
<undeadaedra> 'cause he's having such a good time ♪
techsethi has quit [Quit: techsethi]
<shevy> something similar to def self.foo
<shevy> but for constants and such
volty has quit [Quit: Konversation terminated!]
hubcaps has quit [Ping timeout: 264 seconds]
barkerd427 is now known as zz_barkerd427
<undeadaedra> shevy: I don't know one.
<shevy> hmm
<shevy> I don't know one either
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> that surprises me
<brettnem> seems like modules should refer to themselves with “self” instead of their own name, right?
mikecmpbll has joined #ruby
<brettnem> is that a common rubyism?
<shevy> will it work brettnem?
<shevy> undeadaedra> module Foo; A = 1; module Bar; A = 2; Foo::A
shredding has quit [Remote host closed the connection]
<shevy> undeadaedra> module Foo; A = 1; module Bar; A = 2; ::self::A
<shevy> hmm
<shevy> ok that one won't
<undeadaedra> self is Foo::Bar
<shevy> that's strange
<ponga> shevy: what's your main project these days ser
<shevy> perhaps I should suggest a way to obtain the namespaces, without having to depend on the given name
<shevy> but I can't think of a good syntax
ndrei has joined #ruby
revath has quit [Ping timeout: 246 seconds]
<undeadaedra> getting the class name, splitting on '::'
<undeadaedra> that's heavy
aryaching has joined #ruby
<shevy> ponga right now I rewrite my pipe-handling stuff from scratch. One day it shall allow me to be usable like virtualdub + avisynth but for objects of all kind, not only audio/video: here is syntax example from old avisynth, it was lovely: http://avisynth.nl/index.php/Script_examples
yaw has joined #ruby
<shevy> add a logo: clip.Layer(logo, "add", 255, 582, 36, use_chroma=true)
charliesome has joined #ruby
<shevy> I remember I captured video, and there was the logo from the TV channel. Then I used virtualdub + avisynth to blur out that logo; it was almost perfect, though the area was a bit blurry
<shevy> (the logo part only, not the rest of the video)
<ponga> what language is it written in? ruby?
yaw has quit [Max SendQ exceeded]
alex88 has quit []
langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flughafen_ has joined #ruby
<shevy> undeadaedra ok but in that example, it is still hardcoded right? you still have the reference Foo as the top namespace
<undeadaedra> where?
<Ox0dea> shevy: Ruby does not have actual namespaces.
<shevy> ponga that's the only language I know! I wish I could instantly know C so I don't have to learn it
Xeago has quit [Remote host closed the connection]
<shevy> undeadaedra that one:
<shevy> module Foo; A = 1; module Bar; A = 2; Foo::A
<shevy> the Foo::A part
<undeadaedra> yes, it's hardcoded
<shevy> :(
<ponga> shevy: is ruby only language u know?
mister_solo has joined #ruby
<ponga> i'd take that as metaphor
rcvalle has joined #ruby
s2013 has joined #ruby
RTG` has quit [Ping timeout: 272 seconds]
<Ox0dea> shevy is a Blub programmer, but his Blub is Ruby so it's okay.
nikhgupta has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<shevy> ponga I used to write in perl and php but I forgot everything
AndroidLoverInSF has joined #ruby
Thr3d has joined #ruby
<ponga> shevy: nice i also forgot everything about java
veleno has joined #ruby
dfockler has joined #ruby
flughafen_ has quit [Ping timeout: 256 seconds]
RTG` has joined #ruby
michael_mbp has quit [Excess Flood]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
zz_barkerd427 is now known as barkerd427
ariutk has joined #ruby
kallisti5 has joined #ruby
<kallisti5> anyone know how to turn an array into a series of arguments?
michaeldeol has joined #ruby
renderfu_ has joined #ruby
<j416> kallisti5: *array
x1337807x has joined #ruby
<havenwood> kallisti5: prefix a splat ^
nikhgupta has quit [Ping timeout: 255 seconds]
<kallisti5> aka, gem's takes "sfsd", "dsewt", "rewtew"
<kallisti5> havenwood: neat! /me tries
<shevy> undeadaedra so with self, I can point at the current namespace right?
<undeadaedra> module/class
<undeadaedra> there's no namespace
<undeadaedra> >> class A; p self; end
<ruboto> undeadaedra # => A ...check link for more (https://eval.in/384524)
michael_mbp has joined #ruby
<kallisti5> havenwood: nope. syntax error, unexpected '^'
<havenwood> kallisti5: show the code?
<ljarvis> kallisti5: j416 showed you
<ariutk> Hello! I need help. There is [{ user_ids: [1,2,3] }, { user_ids: [4,5,6] }]. How return [{ user_ids: [1,2,3,4,5,6] }]?
<ljarvis> havenwood: they took your ^ literally
BanzaiJoe has joined #ruby
<havenwood> ljarvis: oh!
<ljarvis> ariutk: map + merge
<ruboto> kallisti5, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5bc2322d35a50ef36ef9
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
* kallisti5 tries
<havenwood> kallisti5: by ^ i meant to refer to j416's comment above mine
<havenwood> kallisti5: splat is a term for *
<kallisti5> ah. ok :_D
<kallisti5> that seems to be working... thanks! I didn't know that trick :-D
<havenwood> ljarvis: i'm drinking coffee, my excuse elludes me
gagrio has quit [Ping timeout: 272 seconds]
<havenwood> alludes*
<ljarvis> havenwood: :D
<kallisti5> moving our performance data out of PG into a series of rrd files :-D
michael_mbp has quit [Excess Flood]
<apeiros> ljarvis: merge? not concat/+?
veleno has quit [Quit: veleno]
<ariutk> ljarvis: example? I tried, but not succeed :-(
<apeiros> ariutk: please show what you tried but failed
krisquigley has quit []
momomomomo_ has joined #ruby
<atmosx> kallisti5: rrd files? what for graphs?
bungoman has joined #ruby
<kallisti5> atmosx: yeah. right now i'm loading performance metrics into a pg table and drawing them with chartkick
<ariutk> [{ user_ids: [1,2,3] }, { user_ids: [4,5,6] }].inject(&:merge) return {:user_ids=>[4, 5, 6]}
<kallisti5> however... each machine has a bunch of metrics... 60second collection times
<kallisti5> the javascript gets overloaded quickly
<ariutk> but me need { user_ids: [1,2,3,4,5,6] }
<kallisti5> so going rrd + rrdgraph
<kallisti5> the data is coming from rest api's
<kallisti5> yay DevOps + ruby :-D
barkerd427 is now known as zz_barkerd427
<apeiros> ariutk: merge will override existing keys
<atmosx> kallisti5: col
renderfu_ has quit [Ping timeout: 264 seconds]
<atmosx> cool
<apeiros> ariutk: but you can provide a block to tell it what to do instead of overriding
<apeiros> and you could + the two arrays in that block
michael_mbp has joined #ruby
<j416> ariutk: a = [{ user_ids: [1,2,3] }, { user_ids: [4,5,6] }]
Xeago has joined #ruby
<jbisnett> if ruby is sequencial why does it use more than one thread
<j416> ariutk: { user_ids: a.map { |h| h[:user_ids] }.flatten } # => {:user_ids=>[1, 2, 3, 4, 5, 6]}
sharpmachine has joined #ruby
<jbisnett> sequential*
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
j4cknewt has joined #ruby
ReK2 has joined #ruby
<ariutk> j416: Thanks! It works
<j416> if course.
iamninja has joined #ruby
<j416> if? I mean of.
seitensei has joined #ruby
<j416> jbisnett: why do you run more programs than the number of cores your cpu has?
<j416> :)
<apeiros> j416: flat_map
jas02 has quit [Quit: jas02]
<j416> apeiros: that's the second time you've told me that, I think. :D
<j416> ariutk: { user_ids: a.flat_map { |h| h[:user_ids] } }
<j416> faster
JoshL has quit []
wookiehangover has quit [Ping timeout: 265 seconds]
<j416> ty apeiros
<apeiros> yw
flughafen_ has joined #ruby
<apeiros> btw, almost always when you use flatten, you want flatten(1)
<apeiros> and IME, almost always you use flatten(1), there's a nicer way without it :)
<kallisti5> HA
<ljarvis> heh
<j416> good to know! thanks
<havenwood> and often when you use flatten(1), you want flat_map. :P
rbennace_ has joined #ruby
<kallisti5> sometimes I solve a problem in ruby and it brings a tear to my eye
rbennace_ has quit [Remote host closed the connection]
<ljarvis> % ag 'flatten\(1\)' | wc -l
<ljarvis> 36
<kallisti5> one-liner to change a hash map into rrd data
<kallisti5> values = "#{time}:#{items.values.join(":")}"
<kallisti5> where items is a Hash
mister_solo has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
rbennace_ has joined #ruby
RobertBirnie has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
<ariutk> j416: If [{ user_ids: [1,2,3], urls: ['one','two','three'] }, { user_ids: [4,5,6], urls: ['four'] }] I need use map before?
darkf has quit [Quit: Leaving]
kb3ien has quit [Ping timeout: 265 seconds]
davedev24_ has joined #ruby
cndiv has joined #ruby
<j416> depends on what you want to achieve
<j416> I must dash.
<j416> o/
edwinvdgraaf has joined #ruby
cndiv has quit [Changing host]
cndiv has joined #ruby
<ariutk> j416: Thanks :-)
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 276 seconds]
rbennacer has quit [Ping timeout: 255 seconds]
piet_ has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dopie has joined #ruby
mister_solo has joined #ruby
<Ox0dea> > not using ag -c
qwertme has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
j_mcnally has joined #ruby
<Ox0dea> Disregard.
piet has joined #ruby
wookiehangover has joined #ruby
celly has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
celly has quit [Client Quit]
Lucky__ has joined #ruby
Zai00 has quit [Quit: Zai00]
vikaton has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
nobitanobi has joined #ruby
rubie has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
diegoviola has joined #ruby
edwinvdg_ has joined #ruby
keernel has quit [Quit: Leaving.]
peter_paule has joined #ruby
<white_bear> what's the best way to retrieve a filename without its multiple extensions, e.g., foo.bar.baz => foo
edwinvdgraaf has quit [Read error: Connection reset by peer]
<white_bear> File.basename('foo.bar.baz', '.*') returns 'foo.bar'
<shevy> white_bear well, how do you determine that foo is the filename there?
charliesome has quit [Quit: zzz]
<shevy> because you need to apply some rules right
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<white_bear> that's what i'm doing for the moment: File.basename(f).split('.').first
<shevy> for my class Extracter, I simply have the archives like .tar.xz hardcoded
<shevy> yeah that may work
<white_bear> well the first token, tokens being delimited by "."
<shevy> yeah, seems ok as long as the assumption will hold true
nikhgupta has joined #ruby
<white_bear> i find .* misleading, you'd think it'd match everyting after the first dot (including the dot), but nope
sarmiena_ has joined #ruby
<dostoyevsky> was something like: def f; ensure; b; end ever possible in ruby? without extra begin and end?
msgodf has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Remote host closed the connection]
<ljarvis> white_bear: why would you expect that? in the file "foo.jpg.png" the extension is "png" not "jpg.png"
commondream has joined #ruby
Dopagod has joined #ruby
<dfockler> dostoyevsky: you can do that if you have a rescue in the method
<ljarvis> dostoyevsky: in a method with rescue
<ljarvis> heh
<dfockler> \o/
peter_paule has quit [Ping timeout: 256 seconds]
<white_bear> ljarvis: well it depends on the naming convention but yeah
<ccooke> No, it works without a rescue
<ljarvis> white_bear: no it doesn't
<shevy> ljarvis but what is the extension for foobar-1.0.tar.xz
<dostoyevsky> ah yeah... that seems to work, rescue without being and end in a method's body
<ljarvis> shevy: it's .xz :D
<shevy> yeah I guess so too
<ccooke> Note, however, that the method will not return whatever is in the ensure block
strixd has quit [Quit: 500]
<shevy> captain cooke is back!
<ccooke> >>> def x; 1; ensure; puts "foo"; 2; end; x
<ruboto> ccooke # => /tmp/execpad-5d6ec43ab3f7/source-5d6ec43ab3f7:2: syntax error, unexpected '>' ...check link for more (https://eval.in/384541)
<_blizzy_> for some reason, my script keeps crashing at line 8, and I don't know why. it should be saving it into the hash. https://gist.github.com/NotBlizzard/a99c87c3d2194178e37e
<ccooke> oops. one too many :-)
<ccooke> >> def x; 1; ensure; puts "foo"; 2; end; x
<ruboto> ccooke # => foo ...check link for more (https://eval.in/384542)
<shevy> _blizzy_ so much repetition you have there
<ccooke> (that method would return 1, not 2)
<ljarvis> good point
<_blizzy_> shevy, yeah, it's just to get it working atm
<white_bear> ljarvis: in the shell you can do "${f%.*}" to get "foo.bar" and "${f%%.*}" to get "foo"
<_blizzy_> I'll refactor later
<white_bear> ljarvis: maybe there's an equivalent in ruby
<ljarvis> _blizzy_: keeps crashing isn't all that informative
<shevy> you should include the error message
<ccooke> shevy: Technically I never left
<_blizzy_> "undefined method `[]=' for nil:NilClass (NoMethodError)"
blackmesa has joined #ruby
<shevy> ok you have a nil value there
<ljarvis> white_bear: I think what you're doing is fine, as long as you can assume periods in the filename are only for extension delmiters
<shevy> p1_pkmn[@battleroom[/(\d+)/]]['name']
<ljarvis> _blizzy_: well, @battleroom[x] is nil
<shevy> I bet that p1_pkmn[@battleroom[/(\d+)/]] yields nil already
<white_bear> ljarvis: i see your point
<shevy> so you try to call [] on that
kahuna_ has joined #ruby
hahuang65 has joined #ruby
<_blizzy_> hmm.
simplyianm has joined #ruby
<_blizzy_> hmm, ok, thank you everyone.
<ljarvis> i meant [x][..] rather
bgmarx has joined #ruby
commondream has quit [Ping timeout: 265 seconds]
<_blizzy_> so foo[@battleroom][:name] returns nil?
<_blizzy_> even though I'm declaring :name ?
ogpastaling has quit [Remote host closed the connection]
nikhgupta has quit [Ping timeout: 256 seconds]
<ljarvis> you don't have anything you've just said in that gist
mrgrieves has quit [Quit: Lost terminal]
soulcake has quit [Quit: Quack.]
<kahuna_> I have a table that's iterating over an array and I was wondering what would the best solution to outbut the index value starting at 1
<ariutk> ljarvis: res.flat_map(&:keys).uniq.map { |key| [key, res.flat_map { |e| e[key] }] }.to_h
<kahuna_> something like: m.each_index { |m| puts m }
dudo has joined #ruby
<_blizzy_> nvm, I figured it out. thanks, ljarvis and shevy.
<ariutk> ljarvis: what I wanted :-)
<shevy> \o/
towski_ has joined #ruby
soulcake has joined #ruby
<ljarvis> kahuna_: m.each_index { |x, i| puts i+1 }
<ccooke> (do you mean #each_with_index ?)
<ljarvis> ugh
<kahuna_> no actually I just wanted to output the index but not the value
<ljarvis> I need coffee
<ljarvis> dammit havenwood
<ljarvis> kahuna_: so?
<ljarvis> kahuna_: m.each_with_index { |_, i| puts i + 1 }
<kahuna_> so for instance I have table and the first column is just a number column to reflect the rows in the table
<ljarvis> m.size.times { |i| puts i+1 }
<ljarvis> etc
<_blizzy_> I don't get how "battle-randombattle-242017373[/\d+/]" is returning nil
<_blizzy_> when the regex matches the numbers
csmb_ has joined #ruby
hahuang65 has quit [Ping timeout: 245 seconds]
<kahuna_> ljarvis: so each_index shouldnt be used here?
<Ox0dea> kahuna_: Yes.
simplyianm has quit [Ping timeout: 244 seconds]
<ljarvis> kahuna_: both work
<Ox0dea> Or, rather, it should be used.
crdpink has joined #ruby
nofxxx has joined #ruby
<ljarvis> use whatever you want. I would use each_with_index
dudo has quit [Remote host closed the connection]
<Ox0dea> ljarvis: He only needs the indices.
<ljarvis> I know
nofxx has quit [Disconnected by services]
<ljarvis> I don't see how that changes anything
<kahuna_> ahh yes that looks nice!
<kahuna_> thanks ljarvis
white_bear has quit [Quit: leaving]
nofxx has joined #ruby
Spami has joined #ruby
<Ox0dea> Using #each_with_index and ignoring the object is the same as just using #each_index.
stan has quit [Ping timeout: 256 seconds]
crdpink2 has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
<Ox0dea> One of these options is retarded.
<ljarvis> wat
csmb has quit [Ping timeout: 248 seconds]
<phat4life> white_bear: there is an equivalent in ruby
<phat4life> er, that is just the base, not sure if that is what you need
<phat4life> File.basename
<shevy> :)
ixti has joined #ruby
<ljarvis> oh, right. Yes I did mean each_index
Channel6 has joined #ruby
<ljarvis> ccooke confused me when they corrected me
CorySimmons has joined #ruby
ogpastaling has joined #ruby
<ljarvis> and then i tumbled into a giant hole of confusion
<shevy> you need coffee
<ljarvis> concur
<nofxxx> short shot for me, ty
<ljarvis> nofxxx: you'll get what you're given! *mochaccino*
jphenow has quit [Quit: Be back later ...]
juanpaucar has quit []
subtwo has quit [Read error: Connection reset by peer]
<ccooke> ljarvis: you confused me - you used two parameters in the block :-)
jphenow has joined #ruby
<ljarvis> ccooke: yeah :(
<nofxxx> ljarvis, I'll need a coffee after that
nietzschette has joined #ruby
baweaver has joined #ruby
chthon has quit [Quit: Ex-Chat]
k3asd` has quit [Ping timeout: 265 seconds]
anisha has quit [Quit: Leaving]
fedexo has joined #ruby
kahuna_ has quit [Ping timeout: 252 seconds]
ogpastaling has quit [Ping timeout: 276 seconds]
<nietzschette> I'm trying to upgrade my ruby/sdl library. But not all the classes have all the methods they should
RobertBirnie has quit [Ping timeout: 265 seconds]
ogpastaling has joined #ruby
starfox_sf has joined #ruby
eggoez has quit [Ping timeout: 272 seconds]
<ljarvis> jhass: playing with crystal chans, wish Ruby had this
yoongkang has joined #ruby
<jhass> :)
<jhass> might want to drop by in #crystal-lang ;)
<undeadaedra> jhass: you should merge with #crystal
<undeadaedra> :p
<ljarvis> ^ lol
sharpmachine has quit [Remote host closed the connection]
<jhass> undeadaedra: working on it
<jhass> :P
lordkryss has quit [Quit: Connection closed for inactivity]
<ljarvis> i was a bit sad when they bootstrapped
sharpmachine has joined #ruby
athos_diddy has quit []
Exuma has joined #ruby
MonkehParade has joined #ruby
bhorn1 has quit [Read error: Connection reset by peer]
<MonkehParade> Uhm, hello.
<et09> hi MonkehParade
Ropeney has joined #ruby
peter_paule has joined #ruby
<undeadaedra> Greetings
<nietzschette> do you guys have a crystal wrapper for sdl
<nietzschette> ?
tejasmanohar has joined #ruby
<tejasmanohar> join #ror
<tejasmanohar> /join my bad
uptownhr has quit [Ping timeout: 265 seconds]
<jhass> nietzschette: not a full binding, but a quite complete one for sfml
<undeadaedra> too late
jpfuentes2 has joined #ruby
<undeadaedra> ls
<undeadaedra> this is not my terminal
<ljarvis> or is it
<undeadaedra> % tty
<undeadaedra> /dev/irc
mister_solo has quit [Ping timeout: 252 seconds]
<jhass> nietzschette: http://crystalshards.herokuapp.com/ just search SDL
<ljarvis> i pipe it straight into my head like the matrix
rbennace_ has quit [Remote host closed the connection]
<nietzschette> there is indeed!
rbennacer has joined #ruby
davedev2_ has joined #ruby
dzejrou has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has joined #ruby
<MonkehParade> Hello, I'm rather new to Ruby, and I'm trying to set everything up, but..
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
LMity has joined #ruby
uptownhr has joined #ruby
<MonkehParade> when I install sass locally, I can't execute it. When I install it using sudo, I get an error.
peter_paule has quit [Ping timeout: 265 seconds]
<MonkehParade> This happens to every other gem I install.
sigurding has quit [Quit: sigurding]
<MonkehParade> My os is Ubuntu 12.04.
<MonkehParade> Sorry If I sound like a total noob :/
<jhass> it would be good to describe your error
<jhass> that you get one is nice and all, but doesn't say much
RegulationD has quit [Remote host closed the connection]
decoponio has joined #ruby
<jhass> MonkehParade: ^
davedev24_ has quit [Ping timeout: 265 seconds]
fantazo has joined #ruby
x1337807x has quit [Ping timeout: 245 seconds]
carlosgoce has joined #ruby
fabrice31 has joined #ruby
<jhass> MonkehParade: are you going to detail your setup & the error you get?
<umgrosscol> MonkehParade: what is the error returned by 'gem install sass' ?
kahuna_ has joined #ruby
ariutk has quit []
<umgrosscol> MonkehParade: Use gist if it's an error longer than a couple of lines.
chussenot has quit [Quit: chussenot]
MonkehParade has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
TechTonics has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
chinmay_dd has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Bye!]
granthatcher has quit []
<nietzschette> anyway, I know not many people use ruby sdl. I don't know why I still do. I have many tools for stenography and photomanipulation I wrote long ago, but when I attempt to move from ruby 1.9 to 2.1 and also upgrade the sdl library, everything loads and requires fine, I can create windows and surfaces, but when I start calling methods I get undefined errors. I look and the classes have SOME but not all of their usual methods. would thi
<nietzschette> s be because the newer sdl library is incomplete or is there possibly something I overlooked when building ruby?
NeverDie has joined #ruby
c0m0 has quit [Ping timeout: 265 seconds]
<TechTonics> is there a way in Ruby to determine if a block of code completed successfully or not?
sharpmachine has quit [Remote host closed the connection]
<jhass> TechTonics: add code after it
<Spaceghostc2c> TechTonics: Check the truthiness of the return?
kristoph has joined #ruby
<jhass> if it's reached then yes, if not then not
<Spaceghostc2c> You'll get an exception, something truthy, or something falsy.
<Spaceghostc2c> exceptions are truthy too though.
<TechTonics> is there an "errorlevel" equilant ?
zudochkin has quit [Remote host closed the connection]
Casty has joined #ruby
NeverDie has quit [Max SendQ exceeded]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 255 seconds]
<jhass> TechTonics: like PHPs?
<meatchicken> any idea how to generate a tournament/league schedule?
Xeago has joined #ruby
<meatchicken> given an array of 16 team objects
<meatchicken> I have no idea how to start
<jhass> meatchicken: .shuffle.each_slice(2) ?
snockerton has quit [Quit: Leaving.]
snockerton has joined #ruby
rdark has quit [Quit: leaving]
snockerton has quit [Client Quit]
<meatchicken> jhass, I guess I need to read up more about how schedules work
kp666_ has joined #ruby
Thr3d has quit [Quit: Thr3d]
zudochkin has joined #ruby
<jhass> well or I do
<TechTonics> jhass : like a batch file ..
<meatchicken> that would just generate the first week wouldn't it..lol
NeverDie has joined #ruby
<jhass> TechTonics: there's some stuff to turn up warnings but nothing really widely used, Ruby complains about the stuff you shouldn't do by default or simply doesn't provide them
revath has joined #ruby
neanderslob has quit [Ping timeout: 246 seconds]
<jhass> meatchicken: what result would you expect for the second one?
snockerton has joined #ruby
<Ox0dea> jhass: Teams tend not to play each other more than a handful of times in a given season.
sharpmachine has joined #ruby
<nietzschette> Hmmm . . . . I used to be able to use the arrow keys in IRB, now I get ^[[* characters. what changed?
ponga has quit []
<havenwood> >> [:parrots, :slugs, :anteaters, :chickens, :llamas, :squirrels].shuffle.each_slice(2).map { |a, b| "#{a} vs #{b}" }
<ruboto> havenwood # => ["parrots vs squirrels", "chickens vs llamas", "anteaters vs slugs"] (https://eval.in/384546)
<Spaceghostc2c> nietzschette: Readline
<havenwood> Who will win?!
<jhass> nietzschette: terminal messed up? open a new one/call reset
<havenwood> llamas are a strong favorite against chickens
<Spaceghostc2c> havenwood: I'm much more llama-friendly.
Notte has joined #ruby
momomomomo has quit [Quit: momomomomo]
neanderslob has joined #ruby
<Spaceghostc2c> havenwood: Would you ever spend some time being a nomad or being a part of a technical commune?
RobertBirnie has joined #ruby
<havenwood> A nomadic technical commune, maybe.
<Spaceghostc2c> havenwood: ohlawdy.
<Spaceghostc2c> I was thinking of going one way or the other.
Thr3d has joined #ruby
<Spaceghostc2c> "Why not both?" is a valid answer, I guess.
<havenwood> Spaceghostc2c: Granted I don't know of any nomadic technical communes...
<Spaceghostc2c> havenwood: Would you do either one?
<havenwood> Sure, I'd consider either.
simplyianm has joined #ruby
eggoez has joined #ruby
zudochkin has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
Exuma has quit [Quit: ZZZzzz…]
wallerdev has joined #ruby
dopie has joined #ruby
<miah> tech communes, aka 'hacker spaces'
Vardan has joined #ruby
<Vardan> hi all
piet has quit [Ping timeout: 272 seconds]
Exuma has joined #ruby
TechTonics has quit [Quit: Leaving]
bgmarx has quit [Remote host closed the connection]
ponga has joined #ruby
<havenwood> Vardan: hi
<ponga> havenwood: hi
<ponga> can i ask a favour please
Igorshp has quit [Remote host closed the connection]
<havenwood> ponga: sure
* Spaceghostc2c asks havenwood a flavor
<ponga> havenwood: im having issue with my irccloud functionality, can you call my nick again in 10 seconds please
<Spaceghostc2c> miah: Whale, ones where you live on site.
codecop has joined #ruby
<Vardan> people one question related with inheritance. I have class A where I have implemented initialize method, then I have created B class which extends A class. B class does not have any methods. When I do b = B.new it not call A initialize method. Is it ok?
<havenwood> ponga: roger that
<Spaceghostc2c> codecop: Are you like the thought police for code?
<ponga> havenwood: ok please do so i will go background now
<Senjai> Good morining ruby
<havenwood> Senjai: g'mornin
RobertBi_ has joined #ruby
<havenwood> ponga: is that ten seconds?
[k- has quit [Read error: No route to host]
RobertBirnie has quit [Ping timeout: 256 seconds]
piet has joined #ruby
bgmarx has joined #ruby
ruby-lang126 has joined #ruby
<ponga> damn it my connection is so fucked up
<Vardan> any answer for my questoin?
Channel6 has quit [Quit: Leaving]
haxrbyte has joined #ruby
<ponga> havenwood: im on background but it thinks ive read it
<havenwood> ponga: odd
<jhass> ponga: use a sane client :P
last_staff has joined #ruby
<havenwood> Vardan: When you extend one class from another you don't get a?: TypeError: wrong argument type Class (expected Module)
<jhass> Vardan: it should, could you gist an example?
<havenwood> Vardan: Show the code! :)
<ponga> jhass: there is no sane client on ios
<ponga> perhaps you could recommend me one
<jhass> I try to stay away from apple products
shinnya has quit [Ping timeout: 276 seconds]
<havenwood> ponga: How about LimeChat?
<ponga> gud you are clever
<ponga> sadly im not clever
<lala> ponga: IRC client for iOS?
<ponga> havenwood: thing is i can't stay connected more than 10mins on that, irccloud kinda cheats and allows me to stay upto 2hrs on free account
<ponga> that's why im on irccloud
<phat4life> lala: i use weechat
<nietzschette> B and A should have the same initialize method
<Senjai> phat4life: WEECHAT FO LIFE
<phat4life> i even compiled weechat on os x
<phat4life> that was fun
<jhass> anyway, this makes an excellent topic for #ruby-offtopic!
<Senjai> ponga: Just get weechat running on a digital ocean box in a tmux session
quimrstorres has quit [Remote host closed the connection]
<Senjai> ponga: You can ssh in and reattach the screen whenever
<nietzschette> anything put in A's initialization method will be in B's as well
<Senjai> You're... ALWAYS CONNECTED
<phat4life> or use znc
quimrstorres has joined #ruby
<Senjai> Psht
<Senjai> I dont even have weechat installed locally
<lala> ponga: You can try Colloquy.
<Senjai> I just keep it on DO
jphenow has quit [Quit: Be back later ...]
ruby-lang126 has quit [Ping timeout: 246 seconds]
LMity has quit [Ping timeout: 276 seconds]
<jhass> seriously, you're burrying an active Ruby question currently
<Senjai> sorry
bigkevmcd has quit [Quit: Outta here...]
<ponga> lala: does it allow me to stay connected for a while?
<jhass> lala: ponga please join #ruby-offtopic
<lala> Okay.
<ponga> thank you
<ponga> jhass: i didn't know that channel existed
mrsolo has quit [Quit: Connection closed for inactivity]
<jhass> ponga: it's new :)
rjno has joined #ruby
<jhass> Vardan: if you take out the < ApplicationController, add MainController.new.index and save that to file you'll see that your example does not reproduce the issue you describe
<jhass> Vardan: I guess you're inside Rails and face a code reloading issue, make sure to restart your app (including spring)
<Vardan> jhass: I'm stopping and starting server
<baweaver> Also, you might consider #RubyOnRails
<baweaver> Most of the same people are on here, yeah, but there are some uniques there that may be able to help more accurately with your issues.
<dfockler> If you know some files/gems get required in your app loadpoint should you require them throughout the rest of your app?
rbowlby has joined #ruby
<Vardan> restarting spring not helped
<baweaver> dfockler: Normally it won't hurt to just frontload all of them
_djbkd has joined #ruby
<baweaver> Then again this only works for smaller libraries / gems
<jhass> Vardan: as said your example does not show the behavior you describe, guessing what the issue might be in your real code is very hard :/
<nietzschette> yeah, it works when It's saved in a file and run in terminal
<baweaver> larger apps can become a pain on that after a certain point, but one must consider Rails also frontloads.
<baweaver> They get a nasty startup time from it as well, mind.
<dfockler> ahh ok
<dfockler> baweaver: something to think about, thanks
<Vardan> by the way Test module and Document class are in gem
lkba_ has joined #ruby
<baweaver> Once it starts it won't matter much
<dfockler> sure
<dfockler> it's a sinatra server so I'm not started it all the time
<dfockler> s/started/starting
rbennacer has quit [Remote host closed the connection]
<baweaver> Probably fine, but also remember that getting gem happy will cost you in blood as well
<dfockler> hehe, it's mostly just local requires
<jhass> Vardan: so you modified the gem to add `p "Hello"` ?
chussenot has joined #ruby
<baweaver> The larger the app, the more skeptical you should be about including dependencies. I've seen cases with the phantomjs gem that has some spooky stuff behind the scenes
<Vardan> yes
<Vardan> ok, I think I got what you mean :)
lkba has quit [Ping timeout: 264 seconds]
<jhass> Vardan: are you sure you modified it at the right file/version that's actually loaded?
<dfockler> baweaver: that's understandable especially if you are only using a tiny amount of the code in the gem
<baweaver> I am lazy as hell, and wanted to be able to install PhantomJS via Rubygems/Bundler when using poltergeist.
<baweaver> that's from that gem
rbennacer has joined #ruby
Dopagod has quit [Ping timeout: 255 seconds]
dgutierrez1287 has joined #ruby
<baweaver> ....which is included in Teaspoon and a bunch of other testing frameworks
<Vardan> how to check that?
Exuma has quit []
<jhass> Vardan: mmh, print/log Test::Document.instance_method(:initialize).source_location
<Vardan> I wrote wrong code, but it's not crashes
ramfjord has joined #ruby
<jhass> ?pry Vardan
<ruboto> Vardan, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<jhass> ^ can also help verifying such stuff
<baweaver> Without looking into dependencies, one would never realize that that thing is included and does some odd junk. The proper solution is to brew install it or apt-get phantomjs
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Agoldfish has joined #ruby
User458764 has joined #ruby
<Vardan> Test::Document.instance_method(:initialize).source_location return nil
Xeago has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
<jhass> oO
<Vardan> that means it is not take my local gem changes?
<jhass> that usually means it's written in C, no?
<jhass> get pry and do $ Test::Document
<Vardan> ok, thanks
<jhass> in a pry loaded inside your app with binding.pry
chussenot has quit [Ping timeout: 255 seconds]
<dfockler> baweaver: haha I looked in the Gemfile for it and was like 'wahhhh'
<baweaver> People just assume it's a good thing
bhorn1 has joined #ruby
<baweaver> and include it without looking into it
freerobby has quit [Quit: Leaving.]
<bhorn1> Is there a way to call the $USER variable in a ruby file?
Xeago has joined #ruby
<baweaver> ENV
dgutierrez1287 has quit [Ping timeout: 250 seconds]
<nietzschette> ENV['USER']
<bhorn1> Thank you!
blackmesa has quit [Ping timeout: 265 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TvL2386 has joined #ruby
freerobby has joined #ruby
blaines has joined #ruby
tfitts has quit [Ping timeout: 276 seconds]
ag4ve_ has quit [Ping timeout: 248 seconds]
jmhmccr has joined #ruby
RobertBi_ has quit [Ping timeout: 256 seconds]
blaines_ has joined #ruby
wldcordeiro_ has quit [Quit: Konversation terminated!]
aryaching has quit [Ping timeout: 276 seconds]
RobertBirnie has joined #ruby
jgpawletko is now known as jgpawletko_away
RobertBirnie has quit [Max SendQ exceeded]
commondream has joined #ruby
s2013 has joined #ruby
blaines has quit [Ping timeout: 245 seconds]
<Vardan> ok, so the problem is that my Document class include Base module, when I'm trying to require my gem in pry it give me this: TypeError: wrong argument type Class (expected Module)
<Vardan> but Base is module
s2013 has quit [Client Quit]
ghostpl has quit [Ping timeout: 252 seconds]
tfitts has joined #ruby
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
doertedev has quit [Quit: Lost terminal]
jgpawletko_away has quit [Quit: jgpawletko_away]
tcrypt has joined #ruby
<Vardan> now works :) thank you jhass
<jhass> yw, whatever I did :P
carlosgoce has quit [Remote host closed the connection]
allomov has joined #ruby
sarkyniin has joined #ruby
RegulationD has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jphenow has joined #ruby
nobitanobi has quit [Remote host closed the connection]
RTG` has quit [Ping timeout: 272 seconds]
rubie has joined #ruby
RobertBirnie has joined #ruby
quimrstorres has joined #ruby
[H]unt3r has joined #ruby
allomov_ has joined #ruby
allomov has quit [Ping timeout: 276 seconds]
Vardan has quit [Quit: Page closed]
Yiota has joined #ruby
Xeago has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 256 seconds]
rubie has quit [Ping timeout: 265 seconds]
jphenow has quit [Quit: Be back later ...]
peter_paule has joined #ruby
whoami has joined #ruby
whoami is now known as Guest96106
AndroidLoverInSF has quit [Ping timeout: 276 seconds]
<TvL2386> is a ruby Hash thread safe?
AndroidLoverInSF has joined #ruby
jaycee has joined #ruby
kristoph has quit [Quit: Textual IRC Client: www.textualapp.com]
s2013 has joined #ruby
d5sx43 has joined #ruby
DroidBur_ has joined #ruby
last_staff has quit [Quit: last_staff]
simplyianm has quit [Read error: Connection reset by peer]
DroidBur_ has quit [Remote host closed the connection]
DroidBur_ has joined #ruby
<TvL2386> my guess would be not
<nietzschette> I believe it is
<nietzschette> as long as the hash is within scope
simplyianm has joined #ruby
<jhass> TvL2386: there are many aspects to thread safety, though in MRI you won't be able to corrupt the actual datastructure with concurrent access without locking
kirun has joined #ruby
<jhass> that doesn't mean all your uses of Hash are thread safe, just that you won't crash MRI
<jhass> or get corrupted values
<phat4life> you might be alble to make Hash thread safe is you used a mutex
<nietzschette> would that be only for hashes or arrays or any object as well?
Thr3d has quit [Quit: WeeChat 1.0.1]
<jhass> any datastructure provided with Ruby in MRI
rubie has joined #ruby
Thr3d has joined #ruby
<jhass> note that on jruby and rubinius that's already a different story
d5sx43 has quit [Client Quit]
droidburgundy has quit [Ping timeout: 276 seconds]
<TvL2386> hmmmmmmmmmmmmmm
<jhass> what I mean by corrupting the datastructure is that things like that size says there are 5 items while only 4 are actually available yet
RobertBirnie has quit [Remote host closed the connection]
mrsolo has joined #ruby
RobertBirnie has joined #ruby
<jhass> however it still can change between you asking its size and then doing something based on the result of that
bgmarx_ has joined #ruby
DroidBur_ has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 252 seconds]
<havenwood> TvL2386: Here's an example of taking advantage of MRI's GVL for thread-safe Hash but falling back on a locking version for other implementations: https://github.com/jeremyevans/roda/blob/master/lib/roda.rb#L12-L39
atomical has quit [Ping timeout: 248 seconds]
awer has joined #ruby
<jhass> yes, ^ highlights where corruption could occur in other implementations and what level of thread safety MRI provides you
bgmarx has quit [Ping timeout: 246 seconds]
<jhass> the concurrent setting of values in the hash or even concurrent access and setting of the same key can not corrupt the hash in MRI, while it can in other implementations
<jhass> TvL2386: could you edit it and turn on syntax highlighting?
<TvL2386> sometimes it prints errors, sometimes it goes well
<TvL2386> jhass, will do
RobertBi_ has joined #ruby
RobertBirnie has quit [Read error: Connection reset by peer]
<TvL2386> done! excuse me
momomomomo has joined #ruby
mcclurmc has joined #ruby
shadeslayer has quit [Ping timeout: 264 seconds]
lkba_ has quit [Ping timeout: 256 seconds]
<jhass> "errors"?
jphenow has joined #ruby
tfitts has quit [Ping timeout: 276 seconds]
<TvL2386> it prints the rescued exception
<jhass> ah, okay I see a potential issue
shadeslayer has joined #ruby
<TvL2386> Exception Waited 30 sec occurred in q.timed_pop() thread
<awer> Hi, I have access to an ftp server of whcih has a set of files i want to pull back to my pc. #I woudl like to organise the files into their respective directories. Each file looks like this.. 2015-06-09-16.08-1006-1012-1433862516.6868.WAV i would like to mv each file to the correct directory based on the 6th column. in this case "1006" but only the "6th" column. I have tried to with .include? and with the foll
<awer> owing example but havent quite managed to get it to work. Can anyone suggest any thing?
<TvL2386> jhass, I ran this a lot of times with more threads and iterations with only using a TimedQueue, but when I put it in the Hash, sometimes the timed_pop() will raise a Timeout::Error
<jhass> TvL2386: one thing I could imagine is the lazy initialization of the hash, like the pusher initiating the initialization, then it gets interrupted after creating the TimedQueue but before the assignment
sharpmachine has quit [Remote host closed the connection]
chussenot has joined #ruby
<jhass> TvL2386: the poller triggers it again, gets interrupted at the same point, the pusher sets it value, then pushes, then the pollers initialization continues and overwrites the value
RobertBi_ has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
tfitts has joined #ruby
<TvL2386> jhass, yeah that's kinda what I think as well
RobertBirnie has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
dmolina has quit [Quit: Leaving.]
commondream has quit [Remote host closed the connection]
andikr has joined #ruby
<jhass> TvL2386: simple to try out, don't make it lazy
jphenow has quit [Client Quit]
endash has quit [Quit: endash]
sharpmachine has joined #ruby
lkba has joined #ruby
<jhass> TvL2386: fully initialize the hash prior starting the first thread
droidburgundy has joined #ruby
<TvL2386> jhass, I would like that, but I don't have control over the keys of the hash in my design
<TvL2386> jhass, of course the design can be changed ;-)
RobertBi_ has joined #ruby
jphenow has joined #ruby
hahuang65 has joined #ruby
x44x45x41x4E has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<jhass> well, or you put a common lock over access & initialization
senayar has quit [Remote host closed the connection]
<jhass> queue = mutex.synchronize { results[x.to_s] }.pop/push
<TvL2386> i'm now testing by running `iterations.times { |x| results[x] }` just after the Hash declaration
<TvL2386> jhass, yeah but if I lock it, the other thread can't push right
<TvL2386> so it's in a deadlock :-)
<jhass> look, I only put the lock over fetching it from the hash (which also includes initialization in your example)
symm- has joined #ruby
RobertBirnie has quit [Ping timeout: 246 seconds]
<jhass> calling push/pop on the fetched value is outside the lock
snockerton has quit [Quit: Leaving.]
rjno has quit [Remote host closed the connection]
<TvL2386> jhass, ah I see!
<phat4life> TvL2386: do you know about monitors?
<jhass> and since neither fetching nor initializing it will ever block you can't deadlock
exadeci has quit [Quit: Connection closed for inactivity]
<jhass> TvL2386: keep in mind that the lock version will be a lot slower than initializing the hash upfront
nobitanobi has joined #ruby
JoshL has joined #ruby
jackjackdripper has joined #ruby
qwertme has joined #ruby
<TvL2386> yeah thx jhass, I'm thinking of letting go of this. Having a queue per key was an interesting feature, but not a requirement
<TvL2386> and I'm thinking of simply letting go of the hash completely using a single queue
dcarmich has joined #ruby
slawrence00 has joined #ruby
<TvL2386> no responsibility for deleting the hash key either to prevent memory leaks
slawrence00 is now known as devmax
yfeldblum has joined #ruby
x44x45x41x4E has quit [Remote host closed the connection]
zudochkin has joined #ruby
nietzschette has quit [Quit: Leaving]
thiagovsk has joined #ruby
rjno has joined #ruby
<thiagovsk> hey guys how can i ident to dont exceed 80 columns
capncrunch4me has left #ruby [#ruby]
<thiagovsk> like expect(test_app('foo', 'example.com', '/foo/bar').instance_id).to eq("example_com_at_foo_bar")
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<undeadaedra> It's up to you to know where to cut
<undeadaedra> I usually try to cut before the .to personally
beneggett has joined #ruby
<thiagovsk> like this ?
<thiagovsk> expect(test_app( 'foo', 'example.com', '').instance_id).to
<thiagovsk> eq("example_com")
segfalt_ has joined #ruby
Guest96106 has quit [Quit: Textual IRC Client: www.textualapp.com]
segfalt has quit [Ping timeout: 256 seconds]
segfalt_ is now known as segfalt
paulcsmith has joined #ruby
kenichi has quit [Quit: ZNC - http://znc.in]
<undeadaedra> try if it works
zudochkin has quit [Ping timeout: 255 seconds]
<undeadaedra> I'd have put the .to below
<undeadaedra> so you have two nicely parts
dionysus69 has joined #ruby
<undeadaedra> line 1: value tu test, line2: expectation
<havenwood> awer: Ruby has Net::FTP in it's standard library: http://ruby-doc.org/stdlib/libdoc/net/ftp/rdoc/Net/FTP.html
<havenwood> its*
<thiagovsk> nice!
simplyianm has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
mallu has joined #ruby
<mallu> Anyone using AWS ruby sdk? I am trying to figure out how to get instance ID attached to an ELB
<phat4life> mallu: which version?
wildroman2 has quit [Remote host closed the connection]
<phat4life> (i have used both)
<mallu> ver 2
crdpink2 has joined #ruby
<phat4life> they changed some stuff, some of the sdk is less obvious
wildroman2 has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
kenichi has joined #ruby
slackbotgz has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
<mallu> phat4life: I can't for my life figure out how to get just then instance is
slackbotgz has joined #ruby
<mallu> ID
crdpink has quit [Ping timeout: 265 seconds]
<phat4life> it was easy in the old version of the sdk
denver has quit [Remote host closed the connection]
Yiota has joined #ruby
freerobby has quit [Quit: Leaving.]
<TvL2386> jhass, thank you very much for helping me out!
<jhass> yw
sepp2k has quit [Quit: Leaving.]
toretore has joined #ruby
<baweaver> mallu: You can also ask on their gitter channel
<Senjai> mallu: Cjecl pit pp[s
freerobby has joined #ruby
<Senjai> mallu: ... check out oops
zudochkin has joined #ruby
<phat4life> the new version of the sdk is terrible
<Senjai> mallu: https://github.com/freerunningtech/oops should have everything you need.
lala is now known as lala_
<baweaver> https://gitter.im/aws/aws-sdk-ruby - Trevor Rowe tends to be fairly active
<Senjai> In terms of finding things out about AWS
<Senjai> ERR
<baweaver> phat4life: It does distinctly smell like they let a Java programmer have too much fun there.
<Senjai> SORRY
<Senjai> wrong one
RegulationD has quit [Read error: Connection reset by peer]
<Senjai> ^^ That's the one
<baweaver> I'm actually working with them to get more documentation up
AndroidLoverInSF has quit [Quit: This computer has gone to sleep]
RegulationD has joined #ruby
<baweaver> mainly because I'm a tinge sick of waiting for it, I just decided to write it.
Musashi007 has joined #ruby
<BanzaiJoe> baweaver I was talking to a googler and he said you can tell the ones that come from JAVA because of the "constant premature abstraction", I tried to keep a straight face
<Senjai> BanzaiJoe: lolol
<Senjai> BanzaiJoe: TBH, I really want an abstract class thing in ruby
<Senjai> That forces methods to be templates.
atomical has joined #ruby
<baweaver> raise exceptions
<baweaver> done
<Senjai> I do
revath has quit [Quit: Leaving.]
<Senjai> But I still want an abstract class
<Senjai> To define a clear and easy interface, and yes I know you can use modules
revath has joined #ruby
<baweaver> Then there's no problem
lala_ is now known as lala
<Senjai> I still like inheriting from an AbstractClass
<Senjai> But thats the only thing I want
fredsir has joined #ruby
<baweaver> don't make ruby something it's not
quimrstorres has joined #ruby
<Senjai> lol, that's a loaded statement. That's like saying don't add any feature ever
axl__ has quit [Remote host closed the connection]
<phat4life> Senjai: its better to define your abstract methods and raise "method no implemented" in the parent class
chinmay_dd has joined #ruby
baweaver has quit [Remote host closed the connection]
<phat4life> Senjai: to force your subclasses to implementat the parent classes methods
<Senjai> phat4life: I know.. but abstract classes cannot be initialized.
<Senjai> phat4life: We're not arguing this, both baweaver and I know both understand that
<phat4life> ah
Channel6 has joined #ruby
fabrice31 has joined #ruby
pragmatism has joined #ruby
BanzaiJoe has quit []
quimrstorres has quit [Ping timeout: 265 seconds]
lala has quit []
snockerton has joined #ruby
commondream has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
stamina has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
tejasmanohar has quit [Ping timeout: 272 seconds]
bgmarx_ has quit [Remote host closed the connection]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
revath has quit [Ping timeout: 252 seconds]
gkra_ has joined #ruby
gkra_ has quit [Changing host]
gkra_ has joined #ruby
kies has joined #ruby
momomomomo has quit [Quit: momomomomo]
j4cknewt has joined #ruby
gkra has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 256 seconds]
konieczkow has joined #ruby
bgmarx_ has joined #ruby
nux443 has quit [Remote host closed the connection]
lala has joined #ruby
blackmesa has joined #ruby
Oog has joined #ruby
<Oog> is there a way to spread regexes /.../ across multiple lines? like with strings a = "a" \ "b"
<Oog> ive got a really long regex i want to split up
devmax has quit [Quit: Textual IRC Client: www.textualapp.com]
nobitanobi has quit [Remote host closed the connection]
slawrence00 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<jhass> press enter
hakunin has joined #ruby
<jhass> Oog: and add /x
zotherstupidguy has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
<Oog> hmm i dont want to ignore all space though just new lines
blackmesa has joined #ruby
piet has quit [Ping timeout: 252 seconds]
<hal_9000> well, /x only ignores extraneous whitespace
<jhass> the other approach is to use /#{interpolation}/
blizzy has joined #ruby
ongolk has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
_blizzy_ has quit [Disconnected by services]
blizzy is now known as _blizzy_
<elektronaut> you can also pass it as a string to Regexp.new, although that's not really pretty
ndhamecom has joined #ruby
<Oog> hal_9000: what is extraneous
<hal_9000> for exampl, a space preceding an asterisk on’ tbe ignored
lkba_ has joined #ruby
<hal_9000> *won’t be
piet has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
ogpastal_ has joined #ruby
jphenow has quit [Quit: Be back later ...]
nobitanobi has joined #ruby
bosma_ has joined #ruby
commondream has quit [Remote host closed the connection]
wildroman2 has joined #ruby
shafox has joined #ruby
<Oog> a =~ 'a hi hello' no match
quimrstorres has joined #ruby
<Oog> a=~'ahihello' matches
jphenow has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
commondream has joined #ruby
ogpastaling has quit [Ping timeout: 255 seconds]
bosma has quit [Ping timeout: 272 seconds]
A124 has joined #ruby
simplyianm has quit [Remote host closed the connection]
tejasmanohar has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
DexterLB has joined #ruby
bMalum has joined #ruby
kies has quit [Ping timeout: 276 seconds]
simplyianm has joined #ruby
tfitts has quit [Remote host closed the connection]
tfitts has joined #ruby
penzur has quit [Quit: Leaving]
livcd has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
davedev24_ has quit [Remote host closed the connection]
bMalum has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
davedev24_ has joined #ruby
commondream has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
<diegoviola> what editor do you guys use?
TvL2386 has quit [Remote host closed the connection]
spider-mario has joined #ruby
<mozzarella> vim
lkba_ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<al2o3-cr> vim too
droidburgundy has quit [Remote host closed the connection]
commondream has joined #ruby
<diegoviola> wow I'm surprised to find more vim users here
<diegoviola> I find most people are using sublime text these days
<shevy> many are
<shevy> jhass for instance
<diegoviola> I feel like an old fart using vim at work, everyone here uses sublime
<shevy> I forgot what apeiros uses
<shevy> yeah you are an old fart
<shevy> you can't find another editor for instance
<diegoviola> lol
<shevy> havenwood uses some strange editor too
<al2o3-cr> i've been trying out atom which is pretty cool
<elektronaut> nothing wrong with being an old fart
<shevy> what is much more surprising is that there are not many textmate users here
<shevy> I thought everyone uses it on OSX
<bougyman> atom is a beast.
<bougyman> i couldn't believe how big that package was.
<shevy> there you go diegok
<shevy> oops
<shevy> diegoviola
<elektronaut> textmate 2 was vaporware for so long, i guess most people moved on to sublime
<al2o3-cr> bougyman: it is isn't it
hinbody has quit [Ping timeout: 276 seconds]
<bougyman> packaging it was a pita, too.
<shevy> bougyman what editor do you use actually?
<bougyman> -rw-r--r-- 1 reposync reposync 52M Jun 18 09:29 atom-0.210.0_1.i686.xbps
<shevy> whoa
<shevy> that is even bigger than emacs
<wnd> that must be a mistake
shafox has quit []
<shevy> emacs-24.5.tar.xz 38M
<bougyman> -rw-r--r-- 1 reposync reposync 1004K Jun 17 13:03 vim-huge-python3-7.4.738_1.x86_64.xbps
<bougyman> that's as big as we could bloat a vim
<shevy> haha
<bougyman> it's got Everything
<shevy> almost
<shevy> lacks a good text editor
bluOxigen has joined #ruby
<bougyman> bwahahah
<shevy> the vim keybindings are ok
j4cknewt has quit [Remote host closed the connection]
nobitanobi has joined #ruby
<shevy> the extension syntax is awful
postmodern has joined #ruby
<shevy> endif
<shevy> endfunction
<bougyman> neovim gives you weak-kneed folk easy extension syntax.
<bougyman> vimscript is not pretty, that's for certain.
kies has joined #ruby
<bougyman> but once you get used to it, it's not any better.
<crankharder> how is this possible: stupid_string.to_s.force_encoding("UTF-8").split('\n') -> ArgumentError: invalid byte sequence in UTF-8
<miah> my coworker wrote this; http://learnvimscriptthehardway.stevelosh.com/
<elektronaut> what encoding is stupid_string to begin with?
Ruinside has joined #ruby
<shevy> crankharder I know that it hates german umlauts when you begin with non-UTF encodings
<Ruinside> Hello room:)
<miah> hi
<crankharder> shevy: ya, but it shouldn't matter at that point :/
stamina has joined #ruby
<s2013> what are some use cases for linked lists in ruby
<shevy> what is a linked list
<shevy> is that a Hash?
<s2013> no
<s2013> its basically a list of items where one points to the next
<s2013> kinda like 1 -> 2 -> 5 -> nil
<s2013> but i dont think ruby supports them but you can build them.. im just trying to go back to my cs roots for a bit.. a lot of these i forgot :\
<havenwood> shevy: Read about how Ruby's Hash is a doubly-circular linked list: https://www.igvita.com/2009/02/04/ruby-19-internals-ordered-hash/
t_ has quit [Ping timeout: 252 seconds]
troulouliou_dev has joined #ruby
<havenwood> s2013: Linked list came up recently in RubyGems: https://github.com/rubygems/rubygems/pull/1188
<Senjai> >> a = [1,2,3].each; puts a.next; puts a.next;
<ruboto> Senjai # => 1 ...check link for more (https://eval.in/384581)
<shevy> like aliases in bash that can point to other aliases?
kahuna_ has quit [Quit: leaving]
<Senjai> Essentially any time you need to get an element in a list, and then get the next element..
<Senjai> Which is very rare
<Senjai> because you usually have a reference to the original list
<Senjai> And either have an enumerator, or the index of that element originally
<crankharder> this seems like it should not be true: s = "\xE6" ; s.force_encoding('UTF-8') == s => true
<Senjai> crankharder: yes it does
<elektronaut> linked lists are beneficial when you need constant time inserts anywhere
<Senjai> >> "\xE6".encoding
<ruboto> Senjai # => #<Encoding:UTF-8> (https://eval.in/384582)
<Senjai> crankharder: ^
<crankharder> why won't it split then?
<Senjai> what
<elektronaut> and don't need random access
Ruinside has quit [Remote host closed the connection]
<crankharder> irb(main):039:0> "\xE6".split("\n")
<crankharder> ArgumentError: invalid byte sequence in UTF-8
<Senjai> lol
<Senjai> \xE6 is treated as \xE6
<crankharder> some stupid character in a CSV, so the doc can't be loaded
<Senjai> as a string
momomomomo has quit [Ping timeout: 245 seconds]
<Senjai> parse them out
<Senjai> "\xE6".split("\xE6")
ramfjord_ has joined #ruby
<Senjai> >> "\xE6".split("\xE6")
<ruboto> Senjai # => invalid multibyte character: /\xE6/ (RegexpError) ...check link for more (https://eval.in/384584)
kahuna_ has joined #ruby
m8 has joined #ruby
<Senjai> when in doubt, just substitute thme all for \n. Someone else might have a better solution
<Senjai> I dont pretend to be good at encodings
<crankharder> that works if it's not some character in the middle of a word
<Senjai> I would just use sed
<crankharder> neither do i :)
ramfjord has quit [Ping timeout: 252 seconds]
bgmarx_ has quit [Remote host closed the connection]
neanderslob_ has joined #ruby
postmodern has quit [Quit: Leaving]
neanderslob has quit [Ping timeout: 264 seconds]
solars has quit [Ping timeout: 245 seconds]
<shevy> let's be all honest
<shevy> encodings are boring and suck!
<Senjai> I know a guy who does mailserver related things. He's in encoding land all day
cabreraM516 has joined #ruby
<shevy> poor guy
<Senjai> He doesnt mind it
<shevy> a year ago I had a coworker who was using some perl client to read his email, in ncurses
<Senjai> Encodings are crappy until you understand everything perfectly
<shevy> he was like lightning fast
cabreraM516 has quit [Client Quit]
baweaver has joined #ruby
<shevy> is he writing in an exotic language like cyrilic
momomomomo has joined #ruby
tejasmanohar has quit [Ping timeout: 256 seconds]
balazs has joined #ruby
t_ has joined #ruby
casadei has quit [Remote host closed the connection]
RobertBi_ has quit [Ping timeout: 252 seconds]
cabreraM516 has joined #ruby
frem has joined #ruby
nietzschette has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
piet has quit [Quit: leaving]
haxrbyte_ has joined #ruby
yqt has joined #ruby
hcnewsom has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
Me1k0r has joined #ruby
AndroidLoverInSF has joined #ruby
wildroman2 has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 276 seconds]
chinmay_dd has quit [Remote host closed the connection]
casadei has joined #ruby
avalon has joined #ruby
bosma_ is now known as bosma
balazs has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
MatthewsFace has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
MatthewsFace has joined #ruby
workmad3 has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
vdamewood has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
kadoppe has quit [Ping timeout: 264 seconds]
dopie has quit [Quit: This computer has gone to sleep]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
AndroidLoverInSF has quit [Ping timeout: 250 seconds]
k3asd` has joined #ruby
freerobby has quit [Quit: Leaving.]
_blizzy_ has quit [Ping timeout: 265 seconds]
kadoppe has joined #ruby
momomomomo has quit [Ping timeout: 244 seconds]
bungoman has quit [Remote host closed the connection]
AndroidLoverInSF has joined #ruby
rbennace_ has joined #ruby
icarus has joined #ruby
rbennacer has quit [Ping timeout: 264 seconds]
gambl0re has quit [Ping timeout: 272 seconds]
hashpuppy has joined #ruby
sharpmachine has quit [Remote host closed the connection]
jphenow has quit [Quit: Be back later ...]
peter_paule has joined #ruby
hashpuppy has left #ruby [#ruby]
jphenow has joined #ruby
rbennace_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
ebalsumgo has joined #ruby
yaw has joined #ruby
nietzschette has quit [Ping timeout: 265 seconds]
<ebalsumgo> i have an array, each element is a string "somename:somedata" i am trying to iterate over all the elemts, then split the string into two variables
Makorak_ has quit [Remote host closed the connection]
<ebalsumgo> all of this in an ERB template
Igorshp has joined #ruby
yaw has left #ruby [#ruby]
AndroidLoverInSF has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
<ebalsumgo> and i keep going in circles it seems… this is the code i have now http://pastebin.com/UXA6iYcC and it ends up producing : instead of the actual data i thought it should
<ruboto> ebalsumgo, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d646fbde0740a263ca32
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Igorshp has quit [Remote host closed the connection]
jphenow has quit [Ping timeout: 255 seconds]
<Mon_Ouie> >> "foo:bar".rpartition(":")
<ruboto> Mon_Ouie # => ["foo", ":", "bar"] (https://eval.in/384587)
tejasmanohar has joined #ruby
<al2o3-cr> 575
<Mon_Ouie> ebalsumgo: ^ see how the second element is the ':', the first one is what was before it and the second one is what is after that
wildroman2 has joined #ruby
pietr0 has joined #ruby
<simplyianm> ugh
<simplyianm> dalli needs to stop dilly dalli-ing
<ebalsumgo> oh
<simplyianm> high performance my ass
<ebalsumgo> well that seems… weird
<ebalsumgo> i am sure it has a reasoning, but ok, let me fix up my code
<Mon_Ouie> What did you think it did?
<Mon_Ouie> By the way your condition is wrong too
<ebalsumgo> oh i am sure it is all sorts of wrong…
<ebalsumgo> i am google writing these 6 lines
<ebalsumgo> :/
<Mon_Ouie> 'if @foo = bar' < assigns the the value of bar to @foo
<ebalsumgo> one less = than needed
<ebalsumgo> fixed it
<Mon_Ouie> Right :)
casadei has quit [Remote host closed the connection]
<ebalsumgo> so
<elektronaut> you might want .split(":") instead if you don't care about the :
<ebalsumgo> how do i go about not having the : be stored somehwere?
s2013 has joined #ruby
<ebalsumgo> yeah i dont want the :
<ebalsumgo> i just want the values assigned to the varibales
<ebalsumgo> *variables
s2013 has quit [Client Quit]
kb3ien has joined #ruby
kb3ien has left #ruby [#ruby]
kb3ien has joined #ruby
volty has joined #ruby
ogpastal_ has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
<ebalsumgo> can i just do name,guid,district = gear_to_idle.split(':')?
fantazo has quit [Ping timeout: 264 seconds]
ogpastaling has joined #ruby
<ebalsumgo> seems like everything i keep reading is saying not so much
rbennacer has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
bgmarx has joined #ruby
<phat4life> ebalsumgo: yes!
rbennacer has joined #ruby
<Mon_Ouie> What's gear_to_idle? You were saying that it was something like "name:data"
<phat4life> >> a,b = ["foo","bar"]; puts a; puts b
<ruboto> phat4life # => foo ...check link for more (https://eval.in/384594)
cabreraM516 has quit [Ping timeout: 252 seconds]
[H]unt3r has quit []
<ebalsumgo> so gear_to_idle should contain the current item of the array
<Mon_Ouie> Anyway split(':') returns an array. When you assign an array to a list of comma separated values, it extracts the contents of the array and puts each element in the corresponding variable, as shown above ^
fmcgeough has quit [Quit: fmcgeough]
Contigi has joined #ruby
<ebalsumgo> https://gist.github.com/anonymous/8bc3e776b622edc8a3cd so presumably this at the end should print out guid value
<ebalsumgo> as split out of the array item (which is what gear_to_idle should contain)
k3asd` has quit [Ping timeout: 265 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ebalsumgo> the input array looks something like this: ['boris1:53ed267142d9f5d88c000017:small','boris2:543d70aad5c665103000002a:small','boris2:53f2c919d5c665d14b00005c:small','boris4:546f866cd5c665f621000428:small']
<elektronaut> right
<ebalsumgo> guess gonna test it and see
k3asd` has joined #ruby
<ebalsumgo> thank you
<jbisnett> does the ruby interpreter use parallel execution?
bohallor has joined #ruby
duderonomy has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dopie has quit [Quit: This computer has gone to sleep]
<ebalsumgo> well that almost worked
<ebalsumgo> just didnt end up with a \N
<ebalsumgo> \n
<ebalsumgo> ah derp… i am no longer joining
baweaver has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
dopie has joined #ruby
segfalt has quit [Quit: segfalt]
dfockler has joined #ruby
baweaver has joined #ruby
startupality has quit [Quit: startupality]
<atmosx> ywan
<ebalsumgo> well… ok how do i add just a newline in erb lol
<havenwood> jbisnett: The reference implementation has a GVL that prevents parallel execution of some things. You can run multiple Ruby processes for parallel execution or use an implementation like JRuby or Rubinius that has no GVL.
Notte has joined #ruby
kerrizor has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> havenwood: what does GVL stand for?
pkrnj has joined #ruby
<havenwood> atmosx: global vm lock
<phat4life> i thought it was GIL, global interpreter lock
<atmosx> nice
<atmosx> thanks havenwood
<phat4life> what is the difference between GIL and GVL
<havenwood> phat4life: it's actually a vm now, so vm lock
<havenwood> phat4life: whether it's an interpreter or a vm
<atmosx> phat4life: GIL is old, GVL is new
<phat4life> i see
<havenwood> phat4life: koichi-san wrote the vm
lthomas has joined #ruby
<havenwood> YARV
fabrice31 has joined #ruby
dfockler has quit [Ping timeout: 256 seconds]
icebourg has quit [Ping timeout: 250 seconds]
davedev2_ has joined #ruby
icebourg has joined #ruby
Rarikon has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 244 seconds]
<atmosx> he also wrote that blogpost
dseitz has joined #ruby
ebalsumgo has left #ruby [#ruby]
momomomomo has joined #ruby
spyderman4g63 has quit []
guillaume-rb has quit [Quit: guillaume-rb]
fabrice31 has quit [Ping timeout: 255 seconds]
eggoez has quit [Ping timeout: 252 seconds]
<shevy> everything must be faster
casadei has joined #ruby
<shevy> faster tea, faster movie, faster life, faster death
Xoro has joined #ruby
jgpawletko has joined #ruby
rbennacer has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<atmosx> also relevant to the conversation: Incremental GC algorithm splits a GC execution process into several fine-grained processes and interleaves GC processes and Ruby processes.
rbennacer has joined #ruby
commondream has quit [Remote host closed the connection]
rjno has quit [Remote host closed the connection]
Oog has quit [Ping timeout: 245 seconds]
<atmosx> shevy: no, fasting is said to decreease the release of IGF-I hormone, which induces aging.. so you age slower :-P
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commondream has joined #ruby
felixjet has quit [Read error: Connection reset by peer]
startupality has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
dopie has joined #ruby
felixjet has joined #ruby
Rapier- has quit [Quit: (null)]
roger_rabbit has quit [Ping timeout: 255 seconds]
Yiota has joined #ruby
phutchins has joined #ruby
commondream has quit [Ping timeout: 272 seconds]
k3asd` has quit [Ping timeout: 265 seconds]
zendrix has joined #ruby
peter_paule has quit [Ping timeout: 272 seconds]
jbisnett has quit [Ping timeout: 246 seconds]
eggoez has joined #ruby
konieczkow has quit [Ping timeout: 256 seconds]
bruno-_ has quit [Quit: Lost terminal]
k3asd` has joined #ruby
Beoran has joined #ruby
Xoro has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
<kb3ien> trying to copy an rb file from /usr/local/lib/ruby/gems/2.0.0/gems/ebsco-discovery-service-api-1.0.4/lib/ebsco-discovery-service-api.rb to a local copy, using path in my Gemfile, but its not working, advice ?
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
sharpmachine has joined #ruby
__butch__ has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has quit [Quit: leaving]
rodfersou has joined #ruby
rodfersou has quit [Client Quit]
rjno has joined #ruby
swgillespie has joined #ruby
<atmosx> kb3ien: show the code on github
edwinvdg_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
shum has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
Exuma has joined #ruby
edwinvdgraaf has joined #ruby
<atmosx> kb3ien: also show he error... might be the path or permissions, maybe both. Why would you wanna do that is beyond me too but anyway.
Exuma has quit [Client Quit]
<kb3ien> The default code is unwilling to abide by HTTP_PROXY ?
mdih has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benegget_ has joined #ruby
<atmosx> that's your error?!
weszlem has joined #ruby
shum has quit [Read error: Connection reset by peer]
Xoro has joined #ruby
sdothum has joined #ruby
davedev24_ has joined #ruby
zudochkin has quit [Remote host closed the connection]
bhorn1 has quit [Quit: Leaving]
<kb3ien> The error is "uninitialized constant Blacklight::ArticlesHelperBehavior::EDSApi" in <% eds_connect %> in line 20 of https://github.com/ebsco/blacklight_with_eds/blob/master/app/views/articles/index.html.erb
aryaching has joined #ruby
davedev2_ has quit [Ping timeout: 256 seconds]
<kb3ien> Which is exactly what's defined in the file I copied.
<atmosx> shouldn't that suppose to be <%= eds_connect %>
workmad3 has joined #ruby
mdw has joined #ruby
beneggett has quit [Ping timeout: 265 seconds]
<kb3ien> My copy is world readable all the way out to / .
<kb3ien> It doesn't output it just starts some API handshaking.
hakunin_ has joined #ruby
<kb3ien> clearly moving the file was what broke it.
hakunin has quit [Read error: Connection reset by peer]
eggoez has quit [Ping timeout: 256 seconds]
<noethics> is there some type of instrumentation library that's not for rails that would let me hook a method
allomov_ has quit [Remote host closed the connection]
_ht has quit [Quit: Konversation terminated!]
workmad3 has quit [Ping timeout: 252 seconds]
<volty> is there a ruby parser that preserves formatting information ?
simplyianm has quit [Remote host closed the connection]
<atmosx> kb3ien: you sur eyou're requiring the correct set of libraries in that file?
mdw has quit [Client Quit]
chussenot has quit [Quit: chussenot]
<atmosx> I don't see something like 'ruby_eds'
<volty> s/information//
<kb3ien> Well it works FINE until I copy the file into a local dir, and make a some change. How should I try to do that?
<atmosx> kb3ien: what file? what are you trying to do? Ruby is an interpreted language, if your code doesn't test EDSApi somehow it will fail when it's called...
Tamae has joined #ruby
<kb3ien> Well I just trying to make changes in the file "/usr/local/lib/ruby/gems/2.0.0/gems/ebsco-discovery-service-api-1.0.4/lib/ebsco-discovery-service-api.rb" for one app only.
chussenot has joined #ruby
simplyianm has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
diegoviola has quit [Quit: WeeChat 1.2]
<kb3ien> I don't want to make changes that affect other apps.
wildroman2 has quit [Remote host closed the connection]
micmus has joined #ruby
adac has joined #ruby
<atmosx> kb3ien: I don't know the design of this gem/app... You're trying to make a change in the gem library that will affect only one application but not others?
gianlucadv has quit [Ping timeout: 264 seconds]
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
bungoman has joined #ruby
<adac> Is it possible to run an each 'loop' in parallel?
Stany has quit [Ping timeout: 252 seconds]
granthatcher has joined #ruby
baweaver has quit [Remote host closed the connection]
Stany has joined #ruby
zotherstupidguy has quit [Ping timeout: 276 seconds]
razrunelord has joined #ruby
tejasmanohar has left #ruby ["WeeChat 1.1.1"]
eggoez has joined #ruby
<volty> of course — with threads
FernandoBasso has joined #ruby
<atmosx> adac: threads? file.each {|f| r = Thread.new do; {whatever};end;end
lkba_ has joined #ruby
<kb3ien> atmosx that sounds about right.
<adac> volty, atmosx thanks!
<atmosx> kb3ien: I see.
Tamae has quit [Ping timeout: 265 seconds]
<volty> adac: but, sorry, what are you expected to gain doing parallel loops on distinct sources ?
<volty> s/expected/expecting/
_blizzy_ has joined #ruby
<kb3ien> Net::HTTP won't honour http_proxy i'm trying recode that file.
<adac> volty, not so sure, just playing around a bit. Want to fetch things in parallel from the web
<kb3ien> well, won't honour it RELIABLY. sometimes it did, sometimes it didn't.
lkba has quit [Ping timeout: 264 seconds]
<atmosx> kb3ien: then write an exception and log the errors?
bungoman has quit [Ping timeout: 256 seconds]
podman has joined #ruby
<kb3ien> not sure what you are saying.
<atmosx> adac: fiber = concurrent, threads = parallel
icebourg_ has joined #ruby
ruv has quit [Ping timeout: 246 seconds]
ponga has quit [Quit: Connection closed for inactivity]
<atmosx> kb3ien: I think it would be a good idea to find out the reasons Net:HTTP sometimes fails. Then you can write some code to handle the failure.
<adac> atmosx, thanks I will have a lokk at both!
icebourg has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.0.1]
JoshL has quit []
Igorshp has joined #ruby
<kb3ien> it works, it just bypasses the proxy.
j4cknewt has joined #ruby
bohallor has quit [Ping timeout: 252 seconds]
<kb3ien> so i'm getting cache misses that cause misguided anti-ddos issues.
<kb3ien> anti-dos
<volty> atmosx: fiber = concurrent? in which sense?
<atmosx> volty: what is the difference between concurrency and parallelism?
rbennacer has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wookiehangover has quit [Ping timeout: 265 seconds]
Tamae has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<kb3ien> Also I want to do a read-ahead cache on queries that I expect to be run in the next few seconds, etc.
<volty> ah, I see, it's all about the time-shift and pausing, thx
micmus has quit [Ping timeout: 256 seconds]
Stany has quit [Ping timeout: 255 seconds]
Patchou has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
droidburgundy has joined #ruby
<kb3ien> Do i need to copy the /cache/*gem file too ?
dfockler has joined #ruby
reset has joined #ruby
droidburgundy has quit [Client Quit]
Stany has joined #ruby
Igorshp has quit [Ping timeout: 265 seconds]
adac has quit [Ping timeout: 276 seconds]
<volty> and passing. sorry
olistik has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
Tamae has quit [Ping timeout: 250 seconds]
rjno has quit [Remote host closed the connection]
wookiehangover has joined #ruby
olistik has left #ruby [#ruby]
y0da has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Patchou has quit [Ping timeout: 246 seconds]
Tamae has joined #ruby
rjno has joined #ruby
zacts has quit [Quit: leaving]
<volty> ops, not the last, num. 27
Rashad has joined #ruby
<kb3ien> How would I generally get a working local copy ? gem "ebsco-discovery-service-api", "1.0.4" , :path => '/var/www/local_gems/ebsco-discovery-service-api-1.0.4/lib/' fails, but when the path is ommited it works fine.
piet has joined #ruby
hinbody has joined #ruby
<kb3ien> The OS can hijack TCP on a per uid basis, but I'd rather not.
lampd1 has quit [Read error: Connection reset by peer]
<Rashad> Hello. Does Ruby support heterogeneous lists?
<Aria> Yes.
<Rashad> Did it support it back in 2006?
Stany has quit [Ping timeout: 255 seconds]
<volty> my question about a ruby parser preserving formatting was very very stupid. Ripper (for example) does it since it registers the position of the found tokens. (so everything between is the original whitespace)
<volty> (just forgot, I use ripper for syntax highlighting)
<Aria> Rashad: Yes.
<Rashad> Thanks Aria.
<Aria> Rashad: It's dynamically typed -- variables and containers have never cared what is in them.
workmad3 has joined #ruby
razrunelord has quit [Remote host closed the connection]
<Rashad> Alright.
Yiota has joined #ruby
bgmarx has quit [Remote host closed the connection]
rjno has quit []
nateberkopec has quit [Quit: Leaving...]
paulcsmith has quit [Quit: Be back later ...]
<momomomomo> everything is an object
yaw has joined #ruby
cabreraM516 has joined #ruby
micmus has joined #ruby
veduardo has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
<volty> >> a=[]; p a.push *[1,a,:sym, "hi"
<ruboto> volty # => /tmp/execpad-b01a8af34a69/source-b01a8af34a69:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/384603)
<volty> >> a=[]; p a.push *[1,a,:sym, "hi"]
<ruboto> volty # => [1, [...], :sym, "hi"] ...check link for more (https://eval.in/384604)
j4cknewt has joined #ruby
s2013 has joined #ruby
j4cknewt has quit [Remote host closed the connection]
ogpastal_ has joined #ruby
piet has quit [Quit: Lost terminal]
ogpastaling has quit [Read error: Connection reset by peer]
et09 has quit [Quit: leaving]
kb3ien has quit [Ping timeout: 256 seconds]
jgpawletko has quit [Quit: jgpawletko]
codecop has quit [Remote host closed the connection]
Notte has quit []
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
jenrzzz has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
micmus has quit [Ping timeout: 246 seconds]
Channel6 has quit [Quit: Leaving]
daveg_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
segfalt has joined #ruby
Rashad has left #ruby [#ruby]
DEA7TH has quit [Ping timeout: 256 seconds]
blaines_ has quit [Ping timeout: 244 seconds]
MatthewsFace has joined #ruby
aryaching has quit []
ldnunes has quit [Quit: Leaving]
bgmarx has joined #ruby
benegget_ has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
razrunelord has joined #ruby
blaines has joined #ruby
lthomas has quit [Quit: lthomas]
beneggett has joined #ruby
Exuma has joined #ruby
aryaching has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
beneggett has quit [Client Quit]
qwertme has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
cranq has quit [Ping timeout: 255 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
micmus has joined #ruby
segfalt has quit [Quit: segfalt]
njs126 has quit [Quit: Leaving]
yardenbar has joined #ruby
AndroidLoverInSF has joined #ruby
zendrix has quit [Remote host closed the connection]
last_staff has quit [Remote host closed the connection]
icebourg_ has quit [Ping timeout: 246 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
datanoise has quit [Ping timeout: 276 seconds]
rubie has quit [Remote host closed the connection]
bgmarx has quit [Remote host closed the connection]
jlast has quit [Read error: Connection reset by peer]
vdamewood has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
chinmay_dd has joined #ruby
bahar has quit [Ping timeout: 250 seconds]
xelkarin has joined #ruby
arturhoo has quit [Quit: arturhoo]
lampd1 has joined #ruby
kristoph_ has joined #ruby
kies has quit [Ping timeout: 265 seconds]
kristoph_ has quit [Client Quit]
lampd1 has quit [Read error: Connection reset by peer]
unsymbol has quit [Ping timeout: 264 seconds]
RegulationD has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has quit []
icebourg has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
umgrosscol has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
chinmay_dd has quit [Ping timeout: 272 seconds]
RobertBirnie has quit [Ping timeout: 255 seconds]
unsymbol has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zendrix has joined #ruby
RobertBirnie has joined #ruby
Rapier- has joined #ruby
mary5030_ has joined #ruby
wookiehangover has quit [Ping timeout: 256 seconds]
mary5030 has quit [Ping timeout: 276 seconds]
bgmarx has joined #ruby
fabrice31 has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
wookiehangover has joined #ruby
Musashi007 has joined #ruby
cabreraM516 has quit [Ping timeout: 265 seconds]
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
AndroidLoverInSF has quit [Ping timeout: 276 seconds]
chussenot has quit [Quit: chussenot]
AndroidLoverInSF has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dgutierrez1287 has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
allomov has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cabreraM516 has joined #ruby
snockerton has quit [Quit: Leaving.]
aryaching has joined #ruby
kirun has quit [Quit: Client exiting]
dgutierrez1287 has quit [Ping timeout: 244 seconds]
Ikares has quit [Read error: Connection reset by peer]
icebourg has quit []
Igorshp has joined #ruby
mary5030_ has quit [Remote host closed the connection]
A205B064 has joined #ruby
Alayde_ has quit [Ping timeout: 256 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby
stamina has quit [Ping timeout: 265 seconds]
volty has quit [Quit: Konversation terminated!]
EagleDelta has quit [Read error: Connection reset by peer]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Ping timeout: 272 seconds]
arturhoo has joined #ruby
starfox_sf has quit [Quit: leaving]
starfox_sf has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
lampd1 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jenrzzz has joined #ruby
yaw has joined #ruby
Ikares has joined #ruby
m8 has quit [Quit: Sto andando via]
swgillespie has joined #ruby
al2o3-cr has quit [Ping timeout: 252 seconds]
yoongkang has quit [Remote host closed the connection]
yoongkang has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
Ikares has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
vdamewood has joined #ruby
al2o3-cr has joined #ruby
allomov has quit [Remote host closed the connection]
nambiz has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
Exuma has quit [Quit: ZZZzzz…]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
Exuma has joined #ruby
baweaver has quit [Remote host closed the connection]
rbennacer has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
bungoman has joined #ruby
bgmarx has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby
nobitanobi has quit []
bgmarx has joined #ruby
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
jfarmer has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
bgmarx_ has joined #ruby
woodruffw has quit [Client Quit]
aryaching has joined #ruby
woodruffw has joined #ruby
Exuma has quit [Quit: ZZZzzz…]
datanoise has joined #ruby
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
bgmarx has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
yaw has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 244 seconds]
swgillespie has joined #ruby
arescorpio has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
zendrix has quit []
gusrub has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
rubie has joined #ruby
Sypheren has joined #ruby
tcrypt has quit [Read error: Connection reset by peer]
Casty has joined #ruby
tcrypt has joined #ruby
baweaver has joined #ruby
renderful has joined #ruby
bungoman has quit []
marr has quit []
stonith has quit [Quit: No Ping reply in 180 seconds.]
cabreraM516 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ged has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
Rapier- has quit [Ping timeout: 252 seconds]
ged has joined #ruby
stonith has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulcsmith has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
paulcsmith has quit [Client Quit]
RegulationD has joined #ruby
pragmati_ has joined #ruby
rubie has joined #ruby
rubie has quit [Remote host closed the connection]
simplyianm has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 272 seconds]
ralphTrinton has quit [Quit: Lost terminal]
Oka has joined #ruby
slawrence00 has quit [Ping timeout: 246 seconds]
rubie has joined #ruby
pragmatism has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
eam has quit [Ping timeout: 252 seconds]
Rapier- has joined #ruby
uptownhr has quit [Quit: uptownhr]
eam has joined #ruby
mattarse has quit [Ping timeout: 256 seconds]
LMity has joined #ruby
aphprentice has quit [Remote host closed the connection]
Casty has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Write error: Connection reset by peer]
jesterfraud has quit [Read error: Connection reset by peer]
tvw has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 246 seconds]
dling has joined #ruby
jesterfraud has joined #ruby
spacemud has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
chris2 has quit [Ping timeout: 276 seconds]
_blizzy_ has joined #ruby
cabreraM516 has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 272 seconds]
JoshL has joined #ruby
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
omegahm has quit [Ping timeout: 265 seconds]
sharpmachine has quit [Remote host closed the connection]
nwhirschfeld has quit [Quit: No Ping reply in 180 seconds.]
waxjar has quit [Ping timeout: 265 seconds]
drewo has joined #ruby
qwertme has joined #ruby
chris2 has joined #ruby
casadei has quit [Remote host closed the connection]
jalcine has quit [Ping timeout: 256 seconds]
C0deMaver1ck has quit [Ping timeout: 252 seconds]
auraka has quit [Ping timeout: 252 seconds]
jtdowney has joined #ruby
Cache_Money has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Hijiri has quit [Ping timeout: 252 seconds]
larissa has quit [Ping timeout: 265 seconds]
waxjar has joined #ruby
jokester has quit [Ping timeout: 256 seconds]
joe2 has quit [Ping timeout: 265 seconds]
nwhirschfeld has joined #ruby
voodoologic has joined #ruby
sharpmachine has joined #ruby
hahuang65 has joined #ruby
jokester has joined #ruby
spacemud has joined #ruby
jesterfraud has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
jesterfraud has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
voodoologic has left #ruby ["WeeChat 1.2"]
terrellt has quit [Ping timeout: 265 seconds]
C0deMaver1ck has joined #ruby
awer has quit [Ping timeout: 252 seconds]
C0deMaver1ck is now known as Guest34108
three18ti has quit [Ping timeout: 265 seconds]
skarn has quit [Ping timeout: 265 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
cj has quit [Ping timeout: 265 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
Gadgetoid has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
devdazed has joined #ruby
LMity has quit [Ping timeout: 252 seconds]
datanoise has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
RobertBirnie has quit [Ping timeout: 276 seconds]
terrellt has joined #ruby
unclouded has quit [Ping timeout: 253 seconds]
fedexo has quit [Read error: Connection reset by peer]
jtdoncas has joined #ruby
rcvalle has quit [Quit: rcvalle]
cabreraM516 has left #ruby ["Textual IRC Client: www.textualapp.com"]
fedexo has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
icarus has joined #ruby
unclouded has joined #ruby
three18ti has joined #ruby
workmad3 has joined #ruby
jalcine has joined #ruby
larissa has joined #ruby
auraka has joined #ruby
skarn has joined #ruby
cj has joined #ruby
omegahm has joined #ruby
Igorshp has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
Channel6 has joined #ruby
jtdoncas has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
NeverDie has joined #ruby
ogpastal_ has quit [Remote host closed the connection]
sphex has joined #ruby
cb__ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
pragmati_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 276 seconds]
Apocalypse has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
mcclurmc has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
Casty has joined #ruby
michael_mbp has joined #ruby
aryaching has joined #ruby
joe2 has joined #ruby
Makorak has joined #ruby
pietr0 has quit [Quit: pietr0]
Oka has quit []
rafaelsales has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
fgo has joined #ruby
hinbody has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby
baweaver has quit [Remote host closed the connection]
acovrig has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
j4cknewt has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has joined #ruby
bkxd has joined #ruby
<acovrig> I’m having issues with :String.strip! it doesn’t seem to do anything… shouldn’t “coyote  “.strip! return “coyote“?
workmad3 has quit [Ping timeout: 265 seconds]
AustinLMayes has joined #ruby
postmodern has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
<al2o3-cr> >> "coyote ".strip
<ruboto> al2o3-cr # => "coyote" (https://eval.in/384620)