havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first! | BLM <3
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
chouhoulis has joined #ruby
powerhouse has quit [Quit: Leaving]
powerhouse has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
<impermanence> apotheon: not at all friend :)
<impermanence> I was saying "god no" as in "I suck at writing Ruby"
phaul has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
rubydoc has quit [Ping timeout: 246 seconds]
bmurt has quit [Client Quit]
<apotheon> impermanence: ah
<apotheon> impermanence: Practice makes . . . somewhat more comfortable!
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has quit [Ping timeout: 260 seconds]
<impermanence> yep
bmurt has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Leaving]
cow[moo] has joined #ruby
orbyt_ has joined #ruby
dcunit3d has joined #ruby
dcunit3d has quit [Client Quit]
dcunit3d has joined #ruby
phaul has joined #ruby
rubydoc has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
bmurt has joined #ruby
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand_ is now known as roshanavand
bmurt has quit [Client Quit]
bmurt has joined #ruby
bmurt has quit [Client Quit]
ChmEarl has quit [Quit: Leaving]
m_antis has joined #ruby
ap4y has quit [Ping timeout: 260 seconds]
ByronJohnson has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bairyn has joined #ruby
bairyn is now known as ByronJohnson
Technodrome has joined #ruby
m_antis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
semitones is now known as semighost
m_antis has joined #ruby
m_antis has quit [Remote host closed the connection]
adu has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
m_antis has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
ap4y has joined #ruby
adu has quit [Quit: adu]
bocaneri has joined #ruby
FastJack has quit [Ping timeout: 272 seconds]
FastJack has joined #ruby
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
cd has quit [Quit: cd]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem_ has joined #ruby
akem has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
BSaboia has joined #ruby
joshuacronemeyer has joined #ruby
akem_ has quit [Quit: Leaving]
zapata has quit [Quit: WeeChat 2.9]
akem has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
imode has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
rippa has joined #ruby
ap4y has quit [Ping timeout: 265 seconds]
mohsen_in has joined #ruby
Technodrome has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
mohsen_in has quit [Remote host closed the connection]
mohsen_in has joined #ruby
universa1 has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
ellcs has quit [Ping timeout: 260 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justHaunted has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
mohsen_in has quit [Quit: Leaving]
universa1 has joined #ruby
weaksauce has quit [Ping timeout: 260 seconds]
justHaunted has joined #ruby
Rudd0 has quit [Ping timeout: 272 seconds]
al2o3-cr has quit [Quit: WeeChat 2.9]
timmow has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
al2o3-cr has joined #ruby
yasumi2136 has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.9]
al2o3-cr has joined #ruby
bmurt has joined #ruby
ChmEarl has joined #ruby
adu has joined #ruby
cow[moo] has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ua_ has quit [Ping timeout: 260 seconds]
Liothen has quit [Ping timeout: 272 seconds]
Liothen has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ua_ has joined #ruby
d10n-work has quit [Read error: Connection reset by peer]
BuildTheRobots has quit [Read error: Connection reset by peer]
d10n-work has joined #ruby
BuildTheRobots has joined #ruby
zapata has joined #ruby
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
Rudd0 has joined #ruby
m_antis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timhugh has joined #ruby
timhugh has quit [Remote host closed the connection]
orbyt_ has joined #ruby
cd has joined #ruby
TCZ has joined #ruby
banisterfiend has joined #ruby
cnsvc has joined #ruby
ellcs has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.9]
vondruch has quit [Quit: vondruch]
al2o3-cr has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
roshanavand_ has joined #ruby
vondruch has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
roshanavand_ is now known as roshanavand
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has quit [Ping timeout: 240 seconds]
vondruch has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Deesl has joined #ruby
vondruch has joined #ruby
TCZ has quit [Quit: Leaving]
vondruch has quit [Read error: Connection reset by peer]
brainfunnel has joined #ruby
adu has quit [Quit: adu]
banisterfiend has joined #ruby
vondruch has joined #ruby
ap4y has joined #ruby
ap4y has quit [Ping timeout: 272 seconds]
imode has joined #ruby
TCZ has joined #ruby
ap4y has joined #ruby
silverdust has joined #ruby
<isene> After serious amount of Googling, I ask here; Is there any way to get user input via Readline under Curses (the Curses.getstr is awfully rudimentary)? I'm at the point where I'm contemplating writing a simpler Readline replacement for input in my RTFM (https://github.com/isene/RTFM) - but want to check if there is indeed a shorter route.
Deesl has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
<apotheon> Is there anywhere with Heroku-like support for Ruby application deployment/hosting that doesn't cost seven bucks a month per domain to have HTTPS support?
<CommunistWolf> anything that uses the heroku buildpacks. brightbox used to, I don't know if they still do
Rudd0 has quit [Ping timeout: 260 seconds]
<apotheon> This is the first I've heard of something else using Heroku buildpacks.
<CommunistWolf> it was pretty common some years ago
<apotheon> Hmm. This looks somewhat promising: https://github.com/buildpacks/community/blob/main/ADOPTERS.md
<apotheon> I guess I'll have to look into some of those.
agent_white has joined #ruby
<apotheon> It's a bit annoying that Heroku requires an upgrade to a seven dollar a month dyno per application/domain just to get Let's Encrypt certificate support.
<ruurd> Well, that has hardly anything to do with Ruby innit?
weaksauce has joined #ruby
volty has joined #ruby
<apotheon> I suppose, but I figured Rubyists might have some idea about this stuff.
<apotheon> I don't know of a better place to ask.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<ruurd> Uhm, well, Ruby apps are not the only apps that run on Heroku nowadays...
<apotheon> . . . and it's tangentially related, considering I'm trying to move some Ruby applications to decent hosting.
<apotheon> Okay, fine, I won't ask any questions here, I guess.
<apotheon> unless they include Ruby code
<ruurd> tsk tsk tsk
<apotheon> fuck
<ruurd> Hold your horses.
<apotheon> There wasn't any other conversation here.
<apotheon> . . . but I guess we can maintain the precious silence.
<ruurd> You /could/ host on your own...
<apotheon> much more expensive
<ruurd> I mean I can imagine that Heroku is getting expensive given it includes everything and the kitchensink nowadays.
<ruurd> Hashicorp maybe?
<ruurd> AWS?
<ruurd> Or that blue whatever whatsitsname?
<ruurd> Thing is all those are definitely NOT easier to maintain. In that respect Heroku is quite easy to do. Just push and forget.
<adam12> apotheon: Free Cloudflare might work in front of Heroku. I'm not a huge Cloudflare fan but it might work for you in this case.
<adam12> apotheon: There's also Render.com but no free tier like Heroku; $7/month out of the gate.
<apotheon> The "easy" party is imortant. I'm overburdened by sysadmin crap with multiple domains and VPS infrastucture that's falling apart.
ur5us has joined #ruby
<apotheon> s/imortant/important/
<ruurd> well beggars can't be choosers rite. sorry about that. which sortakinda means that 7 bucks a month buys you some easy of mind.
<apotheon> It's 7/mo per dyno.
<ruurd> How many dynos do you run?
<apotheon> I don't need free, but I do need a relatively low price cap.
<apotheon> It would be at least six.
<apotheon> (at least six different applications)
<apotheon> That's how many I recall off the top of my head.
<ruurd> Is there a chance to run more than one on a dyno no that's impossible afaic
<ruurd> c>k
<apotheon> Yeah, that's not an option on Heroku.
<apotheon> It looks like render.com would cost at least 7/mo, as well, because DBs cost separately from the look of it.
<ruurd> And what does a reasonable ec2 instance set you back?
<apotheon> It sets me back a bunch of extra sysadmin time.
yasumi2136 has quit [Ping timeout: 240 seconds]
<ruurd> yeah AWS is the same thing. DB is not cheap if managed
<ruurd> ok what would 42 dollars get you in terms of time?
<apotheon> Heroku gives you basic PostgreSQL DB usage for a web application as part of the free tier.
<apotheon> Nothing. My time is somewhat limited, and it's not enough money to pay someone else to do it.
<apotheon> I'll just have to go with no TLS, I guess, and occasionally get some asshole on the internet giving me shit for not doing everything myself.
<apotheon> Forget it. I guess there isn't a solution.
<adam12> apotheon: What about Cloudflare + Heroku?
<apotheon> adam12: I'm not sure how that works, actually. Doesn't that involve static caches?
<apotheon> i.e. not dynamic DB-driven applications, really
<adam12> apotheon: It just acts as a reverse proxy. You could turn off the static cache bit I bet.
<adam12> apotheon: Just always send a no-cache header.
<apotheon> ah
<apotheon> hmm
<apotheon> I guess I might have to consider that.
<adam12> apotheon: I mean, it's a temporary solution. Outside of that, cheapest VM you can find running Caddy.
<adam12> Then reverse proxy to the Heroku free-ssl URL (I think it's a something.herokuapp.com URL)
<adam12> s/temporary/?? People run Cloudflare all the time, I'm just not a fan. It could be permanent, for you.
<apotheon> Yeah, that's how the Heroku applications look without a custom domain.
<apotheon> I know that I've run into a number of people who refuse to even visit sites fronted by Cloudflare.
<adam12> apotheon: Cheap VM from somewhere like Ramnode will run you $3. Caddy is a single binary + systemd unit file. Set your favourite distro to auto-upgrade and then forget about it.
<apotheon> hmm
<adam12> Still sys-admin but I feel effort would be low.
<apotheon> It'd definitely be lower than what I'm abandoning.
<apotheon> I could give it a try and, if it's not low enough effort, drop the idea.
<apotheon> Thanks.
<adam12> apotheon: Cheers.
<apotheon> I guess the plan is to set up everything on Heroku while the domains are still pointing elsewhere, then try setting up Caddy.
<adam12> apotheon: Caddy is insanely simple to setup. Probably looking at like 3 lines a vhost.
<apotheon> nice
silverdust has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
silverdust has joined #ruby
silverdust has quit [Ping timeout: 260 seconds]
silverdust has joined #ruby
<ruurd> OK starting with zero caddy knowledge I managed to get it running and even proxying for php
ur5us has quit [Ping timeout: 260 seconds]
<ruurd> In... 10 minutes or so
TCZ has quit [Quit: Leaving]
silverdust has quit [Ping timeout: 256 seconds]
Rudd0 has joined #ruby
volty has quit [Quit: Konversation terminated!]
silverdust has joined #ruby
silverdust has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
apoc has quit [Ping timeout: 260 seconds]
silverdust has joined #ruby
FastJack has quit [Ping timeout: 272 seconds]
cnsvc has quit [Remote host closed the connection]
FastJack has joined #ruby
silverdust has quit [Ping timeout: 258 seconds]
silverdust has joined #ruby
TCZ has joined #ruby
joast has joined #ruby
silverdust has quit [Ping timeout: 260 seconds]
rapha has joined #ruby
<rapha> hi all
<rapha> in https://gist.github.com/sixtyfive/113e133781ce5860b31f798ff4e81787 , is there any reason why the query from ruby would give only 1 result, but the one from the commandline client gives 90?
<nakilon> rapha, the same Time.now ?
<rapha> nakilon: yes; see the comments. those are the values i tried with.
<nakilon> also the same timezones?
<rapha> (there's a new one each second, fwiw)
<rapha> (yup, it's the same box)
<rapha> oh wait, even on the same box it might be different timezones?
<nakilon> I don't know this db and gem but why not
<jhass> rapha: I see ' vs "
<nakilon> env vars, connection parameters, etc.
<rapha> indeed ... the ' vs. " doesn't do anything, but giving fixed strings in, that makes things work
<jhass> what if you start out with Time.now - 10?
<jhass> (since it'll take you some time to manually run the query based on the output of the last command, that's a diff I see)
* nakilon has just read that you are supposed to prefer double quotes for strings
<nakilon> (in sqlite)
<jhass> MySQL is the PHP of databases and SQLite is the JS :D
<rapha> ur so what's the C# of databases then and what's the Ruby?
<jhass> I've never done any C#. I'd be inclined to say access but I think access has a higher WTF rate than C#. again, having used neither
<jhass> for Ruby, idk, CouchDB I guess
<rapha> didn't use C#, but did have to use VBA for Excel and feel qualified to say that has a _very_ high wtf-rate
* rapha googles CouchDB
<nakilon> C# is cool but needs 10 times more code to type compared to Ruby
impermanence has quit [Quit: Connection closed]
<rapha> that's true for basically everything but Haskell
joshuacronemeyer has quit [Ping timeout: 260 seconds]
<jhass> I claim Crystal is max 3x, 1.5x times on average :)
roshanavand has quit [Ping timeout: 260 seconds]
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
agent_white has quit [Quit: bbl]
henninb has joined #ruby