apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
JoshGlzB_ has joined #ruby
flowerha_ has quit [Remote host closed the connection]
brianherman has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
JoshGlz__ has joined #ruby
JoshGlzB_ has quit [Ping timeout: 260 seconds]
<weeb1e_> I see 2.1 has some awesome new profiling and tracing stuff
JoshGlzBrk has quit [Ping timeout: 255 seconds]
<weeb1e_> I hope it helps me track down what is making one of my applications GC go crazy after 12 or 24 hours uptime
JoshGlzBrk has joined #ruby
eyeamaye1 has quit [Quit: Leaving.]
philcrissman has joined #ruby
devdazed has quit [Ping timeout: 240 seconds]
<centrx> weeb1e_, Ruby 2.1 is much faster because of GC changes, and I think what you are referring to might be related to those improvements
aleatorik has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weeb1e_> I was using 2.0.x for that specific application, but I just updated to 2.1.2
jayunit100_ has joined #ruby
<weeb1e_> The issue will only start to occur sometime tomorrow, so I will only be able to start investigating then
<centrx> weeb1e_, I'm not familiar with the new profiling and tracing things you are referring to?
benzrf|offline has joined #ruby
<weeb1e_> But after some uptime, GC starts using ~90% of a CPU core, making the application take up to seconds to respond
JoshGlz__ has quit [Ping timeout: 260 seconds]
benzrf has quit [Quit: leaving]
benzrf|offline is now known as benzrf
<weeb1e_> I assume there must be some bad bug somewhere causing that, but when I profiled it with perftool.rb, all that showed was GC using the CPU time
jamesfordummies has joined #ruby
<pipework> weeb1e_: why would it be a bad bug?
<weeb1e_> centrx: There is some good information in this post, http://tmm1.net/ruby21-profiling/
<centrx> weeb1e_, There were some issues with some of the constant settings used in the GC, but I think those have been fixed by 2.1.2
philcrissman has quit [Ping timeout: 260 seconds]
gtrak has quit [Ping timeout: 264 seconds]
devdazed has joined #ruby
<weeb1e_> pipework: Anything causing such a major GC performance issue is a very bad bug
<weeb1e_> But I mean a bug in my application, not a ruby bug
<pipework> weeb1e_: I think it depends on whether the application is doing things to cause so many objects to be GC'd?
<pipework> Oh gotcha.
<weeb1e_> centrx: I guess we'll see in 12 - 24 hours, if the issue occurs again
nat2610 has quit [Quit: Leaving.]
lyuzashi has joined #ruby
nat2610 has joined #ruby
nat2610 has quit [Max SendQ exceeded]
nat2610 has joined #ruby
<weeb1e_> I started semi-closed alpha testing a little over a day ago, and more users have been invited than I was hoping for at this point
lolmaus has joined #ruby
<centrx> those greedy users
<centrx> stealing all your memory
<weeb1e_> So the higher load will likely cause the issue to occur faster
SilkFox has joined #ruby
<codebrah> collecting all your garbage >:(
<weeb1e_> The strange part is, even with almost no users online, GC would continue using 90% CPU
<weeb1e_> The issue is in no way directly related to load
jamesfordummies has quit [Client Quit]
<pipework> weeb1e_: What is your application built on?
<weeb1e_> But I really hope it was a bug in 2.0's GC, and not in my application, as I have a ton of other important things I need to get to
nateberkopec has quit [Quit: Leaving...]
<weeb1e_> pipework: Eventmachine
<pipework> weeb1e_: So you're not pulling in any large libraries?
mr_snowf1ake has joined #ruby
<weeb1e_> This platform is made up of 3 different applications, but the affected one is the only one running on ruby 2.x
iteratorP has joined #ruby
<weeb1e_> These are most of its gems: activesupport, mongo_mapper, eventmachine, em-resolv-replace, em-synchrony, em-websocket, em-http-request, em-irc
<weeb1e_> (they share a gemfile, and some but not all gem groups)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fezzler has quit [Quit: Leaving]
<weeb1e_> I've monkeypatched the mongo driver to use eventmachine and fibers
marr has quit [Ping timeout: 260 seconds]
Bumptious has quit [Remote host closed the connection]
mr_snowf1ake has quit [Client Quit]
funburn has quit [Quit: funburn]
<weeb1e_> pipework: I don't know exactly what you consider a "large library"
<weeb1e_> Eventmachine is not exactly small
ddv has quit [Ping timeout: 260 seconds]
<weeb1e_> I roll most things myself, so I rather use sinatra than rails for instance
kith has quit [Read error: Connection reset by peer]
ddv has joined #ruby
<pipework> Ah at least you're not using something that barely leaves any room for your application after it's been loaded.
luckyruby has joined #ruby
naw_ has quit [Read error: Connection reset by peer]
naw has joined #ruby
benzrf is now known as benzrf|offline
kith has joined #ruby
amclain has quit [Quit: Leaving]
codebrah has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Ping timeout: 244 seconds]
<weeb1e_> pipework: I only build single threaded asynchronous reactor based applications, so performance is very important to me
<pipework> weeb1e_: I'm sorry. I prefer multi-threaded asynchronous reactor-based software.
<weeb1e_> Haha
<pipework> That way you can adjust your reactors according to need without having only one.
<weeb1e_> If I need multiple reactors, I would rather use multiple processes
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> My condolences.
sfate has quit [Ping timeout: 255 seconds]
<shevy> reactors?
<shevy> are you guys going to nuke something?
<pipework> shevy: No, we're going to overreact.
chipotle has quit [Quit: cya]
<pipework> weeb1e_: Setting affinity sounds silly
zz_karupa is now known as karupa
oo_ has joined #ruby
freerobby has joined #ruby
Spami has joined #ruby
<weeb1e_> It does, considering all recent linux kernels are far better at managing your processes CPU time than you are
nahtnam has joined #ruby
<centrx> Is that an insult
<nahtnam> Hey! Is there an online guide or book that goes over Ruby's execution method
dvabr_ is now known as dvabr
gtrak has joined #ruby
mrbrklyn has quit [Read error: Connection reset by peer]
Xiti has quit [Quit: Leaving]
<centrx> nahtnam, Try looking up how MRI works. MRI is the reference Ruby Interpreter
oo_ has quit [Remote host closed the connection]
<centrx> nahtnam, Others, like JRuby, use other techniques, like the JVM JRuby
<pipework> Mmm JVM
<nahtnam> centrx: Thanks! I am trying to study for this! http://www.ruby.or.jp/en/certification/examination/
<pipework> nahtnam: Metaprogramming ruby explains method dispatch
<pipework> nahtnam: no, buy from pragprog
nat2610 has quit [Ping timeout: 255 seconds]
<nahtnam> pipework: Do you reccomend the first or the second one?
nat2610 has joined #ruby
eyeamaye has joined #ruby
<pipework> nahtnam: Well, I don't believe in certifications, so choose the one that's most applicable for the test.
<nahtnam> Kk. Thanks for your help! :)
<pipework> It's for 1.8.7, so the first one
funburn has joined #ruby
<centrx> nahtnam, Their Silver certification uses 1.8.7, but their other certifications are still "Under Development", so something is fishy/old
<pipework> I would laugh pretty hard at anyone with that on their CV
<centrx> Copyright©2011 Ruby Association
jxf has joined #ruby
<pipework> nahtnam: Did you run out of useful things to do with your time?
<nahtnam> pipework: Lol, my dad is making me do it. Apparently it will look good on my college app
<centrx> ah college app, yes lots of things will look good there, go for it
<pipework> nahtnam: oh, college I see. Perhaps so.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
PanPan has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
toretore has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
echooo has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
Atrumx has quit [Quit: exit]
beef-wellington has joined #ruby
<nobitanobi> hey guys
<nobitanobi> shevy: I have a present for you
InfraRuby has joined #ruby
matchaw has quit [Ping timeout: 245 seconds]
<centrx> If he doesn't show up, I'm taking it
matchaw has joined #ruby
<shevy> nobitanobi hmm
<shevy> when I see code like that I instantly eliminate it
<shevy> a, a = [1, 2]
<nobitanobi> :D
<shevy> that one is pretty cool though
<shevy> but it is actually logical
<shevy> right pipework?
<pipework> right
<shevy> \o/
<pipework> Only the first section looks like something you could actually hide in code without looking sketchy.
nateberkopec has joined #ruby
<pipework> shevy: The first section looks like legitimate accidents.
dopie has quit [Read error: Connection reset by peer]
<eam> I like it
x1337807x has joined #ruby
devdazed has joined #ruby
aleatorik has joined #ruby
<centrx> Are we hacking
matchaw has quit [Ping timeout: 264 seconds]
<pipework> aint we doe
nat2610 has quit [Quit: Leaving.]
matchaw has joined #ruby
nat2610 has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
aleatorik has quit [Client Quit]
Zebroid has joined #ruby
sevenseacat has joined #ruby
toastynerd has quit [Remote host closed the connection]
<shevy> I am!
<shevy> but now I am going to bed
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
funburn has quit [Quit: funburn]
<nobitanobi> night shevy
Zebroid has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: yawn]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has joined #ruby
mercwithamouth has joined #ruby
arya_ has joined #ruby
chrishough has quit [Quit: chrishough]
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
arya_ has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 255 seconds]
nanoyak has joined #ruby
x1337807x has joined #ruby
benzrf|offline is now known as benzrf
skysploit has quit [Remote host closed the connection]
nahtnam has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
bbloom has joined #ruby
CuriousMind has quit [Ping timeout: 246 seconds]
tewlz has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
braincra- has joined #ruby
bmurt has quit []
icebourg has joined #ruby
SilkFox has quit [Read error: Connection reset by peer]
phoo1234567 has quit [Quit: Leaving]
djbkd has joined #ruby
icebourg_ has joined #ruby
SilkFox has joined #ruby
braincrash has quit [Ping timeout: 264 seconds]
KLVTZ has joined #ruby
jxf has quit [Ping timeout: 250 seconds]
codebrah has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
icebourg has quit [Ping timeout: 272 seconds]
DEA7TH has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amystephen has quit [Quit: amystephen]
nat2610 has quit [Quit: Leaving.]
tokik has joined #ruby
icebourg_ has quit []
chrishough has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
mrommelf has joined #ruby
Matadoer has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Matadoer has joined #ruby
jxf has joined #ruby
amystephen has joined #ruby
djbkd has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
TheNet has quit [Quit: Leaving...]
momomomomo has quit [Quit: momomomomo]
jmbrown412 has joined #ruby
robustus has joined #ruby
kenneth has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
jbomo has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
sputnik13 has joined #ruby
Zebroid has joined #ruby
jmbrown412 has joined #ruby
KLVTZ has quit [Ping timeout: 260 seconds]
flowerhack has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Zebroid has quit [Ping timeout: 250 seconds]
danijoo_ has joined #ruby
jmbrown412 has quit [Ping timeout: 260 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devdazed has quit [Ping timeout: 244 seconds]
<weeb1e_> centrx: It was not meant as an insult
zmisc has joined #ruby
eyeamaye has quit [Quit: Leaving.]
devdazed has joined #ruby
jayunit100_ has quit [Quit: jayunit100_]
skysploit has joined #ruby
maletor has joined #ruby
Grantlyk has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
flowerhack has quit [Remote host closed the connection]
Bumptious has joined #ruby
mr_snowf1ake has joined #ruby
ARCADIVS has joined #ruby
chipotle has joined #ruby
tylerkern has joined #ruby
ti-wali___ has joined #ruby
Bumptiou_ has joined #ruby
ti-wali has quit [Ping timeout: 240 seconds]
Bumptious has quit [Ping timeout: 255 seconds]
hamakn has joined #ruby
oo_ has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
codebrah has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
koderok has joined #ruby
jxf has quit [Ping timeout: 260 seconds]
koderok has quit [Read error: Connection reset by peer]
JuanS has joined #ruby
starless has quit [Quit: Leaving]
koderok has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
philcrissman has joined #ruby
ti-wali___ has quit [Remote host closed the connection]
charliesome has joined #ruby
JuanS is now known as Holman
philcrissman has quit [Ping timeout: 264 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InhalingPixels has quit [Remote host closed the connection]
skysploit has quit []
bogeyd6 has quit [Ping timeout: 250 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
spastorino has quit [Quit: Connection closed for inactivity]
eyeamaye has joined #ruby
devdazed has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
devdazed has joined #ruby
tewlz has joined #ruby
<pontiki> evening rubyists
<pipework> hello rubbyist
nateberkopec has quit [Quit: Leaving...]
tectonic has quit []
Wolland has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
kireevco has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oo_ has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
<benzrf> rubbby
Angelo_ has joined #ruby
Zebroid has joined #ruby
sputnik13 has joined #ruby
funburn has joined #ruby
oo_ has joined #ruby
djbkd has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
saarinen has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
devyn has quit [Read error: Connection reset by peer]
krz has joined #ruby
devyn has joined #ruby
kireevco has quit [Quit: Leaving.]
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
chipotle has quit [Ping timeout: 250 seconds]
<nobitanobi> do you guys happen to know any resource that analyzes the big o notation of defined Ruby methods? e.g: length is O(1)...?
<centrx> nobitanobi, They're generally the same as the best-practice algorithms you can find in the computer science and art at large
<nobitanobi> centrx: I see
funburn has quit [Quit: funburn]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
djbkd has joined #ruby
<centrx> nobitanobi, For example, I expect #length to be some attribute of the array that is accessed in constant-time, and indeed you can look in the source code and find that it looks like it is so
sputnik13 has joined #ruby
<nobitanobi> yeah, centrx that is how I discovered the O(1)
<nobitanobi> I was just thinking that somebody would have collected which algorithms were chosen for each method
<nobitanobi> it is interesting to me what is besides the lovely high level method :)
<nobitanobi> or at least, what is its complexity
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
thomasxie has joined #ruby
<centrx> nobitanobi, I would learn about the topic in general, that's where most of the material is, not specific to Ruby
<centrx> nobitanobi, Most of the fancy algorithms are not in Ruby core or even stdlib, except for say Array#bsearch
<centrx> nobitanobi, Most of it is straightforward Enumerable iteration, which is always fundamentally O(n)
<centrx> nobitanobi, Hash is essentially a "hash table"
<nobitanobi> centrx: right now my concern is that I am starting to prepare for interviews, and I am 'comfortable' writing in Ruby, and I am planning on using it to answer the questions, but obviously I am also afraid that is a 'too high level' language.
bogeyd6 has joined #ruby
<nobitanobi> that is why I wanted to at least, know which algorithms were behind some methods that I tend to use
<centrx> nobitanobi, Try implementing the sorting and/or searching algorithms in Ruby
<nobitanobi> centrx: right. Instead of just using .sort you mean, right?
SilkFox has quit [Ping timeout: 240 seconds]
devyn has quit [Read error: Connection reset by peer]
vsoftoil_ has quit []
devyn has joined #ruby
Wolland has quit [Remote host closed the connection]
<centrx> nobitanobi, right, these Ruby methods implement more low-level techniques in dealing with data
<nobitanobi> yep. centrx good point
<centrx> nobitanobi, So it turns out #sort uses an algorithm called "Quicksort"
GriffinHeart has joined #ruby
<centrx> nobitanobi, This is a topic that is relevant to any language, and you can implement the behavior of Quicksort in Ruby, without using the pre-implemented high-level function
<nobitanobi> centrx: yeah. Thanks for your help
<nobitanobi> I want to avoid going back to the pointers.
<nobitanobi> :D
vsoftoiletpaper has joined #ruby
abuzze_ has joined #ruby
nat2610 has joined #ruby
<centrx> nobitanobi, Yeah that's good to know too. Learning C is valuable
mary5030 has quit [Remote host closed the connection]
<centrx> nobitanobi, "Data Structures & Algorithms" is the general topic
eka has joined #ruby
havenwood has joined #ruby
<nobitanobi> centrx: yep, I agree is valuable
abuzze has quit [Ping timeout: 240 seconds]
<pipework> Not just valuable, super fun and cool.
nobitanobi has quit [Remote host closed the connection]
<centrx> same thing ||=P
braincra- has quit [Quit: bye bye]
nobitanobi has joined #ruby
<nobitanobi> pipework: do you find it fun?
<pipework> centrx: Not all valuable things are super fun and cool.
<pipework> nobitanobi: Of course.
<nobitanobi> pipework: I admire you
ghr has joined #ruby
<pipework> nobitanobi: Don't.
dopie has joined #ruby
<nobitanobi> already did
<nobitanobi> :)
djbkd has quit [Remote host closed the connection]
<pipework> rood
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
braincrash has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
koderok has quit [Quit: koderok]
_2_Lima134 has joined #ruby
lusory has joined #ruby
chipotle has joined #ruby
_2_Lima134 has left #ruby [#ruby]
infinitone has quit [Ping timeout: 264 seconds]
Photism has quit [Quit: Leaving]
Holman is now known as none
InhalingPixels has joined #ruby
none is now known as Guest94419
mikepack has joined #ruby
icebourg has joined #ruby
Angelo_ has quit [Quit: Angelo_]
mr-foobar has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
michaeldeol has joined #ruby
InhalingPixels has quit [Ping timeout: 250 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has joined #ruby
sputnik13 has joined #ruby
kireevco has quit [Quit: Leaving.]
momomomomo has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has quit [Client Quit]
nanoyak has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
tewlz has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
tylerkern has quit [Ping timeout: 260 seconds]
sputnik13 has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
weems|nix has joined #ruby
weems|nix has quit [Changing host]
weems|nix has joined #ruby
tylerkern has joined #ruby
jmbrown412 has joined #ruby
momomomomo has quit [Quit: momomomomo]
KLVTZ has joined #ruby
Matadoer has quit [Remote host closed the connection]
Zebroid has joined #ruby
Matadoer has joined #ruby
nat2610 has quit [Quit: Leaving.]
poguez_ has joined #ruby
amargherio has joined #ruby
nat2610 has joined #ruby
tylerkern has quit [Client Quit]
jmbrown412 has quit [Ping timeout: 260 seconds]
dseitz has joined #ruby
SchweetPapa has quit [Ping timeout: 260 seconds]
Zebroid has quit [Ping timeout: 272 seconds]
KLVTZ has left #ruby [#ruby]
echooo has quit [Remote host closed the connection]
echooo has joined #ruby
Wolland has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
reset has joined #ruby
chrishough has quit [Quit: chrishough]
vsoftoiletpaper has quit []
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
SidWu_ has joined #ruby
SidWu_ has quit [Max SendQ exceeded]
Shidash has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Matadoer has quit [Remote host closed the connection]
Kricir has joined #ruby
Matadoer has joined #ruby
djbkd has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
philcrissman has joined #ruby
vsoftoiletpaper has joined #ruby
abuzze has joined #ruby
Cache_Money_ has joined #ruby
mary5030 has joined #ruby
devdazed has joined #ruby
tkuchiki_ has joined #ruby
Ripp__ has joined #ruby
philcrissman has quit [Ping timeout: 240 seconds]
abuzze_ has quit [Ping timeout: 272 seconds]
nobitanobi has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 250 seconds]
cpt_yossarian has joined #ruby
gr33n7007h has quit [Quit: Leaving]
heftig has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
saarinen has quit [Quit: saarinen]
heftig has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
craigp has joined #ruby
benzrf is now known as benzrf|offline
craigp has quit [Read error: Connection reset by peer]
koderok has joined #ruby
craigp has joined #ruby
_cpt_yossarian_ has joined #ruby
_cpt_yossarian_ has quit [Client Quit]
ra4king has joined #ruby
<ra4king> Hello!
_cpt_yossarian_ has joined #ruby
<ra4king> I have to write a quick and dirty "website" for backend purposes
_cpt_yossarian_ has quit [Read error: Connection reset by peer]
<ra4king> this site will require a simple login then some forms to complete, for the backend to process into files
<ra4king> what's the easiest way to setup this website? cgi or an appserver?
<Wolland> rails
<ra4king> I really don't feel like learning to use a whole framework and setup a website before saturday
<ra4king> the backend code can be done easily, however I just need some way to produce the HTML pages
yfeldblum has quit [Read error: Connection reset by peer]
<Wolland> then just do html + server of your choice
cpt_yossarian has quit [Ping timeout: 260 seconds]
InhalingPixels has joined #ruby
<Wolland> but, 'rails new mynewapp' gives you a working web app
yfeldblum has joined #ruby
<Wolland> there isn't THAT much to learn for something that you need
<Wolland> rails + devise gem, gives you working auth
<ra4king> I don't know much about rails, does it include a server that listens to port 80?
<ra4king> or do I have to connect it to a 3rd party server like Apache/Nginx?
<Wolland> in dev it does, in production you would use 3rd party, but can use built in server
<Wolland> uses WEBrick in dev
<Wolland> or rather has WEBrick as part of it, or you can use Thin
<pipework> I'd not use webrick in development.
<pipework> like, ever.
babykosh has quit [Quit: babykosh]
<pipework> Also, any rails questions should move to #rubyonrails
<pipework> Unless we're talking about how shit rails can be. In that case, feel free to query me. :p
beef-wellington has quit [Ping timeout: 260 seconds]
InhalingPixels has quit [Ping timeout: 272 seconds]
jbomo has quit []
lxsameer has joined #ruby
amargherio has quit [Remote host closed the connection]
davedev2_ has joined #ruby
balazs has quit [Ping timeout: 255 seconds]
<ra4king> pipework: hah, considering you think rails is shit, do you have any suggestions for how best to easily hack a 2-page site together?
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ra4king> can I just use CGI and not get shot?
<pipework> ra4king: Dynamic pages?
davedev24_ has quit [Read error: Connection reset by peer]
<pipework> sinatra will get you there right quick.
<pipework> rack will too, but requires other gems or some wiring to get template rendering.
benzrf|offline is now known as benzrf
ta has quit [Remote host closed the connection]
sputnik13 has joined #ruby
zkay11 has quit [Remote host closed the connection]
<ra4king> pipework: sinatra looks really good
<ra4king> just a simple "require 'sinatra'
<pipework> ra4king: It's not shit, that's for sure.
<ra4king> thank you very much, I'll hack together my site using that
<pipework> Cheers.
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Zebroid has joined #ruby
thomasxie has quit [Quit: Leaving.]
<sevenseacat> oy, webrick is fine in dev
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<pipework> sevenseacat has more patience for inferiority than I do
<sevenseacat> yeah i know a lot about being inferior :(
<ra4king> :(
<pipework> sevenseacat: Not what I meant. :(
tectonic has joined #ruby
mikepack has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 272 seconds]
whyy has joined #ruby
oo_ has quit [Ping timeout: 260 seconds]
devdazed has quit [Ping timeout: 250 seconds]
Guest94419 has quit []
tectonic has quit []
devdazed has joined #ruby
rogerhub has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dseitz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 240 seconds]
Cache_Money_ has quit [Ping timeout: 260 seconds]
whyy has quit [Read error: Connection reset by peer]
whyy has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
j_mcnall_ has joined #ruby
koderok has quit [Quit: koderok]
nanoyak has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Quit: WeeChat 0.4.3]
Spami has quit [Quit: This computer has gone to sleep]
rogerhub has left #ruby [#ruby]
EvanR_ has quit [Read error: Connection reset by peer]
yacks has joined #ruby
EvanR_ has joined #ruby
kireevco has joined #ruby
Fezzler has joined #ruby
nat2610 has quit [Quit: Leaving.]
Kricir has quit [Remote host closed the connection]
wchun has joined #ruby
kireevco has quit [Client Quit]
oo_ has joined #ruby
reset has quit [Quit: Leaving...]
icebourg has quit []
charliesome has joined #ruby
Kricir has joined #ruby
Fezzler has quit [Quit: Leaving]
koderok has joined #ruby
x1337807x has joined #ruby
anaeem1 has joined #ruby
tectonic has joined #ruby
Atrumx has joined #ruby
Nahra has quit [Ping timeout: 250 seconds]
x1337807x has quit [Ping timeout: 264 seconds]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
GriffinHeart has quit [Remote host closed the connection]
icebourg has joined #ruby
Blizzy has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
InhalingPixels has joined #ruby
razum2um has joined #ruby
Nahra has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
benlieb has joined #ruby
diegoviola has joined #ruby
doev has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has quit [Quit: Quitting]
maletor has quit [Quit: Computer has gone to sleep.]
duncannz has joined #ruby
Guest37821 has joined #ruby
maletor has joined #ruby
flowerhack has joined #ruby
Rollabunna has quit [Remote host closed the connection]
icebourg has quit []
tectonic has quit []
tobago has joined #ruby
adantj has joined #ruby
GriffinHeart has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zebroid has joined #ruby
arup_r has joined #ruby
JoshGlzBrk has joined #ruby
funburn has joined #ruby
Zebroid_ has joined #ruby
tagrudev has joined #ruby
Rollabunna has joined #ruby
Zebroid has quit [Ping timeout: 244 seconds]
arup_r_ has joined #ruby
techsethi has joined #ruby
funburn has quit [Client Quit]
ptrrr has joined #ruby
starkhalo has quit [Ping timeout: 245 seconds]
Zebroid_ has quit [Ping timeout: 260 seconds]
kyb3r_ has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
philcrissman has joined #ruby
benzrf is now known as benzrf|offline
j_mcnall_ has quit [Quit: さよなら]
benzrf|offline is now known as benzrf
Morkel has joined #ruby
philcrissman has quit [Ping timeout: 240 seconds]
IceDragon has quit [Quit: Space~~~]
craigbowen3 has joined #ruby
mercwithamouth has joined #ruby
Jameser` has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
Aryasam has joined #ruby
Ripp__ has quit [Remote host closed the connection]
Aryasam has quit [Client Quit]
lkba has quit [Ping timeout: 244 seconds]
xcm has joined #ruby
CorpusCallosum has quit [Ping timeout: 250 seconds]
michaeldeol has joined #ruby
gr33n7007h has joined #ruby
Morkel has quit [Quit: Morkel]
timonv_ has joined #ruby
b00stfr3ak has joined #ruby
Mon_Ouie has joined #ruby
arya_ has joined #ruby
vsoftoiletpaper has quit []
jamesfordummies has joined #ruby
zmisc has quit [Quit: Bye]
fantasticsid has quit [Remote host closed the connection]
bricker`LA has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
bal has joined #ruby
doev has quit [Ping timeout: 250 seconds]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
doev has joined #ruby
yfeldblum has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
djbkd has quit [Quit: My people need me...]
Cache_Money has joined #ruby
tectonic has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
e4xit has quit [Read error: Connection reset by peer]
e4xit has joined #ruby
eyeamaye has quit [Quit: Leaving.]
arturaz has joined #ruby
hololeap has joined #ruby
MatthewsFace has quit [Quit: Leaving]
techsethi has quit [Quit: techsethi]
apeiros_ has joined #ruby
InhalingPixels has joined #ruby
bigkevmcd has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
KnownSyntax has quit [Read error: Connection reset by peer]
eyeamaye has joined #ruby
InhalingPixels has quit [Ping timeout: 244 seconds]
max06 has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
eyeamaye has quit [Client Quit]
starless has joined #ruby
x1337807x has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Takle has joined #ruby
apeiros_ has quit [Remote host closed the connection]
user258467 has joined #ruby
tectonic has quit []
nat2610 has joined #ruby
top4o has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
Takle has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Zebroid has joined #ruby
Killerkeksdose has joined #ruby
benlieb has quit [Quit: benlieb]
hololeap has quit [Ping timeout: 264 seconds]
oo_ has quit [Read error: Connection reset by peer]
Zebroid has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
jprovazn has joined #ruby
Nahra has quit [Ping timeout: 250 seconds]
razum2um has quit [Quit: Leaving.]
timonv_ has quit [Remote host closed the connection]
Nahra has joined #ruby
clauswitt has joined #ruby
zettam has quit [Read error: Connection reset by peer]
amundj has joined #ruby
arya_ has quit [Quit: sayonara^_^]
W0rmDr1nk has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zettam has joined #ruby
Advocation has joined #ruby
kenneth has joined #ruby
gruz0[russia] has joined #ruby
doev has quit [Quit: Verlassend]
CorySimmons has joined #ruby
hololeap has joined #ruby
ptrrr has quit [Quit: ptrrr]
devdazed has quit [Ping timeout: 272 seconds]
gauke has joined #ruby
MatthewsFace has joined #ruby
Xeago has joined #ruby
Matadoer has quit [Remote host closed the connection]
mary5030 has joined #ruby
jhass|off is now known as jhass
Ankhers has quit [Remote host closed the connection]
devdazed has joined #ruby
techsethi has joined #ruby
Ankhers has joined #ruby
andrewlio has joined #ruby
coderhs has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
mary5030 has quit [Ping timeout: 246 seconds]
jmbrown412 has joined #ruby
techsethi_ has joined #ruby
bronson has joined #ruby
techsethi has quit [Ping timeout: 260 seconds]
techsethi_ is now known as techsethi
p0sixpscl has joined #ruby
xenomorph is now known as {xenomorph}
basiclaser has quit [Excess Flood]
user258467 has quit [Quit: Quitte]
basiclaser has joined #ruby
Kricir has joined #ruby
jdj_dk_ has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
asmodlol has joined #ruby
jmbrown412 has quit [Ping timeout: 260 seconds]
jaxxstorm has quit [Quit: ZNC - http://znc.in]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iterator_ has joined #ruby
iterator_ has quit [Remote host closed the connection]
jamesfordummies has quit [Remote host closed the connection]
thomasxie has joined #ruby
Takle has joined #ruby
Macaveli has joined #ruby
iteratorP has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cya]
top4o_ has joined #ruby
Ilyas has joined #ruby
alex88 has joined #ruby
dseitz has joined #ruby
jaxxstorm has joined #ruby
threesixes has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
iteratorP has joined #ruby
InhalingPixels has joined #ruby
MatthewsFace has joined #ruby
joast has quit [Ping timeout: 255 seconds]
oo_ has quit [Read error: No route to host]
oo__ has joined #ruby
j416_ has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
j416 has joined #ruby
W0rmDr1nk has joined #ruby
apeiros has joined #ruby
InhalingPixels has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
p0sixpscl has quit [Remote host closed the connection]
top4o has joined #ruby
lkba has joined #ruby
timonv_ has joined #ruby
whyy has quit [Remote host closed the connection]
top4o_ has quit [Ping timeout: 245 seconds]
zarubin has joined #ruby
p0sixpscl has joined #ruby
mijicd has joined #ruby
xcv has joined #ruby
xcv has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philcrissman has joined #ruby
ta has joined #ruby
Morkel has joined #ruby
wu_lmao has joined #ruby
mijicd has quit [Client Quit]
mijicd has joined #ruby
sk87 has joined #ruby
ptrrr has joined #ruby
anarang has joined #ruby
mijicd has quit [Client Quit]
mijicd has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
mijicd has quit [Client Quit]
mijicd has joined #ruby
whyy has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
mijicd has quit [Client Quit]
Zebroid has joined #ruby
mijicd has joined #ruby
ghr has joined #ruby
<postmodern> silly question, how do you create an anonymous class of a base-class, but preserve the output of inspect?
timfoo has quit [Ping timeout: 244 seconds]
arup_r_ has quit [Remote host closed the connection]
<yxhuvud> Class.new(Integer) ?
fold has quit [Ping timeout: 260 seconds]
Zebroid has quit [Ping timeout: 272 seconds]
jprovazn has quit [Ping timeout: 260 seconds]
<yxhuvud> or do that remove the output of inspect?
<postmodern> appears i need to do: def klass.inspect; "#<#{superclass}: ...>"; end
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Quit: Leaving]
<jhass> >> a = Class.new(Array); a.new([1,2]).inspect
<eval-in> jhass => "[1, 2]" (https://eval.in/178059)
jdj_dk_ has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
noop has joined #ruby
LiohAu has joined #ruby
JBreit has joined #ruby
<Mon_Ouie> It's really annoying for debugging when objects lie about what they are
<postmodern> jhass, Class.new(Foo).inspect is what i mean
* postmodern is building a DSL made entirely of lies
Kricir has quit [Remote host closed the connection]
<wasamasa> postmodern: your nick is the name of a postgres library btw
chth0n has joined #ruby
<postmodern> "Postmodern is a Common Lisp library for interacting with PostgreSQ" TIL
<wasamasa> hmm, thought it was a chicken library
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
Kricir has joined #ruby
<wasamasa> apparently not
qba73 has joined #ruby
<postmodern> the amount of silly programming language names is too damn high
<postmodern> also apparently there's a perl-like language called Sleep
<sevenseacat> brainfuck says no >:(
jprovazn has joined #ruby
hellangel7 has joined #ruby
redlegion has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
JBreit has left #ruby ["Leaving"]
whyy has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 255 seconds]
devdazed has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
devdazed has joined #ruby
timonv_ has quit [Remote host closed the connection]
r0bby_ has joined #ruby
senayar has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 244 seconds]
RandyT has joined #ruby
adantj has quit [Ping timeout: 250 seconds]
xcv has joined #ruby
funburn has joined #ruby
senayar has joined #ruby
_lazarevsky has joined #ruby
<_lazarevsky> morning all
<_lazarevsky> a quick q
<_lazarevsky> I have an array of strings
Joulse has joined #ruby
<_lazarevsky> I would like to write a switch statement instead of multiple ifs
<_lazarevsky> basically i wanna say if it's the case that the array contains the first string doThis()
krisquigley has joined #ruby
<_lazarevsky> if it's the case that the array contains this other string then doThat()
<_lazarevsky> the strings represent different roles a user can be in and each role has got different priority
nat2610 has quit [Quit: Leaving.]
<_lazarevsky> I wanna get the highest priority role out of all in the array
kaspergrubbe_ has joined #ruby
<tobiasvl> what a quick question
toastynerd has joined #ruby
<existensil> _lazarevsky: what about something like: found = roles & priorities; case found.first
<_lazarevsky> lol @ tobiasvl
yakko has joined #ruby
<existensil> where roles is your array, priorities are the roles in the order of priority, etc.
redlegion has joined #ruby
<_lazarevsky> existensil: sounds very elegant indeed
timfoo has joined #ruby
<existensil> I have my moments
<existensil> :-P
codecop has joined #ruby
<_lazarevsky> so it returns the intersection of the two arrays in the order of priority as in the second operand (array), namely priorities
<_lazarevsky> let me test that real quick
whyy has joined #ruby
InfraRuby has left #ruby [#ruby]
<existensil> crap, reverse the order: priorities & roles
<existensil> the left hand array determines the order of the result
<existensil> but, yes, its just a simple intersection
koderok has quit [Quit: koderok]
<_lazarevsky> existensil: yea :)
<_lazarevsky> needs to be reversed
<_lazarevsky> shweet mate
<_lazarevsky> thanks so much
<existensil> np
arup_r has joined #ruby
chth0n has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 244 seconds]
koderok has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redlegion has quit [Ping timeout: 240 seconds]
Deele has joined #ruby
toastynerd has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
funburn has quit [Quit: funburn]
Takle has quit [Remote host closed the connection]
xcm has quit [Read error: Connection reset by peer]
felgenh3 has quit [Quit: felgenh3]
xcm has joined #ruby
redlegion has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
<postmodern> _lazarevsky, case/when works by calling #===
redlegion has quit [Ping timeout: 240 seconds]
<postmodern> _lazarevsky, try: when lambda { |a| a.include?('foo') }
ephemerian has joined #ruby
endash has joined #ruby
davispuh has joined #ruby
Takle has joined #ruby
ptrrr has joined #ruby
kaspertidemann has joined #ruby
<existensil> interesting. wasn't aware you could use blocks there
dumdedum has joined #ruby
craigp has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
olivier_bK has joined #ruby
redlegion has joined #ruby
<Mon_Ouie> You can do when *array
timonv_ has joined #ruby
Zebroid has joined #ruby
craigp has joined #ruby
<existensil> how do you mean?
InfraRuby has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Zebroid has quit [Ping timeout: 250 seconds]
lyuzashi has quit [Ping timeout: 252 seconds]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
GeekOnCoffee has quit [Ping timeout: 272 seconds]
Wolland has quit [Remote host closed the connection]
starless has quit [Quit: Leaving]
Atttwww has quit [Ping timeout: 245 seconds]
shovel_boss has joined #ruby
shovel_boss has left #ruby ["Leaving"]
Nahra has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
ari-_-e has joined #ruby
sfate has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
banister has joined #ruby
davedev24_ has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
bronson has quit [Quit: bronson]
craigp has quit [Remote host closed the connection]
doev has joined #ruby
Vile` has joined #ruby
zarubin has quit []
endash has quit [Read error: Connection reset by peer]
Dr3amc0d3r|away has quit [Ping timeout: 264 seconds]
Zebroid has joined #ruby
<Mon_Ouie> >> case 1; when *[1, 2, 3] then true; else false; end
<eval-in> Mon_Ouie => true (https://eval.in/178079)
Dr3amc0d3r|away has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
<godd2> wth?
<godd2> What happened to the principle of least surprise? haha
<Mon_Ouie> Why would that be surprising? Basically everywhere where you can have a list of comma-separated things you can replace it by *array
wallerdev has quit [Quit: wallerdev]
<godd2> Yea but you can't do it to an array literal can you?
<jhass> >> [*[1,2,3]]
<eval-in> jhass => [1, 2, 3] (https://eval.in/178080)
<jhass> sure you can
<Mon_Ouie> ? p(*[1, 2, 3]) is p(1, 2, 3)
<Mon_Ouie> It's just not very useful
felgenh3 has joined #ruby
felgenh3 has left #ruby [#ruby]
<godd2> I know that [*1..3] will splay the range out into elements and I know that's called a splat operator, is it the same name for that?
Zebroid has quit [Ping timeout: 250 seconds]
<jhass> yes
<godd2> oh ok cool. thanks guys
craigp has joined #ruby
wald0 has joined #ruby
<apeiros> you can do it with rescue's too
GeekOnCoffee has joined #ruby
<apeiros> >> begin; raise ArgumentError; rescue TypeError, LoadError, ArgumentError; puts "yay!"; end
<eval-in> apeiros => yay! ... (https://eval.in/178081)
devdazed has quit [Ping timeout: 272 seconds]
koderok has quit [Quit: koderok]
<apeiros> >> begin; raise ArgumentError; rescue *[TypeError, LoadError, ArgumentError]; puts "yay!"; end
<eval-in> apeiros => yay! ... (https://eval.in/178082)
<existensil> Mon_Ouie: very interesting. thanks.
kaspertidemann has quit []
Advocation has joined #ruby
CorySimmons has quit [Quit: Bye!]
marr has joined #ruby
devdazed has joined #ruby
AlSquire has joined #ruby
sfate has quit [Ping timeout: 240 seconds]
arturaz has quit [Remote host closed the connection]
philcrissman has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
Rollabunna has quit [Read error: No route to host]
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
kaspertidemann has joined #ruby
Rollabunna has joined #ruby
InhalingPixels has joined #ruby
Wolland has joined #ruby
devdazed has quit [Ping timeout: 260 seconds]
r0bby_ is now known as robbyoconnor
workmad3 has joined #ruby
philcrissman has quit [Ping timeout: 245 seconds]
Advocation has quit [Quit: Advocation]
benlieb has quit [Quit: benlieb]
maasha has joined #ruby
klaut has quit [Ping timeout: 244 seconds]
<maasha> hello
Xeago has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago_ has joined #ruby
InfraRuby has left #ruby [#ruby]
Shidash has quit [Ping timeout: 272 seconds]
Xeago_ has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
Xeago has joined #ruby
Advocation has joined #ruby
Xeago_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devdazed has joined #ruby
amacou has joined #ruby
ghr has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
Kricir has joined #ruby
luckyruby has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
banister has joined #ruby
<maasha> Obviusly I am doing something wrong here: https://gist.github.com/anonymous/4696a373dcaf928b7b05 since I get that Stack level too deep error. So the question is, how to pass two enumerators two a lambda?
<maasha> to*
Wolland has joined #ruby
Xeago_ has quit [Ping timeout: 272 seconds]
<workmad3> maasha: I think what you're doing wrong there is re-assigning input
<workmad3> maasha: so what you're effectively doing is calling your lmb object with both input and output as the same object
benzrf is now known as benzrf|offline
<maasha> workmad3: sure. and the elegant thing to do whould be?
<jhass> besides, what's wrong with .map
yacks has quit [Ping timeout: 250 seconds]
<workmad3> maasha: don't reassign locals
Wolland_ has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
ohcibi has quit [Read error: Connection reset by peer]
<ddv> seems like you want to use .inject, but maybe i'm wrong
spider-mario has joined #ruby
<workmad3> ddv: nah, it's a map
<ddv> ok
<workmad3> ddv: output = input.map{|i| i+1}
<ddv> oh
<workmad3> maasha: ^^ that's your code rewritten btw ;)
Nahra has joined #ruby
Takle has quit [Remote host closed the connection]
<maasha> workmad3: thank you very much, but it was just a place holder function for something more complex.
<existensil> if you rename your enumerator your code works
Wolland_ has quit [Ping timeout: 260 seconds]
<workmad3> maasha: right, but if the complex bit is applying an operation to every item in one collection to produce a second from the output, then it's still a map ;)
<workmad3> maasha: you just change the block
GriffinHeart has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
abuzze has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
<maasha> workmad3: well, I am exploring lambdas and enumerables here. Using an array of Enums to avoid reassigning local variables still gives that Stack level too deep error: https://gist.github.com/maasha/7e0095ff4c3da20d5a67
GriffinHeart has quit [Ping timeout: 255 seconds]
abuzze has joined #ruby
lanox has joined #ruby
<workmad3> maasha: because you're still calling that Enumerator.new block with *itself*
thomasxie has left #ruby [#ruby]
GriffinHeart has joined #ruby
<maasha> workmad3: hm, I thought it was a new enumerable object.
Advocation has quit [Quit: Advocation]
<workmad3> maasha: output == the new enumerable object, enums.last == the new enumerable object
<workmad3> maasha: so you end up with essentially 'lmb.call(output, output)
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
m8 has joined #ruby
Morkel has quit [Quit: Morkel]
Advocation has joined #ruby
sk87 has joined #ruby
CorySimmons has joined #ruby
jhass is now known as jhass|off
<maasha> workmad3: but input2 = Enumerator.new { #call stuff }; input2.each {} works ok?
Xeago_ has quit [Read error: Connection reset by peer]
amacou has quit [Remote host closed the connection]
<workmad3> maasha: because at that point you don't end up with calling your lambda with input and output as the same collection
Xeago has joined #ruby
echooo has quit [Ping timeout: 255 seconds]
iteratorP has quit [Remote host closed the connection]
<maasha> Right
<maasha> Hm, in fact that did not work, values were not incremented
Zebroid has joined #ruby
<maasha> Oh, silly me. forget that.
Xeago has quit [Ping timeout: 260 seconds]
gogohome has joined #ruby
<banister> workmad3 morning workie
<workmad3> banister: morning
Ilyas has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
devdazed has quit [Ping timeout: 240 seconds]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Kricir has joined #ruby
Zebroid has quit [Ping timeout: 260 seconds]
infinitone has joined #ruby
godd2 has quit [Ping timeout: 240 seconds]
KillerFox has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
yokel has quit [Ping timeout: 240 seconds]
devdazed has joined #ruby
clauswitt has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 264 seconds]
clauswitt has quit [Max SendQ exceeded]
Guest37821 has quit [Ping timeout: 272 seconds]
bayed has joined #ruby
clauswitt has joined #ruby
GriffinHeart has joined #ruby
xcm has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
lanox has quit [Remote host closed the connection]
danijoo_ is now known as danijoo
<shevy> hmmm
<shevy> is the trailing / part of a directory?
<shevy> it's weird because when you use cd, you can omit it. And if you compile something with a --prefix=/usr you also omit it
<shevy> obviously you can not omit it if the target is /
pessimism has joined #ruby
kaspertidemann has quit []
<pessimism> is there a way to define a gem in a way that I won't get complaints about outdated versions in places like Gemnasium?
CorySimmons has quit [Read error: Connection reset by peer]
<shevy> I don't even know what the complaints are there
CorySimmons has joined #ruby
james_woods has joined #ruby
<james_woods> Hello, is it possible to stub/mock a class variable (@@) with rr ?
spastorino has joined #ruby
<banister> james_woods no...you're writing weird/bad code if you're even asking that question IMO :D
<existensil> I was considering saying the same
<james_woods> I am trying to mock a class variable from a Rakefile - I do not know what class to mock in this case..
<shevy> james_woods ack class vars
Shidash has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
<existensil> if you really need to do that I don't think mocking is going to work. I'd back up the class var, replace it with a test double, and then replace the class var afterwards
<existensil> if I really had to do that
clauswit_ has joined #ruby
<pessimism> shevy: Just that my gem version is outdated
<existensil> and then I would fine a way to get rid of the class var or at least the dependency on it that is requiring me to replace it during testing
Morkel has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
froggy__ has joined #ruby
<shevy> pessimism ok but what gives that warning? I mean, all my gems run just fine, I don't get an outdated gem warning. Even if I would, I could just update the version, I usually keep a file called version.rb that keeps the VERSION constant for a gem
clauswitt has quit [Ping timeout: 272 seconds]
<shevy> existensil you really fine a way? sounds costly :)
pessimism has left #ruby [#ruby]
<james_woods> thanks guys
<shevy> I always wanted to sue class variables
<existensil> if I can fine someone for writing that in the first place then I would
<existensil> :-P
<shevy> haha
ARCADIVS has quit [Quit: WeeChat 0.4.3]
why_away has joined #ruby
oo_ has joined #ruby
Rahul_Roy has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
and has quit [Ping timeout: 255 seconds]
arup_r_ has joined #ruby
froggy_ has quit [Ping timeout: 255 seconds]
daed_ is now known as daed
nateberkopec has joined #ruby
whyy has quit [Ping timeout: 255 seconds]
arup_r has quit [Ping timeout: 264 seconds]
and has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcv has quit [Remote host closed the connection]
<maasha> Hm, Illegal instruction: 4
<maasha> I think I found a way to crash Ruby
<Edelwin> \o\
<Edelwin> Ruby or the VM ?
<shevy> maasha cool
infinitone has quit [Remote host closed the connection]
lanox has joined #ruby
<shevy> you are catching up to eam
GriffinHeart has joined #ruby
<maasha> workmad3: ^^
abuzze has quit [Remote host closed the connection]
sergiomiranda has joined #ruby
infinitone has joined #ruby
<Hanmac> maasha: hm more or less works for me, "SystemStackError: stack level too deep"
phoo1234567 has joined #ruby
craigp has quit [Remote host closed the connection]
<maasha> Hanmac: I was kinda expecting that. I get endless loop it seems, and Illegal instruction: 4 upon ctrl-C
phoo1234567 has quit [Max SendQ exceeded]
nfk has joined #ruby
phoo1234567 has joined #ruby
craigp has joined #ruby
Wolland has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
<maasha> (and I am still trying to wrap my head around why this keeps stuffing up)
<maasha> I better get some lunch and clear my head.
<workmad3> maasha: I'd suggest stepping back and considering exactly what you want to achieve
<workmad3> maasha: because it really does seem like you're trying to reconstruct behaviour that's already on enumerators in a weird, convoluted manner
infinitone has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
infinitone has joined #ruby
<workmad3> maasha: if you could share the 'what you want to achieve', it may help :)
why_away has quit [Remote host closed the connection]
OrkzRule has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wezpyke has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
Wolland has quit [Ping timeout: 264 seconds]
lanox_ has joined #ruby
jmbrown412 has quit [Ping timeout: 272 seconds]
himsin has joined #ruby
lanox has quit [Ping timeout: 260 seconds]
AndChat| has joined #ruby
yfeldblum has joined #ruby
Joulse has quit [Quit: Joulse]
tvw has joined #ruby
Grantlyk has joined #ruby
KillerFox has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
max06 has quit [Quit: Leaving.]
sepp2k has joined #ruby
alexju has joined #ruby
britneywright has joined #ruby
and has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
alexju has quit [Read error: Connection reset by peer]
Advocation has quit [Quit: Advocation]
Kricir has joined #ruby
alexju has joined #ruby
tkuchiki_ has joined #ruby
andrewlio has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
koderok has joined #ruby
<shevy> world domination
phinfonet has joined #ruby
basiclaser has quit [Excess Flood]
tkuchiki has quit [Ping timeout: 255 seconds]
mijicd has quit [Remote host closed the connection]
klaut has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
clauswitt has joined #ruby
tkuchiki_ has quit [Ping timeout: 255 seconds]
Zebroid has joined #ruby
basiclaser has joined #ruby
endash has joined #ruby
kaspertidemann has joined #ruby
abuzze_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Zebroid has quit [Ping timeout: 255 seconds]
Kricir has joined #ruby
abuzze has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
arup_r_ has quit [Remote host closed the connection]
arup_r has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philcrissman has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
charliesome has joined #ruby
sergiomiranda has quit [Quit: sergiomiranda]
oo_ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
yaruki has joined #ruby
Joulse has joined #ruby
yaruki has left #ruby [#ruby]
redlegion has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 260 seconds]
whyy has joined #ruby
joonty has joined #ruby
nateberkopec has joined #ruby
luckyruby has joined #ruby
clamstar has quit [Ping timeout: 250 seconds]
redlegion has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Grantlyk has quit [Remote host closed the connection]
Tricon has joined #ruby
postmodern has quit [Quit: Leaving]
maximski has joined #ruby
momomomomo has joined #ruby
maximski has quit [Max SendQ exceeded]
arup_r has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Ankhers has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
maximski has joined #ruby
fschuindt has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
luckyruby has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
clamstar has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
Grantlyk has joined #ruby
infinitone has quit [Remote host closed the connection]
Cereal` has joined #ruby
decoponio has joined #ruby
InfraRuby has joined #ruby
Advocation has joined #ruby
TorpedoSkyline has joined #ruby
nateberkopec has quit [Quit: Leaving...]
timonv_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
Wolland has joined #ruby
wezpyke has quit [Ping timeout: 272 seconds]
timonv_ has joined #ruby
charliesome has joined #ruby
maximski has quit []
jxf has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Changing host]
troulouliou_dev has joined #ruby
Morkel_ has joined #ruby
tjr9898 has joined #ruby
InfraRuby has left #ruby [#ruby]
Xeago has quit [Ping timeout: 255 seconds]
devdazed has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 245 seconds]
Wolland has quit [Ping timeout: 260 seconds]
Nahra has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
dingus_khan has joined #ruby
Nahra has joined #ruby
jhass|off is now known as jhass
bogeyd6 has quit [Read error: Connection reset by peer]
tjr9898 has quit [Ping timeout: 255 seconds]
devdazed has joined #ruby
Xeago has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
dingus_khan has quit [Ping timeout: 264 seconds]
jds has joined #ruby
krisquigley has quit [Remote host closed the connection]
marr has quit [Ping timeout: 260 seconds]
decoponio has quit [Quit: My PC will restart]
krisquigley has joined #ruby
wpp has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gogohome has quit [Quit: gogohome]
nateberkopec has joined #ruby
Grantlyk has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 244 seconds]
matchaw has joined #ruby
nfk has quit [Quit: yawn]
ghr has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
himsin has quit [Quit: himsin]
decoponio has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
jdj_dk has joined #ruby
himsin has joined #ruby
devdazed has quit [Ping timeout: 260 seconds]
InfraRuby has joined #ruby
amacou has joined #ruby
Xeago has quit [Remote host closed the connection]
banister has joined #ruby
sk87 has joined #ruby
Xeago has joined #ruby
jeremywrowe has joined #ruby
<Dwarf> Does anyone know of a IRC pseudoserver gem?
doev has quit [Quit: Verlassend]
<Dwarf> Oh, I seem to have found something
banister has quit [Client Quit]
jdj_dk has quit [Remote host closed the connection]
himsin has quit [Client Quit]
coderhs has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
charliesome has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
alkuzad has joined #ruby
sevenseacat has joined #ruby
sergiomiranda has joined #ruby
Xeago has joined #ruby
Ilyas has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
Zenigor has joined #ruby
himsin has joined #ruby
Xeago_ has joined #ruby
devdazed has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Ping timeout: 245 seconds]
amacou has quit [Remote host closed the connection]
dawkirst has joined #ruby
himsin has quit [Client Quit]
gogohome has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
flowerhack has quit [Remote host closed the connection]
stef_204 has joined #ruby
Kricir has joined #ruby
yakko has quit [Remote host closed the connection]
Xeago_ has quit [Ping timeout: 246 seconds]
jgt has joined #ruby
Neomex has joined #ruby
tvw has quit []
<jgt> Howdy
<jhass> hi
fgo has joined #ruby
phutchins has joined #ruby
InfraRuby has left #ruby [#ruby]
hellangel7 has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 240 seconds]
xcm has joined #ruby
yalue has joined #ruby
jespada has joined #ruby
InhalingPixels has joined #ruby
britneywright has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Xeago has joined #ruby
amacou has joined #ruby
timonv_ has joined #ruby
beef-wellington has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
Macaveli has quit [Ping timeout: 272 seconds]
mleone has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
xcm has quit [Quit: xcm]
flowerhack has joined #ruby
arup_r has joined #ruby
tjr9898 has joined #ruby
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Macaveli has joined #ruby
noop has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
realDAB has joined #ruby
Wolland has joined #ruby
flowerhack has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
comma8 has quit [Ping timeout: 250 seconds]
Wolland has quit [Ping timeout: 250 seconds]
alexju has quit [Remote host closed the connection]
dingus_khan has joined #ruby
alexju has joined #ruby
koderok has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
Jackneill has joined #ruby
dingus_khan has quit [Ping timeout: 264 seconds]
matchaw has quit [Remote host closed the connection]
himsin has joined #ruby
alexju has quit [Ping timeout: 272 seconds]
whyy has quit [Ping timeout: 272 seconds]
obscured has joined #ruby
centrx has joined #ruby
matchaw has joined #ruby
qwyeth has joined #ruby
amystephen has joined #ruby
marr has joined #ruby
philcris_ has joined #ruby
sergiomiranda has quit [Quit: sergiomiranda]
anaeem1 has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
Xeago has quit [Remote host closed the connection]
sergiomiranda has joined #ruby
techsethi_ has joined #ruby
craigp has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
coderhs has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
SilkFox has joined #ruby
beef-wellington has joined #ruby
techsethi has quit [Ping timeout: 246 seconds]
techsethi_ is now known as techsethi
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
poulet_a has joined #ruby
poulet_a_ has joined #ruby
poulet_a has quit [Client Quit]
poulet_a_ has quit [Client Quit]
philcris_ has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Remote host closed the connection]
yacks has joined #ruby
Zebroid has joined #ruby
amacou has quit [Remote host closed the connection]
amortimer has joined #ruby
kaspertidemann has quit []
Xeago has joined #ruby
zarul has quit [Ping timeout: 240 seconds]
<amortimer> Are .gitignore files included in a gem if they are present during the gem’s creation?
GriffinHeart has joined #ruby
amacou has joined #ruby
<jhass> only files declared in your gemspecs files array are included
<_lazarevsky> guys.. I wanna check if a string is included in a string array
<_lazarevsky> i tried array.contains "value"
<_lazarevsky> but apparently contains is not a valid method on an array
<jhass> array.include? "value"
<_lazarevsky> oh dang
<_lazarevsky> thanks!
Zenigor has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 250 seconds]
InfraRuby has joined #ruby
Zebroid has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
beef-wellington has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Zenigor has joined #ruby
oo_ has quit [Remote host closed the connection]
comma8 has joined #ruby
oo_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Brando753 has quit [Ping timeout: 245 seconds]
jayunit100_ has joined #ruby
ghr has joined #ruby
xcm has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
comma8 has quit [Ping timeout: 260 seconds]
workmad3 is now known as wm3|away
coderhs has joined #ruby
Kricir has joined #ruby
<CorySimmons> Can anyone help? Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
lanox_ has quit []
GriffinHeart has joined #ruby
<canton7> what about that message don't you understand?
starkhalo has joined #ruby
bcavileer___ is now known as bcavileer
bcavileer has quit [Changing host]
bcavileer has joined #ruby
bcavileer has joined #ruby
bcavileer has quit [Changing host]
<CorySimmons> canton7: how to get 2.1.2. I have rbenv but it doesn't show up in the dl list so I assume it's in rvm but even when I installed rvm it says 2.1.2 is installed
<CorySimmons> How do i enable rvm 2.1.2?
<canton7> so the question is 'how do I tell rvm to switch to 2.1.2'?
jerius has joined #ruby
msmith has joined #ruby
<CorySimmons> canton7: i seem to not even be able to run rvm =[
tylerkern has joined #ruby
<CorySimmons> zsh: command not found: rvm
<canton7> have you installed / set up rvm?
dblessing has joined #ruby
Brando753 has joined #ruby
tewlz has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
qmfnp has joined #ruby
jonr22 has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
<CorySimmons> canton7: yes
<CorySimmons> i'll try again
xcv has joined #ruby
Ankhers has joined #ruby
InhalingPixels has joined #ruby
<CorySimmons> i bet it's where i'm using fish
snath has quit [Ping timeout: 244 seconds]
Fire-Dragon-DoL has joined #ruby
mityaz has quit [Quit: See ya!]
<weeb1e_> So looks like upgrading from 2.0.x to 2.1.2 did not solve my GC issues
<weeb1e_> StackProf does not seem to profile GC, so it doesn't even show anything using the CPU time
<weeb1e_> But I know from when I used perftools.rb, GC is using up 95% of a CPU core
<CorySimmons> canton7: seems i had to "follow the instructions"
<CorySimmons> imagine that
<weeb1e_> Any suggestions on how I can trace these GC issues with 2.1.2?
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
<canton7> CorySimmons, you'd never guess :P
<CorySimmons> :D
<CorySimmons> sorry canton7
<CorySimmons> sometimes i just feel like typing
krz has quit [Quit: WeeChat 0.4.3]
doodlehaus has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
mark_locklear has joined #ruby
devdazed has quit [Quit: Bye]
wm3|away has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
banister has joined #ruby
alexju has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
<shevy> lol
banister has quit [Max SendQ exceeded]
<shevy> canton7 married a cat
<shevy> sometimes i just feel like typing too!
Wolland has joined #ruby
gtrak has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<canton7> whit what now?
comma8 has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mikepack has joined #ruby
ta has quit [Remote host closed the connection]
failshell has joined #ruby
mrommelf has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Hanmac has quit [Ping timeout: 260 seconds]
djcp has joined #ruby
djcp has left #ruby [#ruby]
mrommelf has quit [Client Quit]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jimms has joined #ruby
shackleford has joined #ruby
cpruitt has joined #ruby
banister has joined #ruby
shackleford has quit [Read error: Connection reset by peer]
CorySimmons has quit [Quit: Zzz...]
Wolland has quit [Ping timeout: 240 seconds]
banister has quit [Max SendQ exceeded]
mikesplain has joined #ruby
shackleford has joined #ruby
fold has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jonr22 has quit [Quit: WeeChat 0.4.2]
comma8 has quit [Ping timeout: 250 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jonr22 has joined #ruby
<shevy> with my cat
banister has joined #ruby
banister has quit [Max SendQ exceeded]
momomomomo has quit [Quit: momomomomo]
lw has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jmbrown412 has joined #ruby
banister has joined #ruby
bricker`LA has joined #ruby
gogohome has quit [Quit: gogohome]
phutchins has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
jmbrown412 has quit [Remote host closed the connection]
zarul has joined #ruby
jmbrown412 has joined #ruby
OrkzRule has quit [Ping timeout: 240 seconds]
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
spyderman4g63 has joined #ruby
renderful has joined #ruby
mityaz has joined #ruby
Patchou has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
CorySimmons has quit [Client Quit]
bricker`LA has quit [Ping timeout: 244 seconds]
mikesplain has quit []
gr33n7007h has quit [Quit: jIRCii - http://www.oldschoolirc.com]
InfraRuby has left #ruby [#ruby]
renderful has quit [Remote host closed the connection]
Morkel has joined #ruby
jmbrown412 has quit [Ping timeout: 246 seconds]
renderful has joined #ruby
sambao21 has joined #ruby
Hanmac has joined #ruby
jmbrown412 has joined #ruby
krisquigley has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
krisquigley has joined #ruby
wm3|away has joined #ruby
arya_ has joined #ruby
techsethi has quit [Quit: techsethi]
ppinto has joined #ruby
OrkzRule has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
<ddv> weeb1e_: You could try jruby, Java has plenty of profiling tools
<ddv> weeb1e_: also the problems with the new generational garbage collector won't be fixed in 2.1.2
braincrash has quit [Ping timeout: 260 seconds]
sevenseacat has left #ruby [#ruby]
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
eka has joined #ruby
kquig has joined #ruby
Grantlyk has joined #ruby
jmbrown412 has quit [Ping timeout: 272 seconds]
tylerkern has quit [Read error: Connection reset by peer]
<ptrrr> it should be possible to profile a ruby app using an ordinary profiler
<ddv> of course
<weeb1e_> ddv: I really can not change to another ruby
<ddv> but jruby has way more mature profiling tools
tylerkern has joined #ruby
Zebroid has joined #ruby
<weeb1e_> The issue is, profiling the app with a proftools.rb shows GC is using all the CPU time
<shevy> but java is controlled by oracle
<weeb1e_> But that does not tell me what GC is doing
<ddv> lol stop shevy
krisquigley has quit [Ping timeout: 240 seconds]
<shevy> btw ddv... you are not the diesel engine guy or? that is ddd or?
Fire-Dragon-DoL has quit [Quit: Leaving.]
<ddv> no
<shevy> ok
<centrx> weeb1e_, Have you considered profiling your application to see what it is spending the most time in?
<weeb1e_> Ruby 2.1.2 has better profiling and tracing support than any MRI before
felgenh3 has joined #ruby
<weeb1e_> centrx: ...
<centrx> weeb1e_, There must be something odd going on in your actual program for it to cause the GC to behave this way
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<weeb1e_> centrx: The only thing using any real amount of CPU time when I profile it is GC
<weeb1e_> The application runs fine for about 12 hours, then GC goes nuts and uses 95% of a CPU core
<centrx> weeb1e_, Using the Ruby profiler?
Tricon has quit [Quit: Leaving...]
<weeb1e_> Until I can pinpoint the issue, I have to keep restarting the platform, booting all users off, etc
<weeb1e_> centrx: StackProf does not even record GC, so it shows an idle application
<weeb1e_> Even though GC is using 95% of a CPU core
<weeb1e_> perftool.rb at least shows that GC is using the CPU time, but cannot tell me anything more than that
JohnFord has joined #ruby
tewlz has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
<centrx> weeb1e_, Try the Ruby profiler
icebourg has joined #ruby
<weeb1e_> centrx: StackProf IS the ruby profiler...
GriffinHeart has joined #ruby
hellangel7 has joined #ruby
devdazed has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
hellangel7 has quit [Max SendQ exceeded]
Zebroid has quit [Ping timeout: 272 seconds]
icebourg has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
hellangel7 has joined #ruby
freerobby has quit [Quit: Leaving.]
arya_ has quit [Quit: sayonara^_^]
<centrx> weeb1e_, You'd think the name would be mentioned somewhere in the Ruby source code if it were
braincrash has joined #ruby
comma8 has joined #ruby
jmbrown412 has joined #ruby
kevind has joined #ruby
mary5030 has joined #ruby
shlomo has joined #ruby
Aristata has quit [Quit: Leaving.]
newUser1234 has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
hfp_ is now known as hfp
newUser1234 has joined #ruby
mercwithamouth has joined #ruby
mary5030 has joined #ruby
ffranz has joined #ruby
<shlomo> Is there a way to map a function over the values of a hash? e.g. map { |x| x.even? } over {one: 1, two: 2} to get {one: false, two: true}
endash_ has joined #ruby
<jhass> map {|_, value|
<jhass> oh you want a hash back
Deele has joined #ruby
<jhass> map {|key, value| [key, value.even?] }.to_h
<shlomo> I want a hash back, with the same keys
itspots has joined #ruby
<shlomo> ok thanks
sputnik13 has joined #ruby
Kricir has joined #ruby
endash has quit [Ping timeout: 264 seconds]
endash_ is now known as endash
TorpedoSkyline has joined #ruby
<gr33n7007h> jhass, is to_h ruby 2.0+?
hellangel7 has quit [Read error: Connection reset by peer]
hellangel7 has joined #ruby
<jhass> 2.0 or 2.1 yeah, I don't remember
<jhass> 20>> [[:a, :b],[:c,:d]].to_h
<eval-in> jhass => undefined method `to_h' for [[:a, :b], [:c, :d]]:Array (NoMethodError) ... (https://eval.in/178136)
<jhass> 2.1
<gr33n7007h> so 1.9+
<gr33n7007h> >> Hash[h.map{ |k, v| [k, v.even?] }]
marr has quit [Ping timeout: 255 seconds]
<eval-in> gr33n7007h => undefined local variable or method `h' for main:Object (NameError) ... (https://eval.in/178137)
thams has joined #ruby
sputnik13 has quit [Client Quit]
mrrcp has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
<gr33n7007h> is anyone still using 1.9.3?
Macaveli has quit [Ping timeout: 240 seconds]
<centrx> I have seen it
<centrx> There is still some 1.8 too
shlomo has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sergiomiranda has quit [Quit: sergiomiranda]
<gr33n7007h> need to get with the times
yfeldblum has joined #ruby
endash_ has joined #ruby
marky_ has joined #ruby
apeiros has joined #ruby
yakko has joined #ruby
balazs has joined #ruby
tewlz has joined #ruby
endash has quit [Ping timeout: 240 seconds]
endash_ is now known as endash
<alkuzad> Hi, do you know good lib for xls(m) ? rubyXL needs tons of memory to work, dullard seems to not treat hidden cells properly
thams has quit [Quit: thams]
arup_r has quit [Ping timeout: 260 seconds]
Nahra has quit [Remote host closed the connection]
freerobby has joined #ruby
himsin has quit [Quit: himsin]
GriffinHeart has quit [Remote host closed the connection]
Nahra has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
threesixes has joined #ruby
abuzze_ has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
abuzze has joined #ruby
Blizzy has joined #ruby
tjr9898 has quit [Remote host closed the connection]
yakko has quit [Ping timeout: 244 seconds]
thams has joined #ruby
amargherio_ has joined #ruby
tjr9898 has joined #ruby
amargherio_ is now known as MarioEIU
MarioEIU is now known as amargherio
TorpedoSkyline has joined #ruby
toastynerd has joined #ruby
jonr22 has quit [Quit: WeeChat 0.4.2]
cocotton has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
TorpedoSkyline has quit [Client Quit]
wm3|away is now known as workmad3
Kricir has joined #ruby
jonr22 has joined #ruby
kevind has quit [Quit: kevind]
sputnik13 has joined #ruby
gogohome has joined #ruby
gogohome has quit [Quit: gogohome]
maasha has quit [Ping timeout: 246 seconds]
gogohome has joined #ruby
gaussblurinc1 has joined #ruby
Wolland has joined #ruby
kevind has joined #ruby
sputnik13 has quit [Client Quit]
<gogohome> there is ruby code for ‘arduino’?
<gaussblurinc1> hi! how to 'setup' class readonly attribute by subclasses with cattr_reader?
<oz> gogohome: and http://artoo.io/
treehug88 has joined #ruby
<weeb1e_> centrx: That is not a sample based profiler, so it cannot be used in an eventmachine application, but it also would not be able to see what GC is doing any more than another profiler
<gogohome> my meaning is library for ‘arduino’?
mercwithamouth has quit [Ping timeout: 246 seconds]
<centrx> weeb1e_, The idea was the internal Ruby profiler might attribute some of that GC time to actual methods in your code, whereas the external profiler might lump it all together under GC.
Grantlyk has quit [Read error: Connection reset by peer]
<weeb1e_> centrx: StackProf uses the new 2.1 tracing, and is a sampling profiler, but it unfortunately completely ignores GC ;/
Grantlyk has joined #ruby
aspires has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
philcrissman has joined #ruby
<gaussblurinc1> is this code normal? https://gist.github.com/lolgear/c501009daba46fd42104
arya_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
phutchins has joined #ruby
ppinto has quit [Ping timeout: 260 seconds]
dingus_khan has joined #ruby
<workmad3> gaussblurinc1: define 'normal'
<gaussblurinc1> workmad3: is this a right way to 'override' class attributes?
mercerist has joined #ruby
jonr22 has quit [Quit: WeeChat 0.4.2]
<workmad3> gaussblurinc1: no... class vars just don't work like that
x1337807x has joined #ruby
snath has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
linojon has quit [Read error: Connection reset by peer]
johnmolina has joined #ruby
x1337807_ has joined #ruby
ppinto has joined #ruby
<gaussblurinc1> workmad3: could you provide correct way? should I overrive 'class getters' for that?
<Hanmac> gaussblurinc1: i dont know cattr_reader ... does it use class variables or class instance variables? ... it smell like a rails thing
linojon has joined #ruby
endash has quit [Ping timeout: 260 seconds]
arya__ has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
tectonic has joined #ruby
joast has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
linojon has quit [Client Quit]
dh64 has quit [Remote host closed the connection]
<Hanmac> hah i knew it ... no gaussblurinc1 you need to set them like that like it shown in the docs of the page ... BUT imo class variables are in 99.9% of the cases used wrong when you wanted class instance variables
x1337807x has quit [Ping timeout: 260 seconds]
anaeem1 has joined #ruby
gogohome has left #ruby [#ruby]
toastynerd has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
<Hanmac> gaussblurinc1: for questions about active support and active record please ask at #rubyonrails ... they caused that, now they need to live with the consequences
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
iamjarvo has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
<ericwood> lol
<crome> haha
TorpedoSkyline has joined #ruby
icebourg has joined #ruby
<crome> well said
arup_r has joined #ruby
icebourg has quit [Max SendQ exceeded]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
basiclaser has quit [Excess Flood]
mikepack has joined #ruby
TorpedoSkyline has quit [Client Quit]
oo_ has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
mallu has joined #ruby
basiclaser has joined #ruby
arya__ has quit [Ping timeout: 246 seconds]
craigp has joined #ruby
<mallu> good mornig... can someone please tell me how I can iterate through two hashes and get values? http://pastie.org/9462100
marky_ has quit [Ping timeout: 250 seconds]
VBlizzard has joined #ruby
Zebroid has joined #ruby
TorpedoSkyline has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
renderful has joined #ruby
icebourg has joined #ruby
Morkel has quit [Quit: Morkel]
<jhass> mallu: nest: test.each do |server, description| description.each do |key, value|
icebourg has quit [Max SendQ exceeded]
<gaussblurinc1> Hanmac: ok, I move these 'settings' to readonly instance property, it's easy to override
bronson has joined #ruby
cgaray has joined #ruby
xcm has quit [Quit: xcm]
icebourg has joined #ruby
Bish has quit [Quit: ZNC - http://znc.sourceforge.net]
Deele has joined #ruby
ta has joined #ruby
icebourg has quit [Max SendQ exceeded]
<mallu> ok. thank you
Blizzy has quit [Ping timeout: 264 seconds]
sonOfRa has quit [Quit: Bye!]
wpp has quit [Quit: ZZZzzz…]
icarus has joined #ruby
Zebroid has quit [Ping timeout: 246 seconds]
Bish has joined #ruby
Kricir has quit [Remote host closed the connection]
Bira has joined #ruby
ppinto has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby
tectonic has quit []
acrussell has joined #ruby
Kricir has joined #ruby
mijicd has joined #ruby
SilkFox has quit [Ping timeout: 260 seconds]
sonOfRa has joined #ruby
geekbri has joined #ruby
cocotton has quit [Remote host closed the connection]
tylerkern has joined #ruby
emmesswhy has joined #ruby
asteve has joined #ruby
<asteve> does anyone have tips on how to format sql statements to look legible as a ruby string?
omosoj has joined #ruby
<asteve> I generally like to keep lines no longer than 80 columns and that plus the complexity of my query is making the string look pretty ugly and unreadable
veleno has joined #ruby
ppinto has joined #ruby
<jhass> HEREDOC?
<veleno> hello. i’m using ruby-dbi (https://github.com/erikh/ruby-dbi). how do I know if the the method ‘do’ failed ? does it return a message ?
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton_ has joined #ruby
jprovazn has quit [Quit: Leaving]
zz_jrhorn424 is now known as jrhorn424
nfk has joined #ruby
<jhass> veleno: just try out by providing a invalid query?
bal has quit [Quit: bal]
Spami has joined #ruby
Ankhers has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tagrudev has quit [Remote host closed the connection]
moted has joined #ruby
saarinen has quit [Quit: saarinen]
arya_ has joined #ruby
<asteve> jhass: thanks
sputnik13 has joined #ruby
alkuzad has quit []
comma8 has quit [Ping timeout: 260 seconds]
sergiomiranda has joined #ruby
jxf has quit [Ping timeout: 272 seconds]
gigetoo has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
mocchi has joined #ruby
<sonOfRa> net-ldap users: Does net-ldap support paginated fetching, or do I have to implement this myself somehow?
wjimenez5271 has joined #ruby
mocchi has quit [Client Quit]
renderful has quit [Remote host closed the connection]
mocchi has joined #ruby
renderful has joined #ruby
Xeago has joined #ruby
abuzze_ has joined #ruby
Kricir has quit [Remote host closed the connection]
ArchBeOS-work has joined #ruby
rippa has joined #ruby
Ankhers has joined #ruby
tagrudev has joined #ruby
abuzze has quit [Ping timeout: 250 seconds]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
gauke has quit [Quit: gauke]
<mallu> Can you please tell me how I can achieve this? http://pastie.org/9462256
<mallu> basically we want each value in a hash and assign it to something
Cache_Money_ has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
<jhass> monitor:<%= hash["apachelog"] %> ignoreOlderThan = <%= hash["apache_ignoreOlderThan"] %> and so on
sambao21 has quit [Quit: Computer has gone to sleep.]
<mallu> ok
InhalingPixels has joined #ruby
<jhass> found this in my pastebin archive: http://paste.mrzyx.de/p7f5a8e2b/
michaeldeol has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
Cache_Money_ has quit [Client Quit]
techsethi has joined #ruby
toastynerd has joined #ruby
<mallu> cool.. thanks
enebo has joined #ruby
Photism has joined #ruby
{xenomorph} is now known as xenomorph
Xeago has quit [Remote host closed the connection]
abuzze_ has quit [Remote host closed the connection]
kquig has quit [Remote host closed the connection]
sethetter has joined #ruby
lw has quit [Quit: s]
<shevy> hmm
abuzze has joined #ruby
<shevy> >> class Foo; def initialize; @foo = 'yo'; @arr = 'ok'; end; p Foo.new
<eval-in> shevy => /tmp/execpad-ab48d2f160da/source-ab48d2f160da:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/178144)
<sethetter> Anyone in here ever had trouble with Capybara's `attach_file` not giving the correct file type?
<shevy> >> class Foo; def initialize; @foo = 'yo'; @arr = 'ok'; end; end; p Foo.new
<eval-in> shevy => #<Foo:0x40981a44 @foo="yo", @arr="ok"> ... (https://eval.in/178145)
<shevy> is there a way to colourize the @ entries?
<jhass> shevy: doesn't awesome_print do that?
sepp2k has quit [Quit: Konversation terminated!]
<ericwood> pry will
<ericwood> and awesome_print
<mallu> what does this means? ||= {}
banister has joined #ruby
<centrx> mallu, a ||= b means a = (a || b)
<shevy> jhass hmm lemme check
<ptrrr> mallu: it sets something to {} if it’s not assigned a value
<jhass> mallu: a ||= b is a shortcut for a || a = b, it assigns b to a if a is not nil or false
<centrx> that's the one
<mallu> thanks
speakingcode has quit [Read error: Connection reset by peer]
<shevy> awesome_print does not seem to colourize the @ entries
<shevy> I tried via: ap self
andrewlio has joined #ruby
larsam has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
<eam> shevy: btw, re: $LDFLAGS - totally doesn't work
<shevy> I don't know what is LDFLAGS
<eam> we were chatting about CFLAGS and LDFLAGS this weekend
<eam> in gem
<shevy> ENV['LDFLAGS'] = '-static'
comma8 has joined #ruby
craigp has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
joonty has quit [Quit: Leaving]
mocchi has quit [Quit: ZNC - http://znc.in]
yakko has joined #ruby
itspots has quit [Remote host closed the connection]
<jhass> shevy: try , raw: true
<shevy> ldd m4
<shevy> not a dynamic executable
mocchi has joined #ruby
<shevy> eam I just compiled m4
sailias has quit [Read error: Connection reset by peer]
<shevy> ry m4 static
itspots has joined #ruby
itspots has quit [Changing host]
itspots has joined #ruby
sambao21 has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> now let's see when I omit static
wpp has joined #ruby
itspots_ has joined #ruby
<shevy> it works 100%
<shevy> ldd m4
<shevy> linux-vdso.so.1 (0x00007fffe16ad000)
<shevy> libc.so.6 => /lib64/libc.so.6 (0x00007fecb5394000)
<shevy> jhass thanks, a moment
p0sixpscl has quit [Quit: Textual IRC Client: www.textualapp.com]
merceris_ has joined #ruby
GriffinHeart has joined #ruby
<shevy> eam if it still does not work, perhaps gem modifies ENV
ta has quit [Remote host closed the connection]
comma8 has quit [Ping timeout: 250 seconds]
newUser1234 has quit [Remote host closed the connection]
timfoo has quit [Ping timeout: 244 seconds]
mercerist has quit [Ping timeout: 260 seconds]
<shevy> like when you can do stuff like: env -i bash to start with an environment free bash instance
newUser1234 has joined #ruby
itspots has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
nowthatsamatt has joined #ruby
newUser1234 has quit [Ping timeout: 250 seconds]
ghostmoth has joined #ruby
tylerkern has joined #ruby
Kricir has joined #ruby
qba73 has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
dblessing has joined #ruby
qba73 has joined #ruby
luckyruby has joined #ruby
mijicd has quit [Remote host closed the connection]
thams has quit [Quit: thams]
wjimenez5271 has quit []
Jonathan2 has joined #ruby
InfraRuby has joined #ruby
ptrrr has quit [Quit: ptrrr]
Zenigor has quit [Remote host closed the connection]
Jonathan2 is now known as jonr22
<eam> shevy: I've been stracing gem builds. ENV is set, gem simply doens't respect it
<shevy> hehe
<shevy> I wonder how gem manages to do that
pietr0 has joined #ruby
<eam> well it's more like it doesn't appear to do anything with it
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chth0n has joined #ruby
techsethi has quit [Ping timeout: 244 seconds]
<eam> gem/bundler is incredibly frustrating -- it's essentially impossible to set build parameters on a per-gem basis
Zenigor has joined #ruby
InfraRuby has left #ruby [#ruby]
timonv_ has quit [Remote host closed the connection]
cocotton_ has quit [Remote host closed the connection]
_maes_ has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> ah bundler always was too much for me
cocotton has joined #ruby
<eam> I've reduced this down to just gem, but once I fix that I have to do it in bundler
oo_ has joined #ruby
<yxhuvud> eam: if you don't mind my asking, why do you need to set individual build parameters?
techsethi has joined #ruby
anarang has quit [Quit: Leaving]
<eam> yxhuvud: I need to set DT_RPATH for some particular cases
qba73 has quit [Ping timeout: 272 seconds]
<eam> what I can prooobably do is just rebuild ruby entirely and set things there
<yxhuvud> Also, if you need that kind of control, have you considered packaging the gems by yourself into whatever package manager you use for your distro?
<eam> yes, already doing that
<eam> via bundler
Zebroid has joined #ruby
<eam> and yeah, I'm going to ... fix it
<Hanmac> eam & shevy are you trying to compile a gem static? i didnt know that would work ... as far as i know i thought that all three, ruby, the lib and the gem does need to be compiled dynamic to work
<eam> not static
<eam> DT_RPATH sets a library load path for an individual shared object
<yxhuvud> I meant rpm/apt - not bundler as a package manager.
<eam> yxhuvud: yeah, we're using essentially a push/flip deployment system of blobs
<eam> custom thing
merceris_ has quit [Quit: Computer has gone to sleep.]
<Hanmac> yxhuvud: there is gem2deb ... and the debian-ruby channel are currently trying to port many gems to debian packages
amacou has quit [Remote host closed the connection]
<eam> on top of all this, I can edit the extconf.rb for each gem and set flags -- however there are quoting issues in the generated makefiles
<eam> because I need to use the $ORIGIN linker macro
<eam> really a headache
sambao21 has quit [Quit: Computer has gone to sleep.]
cocotton has quit [Ping timeout: 245 seconds]
maestrojed has joined #ruby
oo_ has quit [Ping timeout: 246 seconds]
<eam> Hanmac: that said, you should be able to compile gem dependencies statically into the shim that's produced
<eam> eg mysql2.so should be able to statically link libmysqlclient
GriffinHeart has quit [Remote host closed the connection]
thams has joined #ruby
Zebroid has quit [Ping timeout: 250 seconds]
razrunelord has joined #ruby
<eam> though the shim itself will ultimately need to be a shared object
saarinen has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
wjimenez5271 has joined #ruby
razrunelord has quit [Remote host closed the connection]
<Hanmac> hm that might be have complications ... what if a lib does have other dependencies ? arnt they needed to be added staticly too? like if gem A does need lib B and lib B does need lib C does gem A need to add lib C if build staticly? ... and what if the dependencies of lib B are different for each envionment/system? so you might not know what static libs does it need?
Kricir has quit [Ping timeout: 246 seconds]
<shevy> Hanmac I don't try to do anything with gem ;)
razrunelord has joined #ruby
razrunelord has quit [Remote host closed the connection]
razrunelord has joined #ruby
<Hanmac> shevy hm you maybe not, but what about eam ?
<eam> Hanmac: that's resolved at link time
<eam> and generally, yes
<eam> though you can really do whatever you want, like put DT_NEEDED in the toplevel object
razrunelord has quit [Client Quit]
d4ryus has joined #ruby
alex88 has quit [Quit: Leaving...]
kaspergrubbe_ has joined #ruby
<Hanmac> eam for sample if you have a gem for wxWidgets, on Linux it does need libs for X11, on OSX it does not ... so static linking are getting more complicated
yakko has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
yakko has joined #ruby
arya_ has joined #ruby
Biohazard has joined #ruby
Joulse has quit [Quit: Joulse]
arup_r has quit [Ping timeout: 260 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
Zebroid has joined #ruby
timfoo has joined #ruby
Lucky__ has joined #ruby
comma8 has joined #ruby
momomomomo has joined #ruby
bronson has quit [Quit: bronson]
arya_ has quit [Client Quit]
Maitiu has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Ping timeout: 245 seconds]
Advocation has quit [Quit: Advocation]
wallerdev has joined #ruby
cocotton has joined #ruby
michaeldeol has joined #ruby
cocotton has quit [Remote host closed the connection]
arup_r has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
cocotton has joined #ruby
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
koderok has joined #ruby
Hobogrammer has joined #ruby
comma8 has quit [Ping timeout: 250 seconds]
InhalingPixels has quit [Remote host closed the connection]
arya_ has joined #ruby
dawkirst has quit [Remote host closed the connection]
asmodlol has quit [Read error: Connection reset by peer]
Ilyas has joined #ruby
choke has joined #ruby
dawkirst has joined #ruby
britneywright has joined #ruby
nat2610 has joined #ruby
M-Technic has joined #ruby
arup_r has quit [Client Quit]
InhalingPixels has joined #ruby
aantix has joined #ruby
thams has quit [Quit: thams]
xcv has quit [Remote host closed the connection]
arup_r has joined #ruby
hellangel7 has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zesty has joined #ruby
CorpusCallosum has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
mikepack_ has joined #ruby
renderful has quit [Remote host closed the connection]
<eam> Hanmac: well, all the linking happens at `gem install` time
<eam> but yeah, there doesn't seem to be much fleshing out of how to express these kinds of things in gem
<eam> it's all code-as-config =/
amclain has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
jxf has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
mercerist has joined #ruby
wpp has quit []
hellangel7 has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
philcrissman has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jds has quit [Quit: Connection closed for inactivity]
veleno has quit [Quit: veleno]
wpp has joined #ruby
kirun has joined #ruby
senayar has quit [Remote host closed the connection]
mercerist has quit [Client Quit]
thumpba_ has quit []
saarinen has quit [Quit: saarinen]
mrrcp has quit [Ping timeout: 260 seconds]
koderok has quit [Ping timeout: 250 seconds]
cybercix has joined #ruby
anaeem1 has quit [Remote host closed the connection]
thumpba has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
abuzze_ has joined #ruby
jds has joined #ruby
eyeamaye has joined #ruby
jottr has joined #ruby
wallerdev has quit [Quit: wallerdev]
renderful has joined #ruby
mark_locklear has quit [Read error: Connection reset by peer]
abuzze has quit [Ping timeout: 250 seconds]
deric_skibotn has joined #ruby
patmakesthings has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
craigp has joined #ruby
patmakesthings has left #ruby [#ruby]
W0rmDr1nk has quit [Ping timeout: 250 seconds]
bricker`work has joined #ruby
InhalingPixels has joined #ruby
Spami has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
techsethi has quit [Ping timeout: 272 seconds]
gwillickers has joined #ruby
arya_ has joined #ruby
cpt_yossarian has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
tylerkern has joined #ruby
nanoyak has joined #ruby
techsethi has joined #ruby
LACP has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ssvo has joined #ruby
sivoais has quit [Ping timeout: 245 seconds]
comma8 has joined #ruby
nfk has quit [Quit: yawn]
dingus_khan has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
blackmesa has quit [Remote host closed the connection]
LACP has joined #ruby
SilkFox has joined #ruby
Zebroid has quit [Remote host closed the connection]
jottr has quit [Quit: WeeChat 0.4.3]
workmad3 has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
sivoais has joined #ruby
anaeem1_ has joined #ruby
jottr has joined #ruby
jay__ has joined #ruby
dingus_khan has quit [Ping timeout: 245 seconds]
comma8 has quit [Ping timeout: 260 seconds]
arya_ has quit [Ping timeout: 255 seconds]
Bumptious has joined #ruby
dbasch has joined #ruby
speakingcode has joined #ruby
mikecmpbll has joined #ruby
sandelius has joined #ruby
timonv_ has quit [Remote host closed the connection]
<shevy> ack
failshel_ has joined #ruby
cocotton_ has joined #ruby
sambao21 has joined #ruby
newUser1234 has joined #ruby
Bumptiou_ has quit [Ping timeout: 255 seconds]
cocotton_ has quit [Read error: Connection reset by peer]
cocotton_ has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
havenwood has joined #ruby
wallerdev has joined #ruby
jay__ is now known as ruby_on_railed
kireevco has joined #ruby
failshe__ has joined #ruby
failshell has quit [Ping timeout: 246 seconds]
ruby_on_railed is now known as rubyonrailed
cocotton has quit [Ping timeout: 240 seconds]
failshel_ has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
chth0n has quit [Ping timeout: 240 seconds]
SilkFox has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
sk87 has quit [Client Quit]
SilkFox has joined #ruby
x1337807_ has joined #ruby
Bumptious has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 255 seconds]
mijicd has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
yacks has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
bMalum has joined #ruby
Advocation has joined #ruby
gwillickers has quit [Quit: leaving]
x1337807x has quit [Ping timeout: 260 seconds]
razum2um has joined #ruby
ari-_-e has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
georgelappies has joined #ruby
MartinCleaver has joined #ruby
yfeldblum has joined #ruby
yetanotherdave has joined #ruby
kaiju_sloth has joined #ruby
Eiam has joined #ruby
Grantlyk has quit [Remote host closed the connection]
jonr22 has quit [Quit: WeeChat 0.4.3]
Grantlyk has joined #ruby
JohnFord has joined #ruby
djbkd has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
abuzze_ has quit [Remote host closed the connection]
Takle has joined #ruby
abuzze has joined #ruby
wallerdev has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
reset has joined #ruby
postmodern has joined #ruby
charliesome has joined #ruby
Zenigor has quit [Remote host closed the connection]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrommelf has joined #ruby
Zebroid has joined #ruby
<wallerdev> mriomngi guys
x1337807x has joined #ruby
momomomomo has quit [Quit: momomomomo]
jerius has quit [Read error: Connection reset by peer]
jerius has joined #ruby
cgaray has quit [Quit: Page closed]
darkxploit has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
goshdarnyou is now known as tokengingerkim
Zenigor has joined #ruby
newUser1234 has joined #ruby
iamjarvo has quit [Read error: Connection timed out]
treehug88 has joined #ruby
W0rmDr1nk has joined #ruby
failshe__ has quit [Remote host closed the connection]
cocotton_ has quit [Remote host closed the connection]
Grantlyk has quit [Remote host closed the connection]
Grantlyk has joined #ruby
bricker`work has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
cocotton has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
tokengingerkim is now known as goshdarnyou
baroquebobcat has joined #ruby
Grantlyk has quit [Remote host closed the connection]
iamjarvo has joined #ruby
x1337807x has quit [Client Quit]
Grantlyk has joined #ruby
failshell has joined #ruby
St_Marx has joined #ruby
mercerist has joined #ruby
Kricir has joined #ruby
goshdarnyou is now known as tokengingerkimjo
kireevco has quit [Quit: Leaving.]
tokengingerkimjo is now known as goshdarnyou
davedev2_ has joined #ruby
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
mattmcclure has joined #ruby
mrrcp has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
claymore has joined #ruby
ari-_-e has joined #ruby
comma8 has joined #ruby
koderok has joined #ruby
mercwithamouth has joined #ruby
bricker`work has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
renderful has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
cocotton has joined #ruby
renderful has joined #ruby
Takle has quit [Remote host closed the connection]
jprovazn has joined #ruby
Bumptious has joined #ruby
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
maroloccio has joined #ruby
chrishough has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
yacks has joined #ruby
dawkirst_ has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
comma8 has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
nanoyak has quit [Quit: Computer has gone to sleep.]
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
<shevy> mrom?
newUser1234 has quit [Read error: Connection reset by peer]
Bumptiou_ has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sambao21 has joined #ruby
newUser1234 has joined #ruby
wildroman2 has quit []
testcore has joined #ruby
atmosx has joined #ruby
saarinen has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
chipotle has joined #ruby
noz_ has joined #ruby
marr has joined #ruby
ssvo has quit [Ping timeout: 250 seconds]
Grantlyk has quit [Remote host closed the connection]
Grantlyk has joined #ruby
CorpusCallosum has joined #ruby
<noz_> Quick question. I'm using Jruby in windows and the paths that the File class returns are all linux-style forward slashes, when Windows actually requires double backslashes. This requires a lot of File.join("some", "path").gsub("/","\\") throughout my codebase.
<noz_> What's the easiest way to dry this up?
<noz_> Actually scratch that, what's the best way?
<headius> I believe MRI would do the same thing...slashes get normalized internally to forward
dingus_khan has joined #ruby
relix has joined #ruby
momomomomo has joined #ruby
ssvo has joined #ruby
koderok has quit [Quit: koderok]
thams has joined #ruby
abuzze_ has joined #ruby
michaeldeol has joined #ruby
tjr9898 has quit [Remote host closed the connection]
himsin has joined #ruby
himsin has quit [Client Quit]
tjr9898 has joined #ruby
<eam> noz_: I came across the same thing recently using ruby in DOS - seems like a bug
<eam> furthermore, the file utilities don't respect the value of File::SEPARATOR
tier has joined #ruby
Morkel has joined #ruby
noz_ has quit [Ping timeout: 246 seconds]
abuzze has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Ping timeout: 255 seconds]
<yxhuvud> noz: doesn't windows support linux style paths nowadays with forward slashes?
<eam> it always has, however they break some stuff
AndChat| has quit [Ping timeout: 255 seconds]
<eam> because / is interpreted as a command flag, for example
emmesswhy has quit [Quit: This computer has gone to sleep]
<yxhuvud> It isn't if you properly mark it as a string. Which you should do anyhow because of spaces
Matadoer has joined #ruby
<yxhuvud> or?
kevind_ has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
comma8 has joined #ruby
kireevco has joined #ruby
wombo has joined #ruby
tier_ has joined #ruby
Takle has quit [Remote host closed the connection]
emmesswhy has joined #ruby
kevind has quit [Ping timeout: 250 seconds]
kaspertidemann has joined #ruby
larsam has quit [Ping timeout: 250 seconds]
kevind_ is now known as kevind
WillAmes has quit [Remote host closed the connection]
thams has quit [Quit: thams]
WillAmes has joined #ruby
tier has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
tier_ has quit [Remote host closed the connection]
InfraRuby has joined #ruby
treehug88 has quit [Ping timeout: 245 seconds]
tier has joined #ruby
nfk has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
thams has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
mercerist has joined #ruby
dawkirst has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.0-dev]
Zebroid has quit [Remote host closed the connection]
dawkirst_ has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
renderful has quit [Read error: Connection reset by peer]
renderful has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 250 seconds]
Tricon has joined #ruby
mercerist has quit [Ping timeout: 246 seconds]
Rylee has quit [Excess Flood]
Rylee has joined #ruby
<shevy> dumdedum
shredding has joined #ruby
<shevy> eam on his quest to make gem better
<shevy> and then bundler
<shevy> and then the rest of the world
dawkirst_ has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
<Mon_Ouie> There are windows programs (like the default file explorer) that don't let you enter paths with / instead of \
tobago has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 260 seconds]
cephalostrum has quit [Ping timeout: 272 seconds]
Macaveli has joined #ruby
cephalostrum has joined #ruby
coldkey21 has joined #ruby
dawkirst has joined #ruby
atmosx has quit [Ping timeout: 272 seconds]
arup_r_ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
dawkirst_ has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Remote host closed the connection]
thams has quit [Quit: thams]
thams has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
Advocation has quit [Quit: Advocation]
godd2 has joined #ruby
djbkd has quit [Remote host closed the connection]
tylerkern has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
arup_r_ has quit [Ping timeout: 240 seconds]
tylerkern has joined #ruby
hololeap has quit [Ping timeout: 264 seconds]
philcrissman has joined #ruby
dumdedum has quit [Quit: foo]
Grantlyk has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
Ankhers has joined #ruby
nanoyak has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
Sauvin has quit [Remote host closed the connection]
<gomikemi1e> hello again
phinfonet has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
<gomikemi1e> so, i got the script to set the ENV VAR https_proxy but i thought it would unset it when the script finished running
icebourg has joined #ruby
<gomikemi1e> but the ENV VAR stays set... I need the proxy setting JUST for the API call (aws cli) that is run on the ruby script
hamakn has quit [Remote host closed the connection]
Bumptiou_ has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
starless has joined #ruby
thams has quit [Quit: thams]
Bumptious has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
CorySimmons has joined #ruby
newUser1234 has joined #ruby
InfraRuby has left #ruby [#ruby]
charliesome has joined #ruby
jerius has quit []
Fire-Dragon-DoL has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
bearish has joined #ruby
TorpedoSkyline has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
larsam has joined #ruby
jerius has joined #ruby
timonv_ has joined #ruby
darkxploit has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
<jhass> if that's the whole script and you start it as own process, it's impossible that propagates from there to anywhere else
thams has joined #ruby
Grantlyk has joined #ruby
hololeap has joined #ruby
troulouliou_dev has quit [Ping timeout: 245 seconds]
<gomikemi1e> jhass: I made puppet (who calls the script) cat env > /tmp/test.txt and the https_proxy was still there after the puppet run finished
Bumptious has quit [Remote host closed the connection]
<jhass> then it was probably there before too
Fusl has quit [Quit: Contact: http://hallowe.lt/]
<kaiju_sloth> don't ENV VAR say set until the system is rebooted?
<gomikemi1e> no, i removed it from /etc/environmnet and /etc/profiles
<kaiju_sloth> stay
<jhass> kaiju_sloth: no
<gomikemi1e> and renooted the host
<jhass> that a child process sets the environment of its parent is impossible afaik
<gomikemi1e> it was not there
<gomikemi1e> then i had puppet run the script and it set it and stayed set after script finished
saarinen has joined #ruby
<jhass> maybe puppet does something weird there, I guess it does something else than ruby yourscript.rb since you nowhere require something that would make Facter available
<d4ryus> hi guys, ive got a go program writing a gzip'ed json string via http POST to a ruby program (with jetty), but i cant get it unzipped, could you help me out? or point me to a resource?
CorySimmons has quit [Quit: Zzz...]
mikepack_ has quit [Remote host closed the connection]
<gomikemi1e> i know that on bash, i can put https_proxy=http://####.###....:3128 aws cli ec2 describe-instances and it does work
jottr has quit [Ping timeout: 260 seconds]
<gomikemi1e> but when i try that exact command from within the ruby script it times out
thams has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
InfraRuby has joined #ruby
bearish has quit []
Fusl has joined #ruby
Xeago has joined #ruby
Kricir has quit [Remote host closed the connection]
<gomikemi1e> jhass: is there any other way to pass/set https_proxy via ruby to just work during the script run time?
teddyp1cker has joined #ruby
omosoj has quit [Ping timeout: 260 seconds]
abuzze_ has quit [Remote host closed the connection]
geekbri has quit []
techsethi has quit [Quit: techsethi]
<jhass> I tell you that if that's a normal ruby script it will not persist in the system, it can't
<jhass> complain to puppet
abuzze has joined #ruby
lkba has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tjr9898 has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 272 seconds]
ppinto has quit [Quit: ppinto]
tjr9898 has joined #ruby
jdj_dk has joined #ruby
jdj_dk has quit [Remote host closed the connection]
RandyT has quit [Quit: ZNC - http://znc.in]
sergiomiranda has quit [Quit: sergiomiranda]
21WAAQWP4 has quit [Remote host closed the connection]
wombo has quit [Quit: wombo]
tjr9898 has quit [Read error: Connection reset by peer]
[42] has joined #ruby
darkxploit has joined #ruby
fgo has joined #ruby
sailias has joined #ruby
<godd2> I'm comlaining to you, Will!
<gomikemi1e> jhass: ok, so is there another way to pass the proxy values that is not using the ENV VAR?
threesixes has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 244 seconds]
RandyT has joined #ruby
IceDragon has joined #ruby
fgo has quit [Read error: No route to host]
tjr9898_ has joined #ruby
dingus_khan has joined #ruby
fgo has joined #ruby
sambao21 has joined #ruby
fgo_ has joined #ruby
Bumptious has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo__ has joined #ruby
LiohAu has quit [Quit: LiohAu]
dingus_khan has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cya]
fgo___ has joined #ruby
aspires has quit []
fgo has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
fgo has joined #ruby
fgo_ has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
fgo_ has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo__ has quit [Ping timeout: 255 seconds]
dawkirst has quit [Remote host closed the connection]
wombo has joined #ruby
Morkel has quit [Ping timeout: 244 seconds]
tylerkern has joined #ruby
fgo___ has quit [Ping timeout: 260 seconds]
maroloccio has quit [Quit: WeeChat 0.4.3]
deol has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
fgo__ has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
Zenigor has quit [Remote host closed the connection]
fold has quit [Ping timeout: 240 seconds]
aspires has quit [Client Quit]
omosoj has joined #ruby
michaeldeol has joined #ruby
aspires has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
deol has quit [Client Quit]
fgo_ has quit [Ping timeout: 255 seconds]
RandyT has joined #ruby
havenwood has quit [Remote host closed the connection]
autonomousdev has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
ta has joined #ruby
Takle has joined #ruby
chrishough has quit [Quit: chrishough]
maroloccio has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has quit [Remote host closed the connection]
mikepack has joined #ruby
renderful has joined #ruby
advorak has joined #ruby
InfraRuby has left #ruby [#ruby]
benzrf is now known as benzrf|offline
toastynerd has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 250 seconds]
Panicky has joined #ruby
noop has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jayunit100_ has quit [Quit: jayunit100_]
mikepack has quit [Ping timeout: 250 seconds]
root3d has joined #ruby
charliesome has joined #ruby
ghanima has joined #ruby
<root3d> is there security analysis tool for checking ruby codes ?
<ghanima> hello all
yubrew has joined #ruby
alvaro_o has joined #ruby
<ghanima> I am for the life of me trying to figure out how to represent this in JSON. I am using the Httparty library..... '"objects":[{"type":"service","host_name":"xxxx","service_description":"app-thor-collectd","check_command":"app-thor-collectd!app-thor-collectd","notes_url":"https://wikis.in.xxx.com/SysEng/AppThorCollectD"}
<ghanima> so the data inside the [] is json
alexju has quit [Remote host closed the connection]
<ghanima> but I have not seen json string represented withanything that doesn't being with { [
<ghanima> any thoughts
chrishough has joined #ruby
aspires has quit []
alexju has joined #ruby
saarinen has quit [Quit: saarinen]
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby
<testcore> ghanima: 'foo'.to_json
alexju has quit [Remote host closed the connection]
<apeiros> ghanima: anything not in {} or [] is not valid json
Shidash has joined #ruby
alexju has joined #ruby
dik_dak has joined #ruby
bMalum has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
dbasch has quit [Quit: dbasch]
Grantlyk has quit [Remote host closed the connection]
JohnFord has joined #ruby
<wallerdev> someone asked me that in a phone interview once apeiros haha
Hobogrammer has quit [Ping timeout: 260 seconds]
<apeiros> hope you aced it :)
<wallerdev> nope lol
<ghanima> aperios: so I have this data that that I need to post an HTTP server and its expexting a param called objects.
<wallerdev> i remembered { but forgot [
<apeiros> my nick is sooo difficult :(
tylerkern has quit [Read error: Connection reset by peer]
xerox357_ has joined #ruby
tier_ has joined #ruby
Macaveli has joined #ruby
<apeiros> gahanimaia: and?
<ghanima> aperiros: if you saying that anything that doesn't have [] or {} how can that key be passed
tylerkern has joined #ruby
wombo has quit [Quit: wombo]
<wallerdev> {"key": key}
<apeiros> gahanimaia: I have no idea? they pass invalid values?
<shevy> I don't think your nick is difficult at all apieros
<shevy> *apeiron
<ghanima> apeiros: never questioned that possibility
dc_ has quit []
<apeiros> shvey, please, it's aprirereiso
<ghanima> apeiros: checking now
momomomomo has joined #ruby
xerox357_ has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<root3d> is there gem for checking security issues with ruby websites ?
alexju has quit [Ping timeout: 255 seconds]
<godd2> shvey sounds yiddish. oy shvey
<wallerdev> a gem for that sounds pretty random
<wallerdev> lol
<shevy> are you meschugge man
tier has quit [Ping timeout: 260 seconds]
cobakobodob has quit [Ping timeout: 260 seconds]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Client Quit]
Grantlyk has joined #ruby
momomomomo has joined #ruby
<godd2> Is it pronounced apeiros or apeiros?
<apeiros> I think the latter
yfeldblum has joined #ruby
<shevy> lol
niklasb has joined #ruby
<shevy> with a chinese dialect
momomomomo has quit [Client Quit]
<shevy> awwwwweeeeihrossszzzzz
fold has joined #ruby
<godd2> confirmed: shevy thinks the Chinese can't p
<wallerdev> i pronounce it ape heroes
benzrf|offline is now known as benzrf
<Wolland> how can I get a parent class of a subclass? class Blah < Color, need to get Color from Blah.new
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
Bumptious has quit [Remote host closed the connection]
<wallerdev> Blah.superclass
rurban has joined #ruby
Macaveli has quit [Ping timeout: 245 seconds]
<Wolland> ah thanks :)
<jhass> self.class.superclass
<jhass> if you want it generic ;)
<Ilyas> test
<Wolland> perfect thank you
arya_ has quit [Read error: Connection reset by peer]
<wallerdev> Color if you don't
_cpt_yossarian_ has joined #ruby
<froggy__> Can anyone recommend the nicest gem for working with a MySQL database? Is mysql2 the most popular?
<godd2> Blah.new.singleton_class.superclass.superclass
Cereal` has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
elico has joined #ruby
momomomomo has joined #ruby
<jhass> froggy__: it is though most people use an ORM or some other kind of abstraction
elico has left #ruby [#ruby]
claymore has quit [Remote host closed the connection]
ChrisHein has joined #ruby
<jhass> godd2: why is that better than .class.superclass ?
treehug88 has joined #ruby
claymore has joined #ruby
<godd2> Oh I was joking. Don't use that.
ghostmoth has joined #ruby
jottr has joined #ruby
Guest37821 has joined #ruby
Kricir has joined #ruby
<shevy> don't joke too much - jhass might decide to cut your balls off
duncannz has joined #ruby
cpt_yossarian has quit [Ping timeout: 260 seconds]
duncannz has quit [Read error: Connection reset by peer]
Guest37821 has quit [Read error: Connection reset by peer]
<godd2> K I promise to be super serious from now on.
* apeiros wonders whether shevy speaks from experience
aspires has joined #ruby
<shevy> I've seen these things happen here!
InfraRuby has joined #ruby
Sawbones has joined #ruby
_cpt_yossarian_ has quit [Client Quit]
cpt_yossarian has joined #ruby
tier_ has quit [Remote host closed the connection]
tier has joined #ruby
georgelappies has quit [Quit: Leaving]
hamakn has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jerius has quit []
<advorak> anybody familiar with openssl? I am trying to implement the following openssl command in ruby code: openssl s_client -dtls1 -cipher DHE-DSS-AES256-SHA -connect 209.87.112.215:34135
jerius has joined #ruby
<advorak> I have a feeling the only thing I'm missing is the "-dtls1" option in ruby code .. but I can't figure it out .. it won't get past the handshake component ..
ghr has joined #ruby
michaeldeol has joined #ruby
tier has quit [Ping timeout: 240 seconds]
hamakn has quit [Ping timeout: 255 seconds]
Danibal has joined #ruby
djbkd has quit [Remote host closed the connection]
Danibal has quit [Remote host closed the connection]
_cpt_yossarian_ has joined #ruby
Danibal has joined #ruby
benvds has quit [Quit: leaving]
gigetoo has joined #ruby
benvds has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
rubyonrailed has quit []
vinky has quit [Read error: Connection reset by peer]
tier has joined #ruby
Urocyon is now known as sfiggins
<daxroc_> Evening all
cpt_yossarian has quit [Ping timeout: 240 seconds]
nat2610 has quit [Quit: Leaving.]
senayar has joined #ruby
Bumptious has joined #ruby
Ankhers has quit [Remote host closed the connection]
<daxroc_> I've created a thor-cli gem when I install using the rake tasks my gem bin/cli tools work fine but when I try installing the gem directly some commands don't work and don't error out. How would I inspect whats going on?
patrick99e99 has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 240 seconds]
vinky has joined #ruby
<AlHafoudh> hi
<AlHafoudh> is it possible to pack all dependant gems into my gem?
dingus_khan has joined #ruby
<daxroc_> AlHafoudh:
yakko has quit []
<daxroc_> AlHafoudh: bundle package
toastynerd has joined #ruby
<AlHafoudh> yes, I have that, but gem I build my gem with the vendor/cache directory, it does not install the gems from that directory
momomomomo has quit [Quit: momomomomo]
Zebroid has quit [Remote host closed the connection]
noz_ has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
mijicd has quit [Remote host closed the connection]
dingus_k_ has joined #ruby
shackleford has quit [Remote host closed the connection]
<noz_> Is there some sort of before hook I can use for modules that will alow me to run some code anytime a class using the module gets instantiated?
dingus_khan has quit [Read error: Connection reset by peer]
aspires has quit []
<jhass> noz_: no, you need to overwrite initialize and provide an alternate initialize hook to the class or make all classes call super in their initializes
Neomex has quit [Ping timeout: 264 seconds]
superscott[8] has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
cobakobodob has joined #ruby
<noz_> jhass: OK, that's what I was doing but I was hoping there would be a nice way, thanks.
alexju has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
aspires has joined #ruby
yubrew has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
yubrew has joined #ruby
nanoyak has joined #ruby
shackleford has joined #ruby
alexju has joined #ruby
aspires has quit [Client Quit]
_cpt_yossarian_ has quit [Quit: Leaving]
cpt_yossarian has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dseitz has joined #ruby
vinky has quit [Read error: Connection reset by peer]
alexju has quit [Read error: No route to host]
alexju has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
decoponio has quit [Quit: Leaving...]
e4xit has quit [Quit: Right I'm out!]
livingstn has joined #ruby
Neomex has joined #ruby
mallu has quit [Quit: Page closed]
dik_dak has quit [Remote host closed the connection]
msmith has quit [Remote host closed the connection]
shanlar has quit [Read error: Connection reset by peer]
Spami has joined #ruby
shanlar has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
nat2610 has joined #ruby
e4xit has joined #ruby
kaiju_sloth has quit []
jimms has quit []
Grantlyk has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 272 seconds]
felgenh3 has quit [Quit: felgenh3]
philcrissman has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
Grantlyk has joined #ruby
craigp has quit [Remote host closed the connection]
djbkd has joined #ruby
dik_dak has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
tier_ has joined #ruby
claymore has joined #ruby
lw has joined #ruby
Atttwww has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
noz_ has quit [Quit: Page closed]
emmesswhy has joined #ruby
newUser1234 has quit [Remote host closed the connection]
Xiti has quit [Quit: Leaving]
tier has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
omosoj has quit [Ping timeout: 260 seconds]
buto has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Xiti has joined #ruby
qhartman has joined #ruby
yokel has joined #ruby
ppinto has joined #ruby
dawkirst has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
xcv has joined #ruby
banister has quit [Max SendQ exceeded]
tier_ has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
thams has joined #ruby
tier has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ssvo has joined #ruby
banister has joined #ruby
newUser1_ has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
Deele has quit [Ping timeout: 244 seconds]
arup_r has quit [Quit: Leaving.]
craigbowen3 has quit [Ping timeout: 250 seconds]
godd2 has quit [Ping timeout: 255 seconds]
kquig has joined #ruby
gregf has joined #ruby
alexju has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
alexju has joined #ruby
claymore has quit [Quit: Leaving]
luckyruby has quit [Ping timeout: 264 seconds]
krisquigley has quit [Ping timeout: 260 seconds]
RandyT has quit [Quit: ZNC - http://znc.in]
jprovazn has quit [Quit: Odcházím]
Lucky__ has joined #ruby
jayunit100_ has joined #ruby
InhalingPixels has joined #ruby
RandyT has joined #ruby
jayunit100_ has quit [Client Quit]
omosoj has joined #ruby
felgenh3 has joined #ruby
alexju has quit [Ping timeout: 255 seconds]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dbasch has joined #ruby
yubrew has joined #ruby
vinky has joined #ruby
<gomikemi1e> i added a section to check if https_proxy is empty or not, if it is, it sets it and runs my commands then sets it to empty on its last line
<gomikemi1e> lines 5 through 8
alexju has joined #ruby
thams has quit [Quit: thams]
luckyruby has joined #ruby
shredding has quit [Quit: shredding]
Bumptious has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
Bumptious has joined #ruby
Beoran has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
thams has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
axsuul has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
sivam has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
felgenh3 has quit [Quit: felgenh3]
alexju has quit [Read error: No route to host]
alexju_ has joined #ruby
ARCADIVS has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
alexju_ has quit [Remote host closed the connection]
Eiam has quit [Ping timeout: 255 seconds]
alexju has joined #ruby
djbkd has quit [Remote host closed the connection]
mikepack has joined #ruby
Kricir has joined #ruby
threesixes has joined #ruby
djbkd has joined #ruby
ra4king1 has joined #ruby
chipotle has quit [Quit: cya]
alexju has quit [Ping timeout: 244 seconds]
PsionTheory has joined #ruby
saarinen has joined #ruby
shackleford has quit [Remote host closed the connection]
sambao21 has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
jonahR has joined #ruby
michaeldeol has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
jonahR has quit [Client Quit]
ra4king has quit [Ping timeout: 246 seconds]
alexju has joined #ruby
jonahR has joined #ruby
ascarter has joined #ruby
jonahR has quit [Client Quit]
ascarter has quit [Max SendQ exceeded]
jonahR has joined #ruby
senayar has quit []
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
Beoran has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
Deele has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hakunin has joined #ruby
<gomikemi1e> can anyone take a peak at this => https://gist.github.com/Tokynet/f356e209bada41b667ea
spyderman4g63 has quit []
Zebroid has joined #ruby
codecop has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has joined #ruby
tylerkern has joined #ruby
<bricker`work> in your opinion, for "duration" attributes, is documentation good enough to specify the units? Or should the attribute be "something.duration_hours", for example?
shackleford has joined #ruby
kquig has quit [Remote host closed the connection]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
Zebroid has quit [Ping timeout: 250 seconds]
<wallerdev> depends what it is
superscott[8] has quit [Remote host closed the connection]
einarj has joined #ruby
Rollabunna has quit [Remote host closed the connection]
johnmolina has quit []
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
<bricker`work> wallerdev: why?
superscott[8] has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
<wallerdev> because in some cases it could be obvious
<wallerdev> and others it oculd not
nanoyak has joined #ruby
<wallerdev> usually you shouldnt rely on people reading documentation to find something out
<wallerdev> since no one reads documentation
Eiam has joined #ruby
<centrx> The code should be self-documenting
yfeldblum has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
paulfm has quit []
crdpink has joined #ruby
<centrx> If you need a comment to clarify what something is or does, usually it can be renamed or split up to put that fact in the code itself.
bmurt has quit []
<wallerdev> and if its always days for example, i might call it job.days_employed instead of job.duration_employed
<wallerdev> or just provide job.start_date and job.end_date or something
shackleford has quit [Ping timeout: 250 seconds]
Bumptious has joined #ruby
<centrx> Yeah, duration === Range === start_date..end_date
einarj_ has joined #ruby
einarj has quit [Read error: Connection reset by peer]
shackleford has joined #ruby
aspires has joined #ruby
CorySimmons has joined #ruby
TheNet has joined #ruby
djbkd has quit [Remote host closed the connection]
tier_ has joined #ruby
einarj has joined #ruby
djbkd has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
superscott[8] has quit [Ping timeout: 255 seconds]
Jackneill has quit [Remote host closed the connection]
<gomikemi1e> can anyone take a peak at this => https://gist.github.com/Tokynet/f356e209bada41b667ea i just want to end the script on or before line 27
sambao21 has joined #ruby
asdasdasdasss has quit [Quit: Lingo - http://www.lingoirc.com]
tier_ has quit [Remote host closed the connection]
tier has quit [Read error: Connection reset by peer]
<gomikemi1e> the script is redundant (makes the same calls 2 times) but if the first "set" ran, i would like it to end the script there
einarj_ has quit [Ping timeout: 244 seconds]
Macaveli has quit [Ping timeout: 250 seconds]
teddyp1cker has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fgo__ has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jonahR_ has joined #ruby
baroquebobcat has quit [Ping timeout: 245 seconds]
<bricker`work> wallerdev: centrx thansk
<bricker`work> thanks*
djbkd has quit [Remote host closed the connection]
livingstn has quit []
_maes_ has joined #ruby
djbkd has joined #ruby
jonahR has quit [Ping timeout: 244 seconds]
shackleford has quit [Read error: Connection reset by peer]
shackleford has joined #ruby
mikepack has joined #ruby
Sawbones has quit []
<advorak> anybody familiar with openssl? I am trying to implement the following openssl command in ruby code: openssl s_client -dtls1 -connect 209.87.112.215:34135
<advorak> I have a feeling the only thing I'm missing is the "-dtls1" option in ruby code .. but I can't figure it out .. it won't get past the handshake component ..
Liothen has quit [Ping timeout: 245 seconds]
jdj_dk has joined #ruby
mindriot101 has joined #ruby
mindriot101 has left #ruby [#ruby]
wpp has quit []
xcv has quit [Ping timeout: 240 seconds]
omosoj has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
realDAB has quit [Quit: realDAB]
jdj_dk has quit [Remote host closed the connection]
maroloccio has quit [Quit: WeeChat 0.4.3]
lw has quit [Quit: s]
centrx has quit [Quit: Mead error: Connection reset by beer]
eyeamaye has quit [Quit: Leaving.]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
ldnunes has quit [Quit: Leaving]
doodlehaus has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
newUser1_ has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
djbkd has quit [Remote host closed the connection]
superscott[8] has joined #ruby
qwyeth has quit [Remote host closed the connection]
matchaw_ has joined #ruby
mr-foobar has quit [Ping timeout: 250 seconds]
dawkirst has quit [Remote host closed the connection]
obscured has quit [Quit: leaving]
nanoyak has quit [Read error: Connection reset by peer]
Danibal has quit [Remote host closed the connection]
nanoyak has joined #ruby
jaimef has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matchaw has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
bMalum has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
aspires has quit []
jonahR_ has quit []
matchaw_ has quit [Ping timeout: 255 seconds]
davispuh has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
matchaw has joined #ruby
djbkd has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
eyeamaye has joined #ruby
davedev24_ has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
PsionTheory has quit [Remote host closed the connection]
* shevy shakes advorak's hand
failshel_ has joined #ruby
<shevy> you may pass
davispuh has joined #ruby
Ilyas has quit [Quit: Leaving]
tylerkern has joined #ruby
jottr has joined #ruby
Hobogrammer has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
razum2um has quit [Quit: Leaving.]
failshell has quit [Ping timeout: 240 seconds]
davedev2_ has quit [Ping timeout: 260 seconds]
failshel_ has quit [Ping timeout: 244 seconds]
jxf has quit [Ping timeout: 260 seconds]
crdpink has quit [Ping timeout: 250 seconds]
Danibal has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
siukit2014 has joined #ruby
thams has quit [Quit: thams]
matchaw has quit [Ping timeout: 272 seconds]
matchaw has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
sivam has quit [Quit: Leaving.]
ascarter has quit [Max SendQ exceeded]
mikepack has quit [Remote host closed the connection]
ascarter has joined #ruby
jerius has quit []
sivam has joined #ruby
kith has quit [Quit: kith]
Bumptious has joined #ruby
kith has joined #ruby
fgo has joined #ruby
britneywright has joined #ruby
aspires has joined #ruby
Kricir has joined #ruby
fgo_ has joined #ruby
PeterBoy has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
TDJACR has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
thams has joined #ruby
the8thbit|work has quit [Ping timeout: 255 seconds]
InfraRuby has left #ruby [#ruby]
jottr has quit [Ping timeout: 272 seconds]
cocotton_ has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
kirun has quit [Quit: Client exiting]
peret has joined #ruby
St_Marx has quit [Remote host closed the connection]
<cajone> Guys im trying to normalise this String: s1 = " This is a string with some large spaces in it " the closest I can get is using s1.gsub(/\s\s+/,'') but this is failing and I understand why, but can seem to find the right pattern, by normailised I mean no leading or trailing spaces and only one space between word boundaries
Kricir has quit [Ping timeout: 244 seconds]
fgo_ has quit [Ping timeout: 245 seconds]
johnmolina has joined #ruby
AlexRussia is now known as aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa is now known as a111111111111111
<jhass> cajone: .strip.squeeze(" ")
cocotton has quit [Ping timeout: 240 seconds]
a111111111111111 is now known as a000000000000000
jottr has joined #ruby
Deele has joined #ruby
a000000000000000 is now known as a---------------
St_Marx has joined #ruby
easier has joined #ruby
<hoelzro> cajone: you probably could also do s1.gsub(/\s+/, ' ')
<hoelzro> but that would clobber tabs with a single space as well
cocotton_ has quit [Ping timeout: 264 seconds]
<cajone> jhass: thanks once again, I truely am going to have to read more string methods, trying to do things the hard way with just gsub and the regexp help page
mikepack has joined #ruby
<cajone> hoelzro: does that no clobber the spaces between word boundies also, or leave spaces and the begining and end of the string?
<cajone> s/and/at/
<hoelzro> that would not strip the leading/trailing whitespace
a--------------- is now known as AlexRussia0
<hoelzro> jhass' technique is probably better, I was just demonstrating another way to do it =)
AlexRussia0 is now known as AlexRussia
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asteve has joined #ruby
nemesit|znc has quit [Ping timeout: 255 seconds]
jrhorn424 is now known as zz_jrhorn424
sivam has quit [Ping timeout: 240 seconds]
amargherio has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
Zesty has joined #ruby
philcrissman has joined #ruby
kaleido is now known as peer
peer is now known as kaleido
tewlz has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
thams has quit [Quit: thams]
MartinCleaver has quit [Quit: MartinCleaver]
nemesit|znc has joined #ruby
djbkd has joined #ruby
jespada has quit [Quit: Leaving]
Zenigor has joined #ruby
icarus has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
aspires has quit []
CorySimmons has quit [Quit: Zzz...]
davedev24_ has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
spider-mario has quit [Remote host closed the connection]
dbasch has quit [Quit: dbasch]
InhalingPixels has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
felgenh3 has joined #ruby
eyeamaye has quit [Quit: Leaving.]
invsblduck has joined #ruby
dblessing has quit [Quit: dblessing]
aspires has joined #ruby
eyeamaye has joined #ruby
root3d has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 260 seconds]
bluenemo has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
Zebroid has joined #ruby
iamjarvo has joined #ruby
agjacome has joined #ruby
Wolland has quit [Remote host closed the connection]
<invsblduck> Boy my lack of Ruby skillz is showing now. Take Mechanize, for example - it automatically exposes fields in an html form as attr_accessors in its Mechanize::Form object, so you can do `form_obj.foo = "bar"' to populate a field named 'foo'.
InfraRuby has joined #ruby
wald0 has quit [Ping timeout: 245 seconds]
<invsblduck> But what to do when the field is named 'foo.bar' in the page? form_obj.foo.bar isn't what i want. :)
InfraRuby has left #ruby [#ruby]
<apeiros> invsblduck: I'd assume it also allows access via [] and []=
<invsblduck> apeiros: excellent. i will figure out what that means and try it :P
<invsblduck> (hash keys i'm assuming)
dik_dak has quit [Quit: Leaving]
JoshGlzBrk has joined #ruby
Zebroid has quit [Remote host closed the connection]
snath has quit [Ping timeout: 246 seconds]
gtrak has joined #ruby
<apeiros> invsblduck: [] and []= are ordinary methods. and yes, they're used by Hash and Array for access
DrShoggoth has joined #ruby
<apeiros> I'd assume that form_obj["foo.bar"] and form_obj["foo.bar"] = val will work. but as said, only an assumption as that's a common pattern.
enebo has quit [Quit: enebo]
codebrah has joined #ruby
djbkd has quit [Remote host closed the connection]
<invsblduck> Awesome, let me try. And normally I'd read the Mechanize code to figure it out, but it was more of a Ruby interpreter question I wanted to know the answer to deep down (eg., I can't imagine dots are allowed in attr_accessor names, but there are all kinds of tricky things you can do sending messages to objects that I don't understand yet:))
dbasch has joined #ruby
yubrew has joined #ruby
<invsblduck> apeiros: worked. tyvm sir.
<apeiros> yw
jxf has joined #ruby
djbkd has joined #ruby
treehug88 has joined #ruby
djbkd has quit [Remote host closed the connection]
omosoj has joined #ruby
gtrak has quit [Remote host closed the connection]
qmfnp has joined #ruby
<treehug88> hey everyone, I'm learning ruby by writing a restful app in ruby; my work is using 1.9.2 which doesn't support the latest version of activerecord. What do people recommend I do to access a mysql database?
<treehug88> older version of activerecord? Raw mysql calls? Something else?
<apeiros> update ruby
<jhass> ^
<mozzarella> I recommend ruby 2
gtrak has joined #ruby
<jhass> 1.9.2 is out of official support
<treehug88> I'm pretty sure to encounter resistance with that path
yfeldblum has joined #ruby
<treehug88> (political resistance)
<apeiros> o0
ghr has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
lbaan has joined #ruby
<invsblduck> centos? :)
basiclaser has quit [Read error: Connection reset by peer]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
yubrew has quit [Ping timeout: 245 seconds]
froggy_ has joined #ruby
<treehug88> that works - thanks jhass
thams has joined #ruby
rtlong has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
froggy__ has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
djbkd has joined #ruby
flowerhack has joined #ruby
Zenigor has joined #ruby
Spami has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
Spami has joined #ruby
bMalum has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
Zenigor has quit [Remote host closed the connection]
codebrah has quit [Quit: Computer has gone to sleep.]
icole has joined #ruby
<shevy> what lies in ruby 2.2.0 future
<wallerdev> i hope they add javascript compiling
vaq has joined #ruby
Sgeo has joined #ruby
bMalum has quit [Ping timeout: 264 seconds]
<shevy> :\
<shevy> you wanna be known as funny waller again right
ValicekB has quit [Ping timeout: 255 seconds]
<vaq> Hello, I got summary.erb which renders user.erb which then again renders a third page. Is it possible to pass a local variable in render statement in summary down to the third and final page which is rendered?
<jhass> you need to pass it along in user.erb
<vaq> jhass: yeah, but how do I source that from summary.erb ?
<vaq> jhass: because other pages renders user.erb and I don't want those to have the same local
<jhass> render 'user', locals: {my_variable: value}
<jhass> is this rails?
jottr_ has joined #ruby
<vaq> jhass: yes
<jhass> you may just want to set an instance variable in the controller
<jhass> for further rails questions refer to #rubyonrails
Kricir has joined #ruby
<vaq> apologies.
ra4king1 is now known as ra4king
jottr has quit [Ping timeout: 260 seconds]
buto has quit [Quit: Textual IRC Client: www.textualapp.com]
johnmolina has quit []
lbaan has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
shackleford has quit [Remote host closed the connection]
aspires has quit []
Hanmac has joined #ruby
ppinto has quit [Quit: ppinto]
realDAB has joined #ruby
aspires has joined #ruby
dziga has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
mikepack has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
mikepack has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
agjacome has joined #ruby
Takle has quit [Remote host closed the connection]
Wolland has joined #ruby
einarj has quit [Remote host closed the connection]
mr-foobar has joined #ruby
larissa has joined #ruby
codebrah has joined #ruby
ValicekB has joined #ruby
SilkFox has quit [Read error: Connection reset by peer]
agjacome has quit [Client Quit]
agjacome has joined #ruby
klaut has quit [Remote host closed the connection]
djbkd has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
m8 has quit [Quit: Sto andando via]
klaut has joined #ruby
mr-foobar has joined #ruby
SilkFox has joined #ruby
thams has quit [Quit: thams]
superscott[8] has quit [Read error: Connection reset by peer]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
Hobogrammer has quit [Quit: WeeChat 0.4.3]
djbkd has quit [Remote host closed the connection]
beef-wellington has quit [Read error: Connection reset by peer]
beef-wellington has joined #ruby
Hobogrammer has joined #ruby
PeterBoy has quit [Remote host closed the connection]
klaut has quit [Ping timeout: 260 seconds]
PeterBoy has joined #ruby
soheil has joined #ruby
sambao21 has joined #ruby
Rollabunna has joined #ruby
starless has quit [Quit: Leaving]
nowthatsamatt has quit [Quit: nowthatsamatt]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
mrommelf has joined #ruby
yfeldblum has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
advorak has quit [Quit: Ex-Chat]
kevind has quit [Quit: kevind]
PeterBoy has quit [Quit: Bye Bye]
djbkd has joined #ruby
Rollabunna has quit [Ping timeout: 250 seconds]
apeiros has quit [Remote host closed the connection]
amacou has joined #ruby
apeiros has joined #ruby
InfraRuby has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 246 seconds]
Royalb15 has joined #ruby
IceDragon has joined #ruby
toastynerd has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
eyeamaye has quit [Quit: Leaving.]
Bira has joined #ruby
InhalingPixels has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
thams has joined #ruby
yfeldblum has joined #ruby
Spami_ has joined #ruby
mikepack has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
Bira has quit [Ping timeout: 260 seconds]
treehug88 has quit []
realDAB has quit [Quit: realDAB]
InhalingPixels has quit [Ping timeout: 260 seconds]
Spami has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
amacou has quit [Remote host closed the connection]
codebrah has quit [Quit: Computer has gone to sleep.]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
diegoviola has joined #ruby
Kricir has quit [Remote host closed the connection]
djbkd has joined #ruby
kireevco has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 272 seconds]
saarinen has quit [Quit: saarinen]
Dr3amc0d3r|away has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
Dr3amc0d3r|away has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
eyeamaye has joined #ruby
kireevco has joined #ruby
realDAB has joined #ruby
kireevco has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
xcv has quit []
yubrew has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
djbkd has joined #ruby
bmurt has joined #ruby
ChrisHein has quit [Remote host closed the connection]
bMalum has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrShoggoth has quit [Quit: Leaving]
<nobitanobi> What is the difference between delete and unlink when trying to delete a file? I see the same descriptions http://www.ruby-doc.org/core-2.1.2/File.html
soheil has quit []
<wallerdev> no difference
netzfisch has joined #ruby
<eam> delete has the wrong name ;-)
cpruitt has quit [Quit: cpruitt]
aspiers has joined #ruby
<wallerdev> not sure why they dont in rubydoc
<wallerdev> but they show as aliases in ri
nanoyak has quit [Quit: Computer has gone to sleep.]
bMalum has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
ephemerian has quit [Quit: Leaving.]
felgenh3 has quit [Quit: felgenh3]
eindoofus has quit [Quit: Leaving]
soheil has joined #ruby
andrewlio has quit [Quit: Leaving.]
<nobitanobi> ok, thanks guys
bMalum has joined #ruby
renderful has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
nanoyak has joined #ruby
kaspertidemann has quit []
Grantlyk has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
bMalum has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
doodlehaus has joined #ruby
Grantlyk has joined #ruby
netzfisch has quit [Quit: netzfisch]
lbaan has joined #ruby
jaimef has quit [Excess Flood]
icebourg has quit []
jhass is now known as jhass|off
codebrah has joined #ruby
Kricir has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
soheil has quit []
Hanmac has joined #ruby
Spami_ has left #ruby ["Leaving"]
mikepack has quit [Remote host closed the connection]
frankle has joined #ruby
MartinCleaver has joined #ruby
Spami has joined #ruby
sputnik13 has left #ruby ["Textual IRC Client: www.textualapp.com"]
dingus_k_ has quit [Remote host closed the connection]
jaimef has joined #ruby
doodlehaus has quit [Remote host closed the connection]
mikepack has joined #ruby
amacou has joined #ruby
OrkzRule has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
adamholt has quit [Ping timeout: 255 seconds]
Hobogrammer has quit [Read error: No route to host]
fschuindt has joined #ruby
fschuindt has quit [Max SendQ exceeded]
Neomex has quit [Read error: Connection reset by peer]
thams has quit [Quit: thams]
fschuindt has joined #ruby
<ged> ordinal
fschuindt has quit [Max SendQ exceeded]
<ged> Haha IRC client fail.
Scantydd has joined #ruby
fschuindt has joined #ruby
saarinen has joined #ruby
fschuindt has quit [Max SendQ exceeded]
adamholt has joined #ruby
ghanima has quit [Ping timeout: 246 seconds]
fschuindt has joined #ruby
fschuindt has quit [Max SendQ exceeded]
Scantydd has quit [Remote host closed the connection]
philcrissman has joined #ruby
toastynerd has joined #ruby
thams has joined #ruby
cybercix has quit [Quit: Saliendo]
superscott[8] has joined #ruby
diegovio1 has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amacou has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 260 seconds]
kbuttonwood has joined #ruby
Hobogrammer has joined #ruby
tricon_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
peret has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
x1337807x has joined #ruby
philcrissman has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
tylerkern has joined #ruby
realDAB has quit [Quit: realDAB]
diegovio1 has quit [Ping timeout: 240 seconds]
segv has joined #ruby
ppinto has joined #ruby
tylerkern has quit [Client Quit]
ghostmoth has quit [Quit: ghostmoth]
djbkd has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 250 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Deele has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
aspires has quit []
aspires has joined #ruby