havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
chipotle has quit [Quit: cheerio]
arthropodado has joined #ruby
Lucky__ has joined #ruby
youch has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KensoDev has joined #ruby
chipotle has joined #ruby
infernix has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
at46_ has quit [Remote host closed the connection]
b2zeldafreak has joined #ruby
last_staff has quit [Quit: last_staff]
<shevy> let's see if http://rubular.com/ can help
baweaver has quit [Ping timeout: 252 seconds]
<shevy> oh right
<shevy> x = "abc <Bottom Page> yo there"; x.gsub!(/\s*<Bottom Page>.*/,'') # => "abc"
<shevy> probably goes even shorter than that
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KensoDev has quit []
grill has joined #ruby
grill has quit [Client Quit]
mfb2 has joined #ruby
benlieb has quit [Quit: benlieb]
<GeorgesLeYeti> ty shevy
GeorgesLeYeti has quit [Quit: Quitte]
elifoster has joined #ruby
sankaber has joined #ruby
zyzioziom has joined #ruby
tomaw has joined #ruby
sankaber has quit [Client Quit]
symm- has quit [Ping timeout: 252 seconds]
pdoherty has joined #ruby
blackgoat has quit [Ping timeout: 240 seconds]
speakingcode has joined #ruby
kalopsian has quit [Ping timeout: 256 seconds]
cdg has quit [Remote host closed the connection]
Brklyn has quit [Ping timeout: 250 seconds]
bb010g has joined #ruby
kriskropd has joined #ruby
chipotle has quit [Quit: cheerio]
Mojo_Nixon has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure|dc has joined #ruby
shaileshg has joined #ruby
ur5us has joined #ruby
x77686d has quit [Quit: x77686d]
Darmani has quit [Ping timeout: 252 seconds]
kirillzh has joined #ruby
baweaver has joined #ruby
zyzioziom has quit [Ping timeout: 252 seconds]
ellistaa has quit [Quit: ellistaa]
kirillzh has quit [Client Quit]
LoneHerm_ has joined #ruby
aupadhye has joined #ruby
dfockler has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> this page is kinda cool https://jekyllrb.com/docs/home/
Musashi007 has joined #ruby
<shevy> I haven't before seen an "Improve this page" link like that
<shevy> would be even cooler to do all editing in the browser for everything!
<Ox0dea> Native is dead! Long live native!
jazzonmymind has joined #ruby
<shevy> :P
LoneHerm_ has quit [Ping timeout: 245 seconds]
despai has quit [Quit: barbecue time dude]
arlek has joined #ruby
chipotle has joined #ruby
valetudo has quit [Remote host closed the connection]
sankaber has joined #ruby
Azure|dc has quit [Ping timeout: 245 seconds]
k13nox_ has joined #ruby
<shevy> yeah that is kinda weird
<shevy> but then again it also sorta interconnects with a libruby for a RubyOS!!!
yfeldblum has quit [Remote host closed the connection]
slawrence00 has joined #ruby
DLSteve has joined #ruby
k13nox has quit [Ping timeout: 240 seconds]
<shevy> I'd like to do a "VM all the things" memegenerator with either the dude with the beard or the apache indian http://cdn.meme.am/instances/62553668.jpg
cjbottaro has joined #ruby
<Ox0dea> Where is this dude with the beard?!
meves has quit [Remote host closed the connection]
<shevy> let me try to find out his name... I know it's in some bloopers on youtube
Musashi007 has quit [Quit: Musashi007]
<shevy> Anchorman bloopers!
hayden_ has quit [Quit: Connection closed for inactivity]
Chachi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Nobody in that film has a beard.
moeabdol has joined #ruby
<Ox0dea> They're all mustachioed.
<riceandbeans> what does this mean?
<riceandbeans> def <<(key)
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<riceandbeans> I've never seen def followed by symbols rather than a word
<riceandbeans> def [](keylist)
akaiiro has joined #ruby
moeabdol4 has quit [Ping timeout: 250 seconds]
<Ox0dea> riceandbeans: Those are just legal method names.
jottr_ has quit [Ping timeout: 256 seconds]
<Ox0dea> When you say `some_array[4]`, you're actually invoking the #[] method.
kalopsian has quit [Ping timeout: 265 seconds]
Chachi has joined #ruby
<riceandbeans> so you're not actually referencing the 5th member of the array, but using the number 4 as an argument to the [] method?
<Ox0dea> That's exactly right.
<Ox0dea> >> a = [1,2,3]; a.[](1)
<ruby[bot]> Ox0dea: # => 2 (https://eval.in/511471)
ESpiney_ has joined #ruby
<Ox0dea> Ruby provides this syntactic sugar for the #[] and #[]= methods, and you don't have to use the dot for other symbolic method names like #<<.
k13nox_ has quit [Remote host closed the connection]
danielwzd has joined #ruby
pdoherty has quit [Ping timeout: 260 seconds]
k13nox has joined #ruby
<riceandbeans> so what is << ?
<Ox0dea> The "shovel" operator.
<riceandbeans> def <<(key)
<Ox0dea> You can define it however you wish, but it's generally meant to be used as a synonym for "push".
kies^ has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
<Ox0dea> >> a = [1,2,3]; a.push(4); a << 5; a
<ruby[bot]> Ox0dea: # => [1, 2, 3, 4, 5] (https://eval.in/511472)
<riceandbeans> like adding an element to an array
<riceandbeans> but...
<riceandbeans> wtf?
<riceandbeans> so this module is reimplementing basic array methods?
<Ox0dea> Maybe? I'm not omniscient.
<riceandbeans> there's a module from this code I'm looknig at
_Tariq has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
<Ox0dea> I can't confirm.
mikeiniowa has joined #ruby
k13nox has quit [Ping timeout: 245 seconds]
ramfjord_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> riceandbeans: Just to clarify, any object can have its own definition for #<<.
cmckee has joined #ruby
kirillzh has joined #ruby
kirillzh has quit [Client Quit]
ramfjord has quit [Ping timeout: 250 seconds]
<Ox0dea> It's roughly a synonym for #push on Array, but then it's also left shift for Integer.
kirillzh has joined #ruby
Sucks has joined #ruby
kirillzh has quit [Client Quit]
platzhirsch has left #ruby [#ruby]
kirillzh has joined #ruby
<cmckee> Im trying to refactor and move logive from view/controller to the model. Anyone free to look at my current code and point me in the right direction?
Jardayn has quit [Quit: Leaving]
<Ox0dea> ?rails cmckee
<ruby[bot]> cmckee: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<cmckee> Yeah rails
kirillzh_ has joined #ruby
kirillzh has quit [Read error: Connection reset by peer]
elifoster has quit [Ping timeout: 264 seconds]
kirillzh_ has quit [Client Quit]
dopamean_ has joined #ruby
pharaoh2 has joined #ruby
renancarvalho has joined #ruby
Chachi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat has joined #ruby
ogpastal_ has joined #ruby
mfb2 has quit [Remote host closed the connection]
ogpastaling has quit [Ping timeout: 256 seconds]
renancarvalho1 has joined #ruby
ogpastal_ has quit [Ping timeout: 252 seconds]
renancarvalho1 has left #ruby [#ruby]
nettoweb has joined #ruby
renancarvalho has quit [Ping timeout: 276 seconds]
KensoDev has joined #ruby
ferr has joined #ruby
moeabdol1 has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
meves has joined #ruby
reaVer has joined #ruby
kalopsian has joined #ruby
mfb2 has joined #ruby
baweaver has quit [Remote host closed the connection]
zyzioziom has joined #ruby
dlitvak has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mfb2 has quit [Remote host closed the connection]
ziyadb has quit [Quit: Connection closed for inactivity]
hinbody has quit [Ping timeout: 250 seconds]
moss has quit [Quit: QUITTING]
arthropodado has quit [Ping timeout: 265 seconds]
krobzaur_ has joined #ruby
mfb2 has joined #ruby
moss has joined #ruby
benlieb has joined #ruby
hxegon has joined #ruby
dlitvak has quit [Remote host closed the connection]
yoongkan_ has joined #ruby
victortyau has quit [Read error: Connection reset by peer]
aibot_ has joined #ruby
arlek has quit [Ping timeout: 256 seconds]
youch has quit [Ping timeout: 256 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
lipoqil has quit [Quit: Connection closed for inactivity]
mfb2 has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
yoongkan_ has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
Chachi has joined #ruby
sankaber has joined #ruby
serbalgi has quit [Quit: Ex-Chat]
oetjenj has joined #ruby
mikecmpbll has quit [Quit: Textual IRC Client: www.textualapp.com]
hinbody has joined #ruby
meves_ has joined #ruby
meves has quit [Ping timeout: 260 seconds]
hinbody has quit [Client Quit]
Pintor has joined #ruby
Pintor has quit [Client Quit]
Dimik has quit [Ping timeout: 265 seconds]
Pintor has joined #ruby
<Pintor> Hi :3 (again)
Lucky__ has joined #ruby
<Ox0dea> Hey, Pintor.
<Pintor> can you help me with a problem on a 2D hash? :c sorry hehe
Lucky__ has quit [Client Quit]
<Pintor> I wrote something like this https://gist.github.com/anonymous/46615ab67eb065695de3
<Ox0dea> Seems fine.
Chachi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Pintor> My trouble is when I add "puts creatures['fiction']", don't shows the full array
Lucky__ has joined #ruby
<Ox0dea> How are you initializing `creatures`?
jottr_ has joined #ruby
govg has joined #ruby
<Ox0dea> Everything looks good there, so your problem is in another castle.
<Pintor> oh, I need to use "p"?
<Ox0dea> For debug-printing, yeah.
<Ox0dea> Not for user-visible output, usually.
<Pintor> I need make it visible, now I got "nil" with "p" instead "puts"
cmckee has quit [Quit: cmckee]
<Ox0dea> Should be the other way around.
<Pintor> wait, check this
ogpastaling has joined #ruby
<Ox0dea> ✓
<Pintor> https://gist.github.com/anonymous/ee03bba4f84f81bb095d I am doing something like this
<Pintor> I don't put my code because has 1200 lines
bronson has joined #ruby
<Ox0dea> Thank you. :)
yfeldblum has joined #ruby
meves_ has quit [Ping timeout: 250 seconds]
<Ox0dea> The standard input I provided is all the way down at the bottom.
meves has joined #ruby
<Pintor> ok, works in that example but in my code not, that's weird...
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> ¯\_(ツ)_/¯
<Pintor> well, I need to change some things, haha
weemsledeux has joined #ruby
marr has quit [Ping timeout: 252 seconds]
znz_jp has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
zyzioziom has quit [Ping timeout: 240 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
yqt has quit [Ping timeout: 272 seconds]
kalopsia1 has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
kalopsian has quit [Ping timeout: 250 seconds]
paradisaeidae has joined #ruby
arescorpio has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lessless has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
<Ox0dea> Is there any way other than #const_missing to have Foo::Bar be a method call?
zacstewart has quit [Read error: Connection reset by peer]
zacstewa_ has joined #ruby
Pintor has quit [Quit: good night, and thanks ^^]
hxegon has quit [Quit: BRB]
jackjackdripper has quit [Quit: Leaving.]
skcin7 has joined #ruby
freerobby has joined #ruby
ferr has quit [Ping timeout: 250 seconds]
jackjackdripper has joined #ruby
kirillzh has joined #ruby
<shevy> are you doing the evil again
juddey has joined #ruby
<Ox0dea> Not even! GCC is the right name for this method, but Foo.GCC looks weird.
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pharaoh2 has quit [Quit: Textual IRC Client: www.textualapp.com]
northfurr has joined #ruby
northfurr has quit [Changing host]
northfurr has joined #ruby
persistence has joined #ruby
hinbody has joined #ruby
betabet has joined #ruby
ramfjord_ has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
<pipework> Ox0dea: Foo::GCC isn't cool anymore.
<Ox0dea> I'm doing it.
meves has quit [Remote host closed the connection]
coyo has quit [Ping timeout: 248 seconds]
<pipework> ooh, edgy
Ebok has joined #ruby
pwnd_nsfw` has joined #ruby
<Ox0dea> >> '2edgy4u'.gsub /\d/, &:succ
<ruby[bot]> Ox0dea: # => "3edgy5u" (https://eval.in/511479)
diegoviola has quit [Read error: Connection reset by peer]
arthropodado has joined #ruby
Ebok has quit [Client Quit]
arthropododo has quit [Quit: Leaving]
Guest89119 has quit [Remote host closed the connection]
yoongkan_ has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Client Quit]
Alazoral has joined #ruby
<droptone> Question: is this the correct syntax for increasing the timeout for RestClient to 100 seconds? response = RestClient::Request.execute(method: :get, url: "https://our.api.endpoint/api", timeout: 100, headers: {authorization: "#{account.auth_header}" })
<pizzaops> I have whta's probably a silly question. If I have class Foo::Bar::Baz and I want to write a module called Foo::Bar::Baz::New, is that possible, or once Baz is a class, you can't do that? Since I can't write module Foo; module Bar; module Baz; Module New, once Baz is already a class.
danielwzd has quit [Ping timeout: 260 seconds]
arthropodado has quit [Ping timeout: 240 seconds]
<Alazoral> pizzaops that should be totally doable, classes can have modules in
chipotle has quit [Quit: cheerio]
ogpastaling has quit [Remote host closed the connection]
<pizzaops> in?
pwnd_nsfw` is now known as pwnd_nsfw
jackjackdripper has quit [Ping timeout: 265 seconds]
<Alazoral> you know, inside their scopes
Rodya_ has joined #ruby
pilne has quit [Quit: Quitting!]
<Alazoral> your class is not called Foo::Bar::Baz, it's Baz in the scope of Bar in the scope of Foo
yoongkan_ has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
<Ox0dea> That's not quite right.
<Ox0dea> >> class Foo; class Bar; name end end
<ruby[bot]> Ox0dea: # => "Foo::Bar" (https://eval.in/511482)
tjohnson has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Read error: Connection reset by peer]
<Alazoral> Ox0dea that's the equivalent of an absolute path though
<Ox0dea> Alazoral: What message do I send Foo::Bar to get it to return just "Bar"?
<pizzaops> Ox0dea: yeah I didn't type out all the code since typing all the ends doesn't add any information to my question :)
Ebok has joined #ruby
northfurr has quit [Quit: northfurr]
ogpastaling has joined #ruby
at46 has joined #ruby
<Alazoral> Ox0dea conceptually, it's just like a file system; you can refer to sister modules in the same directory, and you can escape to 'root' with a prefixed ::
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpup has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 250 seconds]
krobzaur_ has quit [Ping timeout: 264 seconds]
cpup has joined #ruby
<Ox0dea> Alazoral: I'm quite familiar with the notion of fully qualified names. I maintain that Foo:Bar's "name" (i.e., what it's called) is "Foo::Bar".
arthropodado has joined #ruby
<Alazoral> Ox0dea whoa hold on there buddy
<Alazoral> Ox0dea a name is what it's called
<Alazoral> Ox0dea called
ruby-lang511 has joined #ruby
<Alazoral> Ox0dea called has a very specific definition in programming, and most of the time you would not use the fully qualified name to call
<Alazoral> Ox0dea people have fully qualified names but they are rarely called by them
<Ox0dea> Obfuscatory pedantry! My favorite kind.
_Tariq has quit [Remote host closed the connection]
ruby-lang511 has quit [Client Quit]
ogpastaling has quit [Ping timeout: 240 seconds]
frem has quit [Quit: Connection closed for inactivity]
<Ox0dea> Alazoral: Would you agree that there is a subtle but important difference between scope and hierarchy?
al2o3-cr has joined #ruby
arthropodado has quit [Ping timeout: 245 seconds]
<Alazoral> Ox0dea: Without making the context of that statement more concrete, I'm afraid not
paradisaeidae has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >> (Foo = Class.new).const_set(:Bar, Class.new); Foo.const_get(:Bar).name # Alazoral
<ruby[bot]> Ox0dea: # => "Foo::Bar" (https://eval.in/511483)
<Ox0dea> We never leave the top-level lexical scope there, and yet an obvious hierarchy has been constructed.
<Alazoral> obviously
oetjenj has quit [Ping timeout: 260 seconds]
<Alazoral> in terms of lexical scope
<Ox0dea> Huh?
oetjenj has joined #ruby
<Ox0dea> > your class is not called Foo::Bar::Baz, it's Baz in the scope of Bar in the scope of Foo
<Ox0dea> I said that that wasn't "quite right", but it's really just wrong.
<Alazoral> no, you can refer to Baz in the scope of Bar in the scope of Foo. it's exactly right
<Ox0dea> How do we ask a class what it's called?
<Alazoral> if i am inside module Baz and there is a module Bar in there, I can refer to it, to send it messages, by 'Bar'
<Ox0dea> Is that its name?
<Alazoral> because they share scope
zyzioziom has joined #ruby
<Alazoral> Did I use the word 'name'?
incite has quit [Ping timeout: 252 seconds]
<Ox0dea> Constant resolution works by walking a hierarchy, not a scope chain; these are often (but hardly always) the same thing.
shadoi has quit [Quit: Leaving.]
<Ox0dea> Using two notions to explain something where one would suffice is to be frowned upon.
krobzaur_ has joined #ruby
jottr_ has joined #ruby
incite has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
arthropodado has joined #ruby
Guest1834 has quit [Changing host]
Guest1834 has joined #ruby
Guest1834 is now known as paultreny
ogpastaling has joined #ruby
jottr_ has quit [Ping timeout: 276 seconds]
arthropodado has quit [Ping timeout: 250 seconds]
<Alazoral> i fear you might be the pendant now. if i evaluate source which creates a module, inside the lexical scope of another module, the writer of that source cannot, at time of writing, know what their module will return 'name'. the only truth they have is a truth they define themselves. all they can depend on is the relative name. similarly, the declaration class Foo::Bar::Baz only asserts that Baz is a class. Foo and Bar could be classes or
<Alazoral> modules. It was this confusion I was trying to clear up, by explaining how I think about it.
infernix has joined #ruby
ogpastaling has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
chipotle has joined #ruby
elifoster has joined #ruby
lessless has quit [Read error: Connection reset by peer]
gidlf has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
arthropodado has joined #ruby
paradisaeidae has joined #ruby
Brklyn has joined #ruby
gidlf has quit [Remote host closed the connection]
supertylerc has joined #ruby
Bloomer has joined #ruby
Brklyn has quit [Ping timeout: 265 seconds]
B1n4r10 has joined #ruby
<Ox0dea> Alazoral: I appreciated the philosophical touch, but https://eval.in/511485 demonstrates that the writer can in fact act based on whose lexical scope they find themselves in.
babblebre has joined #ruby
<Alazoral> You misunderstand. During *writing* class C, there is no way to know its name.
<Ox0dea> You're right that lexical scope and constant resolution don't come apart quite so easily as I might have inadvertently insinuated, but they are most certainly different sides of the same token.
<Alazoral> other than C
krobzaur_ has quit [Ping timeout: 248 seconds]
vishwa has joined #ruby
<Ox0dea> Or by invoking #name...
<vishwa> Hey guys, I'm using this ruby AI gem called ai4r. requiring it works, but I want to import a class inside it called DataSet.
<vishwa> Whenever I import it, it calls undefined constant
<Alazoral> how do you invoke #name during writing?
<Alazoral> you seem obsessive about the results of a method, but methods are not truth in Ruby, because every method can change at any time.
<vishwa> I've tried defining it as ai4r::Data::Dataset (the complete definition), but this also spoouts an error - undefined ai4r
<vishwa> wtf is going on? :O
<Ox0dea> They nevertheless return what was true at the time they were invoked. I, for one, don't want my programs travelling in time.
<vishwa> http://pastebin.com/UaJv9vdF contains a few lines in IRB to explain the issue
<ruby[bot]> vishwa: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c9a48a83ebf2117f9461
<ruby[bot]> vishwa: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
zyzioziom has quit [Ping timeout: 240 seconds]
<vishwa> Thanks ruby bot
<Ox0dea> You've got to capitalize the namespace.
<Alazoral> i believe I proved you believe a paradox, Ox0dea. if the #name IS the real true name of the class, but the programmer cannot call it that and have it work under every circumstance, it cannot be the real true name.
<Ox0dea> Alazoral: Welcome to the inherent dynamism of computational systems.
<Alazoral> ruby has a ton of syntactic sugar. it's really important when learning it you learn what are the truths you can build on. #name is not one of them. the relative name, however, is.
gidlf has joined #ruby
<vishwa> Ox0dea: new error, unitialised constant Dataset
<Ox0dea> vishwa: More capitalization woes.
<vishwa> data_set = DataSet.new(:data_items=>$training, :data_labels=>$labels)
<vishwa> Do I need to say Data::DataSet?
<bnagy> ?try
<ruby[bot]> Why don't you try it and see for yourself?
djbkd has quit [Remote host closed the connection]
arup_r has joined #ruby
<vishwa> I did, same error for that now lol
<bnagy> vishwa: playing around in irb is a good way to explore namespaces
<vishwa> yeah bro working on it
<Ox0dea> s/irb/pry/
<vishwa> that's how i narrowed it down
<bnagy> basically you just need to find some toplevel constant that actually exists :)
<bnagy> but it's can't be ai4r because that's lowercase (so can't be a constant)
<bnagy> s/'s//
<Ox0dea> >> Complex.constants false
<ruby[bot]> Ox0dea: # => [:compatible, :I] (https://eval.in/511486)
<Ox0dea> Checkmate, bnagy.
krz has joined #ruby
<bnagy> I'm actually completely fine with lying for didactic purposes
saneax is now known as saneax_AFK
x77686d has joined #ruby
<vishwa> bnagy: if I have an array of numeric and non numeric values, how do I print all on one line?
hxegon has joined #ruby
<vishwa> i figured that out. Ai4r also need caps smh
<bnagy> about a dozen ways :\
devbug has joined #ruby
<bnagy> the first way that springs to mind is to turn it into one string and print that, eg with join
<vishwa> join is failing, that was my first idea too
<bnagy> but there's also interpolation, or just iterating the collection and using print not puts
<vishwa> undefined method join for 0:Fixnum
<bnagy> well a Fixnum is not an Array so maybe you're invoking join on the wrong thing
<bnagy> >> ['a', 3].join ' '
<ruby[bot]> bnagy: # => "a 3" (https://eval.in/511487)
<vishwa> huh well thanks
baweaver has joined #ruby
workmad3 has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
<zacts> evening rubyists
saneax_AFK is now known as saneax
mpistone has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
gidlf has quit [Remote host closed the connection]
benlakey_ has joined #ruby
jbrhbr has quit [Quit: Leaving.]
benlakey_ is now known as benlakey
jbrhbr has joined #ruby
solocshaw has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
jbrhbr has quit [Client Quit]
MyMind has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
Sucks has quit [Ping timeout: 245 seconds]
meves has joined #ruby
al2o3-cr has joined #ruby
meves has quit [Remote host closed the connection]
terminalrecluse has joined #ruby
saneax is now known as saneax_AFK
mondok has quit [Ping timeout: 250 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
jottr_ has joined #ruby
dcunit3d has joined #ruby
b2zeldafreak has quit [Quit: Leaving]
davedev2_ has quit []
at46 has quit [Remote host closed the connection]
baweaver has joined #ruby
braincra- has quit [Quit: bye bye]
lemur has joined #ruby
atmosx has quit [Ping timeout: 245 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
peterevjan has joined #ruby
aupadhye has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 240 seconds]
<peterevjan> if you do a "bundle install --without development" and then run a "bundle exec scriptname.rb" and get an error saying "could not find development-dependency-gemname", what are you doing wrong?
danielwzd has joined #ruby
<Ox0dea> Not installing the development dependencies when one or more of them is required to run scriptname.rb.
^CrYpto^ has joined #ruby
<danielwzd> /clear all
<Ox0dea> Close enough.
<danielwzd> sorry
<Ox0dea> Consider mapping that to a key.
baweaver has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 265 seconds]
techtomas has joined #ruby
cjbottaro has joined #ruby
Rodya_ has joined #ruby
pawnbox has joined #ruby
<^CrYpto^> prints "Good Evening"
<^CrYpto^> print*
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supertylerc has quit [Ping timeout: 245 seconds]
braincrash has joined #ruby
atmosx has joined #ruby
tuelz1 has quit [Ping timeout: 248 seconds]
cjbottaro has joined #ruby
<peterevjan> turns out I didn't have the gems installed when I thought I did. duh
gidlf has joined #ruby
<peterevjan> Ox0dea: thanks!
barhum2013 has joined #ruby
<Ox0dea> peterevjan: Derp. :P Happy to help.
betabet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
<nofxx> >> p 'Good morning'
<nofxx> you can use only 'p' ... but it's #puts, not #print ... btw there's no bot here?
<ruby[bot]> nofxx: # => "Good morning" ...check link for more (https://eval.in/511489)
<nofxx> hehe, it's a lazy bot or I gained supercow powers? =D
al2o3-cr has joined #ruby
zast has joined #ruby
blackgoat has quit [Ping timeout: 250 seconds]
<Ox0dea> nofxx: Huh? #p, #puts, and #print are all different.
Eiam_ has joined #ruby
<nofxx> Ox0dea, hmmm... p is #inspect, right?
<Ox0dea> Aye.
<nofxx> yeah, thanks... forgot it
hahuang61 has joined #ruby
* nofxx hates when the #each block wants a |p| ... omg don't rename #p
bluOxigen has joined #ruby
northfurr has quit [Quit: northfurr]
<nofxx> It's the only method with one letter?
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> nofxx: Rarely a problem, mind: https://eval.in/511491
<Ox0dea> Just a little confusing, at worst.
hahuang65 has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
<Ox0dea> There's also String#b.
<nofxx> Ox0dea, didn't knew that, very cool! haha... but yeah, it's just OCD
zyzioziom has joined #ruby
<Ox0dea> Oh, and Numeric#i.
<Ox0dea> >> 3.14.i
<ruby[bot]> Ox0dea: # => (0+3.14i) (https://eval.in/511492)
cjbottaro has joined #ruby
peterevjan has quit [Remote host closed the connection]
<nofxx> That's very cool. I remeber #i from something now, but #b was first acquaintance
lemur is now known as baweaver
<Ox0dea> I didn't even know #i was a method until just now.
<Ox0dea> I knew you could make Complex literals by suffixing the i.
c355e3b has quit [Quit: Connection closed for inactivity]
DLSteve has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has joined #ruby
arup_r has quit []
gix has quit [Ping timeout: 260 seconds]
nickjj_ has joined #ruby
at46 has joined #ruby
sankaber has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
gix has joined #ruby
JDiPierro has joined #ruby
moeabdol1 has quit [Quit: WeeChat 1.4]
JDiPierro has quit [Remote host closed the connection]
shaileshg has quit [Quit: Connection closed for inactivity]
gidlf has quit [Quit: Leaving...]
betabet has joined #ruby
at46 has quit [Remote host closed the connection]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0/20160123151951]]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barhum2013 has quit [Quit: barhum2013]
ur5us has quit [Remote host closed the connection]
peterevjan has joined #ruby
aryaching has joined #ruby
pawnbox has quit [Remote host closed the connection]
barhum2013 has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
rdark has joined #ruby
saneax_AFK is now known as saneax
fedexo has joined #ruby
jottr_ has joined #ruby
zyzioziom has quit [Ping timeout: 272 seconds]
peterevjan has quit [Ping timeout: 250 seconds]
techtomas has quit [Quit: Bye]
cjbottaro has quit [Quit: Textual IRC Client: www.textualapp.com]
ftj has joined #ruby
ayonkhan has joined #ruby
marius is now known as nkts
jottr_ has quit [Ping timeout: 252 seconds]
SCHAAP137 has quit [Remote host closed the connection]
dc1 has joined #ruby
syk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
syk has joined #ruby
Ebok has joined #ruby
dc1 has quit [Client Quit]
dc1 has joined #ruby
syk has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
Mojo_Nixon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has quit [Quit: brb]
tuelz1 has joined #ruby
B1n4r10 has quit [Ping timeout: 256 seconds]
moeabdol has joined #ruby
persistence has quit [Ping timeout: 246 seconds]
PedramT has joined #ruby
tuelz1 has quit [Ping timeout: 245 seconds]
saneax is now known as saneax_AFK
nickjj has joined #ruby
benlieb_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
PedramT has quit [Remote host closed the connection]
nickjj_ has quit [Ping timeout: 276 seconds]
peterevjan has joined #ruby
supremekay has joined #ruby
<supremekay> hello
<supremekay> teach me ruby
tvw has joined #ruby
benlieb has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
PedramT has quit [Client Quit]
saneax_AFK is now known as saneax
hdfhdf has joined #ruby
supremekay has quit [Ping timeout: 245 seconds]
benlieb_ has quit [Ping timeout: 250 seconds]
Limix has joined #ruby
zast has quit [Remote host closed the connection]
stevemackinnon has quit [Remote host closed the connection]
<zacts> 'lo
elifoster has quit [Ping timeout: 250 seconds]
praveen has joined #ruby
Limix has quit [Client Quit]
aupadhye has joined #ruby
^CrYpto^ has quit [Ping timeout: 246 seconds]
atmosx_laptop has joined #ruby
atmosx_laptop has quit [Client Quit]
zacstewa_ has quit [Ping timeout: 250 seconds]
moeabdol1 has joined #ruby
ramfjord has joined #ruby
Chachi has joined #ruby
Rodya_ has joined #ruby
hdfhdf has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
moeabdol has quit [Ping timeout: 245 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
stevemackinnon has joined #ruby
supremekay has joined #ruby
<baweaver> supremekay: what have you tried so far?
<baweaver> zacts: 'lo
paradisaeidae has joined #ruby
elifoster has joined #ruby
<baweaver> depending on your experience in programming, the answers vary a lot, though by your question I'm guessing not much, so I would suggest tryruby
<Ox0dea> The most recently uploaded TED talk is about Ruby!
peterevjan has quit [Read error: Connection reset by peer]
<Ox0dea> (Tangentially.)
hdfhdf has joined #ruby
<baweaver> Who is this ted, and why is he talking?
Anderson69s_Deb has quit [Ping timeout: 240 seconds]
supremekay has quit [Ping timeout: 240 seconds]
peterevjan has joined #ruby
<baweaver> Guess they don't want to learn ruby then.
* baweaver closes the book of divine secrets
djbkd has joined #ruby
lxsameer has joined #ruby
<Ox0dea> I'm not convinced you don't know what TED is, but I'll bite: http://www.ted.com/talks/linda_liukas_a_delightful_way_to_teach_kids_about_computers
saneax is now known as saneax_AFK
hxegon has quit [Quit: BRB]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zyzioziom has joined #ruby
Yeomra has joined #ruby
peterevjan has quit [Remote host closed the connection]
ziyadb has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
yeticry_ has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
zyzioziom has quit [Ping timeout: 250 seconds]
Chachi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r> Well, when we convert say a Hash to Array, this is not called serialization. But when converting Hash to YAML/JSON, this process called serialization. What does this *serialization* mean actually ?
zacstewart has joined #ruby
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
yeticry_ has joined #ruby
<zacts> ^ don't know if this would be useful
<zacts> but it seemed like what you are asking to me, but I'm a newbie too
<Ox0dea> arup_r: The term "serialization" is meant to capture the idea that the data is intended to be transferred from one place to another.
<Ox0dea> Even if that just means from memory to disk.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jottr_ has quit [Ping timeout: 240 seconds]
peterevjan has joined #ruby
rodfersou has joined #ruby
Kryptonic has joined #ruby
<arup_r> Ox0dea: thanks. You definition is much closer to "Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called deserialization." and it seems, I get it why I did so many serialization in different projects..
benlieb has joined #ruby
<Ox0dea> arup_r: Yep, that's about the size of it. There's bound to be some kind of persistence layer in any application of even modest size.
<arup_r> Ox0dea: what you meant by the last line though ? Would you say more?
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
peterevjan has quit [Remote host closed the connection]
flughafen_ has joined #ruby
akaiiro has quit [Ping timeout: 260 seconds]
<Ox0dea> arup_r: RAM == memory for CPUs, serialization == memory for programs.
* Ox0dea puts away his broadest brush.
tuelz1 has joined #ruby
fedexo has quit [Ping timeout: 252 seconds]
<arup_r> o i see now
workmad3 has quit [Read error: Connection reset by peer]
x77686d has quit [Quit: x77686d]
benlieb has quit [Quit: benlieb]
neanderslob has joined #ruby
devyn_ has joined #ruby
tuelz1 has quit [Ping timeout: 250 seconds]
sandstrom has joined #ruby
Brklyn has joined #ruby
william3 has joined #ruby
danielwzd has quit [Quit: Leaving]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yoongkan_ has joined #ruby
devyn has quit [Ping timeout: 250 seconds]
moeabdol1 has quit [Ping timeout: 245 seconds]
paradisaeidae has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Alazoral has quit [Quit: Textual IRC Client: www.textualapp.com]
william3 has quit [Ping timeout: 250 seconds]
Brklyn has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
moeabdol1 has joined #ruby
peterevjan has joined #ruby
yoongkan_ has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
moeabdol1 has quit [Ping timeout: 264 seconds]
chouhoul_ has joined #ruby
troulouliou_div2 has joined #ruby
DoubleMalt has joined #ruby
IrishGringo has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
User458764 has joined #ruby
krz has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 245 seconds]
krz has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
anisha has joined #ruby
Alazoral has joined #ruby
ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
nisstyre has quit [Quit: WeeChat 1.3]
ta has quit [Remote host closed the connection]
workmad3 has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
saneax_AFK is now known as saneax
claw has quit [Ping timeout: 264 seconds]
Abrin has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
baweaver has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
claw has joined #ruby
karapetyan has joined #ruby
peterevjan has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
peterevjan has joined #ruby
codecop has joined #ruby
mpistone has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
followinfrared has joined #ruby
kerunaru has joined #ruby
ur5us has joined #ruby
nodejunkie has joined #ruby
zacstewa_ has joined #ruby
peterevjan has quit [Remote host closed the connection]
arup_r has quit []
gaiada has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
UtkarshRay has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
jottr_ has joined #ruby
saneax is now known as saneax_AFK
psy_ has quit [Ping timeout: 276 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
anisha has quit [Quit: Leaving]
IrishGringo has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 276 seconds]
moeabdol1 has joined #ruby
moeabdol1 has quit [Client Quit]
phredus has quit [Ping timeout: 260 seconds]
phredus has joined #ruby
adgtl has joined #ruby
IrishGringo has joined #ruby
scepticulous has joined #ruby
jam_ has quit [Remote host closed the connection]
agit0 has joined #ruby
anisha has joined #ruby
moeabdol has joined #ruby
tuelz1 has joined #ruby
User458764 has joined #ruby
Spami has joined #ruby
pawnbox has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
solars has joined #ruby
darkf has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
ogpastaling has joined #ruby
tuelz1 has quit [Ping timeout: 264 seconds]
aibot_ has quit [Ping timeout: 246 seconds]
aibot_ has joined #ruby
pawnbox has joined #ruby
Burgestrand has joined #ruby
musgravejw has joined #ruby
LoneHerm_ has joined #ruby
ogpastaling has quit [Ping timeout: 260 seconds]
stevemackinnon has quit [Ping timeout: 246 seconds]
nerium has quit [Quit: nerium]
ur5us has quit [Remote host closed the connection]
stevemackinnon has joined #ruby
musgravejw has quit [Quit: leaving]
howdoi has joined #ruby
flaguy48 has quit [Ping timeout: 265 seconds]
musgravejw has joined #ruby
weemsledeux has joined #ruby
aryaching has quit [Ping timeout: 276 seconds]
bahar has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Brklyn has joined #ruby
djbkd has quit [Quit: My people need me...]
chouhoulis has joined #ruby
zacstewa_ has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 1.3]
pawnbox has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
yfeldblum has joined #ruby
Brklyn has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
ta has joined #ruby
arup_r has joined #ruby
zacstewart has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
pawnbox has joined #ruby
oetjenj has joined #ruby
moeabdol has joined #ruby
ur5us has joined #ruby
toretore has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
flaguy48 has joined #ruby
IrishGringo has quit [Ping timeout: 252 seconds]
arlek has joined #ruby
adgtl has quit [Remote host closed the connection]
lipoqil has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
enkristoffer has quit [Quit: ❤]
karapetyan has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
karapetyan has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
arup_r has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
skade has quit [Ping timeout: 240 seconds]
yeticry_ has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
LoneHerm_ has joined #ruby
baweaver has joined #ruby
tsunamie has quit [Ping timeout: 246 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
arup_r has quit [Client Quit]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
aganov has joined #ruby
juddey has quit [Ping timeout: 245 seconds]
aryaching has quit [Remote host closed the connection]
zyzioziom has joined #ruby
aryaching has joined #ruby
skade has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
Voyage has joined #ruby
zyzioziom has quit [Ping timeout: 260 seconds]
nofxx has quit [Ping timeout: 264 seconds]
jottr_ has joined #ruby
lessless has joined #ruby
<lessless> folks, how to understand subscription operator in `class Products < ROM::Relation[:csv]`
lsmola has quit [Quit: Leaving]
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
anisha has quit [Quit: Leaving]
zacstewart has quit [Ping timeout: 245 seconds]
sandstrom has joined #ruby
araujo has quit [Read error: Connection timed out]
tsunamie has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
aryaching has quit []
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox_ has joined #ruby
aufi has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
darkf has quit [Ping timeout: 265 seconds]
Azulinho has joined #ruby
TomyWork has joined #ruby
dexter__ has quit [Ping timeout: 250 seconds]
TomyLobo2 has joined #ruby
araujo_ has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
<apeiros> lessless: you don't know inheritance?
donnoc has joined #ruby
darkf has joined #ruby
araujo_ has quit [Max SendQ exceeded]
<apeiros> class A < B # <-- A inherits from B, B does not have to be a constant, it can be any expression returning a class
neanderslob has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
lsmola has joined #ruby
yoongkan_ has joined #ruby
lsmola has quit [Client Quit]
<lessless> apeiros, I didn't knew that B can expression
Atomic_LduoX has joined #ruby
<lessless> *can be
Macaveli has joined #ruby
huyderman has joined #ruby
mark2 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tuelz1 has joined #ruby
karapetyan has joined #ruby
adgtl has joined #ruby
jbrhbr has joined #ruby
yoongkan_ has quit [Client Quit]
yoongkan_ has joined #ruby
Atomic_LduoX has left #ruby [#ruby]
jbrhbr has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yoongkan_ has left #ruby [#ruby]
neanderslob has joined #ruby
tuelz1 has quit [Ping timeout: 250 seconds]
<apeiros> lessless: there's very few places in ruby where an expression can't be used :)
Cohedrin has joined #ruby
<lessless> ok, I will take that into account
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grekko has joined #ruby
Brklyn has joined #ruby
Voyage has left #ruby ["Leaving"]
JaReAx has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
ruby-lang064 has joined #ruby
praveen has quit [Remote host closed the connection]
Dimik has joined #ruby
praveen has joined #ruby
toretore has quit [Ping timeout: 265 seconds]
jbrhbr has joined #ruby
einarj has joined #ruby
polysics has joined #ruby
troulouliou_div2 has joined #ruby
karapetyan has quit [Remote host closed the connection]
grekko has quit [Ping timeout: 248 seconds]
<ruby-lang064> Hello, I have a time issue that has me scratching my head. I am recording time at various points during a program that takes about 10 minutes to run. I am basically recording time in a hash periodically using Time.new.to_s. The problem is that by the time my program finishes, all recorded timestamps are the current time at the end of the run. It's as if the hash stored the Time objects and 'puts'ing the time causes the object to
<ruby-lang064> Any ideas?
baweaver has quit [Remote host closed the connection]
Brklyn has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
<apeiros> ?code ruby-lang064
<ruby[bot]> ruby-lang064: We can't help you without your code, please post it to https://gist.github.com
<apeiros> also your message was cut at "causes the object to"
Xeago has joined #ruby
phredus has quit [Ping timeout: 260 seconds]
lsmola has joined #ruby
<ruby-lang064> Ah, okay. Creating a gist now. thanks. The end of the message was "causes the object to return #now rather than the strings."
<apeiros> even without having seen the code, I can tell you that that's not whats happening ;-)
<apeiros> also, why do you store strings instead of time objects?
Macaveli has joined #ruby
karapetyan has quit [Remote host closed the connection]
sepp2k has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
TomyLobo2 has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
mdw has joined #ruby
krz has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
zyzioziom has joined #ruby
Emmanuel_Chanel has joined #ruby
chouhoulis has joined #ruby
mauricio has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
Snowy has joined #ruby
elifoster has quit [Ping timeout: 245 seconds]
Snowy_ has joined #ruby
mdw has quit [Client Quit]
tsunamie has quit [Ping timeout: 246 seconds]
donnoc has quit [Quit: ZNC - http://znc.in]
chouhoulis has quit [Ping timeout: 248 seconds]
Snowy is now known as Guest94837
Snowy_ is now known as Snowy
<ruby-lang064> I started with time objects, but then after my hash ended up with 4 identical time stamps, I thought the objects always returned current time or something.
Guest94837 has quit [Ping timeout: 272 seconds]
<ruby-lang064> I thought string would be a sure fire way to guard against that hunch
mdw has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
hdfhdf has quit [Ping timeout: 272 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby-lang064> Well, I can't seem to recreate the issue in a simple ruby file. I can't really post my actual code b/c it is for work. I will just keep digging. Thanks for your time!
TomyWork has joined #ruby
al2o3-cr has joined #ruby
djbkd has quit [Remote host closed the connection]
ruby-lang341 has joined #ruby
donnoc has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
PedramT has joined #ruby
ruby-lang064 has quit [Quit: Page closed]
solars has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
bronson has joined #ruby
pandaant has joined #ruby
pawnbox has joined #ruby
fumk has joined #ruby
Snowy has quit [Remote host closed the connection]
bruce_lee has joined #ruby
mondok has joined #ruby
ruby-lang341 has quit [Ping timeout: 252 seconds]
polysics has quit []
rhg135 has joined #ruby
blackgoat has joined #ruby
Snowy has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
stevemackinnon has quit [Remote host closed the connection]
OS-15951 has joined #ruby
<OS-15951> Does anyone know how one would pass a URL to a ruby program via ARGV and not have to put double quotes around it?
yoongkang has joined #ruby
<OS-15951> Example: ruby script.rb http://somesite.com/index.php?id=0&page=about
<OS-15951> Have that run without bash interpreting the & and other chars?
<Burgestrand> Put single quotes around it. :)
<Burgestrand> But no, that's shell behavior, not Ruby behavior. You could put it in a file and possibly pass that.
<Burgestrand> OS-15951 ^
<OS-15951> I was hoping there was a way without quotes. I've seen some python programs do it
symm- has quit [Ping timeout: 245 seconds]
<Burgestrand> OS-15951 which python program?
caliostro has joined #ruby
c0m0 has joined #ruby
<OS-15951> sqlmap is one
<OS-15951> actually
donnoc has quit [Quit: ZNC - http://znc.in]
william3 has joined #ruby
praveen has quit [Remote host closed the connection]
k13nox has joined #ruby
<Burgestrand> OS-15951 from its website the URLs are quoted in their examples.
praveen has joined #ruby
duncannz has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
<OS-15951> Hmm. Weird. I swear I've used it without quotes before.
<OS-15951> Alright then. Thanks
<Burgestrand> OS-15951 URLs don't necessarily need quotes, it's only if they contain characters that need to be escaped due to your shell.
nodejunkie has quit [Ping timeout: 265 seconds]
donnoc has joined #ruby
jam_ has joined #ruby
TomyWork has joined #ruby
bMalum has joined #ruby
tuelz1 has joined #ruby
jam_ has quit [Ping timeout: 260 seconds]
sftrabbit has joined #ruby
dc1 has quit [Ping timeout: 245 seconds]
hayden_ has joined #ruby
enkristoffer has joined #ruby
Pumukel has joined #ruby
dcunit3d has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
dcunit3d has joined #ruby
tuelz1 has quit [Ping timeout: 250 seconds]
william3 has quit [Remote host closed the connection]
blaxter has joined #ruby
arlek has quit [Ping timeout: 256 seconds]
mauricio has quit [Remote host closed the connection]
william3 has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
moeabdol1 has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
rdark has quit [Quit: WeeChat 1.0.1]
nodejunkie has joined #ruby
rdark has joined #ruby
jds has joined #ruby
anisha has joined #ruby
DirtyFinn has joined #ruby
jgt1 has joined #ruby
lsmola_ has joined #ruby
JaReAx has quit [Ping timeout: 240 seconds]
lsmola has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
loechel has joined #ruby
chthon has joined #ruby
ur5us has joined #ruby
Pumukel has quit [Ping timeout: 252 seconds]
loechel is now known as Pumukel
PedramT has quit [Remote host closed the connection]
mauricio has joined #ruby
jbrhbr has quit [Quit: Leaving.]
karapetyan has joined #ruby
dc1 has joined #ruby
Sebastia1Thorn is now known as SebastianThorn
followin_ has joined #ruby
Azulinho has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
followinfrared has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
blaxter has quit [Ping timeout: 250 seconds]
aupadhye has quit [Ping timeout: 250 seconds]
workmad3 has quit [Read error: Connection reset by peer]
<shevy> OS-15951 I am pretty sure that this can not be done due to the shell
Ishido has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
<shevy> when I input the gnome ftp, and select it in kde konsole http://ftp.gnome.org/pub/gnome/sources/?C=M;O=D it selects only up to "C=M" and stops there on the first click
workmad3 has joined #ruby
nettoweb has joined #ruby
evidex has joined #ruby
bruce__lee has joined #ruby
barhum2013 has quit [Quit: barhum2013]
dmolina has joined #ruby
Snowy has quit [Remote host closed the connection]
kerunaru has quit [Ping timeout: 245 seconds]
Rickmasta has joined #ruby
<shevy> let's dance \o/
bruce_lee has quit [Ping timeout: 245 seconds]
bruce__lee has quit [Changing host]
bruce__lee has joined #ruby
felixal has quit [Ping timeout: 260 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
jaiks has joined #ruby
tsunamie has joined #ruby
platzhirsch has joined #ruby
blaxter has joined #ruby
platzhirsch has quit [Client Quit]
Rickmasta has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
vqrs has quit [Max SendQ exceeded]
OS-15951 has quit [Ping timeout: 272 seconds]
mpistone has joined #ruby
vqrs has joined #ruby
betabet has quit [Read error: Connection reset by peer]
nodejunkie has quit [Ping timeout: 265 seconds]
bMalum has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 250 seconds]
mpistone has quit [Ping timeout: 276 seconds]
pawnbox has quit [Read error: Connection reset by peer]
william3 has quit [Remote host closed the connection]
pawnbox has joined #ruby
william3 has joined #ruby
FernandoBasso has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
Xeago has joined #ruby
govg has joined #ruby
blackms has joined #ruby
sftrabbit has joined #ruby
DaniG2k has joined #ruby
tsunamie has quit [*.net *.split]
huyderman has quit [*.net *.split]
92AACA3RA has quit [*.net *.split]
caliostro has quit [Quit: Exit-Chat]
jaiks has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 256 seconds]
jaiks has joined #ruby
huyderman has joined #ruby
Bloomer has quit [Remote host closed the connection]
crissae has joined #ruby
codecop has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
tuelz1 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
yeticry_ has joined #ruby
crissae has quit [Quit: Leaving]
yeticry_ has quit [Max SendQ exceeded]
yeticry_ has joined #ruby
tuelz1 has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
yeticry_ has quit [Max SendQ exceeded]
tsunamie has joined #ruby
92AACA3RA has joined #ruby
yeticry_ has joined #ruby
mhoungbo has joined #ruby
dangerousdave has joined #ruby
arup_r has joined #ruby
DaniG2k has quit [Quit: leaving]
DaniG2k has joined #ruby
Macaveli has joined #ruby
kwesidev has joined #ruby
krz has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
Azulinho has joined #ruby
baweaver has joined #ruby
atmosx has quit [Quit: WeeChat 1.0.1]
kwesidev has left #ruby [#ruby]
atmosx has joined #ruby
kwesidev has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 245 seconds]
PedramT has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
anisha has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
aufilab has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
<dangerousdave> Morning, why cant I insert a variable into a regexp please? https://gist.github.com/deathwishdave/ff4a5c814e1d4545b87c
anisha has quit [Quit: Leaving]
<shevy> it should work
<shevy> perhaps the \ confuses things
<shevy> Here is proof that variable substitution works in regexp objects:
Burgestrand has joined #ruby
<shevy> x = /abc/; 'hi there abc def'.gsub(/#{x}/, 'OK! ') # => "hi there OK! def"
DoubleMalt has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
<ljarvis> dangerousdave: you're escaping the # so it's not interpolated
followinfrared has joined #ruby
<dangerousdave> ahhh
followinfrared has quit [Read error: Connection reset by peer]
<dangerousdave> so, can i escape the escape?
<ljarvis> well, this begs the question, do you need it?
followinfrared has joined #ruby
<dangerousdave> ljarvis: the #?
<ljarvis> you could just use File.extname(file)
<ljarvis> dangerousdave: no, the regexp altogether
<ljarvis> >> File.extname("foo.pdf")
<ruby[bot]> ljarvis: # => ".pdf" (https://eval.in/511723)
chouhoulis has quit [Ping timeout: 245 seconds]
<ljarvis> so, matches << match if extensions.include?(File.extname(path))
<ljarvis> and make extensions/patterns a Set and not an array
Trieste has joined #ruby
<dangerousdave> ljarvis, the script I am writing will read in a .gitignore, and search a repository for ignored files and delete them
<jhass> ^ for the future what you wanted was #{Regexp.escape(pattern)}
<ljarvis> dangerousdave: ok but that's beside the point
<ljarvis> my point is why use regex for this
followin_ has quit [Ping timeout: 272 seconds]
<jhass> &ri File#fnmatch @dangerousdave
<`derpy> No results
<jhass> eh
<dangerousdave> ljarvis, because thats what is in the .gitignore
<jhass> where was it again
<jhass> &ri File::fnmatch @dangerousdave
FooMunki has joined #ruby
<dangerousdave> jhass, thanks
zacstewart has joined #ruby
Timba-as has joined #ruby
ElFerna_ has joined #ruby
followinfrared has quit [Ping timeout: 264 seconds]
<shellie_> I have an object resulting from YAML.load(<file>) which is of string type. I want to convert it into a hash, so that I can modify it and transform it back into yaml string and write it to the file. Any idea how to transform from string representation to hash? some people on the web claim you need to hash = YAML.parse(string) but that results in a Psych::Nodes::Document which I have no idea what the underlying type is
<dangerousdave> thanks for the help guys
<ljarvis> ?code shellie_
<ruby[bot]> shellie_: We can't help you without your code, please post it to https://gist.github.com
<jhass> shellie_: wild guess: YAML.load_file(<file>) instead of YAML.load(<file>)
k13nox has quit [Remote host closed the connection]
<shellie_> jhass: I'm using the latter
<jhass> you wrote the earlier
<shellie_> let me look again
<shellie_> oops, yeah, I'm using the load_file
<jhass> then what ljarvis said
<jhass> it should return a hash
followinfrared has joined #ruby
jgt1 has quit [Ping timeout: 265 seconds]
Kryptonic has quit [Ping timeout: 250 seconds]
zenlot3 is now known as zenlot
<shellie_> my code is a little entwined. I'll try to write a simple example that replicates the behaviour
Kryptonical has joined #ruby
<shellie_> btw, is there any semantical difference about calling YAML::load_file vs YAML.load_file ?
JaReAx has joined #ruby
<jhass> no, use the latter
<shellie_> cool
baweaver has joined #ruby
Snowy has joined #ruby
phredus has joined #ruby
marr has joined #ruby
binaryplease has joined #ruby
Snowy has quit [Remote host closed the connection]
barhum2013 has joined #ruby
Snowy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 256 seconds]
PedramT has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
fsapo has joined #ruby
nkts has quit [Ping timeout: 240 seconds]
lessless has quit [Ping timeout: 265 seconds]
vondruch has joined #ruby
saneax_AFK is now known as saneax
jgt1 has joined #ruby
Axy has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
tsunamie has quit [Ping timeout: 246 seconds]
k13nox has joined #ruby
dlitvak has joined #ruby
govg has quit [Ping timeout: 264 seconds]
<shellie_> jhass: ^
betabet has joined #ruby
<jhass> shellie_: could you edit it and choose foo.rb as filename?
<shellie_> done
<jhass> and take out the ``` mess
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> and maybe add error messages/wrong behavior description or make it runnable
<apeiros> shellie_: YAML.load_file already parses the data
<apeiros> there's no point in doing YAML.parse(YAML.load_file(path))
<apeiros> which is what you essentially do.
<shellie_> this works fine if the file is empty or does not exist, but the next run it does not work :)
<apeiros> same thing for the double dumping
<apeiros> that's silly
<apeiros> YAML.dump(data.to_yaml, fd) # either drop the to_yaml or use File.write
<shellie_> ok :)
<jhass> ^ you dump the yaml as yaml string
<jhass> basically you double serialize it
Brklyn has joined #ruby
<jhass> and unserialize it once
<apeiros> and YAML.parse is if you want full control over the parsing. YAML.load if you don't need that (which is the 99% case)
<jhass> creating the empty file feels a bit stupid too tbh
<jhass> just return an empty hash
<shellie_> why does it feel stupid?
User458764 has joined #ruby
<apeiros> data = file_load # --> data = File.exist?($db) ? YAML.load_file($db) : {}
saneax is now known as saneax_AFK
<jhass> def load_db(path); File.exists?(path) ? YAML.load_file(path) : {}; end
<jhass> bah, too slow
<apeiros> or yeah, keep it in the method
jam_ has joined #ruby
<apeiros> also writing "---" into a file: File.write(path, "---")
<shellie_> ok, thanks
<shellie_> let me adapt
<jhass> and given your naming you might find YAML::DBM interesting
<apeiros> aaaand last but not least: use File.open with block-form.
<jhass> ^ or File.read/File.write
<apeiros> that's what I suggested first ;-)
<apeiros> basically those 31 lines of code could be reduced to ~9
yfeldblum has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
Brklyn has quit [Ping timeout: 250 seconds]
<shellie_> apeiros: what is meant by block form?
k13nox has quit [Ping timeout: 250 seconds]
<apeiros> File.open(path, 'w') do |fh| fh.puts("---") end
<apeiros> this is block form. less ways to fuck up.
<shellie_> I'm removing the empty file creation
jam_ has quit [Ping timeout: 250 seconds]
<shellie_> the only thing is, the file_load is now returning a yaml formated in a string (if file exists) or a hash. How can I make both result in a hash?
tuelz1 has joined #ruby
<apeiros> if it is returning a yaml string, then it means you still have double serialization
<apeiros> it means you've written the file wrongly. don't fix the symptom. fix the cause.
zacstewart has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox_ has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 250 seconds]
<apeiros> bit more than 9 lines because I made it a proper class: https://gist.github.com/apeiros/a921375e8c92188c7973
howdoi has quit []
pawnbox has joined #ruby
<apeiros> whoops, had path in it which should have been @db.
tuelz1 has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
DaniG2k has quit [Quit: leaving]
praveen has quit [Remote host closed the connection]
praveen has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shellie_> I see. I made the assumption load_file returned a string (I can't remember why I thought that was the case) but it does return a hash
Snowy has quit [Remote host closed the connection]
mickey_mouse has quit [Quit: Leaving]
baweaver has joined #ruby
yoongkang has quit [Remote host closed the connection]
dionysus69 has joined #ruby
phredus has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 245 seconds]
praveen has quit [Remote host closed the connection]
praveen has joined #ruby
<shellie_> all working now, thanks for your help jhass and apeiros
phredus has joined #ruby
dEPy has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
ElFerna_ has quit [Ping timeout: 276 seconds]
govg has joined #ruby
dlitvak has joined #ruby
binaryplease has quit [Quit: WeeChat 1.3]
tsunamie has joined #ruby
Axy has quit [Ping timeout: 276 seconds]
yoongkang has joined #ruby
Snowy has joined #ruby
kerunaru has joined #ruby
k13nox has joined #ruby
chouhoulis has joined #ruby
flughafen_ has quit [Ping timeout: 250 seconds]
Timba-as has quit [Quit: Be back later ...]
<shevy> they make broken things work again
dlitvak_ has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
bauruine has quit [Quit: ZNC - http://znc.in]
nobitanobi has joined #ruby
yeticry_ has quit [Quit: Leaving]
dlitvak has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
c355e3b has joined #ruby
<nobitanobi> Do you guys see a good way to avoid repeating myself in here: https://gist.github.com/novito/3efb0bb8fc3e6fa5c176 - I define as many attr_accessor as instance variables the class has, so maybe some metaprogramming would help, but I'm unsure how.
evidex has quit [Read error: Connection reset by peer]
evidex has joined #ruby
printf has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 246 seconds]
iateadonut1 has joined #ruby
<workmad3> nobitanobi: you could rewrite your create_user as `update_user(User.new)` and re-use that code
govg has joined #ruby
<nobitanobi> workmad3: good call!
<workmad3> nobitanobi: you could also consider having an array like `FIELDS = %i(name phone_number address1 address2)` at the top of your class, then you can do `attr_accessor *FIELDS` and `FIELDS.each { |field| user[field] = send(field) }` inside your update
gaiada has quit [Ping timeout: 240 seconds]
adgtl has quit [Remote host closed the connection]
<nobitanobi> workmad3: I think that's what I am looking for.
<nobitanobi> Let me try that
Patrezze has joined #ruby
iateadonut has quit [Ping timeout: 248 seconds]
devgiant has joined #ruby
tsunamie has quit [Ping timeout: 246 seconds]
<workmad3> nobitanobi: you could also consider having your form take a user on initialize, and then you could delegate accessors and setters to the user
DoubleMalt has quit [Remote host closed the connection]
jds has quit [Quit: Connection closed for inactivity]
ogpastaling has joined #ruby
kaka__ has joined #ruby
Shaboum has joined #ruby
<nobitanobi> workmad3: mmm that's an interesting approach
<nobitanobi> I'm pretty new to this form pattern :)
bauruine has joined #ruby
arian0n has joined #ruby
Xeago has quit [Remote host closed the connection]
printf has quit [Ping timeout: 240 seconds]
binaryplease has joined #ruby
dEPy has quit [Read error: Connection reset by peer]
blackmes1 has quit [Ping timeout: 265 seconds]
Timba-as has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
ogpastaling has quit [Ping timeout: 252 seconds]
PedramT has joined #ruby
krz has joined #ruby
PedramT has quit [Read error: Connection reset by peer]
tsunamie has joined #ruby
Brklyn has joined #ruby
andikr has joined #ruby
sftrabbit has joined #ruby
DirtyFinn has quit []
bMalum has joined #ruby
Calydon has joined #ruby
Xeago has joined #ruby
pawnbox has quit [Remote host closed the connection]
ElFerna_ has joined #ruby
adgtl has joined #ruby
Brklyn has quit [Ping timeout: 240 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
<nobitanobi> workmad3: how could I do product.field = send(field) instead of product[field] = send(field)? One of the attributes is not a direct column, but an association. If I do product[field] it complains that it can't write unknown attribute
<workmad3> nobitanobi: product.send("#{field}=", send(field))
<workmad3> (it's uglier, which is why I went for the [] version :) )
zacstewa_ has joined #ruby
<nobitanobi> workmad3: thanks.
zacstewart has quit [Read error: Connection reset by peer]
adgtl has quit [Ping timeout: 256 seconds]
mondok has quit [Ping timeout: 276 seconds]
ElFerna_ has quit [Ping timeout: 250 seconds]
Snowy has quit [Remote host closed the connection]
pawnbox has joined #ruby
dlitvak has joined #ruby
Ebok has joined #ruby
bruce__lee is now known as bruce_lee
sftrabbit has quit [Quit: sftrabbit]
devgiant has quit [Ping timeout: 256 seconds]
devgiant has joined #ruby
dlitvak_ has quit [Ping timeout: 252 seconds]
sftrabbit has joined #ruby
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuelz1 has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
meinside_ has joined #ruby
arup_r has quit []
Snowy has joined #ruby
<nobitanobi> workmad3: works like a charm. txs
kalopsia1 has quit [Ping timeout: 256 seconds]
blackmes1 has joined #ruby
aufilab has quit [Quit: WeeChat 1.4]
vqrs has quit [Max SendQ exceeded]
platzhirsch has joined #ruby
SOLDIERz has quit [Quit: Textual IRC Client: www.textualapp.com]
vondruch has quit [Quit: Ex-Chat]
vqrs has joined #ruby
vondruch has joined #ruby
tsunamie has quit [Ping timeout: 246 seconds]
tuelz1 has quit [Ping timeout: 240 seconds]
Snowy has quit [Read error: Connection reset by peer]
bauruine has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
DoubleMalt has joined #ruby
kalopsian has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
Meow-J has joined #ruby
bMalum has joined #ruby
zyzioziom has quit [Quit: Leaving]
einarj_ has joined #ruby
AccordsLTN has joined #ruby
PedramT has joined #ruby
solars has joined #ruby
dc4 has joined #ruby
platzhirsch has left #ruby [#ruby]
mrsolo_ has joined #ruby
devgiant has quit [Ping timeout: 256 seconds]
bahar has quit [Changing host]
bahar has joined #ruby
benlakey_ has joined #ruby
flaguy481 has joined #ruby
kalopsian has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
Kero_ has joined #ruby
kalopsian has joined #ruby
k13nox has quit [Remote host closed the connection]
bruce__lee has joined #ruby
bove_ has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
flaguy48 has quit [Ping timeout: 240 seconds]
benlakey has quit [Ping timeout: 240 seconds]
benlakey_ is now known as benlakey
Timba-as_ has joined #ruby
Xeago has joined #ruby
crank1988 has quit [Ping timeout: 240 seconds]
mrsolo has quit [Ping timeout: 240 seconds]
A124 has quit [Ping timeout: 240 seconds]
ICantCook has quit [Ping timeout: 240 seconds]
AccordLTN has quit [Ping timeout: 240 seconds]
nug has quit [Ping timeout: 240 seconds]
Guest70124 has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
Kero has quit [Ping timeout: 240 seconds]
yonatankoren has quit [Ping timeout: 240 seconds]
amitchellbullard has quit [Ping timeout: 240 seconds]
cbednarski has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 240 seconds]
Guest4184_____ has quit [Ping timeout: 240 seconds]
bove has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Ping timeout: 240 seconds]
AdamMeghji has quit [Ping timeout: 240 seconds]
bigkevmcd has quit [Ping timeout: 240 seconds]
mrsolo_ is now known as mrsolo
crank1988_ has joined #ruby
gagrio has quit [Ping timeout: 240 seconds]
PedramT has quit [Ping timeout: 240 seconds]
ICantCook has joined #ruby
LoganG_ has joined #ruby
amitchellbullard has joined #ruby
sdothum has joined #ruby
bove_ is now known as bove
bruce__lee has quit [Changing host]
bruce__lee has joined #ruby
rfv has joined #ruby
cbednarski has joined #ruby
A124 has joined #ruby
lancetw has quit [Ping timeout: 240 seconds]
Lloyd has quit [Ping timeout: 240 seconds]
JoL1hAHN has quit [Ping timeout: 240 seconds]
Guest63920 has quit [Ping timeout: 240 seconds]
LoganG_ is now known as LoganG
Affix has joined #ruby
Affix is now known as Guest74375
Timba-as has quit [Ping timeout: 240 seconds]
gnarld_ has joined #ruby
AdamMeghji has joined #ruby
Lloyd has joined #ruby
lancetw has joined #ruby
FooMunki has quit [Quit: FooMunki]
JoL1hAHN has joined #ruby
Radar has joined #ruby
Radar is now known as Guest45453
gagrio has joined #ruby
bigkevmcd has joined #ruby
FooMunki has joined #ruby
Guest4184_____ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
Burgestrand has joined #ruby
betabet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
persistence has joined #ruby
chouhoulis has joined #ruby
bauruine has joined #ruby
IrishGringo has joined #ruby
praveen__ has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.4]
PedramT has quit [Ping timeout: 250 seconds]
mickey_mouse has joined #ruby
blackmesa has joined #ruby
bauruine has quit [Read error: Connection reset by peer]
ferr has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
praveen has quit [Ping timeout: 252 seconds]
icbm has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
devgiant has joined #ruby
arthropododo has joined #ruby
f4cl3y has joined #ruby
yardenbar has joined #ruby
tomphp has quit [Ping timeout: 245 seconds]
tsunamie has joined #ruby
ready has quit [Remote host closed the connection]
musgravejw has quit [Ping timeout: 260 seconds]
mondok has joined #ruby
moeabdol1 has quit [Ping timeout: 276 seconds]
flughafen_ has joined #ruby
bauruine has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
tomphp has joined #ruby
bauruine has quit [Read error: Connection reset by peer]
Mr0rris0 has quit [Read error: Connection reset by peer]
codecop has joined #ruby
vqrs has quit [Max SendQ exceeded]
vqrs has joined #ruby
karapetyan has joined #ruby
devgiant has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
gregf has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 265 seconds]
zacstewa_ has quit [Ping timeout: 240 seconds]
zacstewart has joined #ruby
nobitanobi has quit [Quit: Page closed]
bronson has quit [Ping timeout: 276 seconds]
mdw has joined #ruby
mondok is now known as ready
dlitvak has joined #ruby
ElFerna_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
fourq is now known as fourq|away
fsapo has quit [Remote host closed the connection]
bauruine has joined #ruby
fourq|away is now known as fourq
ElFerna_ has quit [Ping timeout: 245 seconds]
synthroid has joined #ruby
sankaber has joined #ruby
tsunamie has quit [*.net *.split]
92AACA3RA has quit [*.net *.split]
jam_ has joined #ruby
<solars> quick question: I'm requiring a file that definines a class, somehow right below this require, the class is not recognized - can anyone tell me how to debug this?
barhum2013 has quit [Quit: barhum2013]
saush has joined #ruby
<saush> Are GSOC 2016 ideas for ruby organization out?
blasius has joined #ruby
k13nox has joined #ruby
vqrs has quit [Max SendQ exceeded]
jam_ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
Rickmasta has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vqrs has joined #ruby
tsunamie has joined #ruby
92AACA3RA has joined #ruby
malconis has joined #ruby
lxsameer has quit [Quit: Leaving]
tuelz1 has joined #ruby
<zacts> hello
User458764 has joined #ruby
malconis has quit [Remote host closed the connection]
flughafen_ has quit [Ping timeout: 245 seconds]
malconis has joined #ruby
FernandoBasso has quit [Quit: Leaving]
CloCkWeRX has joined #ruby
DEA7TH has joined #ruby
<saush> Are GSOC 2016 ideas for ruby organization out?
Lochez has joined #ruby
SCHAAP137 has joined #ruby
hxegon has joined #ruby
<apeiros> solars: how do you figure it is "not recognized"?
<apeiros> solars: a) make sure the file you think is being required is actually the one which is required, b) make sure you're correctly setting and referencing the constant
tuelz1 has quit [Ping timeout: 264 seconds]
ZoffixW has joined #ruby
Abrin has joined #ruby
Burgestrand has joined #ruby
tsunamie has quit [Ping timeout: 246 seconds]
bauruine has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
gnarld_ is now known as nug
anisha has joined #ruby
<solars> apeiros, did another test, the file is called Reservation.rb, I'm using require BASE_PATH + 'lib/Reservation' require returns false in the debugger. if I rename the file to Test.rb, it works. I can also require it multiple times (I thought it might be because it is already loaded)
<solars> I'm not sure how to find out why it returns false
Abrin has quit [Ping timeout: 250 seconds]
<apeiros> require returning false is not an error. it means it's already loaded.
ZoffixW has quit [Quit: Leaving]
geekbri has joined #ruby
<apeiros> if it couldn't require the file, you'd get an exception, not just a mere return value. this isn't C ;-p
<solars> hmm
<apeiros> you still haven't answered my initial question, though.
<solars> why can I rename it then and require multiple times?
Abrin has joined #ruby
<solars> apeiros, well I'm requiring it, it contains a class ResGlobalInfo definition
<solars> and then try to access the class constant ResGlobalInfo, which is not found
<solars> in a pry console
<apeiros> "which is not found" - *always* copy & paste the precise exception
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<solars> it could be that it is loaded in a different namespace or module, but I'm no tsure
jottr_ is now known as jottr
<apeiros> you wouldn't be the first to badly retell an exception.
<solars> apeiros, NameError: uninitialized constant ResGlobalInfo
saush has quit [Quit: Page closed]
<solars> so the class is loaded, but where..
<apeiros> how did you ensure it required the correct file?
blackgoat has quit [Quit: WeeChat 1.3]
chouhoulis has joined #ruby
<apeiros> given that "it works" when you rename it leads me to believe that there's another file being loaded when you require it as Reservation
<solars> the path is right and if I rename the filename to an unloaded copy of the file, it works
<apeiros> (also, why the heck does Reservation define ResGlobalInfo…)
supremekay has joined #ruby
<solars> apeiros, it's an older project full of happymapper (gem) classes for a XML structure, legacy code
duckpuppy has quit [Ping timeout: 265 seconds]
<apeiros> the path is right - you mean you're using an absolute path?
<apeiros> (anti pattern btw.)
<solars> I did not write the code, I just have to find that class as a first step :)
chouhoulis has quit [Ping timeout: 250 seconds]
<solars> the BASE_PATH uses File.dirname, yes
blasius has quit [Remote host closed the connection]
devgiant has joined #ruby
<apeiros> File.dirname doesn't create an absolute path
<solars> BASE_PATH = File.dirname(__FILE__)+'/'
<solars> I tried to find the constant ResGlobalInfo in Object.constants, but it's not there
<apeiros> __FILE__ isn't necessarily absolute either
<solars> apeiros, if I output the path that is used, it's absolute and I can cat the file
<apeiros> so instead of assuming it is an absolute path - how about making sure by printing it?
<shevy> cat the file, dog the path!
<apeiros> ok
<solars> apeiros, I did
<apeiros> you could have said that right away :-p
aufi has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Quit: Textual IRC Client: www.textualapp.com]
dlitvak has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
<apeiros> well, got to go to a meeting. pretty sure there's some tiny silly thing missing in this puzzle.
praveen__ has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 1.3]
Burgestrand has joined #ruby
<apeiros> I suggest for others to continue help, you gist the contents of that Reservation.rb file.
<solars> I have no idea how to find out why require returns false if the constant is not in Object.constants
<solars> *class
<apeiros> again, require returning false only means *the file* has already been required
praveen has joined #ruby
<apeiros> nothing else
<apeiros> it has no relation to the contents or anything
Chau has joined #ruby
atmosx has quit [Quit: Lost in trance]
mfb2 has joined #ruby
<solars> what could be the reason that the class is not available then?
adgtl has joined #ruby
<shevy> it's not installed or could not be found
ramortegui has joined #ruby
dlitvak has joined #ruby
<solars> installed?
<shevy> yeah, like if you would install a gem
praveen has quit [Ping timeout: 272 seconds]
vondruch has quit [Quit: Ex-Chat]
binaryplease has joined #ruby
<solars> it's a class definition inside a file
<shevy> then if you load that file, it will be available. there is no alternative
meves has joined #ruby
<solars> apparently there is :)
tesuji has joined #ruby
<shevy> nope
<shevy> it works the same way for all my .rb files
blasius has joined #ruby
dtordable has left #ruby [#ruby]
truenito has joined #ruby
<Burgestrand> I like code.
<Burgestrand> Like, small reproducible examples.
<solars> there seems to be something that screws up the loading, the file contains: https://gist.github.com/solars/d2d8bc56dcfa2aaff069
<solars> A is printed, B is not
makenoise has joined #ruby
praveen has joined #ruby
<Burgestrand> solars you have something swallowing errors?
chthon has quit [Ping timeout: 245 seconds]
<shevy> aha
<shevy> solars are you sure that all the files are required?
<Burgestrand> Om nom nom nom.
<shevy> make more debug statements to find out which file is the culprit
<solars> ok that seems to be a circular dependency I just added, nevermind
<solars> now both print
<Burgestrand> If you run ruby with -d, you will see all errors being thrown regardless if they are being caught or not. :)
Abrin has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<CustosLimen> so I want to change some things here: https://github.com/gjtorikian/mathematical
<CustosLimen> so I git cloned it - and did bundle install
praveen has quit [Ping timeout: 240 seconds]
<CustosLimen> and when I run rake it fails
<CustosLimen> not sure what to do
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Burgestrand> CustosLimen fails how? Can you show the output?
meves has quit [Ping timeout: 240 seconds]
yonatankoren has joined #ruby
<shevy> it is a native gem
<CustosLimen> Burgestrand, https://bpaste.net/show/0ef5516897e1
devgiant has quit [Ping timeout: 252 seconds]
<CustosLimen> shevy, I actually want to make the native code work
<CustosLimen> cos it does not
meves has joined #ruby
<Burgestrand> CustosLimen try `rake compile`
<shevy> hmm the gem hangs during ri installation
ElFerna_ has joined #ruby
aufi has joined #ruby
<CustosLimen> Burgestrand, it seems better: https://bpaste.net/show/e74e3216b240
<shevy> require 'mathematical'
<shevy> LoadError: incompatible library version - /Programs/Ruby/2.3.0/lib/ruby/gems/2.3.0/gems/mathematical-1.5.12/lib/mathematical/mathematical.so
Bloomer has joined #ruby
<CustosLimen> but this is not really what happens when I do gem install
sgambino has joined #ruby
karapetyan has joined #ruby
<Burgestrand> CustosLimen there's instructions here: https://github.com/gjtorikian/mathematical#building
Mr0rris0 has joined #ruby
<shevy> /var/opt/disk000/projects/github.com/gjtorikian/mathematical/ext/mathematical/lasem_overrides.c:5:22: fatal error: mtex2MML.h: No such file or directory
<Burgestrand> CustosLimen it appears you need to follow them if you want to develop on it
<shevy> yeah you already miss some header files CustosLimen
jaiks has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
<shevy> I can't get it to work either
william3 has joined #ruby
<shevy> require 'mathematical'
<shevy> LoadError: cannot load such file -- mathematical/mathematical
<CustosLimen> wait, when I do gem install mathematical I get this: https://bpaste.net/show/baa6f2ec5ded
william3 has quit [Remote host closed the connection]
adgtl has quit [Ping timeout: 240 seconds]
<CustosLimen> Thanks for pointing that out to me Burgestrand - but I'm expecting to be able to somehow do local install of gem
jaiks has joined #ruby
<shevy> environment.c:(.text+0x1c5f): undefined reference to `ceil'
bMalum has joined #ruby
<CustosLimen> like with pip I do pip3 install --user --editable .
tsunamie has joined #ruby
william3 has joined #ruby
adgtl has joined #ruby
<CustosLimen> shevy, I know, and I want to fix it - but I want the same as `gem install mathematical` just from git
<CustosLimen> or from local checked out git rather
<CustosLimen> I'm a noob at ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
blasius has quit [Remote host closed the connection]
blackmesa has joined #ruby
TomPeed has joined #ruby
Channel6 has joined #ruby
freerobby has joined #ruby
<shevy> I don't know
<shevy> if you ask me, the gem is crap and the code is crap
krobzaur_ has joined #ruby
<shevy> nokogiri works without a fuzz and many other native gems that I compile here, work too
<shevy> like ruby-gnome bindings
AimlessRaven has joined #ruby
PedramT has joined #ruby
devgiant has joined #ruby
devgiant has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
tuelz1 has joined #ruby
zast has joined #ruby
PedramT has quit [Ping timeout: 245 seconds]
Snowy has quit [Read error: Connection reset by peer]
atomical has joined #ruby
<Burgestrand> CustosLimen you can point bundler towards git repositories, or a local path, or a mix of the two.
hinbody_ has joined #ruby
Snowy has joined #ruby
<Burgestrand> CustosLimen http://bundler.io/v1.11/git.html
aef_ has quit [Remote host closed the connection]
aef has joined #ruby
<CustosLimen> Burgestrand, can I point gem utility to local path like in `pip install --user .`
mostlybadfly has quit [Quit: Connection closed for inactivity]
hinbody_ is now known as hinbody-mobile
praveen has joined #ruby
aegis3121 has joined #ruby
hinbody-mobile is now known as hinbody_
<Burgestrand> CustosLimen if you have a packaged .gem-file, you can `gem install ./path/to/mygem.gem`
<Burgestrand> CustosLimen but I don't understand what `pip install --user` is different from.
<Burgestrand> CustosLimen ah, there's a dot there, no, gems needs to be built, using `gem build`, and then you will have a .gem-file that can be uploaded to rubygems or installed.
<CustosLimen> Burgestrand, ok cool, thanks `pip install --user .` will just install the python package in current directory (e.g. from cloned git)
bMalum has quit [Ping timeout: 240 seconds]
tuelz1 has quit [Ping timeout: 272 seconds]
<CustosLimen> Burgestrand, ok cool, I get it now
tekku has quit [Ping timeout: 240 seconds]
hinbody_ has quit [Client Quit]
<Burgestrand> CustosLimen you point `gem build mypackage.gemspec` and you will get your package out from it.
ftj has joined #ruby
Kero_ has quit [Ping timeout: 240 seconds]
tekk has joined #ruby
ElFerna_ has quit [Ping timeout: 250 seconds]
<CustosLimen> ugh ok, let me just drop this think, its insanely weird - not sure its worth using
antgel has joined #ruby
griffindy has joined #ruby
Calydon has quit [Ping timeout: 252 seconds]
jaiks has quit [Ping timeout: 240 seconds]
truenito has quit [Ping timeout: 245 seconds]
bkxd has joined #ruby
treehug88 has joined #ruby
binaryplease has quit [Quit: WeeChat 1.3]
platzhirsch has joined #ruby
stannard has joined #ruby
lipoqil has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
Snowy has quit []
bkxd has quit [Ping timeout: 272 seconds]
tomphp has joined #ruby
AimlessRaven has quit [Quit: Page closed]
mary5030 has quit [Remote host closed the connection]
<solars> apeiros, it's a simple circular dependency that someone added
mary5030 has joined #ruby
gnudon has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
zyzioziom has joined #ruby
UtkarshRay has joined #ruby
dlitvak has quit [Remote host closed the connection]
zacstewart has joined #ruby
shredding has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
darkxploit has quit [Ping timeout: 265 seconds]
jaiks has joined #ruby
vagnerd has joined #ruby
ready has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 250 seconds]
ready has joined #ruby
moredhel has joined #ruby
centrx has joined #ruby
dajobat has joined #ruby
FernandoBasso has joined #ruby
zyzioziom has quit [Quit: zyzioziom]
hahuang61 has quit [Ping timeout: 250 seconds]
zyzioziom has joined #ruby
yasu_ is now known as yasu
makenoise has quit [Read error: Connection reset by peer]
makenoise has joined #ruby
freerobby has quit [Quit: Leaving.]
Channel6 has quit [Quit: Leaving]
dajobat has quit [Client Quit]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dajobat has joined #ruby
karapetyan has quit [Remote host closed the connection]
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
followinfrared is now known as infrared
infrared is now known as infra-red
Chachi has joined #ruby
JJM has quit [Ping timeout: 245 seconds]
Snowy has joined #ruby
karapetyan has joined #ruby
makenois_ has joined #ruby
decoponio has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
ElFerna_ has joined #ruby
makenoise has quit [Ping timeout: 272 seconds]
darkxploit has joined #ruby
zyzioziom has quit [Quit: zyzioziom]
polishdub has joined #ruby
zyzioziom has joined #ruby
karl___ has joined #ruby
<apeiros> solars: so a full backtrace would have helped figuring that out? cue to my original "full exception" :-p
zyzioziom has quit [Remote host closed the connection]
sftrabbit has joined #ruby
zyzioziom has joined #ruby
<karl___> I'm using RestClient and need to send a Get request that has JSON in the body of the request (because the API resource I'm using expects parameters that way). Any suggestions on how to accomplish this?
<solars> apeiros, I was not aware that this is visible in the missing constants exception
<apeiros> in the backtrace. and that's precisely the point why you always provide the full exception - because you might miss something or your interpretation of the exception may lack an important aspect
babblebre has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
evidex has quit [Ping timeout: 245 seconds]
dhollinger has joined #ruby
momomomomo has joined #ruby
evidex has joined #ruby
whippythellama has joined #ruby
hobodave has joined #ruby
Brklyn has joined #ruby
dlitvak has joined #ruby
jaiks has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
Chachi has quit [Quit: Textual IRC Client: www.textualapp.com]
dopamean_ has quit [Ping timeout: 272 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<solars> apeiros, alright.. still have to find a way how to resolve this .. is there anything like a tool to analyze requires in a project? :)
<solars> seems to be quite chaotic
<shevy> what I found helps is to try to make minimal requires, that is, require what you may need in that file alone and ideally nothing else
VeryBewitching has joined #ruby
atomical has quit [Ping timeout: 240 seconds]
einarj_ has quit [Remote host closed the connection]
<shevy> and to build by starting from the foundation of the project, until you reach the more specialized classes
mrsolo_ has joined #ruby
<VeryBewitching> Good morning folks.
<solars> of course, I just need to get an overview of all these dependencies somehow
mrmargolis has joined #ruby
karapetyan has joined #ruby
<apeiros> solars: monkey-patch Kernel#require
<solars> looks like there is no tool or script for this :/
<solars> apeiros, hm yeah that would probably be the next step
mrsolo_ has quit [Client Quit]
<solars> a graph would be nice :)
<apeiros> shouldn't be too difficult
<apeiros> I mean all you need is caller/caller_locations + the argument to have an edge
ElFerna_ has quit [Ping timeout: 240 seconds]
ftj has joined #ruby
<apeiros> print it to a file with -> in between, call it .dot, run it through graphviz - voilà, visual graph.
<solars> never used that
<solars> but it sounds easy :)
vqrs has quit [Max SendQ exceeded]
truenito has joined #ruby
vqrs has joined #ruby
freerobby has joined #ruby
william3 has quit [Remote host closed the connection]
ElFerna_ has joined #ruby
<apeiros> you can do a lot. but all you need is more or less `digraph foo { "requiring file" -> "required file"; … }`
the_drow has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
atomical has joined #ruby
<the_drow> Hi, how do I replace the default JSON parser in grape with Oj?
<the_drow> Does it support multi_json?
jam_ has joined #ruby
<solars> apeiros, thanks a lot for the suggestion!
dlitvak has quit [Remote host closed the connection]
nettoweb has joined #ruby
pdoherty has joined #ruby
adgtl has quit [Remote host closed the connection]
jaiks has joined #ruby
Sucks has joined #ruby
jam_ has quit [Ping timeout: 240 seconds]
<zacts> what does monkey-patch mean?
dlitvak has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> zacts: it means to change a class which exists already (and usually which you don't own)
sgambino has joined #ruby
<apeiros> most often done with core classes. but it's not limited to those.
rodfersou is now known as rodfersou|lunch
<zacts> is it analagous to operator overloading, but at the class level?
tuelz1 has joined #ruby
blasius has joined #ruby
<zacts> oh I think I see, ok
<apeiros> no. ruby can't have overloading.
makenois_ has quit []
<Burgestrand> Code equivalent of duct tape.
<zacts> ah ok
<zacts> apeiros: oh so you really are modifying the core class proper?
<apeiros> yes
<zacts> Burgestrand: nice
<zacts> ok
<apeiros> rubys classes are open
<solars> apeiros, something like this https://gist.github.com/solars/b9ad14feb06f5e8081fe
<dajobat> apeiros: I think you can overload operators in ruby
<apeiros> >> class Array; def gimme3; first(3); end; end; [*1..10].gimme3
<ruby[bot]> apeiros: # => [1, 2, 3] (https://eval.in/511970)
<solars> "just" have to add the graphviz stuff haha
<apeiros> zacts: ^
karapetyan has quit [Remote host closed the connection]
<apeiros> dajobat: no. you can't.
william3 has joined #ruby
<apeiros> dajobat: overloading requires multiple methods of the same name to be able to coexist. ruby does not have that. no overloading.
sgambino has quit [Client Quit]
<apeiros> dajobat: you can define +/-/* etc. methods. but that's not overloading.
<aegis3121> If you're talking about things like '+' or '/', you're just re-defining the method with the name of that symbol as defined for that class.
<zacts> interesting
Abrin has joined #ruby
<apeiros> (also technically they aren't operators in ruby either ;-p)
sftrabbit has quit [Quit: sftrabbit]
truenito has quit [Ping timeout: 245 seconds]
adgtl has joined #ruby
tuelz1 has quit [Ping timeout: 245 seconds]
JDiPierro has quit [Remote host closed the connection]
<dajobat> apeiros: i've read some stuff that refers to redefining operators for classes as operator overloading, so that might be what zacts is referring to
JDiPierro has joined #ruby
Jardayn has joined #ruby
sftrabbit has joined #ruby
<apeiros> yeah, redefining an operator isn't overloading.
<apeiros> overloading is when you define the same operator multiple times with different behaviors depending on the arguments
<apeiros> such as sum(float, float), sum(int, int), …
<apeiros> depending on the arguments, the proper function is invoked.
<dajobat> isn't that basically what you're doing (if not technically) when you redefine + to be concat for a string rather than an int?
<apeiros> only if you consider the receiver to be an argument
<aegis3121> But it's the calling class that matters, not the parameters. Overloading relies on parameter signatures.
shinnya has quit [Ping timeout: 245 seconds]
<apeiros> and then it'd be a limited overloading as you can only overload based on a single argument (the receiver)
tjohnson has joined #ruby
catt has joined #ruby
<apeiros> you can't define String#+(String) and String#+(Integer) at the same time in ruby. you can handle it, but you have to do so within the method, not through multiple definitions of the same method.
<zacts> my mistake
<zacts> re: terminology
JDiPierro has quit [Ping timeout: 264 seconds]
<dajobat> Yeah, you're right.
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
baweaver has joined #ruby
blasius has quit [Remote host closed the connection]
dopamean_ has joined #ruby
truenito has joined #ruby
infra-red has quit [Remote host closed the connection]
dangerousdave has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
sgambino has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
ferr has quit [Ping timeout: 260 seconds]
ElFerna_ has quit [Ping timeout: 245 seconds]
aganov has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
solars has quit [Ping timeout: 250 seconds]
atomical_ has joined #ruby
chouhoulis has joined #ruby
yoongkang has quit [Remote host closed the connection]
Xeago has joined #ruby
ta has quit [Remote host closed the connection]
roshanavand has joined #ruby
weemsledeux has quit [Client Quit]
chouhoul_ has joined #ruby
<hxegon> is there a way to suppress the context output when you start pry with binding.pry?
Xeago has quit [Remote host closed the connection]
slawrence00 has joined #ruby
atomical has quit [Ping timeout: 256 seconds]
mauricio has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
aufi has joined #ruby
<Papierkorb> hxegon: binding.pry quiet: true
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon> Thanks Papierkorb!
<Papierkorb> That may silence other things too, not sure
terminalrecluse has joined #ruby
dionysus69 has joined #ruby
Chau has quit [Quit: Leaving]
Rickmasta has joined #ruby
ogpastaling has joined #ruby
jottr has quit [Quit: WeeChat 1.4]
mpistone has joined #ruby
dangerousdave has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
Guest38 has joined #ruby
<shevy> I got a question... style question mostly, but also speed consideration
frem has joined #ruby
<shevy> it is said that using @ivars directly is faster than using an reader method like: def ivars; @ivars
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> but I found that, using methods, makes it more convenient for me to read my own code. should I use @vars instead or continue to use methods? (inside the class that is)
machinewar has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
<machinewar> whats the community's opinion on multiple return values?
<machinewar> seems useful in some cases, or maybe ive just been writing too much Golang recently
sgambino has joined #ruby
<dajobat> machinewar: like returning two different values at the same time from a method, or returning different values in different places?
<machinewar> dajobat: two values at the same time from method
<machinewar> i.e. a, b = my_method()
ogpastaling has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
ponga has joined #ruby
ogpastaling has joined #ruby
EdwardIII has joined #ruby
<ponga> hey guys I found this, https://glade.gnome.org would you suggest this is good idea to GUI with ruby?
ogpastaling has quit [Remote host closed the connection]
roshanav_ has joined #ruby
bauruine has joined #ruby
<shevy> it depends
griffindy has quit [Read error: Connection reset by peer]
<ponga> shevy: can you elaborate, please
<shevy> it's mostly XML yes? and XML is not a lot of fun... BUT, you can sorta just describe your whole UI in one file, which is actually pretty cool because you don't have to deal with UI stuff much at all when you write application logic ponga
<shevy> there are a few examples... let me try to find it
<dajobat> machinewar: Don't know how I feel about them really, better than having to make loads of custom classes for return values I guess.
<dajobat> I do like C#'s Tuples though, which are similar
<ponga> ah xml
<shevy> ah yes
nofxx has joined #ruby
<shevy> you are a korean in japan or something right? let me introduce to you to kuja, a korean, who used to be on #rubyforce :)
roshanavand has quit [Ping timeout: 240 seconds]
treehug88 has quit [Ping timeout: 264 seconds]
<shevy> like 8 years ago he wrote an application called TubePod - let me try to upload
<ponga> shevy: to me it seemed like I'd not have to worry about XML
stannard has quit [Remote host closed the connection]
<machinewar> dajobat: good point
<shevy> the page is a bit messed up... you can ignore the ruby part if you want to, just look at the XML part
<shevy> ponga not sure, perhaps glade changed... but in gnome2 era, it was 100% XML
<shevy> <property name="authors">Matthew Harris</property>
<shevy> that was kuja :)
<EdwardIII> hey is it OK to ask about third party libs? i've set savon to :info level, asked it to pretty print xml, but when it gets a SoapFault in a test, it doesn't show the xml that caused it
<shevy> actually I think he was a korean but born in the USA or something
<ponga> shevy: It is in XML, but i thought the concept was the glade'user wouldnt have to worry about reading XML :\
<shevy> yeah the user won't have to worry
<shevy> and once you finished the UI design part with XML, you also don't have to worry about it
<shevy> it's a bit odd to deal with perhaps:
<shevy> <property name="visible">True</property>
<shevy> <property name="xalign">0.5</property>
<shevy> in pure ruby you'd have similar means, like
<shevy> widget.visible = true
<shevy> widget.xalign = 0.5
stannard has joined #ruby
<ponga> hm
<shevy> more work in XML, but the benefit is that you can just grab any arbitrary glade file and have your application work on it
Mon_Ouie has quit [Ping timeout: 250 seconds]
<shevy> I guess people manage to deal with it by using editors for glade hehe
Limix has joined #ruby
<ponga> shevy: yeah that's what i was going to do, use editor for glade
<ponga> then forget about it
<ponga> *forget about XML
<shevy> yeah
<ponga> isn't that what OOP is about? at least partially?
<ponga> don't bother with what's inside the object
<ponga> it works
<EdwardIII> i wish i could forget about xml heh
<EdwardIII> life would be so glorious
<ponga> and regex for me
<EdwardIII> doing a lot of regex?
<shevy> ponga yeah for objects + messages + communicating with other objects, sorta the way how Alan Kay thought about OOP and less so the C++ or java way
<ponga> EdwardIII: recently, yeah
<ponga> regex in asian language
<shevy> my gripe with XML is that it is so verbose
<EdwardIII> i don't mind regex heh but my regex is write-only to the extreme
<dajobat> yeah, xml's pretty heavy.
huyderman has quit [Ping timeout: 260 seconds]
<EdwardIII> plus the lack of distinction between a single element and a collection
<EdwardIII> that's my biggest reason for prefering json to xml
<EdwardIII> *preferring
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Remote host closed the connection]
<dajobat> Also the fact that the angle brackets on your keyboard can only sustain so much punishment before breaking.
sgambino has joined #ruby
<ponga> shevy: I can't bare writing raw codes for GUI, so im looking for an editor
<ponga> and glade was what I hit by
<shevy> yeah
<shevy> my GUIs end up awful
<shevy> but I gave up on beautiful, I have settled for functional
x77686d has joined #ruby
tomchapin has joined #ruby
<ponga> do we have any alternative to glade? GUI editor that can work with ruby?
<ponga> cos I hear you guys say XML is heavy
<ponga> I don't like heavy
Patrezze has quit [Quit: [www.tlscript.com.br]]
<shevy> I think there is some gnome editor for glade stuff
<shevy> well:
<dajobat> this http://visualruby.net/ appears to exist
ramfjord has joined #ruby
<dajobat> don't know how good it is though.
cschneid_ has joined #ruby
<shevy> oh yes I remember that
JDiPierro has joined #ruby
<shevy> well give it a try ponga
<dajobat> report back with your findings.
<ponga> off I go
ferr has joined #ruby
poguez_ has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
avenj has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
MyMind has quit [Read error: Connection reset by peer]
mark2 has quit [Quit: Leaving.]
MyMind has joined #ruby
<EdwardIII> so.... i'm pretty green. does anyone know how i can find out if savon *should* be logging xml requests/responses when exceptions happen?
<arup_r> ponga: hi.. take care
infra-red has joined #ruby
anisha has joined #ruby
jbrhbr has joined #ruby
jbrhbr has quit [Client Quit]
<EdwardIII> it keeps saying '(soap:Server) Server was unable to process request. ---> Not authenticated' but i know i'm giving the right details. this is a stupid soap service, it doesn't use proper auth like plain auth or something, it gets you to include some auth xml in the header based on their own ns/schema, and what i've told it to use is correct
aegis3121 has joined #ruby
tuelz1 has joined #ruby
arup_r has quit [Remote host closed the connection]
<EdwardIII> my guess is it's an NS issue
zyzioziom has quit [Ping timeout: 240 seconds]
quaristice has joined #ruby
quaristice has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
Snowy has quit [Remote host closed the connection]
jimmtt has joined #ruby
scepticulous has quit [Ping timeout: 256 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
treehug88 has joined #ruby
tuelz1 has quit [Ping timeout: 276 seconds]
<ponga> dajobat: will visualruby support ruby 2.3.0
<ponga> guess I'd have to install 1.9.3 for safety
sgambino has joined #ruby
Pumukel has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
agentmeerkat has joined #ruby
<Ox0dea> c0m0: Did you get seeking figured out?
mfb2 has quit [Remote host closed the connection]
roshanav_ has quit [Remote host closed the connection]
<Ox0dea> For IO#last_line or the like.
dlitvak_ has joined #ruby
roshanavand has joined #ruby
<c0m0> 0x0dea: No
<Ox0dea> 0x5adface
ramfjord has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
the_drow has quit [Quit: Page closed]
TomPeed has joined #ruby
infra-red has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
tesuji has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
infra-red has joined #ruby
symm- has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
infra-re_ has joined #ruby
<dajobat> ponga: No idea, I only found it just now.
Xeago has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Ping timeout: 276 seconds]
<ponga> ok I will try with 2.3.0
Timba-as_ has quit [Ping timeout: 252 seconds]
<ponga> and if it doesn,t have to follow what guide says
ElFerna_ has joined #ruby
<dajobat> Good luck!
Timba-as_ has joined #ruby
Rodya_ has joined #ruby
TheMoonMaster has quit [Ping timeout: 265 seconds]
infra-red has quit [Ping timeout: 264 seconds]
al2o3-cr has quit [Ping timeout: 272 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
yoongkang has joined #ruby
jbrhbr has joined #ruby
rodfersou|lunch is now known as rodfersou
howdoi has quit [Quit: Connection closed for inactivity]
gnudon has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
tekk has quit [Ping timeout: 250 seconds]
vishwa has quit [Ping timeout: 260 seconds]
mfb2 has joined #ruby
yoongkang has quit [Ping timeout: 265 seconds]
kirillzh has joined #ruby
infra-re_ has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
tekk has joined #ruby
Timba-as_ has quit [Quit: Be back later ...]
davedev24 has joined #ruby
<EdwardIII> hm managed to get it printing out. it's weird, it's not applying the right namespace to a particular element
adgtl has joined #ruby
freerobby has quit [Quit: Leaving.]
Limix has quit [Quit: Limix]
chouhoulis has quit [Remote host closed the connection]
iateadonut1 has quit [Quit: Leaving.]
iateadonut has joined #ruby
Xeago has joined #ruby
kirillzh has quit [Ping timeout: 250 seconds]
adgtl has quit [Remote host closed the connection]
arup_r has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
zyzioziom has joined #ruby
infra-red has joined #ruby
djbkd has joined #ruby
agit0 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
Lucky__ has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
blasius has joined #ruby
Lucky__ has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
Yeomra has quit [Quit: WeeChat 1.3]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
Lucky__ has joined #ruby
avenj has joined #ruby
avenj has joined #ruby
avenj has quit [Changing host]
gizmore has joined #ruby
ramortegui has quit [Read error: Connection reset by peer]
mfb2 has quit [Remote host closed the connection]
<avril14th> Hello
<dajobat> Edward: I've never used SOAP, only done RESTful stuff. What's it like?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chrisrhoden has quit [Ping timeout: 272 seconds]
amclain has joined #ruby
stannard has quit [Remote host closed the connection]
weemsledeux has joined #ruby
anisha has joined #ruby
mfb2 has joined #ruby
aegis3121 has quit [Ping timeout: 272 seconds]
MalcolmReynolds has quit [Quit: ZNC 1.6.1 - http://znc.in]
bronson has joined #ruby
evidex has quit [Remote host closed the connection]
IanMalcolm has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
dlitvak has joined #ruby
spiman has joined #ruby
ramortegui has joined #ruby
maho has joined #ruby
<maho> Can I talk of languages other than Ruby here?
evidex has joined #ruby
dlitvak_ has quit [Ping timeout: 250 seconds]
Timba-as_ has joined #ruby
Snowy has joined #ruby
disconnekted has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
krobzaur_ has quit [Ping timeout: 240 seconds]
jimmtt has quit [Ping timeout: 240 seconds]
x77686d has quit [Quit: x77686d]
Snowy has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
ElFerna_ has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
Snowy has joined #ruby
<EdwardIII> dajobat: horrid
<EdwardIII> dajobat: it's supposed to be very structured to make it more comfortable in languages like java & c#
<EdwardIII> dajobat: but in reality nothing ever works right and it's hugely irritating and often complex
OS-15951 has joined #ruby
tomphp has quit [Ping timeout: 250 seconds]
krobzaur_ has joined #ruby
AccordsLTN has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
djbkd has quit []
Rodya_ has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
<maho> Well, here's my question: http://paste.ofcode.org/j7PV7bmgwpVZJAhTWCNJF7 and my answer: http://paste.ofcode.org/35Qh4Hbtqbge5aUMHF34yCY. What's wrong? Can someone help?
vishwa has joined #ruby
stannard has joined #ruby
Ebok has joined #ruby
last_staff has joined #ruby
User458764 has joined #ruby
ElFerna_ has joined #ruby
<Sigma00> maho: you'll have better luck in ##c or ##c++
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> The nerve.
agit0 has quit [Quit: zzzZZZ….]
jam_ has joined #ruby
spiman has quit []
andikr has quit [Remote host closed the connection]
skingsbu has joined #ruby
Timba-as_ has quit [Quit: Be back later ...]
avril14th has quit [Read error: Connection reset by peer]
Timba-as_ has joined #ruby
<maho> Sigma00: Very few people there right now...So I wondered if some expert is here right now
synthroid has joined #ruby
elifoster has joined #ruby
tomphp has joined #ruby
zyzioziom has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
tomchapin has joined #ruby
bb010g has joined #ruby
mfb2 has quit [Remote host closed the connection]
jam_ has quit [Ping timeout: 260 seconds]
<dajobat> EdwardIII: Sounds great, really.
Limix has joined #ruby
ElFerna_ has quit [Ping timeout: 256 seconds]
Timba-as_ has quit [Ping timeout: 276 seconds]
<Ox0dea> c0m0: https://eval.in/512049
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tuelz1 has joined #ruby
<Ox0dea> I used StringIO only because eval.in doesn't permit creating actual files; you could swap it out for IO and have it do The Right Thing.
infra-re_ has joined #ruby
<Ox0dea> Having one approach be ~4 orders of magnitude faster than another is a rare thing.
infra-r__ has joined #ruby
sgambino has joined #ruby
Anderson69s_Deb has joined #ruby
justinweiss has joined #ruby
mfb2 has joined #ruby
Timba-as_ has joined #ruby
infra-red has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
tuelz1 has quit [Ping timeout: 240 seconds]
infra-re_ has quit [Ping timeout: 250 seconds]
Timba-as_ has quit [Client Quit]
bMalum has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
jbrhbr has quit [Quit: Leaving.]
anisha has quit [Quit: Leaving]
UtkarshRay has quit [Quit: Leaving]
infra-r__ has quit [Ping timeout: 252 seconds]
psy_ has joined #ruby
maho has left #ruby [#ruby]
<c0m0> 0x0dea: Nice :) thanks
baweaver has joined #ruby
mostlybadfly has joined #ruby
freerobby has joined #ruby
anisha has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
TomyWork has quit [Ping timeout: 248 seconds]
dlitvak has joined #ruby
shinnya has joined #ruby
Rodya_ has quit [Remote host closed the connection]
c0m0 has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
symm- has joined #ruby
pwnd_nsfw has quit [Ping timeout: 252 seconds]
yoongkang has joined #ruby
ElFerna_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 248 seconds]
Rodya_ has joined #ruby
IrishGringo has joined #ruby
adgtl has quit [Remote host closed the connection]
dmolina has quit [Quit: Leaving.]
dmolina has joined #ruby
blasius has quit []
GeorgesLeYeti has joined #ruby
pwnd_nsfw has joined #ruby
<GeorgesLeYeti> Hi
dc4 has quit [Ping timeout: 256 seconds]
dlitvak_ has joined #ruby
yoongkang has quit [Ping timeout: 264 seconds]
infra-red has joined #ruby
JDiPierro has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
iateadonut has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
hahuang65 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
floatingpoint has joined #ruby
<floatingpoint> yo
dmolina has quit [Ping timeout: 240 seconds]
Bloomer has quit [Remote host closed the connection]
<floatingpoint> should Open3.capture3(command) be able to overflow the stdout buffer?
Xeago has joined #ruby
praveen has quit []
wldcordeiro has joined #ruby
JDiPierro has quit [Ping timeout: 260 seconds]
infra-red has quit [Ping timeout: 240 seconds]
<eam> floatingpoint: what does "overflow" mean to you in that context? can you describe the question a bit more?
grill has joined #ruby
geekbri has quit []
kfpratt has joined #ruby
floatingpoint has quit [Ping timeout: 256 seconds]
karl___ has quit [Ping timeout: 252 seconds]
adgtl has joined #ruby
jbrhbr has joined #ruby
floatingpoint has joined #ruby
<floatingpoint> should Open3.capture3(command) be able to overflow the stdout buffer?
grill has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
kevinml has joined #ruby
jottr has joined #ruby
mhoungbo has quit [Ping timeout: 245 seconds]
meves has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 252 seconds]
kevinml has left #ruby [#ruby]
dexter__ has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
treehug88 has joined #ruby
adgtl has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
cpup has joined #ruby
<GeorgesLeYeti> I have a float 361.145 and i want to return the closest float where decimal part is 0.04*i (i from 0 to 96 => [0.0, 0.04, 0.08, 0.12, 0.16, 0.2, 0.24, 0.28, 0.32, 0.36, 0.4, 0.44, 0.48, 0.52, 0.56, 0.6, 0.64, 0.68, 0.72, 0.76, 0.8, 0.84, 0.88, 0.92, 0.96] )
<GeorgesLeYeti> So here it's 361.16
anisha has quit [Quit: Leaving]
Emmanuel_Chanel has quit [Quit: Leaving]
<GeorgesLeYeti> I'm sorry for this "shitty" explaination but I'dont know how to express it.
rgs has joined #ruby
OS-15951 has left #ruby [#ruby]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
meves has joined #ruby
<GeorgesLeYeti> Btw if you want to know the complete problem. I want to convert 25 fps (frame per second) into second.
chouhoulis has joined #ruby
akaiiro has joined #ruby
<GeorgesLeYeti> And i want my timecode stop at the exact frame
Eiam_ has joined #ruby
Eiam_ has quit [Client Quit]
<Papierkorb> GeorgesLeYeti: 1.0/25 ?
<Ox0dea> >> [12.0, 14.5].map { |f| (f / 4).ceil * 4 } # GeorgesLeYeti
<ruby[bot]> Ox0dea: # => [12, 16] (https://eval.in/512066)
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
mooru has joined #ruby
floatingpoint has quit [Ping timeout: 256 seconds]
<GeorgesLeYeti> Papierkorb, yes that why my step is 0.04
f4cl3y has quit [Ping timeout: 272 seconds]
TomyLobo has joined #ruby
tjohnson has joined #ruby
<Papierkorb> GeorgesLeYeti: So given a timestamp, you want to find the closest frame to that?
redlegion is now known as redass
aegis3121 has joined #ruby
geekbri has joined #ruby
momomomomo has joined #ruby
TheMoonMaster has joined #ruby
einarj has joined #ruby
mrsolo_ has joined #ruby
troulouliou_div2 has quit [Ping timeout: 250 seconds]
<GeorgesLeYeti> Papierkorb, yes
redass is now known as redlegion
<Papierkorb> >> time = 13.37; fps = 25; p (time * fps).round # GeorgesLeYeti
<ruby[bot]> Papierkorb: # => 334 ...check link for more (https://eval.in/512070)
Rodya_ has quit [Remote host closed the connection]
grill has joined #ruby
k13nox has quit [Remote host closed the connection]
Snowy has joined #ruby
mame3 has joined #ruby
momomomomo has quit [Client Quit]
Rodya_ has joined #ruby
<dajobat> Cheerio all, home time.
Limix has quit [Quit: Limix]
oetjenj has joined #ruby
Limix has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
Snowy has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
tuelz1 has joined #ruby
borodin has joined #ruby
Xeago has joined #ruby
roshanavand has quit [Remote host closed the connection]
Azulinho has joined #ruby
ta has joined #ruby
<adaedra> Hi.
baweaver has joined #ruby
william3 has quit [Remote host closed the connection]
tuelz1 has quit [Ping timeout: 260 seconds]
binaryplease has joined #ruby
machinewar has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
aef has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<grill> should Open3.capture3(command) be able to overflow the stdout buffer? (ruby)
sftrabbit has quit [Quit: sftrabbit]
x77686d has joined #ruby
Azulinho has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
cpup has quit [Ping timeout: 240 seconds]
mooru has quit [Ping timeout: 265 seconds]
cpup has joined #ruby
arup_r has quit []
roshanavand has joined #ruby
solars has joined #ruby
<solars> apeiros, do you know how I can get the caller filename when monkey patching Kernel#require?
mdw has joined #ruby
mooru has joined #ruby
<apeiros> solars: Kernel#caller
<apeiros> or newer variant: caller_locations
Azulinho has joined #ruby
<apeiros> in the latter, it's easier to extract the filename as it's not just an array of strings.
<solars> ah nice
<solars> thanks!
User458764 has joined #ruby
<solars> figured out the graphviz thing, a very nice tool
infra-red has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<apeiros> it tits is
<apeiros> *totes
* apeiros probably shouldn't type one-handed while lying on the side :D
<adaedra> like one of your french girls, apeiros?
<apeiros> huh?
roshanavand has quit [Ping timeout: 245 seconds]
<adaedra> lying on the side
<apeiros> Ox0dea: you caught yaml red-handed in the require-jar!
<apeiros> adaedra: I don't think I get the reference :-S
<Ox0dea> apeiros: Titanic!
* adaedra requires Ox0dea
<Ox0dea> # => false
dopie has quit [Quit: Lost terminal]
<havenwood> Ox0dea must have been already required!
<Ox0dea> You already had me. <3
atomical has joined #ruby
<Ox0dea> You had me at _start().
zeroDivisible has joined #ruby
<adaedra> I̅ͭ̾ͫͧͯ̚ s̱̤͌̋ͩ̇ͬͅh̫̩̝̩̜̜̥̾ò̱̻͕̱̤u̜̒l͚̺̹̼̤̱͉ͤͣd̙̦̤ͦͫ̃̍̓n̰̪ͬ̎'̝͆ͩ͐̍͑̈́̂t͓̤̃̂̊̊͋ ͐͒ͪ͛̋́h̦̱̮̯̱̱̦̅͆̅ͬ͛͑̉a̬͎͚͖͉v͓̻̰ͪ̃̿̓̂̚e͓͚̤̍ ͙͆̊ͩ̓͐ͅd̳͖̾̆ͤ̆ͯǒ̋ͯn͓̯̖͇̤̗ͦͨ̔ͮͯͬe͇͆̽̚ ̮̰̹ͩ̊̉́ͩͭt̻̱̞̟̘h͆̊́āt͕̳̳ͨ͐ͤ̒̉
rubie has joined #ruby
IanMalcolm has quit [Max SendQ exceeded]
<apeiros> oh
IanMalcolm has joined #ruby
<adaedra> Ox0dea: you really got me ♫
rubie has quit [Client Quit]
<grill> what's the easiest way to match all files recursively in a directory?
<adaedra> Dir['**/*'] ?
<grill> will that only match files?
<grill> not dirs?
atomical_ has quit [Ping timeout: 245 seconds]
<Ox0dea> ?try
<ruby[bot]> Why don't you try it and see for yourself?
<grill> no one say that coming
<grill> *saw
<grill> i should start making bets on how many times tias gets issued in various channels
skingsbu has quit [Ping timeout: 240 seconds]
<eam> hopefully regularly, when spurious questions get asked
jottr_ has joined #ruby
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruce__lee is now known as bruce_lee
<Ox0dea> grill: For once you've gotten your answer by way of an insatiable desire to explore: Dir['**/*'].select &File.method(:file?)
ferr has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
FernandoBasso has quit [Quit: Leaving]
<eam> is &File.method(:file?) more clear than {|f| File.file? f} ?
jottr has quit [Ping timeout: 245 seconds]
<grill> what is &File? I've never seen that syntax before
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie> foo(&something) calls method foo with the object something as a block argument (after converting it to a Proc by calling #to_proc on it)
<adaedra> It's the same as .select { |file| File.file? file }
<Mon_Ouie> I like the look of File.file? file
<Ox0dea> Looks like Java.
<Mon_Ouie> had_had = 'had'; Had.had?(had_had) ? 'had' : 'had_had'
<Ox0dea> Relevant: https://git.io/vgIcF
<adaedra> pokemon.rb
dionysus69 has joined #ruby
roshanavand has joined #ruby
<Ox0dea> Some of them can say more than their names nowadays.
<eam> ruby should've adopted perl's dash-functions
<eam> Dir['*'].select { -f }
jbrhbr has quit [Quit: Leaving.]
<eam> and the implicit _ iterator
<adaedra> If you want to do perl, you can, you know, do perl
adgtl has quit [Remote host closed the connection]
<adaedra> :p
<eam> if only it were that simple
<grill> hm
Rodya_ has joined #ruby
<grill> I don't undetstand the logical difference between Dir["**/*"] and Dir["*"]
<eam> "**" is a recursive descent
karapetyan has joined #ruby
<adaedra> grill: try both in a directory with subdirectories
aegis3121 has quit [Ping timeout: 250 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
Swappticon has joined #ruby
<grill> nah that's ok. i'll just ask around / stackoverflow for an answer. it's faster
DoubleMalt has quit [Remote host closed the connection]
<tubbo> grill: no wonder you're such a shitty programmer
<Ox0dea> ^
<eam> MINASWAN
<grill> probably getting paid more than you too
<Ox0dea> ^
Burgestrand has joined #ruby
grill has left #ruby ["Textual IRC Client: www.textualapp.com"]
<tubbo> probably
baweaver has quit [Remote host closed the connection]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<adaedra> no need to oil the fire, people.
aegis3121 has joined #ruby
dstarh has joined #ruby
<Ox0dea> It's really weird, though; switching from student to troll once something becomes a little confusing is a strange coping mechanism.
<tubbo> haha i just meant that i live in an area where my cost of living isn't so high
roshanavand has quit [Ping timeout: 276 seconds]
alexherbo2 has quit [Quit: WeeChat 1.4]
pawnbox has quit [Remote host closed the connection]
dionysus69 has quit [Quit: dionysus69]
TorpedoSkyline has joined #ruby
darkf_ has joined #ruby
<Ox0dea> It's really hard to find usage numbers for "oil the fire" because there's a song called "The Oil, the Fire".
chouhoul_ has joined #ruby
<solars> apeiros, pretty cool, works nicely with graphviz and Kernel#require
amclain_ has joined #ruby
dopamean1 has joined #ruby
<adaedra> Ox0dea: did I use an expression which doesn't translate well again?
synthroi_ has joined #ruby
Axy has joined #ruby
<Ox0dea> adaedra: Aye, "fuel" is more idiomatic there.
william3 has quit [Remote host closed the connection]
<adaedra> Ah yes.
bafbomb_ has joined #ruby
uxp_ has joined #ruby
jbrhbr has joined #ruby
astrobun_ has joined #ruby
Rutix`away has joined #ruby
Rutix`away has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
eregon_ has joined #ruby
Pisuke has joined #ruby
plonk_ has joined #ruby
plonk_ has joined #ruby
webhat_ has joined #ruby
crowell_ has joined #ruby
phredus_ has joined #ruby
<apeiros> solars:
symm-_ has joined #ruby
iamvery_ has joined #ruby
mondok has joined #ruby
sung__ has joined #ruby
Marsjan has joined #ruby
jsaak_ has joined #ruby
livcd_ has joined #ruby
rethi_ has joined #ruby
lianj_ has joined #ruby
sunya7a_ has joined #ruby
mooru has joined #ruby
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has quit [Remote host closed the connection]
ihme-TTilus has joined #ruby
ozzloy_ has joined #ruby
Sp4rKy_ has joined #ruby
hahuang65 has joined #ruby
tokik_ has joined #ruby
ironcame1 has joined #ruby
ltd_ has joined #ruby
Eising_ has joined #ruby
Swappticon has joined #ruby
pilne has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
truenito has quit [Remote host closed the connection]
atomical_ has joined #ruby
oz` has joined #ruby
csaunders_ has joined #ruby
j0bk_ has joined #ruby
kadoppe_ has joined #ruby
D9- has joined #ruby
wanderer_ has joined #ruby
greenhat| has joined #ruby
tvsutton_ has joined #ruby
kenichi_ has joined #ruby
spacemud_ has joined #ruby
Ankhers_ has joined #ruby
xMopxShe- has joined #ruby
crank1988 has joined #ruby
konopka_ has joined #ruby
hfp__work has joined #ruby
bmn_ has joined #ruby
skakri` has joined #ruby
mdw has quit [Ping timeout: 250 seconds]
davidcelis_ has joined #ruby
russt_ has joined #ruby
M-shine1 has joined #ruby
Fire-Dragon-DoL- has joined #ruby
bakingbread has joined #ruby
pawnbox has joined #ruby
atomical has quit [*.net *.split]
chouhoulis has quit [*.net *.split]
synthroid has quit [*.net *.split]
amclain has quit [*.net *.split]
TomPeed has quit [*.net *.split]
MyMind has quit [*.net *.split]
dopamean_ has quit [*.net *.split]
crank1988_ has quit [*.net *.split]
Mia has quit [*.net *.split]
phredus has quit [*.net *.split]
blaxter has quit [*.net *.split]
darkf has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
Eiam has quit [*.net *.split]
raimumizu has quit [*.net *.split]
dextertzu has quit [*.net *.split]
bafbomb has quit [*.net *.split]
redlegion has quit [*.net *.split]
davidcelis has quit [*.net *.split]
tvsutton has quit [*.net *.split]
sung has quit [*.net *.split]
programmerq has quit [*.net *.split]
crowell has quit [*.net *.split]
M-shine has quit [*.net *.split]
armyriad has quit [*.net *.split]
netcho has quit [*.net *.split]
hfp_work has quit [*.net *.split]
akkad has quit [*.net *.split]
lianj has quit [*.net *.split]
wanderer has quit [*.net *.split]
Synthead has quit [*.net *.split]
Ankhers has quit [*.net *.split]
matp has quit [*.net *.split]
eregon has quit [*.net *.split]
mprelude has quit [*.net *.split]
oz has quit [*.net *.split]
Rutix has quit [*.net *.split]
ltd has quit [*.net *.split]
weaksauce has quit [*.net *.split]
skakri has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
rethi has quit [*.net *.split]
TTilus has quit [*.net *.split]
greenhat has quit [*.net *.split]
jsaak has quit [*.net *.split]
webhat has quit [*.net *.split]
spacemud has quit [*.net *.split]
eam has quit [*.net *.split]
marsjaninzmarsa has quit [*.net *.split]
tokik has quit [*.net *.split]
uxp has quit [*.net *.split]
icedp has quit [*.net *.split]
Eising has quit [*.net *.split]
hfp__work is now known as hfp_work
oz` is now known as oz
spacemud_ is now known as spacemud
wanderer_ is now known as wanderer
Marsjan is now known as marsjaninzmarsa
psyq_ has joined #ruby
Fire-Dragon-DoL- is now known as Fire-Dragon-DoL
konopka_ is now known as konopka
Sp4rKy_ is now known as Sp4rKy
armyriad has joined #ruby
psyq_ has quit [Client Quit]
Swappticon has quit [Client Quit]
segy has joined #ruby
redlegion has joined #ruby
ozzloy_ is now known as ozzloy
baweaver has joined #ruby
xMopxShe- is now known as xMopxShell
ozzloy has quit [Changing host]
ozzloy has joined #ruby
CloCkWeRX has joined #ruby
eam has joined #ruby
Swappticon has joined #ruby
psyq has joined #ruby
meves has quit [Remote host closed the connection]
Swappticon is now known as ryanswapp
akkad has joined #ruby
atomical has joined #ruby
k13nox has joined #ruby
shaman42 has joined #ruby
adgtl has joined #ruby
symm-_ has quit [Ping timeout: 256 seconds]
shredding has quit [Ping timeout: 256 seconds]
sftrabbit has joined #ruby
harushimo has joined #ruby
floatingpoint has joined #ruby
david2 has joined #ruby
meves has joined #ruby
matp has joined #ruby
mprelude has joined #ruby
skingsbu has joined #ruby
programmerq has joined #ruby
platzhirsch has left #ruby [#ruby]
ryanswapp has quit [Client Quit]
dextertzu has joined #ruby
raimumizu has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
netcho has joined #ruby
gilesww has joined #ruby
Sou|cutter has joined #ruby
sarlalian has joined #ruby
davidcelis_ is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
Ankhers_ is now known as Ankhers
mickey_mouse_2 has joined #ruby
grill has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
atomical_ has quit [Ping timeout: 256 seconds]
psyq has quit [Quit: Conversation terminated]
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt1 has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
mooru has joined #ruby
floatingpoint has quit [Ping timeout: 256 seconds]
k13nox has quit [Remote host closed the connection]
pwnd_nsfw has quit [Read error: Connection reset by peer]
mickey_mouse has quit [Ping timeout: 252 seconds]
pwnd_nsfw has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
zast has quit [Remote host closed the connection]
ftj has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
jackjackdripper1 has quit [Client Quit]
william3 has joined #ruby
duderonomy is now known as 17WABPBLQ
bqscott has joined #ruby
jackjackdripper has joined #ruby
Synthead has joined #ruby
solars has quit [Ping timeout: 272 seconds]
theery has joined #ruby
Snowy has joined #ruby
brendan- has joined #ruby
brendan- has quit [*.net *.split]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weaksauce has joined #ruby
brendan- has joined #ruby
darkf_ is now known as darkf
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
william3 has quit [Ping timeout: 250 seconds]
Snowy has quit [Ping timeout: 252 seconds]
infra-red has quit [Ping timeout: 245 seconds]
<shevy> code code code
tuelz1 has joined #ruby
rodfersou has quit [Quit: leaving]
Dimik has joined #ruby
zyzioziom has joined #ruby
[Butch] has joined #ruby
cdg has quit [Remote host closed the connection]
hxegon is now known as hxegon_AFK
kenichi_ is now known as kenichi
einarj has quit [Remote host closed the connection]
<shevy> hahaha
<shevy> I'm gonna use that as slogan next time says "don't use eval, it is evil"
Snowy has joined #ruby
<shevy> even though that is an old link for javascript
tuelz1 has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
dsilfen has joined #ruby
Lochez has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azulinho has quit [Ping timeout: 245 seconds]
symm- has joined #ruby
gnudon has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
lemur has joined #ruby
TomPeed has joined #ruby
floatingpoint has joined #ruby
PedramT has joined #ruby
Polymorphism has joined #ruby
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
grill has quit [Ping timeout: 256 seconds]
dudedudeman has joined #ruby
zapata has quit [Quit: WeeChat 1.3]
<dudedudeman> howdy. i have a ruby script that i’m running that ends up giving me the name of afile. what i’d like to do, is have that name of the file accessible for a bash script to pull from and run using that name of the file. any best ways to do this?
lemur has quit [Ping timeout: 240 seconds]
evidex has quit [Ping timeout: 245 seconds]
n_blownapart has joined #ruby
<aegis3121> You could call the bash script at the end of the ruby script using the filename...
finisherr has joined #ruby
anisha has joined #ruby
zapata has joined #ruby
Xeago has joined #ruby
selfadhesivefilm has joined #ruby
<dudedudeman> taht’s a really good point
Sucks has quit [Read error: Connection reset by peer]
grill has joined #ruby
<dudedudeman> and heck, i’m already doing that for a curl command in the script lol
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbrhbr1 has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kwesidev has quit [Ping timeout: 272 seconds]
philtr_ has joined #ruby
mfb2_ has joined #ruby
n_blowna_ has joined #ruby
nofacade has joined #ruby
bauruine has quit [Read error: Connection reset by peer]
floatingpoint has quit [Ping timeout: 256 seconds]
Guest4184______ has joined #ruby
stannard_ has joined #ruby
yoongkang has joined #ruby
icedp has joined #ruby
twodayslate_ has joined #ruby
kirun has joined #ruby
int has joined #ruby
kaspergrubbe has joined #ruby
int is now known as Guest93237
stannard_ has quit [Remote host closed the connection]
frem_ has joined #ruby
bb010g_ has joined #ruby
russt has joined #ruby
Guest4184_____ has quit [Ping timeout: 240 seconds]
ruby[bot] has quit [Ping timeout: 240 seconds]
twodayslate has quit [Ping timeout: 240 seconds]
bakingbread has quit [Ping timeout: 240 seconds]
sarlalian has quit [Ping timeout: 240 seconds]
jbrhbr has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Ping timeout: 240 seconds]
bb010g has quit [Ping timeout: 240 seconds]
frem has quit [Ping timeout: 240 seconds]
kaspergr1bbe has quit [Ping timeout: 240 seconds]
philtr has quit [Ping timeout: 240 seconds]
n_blownapart has quit [Ping timeout: 240 seconds]
mfb2 has quit [Ping timeout: 240 seconds]
akaiiro has quit [Ping timeout: 240 seconds]
stannard has quit [Ping timeout: 240 seconds]
sftrabbit has quit [Ping timeout: 240 seconds]
russt_ has quit [Excess Flood]
sarlalian has joined #ruby
Arcanjo has joined #ruby
meves has quit [Remote host closed the connection]
twodayslate_ is now known as twodayslate
william3 has quit [Remote host closed the connection]
frem_ is now known as frem
bb010g_ is now known as bb010g
Arcanjo has left #ruby [#ruby]
juddey has joined #ruby
yoongkang has quit [Ping timeout: 248 seconds]
serbalgi has joined #ruby
akaiiro has joined #ruby
baweaver has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
<Ox0dea> dudedudeman: Alternatively, wire things together as was intended: ./bash_script `ruby script.rb`
william3 has joined #ruby
<dudedudeman> currently there’s one main bash script, that fires off a ruby script, adn then some other bash scripts from within itself
psyq has joined #ruby
yfeldblum has joined #ruby
mfb2_ has quit [Remote host closed the connection]
shadoi has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
hxegon_AFK has quit [Quit: BRB]
bauruine has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
william3 has quit [Ping timeout: 250 seconds]
rdark has quit [Ping timeout: 250 seconds]
boboc has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
grill has quit [Ping timeout: 256 seconds]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
theery has quit []
dopie has joined #ruby
Eiam has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
zambini has joined #ruby
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
adac has joined #ruby
ferr has quit [Ping timeout: 250 seconds]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
dlitvak has joined #ruby
hasitha has joined #ruby
gizmore has quit [Quit: bbiab]
Azulinho has joined #ruby
gizmore has joined #ruby
yqt has joined #ruby
BTRE has quit [Quit: Leaving]
kwesidev1 has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
duckpuppy has joined #ruby
Burgestrand has joined #ruby
kwesidev1 has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
agentmeerkat has quit [Ping timeout: 250 seconds]
pdoherty has quit [Remote host closed the connection]
kwesidev1 has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
adgtl_ has joined #ruby
meves has joined #ruby
kwesidev1 has joined #ruby
geekbri_ has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
geekbri has quit [Read error: Connection reset by peer]
grill has joined #ruby
nettoweb has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
kwesidev1 has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
kwesidev1 has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
PedramT has quit [Remote host closed the connection]
adgtl has quit [Ping timeout: 272 seconds]
kwesidev1 has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
User458764 has joined #ruby
kwesidev1 has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
FernandoBasso has joined #ruby
kwesidev1 has joined #ruby
kwesidev1 has quit [Max SendQ exceeded]
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
kwesidev2 has joined #ruby
aegis3121 has joined #ruby
kwesidev2 has quit [Max SendQ exceeded]
n_blowna_ has quit []
n_blownapart has joined #ruby
mdw has joined #ruby
ferr has joined #ruby
geekbri_ has quit []
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meves has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
william3 has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jordanm has joined #ruby
kwesidev has joined #ruby
mwlang has joined #ruby
DoubleMalt has joined #ruby
kwesidev has quit [Max SendQ exceeded]
dsilfen has quit [Read error: Connection reset by peer]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
tuelz1 has joined #ruby
aegis3121 has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
ftj has joined #ruby
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
dlitvak has quit [Ping timeout: 240 seconds]
infra-red has joined #ruby
dsilfen has joined #ruby
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
dlitvak has joined #ruby
baweaver has joined #ruby
tuelz1 has quit [Ping timeout: 260 seconds]
spider-mario has joined #ruby
grill has quit [Ping timeout: 256 seconds]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
miles has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
symm- has quit [Quit: Leaving...]
kwesidev has joined #ruby
infra-re_ has joined #ruby
Lucky has joined #ruby
kwesidev has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
serbalgi has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
kwesidev has joined #ruby
lemur has joined #ruby
^CrYpto^ has joined #ruby
kwesidev has quit [Max SendQ exceeded]
k13nox has joined #ruby
infra-red has quit [Ping timeout: 264 seconds]
sandstrom has joined #ruby
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
BTRE has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
dsilfen has quit [Remote host closed the connection]
tomchap__ has joined #ruby
plonk_ is now known as plonk
ftj has joined #ruby
baweaver has quit [Ping timeout: 245 seconds]
dsilfen has joined #ruby
william3 has quit [Remote host closed the connection]
kwesidev has joined #ruby
grill has joined #ruby
alexherbo2 has joined #ruby
kwesidev has quit [Max SendQ exceeded]
dayjo has joined #ruby
kwesidev has joined #ruby
codecop has quit [Remote host closed the connection]
kwesidev has quit [Max SendQ exceeded]
dayjo has left #ruby [#ruby]
stannard has joined #ruby
aegis3121 has joined #ruby
floatingpoint has joined #ruby
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
segy has quit [Quit: ZNC - http://znc.in]
blackmesa has joined #ruby
grill has quit [Ping timeout: 256 seconds]
cpup has quit [Ping timeout: 256 seconds]
dudedudeman has quit [Quit: dudedudeman]
kwesidev has joined #ruby
cpup has joined #ruby
kwesidev has quit [Max SendQ exceeded]
duckpuppy has quit [Ping timeout: 240 seconds]
segy has joined #ruby
meves has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
kwesidev has joined #ruby
floatingpoint has quit [Ping timeout: 256 seconds]
x77686d has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
kwesidev has quit [Max SendQ exceeded]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
mary5030 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serbalgi has joined #ruby
dsilfen has quit [Remote host closed the connection]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
tuelz1 has joined #ruby
ziyadb has joined #ruby
kwesidev has joined #ruby
catt has quit [Quit: leaving]
kwesidev has quit [Max SendQ exceeded]
miles has quit [Remote host closed the connection]
tomchap__ has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has quit [Ping timeout: 250 seconds]
TheHodge has joined #ruby
atomical_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
kirillzh has joined #ruby
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
ramfjord has joined #ruby
ellistaa has joined #ruby
kirillzh has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 256 seconds]
ftj has joined #ruby
kirillzh has joined #ruby
kwesidev has joined #ruby
pawnbox has joined #ruby
kwesidev has quit [Max SendQ exceeded]
karapetyan has joined #ruby
musgravejw has joined #ruby
atomical has quit [Ping timeout: 252 seconds]
dudedudeman has joined #ruby
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
lemur has quit [Remote host closed the connection]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
krz has quit [Ping timeout: 276 seconds]
kwesidev has joined #ruby
kwesidev has quit [Max SendQ exceeded]
pawnbox has quit [Ping timeout: 250 seconds]
musgravejw has quit [Client Quit]
toretore has joined #ruby
kwesidev has joined #ruby
diegoviola has joined #ruby
kwesidev has quit [Max SendQ exceeded]
mkosaki has quit [Quit: Leaving...]
anisha has quit [Quit: Leaving]
dsilfen has joined #ruby
bronson has joined #ruby
at46 has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
glcx has joined #ruby
<shevy> got a question... if your string is string = "php-7.0.3.tar.xz"
mary5030 has quit [Ping timeout: 245 seconds]
phredus_ has quit [Ping timeout: 250 seconds]
at46_ has joined #ruby
last_staff has quit [Ping timeout: 252 seconds]
<shevy> is there a standard way in ruby to find out the next logical version candidates? that is.. for "7.0.3", three candidates would be possible... "7.0.4", "7.1.0" and also "8.0.0" ... it's trivial to write this myself I guess but I wondered if gem itself or some other software has this already
dlitvak_ has joined #ruby
mary5030 has joined #ruby
phredus has joined #ruby
Rickmasta has joined #ruby
<eam> that seems kinda not useful though
<shevy> ah it is semi-useful!
<shevy> Gem::Version.new("7.0.3").bump.to_s # => "7.1"
<eam> why would it only bump the minor though
<pizzaops> Do you have to install the `psych` gem generally? I see it listed on rubygems.org but it also seems to always already be present whenever I install Ruby.
infra-re_ has quit [Ping timeout: 245 seconds]
<pizzaops> So I'm not clear on if it's built in or if I need to list it in my gemspecs.
danielwzd has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
<Ox0dea> pizzaops: Psych is bundled with Ruby.
at46 has quit [Ping timeout: 252 seconds]
<adaedra> ^
<Ox0dea> >> require 'yaml'; YAML
dlitvak has quit [Ping timeout: 245 seconds]
<pizzaops> Yeah, I know about require 'yaml' but I can also require 'psych', so I wasn't sure.
<Ox0dea> Where's the bot?!
^CrYpto^ has quit [Ping timeout: 240 seconds]
<shevy> pizzaops you can also require 'syck' :)
<shevy> (after you installed the gem that is)
<pizzaops> Thanks folks.
<Ox0dea> pizzaops: That would've evaluated to `Psych` was the point I meant to make.
n_blownapart has quit [Remote host closed the connection]
boboc has quit [Remote host closed the connection]
mary5030 has quit [Read error: Connection reset by peer]
dsilfen has quit [Remote host closed the connection]
mary5030 has joined #ruby
adgtl has joined #ruby
jxs_ has quit [Remote host closed the connection]
adgtl has quit [Read error: No route to host]
nettoweb has joined #ruby
adgtl_ has quit [Ping timeout: 250 seconds]
jgt1 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
k13nox has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: Leaving]
freerobby has joined #ruby
Shaboum has quit [Quit: WeeChat 1.4]
zambini has quit [Quit: Leaving.]
jbrhbr1 has quit [Quit: Leaving.]
spooq has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
betabet has joined #ruby
<shevy> aaaaaah
mkosaki has joined #ruby
e4xit has joined #ruby
jam_ has joined #ruby
dsilfen has joined #ruby
<Ox0dea> The name horrifies you as well, I see.
<shevy> hmm
<shevy> no I am thinking, that usually takes a while
<shevy> right now I am wondering whether "major", "minor", "tiny" is a common name
dsilfen has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
william3 has joined #ruby
betabet has quit [Client Quit]
dsilfen has joined #ruby
FooMunki has joined #ruby
baweaver has joined #ruby
<eam> major, minor, patch
jam_ has quit [Ping timeout: 245 seconds]
CloCkWeRX has joined #ruby
ElFerna_ has quit [Ping timeout: 248 seconds]
last_staff has joined #ruby
ruby[bot] has joined #ruby
Toledo|gone is now known as croberts
snz has joined #ruby
ElFerna_ has joined #ruby
<Ox0dea> MRI uses "teeny".
<Ox0dea> Major, minor, teeny, and patch, to clarify.
betabet has joined #ruby
solocshaw has joined #ruby
<shevy> lol
gnudon has quit [Read error: Connection reset by peer]
<shevy> now I need to pull that dude with a beard on you Ox0dea - I can't believe you!
<Ox0dea> shevy: Can you please link to this dude?
CloCkWeRX has quit [Ping timeout: 240 seconds]
<shevy> It's somewhere in the channel log!
trinaldi has joined #ruby
<shevy> ack now I am blind
jbrhbr has joined #ruby
glcx has quit [Quit: This computer has gone to sleep]
supremekay has quit [Ping timeout: 250 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
glcx has joined #ruby
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamvery_ has quit [Quit: ZNC - 1.6.0 - http://znc.in]
glcx has quit [Client Quit]
djbkd has joined #ruby
glcx has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
dlitvak has joined #ruby
dlitvak_ has quit [Ping timeout: 245 seconds]
nik0 has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
nik0 is now known as niko
gizless has joined #ruby
solars has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
atomical has joined #ruby
Cohedrin has joined #ruby
arlek has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
dsilfen has quit [Ping timeout: 250 seconds]
dsilfen has joined #ruby
s00pcan_ has quit [Read error: Connection reset by peer]
atomical_ has quit [Ping timeout: 245 seconds]
moei has quit [Quit: Leaving...]
mwlang has quit [Quit: mwlang]
mondok has quit [Ping timeout: 245 seconds]
cdg has joined #ruby
yoongkang has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
pawnbox has joined #ruby
adac has quit [Ping timeout: 260 seconds]
synthroi_ has quit []
b01t has joined #ruby
gizless has quit [Quit: be root => re boot]
<kbni> is it possible to overload !object?
b01t has left #ruby ["WeeChat 1.3"]
Limix has quit [Quit: Limix]
<Ox0dea> Override? Certainly.
<Ox0dea> >> class Fixnum; def !; 42 end end; !0
<ruby[bot]> Ox0dea: # => 42 (https://eval.in/512113)
<kbni> neato.
<apeiros> oy! 42 is indeed !0 :D
<Ox0dea> Computers can't lie.
yoongkang has quit [Ping timeout: 252 seconds]
vqrs has quit [Max SendQ exceeded]
<eam> well sure they can
<Ox0dea> Liar.
<eam> indeed, and I'm a computer am I not?
selfadhesivefilm has quit [Remote host closed the connection]
vqrs has joined #ruby
meves has quit [Remote host closed the connection]
blackgoat has joined #ruby
<VeryBewitching> Ox0dea: That made me smile.
<shevy> you are the memegenerator
pawnbox has quit [Ping timeout: 276 seconds]
<Ox0dea> ^_^
s00pcan has joined #ruby
<VeryBewitching> <3 Captain Mal
<Ox0dea> Six seasons and a movie!
MaveonRemaes has joined #ruby
<VeryBewitching> eam: A biological creature is different from digital instructions.
<eam> is it? how?
<Ox0dea> ^
hxegon has joined #ruby
<Ox0dea> The only difference is the substrate.
<VeryBewitching> eam: Biologics are not just thinking things, they are feeling things. Our body exists in a state of constant chemical reaction.
pandaant has quit [Remote host closed the connection]
<VeryBewitching> eam: A computer is simple compared to us, and they do exactly what you tell them to.
<Ox0dea> We do exactly what the laws of physics tell us to.
<shevy> I am a magician.
<eam> I hear you saying that it's merely a matter of relative complexity -- but that they're both computers
<VeryBewitching> No.
<VeryBewitching> Analysis != Ecstasy
<Ox0dea> You know I don't speak Spanish.
<VeryBewitching> Your brain doesn't have pathways, it has webs upon webs of neural acreage.
<eam> well, it has both. my laptop also has both ...
atomical_ has joined #ruby
MaveonRemaes has quit [Client Quit]
zambini has joined #ruby
moeabdol1 has joined #ruby
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<VeryBewitching> To think that a thing we created will defeat us, or lead to our defeat, demeans our species.
Limix has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<eam> how do you think your parents feel?
<VeryBewitching> Computers don't try to survive, they do not fear or worry.
mary5030_ has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
<VeryBewitching> Sorry, forgot this was #ruby for a bit there.
<VeryBewitching> end_flood
atomical has quit [Ping timeout: 260 seconds]
<Ox0dea> Where do we rendezvous?
<eam> (that german link, btw, was about the development of a DNA based computer which could solve the hamiltonian path problem)
k13nox has joined #ruby
<shevy> a german computer?!
<eam> well, all germans are computers
<kbni> I for one welcome our logical AI overlords
<Ox0dea> The first computer was a German one.
<shevy> lol
<Ox0dea> It wasn't called the Entscheidungsproblem for nothin'.
<shevy> kbni skynet!!!
<shevy> oh god... those long german words...
<VeryBewitching> shevy: It really depends on who is saying them, and how many drinks they've had.
mary5030 has quit [Ping timeout: 252 seconds]
<eam> I can speak most languages if I have enough booze
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewa_ has joined #ruby
last_staff has quit [Quit: last_staff]
zacstewart has quit [Ping timeout: 256 seconds]
<apeiros> eam: is that like lots of people can sing if they have enough booze?
jcoe has joined #ruby
<eam> indeed, indeed
k13nox has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
meves has joined #ruby
<kbni> Aside from Rspec - what other test libraries are out there? I'm specifically after something as easy as possible for a newbie such as myself to use.
<Ox0dea> minitest.
<kbni> (new to ruby and to ttd)
<Ox0dea> *TDD
<kbni> yes, thanks
<Ox0dea> No worries.
<havenwood> kbni: Minitest is simple and ships with Ruby.
mary5030 has joined #ruby
ASTP001 has joined #ruby
ASTP001 has quit [Client Quit]
glcx has quit [Quit: Quitte]
[Butch] has quit [Quit: I'm out . . .]
<Ox0dea> VeryBewitching: Is it a stretch, then, for AlphaGo's developers to ascribe to it an "intuitive" model of the game?
uri_ has joined #ruby
ASTP001 has joined #ruby
ASTP001 has quit [Client Quit]
<VeryBewitching> Ox0dea: There is more than one type of game.
<Ox0dea> I'm learning so many things.
<VeryBewitching> :D
<eam> imagine a computer, convinced that its own computations are somehow more than mere computations
GeorgesLeYeti has quit [Quit: Quitte]
<apeiros> ?ot VeryBewitching & eam
<ruby[bot]> VeryBewitching: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<havenwood> eam: I'm familiar with these "humans" you speak of.
<Ox0dea> ^
<VeryBewitching> apeiros: I had digressed, above, sorry :D
tomphp has joined #ruby
<havenwood> <3 Minitest
<adaedra> ^
<VeryBewitching> I prefer RSpec myself.
<eam> is there a gem for implementing a strange loop in ruby
<adaedra> a strange loop...?
<VeryBewitching> eam: if you're creative, you can make hashes pretty hashy.
<Ox0dea> eam: Kernel#loop without a block is pretty strange.
dlitvak has quit [Ping timeout: 240 seconds]
ESpiney_ has quit [Ping timeout: 245 seconds]
pdoherty has joined #ruby
elifoster has joined #ruby
PaulCape_ has joined #ruby
PaulCape_ has quit [Client Quit]
serbalgi has quit [Quit: Ex-Chat]
x77686d has quit [Quit: x77686d]
yfeldblum has joined #ruby
stevemackinnon has joined #ruby
kobain has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirillzh has joined #ruby
mooru has quit [Quit: Textual IRC Client: www.textualapp.com]
kirillzh has quit [Max SendQ exceeded]
n_blownapart has joined #ruby
baweaver has quit [Remote host closed the connection]
e4xit has quit [Quit: e4xit]
treehug88 has quit [Ping timeout: 250 seconds]
<eam> Ox0dea: that really is strange. Why is ruby -e'loop.any?' uninterruptable?
pawnbox has joined #ruby
<eam> some kind of ensure nonsense?
jottr_ has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby
william3 has quit [Remote host closed the connection]
kirillzh has joined #ruby
dlitvak has joined #ruby
coyo has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<Ox0dea> eam: Close! s/ensure/retry/, it seems.
dc4 has joined #ruby
mrsolo_ has quit [Ping timeout: 252 seconds]
<eam> mmmmm
k13nox has joined #ruby
djbkd has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
Gadgetoid has quit [Quit: ZNC - http://znc.in]
Gadgetoid has joined #ruby
ramortegui has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Ox0dea> What's weird is that #any? without a block uses an implicit one like `{ |x| x }`, but not here.
<Rasi> .de
symm- has joined #ruby
roshanavand has quit [Remote host closed the connection]
Yeomra has joined #ruby
crdpink has quit [Quit: q term]
Ebok has joined #ruby
x77686d has joined #ruby
mephistophocles has joined #ruby
blackmesa has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
dlitvak_ has joined #ruby
uri_ has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
malconis has quit [Ping timeout: 240 seconds]
snz has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
atomical has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
crdpink has joined #ruby
n_blownapart has quit []
Musashi007 has quit [Quit: Musashi007]
william3 has quit [Ping timeout: 250 seconds]
solars has quit [Ping timeout: 260 seconds]
polishdub has quit [Quit: Leaving]
ellistaa has quit [Quit: ellistaa]
k13nox has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 240 seconds]
jgt2 has joined #ruby
atomical_ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
cpup has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
rgtk has joined #ruby
jgt1 has quit [Ping timeout: 252 seconds]
ElFerna_ has quit [Ping timeout: 240 seconds]
zenlot1 has joined #ruby
hxegon has quit [Ping timeout: 245 seconds]
atomical_ has joined #ruby
hxegon has joined #ruby
cdg_ has joined #ruby
zenlot has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 252 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
atomical has quit [Ping timeout: 245 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marchelzo has joined #ruby
cdg_ has quit [Ping timeout: 256 seconds]
nofacade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
atomical has joined #ruby
meves has quit [Remote host closed the connection]
Snowy has quit [Read error: Connection reset by peer]
disconnekted has quit [Remote host closed the connection]
atomical_ has quit [Ping timeout: 250 seconds]
Snowy has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
Azure has joined #ruby
dlitvak has joined #ruby
ferr has quit [Ping timeout: 252 seconds]
phredus has quit [Ping timeout: 240 seconds]
zyzioziom has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
phredus has joined #ruby
TomPeed has joined #ruby
baweaver has joined #ruby
ledestin has joined #ruby
dlitvak_ has quit [Ping timeout: 256 seconds]
william3 has joined #ruby
tvw has quit [Read error: Connection reset by peer]
hasitha has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
malconis has joined #ruby
meves has joined #ruby
matp has quit [Remote host closed the connection]
dopamean1 has quit [Ping timeout: 240 seconds]
matp has joined #ruby
pawnbox has joined #ruby
theery has joined #ruby
Rodya_ has quit [Remote host closed the connection]
nunchuck has joined #ruby
ftj has joined #ruby
Rodya_ has joined #ruby
theery has quit [Client Quit]
dsilfen has quit [Read error: Connection reset by peer]
jeregrine has left #ruby [#ruby]
yoongkang has joined #ruby
mrmargolis has quit [Remote host closed the connection]
dsilfen has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 250 seconds]
<vishwa> Getting this weird error msg: failed to allocate memory (NoMemoryError)
<vishwa> Getting this weird error msg: failed to allocate memory (NoMemoryError)
<Ox0dea> Nice!
<vishwa> Dammit keyboard
pdoherty has quit [Ping timeout: 272 seconds]
<vishwa> offending line is f = f.to_i where f is the name of a json file that I've just stripped of the 'json' part
jottr_ has joined #ruby
<vishwa> why would I get this error?
<Ox0dea> That's not the line causing that error.
mary5030_ has joined #ruby
at46_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 252 seconds]
<Ox0dea> >> Array.new(99999999) rescue $!
<ruby[bot]> Ox0dea: # => failed to allocate memory (NoMemoryError) ...check link for more (https://eval.in/512143)
baweaver has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
yoongkang has quit [Ping timeout: 250 seconds]
malconis has quit [Ping timeout: 250 seconds]
<vishwa> Ox0dea: next line I'm passing this f into a method
<Ox0dea> vishwa: Post code.
<vishwa> that's the line calling error
danielwzd has quit [Ping timeout: 260 seconds]
<vishwa> it's very convoluted mate, I can't really simplify it
k13nox has joined #ruby
<vishwa> let me see what I can do
<Ox0dea> Good luck.
symm- has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
<Ox0dea> String#to_i is extremely unlikely to ever result in a NoMemoryError.
<baweaver> OS?
<marchelzo> do most people use pry over irb?
<Ox0dea> Yes.
<baweaver> `free` or `top` in unix-like OSs to see memory usage
antgel has quit [Ping timeout: 245 seconds]
<baweaver> command prompt in windows
dhollinger has quit [Quit: WeeChat 1.4]
<baweaver> I seriously doubt Ruby did it.
agit0 has quit [Ping timeout: 240 seconds]
<baweaver> marchelzo: yeah
yardenbar has quit [Ping timeout: 250 seconds]
<Ox0dea> vishwa: It's probably the case that you're inadvertently growing some collection way faster than you think you are.
KnownSyntax has quit [Ping timeout: 250 seconds]
zyzioziom has joined #ruby
zyzioziom has quit [Client Quit]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
TomyLobo has joined #ruby
<Ox0dea> >> a = [1,2,3]; loop { a.concat a } # vishwa
<ruby[bot]> Ox0dea: # => failed to allocate memory (NoMemoryError) ...check link for more (https://eval.in/512145)
<pizzaops> This feels really inelegant to me: https://gist.github.com/pizzaops/a0bba1d73286abdabc35 — Is there some succinct way of creating an array of all the lines in a file?
<pizzaops> Aside from just doing it on a single line with curly braces.
<Ox0dea> &ri File#each_line @pizzaops
<pizzaops> But wouldn't that be the same `derpy? lines = []; File.read('/some/path').each_line { |line| lines.push(line)};
stannard has quit [Remote host closed the connection]
<Ox0dea> `derpy: All yours.
karapetyan has joined #ruby
mary5030 has joined #ruby
cpup has quit [Ping timeout: 248 seconds]
ferr has joined #ruby
mary5030 has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 240 seconds]
k13nox has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030_ has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
canton7 has joined #ruby
law has joined #ruby
cpup has joined #ruby
<law> hey all, I'm trying to spider through a bunch of nested hashes and create a NEW nested hash that is more easily parsable for later on in my program.
<law> I am... getting bogged down by Hash syntax though
<Ox0dea> pizzaops: #each_line will give you back an Enumerator over all the lines in the file. Assuming you want to do some further transformation, that's basically like having an Array only better.
<Ox0dea> law: 2.3's Hash#dig method might help ease the pain a little.
<pizzaops> Ah right I can skip the actual saving it to a variable step as an array step. That makes sense.
s00pcan has quit [Remote host closed the connection]
reactor16 has joined #ruby
<reactor16> Hi All
karapetyan has quit [Ping timeout: 240 seconds]
decoponio has quit [Quit: Leaving...]
dlitvak_ has joined #ruby
PaulCapestany has joined #ruby
mary5030 has quit [Remote host closed the connection]
jam_ has joined #ruby
mary5030 has joined #ruby
s00pcan has joined #ruby
dlitvak__ has joined #ruby
<ruby[bot]> law: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/803a8aa6d3f1219e61c2
<ruby[bot]> law: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<mg^> pizzaops: IO::readlines
<law> noted, thanks rubybot
<mg^> if you want it as an array, that is
<pizzaops> mg^: thanks!
dlitvak has quit [Ping timeout: 272 seconds]
<law> my target platform is Ruby 2.2.3, unfortunately
dudedudeman has quit [Quit: dudedudeman]
dlitvak has joined #ruby
dsilfen has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
JDiPierro has joined #ruby
jam_ has quit [Ping timeout: 240 seconds]
vishwa has quit [Ping timeout: 240 seconds]
dlitvak_ has quit [Ping timeout: 240 seconds]
<law> I'm trying to kick off the festivities with something like: https://gist.github.com/law/b8990af9bbf437557073
<law> but I'm getting lots of syntax errors, and I can't quite suss out what's wrong with that
<law> "SyntaxError: unexpected =>, expecting keyword_end"
Yeomra has quit [Quit: WeeChat 1.3]
uber has quit [Ping timeout: 240 seconds]
<Ox0dea> pizzaops: In that case, you might even want `IO.read('foo').split(?\n)`.
wanderer has quit [Ping timeout: 252 seconds]
giraffe has quit [Ping timeout: 260 seconds]
<Ox0dea> law: Nix the '>' on Line 2.
dlitvak__ has quit [Ping timeout: 248 seconds]
cpup has quit [Ping timeout: 245 seconds]
<law> sweeeet, that did it. thank you!
cpup has joined #ruby
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ropeney has joined #ruby
pawnbox has joined #ruby
matp has joined #ruby
JDiPierro has quit [Ping timeout: 264 seconds]
phredus has quit [Ping timeout: 240 seconds]
trinaldi has quit [Quit: WeeChat 1.5-dev]
<Ox0dea> Happy to help. :)
phredus has joined #ruby
k13nox has joined #ruby
Uranio has joined #ruby
dsilfen has joined #ruby
kalopsian has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Ping timeout: 250 seconds]
spooq has joined #ruby
wanderer has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
<law> any thoughts on why this is throwing NilClass? https://gist.github.com/law/6819f03fb5b7c1622706
_Tariq has joined #ruby
cajone has left #ruby [#ruby]
phredus has quit [Ping timeout: 252 seconds]
<law> err, "No Method Error", even
dlitvak_ has joined #ruby
chipotle has joined #ruby
uber has joined #ruby
<law> I can reference streamresult['streams'][0]['media_info']['width'] just fine
braincrash has joined #ruby
dc1 has quit [Quit: WeeChat 1.3]
k13nox has quit [Remote host closed the connection]
<baweaver> 0, yes, others?
<baweaver> probably not so much
<baweaver> something be blank
kirun has quit [Remote host closed the connection]
giraffe has joined #ruby
<law> ooooh, excellent point
dlitvak has quit [Ping timeout: 240 seconds]
ready has quit [Ping timeout: 276 seconds]
<law> I *believe* others, can I test for existence of that key/value before I assign it to the new hash?
<Ox0dea> Not from within the Hash being constructed, no.
al2o3-cr has joined #ruby
mikeiniowa has joined #ruby
Rodya_ has quit [Remote host closed the connection]
phredus_ has joined #ruby
<baweaver> also why all the string interpolation?
volty has joined #ruby
<baweaver> stream['media_info'] && stream['media_info']['height']
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aaronm has left #ruby [#ruby]
cajone has joined #ruby
jcoe has quit [Ping timeout: 240 seconds]
radgeRayden has joined #ruby
ElFerna_ has joined #ruby
CloCkWeRX has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
skingsbu has quit [Ping timeout: 250 seconds]
TomyLobo has quit [Ping timeout: 245 seconds]
krobzaur_ has quit [Ping timeout: 240 seconds]
<law> because I don't know a better way to do it :-(
IrishGringo has joined #ruby
uri_ has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
antgel has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
<law> I'm certainly open to a better way to do it!
dlitvak__ has joined #ruby
reactor16 has quit [Ping timeout: 264 seconds]
hobodave has quit [Ping timeout: 250 seconds]