Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nickjj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
661.
▲
RailsCasts Retrospective Part 1: The Fuel
(rbates.dev)
197 points
by
nickjj
4y ago
|
38 comments
662.
▲
by
nickjj
4y ago
The terminal solution is handy but sometimes it fails because you could end up with a sign in link or some type of link with a very long token that wraps to multiple lines making it impossible to click. Rails also prints emails to the termi
663.
▲
by
nickjj
4y ago
> I feel like my original rails apps were making requests and I was returning HTML partials to be (crudely) diffed into the DOM? They weren't diff'd into the DOM client side. Optionally, there was SJR (Server-generated JavaScri
664.
▲
by
nickjj
4y ago
I've been using Hotwire[0] for a while now (Turbo + Stimulus) which works with any back-end, it's been great. It builds on everything you already know and doesn't require rewriting your app. Everything is treated as progressi
665.
▲
by
nickjj
4y ago
I've never seen Cucumber used in a big project after having done contract work for a long time but the idea of having user stories defined in a systematic way that's only used as extra context / documentation for complex feat
666.
▲
by
nickjj
4y ago
This is true. Do you have a use case where being off by a few frames might be a deal breaker? Personally I've created dozens of clips using this method and it always turns out ok. It gives you about ~1 second precision on where you wan
667.
▲
by
nickjj
4y ago
I love ffmpeg, a single command of `ffmpeg -ss 01:15:42 -to 01:16:00 -i example.mp4 -c copy output.mp4` will let you create a video clip at a certain point in time from a larger video without decoding/encoding it. I wrote a blog post a
668.
▲
by
nickjj
4y ago
Yep that's a really good one. Not being blocked helps a lot for getting things done.
669.
▲
by
nickjj
4y ago
https://basecamp.com/handbook
670.
▲
by
nickjj
4y ago
Jose, are there still plans to modify Elixir at the language level to be potentially closer to the Python implementation? I know you started a proposal once around the time when we made that repo.
671.
▲
by
nickjj
4y ago
That is a big change. After June 2023 Docker Compose v1 will officially no longer be supported. I probably won't switch right then and there to the new filename but that is at least one ball moving in the right direction to switch over
672.
▲
by
nickjj
4y ago
It's not included with these projects, as someone else mentioned in a reply to you, it can be handled in a number of different spots. For example, a load balancer running 1 level above your server or perhaps nginx running directly on y
673.
▲
by
nickjj
4y ago
Nope, I haven't run any Go code in production that was running in Docker. Go's ecosystem is also pretty fragmented so it would be difficult to create a solution that lots of folk would be happy with. I get the impression most folk
674.
▲
by
nickjj
4y ago
By default yes but you can change a single environment variable to not run Postgres or Redis through Docker Compose. You can also very easily choose to run Puma and Sidekiq on different servers. It leverages Docker Compose v2 profiles. I&#x
675.
▲
by
nickjj
4y ago
Thanks. Yep I've seen mrsk and even briefly chatted with DHH about it a day or 2 after he open sourced it. I have mixed feelings: On one hand I think it's fantastic Rails is starting to take on deployment officially. This is going
676.
▲
by
nickjj
4y ago
> So, am I still supposed to specify UID and GID? If you run your container as a non-root user and create a user without setting a UID / GID it'll default to 1000:1000, so unless your Docker host's user isn't 1000:100
677.
▲
by
nickjj
4y ago
There's a lot of "tool" selections in that repo. If anyone is looking for ready to go web app examples aimed at both development and production with Docker Compose, I maintain: - https://github.com/nickjj
678.
▲
by
nickjj
4y ago
I updated my example Docker / Phoenix app from 1.6 to 1.7 this morning. I put it all into 1 commit: https://github.com/nickjj/docker-phoenix-example/commit/3733... There were a number of things not cover
679.
▲
by
nickjj
4y ago
I think if this happened in 2014 it would be more accepted as a footgun since Docker was much less known then. But in 2021 they: - Ran their main DB in Docker without knowing the fundamentals of Docker - Shipped it to production w
680.
▲
by
nickjj
4y ago
Am I missing something? The article wrote: > When I containerized MongoDB, Docker helpfully inserted an allow rule into iptables, opening up MongoDB to the world But the blog post doesn't mention how Docker "helpfully inserted
681.
▲
by
nickjj
4y ago
I've noticed this trend with folks who move from Rails to Phoenix. At some point they switch and then never look at Rails again even if it's been years since they stopped using it. It's not like Rails was frozen in time at 20
682.
▲
by
nickjj
4y ago
> Unless I’m misunderstanding you, this is trivial in every stack I’ve used (.NET, Node, Rails, and Go). I can’t imagine why this would be difficult. It's trivial in Rails because the middleware mentioned handles it. Forms only allo
683.
▲
by
nickjj
4y ago
I like using `rails middleware` as an example because it's true, tons of things in that list are important. A good example of this is: Rack::MethodOverride Try making your non-JS server rendered view functions and HTML form submissions
684.
▲
by
nickjj
4y ago
I like the efforts here and even got a chance to contribute some patches to Rails around its recent Docker integrations. I'm also not a huge fan of Kubernetes until you need to use it, in which case it's remarkably good at the pro
685.
▲
by
nickjj
4y ago
On paper I agree with all of that but in practice folks who are getting laid off already had access to all of those things every day. Why do you trust them every day but not on the day of being laid off? Unless you're extremely close f
686.
▲
Lessons Learned from Re-Rolling 60 Production Credentials
(nickjanetakis.com)
1 points
by
nickjj
4y ago
|
0 comments
687.
▲
by
nickjj
4y ago
I wish more concrete data were shared. Having half the US affected is a big deal.
688.
▲
by
nickjj
4y ago
I know nothing about this field but I remember when California had really bad wildfires, when it was happening (in 2020 or 2021? It all blends together) there were charts showing air quality levels across the US. I'm in NY and I visibl
689.
▲
by
nickjj
4y ago
> Arguably you can do both, if you let the community sustain the old thing (like what Carmack did with Quake). For games like Quake 3 it was quite open before it was old. The game was community mod'able during its prime. You had mod
690.
▲
by
nickjj
4y ago
> I'd have loved to first read six paragraphs about how the author's grandmother raised them on home grown threads and greenlets. With recipes, often times your problem is you want to learn how to make something where having th
More ›