jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
killerkamel has joined #ruby
<bleep> To clarify, it works fine over console, it's just the RubyMine config that throws an error
elifoster has quit [Ping timeout: 240 seconds]
Jayson_Virissimo has quit []
yfeldblum has joined #ruby
rcvalle has quit [Quit: rcvalle]
surrounder has quit [Ping timeout: 250 seconds]
elifoster has joined #ruby
djbkd has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
whathappens has quit [Quit: Leaving...]
devbug has quit [Quit: ZZZzzz…]
chipotle_ has joined #ruby
chipotle_ has quit [Max SendQ exceeded]
<bleep> is it seriously 2016 and there's not a way to tell google to not ignore punctuation in searches?
chipotle_ has joined #ruby
<havenwood> bleep: http://symbolhound.com
davedev24 has quit []
<bleep> havenwood: god bless you
chipotle has quit [Ping timeout: 264 seconds]
l4v2 has quit [Quit: l4v2]
arescorpio has joined #ruby
l4v2 has joined #ruby
zacts has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
roamingdog has quit [Remote host closed the connection]
Guest60828 has quit [Ping timeout: 260 seconds]
<Talltree> wondering what linux distro you guys use to host your stuff, or do you use cloud services with premade installations etc?
RegulationD has quit [Remote host closed the connection]
nizzlefritz has quit [Ping timeout: 264 seconds]
Dimik-- has joined #ruby
pawnbox has joined #ruby
chipotle_ has quit [Quit: cheerio]
<havenwood> Talltree: Arch Linux and Fedora are two of the GNU/Linux distros that have nice, up-to-date Ruby packages. Folk use all sorts of other Linux distros. FreeBSD or OpenBSD are popular with some circles of Rubyists as well.
spudowiar has quit [Quit: Leaving.]
isberg has quit [Quit: I'm out]
<Mirubiri> Arch Linux is very popular
<bougyman> no one has a more recent ruby than void linux
<bougyman> no one has more recent * than void linux, really
blackmesa has joined #ruby
<Talltree> i use arch at home, but i didnt know its popular as a server
devbug has joined #ruby
<Mirubiri> no, not as a server
<bougyman> arch doesn't belong on a prod server.
<Talltree> thats what i think too ;)
<Talltree> Fedora for the server maybe
<bougyman> not since they went systemd, anyway.
macsteps has quit [Remote host closed the connection]
<bougyman> fedora's systemd now, too.
<Talltree> i use debian for now on my server...
<Mirubiri> redhat, debian... clasics
<Talltree> debian uses ancient packages
<Mirubiri> ubuntu server...
<bougyman> s/ancient/stable/
<bougyman> but yes.
<Talltree> idk why but debian is just way too slow with updating
pawnbox has quit [Ping timeout: 264 seconds]
<Talltree> arch on the other hand is way too fast :D
<Mirubiri> who cares, at the end you install what you need
<bougyman> debian is stable, arch is fragile.
<Talltree> fedora seems to be the middle of those
<Mirubiri> CentOs
* lupine has spent 8 years deploying ruby to debian stable
<lupine> kinda fun, kinda not
beilabs has joined #ruby
<Talltree> like i said, debian stable is what i run atm
<Talltree> so its possible
<lupine> our newest stuff is jessie/2.1
<lupine> the new job is just moving to 2.3 :D
<Talltree> but still, i would like to have a server thats not ancient :D
<Talltree> moved to 2.3 and it was a PAIN
<lupine> (most of the stuff at oldjob is 1.9)
<lupine> I think I killed all the 1.8 stuff, eventually
<Mirubiri> lupine: how is doing docker in debian for ruby deployments?
<lupine> Mirubiri: dunno, I've never really touched docker
<havenwood> Talltree: Brightbox maintains nice, up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
replay has quit []
<lupine> there's a package, I can't say any more or less than that
<Mirubiri> lupine: ok
<Talltree> i use rvm
<Talltree> now
<lupine> packager.io is an interesting approach for ruby applications - vendors in a ruby, and all the gems, but it's good for deployment pipelines
<Talltree> but still, some dependencies where a total clusterf****
<lupine> github.com/crohr/pkgr or so is where the code hides
ramfjord has quit [Ping timeout: 250 seconds]
<Mirubiri> I switched from RVM to rbenv
<lupine> (leans heavily on heroku buildpacks)
<Talltree> sadly heroku and the likes are still way more expensive as a simple vroot for my stuff Oo
<havenwood> I switched from RVM to rbenv to rbfu to chruby.
blackmesa has quit [Ping timeout: 272 seconds]
<lupine> right, pkgr is how you get heroku-ish deployment without heroku
<lupine> I guess docker is saner when you get down to that level of vendoring stuff in
<Mirubiri> havenwood: i feel chruby like nothing
<Talltree> what does docker too?
<Talltree> *do
<Talltree> english 404
<Mirubiri> i like something that lies in between rvm and chruby
<lupine> chruby =
nobitanobi has quit [Remote host closed the connection]
<lupine> chruby + ruby-install + bundle install --path=...
<havenwood> \o/
<lupine> great for development. keep it far away from production
<zacts> lo
nankyokusei has joined #ruby
<lupine> far, far away
<gizmore> wtf https://www.youtube.com/watch?v=K9skEtl7x-o (starcraft II rap musich video) (UNRELATED)
nobitanobi has joined #ruby
<zacts> lupine: I use chruby without ruby-install
saneax is now known as saneax_AFK
<zacts> I manually install my rubies into .rubies
<zacts> ~/.rubies that is
<bougyman> I've been production with rvm for years.
<bougyman> works great.
yardenbar has quit [Ping timeout: 276 seconds]
<bougyman> before that, we did one user per application with a ruby in --prefix=$HOME
<zacts> I didn't like the previous version of rvm
<zacts> so I ended up with alternatives
<lupine> I would not countenance any of these methods :D
<zacts> which is what I still use now
<lupine> seriously, do look at pkgr
<zacts> the shell script source of previous rvm's was scary to me
<bougyman> there's nothing to fear from shell.
<lupine> gitlab uses omnibus, which is vaguely equivalent if you happen to have piles of chef, I guess
<lupine> for hobbyist stuff, it barely matters
<zacts> bougyman: perhaps not inherently
<havenwood> if you don't have a package manager with a modern Ruby you can do a /usr/local/ install with ruby-install: sudo ruby-install --system --latest ruby
<zacts> lupine: It matters if your are nerdy enough
<lupine> :S
<lupine> havenwood: no no no no no no no :p
<zacts> regardless: x versus y discussion is kind of boring me now
<zacts> :-)
<zacts> :-D
<bougyman> same
<bougyman> use what works for you.
<lupine> repeatability is what you're aiming for
<bougyman> and don't tell other people what to use.
<lupine> or should be
<zacts> bougyman: unless that something is emacs or vim
<zacts> (kidding kidding)
<bougyman> hahahahaha
<bougyman> I hear you, but you also raised some exceptions.
<zacts> (and now Atom.io)
memorasus has quit [Ping timeout: 264 seconds]
<bougyman> if someone on my team used nano for editing, for instance.
<bougyman> I'd have to question that.
<zacts> nano? what is nano?
<lupine> bougyman: how about gedit?
<zacts> kidding
<bougyman> lupine: gedit might be capable?
<zacts> I use mg or nvi for that
<bougyman> I dunno, haven't looked at it in forever.
nobitanobi has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
<zacts> anyway, back to #ruby
<lupine> :D
<bougyman> if they're productive, I don't give a shit.
abhinavmehta has joined #ruby
cdg_ has quit [Remote host closed the connection]
<Mirubiri> vim.. i have to revisit it
abhinavmehta has quit [Client Quit]
cdg has joined #ruby
<Talltree> switching between files is quite annoying on vim i think
<bougyman> umwut?
<bougyman> it's easy, with or without ctrlspace.
<Talltree> maybe i'm just a noob ;)
<bougyman> with ctrlspace it's just easier.
<Mirubiri> I stopped using it cause I put myself in auto mode
<Mirubiri> bad for development
<Talltree> never taking about the hand from the keyboard is so nice. remembering so many shortcuts isnt tho.
<Talltree> oh god
<Talltree> my english today is so bad
<Talltree> *taking away
Rodya_ has quit [Remote host closed the connection]
<Mirubiri> Talltree: at the end you are pretty damn fast with vim
madsa has joined #ruby
<Talltree> yeah, but sublime and atom have so many pretty features ... idk, i will learn more vim but not primarily
LoneHerm_ has joined #ruby
<Talltree> also i'm a bit confused about the subversions of vim
<Talltree> there seem to be mutible "updated" vims out there
mattwashere has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 250 seconds]
<Mirubiri> Talltree: if you want to learn more vim activate the vintage mode in sublime
<Mirubiri> is quite similar
mattwashere has joined #ruby
<Mirubiri> deactivate it when you get annoyed lol
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Talltree> dont activate it got cha Mirubiri
sdothum has joined #ruby
<Talltree> :D
<Mirubiri> xD
memorasus has joined #ruby
mattwashere has quit [Ping timeout: 258 seconds]
<Mirubiri> but seriously, once you spent some time with vim is easy to fall in love
l4v2 has quit [Quit: l4v2]
<Mirubiri> the main advantage is that you save on mouse batteries!
eljimbo has quit [Quit: This computer has gone to sleep]
ullu has joined #ruby
killerkamel has quit [Ping timeout: 252 seconds]
* Nilium dropped Sublime for vim just because vim's easier to use.
<Mirubiri> really?
Jonathel has quit [Ping timeout: 272 seconds]
<Nilium> Macros in Sublime are wonky, everything useful requires me to hold down a bunch of modifier keys to do, it's generally just a pain to get anything that isn't basic text editing done in Sublime.
<Nilium> Which isn't to say that someone else will have the same reaction.
<Mirubiri> yeah, that's right
mexis_ has quit [Quit: WeeChat 0.3.7]
<Mirubiri> shortcuts hell is sublime is his big disadvantage
whippythellama has quit [Quit: WeeChat 1.2]
<Talltree> i like autocomplete
<Talltree> anything autocomplete saves me tons of time
pawnbox has joined #ruby
<Nilium> On the other hand, someone using Sublime might not like vim because it can take a while to get used to jumping around code in it and figuring out how things like :g/foo/norm! f:fylciwblobbo works
<Mirubiri> Talltree: YouCompleteMe for VIM
<Mirubiri> and you got it
* Nilium removed neocomplete and YouCompleteMe
<Nilium> They slowed things down too much.
nebg has joined #ruby
<nebg> is there a ruby equivalent of the python module called "scapy" ?
<Nilium> What does it do?
<Nilium> Or what are you doing with it?
<Mirubiri> yeah Nilium but that keywords in vim have a meaning they are not some random key combinations
<Nilium> Mirubiri: I know. That wasn't a random key combination, either.
<Mirubiri> I know
<Nilium> Although it is a silly one.
<Mirubiri> I was talking about Sublime
SilverKey has joined #ruby
<Mirubiri> and emacs maybe?
<Mirubiri> it uses shortcuts too isn't it?
<Nilium> I've only used emacs with evil, but it's closer to Sublime.
<Nilium> Some of the normal bindings in emacs make sense, others you would never find if someone didn't tell you they existed (or you had one of the key helpers)
SilverKey has quit [Max SendQ exceeded]
pawnbox has quit [Ping timeout: 240 seconds]
<nebg> Nilium, packet manipulation
wrkrcoop has quit [Quit: wrkrcoop]
sepp2k has quit [Quit: Leaving.]
memorasus has quit [Ping timeout: 272 seconds]
<al2o3-cr> nebg: packetfu is probably your best bet
<Mirubiri> Nilium: one of the features I like from sublime text is package manager is far way better than vim ones
<Nilium> I removed package control a while ago. Bugged me that it tried to auto-install updates.
<Nilium> Which is also part of why I like pathogen in vim.
<al2o3-cr> nebg: or racket
<Nilium> It's dumb enough to do its job and nothing else.
<Mirubiri> Nilium: you are a minimalist
<Nilium> I wrote an embeddable filesystem today, so according to my friends, I'm also crazy.
<Mirubiri> that kind of people who create pragmatic things lol
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<Mirubiri> I don't know anything related to OS/Filesystems design
memorasus has joined #ruby
<Nilium> Anyway, in terms of editors, the point isn't really that one is better than the other. You should use what you like and are productive in.
nizzlefritz has joined #ruby
<Mirubiri> I was more productive with vi
<Nilium> You might enjoy reading https://en.wikipedia.org/wiki/9P_(protocol) if you're not familiar with that stuff. I feel like it's a pretty approachable way to build a filesystem.
<Nilium> Well, read that and then the 9p.cat-v.org stuff and so on and so forth.
<nebg> is ruby really much slower than python in general ?
<Nilium> Ruby was beating Python 3 in microbenchmarks for a while, but generally it doesn't matter.
<Nilium> They're fairly close together these days, if I remember right, though it depends on the implementation of each.
<nebg> Nilium, yeah right
<nebg> thanks al2o3-cr
<Mirubiri> Nilium: that kind of stuff is very obscure for me
<Nilium> Your code isn't a microbenchmark, so whether X is faster than Y is going to mostly come down to how you build things.
diegoviola has quit [Quit: WeeChat 1.5]
LoneHerm_ has quit [Ping timeout: 258 seconds]
ullu has quit [Ping timeout: 272 seconds]
<Nilium> 9p is probably obscure in the sense that it's part of Plan 9 and therefore mostly dead, but the protocol still gets supported, so it's handy to know. Maybe.
zeroDi has quit [Read error: Connection reset by peer]
spudowiar has joined #ruby
<Nilium> Though it's probably harder to wrap your head around it if you've never put time into that.
<Mirubiri> never
<Nilium> Either way, might be fun to learn about. Don't know.
nando293921 has quit [Ping timeout: 258 seconds]
<Mirubiri> the last thing related to filesystems I've read about was IFPS
macsteps has joined #ruby
<Mirubiri> or IPFS i dunno how is
<Nilium> IPFS?
<Mirubiri> written
<Mirubiri> yes
<Mirubiri> interesting project
<Nilium> Its own description seems fairly hyperbolic.
<Mirubiri> add quantum computing to the mixin and the world explodes lol
<Mirubiri> yes, is a p2p network at the end
enterprisey has joined #ruby
<Nilium> Also seems like it's just trying to be a bigger camlistore, almost.
<Mirubiri> but I think is worth keep an eye, it is not the first time people try to make an standard from something similar
Almoullim has joined #ruby
<Almoullim> Hello
<Mirubiri> camlistore never head about it
Sammichmaker has joined #ruby
<Mirubiri> heard
RegulationD has joined #ruby
<Almoullim> So, I wanted to learn either Python or Ruby, I've done alot of research and I couldn't make a decision so i decided to learn the basics of both, i just finished Python, and now I'm learning Ruby... Anyway;
al2o3-cr has quit [Read error: Connection reset by peer]
<Almoullim> While i was reading the watching stuff about Ruby i came acoss several people that generaly said that ruby is all about rails
<Mirubiri> Almoullim: what is your field?
<Nilium> Considering I've never used rails, I would ignore them.
<Almoullim> like some video i watched said that Ruby exist to only to serve Rails
<Almoullim> is that the case
<Nilium> Well, that's just silly.
zacts has quit [Quit: WeeChat 1.4]
<Mirubiri> yes
<Nilium> That'd be like saying Python is only for django.
<Mirubiri> or web for porn
<Mirubiri> well that maybe true...
<Almoullim> xD
<Mirubiri> xD
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 47.0.1/20160623154057]]
<Nilium> Anyway, Ruby is a general purpose scripting language. I use it to write tools.
<Nilium> Other folks might use it to build websites, but they're generally less interesting and tend to be focused on whether or not a button is round and blue enough.
<bougyman> Ruby is a general purpose language.
<bougyman> notice the period.
<Almoullim> Yes, well both languages are almost the same, Ruby seems easier to pickup, but really, the exact same...
<bougyman> Nilium: what are some of the "biggest" sites you use?
<Mirubiri> Almoullim: ruby became wide popular because of rails, and that's all
al2o3-cr has joined #ruby
<bougyman> Almoullim: I hate hearing that.
<Mirubiri> don't overthink about that
<Mirubiri> is what it is
<Nilium> bougyman: Don't know, the list of sites you can visit over gopher is kind of shrinking
<bougyman> rails is in many ways contradicts ruby.
RegulationD has quit [Ping timeout: 240 seconds]
spudowiar has quit [Quit: Leaving.]
<Almoullim> Right, thanks for the clarification (i might spelled that wrong) :)
<Nilium> To clarify, plenty of sites I visit are built on Rails. I just don't care for Rails.
<bougyman> nor do I.
<Nilium> I think it made the Ruby community generally less nice.
<Mirubiri> mmm
<bougyman> but don't judge ruby on rails.
<Mirubiri> maybe rails is best paid?
<bougyman> no, not even close.
dhollinger has joined #ruby
<Nilium> Ruby's great, just ignore rails.
<bougyman> anyone I know doing chef work is paid more than the people I know who rails for a living.
dhollinger has quit [Client Quit]
<Mirubiri> DevOps...
<bougyman> whatever you want to title it.
<bougyman> they write ruby for a living.
devbug has quit [Quit: ZZZzzz…]
* Almoullim Started a war!
<Mirubiri> yeah, that's true
<bougyman> I see no war.
blackmesa has joined #ruby
<bougyman> only a friendly discussion.
<Almoullim> I meant that in a funny way, sorry.
<Mirubiri> Where I live you won't find DevOps related jobs
<bougyman> they don't allow infrastructure automation there?
<bougyman> weird place.
<Mirubiri> nop, the case is that devops profession is still arriving
<Mirubiri> is not well known
<Mirubiri> so...
<Mirubiri> if you want to work with ruby you have to know rails
<bougyman> just wait. in 5 more years you'll get Continuous Deployments
<Mirubiri> I know
<Mirubiri> I should be learning it now
<bougyman> I had an interview with a guy who claimed he new ruby last week.
<bougyman> he's been programming rails for 6 years.
<bougyman> I was skeptical.
<bougyman> My first ask to him was to write a script that read from stdin and printed every third word.
<bougyman> he completely froze.
<Mirubiri> bougyman: it's normal
<Mirubiri> Rails people don't read from IO in daily basis
* Nilium mostly works in Go, but writes a lot of little side-tools for himself in Ruby.
<bougyman> how can you say you know a language if you don't know how to read from stdin?
Sucks has joined #ruby
<bougyman> the job wasn't for rails, nor a rails programmer.
eljimbo has joined #ruby
<bougyman> we use ruby for real shit, not webcrap.
<Mirubiri> Then you have to know how to read from IO
Sucks has quit [Max SendQ exceeded]
<Nilium> Sounds similar to an interviewee who passed through recently who said he knew MySQL but, when asked to write a basic select statement, couldn't do it.
<Mirubiri> bougyman: at the end, if him could learn Rails he is capable of learn ruby
Sucks has joined #ruby
<bougyman> Mirubiri: possibly.
beilabs has quit [Remote host closed the connection]
<bougyman> but the killer was that he said he knew linux.
<Mirubiri> nobody knows linux
<bougyman> so I asked him to show me the most recent kernel logs on my system.
<bougyman> you know: dmesg|tail
<Mirubiri> yes
beilabs has joined #ruby
pawnbox has joined #ruby
<bougyman> well this guy did the cd /var/log; ls *WHAT THE FUCK?*
<Nilium> Also known as that thing I type compulsively when I don't know what else to check
<bougyman> I put him on a void linux box, it doesn't have a std /var/log
<bougyman> but there _was_ a dmesg.log in there. I think any sane person might have read that.
<bougyman> but this guy decided to `cat wtmp`
<Nilium> Was he looking for the sysl-.. nope, I guess not.
<bougyman> *terminal goes crazy*
enterprisey has quit [Ping timeout: 250 seconds]
<bougyman> interview over.
blackmesa has quit [Ping timeout: 276 seconds]
<Mirubiri> and he saild that he knew linux period?
<bougyman> he said he was an expert in linux
<Mirubiri> omg!
<bougyman> that was right on his resume: Expert in Linux
<Nilium> When you asked for logs, do you think he misunderstood you and went for 'logins'?
<bougyman> Nilium: show me the most recent kernel logins?
<bougyman> no, that doesn't seem plausible.
<Nilium> Suppose not.
<Mirubiri> bougyman: I don't know any expert in smth who calls himself expert
macsteps has quit [Remote host closed the connection]
<bougyman> Mirubiri: nor do I.
<bougyman> i've been using vim for 20 years.
sdwrage has quit [Quit: Leaving]
<bougyman> i'm novice-intermediate.
<Mirubiri> then why you interviewed him?
<Nilium> I just call myself an idiot so I can be pleasantly surprised when I do anything.
<bougyman> Mirubiri: not my choice. recruiting sets these things up.
<Mirubiri> Oh I see...
<eam> I mean, looking in /var/log for dmesg logs is reasonable
<bougyman> eam: sure.
abhinavmehta has joined #ruby
<bougyman> but if you don't see a kern.log or anything familiar, you might ask a question.
<Nilium> I think the best interview I ever got out of was a guy who submitted a code sample plagiarized from w3schools
<eam> I train people to do that because dmesg isn't timestamped and I'm tired of people going "omg" over something that's a few months old
<eam> bougyman: yeah
<bougyman> of course, anyone who was an 'expert in linux' would have just dmesg|tail and not even had to root around in /var/log
<Mirubiri> or anyone who read a single Linux Administration book...
<Nilium> Some dmesg implementations have timestamps, thankfully.
<Mirubiri> it is one of the first things you learn
beilabs has quit [Ping timeout: 252 seconds]
<bougyman> mine does, Nilium
<bougyman> but alas, he never saw it.
neanderslob has quit [Ping timeout: 240 seconds]
abhinavmehta has quit [Client Quit]
pawnbox has quit [Ping timeout: 276 seconds]
<Nilium> Pretty sure most of the debians do, but not really important
<bougyman> just blinky binary all over the screen after the cat wtmp
<Mirubiri> and how to do aliases...
<Nilium> Think I'll go heat up leftovers
weaksauce has joined #ruby
neanderslob_ has quit [Ping timeout: 264 seconds]
<bougyman> I've handed many interviewees my laptop before. none have every farked a terminal.
<eam> well, as long as they know how to fix it ...
<bougyman> oh, right.
<bougyman> he didn't know 'reset', either.
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<Mirubiri> O_O
<Mirubiri> maybe 'clear'?
<eam> nah, clear won't help
<eam> reset or stty sane will
l4v2 has joined #ruby
<eam> (sometimes)
<al2o3-cr> journalctl -k | tail ftw
<eam> systemd = fired
<eam> no culture fit
lechiffre10 has joined #ruby
chipotle has joined #ruby
<lechiffre10> hey friends
<Mirubiri> oh no, stop telling commands I can't resist to read its docs now...
<al2o3-cr> least it guarantees timestamps
<eam> al2o3-cr: no it doesn't
lechiffre10 has quit [Quit: leaving]
<eam> dmesg is a kernel thing independent of systemd
<al2o3-cr> no timestamps from dmesg on my box
<al2o3-cr> ah -T
<Nilium> I know I don't get timestamps, but I run BSD stuff.
dhollinger has joined #ruby
matp has quit [Remote host closed the connection]
<eam> the kernel would need to record the time, which didn't used to be done. I think linux started doing it in 3.x maybe?
enterprisey has joined #ruby
<eam> iirc it's an offset rather than a timestamp, dmesg can convert that when displaying them
MrBusiness2 has joined #ruby
<bougyman> hrm, i' haven't even checked.
<Nilium> Pretty sure that's right.
<bougyman> does dmesg still work on journald/systemd infected systems?
<eam> bougyman: yes
<bougyman> eam: cool.
<Nilium> I think it'd have to, but I could be wrong.
<eam> dmesg has to log to the kernel ring buffer before time is established
<bougyman> but the `dmesg` command can inject the proper time.
<Mirubiri> xD
<eam> yeah it'll do math on now - offset
<Nilium> Totally haven't had the time to learn how to use systemd
<Nilium> I really ought to.
<Mirubiri> bougyman: you are in love with systemd
<eam> I'm kinda hoping it'll just die off
<bougyman> I know how to use it.
<bougyman> doesn't make me want to.
dhollinger has quit [Client Quit]
<bougyman> I've been runitted since ~2000
<bougyman> I didn't need a new init.
<Nilium> Yeah. I don't want to use it. I just see it as something I'll inevitably need to do.
<bougyman> I just needed them not to infect the system so much that runit can't be pid1.
MrBusiness3 has joined #ruby
<eam> bougyman: runit 4 life
<bougyman> eam: then why aren't you on void linux yet?
<eam> that's how we're shielding ourselves from the systemd brain damage
<Nilium> runit's nice. sk6 is on my list of things to fiddle with.
<eam> bougyman: I need RHEL for various enterprise crap
<bougyman> s6.
<bougyman> eam: I have RHEL runitted.
<Nilium> Yeah, that.
<bougyman> well, up through 6
<bougyman> not 7.
<bougyman> 7 got infected.
<eam> right
<Nilium> Keep mentally adding the k 'cause of skarnet
<bougyman> s6 got taken over by the docker crows.
<bougyman> *crowd.
MrBusiness has quit [Ping timeout: 258 seconds]
dhollinger has joined #ruby
<Nilium> Well, guess it's dead to me now.
<eam> brb in 2h, train time
<bougyman> it went from something simple to something convoluted and spread all over creation.
<bougyman> even laurent still says runit is the simplest complete init system avail.
<Nilium> We actually use runit with docker at work, but that feels wrong.
<bougyman> s6 tries to add helpers and then the whole execlineb mentality.
<bougyman> I initially thought execlineb was cool.
zacts has joined #ruby
<bougyman> but there are a lot of drawback of putting everyting into ARGV
<Nilium> I mostly just like the lack of things to do with runit.
MrBusiness2 has quit [Ping timeout: 272 seconds]
<bougyman> I just can't give up the ease of debugging.
Madper has quit [Remote host closed the connection]
<Nilium> I could probably also live with openrc, but haven't actually used it.
<bougyman> Customer: "My service is broken" Me: cd /servic/<brokenshit>; sv d ./; ./run
<Mirubiri> so bougyman is runit the natural step after sysvinit?
<bougyman> or tail /service/<brokenshit>/log/current
harfangk has joined #ruby
<Nilium> I'm at least OK with rc scripts on FreeBSD, so I just assume I'd get along fine with OpenRC.
<bougyman> probably the tail first.
<bougyman> but the ./run is the most important debugging tool.
<bougyman> you see the view of the process startup just as the supervisor sees it.
<Nilium> I don't think I've ever had to actually write any complicated run scripts.
<bougyman> and you can view the *everything* of a system with tail /service/*/log/current if you choose. but you don't every have to tail /var/log/syslog|grep <myservice>
<Nilium> Tends to just be maybe set an environment variable and then exec.
<bougyman> i've got some pretty hairy run scripts, but they're the serious minority
<bougyman> most are 1-3 lines.
<bougyman> the plurality are just exec chpst ./env <process>
cevett has quit [Read error: Connection reset by peer]
<bougyman> chpst -e, that is.
cevett has joined #ruby
<bougyman> Nilium: why u set env vars instead of -e ./env ?
<Nilium> Is the env actually doing anything there?
<Nilium> Oh wait, -e
<bougyman> yes.
<Nilium> Ignore me.
<bougyman> every file in ./env sets an envvar.
<bougyman> np, I messed up on the command.
<Nilium> That's pretty much what I'm referring to.
beilabs has joined #ruby
<bougyman> for ruby stuff, we have the rvm env setup at the top (1-2 lines)
<bougyman> I hear a lot of people say they have rvm nightmares in production.
arescorpio has quit [Quit: Leaving.]
<bougyman> I just assume they don't use runit.
<bougyman> we've never had an issue.
<Nilium> I don't think we have anything running ruby like that, but it's been handy, unfortunately, for running php.
<bougyman> it's handy for many things.
<bougyman> I had a greybeard at the job who hated when I brought runit in.
<bougyman> he often said I used it as a hammer looking for a nail.
<bougyman> he's a believer now.
<Nilium> PHP has this unfortunate tendency to ruin itself on a regular basis. runit makes that mostly not an issue.
<bougyman> he wrote about 400 LoC with locks and mechanisms to make sure his script didn't run more than once at a time.
<bougyman> I removed it all and moved it into runit supervision.
<Nilium> I was just glad when I replaced supervisord with runit.
<Nilium> Really did not like supervisord...
<bougyman> i've never used it.
zacts has quit [Read error: Connection reset by peer]
<bougyman> daemontools, runit, and s6
<bougyman> and of course sysV and systemd.
memorasus1 has joined #ruby
<Nilium> It's some Python thing, if I remember right. Only understands its own config files, so trying to make it do things the way you want is tricky.
<bougyman> of them all, sysV is the least capable, but I hate systemd most.
<bougyman> dinner time 4 me
zacts has joined #ruby
<Nilium> Always a good idea.
<Mirubiri> a good book for learning about Linux Admin?
<Mirubiri> I'm curious now :\
<Nilium> No idea. I'm not a sysadmin, I just occasionally do things.
Ropeney has joined #ruby
<Mirubiri> more occasionally in my case
<Mirubiri> xD
<Talltree> sometimes i think you get some backlash for just doing this as a hobby for now
<Mirubiri> but not having a solid foundation in Linux Admin is a huge source of problems
<Talltree> as i try to learn ruby and rails and everything in my free time to try to get into the field at a later piont..
<Nilium> I think most of what I learned was partly using slackware growing up and partly just out of necessity for work.
memorasus has quit [Ping timeout: 250 seconds]
memorasus1 is now known as memorasus
<Nilium> And the slackware stuff would be the smaller part of that.
<Mirubiri> Nilium: The first time I used linux at work was because Rails
djbkd has quit [Quit: My people need me...]
<Mirubiri> before that it was only a little hobby for me
mattwashere has joined #ruby
<Mirubiri> breaking distros and reinstall i mean...
<Mirubiri> the virtualization arrived and i was happier
LoneHermit has joined #ruby
<Talltree> i dunno how many times i reset my VM to get gentoo running...
<Nilium> I guess you could go read the FreeBSD handbook or something if you wanted to learn some stuff, but that's obviously BSD and not Linux. Gentoo's probably still a good distro to learn things from just by doing a stage 1 or 2 install, but I don't know if they still do that.
chipotle has quit [Quit: cheerio]
<Nilium> Don't know. I don't know what to suggest for learning things other than immersion.
harfangk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mirubiri> Amazon will have the answer
<Talltree> arch has pretty much the same install
<Talltree> as gentoo
<Talltree> much father because its not compiling everything
<Talltree> *faster
<Mirubiri> I'm downloading void right now
Almoullim has quit [Quit: WeeChat 1.5]
<Nilium> If Abebooks is available in your country, you might want to try that.
<Talltree> i never got BSD stuff, too complicated not enough profit afaik
<Nilium> I think it tends to be simpler.
<Nilium> Simple, well-documented, very clean
<Nilium> It's kind of like what Slackware was to me.
<Mirubiri> abebooks ok
<Talltree> i'm trying around with fedora right now, but the only difference is the package manager i guess
<Talltree> so its not really difficult
meinside has joined #ruby
<Talltree> from debian to fedora
<Mirubiri> I don't think linux administration is much diferent among different linux flavors
<Talltree> at home arch is just amazing...
<Talltree> i wish there was something like i3 for windows
zdman135 has joined #ruby
<Talltree> i just seem to be too stupid to configure ntp properly :D
harfangk has joined #ruby
SilverKey has joined #ruby
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
blackmesa has joined #ruby
beilabs has quit [Ping timeout: 276 seconds]
macsteps has joined #ruby
nankyokusei has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
nobitanobi has joined #ruby
abhinavmehta has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
voodoofish4301 has quit [Ping timeout: 272 seconds]
abhinavmehta has quit [Client Quit]
voodoofish4301 has joined #ruby
matp has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
macsteps has quit [Remote host closed the connection]
JesseH has joined #ruby
<zacts> Nilium: I like Slackware
<Nilium> Most people who've used Slackware like Slackware, but from a distance because it's 2016 now.
jlhg has joined #ruby
<zacts> Nilium: yeah, but 14.2 just got released
<Nilium> Really?
<Nilium> I might actually give that a go
<Nilium> I'd just about written it off as dead after so long
<zacts> yeah
killerkamel has joined #ruby
<Talltree> lol
LoneHermit has quit [Ping timeout: 264 seconds]
<Talltree> i thought slackware was a term meaning just bad software, someone slacked
<Talltree> but its actually a distro....
<Nilium> It's one of the oldest.
<Nilium> People make jokes about Gentoo because they forget to make jokes about Slackware.
<Talltree> part of it is because of envy :D
<zacts> so at what point should one be concerned with OOP design patterns?
<al2o3-cr> i used slackware once. think it was backtrack 3
<Talltree> what GUI ships with slackware?
aryaching has quit [Ping timeout: 272 seconds]
<Talltree> or does it even ship any?
<Talltree> 2.6 gb image seems huge
aryaching has joined #ruby
<Nilium> I mean, in terms of what it _ships_ with, xfce, gnome, KDE, I think..
KnownSyntax_ has quit [Quit: Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is]
<Nilium> Pretty sure fluxbox made it in by at least 2005 but it's been a while since I cared.
angelixd_ has quit [Remote host closed the connection]
hostess has quit [Remote host closed the connection]
Rodya_ has joined #ruby
SilverKey has quit [Quit: Cheerio!]
astrobun_ has joined #ruby
rideh has quit [Remote host closed the connection]
Canucktux has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
macsteps has joined #ruby
Coldblackice has joined #ruby
<Talltree> what about GNU, read about gNewSense and that seems pretty unusable
jenrzzz has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
beilabs has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
nando293921 has joined #ruby
djbkd has joined #ruby
macsteps has quit [Remote host closed the connection]
<Nilium> What about what?
mostlybadfly has joined #ruby
<zacts> Talltree: for fsf distros there is one I'm personally interested in that is Slackware-esque
<zacts> but it's in development
pawnbox has quit [Ping timeout: 258 seconds]
nando293921 has quit [Ping timeout: 272 seconds]
<Mirubiri> zacts: now
eprasad has joined #ruby
<Mirubiri> you have to know design patterns
harfangk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mirubiri> and i'm not saying you have to use it everywhere
zacts has quit [Read error: Connection reset by peer]
lnx_ has quit [Remote host closed the connection]
ullu has joined #ruby
djbkd has quit [Quit: Leaving...]
rideh has joined #ruby
pdoherty has joined #ruby
djbkd has joined #ruby
<Talltree> Mirubiri: i dont really get what you mean by that
<Talltree> rails follows conventions over configuration
nobitanobi has quit [Read error: No route to host]
<Mirubiri> I'm saying that being a kind of design patterns taliban is not good for your code
rodfersou|afk has quit [Quit: leaving]
<Talltree> so isnt anything you do in rails automaticly OOP ?
<Talltree> or, rather close to it
<Mirubiri> Talltree no
<Mirubiri> I mean
<Talltree> then i'm sure i produce the most messiest sh't ever
<Talltree> :D
<Mirubiri> that is not a reason to say you did a good oop design
<Talltree> idk, have to read more about that i suppose
ullu has quit [Ping timeout: 260 seconds]
<Mirubiri> you can develop in any strict object oriented language
<Mirubiri> but it doesn't mean you do good oop designs
<elomatreb> Rubys libraries encourage good design, I have seen way less *terrible* code in Ruby than in other languages
<Mirubiri> it only means that you are working with an OOP language
hostess has joined #ruby
<Mirubiri> elomatreb: it depends, but yeah the ruby community likes good code desing and strieve for it
skade has joined #ruby
pdoherty has quit [Ping timeout: 258 seconds]
<Mirubiri> I have just finish reading Sandy Metz new beta book
<Mirubiri> and its great
k3rn31 has joined #ruby
<Mirubiri> I recommend it
danman has quit [Quit: danman]
<Mirubiri> both of them
zdman135 has quit [Quit: Leaving...]
nando293921 has joined #ruby
harfangk has joined #ruby
yoongkan_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Coldblackice has quit []
Miron has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacts has joined #ruby
sulky_ has quit [Ping timeout: 260 seconds]
yoongkan_ has quit [Ping timeout: 240 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
Miron has joined #ruby
sulky_ has joined #ruby
<zacts> hi
<Mirubiri> hi
nertzy has quit [Quit: Leaving]
vdamewood has quit [Quit: Life beckons.]
<zacts> so what will design patterns actually help me with
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<zacts> like if I read poodr, what would deisgn patterns add to this?
madsa has quit [Ping timeout: 240 seconds]
<Mirubiri> zacts design patterns help you to organize your code better and to reach higher levels of abstraction
<elomatreb> zacts: If you're just building small scripts/applications, not so much. But once you build large applications and/or work with other devs, they're invaluable
<Mirubiri> generally
blackmesa has joined #ruby
<zacts> elomatreb: so like do rails apps often utilize design patterns?
<Mirubiri> zacts: well done ones yes
<zacts> cool
<zacts> ok
<zacts> that gives me an idea
<zacts> I'm not at that point yet, but I'll get there probably after learning some rails
<elomatreb> zacts: One of the benefits of Rails is that it gives you a standardized set of design patterns to build your application
GNUYawk has joined #ruby
<elomatreb> Splitting your app into Models, Views, and Controllers is one for example
<elomatreb> albeit a very basic one
<zacts> ok
MrBusiness2 has joined #ruby
<Mirubiri> yes, but you can mess it all, because your are kind of filling that patterns with your sh...
<Mirubiri> that's the trap
nando293921 has joined #ruby
<prooftechnique> Design patterns don't make code good, they're just recognized ways to solve problems. If your problem fits a pattern nicely, you can get a lot of expressiveness and reusability, but if you force it then you'll just end up with a mess, anyway
Miron has quit [Ping timeout: 250 seconds]
<Mirubiri> yeah, they are a doubled edged weapon...
pawnbox has joined #ruby
<elomatreb> Keep in mind that there isn't a limited set of patterns that some ancient programmer invented
<Radar> rly
MrBusiness3 has quit [Ping timeout: 250 seconds]
nertzy has joined #ruby
<zacts> kind of like how knowing all the rules of English grammar won't make you a good writer of English
blackmesa has quit [Ping timeout: 276 seconds]
sulky_ has quit [Remote host closed the connection]
<Mirubiri> true
nando293921 has quit [Read error: Connection reset by peer]
<Nilium> My English degree is evidence of this.
<zacts> but grammar can be good to know
cyphase has quit [Ping timeout: 244 seconds]
Miron has joined #ruby
sulky_ has joined #ruby
nando293921 has joined #ruby
<Ropeney> "can be good"
<zacts> Nilium: quick what is grammar rule #347?
<Nilium> Always be beeping.
<zacts> lol
jaguarmagenta has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
UserInNeed has quit [Ping timeout: 258 seconds]
alfiemax has quit [Ping timeout: 272 seconds]
<Nilium> Wait, no, that's how to get a job.
dvinciguerra_ has joined #ruby
<elomatreb> Sir, you are in violation of grammar rule #275. Please step away from the keyboard
<Mirubiri> I have to improve my english too
<elomatreb> That's what I've been doing wrong. Not enough socks!
cyphase has joined #ruby
<Nilium> It's so easy to overlook.
djbkd_ has joined #ruby
nando293921 has quit [Ping timeout: 258 seconds]
UserInNeed has joined #ruby
<Talltree> there is a gem that checks rails code for non "normal" designs and reports mishaps
<Talltree> dunno anymore what its called
Miron has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 250 seconds]
<Nilium> Gasoline and matches?
<zacts> I'm going to add a gem to code ruby in ancient "attic" Greek
mattwashere has quit [Remote host closed the connection]
<zacts> using UTF-8
<Mirubiri> Talltree: an static code analyzer?
mattwashere has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
sulky_ has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
gix has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
mattwashere has quit [Ping timeout: 240 seconds]
Miron has joined #ruby
mattwashere has joined #ruby
craigp has quit [Ping timeout: 258 seconds]
csaunders has quit [Quit: later tater]
dvinciguerra_ has quit [Ping timeout: 258 seconds]
<Mirubiri> that's one
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mirubiri> but if you were talking about code quality...
sulky has joined #ruby
<Mirubiri> Flog
mattwashere has quit [Ping timeout: 260 seconds]
k3rn31 has joined #ruby
saneax_AFK is now known as saneax
skade has joined #ruby
<Mirubiri> I don't like complexity metrix, they often lie
skade has quit [Excess Flood]
Rickmasta has joined #ruby
araujo_ has quit [Quit: Leaving]
LoneHermit has joined #ruby
Madplatypus has joined #ruby
kitikonti has joined #ruby
saneax is now known as saneax_AFK
tjohnson has quit [Quit: Connection closed for inactivity]
nando293921 has joined #ruby
danman has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
kareeoleez has joined #ruby
Rickmasta has joined #ruby
astrobun_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
kitikonti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
Rodya_ has joined #ruby
Coldblackice has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Remote host closed the connection]
csaunders has joined #ruby
prooftechnique has quit [Quit: ZNC http://znc.in]
prooftechnique has joined #ruby
axisys has quit [Ping timeout: 250 seconds]
tmtwd has joined #ruby
Coldblackice has quit []
nankyokusei has joined #ruby
blackmesa has joined #ruby
Coldblackice has joined #ruby
lunaelli has quit [Ping timeout: 272 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
poodle has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
bastelfreak has quit [K-Lined]
poodle has quit [Client Quit]
alfiemax has joined #ruby
devbug has joined #ruby
skade has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: Leaving...]
Dimik-- has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
yardenbar has joined #ruby
zacts has quit [Ping timeout: 272 seconds]
<dhollinger> I must be blind in my searches. Is there a way in a Gemfile to ONLY install gems if ruby version is >= 2.0
xall_ has quit [Ping timeout: 264 seconds]
<Ropeney> dhollinger: second google result http://bundler.io/v1.5/gemfile.html
<Ropeney> oh greater or equal then?
Azrael has quit [Ping timeout: 244 seconds]
<Ropeney> dhollinger, looks like you can't https://github.com/bundler/bundler/issues/2845
danman has quit [Quit: danman]
yfeldblum has quit [Remote host closed the connection]
craigp has joined #ruby
<elomatreb> Do you want to install some specific gem if your version requirement is meant and all the other gems regardless of that requirement?
acchan has joined #ruby
madsa has joined #ruby
madsa has quit [Max SendQ exceeded]
<elomatreb> Or do you want bundler to fail instantly if your version requirement is not met?
madsa has joined #ruby
prooftechnique has left #ruby ["ERC (IRC client for Emacs 25.0.95.1)"]
danman has joined #ruby
danman has quit [Client Quit]
<dhollinger> elomatreb: I have a pair of gems that I only use for deployments that aren't available in ruby 1.9 (one of the test environments). So I really don't need them installed during a travis build. I think I'l just use a bundler group
skade has joined #ruby
nando293921 has quit [Ping timeout: 272 seconds]
axisys has joined #ruby
<elomatreb> dhollinger: Maybe useful in that case: http://bundler.io/v1.3/man/gemfile.5.html#PLATFORMS-platforms-
Rodya_ has quit [Remote host closed the connection]
moeabdol has joined #ruby
<elomatreb> dhollinger: But I have to ask, why are you using these old Ruby versions? Neither 1.9, nor 2.0 still receive any support
<dhollinger> It's for puppet module support
kareeoleez has quit [Remote host closed the connection]
<dhollinger> Puppet 3.x still uses ruby 1.9 (as do RHEL based linux systems)
<dhollinger> Otherwise, I'd love to drop Ruby 1.9 in my tests, but unfortunately too many people still use older versions of puppet
<elomatreb> Well, in that case: Good luck
xall_ has joined #ruby
<dhollinger> Got it
<acchan> anyone got a clue of what I'm doing wrong here: http://pastebin.com/ahL1agHR
<ruby[bot]> acchan: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/328766c74b20733faafac476f3a7a5fc
<ruby[bot]> acchan: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<dhollinger> created a group in Gemfile and put the gems in that group. Modified Rakefile to only load those libraries if they are defined. Tests run in 1.9.3 now
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<acchan> getting undenfined method even though it's defined
enterprisey has quit [Remote host closed the connection]
<acchan> this is from the Rails course on Coursera
aupadhye has joined #ruby
zacts has joined #ruby
skade has quit [Read error: Connection reset by peer]
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
ledestin has joined #ruby
LoneHermit has joined #ruby
eprasad has quit [Quit: Leaving]
beilabs has quit [Ping timeout: 260 seconds]
dunpeal has quit [Ping timeout: 250 seconds]
jackjackdripper has joined #ruby
yoongkan_ has joined #ruby
skade has joined #ruby
voodoofish4301 has quit [Ping timeout: 258 seconds]
voodoofish4302 has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yoongkan_ has quit [Ping timeout: 240 seconds]
saneax_AFK is now known as saneax
madsa has quit [Ping timeout: 240 seconds]
<Mirubiri> acchan: could you move the method definition before everything else and try again?
<Mirubiri> after the include...
nizzlefritz has quit [Ping timeout: 264 seconds]
<Mirubiri> oh acchan don't try that
<Mirubiri> you are defining a module named Coursera somewhere and trying to access to the method #for in that module
<Mirubiri> check your namespaces
<Mirubiri> try calling it in this way ::Coursera.for()
Mirubiri has quit [Quit: Mirubiri]
daffy_duck has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Sucks has quit [Remote host closed the connection]
eljimbo has quit [Quit: This computer has gone to sleep]
skade has quit [Ping timeout: 250 seconds]
asianMike has joined #ruby
nerium has joined #ruby
skade has joined #ruby
daffy_duck has joined #ruby
l4v2 has quit [Quit: l4v2]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 244 seconds]
dminuoso has joined #ruby
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
<shevy> zacts hah, I also like slackware. In fact I have it installed right now... though I compile from source via ruby scripts
djbkd has joined #ruby
grenierm_ has joined #ruby
desmondhume has joined #ruby
djbkd has quit [Ping timeout: 258 seconds]
TheWhip has joined #ruby
asianMike has quit [Remote host closed the connection]
Moosashi has joined #ruby
kareeoleez has joined #ruby
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
kareeoleez has quit [Remote host closed the connection]
jpterry has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
SilverKey has joined #ruby
renier has quit [Ping timeout: 276 seconds]
jpterry has joined #ruby
andikr has joined #ruby
Contigi777 has joined #ruby
Xiti` has joined #ruby
kareeoleez is now known as mpines
cliluw has quit [Ping timeout: 250 seconds]
mpines_ has joined #ruby
Devalo has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 250 seconds]
Contigi has quit [Ping timeout: 250 seconds]
Dimik-- has joined #ruby
cliluw has joined #ruby
mpines has quit [Disconnected by services]
Devalo has joined #ruby
mpines_ is now known as mpines
Cohedrin has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
SilverKey has quit [Quit: Halted.]
tmtwd has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
renier has joined #ruby
LoneHermit has quit [Read error: Connection reset by peer]
abhinavmehta has joined #ruby
LoneHermit has joined #ruby
mpines_ has joined #ruby
davedev24 has joined #ruby
josh_ has joined #ruby
xall_ has quit [Ping timeout: 276 seconds]
agit0 has joined #ruby
mpines has quit [Ping timeout: 240 seconds]
renier_ has joined #ruby
grenierm_ has quit [Ping timeout: 250 seconds]
renier has quit [Ping timeout: 244 seconds]
blazo has joined #ruby
aufi_ has joined #ruby
dminuoso has quit [Ping timeout: 272 seconds]
yoongkan_ has joined #ruby
djbkd has joined #ruby
RegulationD has joined #ruby
dminuoso has joined #ruby
blazo has quit [Client Quit]
conta has joined #ruby
tmtwd has joined #ruby
mpines_ has quit [Remote host closed the connection]
mpines has joined #ruby
dminuoso has quit [Read error: Connection reset by peer]
yoongkan_ has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
grenierm_ has joined #ruby
xall_ has joined #ruby
skade has quit [Ping timeout: 272 seconds]
davedev24 has quit []
Devalo has quit [Remote host closed the connection]
tildes has joined #ruby
Devalo has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
nankyokusei has joined #ruby
dminuoso has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
finnnnnnnnnnn has joined #ruby
skade has joined #ruby
yardenbar has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 264 seconds]
dminuoso has quit [Remote host closed the connection]
skade has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
LoneHermit has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
dkam has joined #ruby
shay- has joined #ruby
jackdan has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
Paradox has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Ping timeout: 240 seconds]
dminuoso has joined #ruby
<shevy> hmm I have some password protected .rar files
umdstu has quit [Read error: Connection reset by peer]
<shevy> I know the password, so I can manually open them, but there are many of them, is there a way to batch-extract them via ruby? if I could feed in the password
amclain has quit [Quit: Leaving]
k3rn31 has quit [Quit: Computer has gone to sleep.]
umdstu has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
vuoto has joined #ruby
firstdayonthejob has joined #ruby
c0mrad3 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<shevy> ah
desmondhume has quit []
<shevy> the help option shows it
zacts has quit [Ping timeout: 272 seconds]
Hounddog has joined #ruby
skade has joined #ruby
surrounder has joined #ruby
cd-rum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 240 seconds]
xall_ has quit [Ping timeout: 260 seconds]
<shevy> 123.digits
skade has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
xall_ has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
s1kx has joined #ruby
Axy has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
ullu has joined #ruby
eprasad has joined #ruby
Macaveli has joined #ruby
<dminuoso> acchan: !rubyonrails
<dminuoso> acchan: ?rubyonrails
<dminuoso> ?rubyonrails
<ruby[bot]> dminuoso: I don't know anything about rubyonrails
<dminuoso> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dminuoso> o_o
atom___ has joined #ruby
ullu has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
zacts has joined #ruby
beilabs has joined #ruby
nerium has quit [Remote host closed the connection]
dunpeal has joined #ruby
harfangk has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
LoneHermit has joined #ruby
tercenya has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
tercenya has joined #ruby
vondruch has joined #ruby
<zacts> shevy: yeah slackware is pretty snazzy
dunpeal has quit [Ping timeout: 276 seconds]
pawnbox has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
k3rn31 has joined #ruby
pawnbox has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tercenya has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GNUYawk has quit [Quit: GNUYawk]
genpaku has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 260 seconds]
genpaku has joined #ruby
yokel has joined #ruby
djbkd has quit [Remote host closed the connection]
finnnnnnnnnnn has joined #ruby
shay- has left #ruby [#ruby]
<shevy> \o/
<shevy> good old virtues
<shevy> like to not get into your way
skade has joined #ruby
<surrounder> yay slackware
codecop has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
tercenya has joined #ruby
jenrzzz has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has quit [Ping timeout: 258 seconds]
multi_io_ has quit [Ping timeout: 276 seconds]
multi_io has joined #ruby
toretore has joined #ruby
TheWhip has quit [Remote host closed the connection]
ec0 has joined #ruby
Skelz0r has quit [Ping timeout: 272 seconds]
bastelfreak1 has joined #ruby
bastelfreak1 is now known as bastelfreak
Contigi777 has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
mark_66 has joined #ruby
yfeldblum has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
xue has quit [Remote host closed the connection]
josh_ has quit [Quit: Leaving]
devbug has quit [Quit: ZZZzzz…]
blackmesa has quit [Ping timeout: 276 seconds]
Dimik-- has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
vuoto has quit [Ping timeout: 260 seconds]
renier_ has quit [Ping timeout: 264 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
Guest00-ru has joined #ruby
moeabdol has joined #ruby
drahosj_ has joined #ruby
watersoul_ has joined #ruby
elaptics`away is now known as elaptics
nhhc has quit [Ping timeout: 258 seconds]
swills_ has joined #ruby
bqscott has quit [Ping timeout: 244 seconds]
ricer2 has quit [Ping timeout: 244 seconds]
skade has quit [Ping timeout: 276 seconds]
ricer2 has joined #ruby
Dry_Lips has quit [Ping timeout: 244 seconds]
redondos has quit [Ping timeout: 244 seconds]
blaxter has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
atom___ has quit [Ping timeout: 244 seconds]
surrounder has quit [Ping timeout: 244 seconds]
Guest-ru has quit [Ping timeout: 244 seconds]
thoraxe has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 244 seconds]
watersoul has quit [Ping timeout: 244 seconds]
blackwell has quit [Ping timeout: 244 seconds]
jolamb has quit [Ping timeout: 244 seconds]
bfrizzle has quit [Ping timeout: 244 seconds]
hfp_work has quit [Ping timeout: 244 seconds]
scottalan has quit [Ping timeout: 244 seconds]
slash_nick has quit [Ping timeout: 244 seconds]
yosafbridge` has quit [Ping timeout: 244 seconds]
ozzloy has quit [Ping timeout: 244 seconds]
justinmrkva has quit [Ping timeout: 244 seconds]
ec\ has quit [Ping timeout: 244 seconds]
ericwood has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
yosafbridge has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
sysanthrope has quit [Read error: Connection reset by peer]
douglascorrea has quit [Read error: Connection reset by peer]
<zacts> 14.1 -> 14.2 timeframe really shows how well they slack, but 14.2 is stable now
cZk has quit [Ping timeout: 244 seconds]
swills has quit [Ping timeout: 244 seconds]
drahosj has quit [Ping timeout: 244 seconds]
phrozen77_ has quit [Ping timeout: 244 seconds]
Kuukunen has quit [Ping timeout: 244 seconds]
[reed] has quit [Ping timeout: 244 seconds]
ruskie has quit [Ping timeout: 244 seconds]
jrod has quit [Ping timeout: 244 seconds]
Kuukunen has joined #ruby
surrounder has joined #ruby
jenrzzz has joined #ruby
M-Technic has quit [Ping timeout: 244 seconds]
ericwood has joined #ruby
atom___ has joined #ruby
ec\ has joined #ruby
douglascorrea has joined #ruby
scottalan has joined #ruby
blackwell has joined #ruby
thoraxe has joined #ruby
ur5us has quit [Remote host closed the connection]
jolamb has joined #ruby
redondos has joined #ruby
bqscott has joined #ruby
hfp_work has joined #ruby
sysanthrope has joined #ruby
justinmrkva has joined #ruby
Trynemjoel has joined #ruby
M-Technic has joined #ruby
ur5us has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
nhhc has joined #ruby
[reed] has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
Rasi is now known as Neid
Neid is now known as Rasi
jrod has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
phrozen77 has joined #ruby
cZk has joined #ruby
astrobun_ has quit [Remote host closed the connection]
skade has joined #ruby
slash_nick has joined #ruby
bfrizzle has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
armyriad has quit [Ping timeout: 250 seconds]
biberu has joined #ruby
pawnbox has joined #ruby
dminuoso_ has joined #ruby
armyriad has joined #ruby
troulouliou_div2 has joined #ruby
skade has quit [Ping timeout: 272 seconds]
ziyan_ has joined #ruby
TheWhip has joined #ruby
roshanavnad_ has joined #ruby
dminuoso has quit [Ping timeout: 260 seconds]
roshanavand has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
CloCkWeRX has joined #ruby
<ziyan_> hello... i got a question about making gems. Now in java we got namespacing like com.jdeen.blah-blah-black-sheep for a project. But in Ruby packages it seems to be just 'blah-blah-black-sheep'. Is it a bad idea if I do a namespace. For example a gem like `jdeen-blah_blah_black_sheep` vs `blah_blah_black_sheep` is it a bad idea?
<ziyan_> Is there a possibility of conflict?
armyriad has quit [Ping timeout: 250 seconds]
<ziyan_> For example can a file in one gem conflict with another (probably not a practical issue, just curious)
RegulationD has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
<shevy> ziyan_ this is in general how ruby works
conta has quit [Remote host closed the connection]
<shevy> whoever is the first to define a top-level constant, such as a module or a class, wins in the sense of defining that namespace
<shevy> like if someone adds: module Configuration; end and then in your code you try to do: class Configuration; end
conta has joined #ruby
<shevy> ruby will issue an error
k3rn31 has quit [Quit: Computer has gone to sleep.]
<shevy> like "TypeError: Foo is not a class"
<ziyan_> cool, thanks
<toretore> ziyan_: gem names are all in the same namespace, and their names determine the namespace used in the code, thus if your gem name is unique, it's likely that your code namespacing will also be unique
<shevy> you can get rid of it perhaps if you really need to, like via: Object.send :remove_const, :Foo
<toretore> ziyan_: http://guides.rubygems.org/name-your-gem/ for naming practices
mrgrieves has joined #ruby
LoneHermit has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
astrobun_ has joined #ruby
<ziyan_> toretore: thanks, ya was reading the guides and thus wondering. thanks for the info.
<ziyan_> shevy: thanks, noted, hopefully not needing to use
craigp has quit [Ping timeout: 260 seconds]
astrobun_ has quit [Remote host closed the connection]
Sammichmaker has quit [Ping timeout: 276 seconds]
astrobun_ has joined #ruby
craigp has joined #ruby
nankyokusei has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
astrobun_ has quit [Remote host closed the connection]
ruskie has joined #ruby
Moosashi has quit [Quit: Moosashi]
skade has joined #ruby
yardenbar has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
zacts has quit [Ping timeout: 250 seconds]
armyriad has joined #ruby
KaliLinuxGR has quit [Remote host closed the connection]
Moosashi has joined #ruby
Contigi has joined #ruby
skade has quit [Read error: Connection reset by peer]
KaliLinuxGR has joined #ruby
renier has joined #ruby
workmad3 has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
agit0 has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
armyriad has quit [Ping timeout: 240 seconds]
Moosashi has quit [Quit: Moosashi]
DoubleMalt has joined #ruby
A124 has quit [Quit: '']
Couch has joined #ruby
cyphase has joined #ruby
theRealAlexz has quit [Ping timeout: 244 seconds]
pandaant has joined #ruby
armyriad has joined #ruby
marr has joined #ruby
zacts has joined #ruby
theRealAlexz has joined #ruby
theRealAlexz has quit [Changing host]
theRealAlexz has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
pawnbox has quit [Remote host closed the connection]
Amnez777 has quit [Ping timeout: 264 seconds]
theRealAlexz has quit [Ping timeout: 240 seconds]
theRealAlexz has joined #ruby
theRealAlexz has joined #ruby
theRealAlexz has quit [Changing host]
jlebrech has joined #ruby
aryaching has quit [Ping timeout: 276 seconds]
armyriad has joined #ruby
ICantCook has quit [Ping timeout: 258 seconds]
<jlebrech> I want to write a string to file and that file not be in git, is there an alternative ruby-ist way to gitignore that file?
vuoto has quit [Remote host closed the connection]
Snowy has joined #ruby
vuoto has joined #ruby
<jackdan> jlebrech: what do you mean with ruby-ist?
<jackdan> you just put the filename in gitignore
<jlebrech> yeah that's the simplest way :D
A124 has joined #ruby
tercenya has quit [Ping timeout: 258 seconds]
<dminuoso_> jlebrech: There is also int remove(const char *path)
<dminuoso_> Very useful feature to prevent files from appearing in git.
<jlebrech> for example theres TempFile, just wondering if there was something like tho
armyriad has quit [Ping timeout: 244 seconds]
elifoster has quit [Quit: sleep]
yardenbar has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
platzhirsch has joined #ruby
pawnbox has joined #ruby
<jhass> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
vuoto has joined #ruby
tercenya has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
armyriad has joined #ruby
dunpeal has joined #ruby
lxsameer has joined #ruby
vuoto has quit [Read error: Connection reset by peer]
dunpeal has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 276 seconds]
LiquidIn1ect has quit [Ping timeout: 252 seconds]
jackjackdripper has joined #ruby
roamingdog has joined #ruby
pawnbox has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
LiquidInsect has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
andikr has quit [Remote host closed the connection]
sepp2k has joined #ruby
beilabs has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
jackdan has quit [Quit: leaving]
dionysus69 has quit [Remote host closed the connection]
fanantoxa has joined #ruby
dionysus69 has joined #ruby
pawnbox has joined #ruby
epochwolf has quit [Quit: Uh no...]
<shevy> awww
<shevy> I wanna do: class 1980; end
<shevy> guess I prefix with Y ... still ugly
andikr has joined #ruby
<ytti> win 10
harfangk has joined #ruby
tercenya has quit [Ping timeout: 264 seconds]
c355e3b has joined #ruby
Wildfyr has joined #ruby
Hyuk has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
tercenya has joined #ruby
mpines has quit [Ping timeout: 264 seconds]
beilabs has joined #ruby
harfangk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
harfangk has joined #ruby
benlieb has joined #ruby
bronson has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
bronson has joined #ruby
tercenya has quit [Ping timeout: 252 seconds]
kedare has joined #ruby
Rickmasta has joined #ruby
epochwolf has joined #ruby
LoneHerm_ has quit [Ping timeout: 276 seconds]
ledestin has joined #ruby
yfeldblum has joined #ruby
tercenya has joined #ruby
bkxd has joined #ruby
tercenya has quit [Ping timeout: 240 seconds]
asianMike has joined #ruby
nhhc has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
skade has joined #ruby
asianMike has quit [Ping timeout: 276 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
tercenya has joined #ruby
yardenbar has joined #ruby
epitron has quit [Ping timeout: 240 seconds]
grenierm_ has quit [Quit: grenierm_]
Technodrome has joined #ruby
mpines has joined #ruby
nankyokusei has joined #ruby
moeabdol has joined #ruby
armyriad has joined #ruby
Qommand0r has quit [Quit: Exiting...]
epitron has joined #ruby
ec0 has quit [Ping timeout: 240 seconds]
moeabdol has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
Flipez has quit [Ping timeout: 240 seconds]
Qommand0r has joined #ruby
valeri_ufo has quit [Ping timeout: 260 seconds]
joconcepts has quit [Ping timeout: 272 seconds]
mc_fail_ has quit [Ping timeout: 240 seconds]
contradictioned has quit [Ping timeout: 264 seconds]
fanantoxa has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joconcepts has joined #ruby
mc_fail has joined #ruby
valeri_ufo has joined #ruby
Flipez has joined #ruby
CybrGhost has quit [Quit: Leaving]
machinewar has joined #ruby
contradictioned has joined #ruby
Wildfyr has quit [Ping timeout: 272 seconds]
rcs has quit [Quit: ZNC - http://znc.in]
craigp has quit [Ping timeout: 252 seconds]
Meeh_ has quit [Quit: No Ping reply in 180 seconds.]
Meeh has joined #ruby
codecop has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
colegatron_origi has joined #ruby
colegatron_origi has quit [Client Quit]
yardenbar has quit [Ping timeout: 276 seconds]
ICantCook has joined #ruby
ken_barber has joined #ruby
vuoto has joined #ruby
mdw has joined #ruby
yoongkan_ has joined #ruby
alfiemax has joined #ruby
pawnbox has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
yardenbar has joined #ruby
tercenya has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
ullu has joined #ruby
skade has quit [Read error: Connection reset by peer]
LoneHermit has joined #ruby
skade has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
skade has quit [Read error: Connection reset by peer]
oleksandriuzikov has joined #ruby
beilabs has quit [Ping timeout: 244 seconds]
ullu has quit [Ping timeout: 264 seconds]
yoongkan_ has quit [Read error: Connection reset by peer]
yoongkan_ has joined #ruby
tercenya has joined #ruby
dunpeal has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
hanmac has quit [Ping timeout: 272 seconds]
mpines is now known as pisoglenteez
rodfersou has joined #ruby
dunpeal has quit [Ping timeout: 272 seconds]
saneax is now known as saneax_AFK
mdw has quit [Quit: Sleeping Zzzzz]
koooge has quit [Quit: Leaving...]
Madplatypus has quit [Quit: Connection closed for inactivity]
tercenya has quit [Ping timeout: 264 seconds]
ullu has joined #ruby
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has quit [Read error: Connection reset by peer]
machinewar has quit []
roamingdog has joined #ruby
ThePendulum has joined #ruby
ThePendulum has left #ruby [#ruby]
ThePendulum has joined #ruby
ThePendulum has left #ruby [#ruby]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
moeabdol has joined #ruby
ken_barber has quit [Quit: ZNC - http://znc.in]
beilabs has joined #ruby
lacce has joined #ruby
tercenya has joined #ruby
mdw has joined #ruby
marr has quit [Ping timeout: 276 seconds]
mdw has quit [Max SendQ exceeded]
CybrGhost has joined #ruby
mdw has joined #ruby
sdothum has joined #ruby
mdw has quit [Max SendQ exceeded]
fanantoxa has joined #ruby
roamingdog has quit [Remote host closed the connection]
hanmac has joined #ruby
ldnunes has joined #ruby
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
ken_barber has joined #ruby
mdw has joined #ruby
oleksandriuzikov has quit [Quit: Leaving.]
beilabs has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
tercenya has quit [Ping timeout: 244 seconds]
yardenbar has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
deuterium has joined #ruby
danman has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
tercenya has joined #ruby
chip_ has joined #ruby
synthroid has joined #ruby
craigp has joined #ruby
ur5us has joined #ruby
angrybuzzy has joined #ruby
singalaut has quit [Quit: WeeChat 1.6-dev]
minimalism has quit [Quit: minimalism]
SegFaultAX has quit [Quit: ZNC - http://znc.in]
yfeldblum has quit [Ping timeout: 250 seconds]
Snowy has quit [Remote host closed the connection]
AgentVenom has joined #ruby
jenrzzz has joined #ruby
ullu has quit [Ping timeout: 260 seconds]
nhhc has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
maucar has joined #ruby
dunpeal has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
cd-rum has joined #ruby
ziyan_ has quit [Remote host closed the connection]
beilabs has quit [Remote host closed the connection]
cd-rum_ has joined #ruby
yoongkan_ has quit [Read error: Connection reset by peer]
yoongkan_ has joined #ruby
cd-rum has quit [Ping timeout: 264 seconds]
TheGreatA has joined #ruby
LoneHermit has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
danman has quit [Quit: danman]
pawnbox has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 240 seconds]
dunpeal has quit [Ping timeout: 260 seconds]
kab has joined #ruby
waxxy has joined #ruby
Rodya_ has joined #ruby
workmad3 has quit [Quit: Lost terminal]
RegulationD has joined #ruby
Rickmasta has joined #ruby
MrBusiness2 has quit [Ping timeout: 272 seconds]
ElFerna has joined #ruby
nertzy has quit [Quit: Leaving]
dunpeal has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby
ElFerna has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
MrBusiness2 has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
tulak has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
DaniG2k has joined #ruby
beilabs has joined #ruby
nankyokusei has joined #ruby
MrBusiness2 has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
tvw has joined #ruby
MrBusiness2 has joined #ruby
swills_ has quit [Remote host closed the connection]
mdw_ has joined #ruby
mdw_ has quit [Max SendQ exceeded]
mdw_ has joined #ruby
mdw has quit [Ping timeout: 240 seconds]
eljimbo has joined #ruby
hanwei_ has joined #ruby
roamingdog has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
<manveru> >> class X; define_method(:'1984'){ 1984 }; end; X.new.send('1984')
<ruby[bot]> manveru: # => 1984 (https://eval.in/610091)
nhhc has quit [Quit: Leaving]
<manveru> no need for the :, but still :)
kab has quit [Quit: Leaving]
hanwei_ has quit [Quit: Leaving...]
malconis has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
DaniG2k_ has joined #ruby
jlhg has quit [Quit: Connection closed for inactivity]
hanwei_ has joined #ruby
MrBusiness3 has joined #ruby
TheWhip has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 276 seconds]
MrBusiness2 has quit [Ping timeout: 258 seconds]
MrBusiness2 has joined #ruby
twinklerock has joined #ruby
twinklerock has quit [Read error: Connection reset by peer]
tildes has joined #ruby
twinklerock has joined #ruby
twinklerock has left #ruby [#ruby]
twinklerock has joined #ruby
hanwei_ has quit [Client Quit]
Mon_Ouie has joined #ruby
hanwei_ has joined #ruby
MrBusiness3 has quit [Ping timeout: 258 seconds]
tulak has quit [Remote host closed the connection]
angrybuzzy has quit [Quit: This computer has gone to sleep]
tulak has joined #ruby
griffindy has joined #ruby
benlieb has quit [Quit: benlieb]
ramortegui has joined #ruby
KCmetro has joined #ruby
hogetaro has quit [Quit: Leaving...]
jenrzzz has joined #ruby
ElFerna has joined #ruby
Snowy has joined #ruby
Rodya_ has joined #ruby
ElFerna has quit [Max SendQ exceeded]
hogetaro has joined #ruby
DaniG2k_ has quit [Quit: leaving]
karapetyan has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
strigonLeader has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
benlieb has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
benlieb has quit [Client Quit]
aegis3121 has joined #ruby
openstruct has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
tildes has quit [Ping timeout: 276 seconds]
moos3 has joined #ruby
angrybuzzy has joined #ruby
strigonLeader is now known as hierarch
hierarch is now known as strigonLeader
deadnull has joined #ruby
l4v2 has joined #ruby
strigonLeader has left #ruby ["Leaving"]
banisterfiend has joined #ruby
cd-rum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has joined #ruby
Karunamon|2 is now known as Karunamon
spectrum has joined #ruby
MrBusiness3 has joined #ruby
edwardly has quit [Ping timeout: 250 seconds]
mattwashere has joined #ruby
hanwei_ has quit [Quit: Leaving...]
hanwei_ has joined #ruby
hanwei_ has quit [Max SendQ exceeded]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
marr has joined #ruby
eprasad has quit [Quit: Leaving]
hanwei_ has joined #ruby
hanwei_ has quit [Max SendQ exceeded]
pisoglen_ has joined #ruby
MrBusiness2 has quit [Ping timeout: 258 seconds]
hanwei_ has joined #ruby
hanwei_ has quit [Max SendQ exceeded]
hk238 has joined #ruby
hanwei_ has joined #ruby
hanwei_ has quit [Max SendQ exceeded]
yoongkan_ has quit [Remote host closed the connection]
tercenya has quit [Ping timeout: 276 seconds]
hanwei_ has joined #ruby
hanwei_ has quit [Max SendQ exceeded]
xall_ has quit [Ping timeout: 272 seconds]
pisoglenteez has quit [Ping timeout: 244 seconds]
beilabs_ has joined #ruby
hanwei_ has joined #ruby
hanwei_ has quit [Max SendQ exceeded]
Rodya_ has joined #ruby
beilabs has quit [Ping timeout: 250 seconds]
pisoglen_ has quit [Ping timeout: 240 seconds]
pisoglenteez has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
moeabdol has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
fmcgeough has joined #ruby
pawnbox has quit [Remote host closed the connection]
tercenya has joined #ruby
SilverKey has joined #ruby
roamingdog has joined #ruby
pisoglenteez has quit [Ping timeout: 244 seconds]
tulak has quit [Remote host closed the connection]
roamingdog has quit [Ping timeout: 250 seconds]
tulak has joined #ruby
angrybuzzy has quit [Quit: This computer has gone to sleep]
Rodya_ has joined #ruby
pdoherty has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
pandaant has quit [Remote host closed the connection]
pisoglenteez has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
tulak has quit [Ping timeout: 250 seconds]
dminuoso_ has quit [Ping timeout: 250 seconds]
chip_ has quit [Ping timeout: 272 seconds]
deadnull has quit [Quit: Bye]
vuoto has joined #ruby
MrBusiness2 has joined #ruby
SilverKey has quit [Quit: Halted.]
TheMoonMaster has quit [Quit: Later!]
djbkd has joined #ruby
fanantoxa has quit [Ping timeout: 276 seconds]
MrBusiness3 has quit [Ping timeout: 272 seconds]
dminuoso has joined #ruby
zenlot6 has quit [Read error: Connection reset by peer]
MrBusiness3 has joined #ruby
zenlot6 has joined #ruby
MrBusiness2 has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
TheGreatA has quit [Read error: Connection reset by peer]
tildes has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
xall_ has joined #ruby
dvinciguerra_ has joined #ruby
openstruct has quit []
pawnbox has quit [Ping timeout: 240 seconds]
ElFerna has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
mark_66 has quit [Quit: Leaving.]
mark_66 has joined #ruby
MrBusiness2 has joined #ruby
MrBusiness3 has quit [Ping timeout: 272 seconds]
moeabdol has joined #ruby
TheWhip has joined #ruby
moeabdol1 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
oussama has joined #ruby
xall_ has quit [Ping timeout: 272 seconds]
pisoglenteez has quit [Read error: Connection reset by peer]
moos3 has quit [Quit: leaving]
swills_ has joined #ruby
pisoglenteez has joined #ruby
mdw has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
vuoto has quit [Remote host closed the connection]
tercenya has quit [Ping timeout: 272 seconds]
vuoto has joined #ruby
mdw_ has quit [Ping timeout: 244 seconds]
roshanavnad_ has quit [Quit: This computer has gone to sleep]
astrobun_ has joined #ruby
TheMoonMaster has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
oussama has quit [Remote host closed the connection]
tercenya has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
lunaelli has joined #ruby
armyriad has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
hwcomcn has joined #ruby
hwcomcn has quit [Max SendQ exceeded]
pisoglenteez has quit []
nerium has joined #ruby
hwcomcn has joined #ruby
hwcomcn has quit [Max SendQ exceeded]
hwcomcn has joined #ruby
hwcomcn has quit [Max SendQ exceeded]
ixti has joined #ruby
ixti has quit [Client Quit]
CloCkWeRX has joined #ruby
<nerium> Was thinking about using refinements in my current lib but can’t find my info about them. Any reason not use to them?
nizzlefritz has joined #ruby
abhinavmehta has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
KCmetro has quit [Remote host closed the connection]
Rodya__ has joined #ruby
<Zarthus> they're a bit tedious to use
KCmetro has joined #ruby
RegulationD has joined #ruby
tulak has joined #ruby
zacts has quit [Ping timeout: 250 seconds]
tercenya has quit [Ping timeout: 260 seconds]
<Papierkorb> nerium: For some things tedious, but in general, I much prefer them over some library patching yet another thing into the standard lib
<jhass> http://janlelis.github.io/sugar_refinery/ has some insight as to what makes sense to do with them
malconis_ has joined #ruby
malconis_ has quit [Remote host closed the connection]
SilverKey has joined #ruby
Pupp3tm4st3r has joined #ruby
<nerium> Papierkorb: Exactly. Just discovered a but which was introduced using monkey patching. Took me 2h to find so was hioping that refinements would solve this
malconis has quit [Read error: Connection reset by peer]
<nerium> *a bug
Pupp3tm4st3r has quit [Remote host closed the connection]
malconis_ has joined #ruby
hwcomcn has joined #ruby
<nerium> Zarthus: The overhead looks quite minmal or are you refering to something other then the extra amount of code?
<Zarthus> I'm referring to the headache and annoyance it produces for the programmer :)
hwcomcn has quit [Client Quit]
<Papierkorb> nerium: I use them over monkey patching wherever possible. A single "using" line above everything else is well worth the hassle for me
hwcomcn has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
<nerium> Zarthus: I understood that, but exactly is causing this? Number of extra locs?
<Papierkorb> Of course, it can be surprising that suddenly "some method isn't there?!"
yoongkan_ has joined #ruby
<nerium> Papierkorb: Much rather that then ”who is overriding my method X”?
<Papierkorb> Absolutely
<Papierkorb> I just recently used a method by accident in production code which is offered by YARD
pawnbox has joined #ruby
<Papierkorb> So, in console, it worked fine, as pry requires 'yard'
RegulationD has quit [Ping timeout: 264 seconds]
hwcomcn has quit [Client Quit]
hwcomcn has joined #ruby
<Papierkorb> but suddenly, the RACK_ENV=production server spit out exceptions. I don't like these kind of surprises
<nerium> Papierkorb: Takes forever to debug
<Zarthus> nerium: no reason in particular, it's just that the extra instructions and checklist to go through
<Papierkorb> if you're unlucky absolutely. Took me a moment to even consider that this method was "new"
johnmilton has joined #ruby
<Zarthus> it just feels like there should be a more ideal solution
<Zarthus> although most languages don't permit overwriting of methods like this to begin with
<nerium> Zarthus: … which results in even more code
hwcomcn has quit [Max SendQ exceeded]
madsa has joined #ruby
<nerium> Proxy objects would be another, general, solutioin
<Zarthus> I don't care about the quantity of code, I just think refinements are a workaround more than a solution
yoongkan_ has quit [Ping timeout: 244 seconds]
astrobun_ has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 276 seconds]
daivyk has joined #ruby
dminuoso has quit [Remote host closed the connection]
<jhass> it's admittedly hard to design a nice API for it though, what'd be your dream API to it?
nerium_ has joined #ruby
nerium has quit [Read error: Connection reset by peer]
nerium_ is now known as nerium
<nerium> LOCS <==> bugs
astrobun_ has joined #ruby
pawnbox_ has joined #ruby
RegulationD has joined #ruby
johnmilton has quit [Ping timeout: 258 seconds]
astrobun_ has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
ixti has joined #ruby
ixti has quit [Client Quit]
johnmilton has joined #ruby
<Papierkorb> nerium: another solution could be including monkeypatch modules into the singleton_class to only patch certain objects
<Papierkorb> Has the downside that you have to do this all the time, with the upside that the object doesn't "change" from a file to the next one
nobitanobi has joined #ruby
nankyokusei has joined #ruby
Guest00-ru has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 276 seconds]
Xiti` has quit [Quit: Xiti`]
<nerium> Papierkorb: Implemented such a solution in javascript as an alt. to refinements. It works but is in the end the same thing as refinements
<jhass> doesn't it still bust method caches for the whole ancestry chain though?
dionysus69 has quit [Ping timeout: 276 seconds]
<nerium> jhass: Sounds like a problem in the early stages of the feature
<Papierkorb> jhass: the methods don't suddenly change anymore for that particular object. Don't know what else MRI caches
<nerium> jhass: *should* have been fixed before it got released
zacts has joined #ruby
<jhass> I don't mean refinements but doing .extend all the time at runtime
<nerium> Aha
Macaveli has joined #ruby
djbkd has quit []
nankyokusei has quit [Ping timeout: 240 seconds]
tercenya has joined #ruby
polishdub has joined #ruby
marr has quit [Ping timeout: 276 seconds]
Xiti has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
astrobun_ has joined #ruby
jrafanie has joined #ruby
Ropeney has joined #ruby
Mia has quit [Read error: Connection reset by peer]
glundgren has joined #ruby
<glundgren> hey guys, good morning
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<glundgren> {:city=>{:person_1=>{:ranking=>1}, :person_2=>{:ranking=>2}}, :city_2 => {{:person_3 => 2}, {:person_4 => 3}}}
<glundgren> how can i sort by the :ranking value?
<glundgren> keeping the city scope
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<glundgren> someone can help me with this
<glundgren> ?
SilverKey has quit [Quit: Halted.]
<marens> hey there, i'm trying to persist some data as yaml file and followed http://blog.mustmodify.com/pages/psych-ruby-1-9-yaml, so far so good, but it seems that i have to solve question 1 from that link or otherwise another programm doesn't parse the yaml file properly. Any ideas how i can manage to do that?
tildes has joined #ruby
<yorickpeterse> glundgren: for starters your syntax is not valid
<glundgren> sorry about that, its just to illustrate didnt checked
vuoto has quit [Remote host closed the connection]
<jhass> second relying on the order of a hash is smelly
oryman has joined #ruby
<yorickpeterse> Generally you'd use Hash#sort / Hash#sort_by, which spits out an Array, then turn that back into a Hash using Hash.[]
<yorickpeterse> e.g.
jaiks has quit [Read error: Connection reset by peer]
<jhass> Array#to_h you mean :P
<glundgren> im all ears :)
<jhass> I would recommend flattening the outer key into the child hashes
<yorickpeterse> >> Hash[{ a: 2, b: 1 }.sort_by { |key, value| value }]
<ruby[bot]> yorickpeterse: # => {:b=>1, :a=>2} (https://eval.in/610153)
<yorickpeterse> jhass: yeah that also works
oryman has quit [Client Quit]
<jhass> .map {|k, v| v[:city] = k; v }.sort_by {|city| city[:ranking] }
<glundgren> ok yorick, but this is in the first level of hash, how i do it in a deep level?
<marens> tl; dr how to force psych to emit key: [val1, val2] instead of key: \n-val1 \n-val2 when writing out yaml?
drahosj_ is now known as drahosj
<yorickpeterse> Exactly the same, but you'd have to reconstruct things manually
SilverKey has joined #ruby
<glundgren> mmm i got it, that was my doubt!
<glundgren> thanks
<yorickpeterse> You select the part you want to sort, sort it, then re-assign
<yorickpeterse> basically
<glundgren> thanks dude
<Papierkorb> marens: those two are equivalent for YAML.
jaiks has joined #ruby
<jhass> glundgren: do reconsider your data structure though, the desire to sort it indicates you don't actually every use the keys for key based access
jaguarmagenta has joined #ruby
<marens> Papierkorb: i wish all implementations knew that
<marens> i'm just looking for a workaround to make java happy
<glundgren> actually i have a LOT of stuff using this structure, the client asked to order it, i dont want to rebuild everything
<glundgren> :P
douglascorrea has quit [Ping timeout: 276 seconds]
<Papierkorb> marens: Is the target application actually using JSON?
<jhass> glundgren: well, do you ever do foo[:city_2][:person_3]?
roamingdog has joined #ruby
xall_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
<marens> Papierkorb: nono, it's using org.ho.yaml to parse yaml, and if i change the syntax to the first it's able to parse it :/
<Papierkorb> marens: try feeding it JSON. a compliant YAML parser reads JSON just fine.
DoubleMalt has quit [Ping timeout: 272 seconds]
<glundgren> actually i use this strutucture to generate pdfs, it kinds of work this way i go thourgh the hash and write a pdf listing all the person inside a city
<glundgren> but now i need to order by this ranking value
<glundgren> every city is a new pdf
<glundgren> and write pdf using prawn isnt the most friendly task...
<marens> Papierkorb: i'd rather have Psych emit the first syntax if that is possible
<Papierkorb> marens: Time to dig its source and docs then I guess
<glundgren> although is very useful
<marens> Papierkorb: well i'm not the most experienced ruby progammer and thus i'm asking in here if anybody already knows how to do that
astrobun_ has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<jhass> last released in 2007.... https://mvnrepository.com/artifact/org.jyaml/jyaml
xall_ has quit [Ping timeout: 276 seconds]
jaiks has quit [Ping timeout: 250 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou is now known as rodfersou|lunch
<marens> i know i know, it's way harder to change the application compared to changing my little yaml emitter i hope
<jhass> probably not tbh
<marens> gnaah
craigp has joined #ruby
kavanagh has quit [Quit: That's all folks!]
zacts_pi has joined #ruby
jenrzzz has joined #ruby
douglascorrea has joined #ruby
mark_66 has quit [Quit: Leaving.]
ChiefAlexander has joined #ruby
<jhass> it's so outdated, not even the link to alternatives works anymore :P
<marens> awesome, isn't it :D
zacts has quit [Ping timeout: 240 seconds]
senayar has quit []
jenrzzz has quit [Ping timeout: 244 seconds]
abhinavmehta has joined #ruby
mpr555 has joined #ruby
abhinavmehta has quit [Client Quit]
<mpr555> Hi All - I am so new to programming, I am after advice on where to start with learning Ruby
<Zarthus> i think ruby's own website has some mini tutorial on it
aufi_ has quit [Remote host closed the connection]
<mpr555> Yeah i have been on there thanks
<marens> i found http://rubykoans.com/ useful
<mpr555> I have got “Learn to Program” - Chris Pine book. and I get to a certain point and i get confused! ha
<jhass> going through http://tryruby.com/ should be fun too
zacts_pi has quit [Ping timeout: 252 seconds]
<jhass> the book's good too
<jhass> what are you confused about?
<mpr555> methods, loops, anything past putting “hi” on the screen
<mpr555> not that bad really
Rodya__ has quit [Remote host closed the connection]
<mpr555> when I look at the code, I can understand what it is doing.
<jhass> that ought to be enough for starters :)
<mpr555> but when doing the tasks, my mind melts trying to figure out what to do
<Zarthus> what task are you trying to accomplish?
<mpr555> I look at the code at that back, and think oh yeah that makes sense
mustmodify has joined #ruby
<jhass> ^ share the task and your thoughts about it so far
<jhass> without having looked at a solution yet
Rodya_ has joined #ruby
<mustmodify> One of my subcontractors submitted this to get around what he called "a lot of copy and paste." I'm inclined to have him redo it as it doesn't, in my mind, express intent very well... but I thought I'd see what others thought. https://gist.github.com/mustmodify/2c608103ff57421c5047c5e72f575213
Mon_Ouie has joined #ruby
jaiks has joined #ruby
<mpr555> I will be back to do that - I thought I would come here first, and ask where the best place to start was.
<mustmodify> I'm not against meta... just seemed... overboard rescuing.
<croberts> what is the double rescue :: in this example used for URI::InvalidURIError
<mpr555> I literally have no coding experience, apart from very basic html, css, php, mysql - but i do mean basic
<croberts> -rescue
<mpr555> Next time I am going through my book again, I will come here and see before looking at solutions
<Papierkorb> the begin/end is redundant in the generated method
<jhass> mustmodify: yeah reads like trying to be smart and failing at it
<jhass> module_eval takes a block
<mpr555> I need a mentor :) ha. Self study for me is hard. i’m more of a teacher student type learner
<Papierkorb> mustmodify: also, looks like it could be done with #define_method and #alias_method just fine without having to use eval
davedev24 has joined #ruby
beilabs_ has quit [Remote host closed the connection]
<jhass> and there's define_method
<mpr555> but thanks for the info so far everyone
<jhass> so need for constructing a string
beilabs has joined #ruby
<jhass> croberts: the same as everywhere else, namespace resolution
beilabs has quit [Read error: Connection reset by peer]
rcs has joined #ruby
<jhass> croberts: exception types are just classes, classes are just objects assigned to constants. It's fetching the constant InvalidURIError in the namespace URI
mustmodify_ has joined #ruby
<mustmodify_> ping
<mustmodify_> that's weird. I was kicked out.
conta1 has joined #ruby
<jhass> not yet :P
<mustmodify_> seems like I'm having some kind of internet issue.
Rodya_ has quit [Ping timeout: 250 seconds]
<croberts> jhass: thank you :)
<jhass> mustmodify_: say hello to mustmodify
mpr555 has quit [Remote host closed the connection]
<mustmodify_> yeah, I guess when my connection dropped my client used a new nickname.
<Papierkorb> mustmodify_: TL;DR: jhass and me suggested to use #define_method and #alias_method over using eval(), and that the begin/end in the method are redundant
<jhass> ?logs
<ruby[bot]> You can find a log of this channel at http://irclog.whitequark.org/ruby/
dn`_ has joined #ruby
<jhass> ^ that is if you want to keep with it
<jhass> I'm not sure I would
<jhass> like you said yourself, it likely can be rescued at some higher level
<jhass> also how many methods are we talking?
conta has quit [Ping timeout: 272 seconds]
conta1 is now known as conta
EdwardIII has quit [Ping timeout: 272 seconds]
EdwardIII has joined #ruby
<mustmodify_> let me check.
nobitanobi has quit [Read error: Connection reset by peer]
<mustmodify_> not many
tekacs has quit [Ping timeout: 250 seconds]
mpr555 has joined #ruby
mpr555 has quit [Client Quit]
nobitanobi has joined #ruby
<mustmodify_> 8
<jhass> yeah, my judgement stays, trying to be smart instead of trying to be clean
queequeg1 has quit [Ping timeout: 272 seconds]
queequeg1 has joined #ruby
deuterium has quit [Ping timeout: 264 seconds]
<Papierkorb> mustmodify_: another solution could be to have instead a method, which just yields, but rescues the Error.
max__ has joined #ruby
jrafanie_ has joined #ruby
mustmodify has quit [Ping timeout: 272 seconds]
jrafanie has quit [Ping timeout: 272 seconds]
<jhass> or even a wrapper around define_method
hayden__ has quit [Ping timeout: 272 seconds]
[spoiler] has quit [Ping timeout: 272 seconds]
max__ is now known as Guest53899
mustmodify_ is now known as mustmodify
marahin has quit [Ping timeout: 272 seconds]
<Papierkorb> mustmodify_: would look like: foo = without_redis_error{ redis.the_operation }
<mustmodify> yeah, that's my thinking
benlieb has joined #ruby
Rutix`away has joined #ruby
Rutix`away has quit [Changing host]
Rutix`away has joined #ruby
<mustmodify> safely { REDIS.operation }
tekacs has joined #ruby
banisterfiend has quit [Ping timeout: 272 seconds]
steve has quit [Ping timeout: 272 seconds]
dn` has quit [Ping timeout: 272 seconds]
dn`_ is now known as dn`
bob_f has quit [Ping timeout: 272 seconds]
KramerC has quit [Ping timeout: 272 seconds]
Guest53899 has quit [Client Quit]
<jhass> I'd go for swallow_errors { }
<Papierkorb> But it really depends. just logging the error and then ignoring it otherwise ... isn't it important?
max__ has joined #ruby
max__ has quit [Client Quit]
<jhass> or suppress_errors
[spoiler] has joined #ruby
ruisanto1 has joined #ruby
swartzcr_ has joined #ruby
<jhass> it's not any safer, I'd almost argue on contrary
<mustmodify> Papierkorb: that isn't the only other option.
bob_f has joined #ruby
marahin has joined #ruby
marahin is now known as Guest79363
jaguarmagenta has quit [Remote host closed the connection]
steve has joined #ruby
funnel_ has joined #ruby
SilverKey has quit [Quit: Halted.]
reaVer_ has joined #ruby
mattwashere has quit [Remote host closed the connection]
douglascorrea has quit [Remote host closed the connection]
danman has joined #ruby
<mustmodify> In this case, Redis is being used to maintain a list. I totally want Redis up. But if it's not, I would definitely choose for it to log to Rollbar (our error reporting software) and fail silently.
sethette1 has joined #ruby
mattwashere has joined #ruby
dagelf_ has joined #ruby
<mustmodify> I still get an email. It still gets logged.
<mustmodify> but the operation continues. The list can be rebuilt.
nobitanobi has quit [Ping timeout: 250 seconds]
douglascorrea has joined #ruby
majoh_ has joined #ruby
trif_ has joined #ruby
jaguarmagenta has joined #ruby
matti_ has joined #ruby
KramerC has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
M-mistake has quit [Ping timeout: 272 seconds]
sethetter has quit [Ping timeout: 272 seconds]
funnel has quit [Ping timeout: 272 seconds]
ruisantos has quit [Ping timeout: 272 seconds]
zeroDivisible has quit [Ping timeout: 272 seconds]
swartzcr has quit [Ping timeout: 272 seconds]
funnel_ is now known as funnel
Terens1 has joined #ruby
<jhass> One step further is to take the decision whether to swallow the error or not out of the class, instead write a wrapper that does it
<jhass> class SuppressRedisErrors < SimpleDelegator; def method_missing(*args, &block); super; rescue Redis::Error; ...; end;
Ropeney has joined #ruby
<jhass> then the call side can decide, useful for testing
mpr555 has joined #ruby
reaVer has quit [Ping timeout: 272 seconds]
mrfooo has quit [Ping timeout: 272 seconds]
funrep has quit [Ping timeout: 272 seconds]
majoh has quit [Ping timeout: 272 seconds]
dagelf has quit [Ping timeout: 272 seconds]
matti has quit [Ping timeout: 272 seconds]
trif has quit [Ping timeout: 272 seconds]
matti_ is now known as matti
yoongkan_ has joined #ruby
<mpr555> Hi again.
<jhass> hi
mattwashere has quit [Ping timeout: 260 seconds]
<mpr555> I have also been recommended the book "learn ruby the hard way"
M-mistake has joined #ruby
<jhass> I recommend to not do that
<jhass> Zed's Ruby style is awful
<mpr555> ok
phantummmm has joined #ruby
iNs_ has joined #ruby
conta has quit [Ping timeout: 276 seconds]
<Papierkorb> aren't "... the hard way" books for people who're already familiar with programming?
<mpr555> i see there is mixed reviews on that, some people rave it, others not, very much like marmite
douglascorrea has quit [Read error: Connection reset by peer]
<jhass> his other books are okay, but his Ruby is dated and never was really idiomatic
douglasc_ has joined #ruby
<jhass> Papierkorb: not necessarily
janno_ has joined #ruby
DarkBushido_ has joined #ruby
<jhass> you need some frustration resistance and initiative though
<mpr555> I think I need to find something that explains the different parts of Ruby. like methods, classes, procs, blocks, and what they all do. its a lot of info!
<jhass> Zed explains it in the intro chapter of each iirc
<jhass> ?quickref
<mpr555> ust don't know where to start :)
rbr has quit [Disconnected by services]
RTG` has joined #ruby
fanantoxa has joined #ruby
Ropeney has quit [Client Quit]
<jhass> well it's a bit unfortunate that you just looked at the solutions of the exercises you got stuck on
apeiros_ has joined #ruby
hayden__ has joined #ruby
<jhass> maybe try redoing them anyway
<mpr555> I didn't for all, and I have not finished it yet
<mpr555> so there are many to do
tercenya has quit [*.net *.split]
polishdub has quit [*.net *.split]
MrBusiness2 has quit [*.net *.split]
dvinciguerra_ has quit [*.net *.split]
hk238 has quit [*.net *.split]
hanmac has quit [*.net *.split]
ken_barber has quit [*.net *.split]
sepp2k has quit [*.net *.split]
ec\ has quit [*.net *.split]
ozzloy has quit [*.net *.split]
ricer2 has quit [*.net *.split]
bastelfreak has quit [*.net *.split]
yokel has quit [*.net *.split]
Hounddog has quit [*.net *.split]
csaunders has quit [*.net *.split]
memorasus has quit [*.net *.split]
creat has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
nadir has quit [*.net *.split]
Rutix has quit [*.net *.split]
Terens has quit [*.net *.split]
bweston92 has quit [*.net *.split]
chosen1 has quit [*.net *.split]
braderhart has quit [*.net *.split]
exchgr has quit [*.net *.split]
SuperLag has quit [*.net *.split]
olivierjanss has quit [*.net *.split]
Tele has quit [*.net *.split]
the-eat-scout has quit [*.net *.split]
Soulcutter has quit [*.net *.split]
user1_ has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
imajes has quit [*.net *.split]
j0bk has quit [*.net *.split]
priodev has quit [*.net *.split]
FernandoBasso has quit [*.net *.split]
Phanes has quit [*.net *.split]
ptx0 has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
phantummm has quit [*.net *.split]
Adam_FrVancouver has quit [*.net *.split]
shaman42 has quit [*.net *.split]
iNs has quit [*.net *.split]
Suntzu has quit [*.net *.split]
pcboy has quit [*.net *.split]
janno has quit [*.net *.split]
apeiros has quit [*.net *.split]
destructure has quit [*.net *.split]
TTilus has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
sonne_ has quit [*.net *.split]
miah has quit [*.net *.split]
olblak_ has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
mahlon has quit [*.net *.split]
sluukkonen has quit [*.net *.split]
mosez has quit [*.net *.split]
Cork has quit [*.net *.split]
DarkBushido_ is now known as DarkBushido
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby
<jhass> yes but they build upon each other
zeroDivisible has joined #ruby
zacts_raincity has joined #ruby
<jhass> that you have trouble with the later ones when you never really thought through the first ones is understandable
mattwildig has joined #ruby
<mpr555> maybe I should start again
kavanagh has joined #ruby
<jhass> :)
zacts_raincity has quit [Client Quit]
yoongkan_ has quit [Ping timeout: 240 seconds]
sonne has joined #ruby
<mpr555> basic loops i am good with. but loops, with in loops. I think my way of thinking about a problem logically is where I am struggling
dvinciguerra_ has joined #ruby
<toretore> mpr555: it's just going to take time and effort
<jhass> how long have you been at it?
<mpr555> couple of days :)
platzhirsch has quit [Quit: WeeChat 1.4]
<toretore> programming is hard, and learning it is hard
<jhass> yeah it's nothing :)
<jhass> take your time
SirCmpwn has joined #ruby
<mpr555> i work for a small software team, as a junior programmer
<mpr555> but have a infrastructure backgound in hardware
braderhart has joined #ruby
<mpr555> I'm going more devops things, mainly just bash
<mpr555> but nothing complicated
<toretore> maybe you can run my kubernetes and i'll write your ruby
alfiemax has joined #ruby
creat has joined #ruby
Wildfyr has joined #ruby
Wildfyr has quit [Changing host]
Wildfyr has joined #ruby
<mpr555> I do find self study hard, i always like an instructor led thing. but thats hard to find around here
chandlerbing has quit [Ping timeout: 276 seconds]
<mpr555> I'll start again with the book "Learn to Program"
mattwildig has quit []
<mustmodify> So I met this kid through Big Brothers.
<mustmodify> Super smart 10 year old.
<mpr555> toretore: Yup - just don't know where to start, or how to go about starting
<mustmodify> Part of me wants to introduce him to Ruby. Another part of me wants to introduce him to Javascript since it's ... like ...
<mustmodify> more directly useful to someone who won't necessarily be programming?
<toretore> it's like with anything - start anywhere, as long as you get some traction
<shevy> mustmodify have him learn php and be done with it
<mustmodify> shevy: lol
<mpr555> just need to find something to work towards.
waxxy has quit [Quit: Textual IRC Client: www.textualapp.com]
bweston92 has joined #ruby
TomyWork has quit [Ping timeout: 276 seconds]
shaman42 has joined #ruby
mosez has joined #ruby
j0bk has joined #ruby
TTilus has joined #ruby
miah has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
olblak has joined #ruby
destructure has joined #ruby
Suntzu has joined #ruby
csaunders has joined #ruby
user1_ has joined #ruby
exchgr has joined #ruby
pcboy has joined #ruby
Hounddog has joined #ruby
ptx0 has joined #ruby
memorasus has joined #ruby
SuperLag has joined #ruby
FernandoBasso has joined #ruby
yokel has joined #ruby
ec\ has joined #ruby
priodev has joined #ruby
hakunin has joined #ruby
Soulcutter has joined #ruby
polishdub has joined #ruby
chosen1 has joined #ruby
<shevy> hmmm how do I sort a hash? or rather, each key is just a pointer to an array, and the array itself has one slot for the year
nadir has joined #ruby
<mpr555> Well thanks for the info so far. First time I have used IRC as well. seems a friendly place to seek help
ItSANgo has joined #ruby
tercenya has joined #ruby
ptx0 is now known as Guest87514
ken_barber has joined #ruby
sepp2k has joined #ruby
coffeejunk has joined #ruby
MrBusiness2 has joined #ruby
<Papierkorb> mustmodify: I started learning QBasic at 10 years by myself. What I want to point out is, it doesn't matter with which language you start. Both are fine. JS has the benefit of coming with a "GUI" more easily, so you get direct feedback much more easily
hanmac has joined #ruby
Adam_FrVancouver has joined #ruby
bastelfreak has joined #ruby
ricer2 has joined #ruby
mahlon has joined #ruby
<shevy> ah
<shevy> got it
sluukkonen has joined #ruby
KrzaQ has joined #ruby
Fire-Dragon-DoL has joined #ruby
imajes has joined #ruby
<Wildfyr> Hello
Tele has joined #ruby
<Papierkorb> mustmodify: years ago, I programmed a gamemode for the "GTA San Andreas Multiplayer (SA:MP)" Mod. The most awesome thing was, when you wrote a bunch of lines, something happened on your screen. Even if you messed up, something wacky happened. You laughed, fixed it. I think this direct feedback thing is more important than choosing "the right" language for the beginning.
olivierjanss has joined #ruby
zacts has joined #ruby
[Butch] has joined #ruby
<jhass> mustmodify: perhaps https://scratch.mit.edu/ still?
Cork has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
the-eat-scout has joined #ruby
<mustmodify> That's good stuff. I think he's past that. I sent him to tryruby.org
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
mrfooo has joined #ruby
pawnbox has joined #ruby
jtd has joined #ruby
asianMike has joined #ruby
moos3 has joined #ruby
Phanes has quit [Excess Flood]
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
pwnd_nsfw has quit [Read error: Network is unreachable]
pwnd_nsfw has joined #ruby
tylersmith has quit [Ping timeout: 250 seconds]
<mpr555> would you guys recommend the code school and codecademy sites?
weaksauce has quit [Ping timeout: 250 seconds]
<shevy> books help but at the end of the day, the best way is to write code on your own no matter what is your skill level or learning curve/speed
karapetyan has joined #ruby
xall_ has joined #ruby
<mpr555> my main aim is to have a web site, with user input to a db and be able to read from it as well
<shevy> a railser!
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> We don't really recommend things; each person has different ways of learning, so we can't give you the best solution for you like that
<mpr555> yeah i read that rails is the way. but from what i have read, best to lear ruby first?
SilverKey has joined #ruby
tylersmith has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
<mustmodify> mpr555: I learned Rails/Ruby at the same time and I thought it was a confusing way to go.
pawnbox has quit [Ping timeout: 258 seconds]
<mpr555> I think I will try to stick with ruby. Just need to nail the basics
asianMike has quit [Ping timeout: 276 seconds]
<mpr555> hard learning on your own though :)
<adaedra> Rails is not a _wrong_ way to go, but it may not show you the whole spectrum of ruby and may cause confusion between what is ruby and what is rails (and what is love)
Guest87514 has quit [Quit: Changing server]
pdoherty has quit [Read error: Connection reset by peer]
ptx0 has joined #ruby
<mustmodify> yep. I mean, Rails is great for what it does and has made my life better. But I wish I had learned them separately.
ptx0 has quit [Changing host]
ptx0 has joined #ruby
<shevy> mpr555 just have some things that you want to write, the rest will happen on its own eventually
<mpr555> adaedra: thanks - just need to get it done. I find reading code fairly easy. But writing it, mind goes blank
<mpr555> shevy: yup good way to go for sure
amclain has joined #ruby
xall_ has quit [Ping timeout: 264 seconds]
atom___ has quit [Ping timeout: 276 seconds]
macsteps has joined #ruby
isberg has joined #ruby
laska has joined #ruby
nerium has quit [Quit: nerium]
ptx0 has quit [Client Quit]
<shevy> I find reading ruby code by others quite difficult :) or perhaps depending on the style/structure used
<mpr555> when i said reading code, i did mean the beginners stuff i am reading
ullu has joined #ruby
Snowy has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 252 seconds]
ptx0 has joined #ruby
mrgrieves has quit [Ping timeout: 260 seconds]
eGGshke has joined #ruby
nobitanobi has joined #ruby
roamingdog has quit [Remote host closed the connection]
douglasc_ has quit [Remote host closed the connection]
laska has quit [Ping timeout: 260 seconds]
ullu has quit [Ping timeout: 264 seconds]
mustmodify has left #ruby [#ruby]
<mpr555> thanks for the info so far folks. I will start the book again, and when I start getting confused, I'll pop on here and seek advice
<mpr555> Have a good weekend!!
abdur has joined #ruby
cbetta has quit [Ping timeout: 250 seconds]
cbetta has joined #ruby
abhinavmehta has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
abhinavmehta has quit [Client Quit]
mpr555 has quit []
douglascorrea has joined #ruby
hk238 has joined #ruby
Regulati_ has joined #ruby
roamingdog has joined #ruby
devbug has joined #ruby
glundgren has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 250 seconds]
kab has joined #ruby
rodfersou|lunch is now known as rodfersou
l4v2 has quit [Quit: l4v2]
Xiti has quit [Ping timeout: 250 seconds]
abdur has quit [Quit: abdur]
Rodya_ has joined #ruby
moos3 has left #ruby [#ruby]
aryaching has joined #ruby
pawnbox has joined #ruby
jrafanie has joined #ruby
jrafanie_ has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
aryaching has quit [Remote host closed the connection]
Cohedrin has joined #ruby
eGGshke has quit [Quit: Leaving...]
mtkd has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 250 seconds]
l4v2 has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
Xiti has joined #ruby
wrkrcoop has joined #ruby
<wrkrcoop> i have this string object, and when i call JSON.parse(message.body) it returns a hash but its wrapped in a hash with no key …
Xiti has quit [Client Quit]
tulak has quit [Remote host closed the connection]
jeremyhall has joined #ruby
TheWhip has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 240 seconds]
kitikonti has joined #ruby
aryaching has joined #ruby
ur5us has joined #ruby
kab has quit [Quit: Leaving]
madsa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chandlerbing has joined #ruby
tildes has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
bigkevmcd has quit [Quit: Outta here...]
<jhass> unlikely
aryaching has quit [Ping timeout: 276 seconds]
GodFather has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
tristanp has joined #ruby
ramfjord has joined #ruby
GodFather has joined #ruby
tokynet has quit [Quit: Connection closed for inactivity]
SilverKey has quit [Quit: Halted.]
GodFather has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]
ChiefAlexander has quit [Remote host closed the connection]
micalexander has joined #ruby
kavanagh has quit [Ping timeout: 240 seconds]
madsa has joined #ruby
ramfjord has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
brendan- has joined #ruby
abhinavmehta has joined #ruby
lunaelli has quit [Ping timeout: 244 seconds]
mattwashere has joined #ruby
GodFather has joined #ruby
<micalexander> I am writing a script and want to require middleman so that I am able to use the helpers that it provides. When I require middleman I am unable to use it because I get wrong number of arguments as it expects the at least the first one to be an object of the app. I feel like there is something that I am missing. Can someone shed some light on how I would pull in a gem like this and use some of its helpers?
<adam12> Middleman the static site generator?
synthroid has quit []
banisterfiend has joined #ruby
SilverKey has joined #ruby
duoi has quit [Ping timeout: 250 seconds]
binaryplease has joined #ruby
Regulati_ has quit [Remote host closed the connection]
openstruct has joined #ruby
duoi has joined #ruby
lacce has quit [Quit: Ragequit]
aryaching has joined #ruby
djbkd has joined #ruby
openstruct has quit [Client Quit]
SilverKey has quit [Quit: Halted.]
<toretore> ?code micalexander
<ruby[bot]> micalexander: We can't help you without your code, please post it to https://gist.github.com
agent_white has joined #ruby
pawnbox has quit [Remote host closed the connection]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
SegFaultAX has joined #ruby
Mirubiri has joined #ruby
arthurl has joined #ruby
<arthurl> hi guys- looking for advice on how to debug/isolate ruby code that causes a ruby application to hang around in an uninterruptible sleep state even those the application 'finishes' running
<arthurl> basically the code loads raw files into a database, upon doing so it spawns a 2 or 3 other ruby processes that do the work but when it's finished there's always one ruby process still present in the process list with a 'Sl' state
tristanp has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 250 seconds]
Wildfyr has quit [Ping timeout: 260 seconds]
<toretore> are you reaping the children?
laska has joined #ruby
KCmetro_ has joined #ruby
<arthurl> toretore i'm not a dev so i'm not really sure what the code is doing- but for what i can tell it's not an actual child process that gets left behind- it's the original parent process
KCmetro_ has quit [Remote host closed the connection]
<arthurl> i'm just an infra/devops guy trying to stand up this application in a new prod environment and i'm observing this behavior
macsteps has quit [Read error: Connection reset by peer]
macsteps_ has joined #ruby
<arthurl> but i do have the code base in front of me which i'm looking at trying to understand why this might be happening
roamingdog has quit [Remote host closed the connection]
<toretore> can you gist the code?
pawnbox has joined #ruby
mattwashere has quit []
KCmetro has quit [Ping timeout: 244 seconds]
laska has quit [Ping timeout: 250 seconds]
<arthurl> unfortunately there are a lot of files in this application- plus not sure i can legally put this code up in a gist- sorry about that
moeabdol1 has quit [Ping timeout: 240 seconds]
<micalexander> adam12: Yes the static site generator. My goal is to use some of the helpers to generate a wordpress theme out of a middleman site. So taking a prototype and quickly making a theme out of it.
nb_bez___ has joined #ruby
<toretore> arthurl: well then you have a lot of complex code that we can't see, which makes it very difficult to help, *especially* when dealing with an issue like this
<arthurl> toretore no i understand i guess my question was moreso is there a general approach that i could tkae
<arthurl> take
<arthurl> or if this was common with some ruby apps
AlexRussia has quit [Ping timeout: 252 seconds]
<toretore> arthurl: it's not really specific to ruby apps, the mechanisms used are the same everywhere
KCmetro has joined #ruby
<toretore> arthurl: how are you determining the results that you see?
<toretore> arthurl: first step would be to run the application in the terminal and observe its behavior. does it hang, fork, leave zombies?
SilverKey has joined #ruby
<arthurl> toretore it always forks 3 other ruby instances- those finish and terminate
<toretore> arthurl: and then what happens?
<toretore> arthurl: are you running this from the terminal, in the foreground?
<arthurl> running from terminal yes
<arthurl> in foreground, correct
SilverKey has quit [Client Quit]
<toretore> and it never returns?
<arthurl> no it does
<arthurl> that's the thing
<arthurl> it executes, outputs, then returns
<arthurl> but when i do a px aux
<arthurl> i see it leaves behind a process
<toretore> are you sure it's the same as the one you started? because that seems unlikely
<arthurl> but i don't say it's a zombie because the state is 'Sl' uninterruptible sleep'
<arthurl> let me double check that
<toretore> right
banisterfiend has quit [Ping timeout: 276 seconds]
SilverKey has joined #ruby
openstruct has joined #ruby
<arthurl> toretore you were right it's one of the other ones that get spawned
<arthurl> that gets left behind
<arthurl> not the original pid
<jhass> then there's likely a missing waitpid call for it
blaxter has quit [Quit: foo]
Rodya_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
Xiti has joined #ruby
<toretore> well, it's sleeping so it's probably stuck on something
<toretore> and also missing a wait of course
craigp has quit [Ping timeout: 276 seconds]
<arthurl> so what's interesting is to my knowledge this same exact application runs on a different host without issue- meaning it doesn't leave any processes behind after it finishes- however it's ran through a crontask on that host
SCHAAP137 has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
shinnya has joined #ruby
<arthurl> i'm wondering if this is actually by design and if it eventually would terminate itself
<arthurl> maybe some sleep/wait thing going on
vjacob has joined #ruby
SilverKey has quit [Quit: Halted.]
Rodya_ has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
jaruga____ has quit [Quit: jaruga____]
dionysus69 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<drbrain> it's not a missing waitpid if the process isn't in Z
rcvalle has joined #ruby
ramortegui has joined #ruby
<drbrain> strace might help here, or attaching with a debugger and examining the stack
cdg has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
cdg has joined #ruby
jaguarmagenta has joined #ruby
<arthurl> drbrain strace is a good idea- thx
djbkd has quit [Remote host closed the connection]
sdothum has joined #ruby
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
roamingdog has joined #ruby
SilverKey has joined #ruby
hellcode has joined #ruby
yoongkan_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
pawnbox has quit [Remote host closed the connection]
wrkrcoop has joined #ruby
johnmilton has joined #ruby
xlegoman has joined #ruby
kedare has quit [Quit: Leaving]
asianMike has joined #ruby
yoongkan_ has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 244 seconds]
elaptics is now known as elaptics`away
tercenya has quit [Ping timeout: 260 seconds]
xall_ has joined #ruby
Vingador has joined #ruby
asianMike has quit [Ping timeout: 240 seconds]
kitikonti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
Terens1 is now known as terens
<arthurl> toretore so here is some of the code- i THINK that top function (process_retry) is where the forking is happening?
<arthurl> so basically if the application fails to find a file for a given country for a given provider it puts that provider/country combo into a retry array which forks this process
xall_ has quit [Ping timeout: 244 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
<drbrain> arthurl: I wouldn't be surprised if you hang in process_single
aegis3121 has joined #ruby
tercenya has joined #ruby
douglascorrea has quit [Remote host closed the connection]
<arthurl> drbrain right- that's what i'm thinking too- just trying to understand the code
aegis312_ has joined #ruby
pawnbox has joined #ruby
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
fiifi has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
macsteps_ has quit [Remote host closed the connection]
spider-mario has joined #ruby
tmtwd has joined #ruby
SilverKey has quit [Read error: Connection reset by peer]
aegis3121 has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
SilverKey has joined #ruby
McSoFake has joined #ruby
tercenya has quit [Ping timeout: 244 seconds]
Diabolik has quit [Excess Flood]
<drbrain> arthurl: I bet the stderr or stdout from sh is full
RegulationD has quit [Ping timeout: 250 seconds]
Diabolik has joined #ruby
Diabolik has quit [Max SendQ exceeded]
Diabolik has joined #ruby
SilverKey has quit [Quit: Halted.]
l4v2 has quit [Quit: l4v2]
GNUYawk has joined #ruby
elifoster has joined #ruby
alfiemax has joined #ruby
tercenya has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
zotherst1 has quit [Quit: WeeChat 1.5]
fiifi has quit [Ping timeout: 258 seconds]
laska has joined #ruby
Mirubiri has quit [Quit: Mirubiri]
SilverKey has joined #ruby
macsteps has joined #ruby
roamingdog has quit [Remote host closed the connection]
macsteps has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
moeabdol1 has joined #ruby
kareeoleez has joined #ruby
pawnbox has joined #ruby
tercenya has quit [Ping timeout: 244 seconds]
laska has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
douglascorrea has joined #ruby
pawnbox has quit [Remote host closed the connection]
ec0 has joined #ruby
douglascorrea has quit [Remote host closed the connection]
douglascorrea has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
[Butch] has quit [Quit: I'm out . . .]
tvw has quit []
tercenya has joined #ruby
sumobob has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
giz|work has joined #ruby
lightbright has joined #ruby
arup_r has joined #ruby
<arthurl> drbrain hmm let me see about that
Guest39581 has quit [Ping timeout: 260 seconds]
blandflakes has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
aryaching has quit [Remote host closed the connection]
moeabdol1 has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
RegulationD has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
Couch has quit [Quit: Ex-Chat]
Paradox has joined #ruby
pawnbox has joined #ruby
ChiefAlexander has joined #ruby
marxarelli has joined #ruby
hellcode has quit [Quit: leaving]
chouhoulis has joined #ruby
nando293921 has joined #ruby
lightbright has left #ruby [#ruby]
fiifi has joined #ruby
AndrewIsHere has joined #ruby
SilverKey has quit [Quit: Halted.]
jlebrech has quit [Remote host closed the connection]
SilverKey has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
spider-mario has quit [Ping timeout: 244 seconds]
vuoto has joined #ruby
lightbright has joined #ruby
spider-mario has joined #ruby
nando293921 has quit [Ping timeout: 265 seconds]
mwlang has joined #ruby
nobitanobi has quit [Remote host closed the connection]
marr has joined #ruby
kitikonti has joined #ruby
kareeoleez is now known as bustiz
kitikonti has quit [Client Quit]
mtkd has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
yoongkan_ has joined #ruby
johnmilton has quit [Ping timeout: 250 seconds]
openstruct has quit []
mtkd has joined #ruby
lightbright has left #ruby [#ruby]
SilverKey has quit [Quit: Halted.]
yoongkan_ has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
nankyokusei has joined #ruby
cdg has quit [Remote host closed the connection]
skade has joined #ruby
skade has quit [Client Quit]
twistedpixels has quit [Quit: ZNC - http://znc.in]
fiifi has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
<micalexander> I am writing a script and want to require middleman so that I am able to use the helpers that it provides. When I require middleman I am unable to use it because I get wrong number of arguments as it expects the at least the first one to be an object of the app. I feel like there is something that I am missing. Can someone shed some light on how I would pull in a gem like this and use some of its helpers? The code is here
Dimik has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
diegoviola has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
JeanCarloMachado has joined #ruby
Sucks has joined #ruby
rodferso1 has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
rodfersou has quit [Disconnected by services]
rodferso1 is now known as rodfersou
beilabs has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
zeroDi has joined #ruby
theery has joined #ruby
theery has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
aegis312_ has quit [Quit: Textual IRC Client: www.textualapp.com]
eljimbo has quit [Quit: This computer has gone to sleep]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
micalexander has quit [Read error: Network is unreachable]
laska has joined #ruby
jrafanie_ has joined #ruby
nhhc has joined #ruby
<drbrain> if micalexander comes back, point them at http://rack.github.io
<drbrain> it's got an example app
xall_ has joined #ruby
nando294021 has joined #ruby
jrafanie has quit [Ping timeout: 276 seconds]
<jhass> I don't think middleman wants a rack app
mattwashere has joined #ruby
bustiz has quit []
laska has quit [Ping timeout: 244 seconds]
angrybuzzy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
giz|work|2 has joined #ruby
TheWhip has joined #ruby
giz|work has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
umdstu has quit [Quit: umdstu]
Technodrome has joined #ruby
roshanavnad_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
LoneHerm_ has joined #ruby
s1kx has quit [Quit: bai]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
pawnbox has quit [Remote host closed the connection]
UserInNeed has quit [Changing host]
UserInNeed has joined #ruby
pawnbox has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
LoneHerm_ has quit [Ping timeout: 258 seconds]
swills_ has quit [Ping timeout: 264 seconds]
moeabdol1 has joined #ruby
GNUYawk has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
ramortegui has quit [Quit: Ex-Chat]
GNUYawk has joined #ruby
weaksauce has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
miqlas-H has joined #ruby
arup_r has quit [Remote host closed the connection]
yoongkan_ has joined #ruby
GNUYawk has quit [Client Quit]
CodeAleks has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
SilverKey has quit [Quit: Halted.]
pawnbox has quit [Ping timeout: 260 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
roshanavnad_ has quit [Quit: This computer has gone to sleep]
yoongkan_ has quit [Ping timeout: 265 seconds]
hahuang61 has joined #ruby
mattwashere has quit [Remote host closed the connection]
wilbert has joined #ruby
rindolf has joined #ruby
<rindolf> Hi all.
daivyk has quit [Quit: Quit]
karapetyan has quit [Remote host closed the connection]
craigp has joined #ruby
vuoto_ has joined #ruby
angrybuzzy has quit [Quit: This computer has gone to sleep]
vuoto has quit [Remote host closed the connection]
vuoto_ has quit [Remote host closed the connection]
vuoto has joined #ruby
karapetyan has joined #ruby
marxarelli is now known as marxarelli|afk
jackjackdripper has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
mattwashere has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
vuoto has quit [Remote host closed the connection]
<havenwood> rindolf: hi
Vingador has quit [Ping timeout: 276 seconds]
<rindolf> havenwood: sup?
drahosj has quit [Quit: "Weekend!"]
wrkrcoop has joined #ruby
beilabs has quit [Ping timeout: 265 seconds]
macsteps has joined #ruby
beilabs has joined #ruby
mwlang has quit [Quit: mwlang]
dennisvennink has joined #ruby
laska has joined #ruby
karapetyan has quit [Remote host closed the connection]
The_Phoenix has quit [Quit: Leaving.]
ullu has joined #ruby
banisterfiend has joined #ruby
vdamewood has joined #ruby
beilabs has quit [Remote host closed the connection]
karapetyan has joined #ruby
KillerFox has quit [Ping timeout: 244 seconds]
karapetyan has quit [Remote host closed the connection]
macsteps has quit [Remote host closed the connection]
ta_ has joined #ruby
karapetyan has joined #ruby
Madplatypus has joined #ruby
jenrzzz has joined #ruby
ullu has quit [Ping timeout: 276 seconds]
maucar has quit [Quit: Leaving]
<havenwood> rindolf: Freya's Day!
mattwashere has quit []
hahuang61 has quit [Ping timeout: 276 seconds]
MrBusiness2 has quit [Quit: Leaving]
MrBusiness has joined #ruby
isakovic has joined #ruby
CodeAleks has quit [Quit: Leaving]
memorasus has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
marxarelli|afk is now known as marxarelli
jaguarmagenta has joined #ruby
memorasus has joined #ruby
blackgoat has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
kareeoleez has joined #ruby
kareeoleez is now known as arxidi
hahuang61 has joined #ruby
replay has joined #ruby
ta_ has quit [Remote host closed the connection]
memorasus has quit [Remote host closed the connection]
wrkrcoop has quit [Quit: wrkrcoop]
kirun has joined #ruby
memorasus has joined #ruby
ta_ has joined #ruby
funrep has joined #ruby
hck89 has joined #ruby
giz|work has joined #ruby
giz|work|2 has quit [Ping timeout: 276 seconds]
hck89 has quit [Client Quit]
arxidi has quit [Remote host closed the connection]
hck89 has joined #ruby
hellcode has joined #ruby
arxidi has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
hck89 has quit [Client Quit]
tmtwd has joined #ruby
dvinciguerra_ has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
roamingdog has joined #ruby
arxidi has quit [Ping timeout: 244 seconds]
axl_ has joined #ruby
rindolf has quit [Quit: http://www.shlomifish.org/ ; Yay! I'm a llama again.]
yoongkan_ has joined #ruby
solars has quit [Ping timeout: 258 seconds]
wrkrcoop has joined #ruby
yoongkan_ has quit [Ping timeout: 250 seconds]
wrkrcoop has quit [Client Quit]
nankyokusei has joined #ruby
wrkrcoop has joined #ruby
isberg has quit [Ping timeout: 276 seconds]
wrkrcoop has quit [Client Quit]
watersoul_ has quit [Remote host closed the connection]
wrkrcoop has joined #ruby
watersoul has joined #ruby
watersoul has quit [Max SendQ exceeded]
nankyokusei has quit [Ping timeout: 240 seconds]
nando294021 has quit [Ping timeout: 260 seconds]
ChiefAlexander has quit [Quit: Leaving...]
fanantoxa has quit [Ping timeout: 240 seconds]
watersoul has joined #ruby
nobitanobi has joined #ruby
watersoul has quit [Max SendQ exceeded]
zacts has joined #ruby
splud has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
solars has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
memorasus has quit [Read error: Network is unreachable]
memorasus has joined #ruby
fanantoxa has joined #ruby
<splud> what is the preferred method of defining a variable - such as a class implementation “version”, such that if the class is overridden, that variable will consistently be used from the new definition?
blandflakes has joined #ruby
<splud> and my overridden, monkeypatching is included.
watersoul has joined #ruby
<splud> by
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
macsteps has joined #ruby
cek has joined #ruby
neanderslob has joined #ruby
SilverKey has joined #ruby
<cek> how do I capture stuff in erb? want to output it later on
<cek> haml has capture, want the same
<hellcode> splud: the one that best works for your application of course
workmad3 has quit [Ping timeout: 276 seconds]
neanderslob_ has joined #ruby
neanderslob has quit [Disconnected by services]
<zacts> what is monkeypatching?
tercenya has quit [Ping timeout: 244 seconds]
<jhass> zacts: reopening a class you do not own (haven't written) and overriding or adding a method
<zacts> oh I see
<zacts> ok
<splud> zacts - der google is your friend. You can load a class definition to replace/extend an already instantiated object.
rodfersou is now known as rodfersou|afk
<zacts> I understand that, but I hadn't heard of the term
<havenwood> zacts: Freedom patching**
abhinavmehta has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<splud> jhass: actually, it can be a class you wrote.
<zacts> I knew the concept, not the term
<havenwood> zacts: For a more refined take, see Refinements: http://ruby-doc.org/core-2.3.1/doc/syntax/refinements_rdoc.html
neanderslob has joined #ruby
<zacts> ok
<splud> consider the possibility of pushing an updated API to a server, and having it load it.
<jhass> does anybody actually do that?
<jhass> seems fragile
memorasus has quit [Ping timeout: 250 seconds]
<splud> One wouldn’t do it wholesale. There are places where it can be useful. Bootstrapping...
xall has joined #ruby
<jhass> splud: got some code to illustrate your question?
<splud> I’m just going to have a class variable hash and update it.
xall_ has quit [Ping timeout: 250 seconds]
miqlas-H has quit [Read error: Connection reset by peer]
Raj_ has joined #ruby
miqlas-H has joined #ruby
mattwashere has joined #ruby
<hellcode> jhass thanks I was struggling with that
<splud> in my case, the monkeypatched class defines a specific api, not a class used or inherited by other code. THAT would certainy complicate the use.
hahuang61 has joined #ruby
<splud> I have an update_api endpoint that allows for exchange of an encrypted update, after validation, that gets required (with exception handling), and if successful, the new api is bootstrapped (allowing it to obviously set the new api version as well as update any variables which may need to be updated).
blackgoat has quit [Quit: WeeChat 1.5]
<splud> Which in the present case is none, but the bootstrap protocol should be there so that the patching can accomodate it if a future api needs it.
kobain has joined #ruby
chosen1 has quit [Read error: Connection reset by peer]
chosen1 has joined #ruby
ElderFain has quit [Ping timeout: 264 seconds]
fnux has quit [Ping timeout: 264 seconds]
fnux has joined #ruby
electrostat has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 250 seconds]
ElderFain has joined #ruby
ldnunes has quit [Quit: Leaving]
Ropeney has joined #ruby
yfeldblum has joined #ruby
neanderslob has quit [Remote host closed the connection]
l4v2 has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
<hellcode> splud
<hellcode> my brain hurts
<splud> why?
<hellcode> so what you mean is that the overriden variable will be known or otherwise needed by the user?
tercenya has joined #ruby
<splud> IMO, if you have an API, there should be a method/endpoint that provides an API version.
tmtwd has quit [Ping timeout: 252 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xall_ has joined #ruby
<hellcode> oooh... all along I've been misreading your first statement
electrostat has joined #ruby
<hellcode> why not an @instance-variable ?
<splud> user queries the API, determines it isn’t up to date, has a newer one (fixed or added functionality), and pushes that, and a query of the API version would then return the updated version.
Ropeney has quit [Client Quit]
xall has quit [Ping timeout: 264 seconds]
<hellcode> @version = 1 # before update
blandflakes has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<hellcode> unless, of course, your code somehow gets run anew everytime
<splud> instance wouldn’t update other instances.
yuung has joined #ruby
<hellcode> oh
abhinavmehta has joined #ruby
TheWhip has quit [Remote host closed the connection]
<splud> if you’re redefining the CLASS, all instances would be updated.
<yuung> anyone have experience connecting to an AWS emr hive server via ruby?
mdw has joined #ruby
<hellcode> then... @@variable?
<hellcode> class variable that spans all it's instances
<splud> yes, class variable, used to store a hash - it’s what I’m doing now.
danman has quit [Quit: danman]
<splud> @@configuration[“api_version”]
abhinavmehta has quit [Client Quit]
<hellcode> so? I mean, I don't know what the best practices bestowed by the elders of ruby are
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<hellcode> but looks like a solution to me
giz|work|2 has joined #ruby
mattwashere has quit []
c355e3b has joined #ruby
Vingador has joined #ruby
tercenya has quit [Ping timeout: 250 seconds]
giz|work has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
tercenya has joined #ruby
angrybuzzy has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
Raj_ has quit [Quit: Page closed]
nando293921 has joined #ruby
fiifi has joined #ruby
arxidi has joined #ruby
mitt3ns has joined #ruby
dionysus69 has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KCmetro has quit [Remote host closed the connection]
McSoFake has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
Cohedrin has joined #ruby
tercenya has quit [Ping timeout: 244 seconds]
KCmetro has joined #ruby
blandflakes has joined #ruby
ta_ has quit [Remote host closed the connection]
theery has joined #ruby
twinklerock has quit [Quit: twinklerock]
Cohedrin has quit [Max SendQ exceeded]
wilbert has quit [Ping timeout: 260 seconds]
yuung has quit [Quit: leaving]
lxsameer has quit [Quit: WeeChat 1.5]
spudowiar has joined #ruby
Vingador has quit [Ping timeout: 252 seconds]
blandflakes has quit [Client Quit]
<shevy> hmmm
<shevy> I am wondering at which point the use of @instance_variables in any given class, becomes excessive
blandflakes has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 250 seconds]
<dunpeal> How should I define helper functions inside a method?
neanderslob_ has quit [Ping timeout: 264 seconds]
toretore has quit [Ping timeout: 258 seconds]
<dunpeal> I want to have something like def foo; def bar; 'qux'; end; puts bar; end
<dunpeal> that would output 'qux'
dionysus69 has quit [Ping timeout: 260 seconds]
<shevy> please don't
neanderslob has joined #ruby
marxarelli has quit [Remote host closed the connection]
tercenya has joined #ruby
habitullence has quit [Quit: habitullence]
arxidi has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 265 seconds]
arxidi has joined #ruby
blandflakes has quit [Client Quit]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
marxarelli has joined #ruby
agent_white has quit [Disconnected by services]
arxidi has quit [Ping timeout: 240 seconds]
mitt3ns is now known as agent_white
firstdayonthejob has quit [Quit: WeeChat 1.5]
<xpitr> dunpeal private methods in same class?
SilverKey has quit [Quit: Halted.]
<xpitr> seems more elegant
habitullence has joined #ruby
firstdayonthejob has joined #ruby
KCmetro has quit [Remote host closed the connection]
cd-rum has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
danman has joined #ruby
cd-rum has quit [Ping timeout: 240 seconds]
rodfersou|afk has quit [Quit: leaving]
zacstewart has quit [Ping timeout: 260 seconds]
cd-rum has joined #ruby
nando293921 has quit [Ping timeout: 264 seconds]
moeabdol1 has quit [Ping timeout: 244 seconds]
dkam__ has joined #ruby
angrybuzzy has quit [Quit: Leaving]
SilverKey has joined #ruby
blackgoat has joined #ruby
axl_ has quit [Quit: axl_]
zacstewart has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
ullu has joined #ruby
dkam has quit [Ping timeout: 250 seconds]
tercenya has quit [Ping timeout: 249 seconds]
rhg135 has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
<jhass> ^ defining a method in a method does not do what you most likely think it does
madsa has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel has joined #ruby
ullu has quit [Ping timeout: 258 seconds]
symm- has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cek has left #ruby [#ruby]
sdwrage has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
tercenya has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
Hounddog has quit [Ping timeout: 250 seconds]
ericsupreme has joined #ruby
SilverKey has quit [Quit: Halted.]
Emmanuel_Chanel has quit [Ping timeout: 258 seconds]
macsteps has quit [Remote host closed the connection]
No_One has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
dvinciguerra_ has joined #ruby
Emmanuel_Chanel has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jayson_Virissimo has joined #ruby
Jayson_Virissimo has quit [Client Quit]
Ebok has joined #ruby
<Ebok> Anyone seen Ox0dea around?
abhinavmehta has joined #ruby
douglascorrea has quit [Remote host closed the connection]
asianMike has joined #ruby
abhinavmehta has quit [Client Quit]
zenlot has joined #ruby
govg has quit [Ping timeout: 276 seconds]
spider-mario has quit [Remote host closed the connection]
<shevy> we had that question perhaps a month ago :D
zenlot6 has quit [Ping timeout: 276 seconds]
Cohedrin has joined #ruby
govg has joined #ruby
nhhc has quit [Quit: Leaving]
djbkd has joined #ruby
conta has joined #ruby
KCmetro has joined #ruby
laska has quit [Ping timeout: 252 seconds]
polishdub has quit [Quit: Leaving]
<Ebok> A month ago I was just checking in every few days and looking around
<Ebok> >_>
yoongkan_ has joined #ruby
KCmetro has quit [Ping timeout: 258 seconds]
ericsupreme has quit [Quit: Leaving]
KaliLinuxGR has quit [Remote host closed the connection]
yoongkan_ has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
roamingdog has joined #ruby
mtkd has quit [Ping timeout: 244 seconds]
MrBusiness2 has joined #ruby
minimalism has joined #ruby
mtkd has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
jgpawletko has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
MrBusiness has quit [Ping timeout: 258 seconds]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has quit [Quit: Client exiting]
vjacob has quit [Ping timeout: 252 seconds]
voodoofish4302 has quit [Read error: Connection reset by peer]
voodoofish4301 has joined #ruby
arthurl has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 264 seconds]
AustinIncognito has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
rcvalle has quit [Quit: rcvalle]
AustinMatherne has joined #ruby
Channel6 has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
biberu has quit []
werwe has joined #ruby
<havenwood> !ban werwe
werwe was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
bkxd has joined #ruby
<hellcode> shevy: about @instance_variables in a class, is there anything about code that isn't relative to the task and architecture at hand?
zacstewart has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
ta_ has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
Es0teric has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
poguez_ has joined #ruby
dvinciguerra_ has quit [Ping timeout: 276 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
Channel6 has quit [Quit: Leaving]
Ropeney has joined #ruby
macsteps has joined #ruby
Ropeney has quit [Client Quit]
asianMike has left #ruby [#ruby]
douglascorrea has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
Clayton_ has joined #ruby
KillerFox has joined #ruby
dkam__ has quit [Quit: Be back later ...]
chipotle has joined #ruby
<Clayton_> Hi
Clayton_ is now known as ClayCons
ClayCons is now known as Constantine
gregf has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
Constantine has left #ruby [#ruby]
abhinavmehta has joined #ruby
ClayCons has joined #ruby
abhinavmehta has quit [Client Quit]
cdg has quit [Ping timeout: 260 seconds]
ClayCons has quit [Client Quit]
yoongkan_ has joined #ruby
solars has quit [Ping timeout: 240 seconds]
laska has joined #ruby
<shevy> hellcode well, compare storing all data in a hash, or putting the data into @ivars there
<shevy> many of my classes for commandline use have means to determine whether they run with colour support or without; so I may have this in one instance variable
fanantoxa has quit [Ping timeout: 276 seconds]
<shevy> but there are some more toggleable states so more instance variables spring into existence
devbug has quit [Quit: ZZZzzz…]
yoongkan_ has quit [Remote host closed the connection]
<shevy> when I then have a fairly big class, and its reset() method having like +10 instance variables, it feels clunky and big
yoongkan_ has joined #ruby
sumobob has quit [Ping timeout: 258 seconds]
RegulationD has quit [Remote host closed the connection]
JeanCarl1Machado has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
<hellcode> I agree
<hellcode> I do use hashes to group related values
<hellcode> plus, for the user it ends up being cleaner too
solars has joined #ruby
roamingdog has joined #ruby
neanderslob has quit [Ping timeout: 260 seconds]
macsteps has quit [Remote host closed the connection]
danman has quit [Quit: danman]
devbug has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
lunaelli has joined #ruby
jlhg has joined #ruby