havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.5, 2.4.5: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
orbyt_ has joined #ruby
Swyper has quit [Remote host closed the connection]
enix has joined #ruby
enix has left #ruby [#ruby]
AJA4351 has joined #ruby
Swyper has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
gheegh has joined #ruby
<gheegh> hey all, anyone have a suggestion as to how to "memoize" a dynamic singleton class variable?
Swyper has quit [Ping timeout: 252 seconds]
<gheegh> I've got a folder that has a bunch of files in it that i'm converting into class methods on a class. I just realized that one of hte problems is that its reloading them from disk every time it's called, versus just 1 time. I need to "memoize" them.. but i'm not sure exactly how to do that. Here's a gist.. imagine the files as something that i'm turning into Arrays..
<gheegh> anyone?
Devalo has joined #ruby
minimal_life has joined #ruby
rindolf has quit [Ping timeout: 246 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 245 seconds]
kshitij has joined #ruby
Swyper has joined #ruby
zachk has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cjkinni has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
<havenwood> gheegh: So you're using the Names class as a singleton?
blaguvest has quit [Ping timeout: 245 seconds]
luminousnine- has joined #ruby
luminousnine- has quit [Changing host]
luminousnine- has joined #ruby
<havenwood> gheegh: Have you looked at Ruby's Singleton module?
<gheegh> yes
<gheegh> so, this works.. its just that it seems to reload the method everytime it's called
<havenwood> gheegh: Usually to memoize you do something along the lines of: @remembered ||= do_the_work
<gheegh> right
<gheegh> that doesn't work in the def from what I can tell
orbyt_ has joined #ruby
<gheegh> the problem is the name is dynamic
<gheegh> so setting @#{dyanmic_method_name} ||= do_the_work doesn't seem to work
luminousnine has quit [Ping timeout: 252 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
Swyper has quit [Remote host closed the connection]
kapil____ has quit [Quit: Connection closed for inactivity]
AJA4350 has quit [Remote host closed the connection]
Swyper has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teclator has quit [Ping timeout: 246 seconds]
teclator has joined #ruby
orbyt_ has joined #ruby
minimal_life has quit [Quit: I am functioning within established parameters.]
<al2o3-cr> hey, havenwood
Azure has joined #ruby
<al2o3-cr> check coerion
<al2o3-cr> &>> class Hash def coerce(x) [self.values.sum, x] end end; def add(*args) args.sum end; add **{a: 12, b: 12, c: 18}
<rubydoc> # => 42 (https://carc.in/#/r/6j9l)
<al2o3-cr> *coercion
gnufied has quit [Remote host closed the connection]
rafadc has quit [Ping timeout: 246 seconds]
Nicmavr has quit [Quit: ZNC 1.7.0 - https://znc.in]
Nicmavr has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
jrafanie has joined #ruby
gix- has quit [Ping timeout: 245 seconds]
jrafanie has quit [Read error: Connection reset by peer]
arekushi has quit [Quit: Gateway shutdown]
jrafanie has joined #ruby
rafadc has joined #ruby
uplime is now known as darth_uplime
x0f_ has quit [Ping timeout: 250 seconds]
code_zombie has quit [Quit: Leaving]
kshitij has quit [Quit: Connection closed for inactivity]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
jrafanie has quit [Ping timeout: 252 seconds]
mangold has joined #ruby
alexeev has quit [Remote host closed the connection]
isakovic has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
apparition has joined #ruby
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
tsm has left #ruby [#ruby]
tdy has joined #ruby
esrse has joined #ruby
<havenwood> al2o3-cr: yikes!
ur5us has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
bjpenn has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
sauvin has joined #ruby
darth_uplime is now known as sherlime
Devalo has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
apparition has quit [Quit: Bye]
segy has quit [Ping timeout: 268 seconds]
alexeev has joined #ruby
segy has joined #ruby
x0f has joined #ruby
lytol has quit [Remote host closed the connection]
kapil____ has joined #ruby
Swyper has joined #ruby
cd has quit [Quit: cd]
t0x has quit [Quit: Connection closed for inactivity]
Swyper has quit [Ping timeout: 244 seconds]
isakovic has quit [Quit: Connection closed for inactivity]
Devalo has joined #ruby
dviola has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
t0x has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
conta has joined #ruby
tpanarch1st has joined #ruby
Inline has quit [Quit: Leaving]
Rudd0 has joined #ruby
bjpenn has joined #ruby
Devalo has quit [Ping timeout: 272 seconds]
za1b1tsu has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
reber has joined #ruby
bjpenn has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
waheedi has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
Swyper has quit [Ping timeout: 245 seconds]
clemens3 has joined #ruby
renich has quit [Remote host closed the connection]
renich has joined #ruby
renich has quit [Remote host closed the connection]
imadper has joined #ruby
imadper has quit [Remote host closed the connection]
imadper has joined #ruby
renich has joined #ruby
renich has quit [Remote host closed the connection]
Dbugger has joined #ruby
imadper has quit [Remote host closed the connection]
tau has joined #ruby
andikr has joined #ruby
mikecmpbll has joined #ruby
bambanx has quit [Quit: Leaving]
Ai9zO5AP has joined #ruby
schleppel has joined #ruby
rindolf has joined #ruby
_joes_ has joined #ruby
aufi_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
TomyWork has joined #ruby
lxsameer has joined #ruby
laaron has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
clemens3 has quit [Ping timeout: 252 seconds]
imadper has joined #ruby
foxxx0 has quit [Quit: foxxx0]
Dbugger has quit [Ping timeout: 252 seconds]
reber has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_joes_ has quit [Ping timeout: 272 seconds]
foxxx0 has joined #ruby
Flyingdog has joined #ruby
D9 has quit [Ping timeout: 250 seconds]
grr12314 has joined #ruby
_joes_ has joined #ruby
waheedi has quit [Quit: waheedi]
Swyper has joined #ruby
claudiuinberlin has joined #ruby
mikecmpbll has joined #ruby
Swyper has quit [Ping timeout: 245 seconds]
_joes_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
imadper is now known as iMadper|Sleepy
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
deathwishdave has joined #ruby
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
tau has quit [Remote host closed the connection]
_joes_ has quit [Ping timeout: 268 seconds]
alem0lars has joined #ruby
esrse has quit [Ping timeout: 268 seconds]
phage has quit [Quit: ZNC 1.6.5 - http://znc.in]
RougeR has joined #ruby
<RougeR> does lantins come here at all?
<RougeR> also anyone else got experience with resque, ive got a fair bit and am trying to implement some plugin logic
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 258 seconds]
vondruch_ is now known as vondruch
alexeev has quit [Remote host closed the connection]
alexeev has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has joined #ruby
AJA4350 has joined #ruby
Swyper has joined #ruby
waheedi has joined #ruby
Swyper has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
<zenspider> gheegh: there's pretty simple ways around that... tho looking at your code, I'd start by pulling the File.read out of the define_method. Use the power of the closure.
Swyper has quit [Ping timeout: 252 seconds]
alem0lars has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Devalo has joined #ruby
alem0lars has joined #ruby
tdy has quit [Ping timeout: 252 seconds]
Devalo has quit [Ping timeout: 246 seconds]
dminuoso has joined #ruby
_joes_ has joined #ruby
segy has quit [Ping timeout: 250 seconds]
<dminuoso> Is there a canonical way to feed build flags into native gems?
stooj has quit [Read error: Connection reset by peer]
stooj has joined #ruby
segy has joined #ruby
alexeev_ has joined #ruby
<dminuoso> Specifically I see some mention of `gem install ... -- --build-flags [options]` but the behavior of those build flags is not clearly documented.
alexeev has quit [Ping timeout: 245 seconds]
_joes_ has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
mangold has joined #ruby
AJA4350 has quit [Quit: AJA4350]
lupine has quit [Ping timeout: 250 seconds]
dollyrocker has joined #ruby
dollyrocker has left #ruby [#ruby]
ldnunes has joined #ruby
lupine has joined #ruby
alexeev_ has quit [Remote host closed the connection]
alexeev has joined #ruby
stryek has joined #ruby
reber has joined #ruby
alexeev has quit [Remote host closed the connection]
raddazong has quit [Quit: leaving]
madhatter has joined #ruby
garyserj2 has joined #ruby
garyserj2 has quit [Client Quit]
garyserj2 has joined #ruby
garyserj has quit [Disconnected by services]
garyserj2 is now known as garyserj
m27frogy has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
tpanarch1st has quit [Ping timeout: 246 seconds]
m27frogy has joined #ruby
clemens3 has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexeev has joined #ruby
alexeev has quit [Remote host closed the connection]
r3m has quit [Quit: WeeChat 2.5-dev]
r3m has joined #ruby
conta1 has joined #ruby
iMadper|Sleepy has quit [Read error: Connection reset by peer]
mangold has quit [Quit: This computer has gone to sleep]
deathwishdave has joined #ruby
ams__ has joined #ruby
m27frogy has quit [Ping timeout: 250 seconds]
za1b1tsu has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
_joes_ has joined #ruby
conta1 has quit [Ping timeout: 245 seconds]
deathwishdave has quit [Read error: Connection reset by peer]
garyserj has quit [Ping timeout: 272 seconds]
jrafanie has joined #ruby
<adam12> dminuoso: I _think_ it's related to how their extconf.rb file is configured. Options available in --build-flags are related to what enable_config methods are called in extconf.rb.
<adam12> dminuoso: So it's likely up to the library author to provide access to specific build flags.
<adam12> dminuoso: If this is what I think you're referring to, anyways.
lxsameer has quit [Ping timeout: 245 seconds]
jrafanie has quit [Ping timeout: 244 seconds]
<dminuoso> adam12: Gotcha, I was already on that track patching a rather silly written library ruby-oci8 which simply fails to build on nix because the author thought it would be nice to deprecate and remove any dir_config controllable --with-oracle-instantclient flags..
<adam12> dminuoso: Story of my life, since /usr/local/lib isn't in LD_LIBRARY_PATH on FreeBSD.
<dminuoso> adam12: Ah that blows. Same library?
<dminuoso> At least LD_LIBRARY_PATH is patchable with no effort. On nix I dont even have /sbin and some packages have hardcoded paths for that..
<dminuoso> Not that Im trying to compare who is worse off..
<adam12> dminuoso: Nope. I actually don't run into missing flags _too_ often, thankfully. Just some libraries (like sqlite) need a bit of help to compile.
za1b1tsu has quit [Remote host closed the connection]
griffindy has joined #ruby
jrafanie has joined #ruby
vondruch has quit [Ping timeout: 244 seconds]
Swyper has joined #ruby
renich has joined #ruby
grr12314 has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
gnufied has joined #ruby
segy has quit [Ping timeout: 255 seconds]
segy has joined #ruby
mangold has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.4]
Dbugger has joined #ruby
bogn has joined #ruby
alexeev has joined #ruby
VladGh_ has quit [Read error: Connection reset by peer]
VladGh has joined #ruby
waheedi has quit [Quit: waheedi]
Devalo has joined #ruby
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
hightower2 has quit [Ping timeout: 250 seconds]
dar123 has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
iNs_ has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
TvL2386_ has joined #ruby
_joes_ has quit [Ping timeout: 244 seconds]
iNs has joined #ruby
TvL2386 has quit [Ping timeout: 255 seconds]
Swyper has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.4]
Swyper has quit [Ping timeout: 245 seconds]
renich has quit [Ping timeout: 272 seconds]
al2o3-cr has joined #ruby
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
tdy has joined #ruby
bogn has quit [Quit: Konversation terminated!]
mistergibson has joined #ruby
bogn has joined #ruby
<mistergibson> Question: anyone have docs on getting unicorn to listen to multiple IP addresses?
bogn has quit [Client Quit]
bogn has joined #ruby
bogn has quit [Client Quit]
bogn has joined #ruby
bogn has quit [Client Quit]
Swyper has joined #ruby
bogn has joined #ruby
_joes_ has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
polishdub has joined #ruby
grilix has joined #ruby
<c-c> mistergibson: a http-server?
<mistergibson> c-c: yeah, it is a replacement (I'm thinking) for puma
<mistergibson> c-c: I know how to make it do multiple ports on an IP, but I'd rather do A port on Many IPs
<c-c> it sounds like "wha, mu-mu-multiple IP's?!" to me
<c-c> how can your machine have multiple IP's
<c-c> bbl
<t0x> 2 network cards
naught-fowl has joined #ruby
<t0x> or maybe he wants load-balancing across a multiple of machines
beefjoe has joined #ruby
<havenwood> mistergibson: you should be able to reverse proxy to the Unicorn socket from whatever you'd like
<mistergibson> havenwood: yes, the key though is aligning the workers and IPs to proxy in the first place
<mistergibson> I like HAProxy for that
<mistergibson> or Nginx
<mistergibson> I'll dork with unicorn configurator and see if I can bump into a solution'
<alexeev> i think nginx would great resolve your problem
<alexeev> but set host to 0.0.0.0 should also resolve the problem, isn't it?
Inline has joined #ruby
hightower2 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
aufi_ has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
alexeev has quit [Remote host closed the connection]
Swyper has joined #ruby
alexeev has joined #ruby
alexeev_ has joined #ruby
rippa has joined #ruby
alexeev has quit [Read error: Connection reset by peer]
renich has joined #ruby
spiette has quit [Quit: ZNC 1.7.2 - https://znc.in]
spiette has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexeev_ has quit [Remote host closed the connection]
clemens3 has quit [Ping timeout: 245 seconds]
madhatter has quit [Remote host closed the connection]
madhatter has joined #ruby
ferr has quit [Quit: WeeChat 2.4]
<RougeR> i might be being daft here
<RougeR> but im a bit stuck
<RougeR> how do i access a 'private' instance method when inside a class singleton method
<havenwood> RougeR: from within the instance, or with instance_variable_get
<havenwood> RougeR: have an example snippet you can extract and gist?
<RougeR> havenwood, not really atm. but you might have just answered by question
<RougeR> i could mock soemthing up if this doesnt work
<RougeR> hang on
<RougeR> aghh im in a catch 22
<RougeR> okay yeah
<RougeR> let me mock it up and show you
skryking has joined #ruby
i1nfusion has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
i1nfusion has joined #ruby
reber has quit [Remote host closed the connection]
<RougeR> havenwood,
<RougeR> i think this is accurate
<RougeR> so i want to call a private instance method from inside a class method
<RougeR> cant instantiate new instance of the class from that method either
<RougeR> unless i use metaprogramming which if i can avoid it for something trivial id rather not
<RougeR> if i have to refactor the class, its possible or i can add another way
<RougeR> but i think there is another way
Swyper has joined #ruby
<phaul> does update_task depend on any instance_state? Does it read instance variables?
<phaul> if yes, then where would that state come from? if not, then why is it an instance method?
bjpenn has joined #ruby
orbyt_ has joined #ruby
<phaul> it's a bit like calling a method without a receiver. I guess the answer is no. Not possible
<RougeR> it is possible haha
<RougeR> just found a way!
<RougeR> self.allocate.send(:task_update)
<RougeR> lol
<phaul> and what do you think self.allocate is
<RougeR> this callback method gets hit when a task fails properly and can no longer be retried
<RougeR> phaul, creates a new instance of the class without calling initialize
<RougeR> which i cant call, because its doing other things
<RougeR> (i did not write any of this code before, im merely working on it)
<RougeR> so it would be task_update('failed') for example
<RougeR> everywhere else its called its from an instance method
<RougeR> the calback method has to be a class method due to the third party lib
<RougeR> does that make sens?
orbyt_ has quit [Ping timeout: 272 seconds]
<phaul> 163339 RougeR | cant instantiate new instance of the class from that method either
* phaul shrugs
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
<RougeR> phaul, hm?
<phaul> important thing is you got it working. let's move on
<RougeR> yeah it is, pleased with it.
<RougeR> sure itll get flagged in pr
<RougeR> im having to use instance_variable_set as well :l
<RougeR> thanks for your help, didnt mean to come off snappy if i did.
lytol has joined #ruby
Brainium has joined #ruby
_joes_ has quit [Ping timeout: 245 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
KeyJoo has joined #ruby
andikr has quit [Remote host closed the connection]
orbyt_ has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
ellcs has quit [Ping timeout: 250 seconds]
hanmac1 has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
renich has quit [Ping timeout: 252 seconds]
beefjoe has quit [Remote host closed the connection]
tau has joined #ruby
hanmac has joined #ruby
renich has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
bjpenn has quit [Quit: leaving]
Flyingdog is now known as D9
i1nfusion has quit [Remote host closed the connection]
conta1 has joined #ruby
lucasb has joined #ruby
i1nfusion has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t0x has quit [Quit: Connection closed for inactivity]
renich has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
bogn has quit [Quit: Konversation terminated!]
xco has joined #ruby
<xco> hello, how do i get an array like this https://gist.github.com/xcobar/35d0c983a68dd4b849744615dd7a5dfa
<phaul> &ri zip, xco
<rubydoc> xco: I found 3 entries matching method zip. Use &list zip if you would like to see a list
<phaul> bah
<phaul> xco, see the link that should give you an idea, sorry for the bots response
<xco> no worries
<xco> perfect! exactly what i was looking for!!! thank you :)
KeyJoo has quit [Remote host closed the connection]
gix has joined #ruby
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
RougeR has quit [Ping timeout: 246 seconds]
alexeev has joined #ruby
KeyJoo has joined #ruby
Beams has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
i1nfusion has quit [Remote host closed the connection]
alexeev has quit [Ping timeout: 252 seconds]
i1nfusion has joined #ruby
vovs03 has joined #ruby
mistergibson has quit [Quit: Leaving]
Devalo has joined #ruby
mikecmpbll has joined #ruby
waheedi has joined #ruby
Beams has quit [Quit: .]
kyrylo has joined #ruby
ruby-lang062 has joined #ruby
nowhere_man has joined #ruby
<ruby-lang062> Hello people. I am working on a Sinatra project and I am using gem 'zip' and I am using this method: Zip::OutputStream.write_buffer It works as expected in my machine but when I run the container I have generated, it complains about uninitialized constant Zip::OutputStream
<ruby-lang062> In my code I have the `require 'zip'` and it runs fine on my machine. In the Dockerfile I have installer zlib and also zlibdev but they both are installed already.
<ruby-lang062> I am using ruby 2.3.8
RougeR has joined #ruby
RougeR is now known as Guest51022
Swyper has joined #ruby
<xco> is there a way i can convert a string like this "2015-07-11T09:23:00+01:00" to a Ruby Time object?
vovs03 has quit [Quit: vovs03]
<al2o3-cr> xco: Time.iso8601 "2015-07-11T09:23:00+01:00"
<al2o3-cr> xco: you have to require 'time' to use that method.
<xco> al2o3-cr: :) Thanks :)
<al2o3-cr> np
alem0lars has quit [Ping timeout: 250 seconds]
Swyper has quit [Ping timeout: 272 seconds]
tdy has quit [Ping timeout: 244 seconds]
Inline has quit [Quit: Leaving]
<xco> al2o3-cr: if i do Time.iso8601(some_later_time) - Time.iso8601(some_earlier_time) i get some number (which i think is in seconds) does this subraction take into account timezones?
Guest51022 has quit [Ping timeout: 272 seconds]
<al2o3-cr> hmm, not sure.
<xco> ok :)
<al2o3-cr> xco: i don't think it does, tbh.
<al2o3-cr> wait, yes it does.
<xco> i think to be sure i can convert both times to GMT before i do the substraction, that way i get a real value
kapil____ has quit [Quit: Connection closed for inactivity]
renich has joined #ruby
waheedi has quit [Quit: waheedi]
<xco> you’re right, it does :) calculated manually :)
<al2o3-cr> :)
<xco> dealing with time is very tricky
<al2o3-cr> it is.
<xco> espcially if different timezones are concerne
<xco> d
<havenwood> i don't think i believe in time
i1nfusion has quit [Remote host closed the connection]
<xco> me neither
<al2o3-cr> me three
reber has joined #ruby
Brainium has quit [Quit: Konversation terminated!]
<xco> sometimes i think about time and my mind gets messed up
i1nfusion has joined #ruby
agent_white has joined #ruby
englishm has quit [Quit: Updating details, brb]
cd has joined #ruby
i1nfusion has quit [Remote host closed the connection]
Swyper has joined #ruby
englishm has joined #ruby
englishm has quit [Excess Flood]
clemens3 has joined #ruby
englishm has joined #ruby
i1nfusion has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> ruby-lang062: Are they the same version? Zip::VERSION
<havenwood> ruby-lang062: `require 'zip/output_stream'` has been in `zip.rb` for 6 years
<havenwood> ruby-lang062: does it work if you explicitly?: require 'zip/output_stream'
<havenwood> ruby-lang062: if you `gem open rubyzip` and take a look at `lib/zip.rb`, it has the require as expected?
<havenwood> ruby-lang062: or I guess a little easier to check the file with: gem which zip
<havenwood> cat "$(gem which zip)" | grep output_stream
gnufied has quit [Remote host closed the connection]
ruby-lang062 has quit [Quit: Page closed]
xco has quit [Quit: xco]
tdy has joined #ruby
gnufied has joined #ruby
xco has joined #ruby
claudiuinberlin has joined #ruby
conta1 has quit [Remote host closed the connection]
SeepingN has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
wald0 has joined #ruby
renich has quit [Ping timeout: 244 seconds]
renich has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xco> i have an array like this [a, b, c, d]
<xco> is there a way i can iterate through it and return a + b, c + d
<xco> ?
<xco> Array.each_cons(2) will do i think
teclator_ has joined #ruby
teclator_ has quit [Client Quit]
<xco> nope, not workin
<adam12> each_slice(2) maybe
KeyJoo has quit [Quit: KeyJoo]
krawchyk has joined #ruby
<xco> yup! got it :D
<xco> thanks
yokel has quit [Remote host closed the connection]
t0x has joined #ruby
yokel has joined #ruby
<havenwood> <3 Ruby
<havenwood> each_slice(2).map(&:sum)
jj9988 has joined #ruby
jj9988 has quit [Client Quit]
ldnunes has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
graft has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 252 seconds]
i1nfusion has quit [Remote host closed the connection]
Swyper has joined #ruby
i1nfusion has joined #ruby
ldnunes has joined #ruby
xco has quit [Quit: xco]
evdubs has quit [Remote host closed the connection]
xco has joined #ruby
graft has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
Dbugger has quit [Remote host closed the connection]
emilford has joined #ruby
jcalla has quit [Remote host closed the connection]
grilix has quit [Ping timeout: 268 seconds]
grilix has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Ai9zO5AP has quit [Ping timeout: 268 seconds]
Ai9zO5AP has joined #ruby
ldnunes has quit [Quit: Leaving]
xco has quit [Quit: xco]
Ai9zO5AP has quit [Ping timeout: 245 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
hightower2 has quit [Ping timeout: 272 seconds]
hightower2 has joined #ruby
reber has quit [Read error: Connection reset by peer]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
AJA4350 has joined #ruby
grilix has quit [Ping timeout: 245 seconds]
hightower2 has quit [Ping timeout: 272 seconds]
tau has quit [Quit: god! why didnt i do enough commits]
kyrylo has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower2 has joined #ruby
polishdub has quit [Remote host closed the connection]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j6p has left #ruby [#ruby]
hightower2 has quit [Ping timeout: 252 seconds]
krawchyk has quit [Ping timeout: 252 seconds]
hays has quit [Quit: No Ping reply in 180 seconds.]
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
hays has joined #ruby
hightower2 has joined #ruby
renich_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heftig has joined #ruby
renich has quit [Ping timeout: 268 seconds]
heftig has quit [Changing host]
heftig has joined #ruby
heftig has left #ruby [#ruby]
Brainium has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
* zenspider loves each_cons and each_slice soooo much
naught-fowl has quit [Quit: This computer has gone to sleep]
Junaos has quit [Changing host]
Junaos has joined #ruby
xco has joined #ruby
hightower2 has quit [Ping timeout: 268 seconds]
hightower2 has joined #ruby
ellcs has joined #ruby
xco has quit [Quit: xco]
ams__ has joined #ruby
ericboehs has quit [Read error: Connection reset by peer]
ericboehs has joined #ruby
clemens3 has quit [Ping timeout: 272 seconds]
clemens3_ has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
hightower2 has quit [Changing host]
hightower2 has joined #ruby
rindolf has quit [Ping timeout: 246 seconds]
i1nfusion has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
i1nfusion has joined #ruby
gix has quit [Ping timeout: 245 seconds]
hightower2 has quit [Quit: Leaving]
tdy has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
xco has joined #ruby
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
jottr has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tpanarch1st has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
naught-fowl has joined #ruby
Swyper has quit [Remote host closed the connection]
bmurt has joined #ruby
naught-fowl has quit [Client Quit]
AJA4350 has quit [Remote host closed the connection]
jottr has joined #ruby
naught-fowl has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
Swyper has joined #ruby
naught-fowl has quit [Quit: This computer has gone to sleep]
Brainium has quit [Ping timeout: 252 seconds]
naught-fowl has joined #ruby