havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview3: 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!
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has quit [Ping timeout: 240 seconds]
code_zombie has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
drincruz has joined #ruby
Swyper has quit [Remote host closed the connection]
DTZUZO has quit [Quit: WeeChat 2.0]
Swyper has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
falconfox has joined #ruby
stooj has quit [Quit: ZNC 1.7.3 - https://znc.in]
stooj has joined #ruby
DTZUZO has joined #ruby
sameerynho has quit [Ping timeout: 265 seconds]
spacesuitdiver has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 252 seconds]
AJA4351 is now known as AJA4350
Swyper has quit [Remote host closed the connection]
baojg has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
thebetra1 has quit [Ping timeout: 246 seconds]
drincruz has joined #ruby
howdoi has joined #ruby
alfiemax has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
drincruz has quit [Ping timeout: 246 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
thebetra1 has joined #ruby
normanrockwell has joined #ruby
normanrockwell has quit [Remote host closed the connection]
normanrockwell has joined #ruby
thebetra1 has quit [Ping timeout: 276 seconds]
brool has joined #ruby
AJA4351 has joined #ruby
normanrockwell has quit [Ping timeout: 265 seconds]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
drincruz has joined #ruby
normanrockwell has joined #ruby
brool has quit [Ping timeout: 252 seconds]
normanrockwell has quit [Remote host closed the connection]
obx has quit [Quit: WeeChat 2.6]
falconfox has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 245 seconds]
tsrt^ has quit []
normanrockwell has joined #ruby
TzilTzal has joined #ruby
zlogan has quit [Ping timeout: 246 seconds]
falconfox has joined #ruby
mariusz-kowalski has joined #ruby
falconfox has quit [Ping timeout: 245 seconds]
normanrockwell has quit [Remote host closed the connection]
harai has joined #ruby
zlogan has joined #ruby
ivanskie has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
AJA4350 has quit [Ping timeout: 240 seconds]
tpanarch1st_ has joined #ruby
alfiemax has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 250 seconds]
falconfox has joined #ruby
harai has quit [Remote host closed the connection]
harai has joined #ruby
thebetra1 has joined #ruby
thebetra1 has quit [Ping timeout: 252 seconds]
roboirc has joined #ruby
Nahra has quit [Ping timeout: 265 seconds]
jmcgnh has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
Swyper has joined #ruby
drincruz has joined #ruby
gix- has quit [Ping timeout: 250 seconds]
drincruz has quit [Ping timeout: 245 seconds]
ivanskie has joined #ruby
donofrio_ has quit [Remote host closed the connection]
dellavg has quit [Ping timeout: 240 seconds]
nixy3 has quit [Quit: The Lounge - https://thelounge.chat]
nixy3 has joined #ruby
Swyper has quit [Remote host closed the connection]
drincruz has joined #ruby
zlogan has quit [Ping timeout: 276 seconds]
drincruz has quit [Ping timeout: 252 seconds]
Inline has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
falconfox has quit [Ping timeout: 240 seconds]
bvdw has quit [Read error: Connection reset by peer]
mynameisdebian has joined #ruby
bvdw has joined #ruby
raddazong has quit [Remote host closed the connection]
Technodrome has joined #ruby
madhatter has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rainmanjam has joined #ruby
jmcgnh has quit [Ping timeout: 250 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
twb has joined #ruby
Nicmavr has joined #ruby
<twb> OK so I inherited some ROR code that's using some kind of ORM to talk to MySQL. Once a week it dumps an SQL SELECT into CSV format, for some business-to-business crap.
<twb> Now, it broke 4 weeks ago, and I'm trying to work out how to generate a backdated query.
<twb> Problem is I can speak SQL and can more-or-less read ruby, but I don't speak this ORM. And it's not clear to me whether the query is done this way because of the ORM, or because the previous developer was... not fluent in SQL
<roboirc> whats the latest version of ruby?
jmcgnh has joined #ruby
<twb> http://ix.io/22NC/ruby is what I'm looking at
<twb> roboirc: Stable release 2.6.5^[1] (October 1, 2019; 53 days ago (2019-10-01)) [±]
<roboirc> thanks
<roboirc> What is rubymine v7 as compared to rubymine 2018 from jetbrains?
<twb> ...so anyway, in that paste, you can see they're constructing a query by concatenating strings together (instead of using a query builder), AND they seem to be doing it where a simple JOIN would suffice... so wtf
<twb> roboirc: based on ten seconds quacking, it looks to me like rubymine is *always* from jetbrains
<roboirc> ok
<roboirc> then how come they have software called rubymine 2018 and rubymine v7 on google in trial software?
<twb> https://www.jetbrains.com/ruby/whatsnew/ only mentions "YYYY.N" style versions, so no idea where "v7" fits into that
phaul has quit [Ping timeout: 265 seconds]
<roboirc> ok
<roboirc> thanks
phaul has joined #ruby
<twb> Can I make that function print the raw SQL query before/instead of executing it
<twb> It looks to me like the answer is "no, because this is badly-written and does lots of small SQL queries and then joins them together in ruby, instead of just doing it all efficiently in the RDBMS"
tpanarch1st_ has quit [Ping timeout: 240 seconds]
infinityfye has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
davor has quit [Ping timeout: 240 seconds]
davor has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
mynameisdebian has quit [Read error: Connection reset by peer]
mynameisdebian has joined #ruby
phaul has joined #ruby
im0nde_ has joined #ruby
im0nde has quit [Ping timeout: 276 seconds]
phaul has quit [Ping timeout: 240 seconds]
conta has joined #ruby
<twb> ohhhhh kill me
<twb> one of the tables in this database? It's NOT IN the database.
<twb> It's a ruby hash table
<roboirc> who you talking to, twb?
<twb> roboirc: mostly myself :-(
<roboirc> seems like it
conta1 has joined #ruby
phaul has joined #ruby
conta has quit [Ping timeout: 265 seconds]
conta1 is now known as conta
phaul has quit [Ping timeout: 240 seconds]
roboirc has left #ruby ["Closing Window"]
dionysus69 has joined #ruby
phaul has joined #ruby
andikr has joined #ruby
phaul has quit [Ping timeout: 245 seconds]
bsdbandit-01 has joined #ruby
phaul has joined #ruby
TzilTzal_ has joined #ruby
phaul has quit [Ping timeout: 252 seconds]
TzilTzal has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
segy has joined #ruby
phaul has quit [Ping timeout: 252 seconds]
code_zombie has quit [Quit: Leaving]
drincruz has joined #ruby
harai has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
dinfuehr has quit [Ping timeout: 276 seconds]
phaul has joined #ruby
dinfuehr has joined #ruby
harai has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 245 seconds]
phaul has quit [Ping timeout: 265 seconds]
JoeA2552 has joined #ruby
dionysus69 has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
evert has quit [Quit: ZNC - https://znc.in]
evert has joined #ruby
phaul has joined #ruby
TzilTzal has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
TzilTzal_ has quit [Ping timeout: 265 seconds]
infinityfye has quit [Ping timeout: 245 seconds]
al2o3-cr has quit [Quit: WeeChat 2.6]
phaul has joined #ruby
al2o3-cr has joined #ruby
infinityfye has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoeA2552 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
rick_ has joined #ruby
mynameisdebian has quit [Ping timeout: 252 seconds]
andikr has quit [Remote host closed the connection]
infinityfye has quit [Remote host closed the connection]
infinityfye has joined #ruby
infinityfye has quit [Remote host closed the connection]
JoeA2552 has joined #ruby
infinityfye has joined #ruby
infinityfye has quit [Client Quit]
twb has quit [Remote host closed the connection]
JoeA2552 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kent\n has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ruby
kent\n has joined #ruby
TzilTzal_ has joined #ruby
TzilTza__ has joined #ruby
TzilTzal has quit [Ping timeout: 240 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
rick_ has quit [Ping timeout: 250 seconds]
TzilTzal_ has quit [Ping timeout: 265 seconds]
drincruz has joined #ruby
mynameisdebian has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
chihhsin has quit [Quit: leaving]
lxsameer has joined #ruby
Guest48 has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 250 seconds]
<al2o3-cr> the new irb is pretty cool!
lineus_ is now known as lineus
TzilTza__ has quit []
Guest48 has joined #ruby
schne1der has joined #ruby
zlogan has joined #ruby
Guest48 is now known as smurfke
chalkmonster has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
misterwhatever has joined #ruby
shaman42 has quit [Quit: Lost terminal]
shaman42 has joined #ruby
Nahra has joined #ruby
Nahra has joined #ruby
misterwhatever has quit [Excess Flood]
ellcs has joined #ruby
chihhsin has joined #ruby
misterwhatever has joined #ruby
thebetra1 has joined #ruby
thebetra1 has quit [Ping timeout: 276 seconds]
smurfke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
misterwhatever has quit [Ping timeout: 265 seconds]
MrCrackPot has quit [Remote host closed the connection]
Guest48 has joined #ruby
bvdw has quit [Quit: Ping timeout (120 seconds)]
catphish has joined #ruby
bvdw has joined #ruby
<catphish> does anyone happen to know why STDOUT.close doesn't seem to actually close STDOUT?
manakanapa has quit [Ping timeout: 245 seconds]
manakanapa has joined #ruby
gdonald_ has joined #ruby
MasterNayru_ has joined #ruby
ExoUNX has quit [Ping timeout: 240 seconds]
thomas_25 has quit [Quit: FreeZNC - Visit us! Server: irc.freenode.org Channel: #bnc4you]
MasterNayru has quit [Remote host closed the connection]
gdonald has quit [Ping timeout: 240 seconds]
rick_ has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BusterTheDummy has joined #ruby
justinmcp_ has joined #ruby
pelegreno__ has joined #ruby
teclator_ has joined #ruby
nibbo_ has joined #ruby
spiette has quit [Ping timeout: 250 seconds]
ozzloy_ has joined #ruby
camilasan_ has joined #ruby
alfiemax has joined #ruby
misterwhatever has joined #ruby
ekaleido has joined #ruby
xNetX0 has joined #ruby
mynameisdebian has quit [Read error: Connection reset by peer]
NODE has quit [Quit: changing servers]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
IanMalcolm has quit [Remote host closed the connection]
teclator has quit [Quit: No Ping reply in 180 seconds.]
camilasan has quit [Remote host closed the connection]
NL3limin4t0r_afk has quit [Ping timeout: 240 seconds]
ozzloy has quit [Ping timeout: 240 seconds]
nibbo has quit [Remote host closed the connection]
kaleido has quit [Ping timeout: 240 seconds]
NL3limin4t0r_afk has joined #ruby
hiroaki has quit [Ping timeout: 240 seconds]
pelegreno_ has quit [Ping timeout: 240 seconds]
xNetX0 has quit [Client Quit]
hiroaki has joined #ruby
suukim has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
thomas_25 has joined #ruby
NODE has joined #ruby
BusterTheDummy has quit [Quit: ZNC 1.7.5 - https://znc.in]
IanMalcolm has joined #ruby
phaul is now known as Guest53132
phaul has joined #ruby
misterwhatever has quit [Ping timeout: 245 seconds]
Guest48 has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
misterwhatever has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
misterwhatever has left #ruby [#ruby]
alfiemax has quit [Remote host closed the connection]
GodFather has joined #ruby
NODE has quit [Quit: changing servers]
teclator_ has quit [Ping timeout: 240 seconds]
NODE has joined #ruby
teclator has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
alfiemax has joined #ruby
Swyper has quit [Remote host closed the connection]
Jonopoly has joined #ruby
drincruz has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
Guest48 has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
grilix has joined #ruby
Guest48 has quit [Client Quit]
thebetra1 has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
Nahra has quit [Ping timeout: 246 seconds]
DTZUZO has joined #ruby
GodFather has quit [Ping timeout: 245 seconds]
drincruz has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
rwb has quit [Read error: Connection reset by peer]
rwb has joined #ruby
phaul has joined #ruby
cgfbee has quit [Remote host closed the connection]
drincruz has joined #ruby
rwb has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 240 seconds]
jcalla has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
teclator has joined #ruby
phaul has joined #ruby
drincruz has quit [Ping timeout: 246 seconds]
MrCrackPot has joined #ruby
AJA4350 has joined #ruby
cgfbee has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
thebetra1 has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 276 seconds]
Guest48 has joined #ruby
Technodrome has joined #ruby
<leah2> works in irb :P
stryek has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
im0nde_ has quit [Ping timeout: 240 seconds]
thebetra1 has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
cow[moo] has joined #ruby
Guest48 has joined #ruby
im0nde has joined #ruby
BH23 has joined #ruby
JoeA2552 has joined #ruby
phaul has quit [Quit: WeeChat 2.6]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
falconfox has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
jcalla has joined #ruby
fromplanetruby has joined #ruby
drincruz has joined #ruby
fromplanetruby has quit [Quit: WeeChat 2.6]
AJA4350 has quit [Ping timeout: 252 seconds]
cd has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
Jonopoly has joined #ruby
AJA4350 has joined #ruby
spiette has joined #ruby
diego_ has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fig-le-deunch has joined #ruby
teclator has quit [Ping timeout: 250 seconds]
teclator has joined #ruby
Mrbuck has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
teclator_ has joined #ruby
teclator has quit [Ping timeout: 250 seconds]
fig-le-deunch has joined #ruby
diego_ has quit [Remote host closed the connection]
diego_ has joined #ruby
diego_ has quit [Client Quit]
teclator_ is now known as teclator
chalkmonster has quit [Quit: WeeChat 2.6]
spacesuitdiver has joined #ruby
Mrbuck has quit [Remote host closed the connection]
GodFather has joined #ruby
jottr has joined #ruby
<catphish> leah2: so it does
<catphish> in my code, i fork, then try to close it in the fork, but it seems to remain open, using #reopen('/dev/null') works though
<catphish> and is probably a better solution anyway
<catphish> but it's odd
<leah2> catphish: well in the parent it stays open
<leah2> that's how forking works
<catphish> you'd think so, but that wouldn't explain why it ramained open after the partent exited :)
<leah2> nah it's closed in the child
<catphish> here is my specific test case: 1) create a ruby file on a server as follows https://paste.ubuntu.com/p/nN9QZxWrWq/ 2) execute this via SSH non-interactively: ssh host ruby forker.rb 3) observe the mess https://paste.ubuntu.com/p/rx3KX9dSyX/ 4) observe the open files in the child https://paste.ubuntu.com/p/VPwpW3qzZW/
alfiemax has joined #ruby
rwb has joined #ruby
<catphish> leah2: i realise it *should* close, but it seems clear that this isn't always the case, and it's quite baffling, maybe strace can shed some light on it
<leah2> yeah look at the syscall level
conta has quit [Ping timeout: 265 seconds]
<catphish> it doesn't seem to close it :(
<catphish> strace -e close ruby -e 'STDOUT.close'
<catphish> even that doesn't close it
ekaleido is now known as kaleido
<catphish> even more explicit: strace -e close ruby -e 'IO.for_fd(1).close'
Guest53132 has quit [Ping timeout: 240 seconds]
<catphish> extra fun: ruby -e 'IO.for_fd(1).close; STDOUT.puts "hi"'
Guest53132 has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has quit [Ping timeout: 265 seconds]
<catphish> i think there's some cleverness going on here beyond my understanding, but if anyone knows, i'd love to be filled in :)
Guest53132 has quit [Ping timeout: 250 seconds]
schne1der has joined #ruby
drincruz_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 265 seconds]
Guest53132 has joined #ruby
Guest53132 has quit [Ping timeout: 265 seconds]
orbyt_ has joined #ruby
Guest53132 has joined #ruby
alfiemax has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
ivanskie has joined #ruby
Guest53132 has quit [Ping timeout: 250 seconds]
fig-le-deunch has quit [Quit: Konversation terminated!]
Guest53132 has joined #ruby
AJA4351 has joined #ruby
ule has quit [Changing host]
ule has joined #ruby
Guest53132 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
AJA4350 has quit [Ping timeout: 265 seconds]
Guest53132 has joined #ruby
jordanm has joined #ruby
grilix has quit [Ping timeout: 252 seconds]
Guest53132 has quit [Ping timeout: 276 seconds]
lalitmee has joined #ruby
NODE has quit [Quit: changing servers]
Guest53132 has joined #ruby
NODE has joined #ruby
drincruz has joined #ruby
NODE has quit [Client Quit]
alfiemax has quit [Remote host closed the connection]
drincruz_ has quit [Ping timeout: 245 seconds]
NODE has joined #ruby
Guest53132 has quit [Ping timeout: 265 seconds]
NODE has quit [Client Quit]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has joined #ruby
Guest53132 has joined #ruby
grilix has joined #ruby
Guest53132 has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
grilix has quit [Ping timeout: 252 seconds]
Guest53132 has joined #ruby
davidw has joined #ruby
davidw has joined #ruby
NODE has quit [Quit: changing servers]
Guest53132 has quit [Ping timeout: 240 seconds]
cow[moo] has quit [Ping timeout: 265 seconds]
NODE has joined #ruby
Guest53132 has joined #ruby
brool has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nicmavr has quit [Read error: Connection reset by peer]
mark1_ has joined #ruby
ivanskie has joined #ruby
<mark1_> Just asked this in #rubyonrails, hope I can repeat here:
Nicmavr has joined #ruby
<mark1_> Little confused - if Puma is a webserver, what does that make Nginx? A proxy?
<mark1_> Or is Puma only the dev mode webserver, while Nginx is the production webserver?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jonopoly has quit [Ping timeout: 276 seconds]
<leah2> catphish: 4629 if (IS_PREP_STDIO(fptr) || fd <= 2) {
<leah2> /* need to keep FILE objects of stdin, stdout and stderr */
<xpitr> puma is more specialized i guess. and i like using nginx as caching proxy in front of it
<leah2> it wont close them
<leah2> curious
<leah2> fptr_finalize_flush
<mark1_> xpitr: Ah ok
<catphish> leah2: interesting, you can reopen them though, which i guess uses the same FD and keeps the C file object
<mark1_> xpitr: But how to explain this to someone who doesn't know?
<leah2> it worked in 1.8 ;)
<catphish> mark1_: puma is a web server that specifically runs ruby code inside it (often called an application server), nginx is a more general purpose web server, which can serve static files, and also proxy to an application server (which is the usual production setup)
<mark1_> xpitr: I see my app's sites_enabled nginx conf references puma.sock..
<mark1_> ah ok, cool
<catphish> leah2: perhaps i will just go back to trusty 1.8.7 /s
<mark1_> thanks xpitr !
Guest53132 has quit [Ping timeout: 240 seconds]
<xpitr> mark1_: maybe puma can listen on unix socket? no idea tbh i always use tcp there
<catphish> it probably can
<leah2> catphish: good times :P
<xpitr> not sure unix socket is faster but kiunda makes sense anyway
<havenwood> mark1_: puma -e production -b unix:///var/run/puma/mark1.sock
<havenwood> I usually see /var or /tmp
rippa has joined #ruby
<mark1_> i got upstream myapp { server unix:/home/www/myapp/tmp/puma.sock; }
NODE has quit [Quit: changing servers]
<havenwood> mark1_: NGINX is a webserver. Puma is a webserver. You do NOT need to put Puma behind NGINX.
<havenwood> mark1_: That said, NGINX is quite good at serving up static files and can reverse proxy to another webserver easily.
NODE has joined #ruby
<mark1_> i see i see, great
<xpitr> you can also easily scale it, if you have multiple servers running puma app, then have multiple server lines in upstream { ... }
<mark1_> havenwood: any idea if OpenBSD's new httpd can be used to serve Rails apps?
<mark1_> haven't found any tutorials and im too stupid to make sense of this myself
<mark1_> xpitr: nice!
Guest53132 has joined #ruby
<havenwood> mark1_: If you run your Rack app with FastCGI middleware, it should be possible. I haven't tried. http://recipes.sinatrarb.com/p/deployment/fastcgi?#label-FastCGI
<havenwood> mark1_: Those ^ Sinatra FastCGI instructions should work with Rack apps generally.
FlorianFa has quit [Quit: Leaving]
<mark1_> indeed indeed
<mark1_> thanks :)
NODE has quit [Quit: changing servers]
<mark1_> "I too find it confusing -- but what's normal is using Puma as a webserver and Nginx as cached/reversed proxy. Nginx is also good for serving static files, plus is a nice way to host multiple Rails apps."
<NL3limin4t0r> mark1_: NGINX can also be used as a load ballancer.
Guest53132 has quit [Ping timeout: 265 seconds]
NODE has joined #ruby
<NL3limin4t0r> Assuming you have a cluster of servers.
<mark1_> awesome, didn't know
falconfox has quit [Remote host closed the connection]
NODE has quit [Client Quit]
AJA4350 has joined #ruby
NODE has joined #ruby
<NL3limin4t0r> From wikipedia: Nginx is a web server which can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.
Guest53132 has joined #ruby
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
cthulchu has joined #ruby
Guest53132 has quit [Ping timeout: 250 seconds]
BH23 has quit [Ping timeout: 240 seconds]
Guest53132 has joined #ruby
rick_ has quit [Ping timeout: 252 seconds]
lalitmee has quit [Quit: Leaving]
Guest53132 has quit [Ping timeout: 252 seconds]
tpanarch1st_ has joined #ruby
Guest53132 has joined #ruby
teclator has quit [Ping timeout: 250 seconds]
teclator has joined #ruby
Guest96919 has joined #ruby
Guest96919 is now known as RougeRR
<RougeRR> hello
<RougeRR> would anyone care to explain why two hashes with equality are giving different results?
<RougeRR> only difference is one has been brought into scope with kwargs
<RougeRR> **kwargs
Guest53132 has quit [Ping timeout: 276 seconds]
<RougeRR> the one going through kwargs is giving TypeError: no implicit conversion of nil into Hash
<RougeRR> when trying to initalize a mailer gem
griffindy has joined #ruby
NODE has quit [Quit: changing servers]
teclator has quit [Ping timeout: 240 seconds]
griffindy has quit [Client Quit]
<catphish> RougeRR: different results how?
<catphish> oh, one has a nil hiding in it somewhere
alfiemax has quit [Read error: Connection reset by peer]
NODE has joined #ruby
<catphish> anyway, i must run now :)
catphish has left #ruby ["Leaving"]
alfiemax has joined #ruby
dev-rfc83 has joined #ruby
<RougeRR> oh got it
grilix has joined #ruby
<RougeRR> catphish i was using it inside an initialization block
<RougeRR> i.e Foo.new do; setup_object_here; end
<RougeRR> and during the block i was refering to an instance variable
alfiemax has quit [Remote host closed the connection]
Guest53132 has joined #ruby
<RougeRR> which was no longer in scope as within the block it would be refering to the new object being created
dviola has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
tpanarch1st_ has quit [Quit: Thanks for your help, nice to see you, take care.]
Guest53132 has quit [Ping timeout: 276 seconds]
griffindy has joined #ruby
griffindy has quit [Client Quit]
Guest53132 has joined #ruby
Guest53132 has quit [Ping timeout: 245 seconds]
mgraf has joined #ruby
Guest53132 has joined #ruby
ffl^ has joined #ruby
Guest53132 has quit [Ping timeout: 245 seconds]
Guest53132 has joined #ruby
ogres has joined #ruby
dev-rfc83 has quit [Ping timeout: 265 seconds]
Guest53132 has quit [Ping timeout: 276 seconds]
kobain has joined #ruby
chalkmonster has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
Guest53132 has joined #ruby
cliluw has joined #ruby
akemhp_ has joined #ruby
Inline has joined #ruby
bsdbandit-01 has quit [Remote host closed the connection]
RougeRR has quit [Ping timeout: 240 seconds]
akem has quit [Ping timeout: 276 seconds]
lucasb has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
fig-le-deunch has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
dev-rfc83 has joined #ruby
poontangmessiah has joined #ruby
NODE has joined #ruby
fphilipe has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
gix has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
sameerynho has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
dev-rfc83 has quit [Ping timeout: 250 seconds]
monika has joined #ruby
sagax has quit [Ping timeout: 240 seconds]
JoeA2552 has quit [Quit: Textual IRC Client: www.textualapp.com]
dev-rfc83 has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
lxsameer has quit [Ping timeout: 245 seconds]
Guest48 has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest48 has joined #ruby
jinie has quit [Ping timeout: 246 seconds]
AJA4351 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Guest48 has quit [Client Quit]
foxxx0 has quit [Quit: foxxx0]
suukim has quit [Quit: Konversation terminated!]
foxxx0 has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dev-rfc83 has quit [Ping timeout: 268 seconds]
jinie has joined #ruby
TomyLobo has joined #ruby
fphilipe has joined #ruby
Rapture has joined #ruby
misterwhatever has joined #ruby
Guest48 has joined #ruby
NODE has quit [Quit: changing servers]
Rapture has quit [Client Quit]
NODE has joined #ruby
zapata has quit [Ping timeout: 276 seconds]
dev-rfc83 has joined #ruby
kapil_ has quit [Quit: Connection closed for inactivity]
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest48 has joined #ruby
monika has quit [Quit: WeeChat 2.6]
jinie_ has joined #ruby
jinie has quit [Ping timeout: 246 seconds]
jinie_ is now known as jinie
sgen has joined #ruby
krawchyk has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sgen has quit [Client Quit]
NODE has quit [Client Quit]
dev-rfc83 has quit [Ping timeout: 265 seconds]
NODE has joined #ruby
jinie has quit [Ping timeout: 265 seconds]
Guest48 has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has quit [Quit: WeeChat 2.6]
harai has quit [Quit: harai]
Guest48 has joined #ruby
joast has quit [Quit: Leaving.]
Guest48 has quit [Client Quit]
zapata has joined #ruby
BH23 has joined #ruby
jinie has joined #ruby
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
davidw has quit [Ping timeout: 276 seconds]
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
joast has joined #ruby
IanMalcolm has left #ruby ["Leaving"]
<dionysus69> hey all
<dionysus69> how would I do the following, obj.instance_variable_set(:@hash, { some_key: "some_value" }) but merge to an existing @hash set earlier?
mgraf has quit [Ping timeout: 245 seconds]
Nahra has joined #ruby
<dionysus69> ok I needed to think just a little more, obj.instance_variable_set(:@hash, (@hash || {}) .merge({ some_key: "some_value" }))
<Corey[m]> First of all, why are you accessing the instance variable of the object using instance_variable_get instead of using it's methods/accessors?
<Corey[m]> set*
mgraf has joined #ruby
<dionysus69> well, I am setting controller instance variable from outside, from another method
<dionysus69> Corey[m]: you mean, why not I just use (controller.hash || {}) .merge({ some_key: "some_value" }) ?
<Corey[m]> Partially
<dionysus69> yea need to play with pry little more
<Corey[m]> I mean doesn't the controller have a function that performs the merge internally
AJA4350 has quit [Ping timeout: 268 seconds]
<Corey[m]> There is always merge! which will mutate the hash in place
grilix has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
<Corey[m]> Note the ! at the end of the method name
<dionysus69> oh yea I am actually using merge!, forgot to write it here
<dionysus69> what happens if controller.hash is undefined can it be set from scratch like this? controller.hash1 = {}
Guest53132 has quit [Ping timeout: 246 seconds]
<dionysus69> controller.instance_variable_get(:@data) => {}
<dionysus69> controller.data => NoMethodError: undefined method `data' ForSomeController
<dionysus69> actually, yea, that's why I was using instance_variable_get/set method :)
<Corey[m]> If the controller has a attr_writer :hash1 or defines a hash1= method, then yes
<dionysus69> good point, I am not really native-comfy with those helper methods, I should be though I know :D
<dionysus69> will set it in application_controller
<dionysus69> accessor perhaps
Guest53132 has joined #ruby
jottr_ has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Guest48 has joined #ruby
Guest53132 has quit [Ping timeout: 276 seconds]
Guest48 has quit [Client Quit]
dev-rfc83 has joined #ruby
mgraf has quit [Ping timeout: 276 seconds]
Guest53132 has joined #ruby
jottr has joined #ruby
jottr__ has joined #ruby
Guest53132 has quit [Ping timeout: 240 seconds]
NODE has quit [Quit: changing servers]
jottr_ has quit [Ping timeout: 276 seconds]
NODE has joined #ruby
code_zombie has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
Guest53132 has joined #ruby
mgraf has joined #ruby
Guest53132 has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
Guest53132 has joined #ruby
ur5us has joined #ruby
poontangmessiah_ has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
Guest53132 has quit [Ping timeout: 276 seconds]
hiroaki has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
poontangmessiah has quit [Ping timeout: 265 seconds]
dev-rfc83 has quit [Ping timeout: 252 seconds]
Guest53132 has joined #ruby
Benett- has joined #ruby
Benett- has quit [Client Quit]
NODE has quit [Quit: changing servers]
ur5us has quit [Remote host closed the connection]
mgraf has quit [Ping timeout: 265 seconds]
NODE has joined #ruby
Guest53132 has quit [Ping timeout: 246 seconds]
NODE has quit [Client Quit]
mgraf has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
Guest53132 has joined #ruby
schne1der has quit [Ping timeout: 250 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
ur5us has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
hiroaki has joined #ruby
NODE has joined #ruby
mgraf has quit [Ping timeout: 276 seconds]
Guest53132 has quit [Ping timeout: 245 seconds]
NODE has quit [Client Quit]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
NODE has joined #ruby
Guest53132 has joined #ruby
donofrio_ has joined #ruby
Guest53132 has quit [Ping timeout: 265 seconds]
fphilipe has joined #ruby
Guest53132 has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
poontangmessiah_ has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
Guest53132 has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 265 seconds]
jottr__ has quit [Ping timeout: 268 seconds]
Guest53132 has joined #ruby
BH23 has quit [Ping timeout: 246 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
Guest53132 has quit [Ping timeout: 265 seconds]
Guest53132 has joined #ruby
drincruz has quit [Ping timeout: 246 seconds]
Guest53132 has quit [Client Quit]
phaul has joined #ruby
jinie has quit [Ping timeout: 246 seconds]
SeepingN has joined #ruby
jinie has joined #ruby
NODE has quit [Quit: changing servers]
mynameisdebian has joined #ruby
NODE has joined #ruby
RiPuk has quit [Remote host closed the connection]
RiPuk has joined #ruby
AJA4350 has joined #ruby
whathappens has joined #ruby
akem__ has joined #ruby
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 276 seconds]
akem__ has quit [Ping timeout: 265 seconds]
poontangmessiah has joined #ruby
camilasan_ has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
NightMonkey has joined #ruby
sameerynho has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 265 seconds]
donofrio_ has quit [Remote host closed the connection]
donofrio_ has joined #ruby
Technodrome has joined #ruby
grilix has joined #ruby