Comment by Dudo on Can you query old messages already consumed in a pub/sub...
I read up a bit. Don't the consumer groups ensure that a message is only delivered to 1 subscriber?
View ArticleComment by Dudo on How to pass in json as payload in .proto
This is the answer, honestly.
View ArticleComment by Dudo on How to delete a redis stream after success processing
Why not use pub/sub if you don’t need retention?
View ArticleComment by Dudo on docker-compose pull images used FROM
!!! that was not obvious in the docs. It works! Thank you
View ArticleComment by Dudo on Node Redis XREAD blocking subscription
@W2a - I have no clue... if you have a better suggestion, I'd love to hear it!
View ArticleComment by Dudo on Wrapping a method, and passing an instance variable to it
Good to know, thanks! I know about both, but I copied this example from the Ruby source code for Gem::Deprecate.
View ArticleComment by Dudo on Wrapping a method, and passing an instance variable to it
Clarified. And yes, that's exactly the problem!
View ArticleComment by Dudo on GCP service account naming
Ahhhh, I was trying to set it up via the UI. gcloud it is!
View ArticleComment by Dudo on cilium access within GKE autopilot
I really like the idea behind autopilot... I'm going to try to live within its limitations for a bit. Thanks for the recommendation, though!
View ArticleComment by Dudo on cilium access within GKE autopilot
Thanks! I was looking at Anthos, but if feels... heavy. It seems to change the pricing of things as well? It seems like Anthos service mesh is a clone of sorts of istio? I really like how cilium is...
View ArticleComment by Dudo on How to know if two arrays have the same values
@dilungasr that's a maybe operator. If difference were null, it wouldn't throw. Not really useful in this example... but habit for some. Also, this answer only works 1 way, and only if you're adding...
View ArticleComment by Dudo on MacOS - detect when camera is turned on/off
I have a 2019 (intel) macbook pro with Ventura installed, and the "Monterey" answer worked for me.
View ArticleComment by Dudo on How to find rails route pattern from url
Maybe obfuscation is used incorrectly here. This is for observability purposes. Given url paths that have unbounded alphanumeric parts, I’m looking for the path with the rails parameter keys.
View ArticleComment by Dudo on HTTP Authorization Header in EventSource (Server Sent Events)
Even that library seems unsupported at this point. Why can't we have nice things?
View ArticleCompare array against array column in postgres
# things :string is an Arrayscope :things, ->(q) { where('ARRAY[?]::varchar[] IN things', Array.wrap(q)) }scope :things, ->(q) { where('things && ARRAY[?]::varchar[]', Array.wrap(q))...
View Articledevise helper methods undefined in custom class
I've been hunting down this bug for a bit... my helper methods don't seem to be defined. Or they're being defined incorrectly. user_unlock_url is a specific example.My controller follows the wiki:class...
View ArticleHammerJS clicking on Pan
ready = -> onPan = (ev) -> console.log(ev) # ev.target.dataset.object createHammer = (v) -> mc = new Hammer.Manager(v, {}) mc.add new Hammer.Pan( direction: Hammer.DIRECTION_HORIZONTAL...
View ArticleRails ActiveRecord callbacks
I'm having an issue with a date format. I have a time picker that has the date in a funky format (well, it's a nice format, actually, but not to the computer). I'm trying to have Chronic parse the date...
View ArticleDelete multiple files from GitHub API
I'm trying to delete multiple files from a few subdirectories using octokit.rb - to be clear, what I’m really trying to do is just delete some subdirectories in their entirety. If there’s a better way...
View ArticleQuery has_one that is a subset of a has_many
I have some polymorphic rules that I keep track of changes on, and I'd like to query the very last (current) rule. I understand that I can use a belongs_to to keep track of that, but I'd like to keep...
View Article
More Pages to Explore .....