baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
tcopeland has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: WeeChat 2.0.1]
anjen has quit [Quit: anjen]
marxarelli|afk is now known as marxarelli
hahuang65 has joined #ruby
nchambers is now known as uplime
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
gnufied has quit [Remote host closed the connection]
cpruitt has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
phaul has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
krawchyk has quit [Quit: krawchyk]
cpruitt has joined #ruby
c0ncealed has quit [Remote host closed the connection]
sylario has quit [Quit: Connection closed for inactivity]
c0ncealed has joined #ruby
pastorin_ has quit [Remote host closed the connection]
Toggi3 has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
yonahw_ has quit [Read error: Connection reset by peer]
yonahw_ has joined #ruby
mtkd has quit []
nowhere_man has joined #ruby
rgiscard has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
cschneid has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
achen has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
Guest60542 has quit [Ping timeout: 240 seconds]
rgiscard has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
cschneid has joined #ruby
xfbs has quit []
achen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
chat has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
chat is now known as Guest84732
cdg has joined #ruby
cdg_ has quit [Ping timeout: 245 seconds]
cdg has quit [Ping timeout: 240 seconds]
sanscoeur has quit [Remote host closed the connection]
jcarl43 has quit [Quit: WeeChat 2.0.1]
arescorpio has joined #ruby
orbyt_ has joined #ruby
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
fyrril has joined #ruby
Bosma has joined #ruby
howdoi has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cliq has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
drewmcmillan has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
reinh1 has quit [Ping timeout: 255 seconds]
John_Ivan has quit [Remote host closed the connection]
achen has joined #ruby
achen has quit [Client Quit]
achen has joined #ruby
dviola has joined #ruby
Puffball has quit [Ping timeout: 260 seconds]
achen has quit [Client Quit]
Puffball has joined #ruby
achen has joined #ruby
achen has quit [Client Quit]
achen has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
achen has quit [Client Quit]
achen has joined #ruby
bkxd has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
chouhoul_ has joined #ruby
alfiemax has joined #ruby
chouhou__ has joined #ruby
SeepingN_ has quit [Quit: The system is going down for reboot NOW!]
Tempesta has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 256 seconds]
chouho___ has joined #ruby
Tempesta has joined #ruby
Tempesta has joined #ruby
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
sanscoeur has joined #ruby
chouhoul_ has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 245 seconds]
chouhou__ has quit [Ping timeout: 252 seconds]
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 240 seconds]
chouh____ has quit [Ping timeout: 240 seconds]
chouho___ has joined #ruby
chouh____ has joined #ruby
sanscoeur has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 248 seconds]
gizmore|2 has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 265 seconds]
cpruitt has quit [Remote host closed the connection]
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 260 seconds]
chouh____ has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouhoul_ has joined #ruby
scrptktty_ has joined #ruby
chouhou__ has quit [Ping timeout: 248 seconds]
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 248 seconds]
jeffreylevesque has joined #ruby
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 265 seconds]
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
kapil___ has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
goatish has quit [Quit: Hibernating]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Quit: WeeChat 2.0.1]
alfiemax has joined #ruby
chouhou__ has joined #ruby
hahuang65 has joined #ruby
chouho___ has quit [Ping timeout: 256 seconds]
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 260 seconds]
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Client Quit]
<baweaver> !connection chouhoulis
segy has quit [Ping timeout: 260 seconds]
chouhou__ was kicked from #ruby by ruby[bot] [repeated join/part detected]
chouhoul_ was kicked from #ruby by ruby[bot] [repeated join/part detected]
chouho___ was kicked from #ruby by ruby[bot] [repeated join/part detected]
chouh____ was kicked from #ruby by ruby[bot] [repeated join/part detected]
chouhoul_ has quit [Ping timeout: 256 seconds]
xcesariox has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
chouhou__ has quit [Ping timeout: 260 seconds]
chouho___ has quit [Ping timeout: 252 seconds]
chouh____ has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
segy has joined #ruby
xcesariox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Barrt has quit [Quit: Leaving]
logoscoder has joined #ruby
cpruitt has joined #ruby
achen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
parsnip0 has left #ruby [#ruby]
keithy has joined #ruby
<keithy> hi
<keithy> hello I am looking for the best way to run remote ssh commands , and collect the output, possibly as rak tasks
<keithy> rake*
<keithy> so far I have found net::ssh::shell
<keithy> does anyone have any other suggestions?
<keithy> I havent quite got the hang of net::ssh::shell
cpruitt has quit [Ping timeout: 248 seconds]
pastorinni has joined #ruby
<keithy> I tried an on_output callback but it goes into an endless loop
dinfuehr has quit [Ping timeout: 256 seconds]
achen has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has joined #ruby
hndk has quit [Ping timeout: 256 seconds]
starseed0000 has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
sleetdrop has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Client Quit]
AndBobsYourUncle has joined #ruby
sleetdrop has quit [Read error: Connection reset by peer]
sleetdrop has joined #ruby
xcesariox has joined #ruby
sleetdrop has quit [Client Quit]
xcesariox has quit [Client Quit]
bkxd has quit [Ping timeout: 268 seconds]
<keithy> whatever happened to documentation!
houhoulis has joined #ruby
gizmore has joined #ruby
hahuang65 has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
<keithy> its beyond my ken
<keithy> if anyone can understand how to collect output from net-ssh-shell and go onto the next command
<keithy> ahh
<keithy> putting on_output ruins something
sleetdrop has joined #ruby
arescorpio has quit [Quit: Leaving.]
hahuang65 has quit [Quit: WeeChat 2.0.1]
<keithy> ahhh
hahuang65 has joined #ruby
xcesariox has joined #ruby
<keithy> the shell stays logged in! until you do an exit.
<keithy> im going to use bash
kn-928 has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
<keithy> ill ask again about this in the morning
AJA4350 has quit [Quit: AJA4350]
<Iambchop> (I haven't used sshkit; I have used net-ssh)
<keithy> now i have heard of capistrano!
karapetyan has quit [Remote host closed the connection]
<keithy> hmm
<keithy> something was vs capistrano...
<keithy> mina!
<Iambchop> I've also seen, but not used: https://github.com/duke-automation/net-ssh-telnet
<keithy> ah
<keithy> using net-ssh-shell I am strucggling to see how a command execution finishes
cschneid has joined #ruby
<keithy> and hands over to the next comand
<keithy> ive got a callback to grab the output (cant understand why a simple usecase is not documented
bkxd has joined #ruby
<keithy> capistrano looks like it migh be good for my usecase
<Iambchop> The SyncShell service allows you to execute commands on the shell and block until they finish https://net-ssh.github.io/ssh/v1/chapter-5.html#s4
sleetdrop has quit [Remote host closed the connection]
<Iambchop> (oh that's an old version docs though)
<Iambchop> if you have a little use case to demonstrate, you can post a gist here later
bkxd has quit [Ping timeout: 268 seconds]
<keithy> hmm
<keithy> not sure about capistrano
DTZUZU has quit [Ping timeout: 260 seconds]
govg has joined #ruby
<Iambchop> updated docs: http://net-ssh.github.io/net-ssh/Net/SSH/Connection/Session.html#method-i-exec-21 exec!() Same as exec, except this will block until the command finishes.
dessm has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
cpruitt has joined #ruby
achen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dessm> Good evening. I've been wondering about the following: Often times when dealing with external APIs I'll get back some rather large JSON payload which I then parse into a Ruby hash. Usuallly I need specific parts of that hash so I might make a bunch of new hashes like: random_hash = payload[:some_key][:another_key] etc. Now the problem that I run into is that I need to transform that data. But when I modify the new hashes random_hash
<dessm> changes as well. I'd like to keep the original payload around without modifying it, so I usually marshal dump/load the new hashes before modifying them. This seems absurdly kludgy and leads me to believe that I'm somehow approaching the problem in a wholly un-Rubyesque way. What is the Ruby way to handle this situation?
<keithy> you know what I think bash is so much simpler
cdg has quit [Remote host closed the connection]
<keithy> put together a bash script using “sub” to roll several commands into one. script A, checks out code with git, checks out deploy bash scripts , rsyncs them up to the server and then ou can run the scripts there!
lupine has quit [Quit: No Ping reply in 180 seconds.]
cpruitt has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
qyliss has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
aspiers has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
lupine has joined #ruby
sanscoeur has joined #ruby
darkhanb has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qyliss has joined #ruby
<keithy> thx
<Iambchop> dessm: can you post a simple gist with sample pre/post data?
aspiers has joined #ruby
pastorinni has quit [Remote host closed the connection]
achen has joined #ruby
Radar has quit [Ping timeout: 248 seconds]
cpruitt has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
Radar has joined #ruby
Radar is now known as Guest86084
xcesariox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has quit [Ping timeout: 252 seconds]
cschneid has quit [Remote host closed the connection]
kies has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
DTZUZU has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
memo1 has joined #ruby
<memo1> hi, how i set irb configs, like identation on loops
cdg has joined #ruby
dessm has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 276 seconds]
mrBen2k2k2k_ has quit [Remote host closed the connection]
mrBen2k2k2k has quit [Read error: Connection reset by peer]
guacamole has quit [Client Quit]
cschneid has joined #ruby
cpruitt has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
hanmac has quit [Ping timeout: 240 seconds]
cpruitt has quit [Ping timeout: 240 seconds]
mrBen2k2k2k has joined #ruby
alfiemax has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SirFunk has quit [Quit: ZNC - http://znc.in]
gix- has joined #ruby
gix has quit [Disconnected by services]
achen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 265 seconds]
hanmac has joined #ruby
SirFunk has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
cpruitt has joined #ruby
ramfjord has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
iMadper` has joined #ruby
iMadper has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 268 seconds]
cpruitt has quit [Ping timeout: 256 seconds]
faces has quit [Ping timeout: 245 seconds]
moei has quit [Quit: Leaving...]
bkxd has joined #ruby
darkhanb has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
meadmoon has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
cschneid has quit [Remote host closed the connection]
SirFunk has quit [Quit: ZNC - http://znc.in]
darkhanb has joined #ruby
kies has joined #ruby
houhoulis has quit [Remote host closed the connection]
cpruitt has joined #ruby
rippa has joined #ruby
<memo1> Iambchop: thank you
scrptktty_ has quit [Quit: Connection closed for inactivity]
cpruitt has quit [Ping timeout: 276 seconds]
SirFunk has joined #ruby
meadmoon has quit [Quit: ZZZzzz…]
anisha has joined #ruby
uptime has quit [Ping timeout: 252 seconds]
cpruitt has joined #ruby
troys has quit [Quit: Bye]
uptime has joined #ruby
cpruitt has quit [Ping timeout: 248 seconds]
schneider has quit [Ping timeout: 256 seconds]
iMadper` has quit [Remote host closed the connection]
iMadper` has joined #ruby
jenrzzz has joined #ruby
sidx64 has joined #ruby
strika has joined #ruby
alex`` has joined #ruby
bkxd has joined #ruby
cpruitt has joined #ruby
xcesariox has joined #ruby
Liothen has quit [Ping timeout: 268 seconds]
bmn has quit [Ping timeout: 268 seconds]
cpruitt has quit [Ping timeout: 240 seconds]
russt has quit [Ping timeout: 268 seconds]
sanscoeur has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenichi has joined #ruby
Liothen has joined #ruby
Liothen has joined #ruby
russt has joined #ruby
bmn has joined #ruby
sanscoeur has quit [Ping timeout: 240 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
memo1 has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 268 seconds]
ledestin has joined #ruby
xt233 has joined #ruby
xt233 has left #ruby [#ruby]
<shalok> How can I capture by value instead of reference?: https://ideone.com/7Dycf0
<shalok> I want each thread to print the value of x at the time I defined the block.
<havenwood> shalok: All the threads are sleeping until well after the iteration is over.
<shalok> havenwood: Yes, I deliberately did this to illustrate the problem I'm trying to solve
wojnar has quit [Remote host closed the connection]
<havenwood> shalok: One way to handle it is a thread local variable.
<shalok> havenwood: Was just thinking the same thing ^
<havenwood> shalok: You'll get 2, 3, 4, 5, 6 for example if you change what you have to: Thread.new(x) { |x|
<shalok> Oh thread local...
<shalok> Isn't just a regular local good enough
<shalok> like in my example
<shalok> x2 only exists in the block so each thread will get it's own copy
<shalok> should work fine for anything I can copy
<havenwood> It's clearer to use a thread local variable, which is meant for this.
<havenwood> shalok: if you like: Thread.new(x) { |x2|
<havenwood> shalok: We might be able to give better suggestions if you have more realistic code.
<shalok> actually I think your suggestion is exactly what I was looking for
ramfjord has joined #ruby
apeiros has quit [Remote host closed the connection]
<havenwood> shalok: I'm tired, they're just local variables, not thread variables. The block form is nice.
schneider has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
GhiL1 has quit [Ping timeout: 260 seconds]
<shalok> Is it possible to use blocks to isolate the scope of variables?: https://ideone.com/FyGdQx
<havenwood> shalok: try defining the variable before the block
kapil___ has joined #ruby
<shalok> havenwood: Well my goal is that the variable should not be visible outside the block
<shalok> havenwood: But for some reason the interpreter is rejecting that syntax
<shalok> Is is possible to create blocks that aren't an argument to a loop or function call?
<havenwood> shalok: A proc is like a block that actually exists as an object. Blocks are a fancy way to not actually create an object.
<havenwood> >> ->{ :ok }.class
<ruby[bot]> havenwood: # => Proc (https://eval.in/964809)
<havenwood> >> ->{ :ok }.lambda
<ruby[bot]> havenwood: # => private method `lambda' called for #<Proc:0x41411ba8> ...check link for more (https://eval.in/964810)
<havenwood> >> ->{ :ok }.lambda?
<ruby[bot]> havenwood: # => true (https://eval.in/964812)
<havenwood> >> ->{ :ok }.call
<ruby[bot]> havenwood: # => :ok (https://eval.in/964813)
<havenwood> shalok: Look into lambdas and procs.
<havenwood> shalok: That's a "stabby lambda" above.
<havenwood> -> arg { block }.call
LocaMocha has joined #ruby
LocaMocha has quit [Max SendQ exceeded]
<shalok> havenwood: btw, what's the difference between the Thread.new block form and thread variables?
<havenwood> shalok: The block form does exactly what you're wanting to do.
<shalok> havenwood: The arguments to the block will only be visible to the thread. How is this different from thread variables?
<havenwood> shalok: Thread variables are thread-specific and can be queried from a dead thread.
<shalok> havenwood: Yup I know. Was just curious.
cdg has joined #ruby
sidx64 has joined #ruby
LocaMocha has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
sanscoeur has joined #ruby
oleo has quit [Quit: Leaving]
sanscoeur has quit [Ping timeout: 248 seconds]
SuperLag has quit [Quit: reboot]
uptime has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 2.0.1]
SuperLag has joined #ruby
Layonthese has joined #ruby
<Layonthese> Hello there
<Layonthese> anyone here who might help me with a problem while running a ruby script?
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Antiarc has quit [Ping timeout: 265 seconds]
<eam> Layonthese: don't ask to ask, just ask. what's your issue?
roshanavand has quit [Ping timeout: 276 seconds]
n008f4g_ has joined #ruby
uptime has joined #ruby
Layonthese has quit [Ping timeout: 260 seconds]
axion has joined #ruby
Layonthese has joined #ruby
LocaMocha is now known as Sauvin
darkhanb has joined #ruby
bkxd has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
axion has quit [Ping timeout: 268 seconds]
mniip has quit [Ping timeout: 240 seconds]
conta has joined #ruby
sidx64 has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
andikr has joined #ruby
sidx64 has quit [Client Quit]
sidx64 has joined #ruby
schneider has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> Layonthese: ask in the channel, not via privmsg
KeyJoo has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
soniya29 has joined #ruby
soniya29_ has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
jokke has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
jokke has joined #ruby
clemens3 has joined #ruby
SirFunk has quit [Quit: ZNC - http://znc.in]
TomyWork has joined #ruby
SirFunk has joined #ruby
nofxx has quit [Remote host closed the connection]
aufi has joined #ruby
guardian has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 240 seconds]
amatas has joined #ruby
Layonthese has quit [Quit: Page closed]
guardian has joined #ruby
deathwishdave has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigblind has joined #ruby
amelliaa has joined #ruby
roshanavand has joined #ruby
claudiuinberlin has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramfjord has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
Burgestrand has joined #ruby
soniya29 has quit [Ping timeout: 256 seconds]
soniya29_ has quit [Ping timeout: 248 seconds]
aupadhye has joined #ruby
logoscoder has quit [Read error: Connection reset by peer]
logoscoder has joined #ruby
deathwishdave has quit [Quit: Textual IRC Client: www.textualapp.com]
mrBen2k2k2k_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
bkxd has joined #ruby
bigblind has joined #ruby
sanscoeur has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
marr has joined #ruby
sanscoeur has quit [Ping timeout: 268 seconds]
willmichael has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
Beams has joined #ruby
quobo has joined #ruby
MyMind has quit [Ping timeout: 245 seconds]
SirFunk has quit [Quit: ZNC - http://znc.in]
drewmcmillan has joined #ruby
logoscoder has quit [Read error: Connection reset by peer]
logoscoder_ has joined #ruby
SirFunk has joined #ruby
willmichael has joined #ruby
Burgestrand has joined #ruby
cschneid has joined #ruby
mikecmpbll has joined #ruby
Fusselgesicht has joined #ruby
bkxd has quit [Quit: Lost terminal]
cschneid has quit [Ping timeout: 245 seconds]
moei has joined #ruby
ShekharReddy has joined #ruby
nadir has joined #ruby
sidx64 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has quit [Client Quit]
sidx64 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
phaul has joined #ruby
armyriad has quit [Ping timeout: 276 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fribmendes has joined #ruby
cliq has joined #ruby
ramfjord has joined #ruby
connor_goodwolf has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
nfsnobody has quit [Ping timeout: 248 seconds]
guille-moe has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 252 seconds]
fullstack_ has quit [Ping timeout: 240 seconds]
shoogz has quit [Ping timeout: 276 seconds]
fullstack has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
nfsnobody has joined #ruby
shoogz has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
aufi_ has joined #ruby
connor_goodwolf has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
eroux has joined #ruby
mozzarella has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
willmichael has quit [Ping timeout: 256 seconds]
connor_goodwolf has quit [Ping timeout: 248 seconds]
connor_goodwolf has joined #ruby
mozzarella has joined #ruby
riotjones has joined #ruby
armyriad has joined #ruby
Blackraider has joined #ruby
jaruga has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
Blackraider has quit [Client Quit]
KeyJoo has quit [Ping timeout: 256 seconds]
connor_goodwolf has quit [Ping timeout: 245 seconds]
fribmendes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Serpent7776 has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
sidx64 has joined #ruby
fribmendes has joined #ruby
sagax has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
fribmendes has quit [Client Quit]
fribmendes has joined #ruby
<dionysus69> is singleton class same as metaclass?
<apeiros> it's usually used interchangeably, yes
<apeiros> even though if you were pedantic, the terms mean different things
<dionysus69> ok cause I read two different articles and they used both of them, just made sure they were meaning the same :)
<apeiros> singleton class, metaclass and eigenclass usually refer to what you get from Object#singleton_class (or via `class << obj`)
<dionysus69> just explored metaprogramming, it's interesting but so far I didn't have a chance to use it in real life xD
mtkd has joined #ruby
<dionysus69> so as I understood correctly, class methods are defined TO singleton/metaclass/eigenclass instead of just main class
fribmendes has quit [Client Quit]
thinkpad has quit [Quit: lawl]
maufart__ has joined #ruby
<apeiros> s/TO/on the/
<apeiros> yes. ruby only has instance methods. class methods don't really exist.
<dionysus69> I see ^.^ thanks
fribmendes has joined #ruby
<apeiros> what we call class methods are instance methods on the singleton_class of the class/module.
<apeiros> and since it's much easier to say/write, and known in other languages too, it stuck :)
<dionysus69> hmm very interesting, never though of class methods not existing, but actually it makes sense, if everything is an object, every method has to be an instance method, if I formulated it correctly
aufi_ has quit [Ping timeout: 265 seconds]
<dminuoso> 11:13 dionysus69 | is singleton class same as metaclass?
<dminuoso> dionysus69: Depends on what you are looking at.
<dminuoso> In the ruby source code itself no.
atmosx has quit [Quit: WeeChat 1.4]
drewmcmi_ has joined #ruby
atmosx has joined #ruby
<dionysus69> the force is not that close to me yet xD
<dminuoso> dionysus69: Internally "metaclass" is the class of class objects (i.e. objects that are not of RClass), while "singleton class" is the class object of.. everything else.
<dminuoso> dionysus69: http://i.imgur.com/04Mlrwp.png
<dminuoso> dionysus69: The blue is whats formally called "singleton class", while all purpose classes are formally called "metaclass"
<dminuoso> But as far as rubyists are concerned apeiros is correct.
<dminuoso> *purple
drewmcmillan has quit [Read error: Connection reset by peer]
<apeiros> hence "usually"
<dionysus69> I see, thanks to you too, that diagram seems pretty (complex) :D
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
<dionysus69> so for example I use this https://gist.github.com/anonymous/1ccef4d3c0312633ab81b860f89cf00c on regular basis
drewmcmillan has joined #ruby
<dionysus69> what would one call this "pattern"?
<dminuoso> Anti-pattern.
<dionysus69> form of metaprogramming?
<dminuoso> Every time people use singletons kitten die.
<dionysus69> what do you mean by anti-pattern ? :D
<dionysus69> haha
drewmcmi_ has quit [Ping timeout: 248 seconds]
<dionysus69> ok then, how would you achieve same without killing kitten?
<dminuoso> dionysus69: Let me show you the non-obfuscated version of what you just wrote.
<dionysus69> sending some random methods to remote service
willmichael has joined #ruby
<dminuoso> $really_global_service_for_the_entire_world_to_touch_and_modify = RPC::JSON::Client.new(Setting["rpc_connection_params"], 1.1)
<dminuoso> Suddenly the entire project, even every gem and library has access to it.
<dionysus69> hahahaha
<dionysus69> well yea, I need such thing in my rails app, various parts of application use this
<dminuoso> Singletons seem to be the answer to "Oh boy, we have a dependency on multiple things, and I dont know/am to lazy to provide this dependency to the respective modules"
larcara has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
<dionysus69> so you are saying to change class into module and import it only wherever it's necessary?
drewmcmi_ has joined #ruby
sameerynho has joined #ruby
<dionysus69> include* sorry
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcmillan has quit [Ping timeout: 260 seconds]
<dionysus69> other than that though, I don't see what much else could change
<dminuoso> dionysus69: Whenever I see the singleton pattern, I ask myself first: "Why do we have a singleton? Are we trying to enforce that only one object can possibly exist?"
<dminuoso> dionysus69: What's wrong with just using `RPC::JSON::Client.new` every time you need it?
<dionysus69> actually I just inherited this piece of code, I didn't come up with it :D
<dminuoso> It's just a basic first thought, not that its a good idea.
<dionysus69> the only problem I see atm with it is that it will be recreated multiple times
<dionysus69> @service ||=
<clemens3> anyone on debian? I have ruby installed, but no gem in the path..?! Anyone know the package that would be in?
sidx64 has joined #ruby
<clemens3> on jessie
<clemens3> maybe something for #debian, but they are sleeping
<darix> clemens3: packages.debian.org
<darix> use the file search at the bottom
ledestin has joined #ruby
<dionysus69> clemens3: use rvm ^.^
<clemens3> darix: oki, thnx..
<dionysus69> and I am on debian btw hehe
<clemens3> dionysus69: I used for ages on mac.. but I don't like it for security reasons not that much anymore..
<darix> dionysus69: RVM is not the solution
<clemens3> dionysus69: I might just compile ruby myself in the future and make sure all gems are used with a single installation only
<dionysus69> I dont really know security implications of using rvm ^.^
<darix> clemens3: and who does security backports for this ruby version?
<clemens3> dionysus69: for a start, installing it is downloading some bash script and immediately running it..
<darix> dionysus69: many people just oneshot install ruby with it and then get stuck
tvw has joined #ruby
<darix> so no security fixes and so on
<clemens3> darix: one problem vs another
<darix> software life cycle doesnt end with "install"
<dionysus69> dunno, I didn't have any problems with rvm, I use it both in production and dev :D I had some problems but not related to ruby itself
<darix> dionysus69: personally I even rpm-ify gems, so i can backport fixes on those as well.
<dionysus69> what do you mean by backport fixes? to modify them?
<darix> yes
<clemens3> dionysus69: rvm is nice, just how to you check what you just downloaded and installed is really what you think it is?
<darix> simple_rss had broken non ascii charset handling and upstream was dead and not doing releases
<clemens3> to=do
<darix> and backporting security fixes when you can just upgrade the whole stack
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<darix> and upstream only released a new version which doesnt match the version limits of your current stack
schneider has quit [Ping timeout: 245 seconds]
<dionysus69> dunno, I only use gems installed by bundler, never used a OS packaged gem
cdg has joined #ruby
<clemens3> darix: strangely, on my system it is called gem2.1
<clemens3> must do a symlink
<darix> clemens3: probably so you can use multiple versions in parallel
<clemens3> darix: yeah..
<darix> clemens3: I would have expected that debian has update-alternative handling for a /usr/bin/gem
talntid has quit [Ping timeout: 256 seconds]
<darix> dionysus69: funny story. I package discourse for opensuse. I applied the simple-rss fix to my package and all was good. then a friend asks me if i can install discourse for him - on an ubuntu machine ... ok ... we install via git ... run bundle install ... and test his install. run into the rss bug again. "i thought I had this fixed ... oh damn ... not using rpms"
roshanavand has joined #ruby
<darix> so we had to patch the copy in the vendor tree *again*
talntid has joined #ruby
<darix> a few months later we moved his instance to opensuse and now we both enjoy the same backported fixes. ;)
Beams_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dionysus69> ah I see, so vendor tree is the "main repo" for gems?
<dionysus69> and from there people do all sorts of packaging?
Beams has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 276 seconds]
<clemens3> darix: actually I wanted to generate all standard documentation, but actually the documentation was there, just ri was also named ri2.1..
<darix> clemens3: :D
<clemens3> darix: I skip the alternative way for now, just linked it manually..
<clemens3> oki, thanks - later
<darix> dionysus69: naw. vendor tree is where "bundle install" dumps the things
amatas_ has joined #ruby
connor_goodwolf has joined #ruby
sidx64 has joined #ruby
kapil___ has joined #ruby
schneider has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit []
xfbs has joined #ruby
fribmendes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
sidx64 has joined #ruby
amatas_ has quit [Quit: amatas_]
amatas_ has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
apparition has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gregf_ has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
ldnunes has joined #ruby
byte512 has quit [Ping timeout: 265 seconds]
nowhereman_ has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
ramfjord has joined #ruby
adlerdias has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
Cavallari has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Quit: Closing time!]
KeyJoo has joined #ruby
konsolebox has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
fribmendes has joined #ruby
fribmendes has quit [Client Quit]
d9867eb has joined #ruby
za1b1tsu has joined #ruby
<d9867eb> hello, please tell me, is nested methods ie dynamic methods considred a bad thing?
sidx64 has joined #ruby
<d9867eb> here is a example https://pastebin.com/Z8dg8N6B
<ruby[bot]> d9867eb: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/21a72e5bfcbbdaa604eeeabf584dcdda
<ruby[bot]> d9867eb: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Psybur has joined #ruby
ramfjord has joined #ruby
<apeiros> d9867eb: yes
Burgestrand has joined #ruby
<apeiros> and it almost certainly does not work the way you expect it to
<apeiros> (alternatively: your code makes no sense)
<d9867eb> apeiros, then what should i do instead?
<apeiros> unclear from your code. but seems like you want a Project = Struct.new(:title, :url)
<d9867eb> apeiros, how does my code not make sense?
<apeiros> in that it does not work. like, at all.
<apeiros> self in that line is not project
meadmoon has joined #ruby
amatas_ has quit [Ping timeout: 256 seconds]
Bit10 has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 252 seconds]
<d9867eb> apeiros, then what is it? it worked when i ran it
<apeiros> it may not have raised
<apeiros> that does not mean it worked
willmichael has quit [Ping timeout: 248 seconds]
willmichael has joined #ruby
bigblind has quit [Read error: Connection reset by peer]
<apeiros> ok, it "works"
<apeiros> but not the way you expect it to
<apeiros> you could simply write those two methods outside of your loop
quobo has quit [Quit: Connection closed for inactivity]
<apeiros> d9867eb: https://gist.github.com/apeiros/08e6bec4c04bddb2cbc42407d11adeed this does exactly the same as yours
<apeiros> except that it doesn't define the same method over and over again (replacing the old, same version)
<apeiros> also note that you can now call .title and .url on *every* object.
schneider has quit [Read error: Connection reset by peer]
schneider has joined #ruby
cliq has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
<apeiros> https://gist.github.com/apeiros/08e6bec4c04bddb2cbc42407d11adeed (updated) the "better.rb" is more what you should do.
<apeiros> my attention is elswhere. ping me if you write something I should read.
goatish has joined #ruby
soniya29 has quit [Remote host closed the connection]
soniya29_ has quit [Remote host closed the connection]
soniya29 has joined #ruby
soniya29_ has joined #ruby
roshanavand has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
<d9867eb> apeiros, thanks
drewmcmi_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meadmoon has quit [Quit: I am functioning within established parameters.]
<zenspider> keithy: rake_remotetask
<zenspider> the older I get... the more I hate the word "best"
shinnya has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
karapetyan has quit [Remote host closed the connection]
cschneid has joined #ruby
<apeiros> zenspider: hah, I know that feeling
<apeiros> zenspider: btw., imagescience is no longer maintained?
<apeiros> or is it just flawless at this point? :)
cdg has joined #ruby
jaruga has quit [Quit: jaruga]
karapetyan has joined #ruby
<zenspider> so flawless
sidx64 has joined #ruby
<zenspider> not not maintained... just hasn't had anything pushing on it for a long while
<zenspider> I am minimizing THE STRANGEST BUG... in did_you_mean
achen has joined #ruby
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 240 seconds]
* zenspider goes to bed
anjen has joined #ruby
jeffreylevesque has quit [Ping timeout: 248 seconds]
xfbs has quit []
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
oroborous has joined #ruby
oroborous has joined #ruby
oroborous has quit [Changing host]
shinnya has quit [Ping timeout: 260 seconds]
Papierkorb has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
larcara has quit []
drewmcmillan has joined #ruby
sanscoeur has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
cliq has joined #ruby
sanscoeur has quit [Ping timeout: 245 seconds]
schneider has joined #ruby
bigblind has joined #ruby
adlerdias_ has joined #ruby
achen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
achen has joined #ruby
adlerdias has quit [Ping timeout: 260 seconds]
adlerdias_ is now known as adlerdias
mtkd has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 276 seconds]
faces has joined #ruby
soniya29_ has quit [Ping timeout: 240 seconds]
soniya29 has quit [Ping timeout: 245 seconds]
sidx64 has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
schneider has joined #ruby
mtkd has joined #ruby
fribmendes has joined #ruby
adlerdias_ has joined #ruby
<phaul> what's the best lib atm to do fast matrix dot products, map func over matrices and basic matrix arithmetics ie elemwise +, - or multiply by scalar? Tried nmatrix, but Im getting issues.
Burgestrand has quit [Quit: Closing time!]
<Iambchop> phaul: share a gist of your code and issues?
adlerdias has quit [Ping timeout: 260 seconds]
adlerdias_ is now known as adlerdias
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
schneider has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
banisterfiend has joined #ruby
<phaul> it requires packable. if I open an irb this happens: https://gist.github.com/phaul/5becb77a5c1a60adc22f11b85b032d1a
<phaul> so if I try to use packable and or nmatrix, p becomes dodgy..
goatish has quit [Quit: Hibernating]
<phaul> I see that packable says it was designed to work with ruby 1.8 & 1.9. But then Im stuck
<phaul> hence my starting question, what else cn I use?
workmad3 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
fribmendes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcmi_ has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
beyer has joined #ruby
<beyer> Hello
schneider has joined #ruby
rwb has quit [Ping timeout: 245 seconds]
thinkpad has joined #ruby
<phaul> beyer: hi
drewmcmillan has quit [Ping timeout: 240 seconds]
<beyer> i want to install this repo https://github.com/vdaubry/youtube-multiple-dl but have no idea how to do... i have 0 knowledge of ruby
achen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ams__ has joined #ruby
jaruga has joined #ruby
<tobiasvl> beyer: the readme file has installation instructions
<beyer> i have installed ruby 2.4.3 but after when i try to run it it says "C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- delayed_job_active_record (LoadError)"
<tobiasvl> did you "bundle install"?
<beyer> im on windows 10 ...
<beyer> i dont know what is bundle install or how to do it
<tobiasvl> ok, I don't know anything about windows, but did you install the bundle?
<tobiasvl> ok so you did not install it
<beyer> nop
karapetyan has quit [Remote host closed the connection]
<tobiasvl> ok, well, I don't know anything about windows unfortunately, so maybe someone else can answer
<tobiasvl> but your question is essentially "how do I install bundler on windows" then
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
<tobiasvl> on linux you would do "gem install bundler"
<tobiasvl> and then "bundle install"
memo1 has joined #ruby
<tobiasvl> the "gem" command comes with ruby
Beams_ has quit [Remote host closed the connection]
<beyer> ill try tks
Beams has joined #ruby
fribmendes has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
<beyer> yeah i already installed the recommended version here https://rubyinstaller.org/downloads/ 2.4.3
jeffreylevesque has joined #ruby
<beyer> cmd ruby -v says 2.4.3p205
dionysus69 has quit [Ping timeout: 268 seconds]
strika has quit [Quit: leaving]
schneider has quit [Ping timeout: 240 seconds]
<beyer> then what should i do?
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasvl> beyer: do you have the "gem" command?
<beyer> yes
<tobiasvl> ok, then do what I said earlier
<tobiasvl> "gem install bundler"
<tobiasvl> then you can follow the installation instructions in the readme
<beyer> ERROR: While executing gem ... (Errno::EADDRNOTAVAIL) L’adresse demandée n’est pas valide dans son contexte. - connect(2) for "0.0.0.0" port 53
cpruitt has joined #ruby
<beyer> the requested adress is not valid (translation..)
schneider has joined #ruby
<tobiasvl> ok, never seen that before, but googling "gem install eaddrnotavail" has some results
<tobiasvl> possibly dns configuration
<beyer> im in china, it can be the cause?
<tobiasvl> possibly
<tobiasvl> the great firewall of china
<beyer> fuck it
ramfjord has joined #ruby
<beyer> ok its working trough openvpn
<beyer> 1 gem installed
<dminuoso> >> -> f { -> y { y[y] }[->x { f[-> v { x[x][v] }] }] }[-> f, x { x == Math.cos(x) ? x : f[Math.cos(x)]}.curry][3]
<ruby[bot]> dminuoso: # => 0.7390851332151607 (https://eval.in/965195)
<dminuoso> >> -> f { -> y { y[y] }[->x { f[-> v { x[x][v] }] }] }[-> f, x { x == Math.cos(x) ? x : f[Math.cos(x)]}.curry][4]
<ruby[bot]> dminuoso: # => 0.7390851332151607 (https://eval.in/965196)
<dminuoso> >> -> f { -> y { y[y] }[->x { f[-> v { x[x][v] }] }] }[-> f, x { x == Math.cos(x) ? x : f[Math.cos(x)]}.curry][10]
<ruby[bot]> dminuoso: # => 0.7390851332151607 (https://eval.in/965197)
<dminuoso> =)
anjen has quit [Quit: anjen]
banisterfiend has joined #ruby
<dminuoso> It seems as if eval.in has TCO enabled
mtkd has quit []
<dminuoso> WOW!
<dminuoso> I just segfaulted ruby.
ramfjord has quit [Ping timeout: 245 seconds]
<beyer> i got this C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- lib/youtube_multiple_dl (LoadError) from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from youtube-multiple-dl:3:in `<main>'
<tobiasvl> beyer: and is youtube-multiple-dl installed, like the readme says it must be?
Psybur has quit [Ping timeout: 252 seconds]
synthroid has joined #ruby
<tobiasvl> please just read the installation instructions in the readme now that I helped you get to the point it starts from
workmad3 has quit [Ping timeout: 268 seconds]
Burgestrand has joined #ruby
aScottishBoat has joined #ruby
cdg has joined #ruby
<dminuoso> >> RUBY_VERSION
lxsameer has quit [Ping timeout: 260 seconds]
<ruby[bot]> dminuoso: # => "2.3.0" (https://eval.in/965201)
cdg_ has joined #ruby
jcalla has joined #ruby
rwb has joined #ruby
mtkd has joined #ruby
workmad3 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
karapetyan has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
<Bish> dminuoso: enlighten us with your 0day exploit
<dminuoso> Nope!
<Bish> :(
<Bish> enlighten me then?
achen has joined #ruby
achen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Ping timeout: 268 seconds]
oroborous has quit [Remote host closed the connection]
<dminuoso> Bish: Mmm irrelevant, its fixed.
<beyer> C:\Ruby24-x64\bin>ruby rake db:migrate rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) rake:23:in `load' rake:23:in `<main>' (See full trace by running task with --trace)
<dminuoso> Bish: I managed to seg fault 2.4.1 in some strange combinations, but it does not seem reproducible in 2.5.0
<beyer> i have rakefile what it says that i dont?
<dminuoso> Bish: -> f { -> y { y[y] }[->x { f[-> v { x[x][v] }] }] }[-> f, x { x == Math.cos(x) ? x : f[Math.cos(x)]}.curry][10]; RubyVM::InstructionSequence.compile_option = { tailcall_optimization: true, trace_instruction: false }; -> f { -> y { y[y] }[->x { f[-> v { x[x][v] }] }] }[-> f, x { x == Math.cos(x) ? x : f[Math.cos(x)]}.curry][10]
<dminuoso> Bish: Repeat this a few times in 2.4.1 (possibly newer too) and watch it segfault
ShekharReddy has quit [Quit: Connection closed for inactivity]
achen has joined #ruby
aufi_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
karapetyan has joined #ruby
maufart__ has quit [Ping timeout: 240 seconds]
fribmendes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
maufart__ has joined #ruby
fribmendes has joined #ruby
k0mpa has joined #ruby
aScottishBoat has quit [Ping timeout: 268 seconds]
aufi_ has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
aScottishBoat has joined #ruby
maufart__ has quit [Client Quit]
Psybur has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
fribmendes has quit [Ping timeout: 268 seconds]
<dminuoso> beyer: You probably are not using `bundle` to invoke your rake commands.
karapetyan has quit [Ping timeout: 240 seconds]
krawchyk has joined #ruby
riotjones has quit [Remote host closed the connection]
riotjones has joined #ruby
drewmcmillan has joined #ruby
drewmcmillan has quit [Client Quit]
riotjones has quit [Ping timeout: 268 seconds]
<beyer> how to do it?
desperek has joined #ruby
oleo has joined #ruby
raynold has joined #ruby
drewmcmi_ has quit [Ping timeout: 276 seconds]
<beyer> Comment je fais diminuoso?
karapetyan has joined #ruby
<morfin60> dminuoso, not crashed for me
<beyer> have this in CMD https://pastebin.com/pS58zrdw
<ruby[bot]> beyer: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ba7880d49e6d4cbff0395697334509c7
<ruby[bot]> beyer: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<dminuoso> morfin60: 2.4.1 in irb?
<dminuoso> morfin60: Repeatedly put in?
<dminuoso> morfin60: what platform?
<morfin60> Arch Linux x86_64 =)
<morfin60> yes, 2.4.1 and irb
<dminuoso> morfin60: what exact patch version?
sanscoeur has joined #ruby
<beyer> le gars a fait un script fantastique mais il dit pas cmt sen servir grrr
dviola has joined #ruby
<dminuoso> (The actual testcase is smaller, but repeating that statement is easier to explain)
shpoont has joined #ruby
k0mpa has quit [Ping timeout: 255 seconds]
<morfin60> weird
cdg has joined #ruby
<morfin60> no stack level too deep for me
<morfin60> !pastebin
orbyt_ has joined #ruby
pastorinni has joined #ruby
Cavallari has quit [Quit: Cavallari]
cdg__ has joined #ruby
sanscoeur has quit [Ping timeout: 252 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Ping timeout: 256 seconds]
cdg__ has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
riotjones has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
fribmendes has joined #ruby
cpruitt has quit []
terens has joined #ruby
<terens> hello
<terens> why does this fail?
<terens> DateTime.strptime("1519916596.0613241", "%s.%7N").to_f
kn-928 has joined #ruby
Rapture has joined #ruby
Beams_ has joined #ruby
<apeiros> terens: seems it wants %N instead of %7N and will throw away the subsecond part.
<apeiros> not sure why and whether there's a better solution. because it's absolutely capable of internally having that state.
kn-928 has quit [Ping timeout: 240 seconds]
InfinityFye has joined #ruby
drewmcmillan has joined #ruby
schneider has joined #ruby
Beams has quit [Ping timeout: 276 seconds]
InfinityFye has left #ruby [#ruby]
beyer has quit [Ping timeout: 260 seconds]
anisha has quit [Quit: This computer has gone to sleep]
netherwolfe has joined #ruby
cschneid has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
aScottishBoat has quit [Quit: aScottishBoat]
GotHyper has joined #ruby
gix- has quit [Ping timeout: 256 seconds]
pskosinski has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
terens has quit [Ping timeout: 256 seconds]
pskosinski has joined #ruby
pskosinski is now known as Guest81558
troys has joined #ruby
ShekharReddy has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
synthroid has quit [Remote host closed the connection]
eckhardt has quit [Ping timeout: 256 seconds]
willmichael has quit [Ping timeout: 240 seconds]
krawchyk has quit [Quit: krawchyk]
apeiros has quit [Ping timeout: 252 seconds]
aufi has joined #ruby
ta_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
willmichael has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
tcopeland has quit [Quit: tcopeland]
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
sanscoeur has joined #ruby
mtkd has quit [Ping timeout: 245 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
mtkd has joined #ruby
sanscoeur has quit [Ping timeout: 240 seconds]
amelliaa has quit [Quit: -]
momomo has joined #ruby
<momomo> yo .. how do you merge a hash onto another but only new keys ... one.merge!(two) is overwriting for me
<momomo> one : {a => 1}, two : {b => 20, a => 10}
<momomo> results in the same as two
<momomo> i want to keep a = 1
hinbody has quit [Quit: leaving]
<gizmore> didnt check answers
willmichael has quit [Ping timeout: 240 seconds]
gr33n7007h is now known as al2o3-cr
<al2o3-cr> momomo: h1.merge(h2) { |k, o, n| o }
apeiros has joined #ruby
conta has quit [Quit: conta]
<havenwood> >> {a: 1}.merge({b: 20, a: 10}) { |_, old, _| old }
<havenwood> al2o3-cr: You beat me to it
<ruby[bot]> havenwood: # => {:a=>1, :b=>20} (https://eval.in/965274)
<al2o3-cr> ;)
<havenwood> momomo: ^
conta has joined #ruby
sammi`_ has joined #ruby
<momomo> havenwood: one problem though
<momomo> it doesnt modify one
<momomo> it returns a new one
tcopeland has joined #ruby
<havenwood> momomo: You mean you want to modify the receiver Hash?
<momomo> yes
<momomo> ! tried
<momomo> but i cant get it the value in my code that I am expecting
<havenwood> >> h = {a: 1}; h.merge!({b: 20, a: 10}) { |_, old, _| old }; h # momomo
<ruby[bot]> havenwood: # => {:a=>1, :b=>20} (https://eval.in/965276)
<havenwood> momomo: Gist your code?
Burgestrand has quit [Quit: Closing time!]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<momomo> havenwood:constructing the gist i discovered the error :D
<havenwood> momomo: aha, nice
<momomo> what is { |k, o, n| o } vs { |_, old, _| old } vs { |key, v1, v2| v1 }
<momomo> i see the first one uses a bit different syntax than the old one
Burgestrand has joined #ruby
conta has quit [Ping timeout: 268 seconds]
soniya29_ has quit [Ping timeout: 260 seconds]
soniya29 has quit [Ping timeout: 260 seconds]
sammi` has quit [Quit: Lost terminal]
kapil___ has joined #ruby
Burgestrand has quit [Client Quit]
willmichael has joined #ruby
hinbody has joined #ruby
Antiarc has joined #ruby
n008f4g_ has quit [Ping timeout: 248 seconds]
schneider has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
John_Ivan has quit [Ping timeout: 245 seconds]
tcopeland has quit [Quit: tcopeland]
Cavallari has joined #ruby
synthroid has joined #ruby
bonhoeffer has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
schneider has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
John_Ivan has joined #ruby
pocketprotector has joined #ruby
<momomo> is there a way to delete a key and get the return valeu ?
<momomo> 777<%= locals[:date_of_birth].delete("static") %>888
<momomo> not printing anything
<momomo> 777<%= locals[:date_of_birth][:static] %>888
<momomo> does
<apeiros> "static" is not the same as :static
[Butch] has joined #ruby
rrutkowski has joined #ruby
karapetyan has quit [Remote host closed the connection]
tcopeland has joined #ruby
anjen has joined #ruby
conta has joined #ruby
bonhoeffer has quit [Ping timeout: 260 seconds]
rrutkowski has quit [Remote host closed the connection]
eckhardt has joined #ruby
clemens3 has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
andikr has quit [Remote host closed the connection]
jcarl43 has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 260 seconds]
ski7777 has quit [Ping timeout: 265 seconds]
timmow has quit [Ping timeout: 255 seconds]
<apeiros> momomo: and? could you resolve your issue?
<momomo> yes, i had to use delete(:static) for some reason
<momomo> wierd
<momomo> i dont get the ruby syntax
<momomo> documentation says 'static'
<apeiros> you do get that "1" and 1 are not the same?
<apeiros> can't say anything about the documentation you're reading since I don't know which that would be. but can say something about ruby syntax.
timmow has joined #ruby
govg has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
rrutkowski has joined #ruby
Serpent7776 has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
rrutkowski has quit [Client Quit]
za1b1tsu has quit [Quit: Leaving]
schneider has joined #ruby
aupadhye has quit [Remote host closed the connection]
byte512 has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
bmurt has joined #ruby
soniya29 has quit [Remote host closed the connection]
soniya29_ has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
momomo has quit [Remote host closed the connection]
darkhanb has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shpoont has joined #ruby
jaruga has quit [Quit: jaruga]
rybarra has joined #ruby
guille-moe has quit [Ping timeout: 265 seconds]
Beams_ has quit [Remote host closed the connection]
terens has joined #ruby
Beams has joined #ruby
ramfjord has joined #ruby
aufi has quit [Quit: Leaving]
hahuang65 has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
vondruch has quit [Ping timeout: 268 seconds]
memo1 has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
kies has quit [Ping timeout: 245 seconds]
Xentil has joined #ruby
agent_white has quit [Quit: bbl]
schneider has joined #ruby
logoscoder_ is now known as logoscoder
mniip has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ShekharReddy has quit [Quit: Connection closed for inactivity]
sanscoeur has joined #ruby
Tempesta has quit [Quit: See ya!]
karapetyan has joined #ruby
Tempesta has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
cdg_ has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg_ has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
faces has quit [Ping timeout: 276 seconds]
AndBobsYourUncle has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nmeum has joined #ruby
ski7777 has joined #ruby
<nmeum> I have an instance of a class Foo which inherits from class Bar and I want to get a list of all instance variables defined by the class Bar without the once defined by the class Foo, is that somehow possible?
guest123 has joined #ruby
hahuang62 has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guest123 has quit [Client Quit]
guest has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
guest has quit [Client Quit]
<havenwood> nmeum: Bar.new.instance_variables - Foo.new.instance_variables
kies has joined #ruby
<havenwood> nmeum: No, there's not an easy way to tell where an instance variable came from. You can tell with methods but not with instance variables.
John_Ivan has quit [Ping timeout: 260 seconds]
John_Ivan has joined #ruby
<weaksauce> anyone have a suggestion on a free email service to use to send low volume emails through a ruby script to myself?
<terens> you can send using gmail to yourself as far as i know
catphish has joined #ruby
terens has quit [Quit: Leaving]
terens has joined #ruby
<weaksauce> well i was going to go that route but didn't want to hard code a password into it and couldn't find what google did with the temp passwords for applications
<catphish> does rack by any chance provide the original http request? or would it need to be reconstructed?
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<catphish> actually never mind, someone already wrote what i'm trying to write https://github.com/ngauthier/tubesock
<havenwood> catphish: what does that have to do with reconstructing the request??
<catphish> havenwood: i was intending to use a websocket protocol library that expects to be given an incoming http request, hence i would have needed the request
shakes has joined #ruby
<catphish> that's the websocket protocol library i usually use, but this would require the original http request, all this is moot though if tubesock does it all :)
karapetyan has joined #ruby
alaing has joined #ruby
karapetyan has quit [Remote host closed the connection]
alaing has quit [Changing host]
alaing has joined #ruby
<alaing> hi
<havenwood> catphish: Why not use ActionCable (or AnyCable)?
<havenwood> alaing: hi
<catphish> isn't actioncable a messaging framework? i just need a raw socket
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood> catphish: ah
<havenwood> catphish: just hijack then
<catphish> that's the plan
<alaing> i'm using activerecord, what is the difference between update and update!
<catphish> i'm a little worried about how hijack will interact with the thread model of puma
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #ruby
<havenwood> catphish: Puma supports hijack at least.
hahuang62 has quit [Quit: WeeChat 2.0.1]
<havenwood> alaing: See the docs: "Updates its receiver just like update but calls save! instead of save, so an exception is raised if the record is invalid."
<catphish> i've only ever done websockets in my own servers before, where i could make an unlimited number of threads, or event driven
<havenwood> catphish: <3 H2
<catphish> but for this project i'm hoping to keep things simple and use puma
sanscoeur has quit [Read error: Connection reset by peer]
<havenwood> catphish: Discourse has an interesting approach, disfavoring websockets: https://github.com/SamSaffron/message_bus
TomyWork has quit [Ping timeout: 240 seconds]
sanscoeur has joined #ruby
<catphish> there shouldn't be too many WS connections, so hopefully not a big problem
<alaing> havenwood: i thought update would run through validations
<catphish> i actually do want a new message bus (i've had a falling out with rabbitmq), but today's project is a VNC server, so neeeds to be pure websocket
<havenwood> catphish: Use HTTP2!
<catphish> i have no idea how that helps, but i'm intrigued, i've never used it
<catphish> does it have a new approach to sockets?
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood> I guess I'd need to know more about what you're doing to give a real recommendation, but HTTP/2 is really quite nice. Yeah, no more Request/Response - It's a new paradigm.
d9867eb has quit [Quit: Leaving]
<havenwood> catphish: Here's a pure Ruby implementation of H2: https://github.com/igrigorik/http-2
<havenwood> catphish: I've recently been playing with gRPC, which uses Protocol Buffers over H2. It's quite nice.
roshanavand has quit [Remote host closed the connection]
<havenwood> catphish: Schema'd binary data across a binary protocol.
<catphish> well on this occasion i just want a simple stream between JS and a server running a rails app
<catphish> (to carry vnc data)
<catphish> there are a few things i could write to do that, but i was hoping to keep it all within one server, hence the interest in rack hijack
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood> catphish: Sam Saffron of Discourse argues against WebSockets for such a task. (He's the author of MessageBus.)
<havenwood> catphish: MessageBus also uses Rack Hijack, it just doesn't prefer WebSockets as a transport.
<catphish> well javascript doesn't offer many options
<catphish> websocket, or discreet request/response, afaik
<havenwood> catphish: MessageBus uses the best HTTP/1.1 has to offer, long polling with streamed chungs.
<havenwood> chunks*
<catphish> that seems inferior to websocket
<havenwood> depends what you're transporting and why
<catphish> websocket offers all that, but in a bidirectional manner
<havenwood> he talks on the why
<havenwood> TL;DR: WebSockets, 50 connections for 50 tabs. HTTP/2, 1 connection for 50 tabs. :-P
synthroid has quit [Remote host closed the connection]
bmurt has joined #ruby
bmurt has quit [Client Quit]
bmurt has joined #ruby
<catphish> some of those criticisms seem fair
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has quit [Client Quit]
<catphish> but this is all with reference to an app that wants a message bus, not an app that wants a bidirectional binary stream
<havenwood> catphish: bidirectional binary stream sounds best suited to H2
fribmendes has quit [Quit: fribmendes]
<havenwood> catphish: gRPC handles it well
<catphish> that may be true, i don't know it well
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
<catphish> really i just want TCP :)
<catphish> but seemingly we're not allowed
<havenwood> catphish: We use gRPC broadly at work. I've just gotten into it myself so I've not done *real things* but I've been very impressed.
ali_g has joined #ruby
<catphish> maybe i should just make an activeX control and only support ie6
<havenwood> That.
<gizmore> optimized for IE5
<havenwood> Ship it!
<catphish> :)
<havenwood> https://caniuse.com/#feat=http2
<havenwood> https://caniuse.com/#feat=websockets
bmurt has joined #ruby
<havenwood> Not on Opera Mini!
<catphish> https://caniuse.com/#search=activex
ectos has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
shakes has quit [Quit: Leaving]
<catphish> gave it a +1 :)
<havenwood> hah
<catphish> i could really do with a good alternative to rabbitmq to distribute messages
<havenwood> catphish: Phoenix Channels ftw.
bmurt has quit [Remote host closed the connection]
<catphish> that's quite a sidestep :)
<havenwood> catphish: Erlang.
<catphish> i still have a lot of rails going on :)
<havenwood> catphish: Step 1) Port Rails to Erlang.
<catphish> good idea
bmurt has joined #ruby
<catphish> can i just do it in assembler?
<catphish> after all, ruby doesn't scale
<havenwood> I was really happy to see Phoenix getting H2 support.
rrutkowski has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tvw has quit [Ping timeout: 252 seconds]
n0m4d1c has joined #ruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<catphish> well after all that, tubesock doesn't seem to support binary websockets, so back to the beginning
starseed0000 has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
cdg has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
<catphish> and digging into the source of the websocket gem i usually use, it has a "from_rack()" method that gets the necessary data from a rack request hash instead of a raw http request, so everyone wins
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
AgentVenom has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
conta has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
jeffreylevesque has quit [Ping timeout: 256 seconds]
imanc_ has left #ruby [#ruby]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Sauvin has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
drewmcmi_ has joined #ruby
claudiuinberlin has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcm__ has joined #ruby
drewmcmillan has quit [Ping timeout: 276 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
drewmcmi_ has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
Puffball has quit [Remote host closed the connection]
drewmcm__ has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
drewmcmi_ has joined #ruby
pastorinni has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
achen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
adlerdias has quit [Quit: adlerdias]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ams__ has quit [Quit: Connection closed for inactivity]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
chridal has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Psybur has quit [Ping timeout: 268 seconds]
marxarelli is now known as marxarelli|afk
chridal has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
AJA4350 has quit [Remote host closed the connection]
<terens> DateTime.strptime("1519916596.0613241", "%s.%7N").to_f why this doesnt wokr?
AJA4350 has joined #ruby
minimalism has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<wnd> terens, I don't know. Is this just a simplified reproduction of a bigger issue, or could you perhaps use Time.at(1519916596.0613241) instead?
mtkd has quit [Ping timeout: 256 seconds]
terens has quit [Ping timeout: 240 seconds]
n008f4g_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
terens has joined #ruby
<phaul> >> puts 'try'
<ruby[bot]> phaul: # => try ...check link for more (https://eval.in/965400)
<phaul> >> puts require 'packable'; p 1
<ruby[bot]> phaul: # => cannot load such file -- packable (LoadError) ...check link for more (https://eval.in/965401)
memo1 has joined #ruby
shpoont has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kapil___ has quit [Quit: Connection closed for inactivity]
eckhardt has joined #ruby
aeontech has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cliq has quit [Ping timeout: 248 seconds]
alaing has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: WeeChat 2.0.1]
\void has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
John_Ivan has quit [Ping timeout: 256 seconds]
cliq has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
memo1 has quit [Quit: WeeChat 1.4]
memo1 has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
<memo1> hi, any library to work with realtime data?, like threads or socketid(nodejs)
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
claudiuinberlin has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dionysus69 has quit [Quit: dionysus69]
<memo1> like the stream (sinatra)
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cdg has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
marxarelli|afk is now known as marxarelli
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<terens> DateTime.strptime("1519916596.0613241", "%s.%7N").to_f why this doesnt wokr?
<terens> memo1, actioncable ?
<terens> faye websocket or something similar
synthroid has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
<al2o3-cr> terens: not sure
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<al2o3-cr> >> require 'time'; Time.strptime("1519916596.0613241", "%s.%7N").to_f
<ruby[bot]> al2o3-cr: # => invalid strptime format - `%s.%7N' (ArgumentError) ...check link for more (https://eval.in/965458)
<al2o3-cr> >> require 'time'; Time.strptime("1519916596.0613241", "%s.%N").to_f
<ruby[bot]> al2o3-cr: # => 1519916596.0613241 (https://eval.in/965461)
Mike11 has joined #ruby
logoscoder has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
logoscoder has joined #ruby
Cavallari has quit [Quit: Cavallari]
<memo1> terens: thank you
<memo1> terens: actoncable is not Rails?
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Matt2843 has joined #ruby
synthroid has joined #ruby
<terens> yes but most of these things can be used alone
agent0range has joined #ruby
agent0range has quit [Client Quit]
<Matt2843> Heyho o/ is there an easy way to append a variable amount of '0' to a string?
workmad3 has quit [Ping timeout: 268 seconds]
<phaul> >> 'string' << '0' * 3
<ruby[bot]> phaul: # => "string000" (https://eval.in/965464)
<terens> "0" * 666
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
nmeum has left #ruby [#ruby]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<Matt2843> oh
<Matt2843> ty
tomphp has joined #ruby
tomphp has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
Guest86084 is now known as Radar
Radar has quit [Changing host]
Radar has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
<phaul> Matt2843: depending on your code 'string'.ljust(total_length, '0') can be more convinient
<Matt2843> thanks =)
uplime is now known as nchambers
Dimik has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
karapetyan has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.0.1]
rwb has quit [Ping timeout: 268 seconds]
rybarra has quit [Quit: WeeChat 1.4]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
eroux has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
synthroid has quit []
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
keithy has quit [Quit: keithy]
adlerdias has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
keithy has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
jcalla has quit [Quit: Leaving]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
gr33n7007h has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Mike11 has quit [Ping timeout: 260 seconds]
jamiejackson has joined #ruby
shpoont has joined #ruby
roshanavand has joined #ruby
terens has quit [Ping timeout: 245 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sameerynho has quit [Ping timeout: 248 seconds]
keithy has quit [Quit: keithy]
logoscoder has quit [Quit: Leaving]
n008f4g_ has quit [Ping timeout: 265 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anjen has quit [Quit: anjen]
keithy has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
amatas has quit [Quit: amatas]
tomphp has joined #ruby
tomphp has quit [Client Quit]
schneider has joined #ruby
rwb has joined #ruby
d10n-work has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
schneider has quit [Ping timeout: 260 seconds]
Matt2843 has quit [Quit: Page closed]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
Vapez has joined #ruby
adlerdias has quit [Quit: adlerdias]
kliq has joined #ruby
roshanavand has quit [Remote host closed the connection]
drewmcmi_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
memo1 has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cliq has quit [Ping timeout: 256 seconds]
<catphish> does anyone know if net/ssh can be used with polling?
<catphish> ie epoll/select
<catphish> i'll just try it :)
keithy has quit [Quit: keithy]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
keithy has joined #ruby
Fusselgesicht has quit [Quit: leaving]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
shpoont has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Beams has quit [Quit: .]
Vapez has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
SynSynack has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
willmichael has quit [Ping timeout: 256 seconds]
netherwolfe has quit [Ping timeout: 245 seconds]
cdg_ has joined #ruby
rgiscard has joined #ruby
cdg_ has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 245 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<darix> catphish: huh?
jamiejackson has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
nadir has joined #ruby
<catphish> darix: i wanted to know if i could use net/ssh with epoll, so rather than blocking, i can process ssh events whenever they occur, along with events on other sockets
<catphish> i haven't worked out the answer yet, will know when i have some more code in place
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
workmad3 has joined #ruby
karapetyan has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
willmichael has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
achen has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
rrutkowski has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
nowhereman_ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 276 seconds]
zenspider_ has quit [Quit: bye]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nowhere_man has quit [Ping timeout: 245 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
mtkd has joined #ruby
karapetyan has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
xerxes has joined #ruby
morfin60 has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
n0m4d1c has joined #ruby
pastorinni has quit [Ping timeout: 252 seconds]
pastorin_ has joined #ruby
gr33n7007h is now known as al2o3-cr
<darix> catphish: thread
<darix> probabyl
aguestuser has quit [Ping timeout: 255 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
n0m4d1c has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
logoscoder has joined #ruby
tomphp has quit [Client Quit]
logoscoder has quit [Max SendQ exceeded]
logoscoder has joined #ruby
logoscoder has quit [Max SendQ exceeded]
<catphish> threads aren't a great way to do it, but they make a good fallback
logoscoder has joined #ruby
<catphish> anyway, the answer is yes, you can, select([ssh_session.transport.socket]); ssh_session.process(0)
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
rflec028 has joined #ruby
<catphish> i now have a server that bridges between websocket and vnc-over-ssh :)
aguestuser has joined #ruby
desperek has quit [Quit: xoxo]
n0m4d1c has joined #ruby
cschneid has quit [Remote host closed the connection]
sanscoeu_ has joined #ruby
drewmcmi_ has joined #ruby
n0m4d1c has quit [Read error: Connection reset by peer]
n0m4d1c has joined #ruby