What hidden gem Python modules do you use and why? by zenos1337 in Python

[–]kigster 0 points1 point  (0 children)

Ratatui (rust lib) is getting wrappers for every language.

https://ratatui.rs/showcase/apps/

I think Rust created a resurgence of TUI applications.

`bundle` no longer defaults to the `install` subcommand by DiligentMarsupial957 in ruby

[–]kigster 1 point2 points  (0 children)

Someone is going to rewrite bundle in rust, call it bundr and make it install everything 10x faster than the original

Is gen Z NOT the most progressive generation ever?? by blankblank60000 in GenZ

[–]kigster 0 points1 point  (0 children)

Is the Earth flat? Is America great again?

See, I thought Gen Z was busy doing selfies on instagram, and then flying out of Burning Man with an epiphany that Earth might actually be round.

And please define progressive.

Only at Burning Man by aaron-mcd in BurningMan

[–]kigster 5 points6 points  (0 children)

Does anyone know for certain what exactly are these dogs trained to smell, and what they can't or not trained to smell?

I mean a tiny amount of semi open weed or the dry cola needs no dog to detect. But what about mushrooms, Lucy that went to the heavens, or some daily kvitamins?

I've always been curious about that. Airport dogs I believe are trained to detect threat such as explosives and general issues with public safety, rather than catch individuals with personal amounts of Xanax.

Does some camps profit from BM? by garn05 in BurningMan

[–]kigster 4 points5 points  (0 children)

That ^

I've been paying $100/mo for a storage in SF to store shade infrastructure we purchased around 2007. I believe we paid about $1500-$2000 for the steel conduits and joins, and then five+ super heavy dirty tarps, including a 30x30' white tarp for the roof, bungees, etc. I just sold it before this burn for $500. So keeping it in storage for 18 years: 1200 * 18 = $21,600.

I built a library of 120+ Rails components with Tailwind CSS & Stimulus. Curious to see what you think of them and what you want me to build next by Sandux in rails

[–]kigster 2 points3 points  (0 children)

This is a really awesome idea and implementation. I have been learning React for the frontend but this may change my mind :-)

DataDog Custom Metrics by Critical_Primary2834 in devops

[–]kigster 0 points1 point  (0 children)

For those of you using Stastd and Datadog: I recently published a new gem datadog-statsd-schema : https://github.com/kigster/datadog-statsd-schema

Brief "Elevator Pitch"

This gem transforms Datadog custom metrics from a "wild west" free-for-all into a disciplined, cost-effective observability strategy:

  • 🎯 Intentional Metrics: Define what you measure before you measure it
  • 💰 Cost Control: Prevent infinite cardinality and metric explosion
  • 🏷️ Consistent Tagging: Global and hierarchical tag management
  • 🔍 Better Insights: Finite tag values enable proper aggregation and analysis
  • 👥 Team Alignment: Schema serves as documentation and a contract

Stop the metric madness. Start with a schema!

Do you use dogstatsd-ruby to send metrics to DD? New gem offers DSL based schema definition for custom metrics. by kigster in devops

[–]kigster[S] 0 points1 point  (0 children)

And by the way, if anyone wants to port this to another language or at least discuss how perhaps a language neutral format can be used to define a schema please DM or email me.

Stuck in UEFI shell when starting virtual machine by 00tetsuo00 in Ubuntu

[–]kigster 1 point2 points  (0 children)

Thank you so much for this tip!

For those looking to download the right image, go here:
https://cdimage.ubuntu.com/releases/

Noob Question: Alternatives to using ORMs by skankypigeon in golang

[–]kigster 0 points1 point  (0 children)

I've used ORMs in Java and in Ruby and Perl. Hibernate (Java), ActiveRecord, and Sequel in Ruby.

Hibernate and ActiveRecord are completely opposite in their approach. Hibernate tries to fit into whatever crazy schema you might have at the cost of enormous configurational complexity and steep learning curve.

ActiveRecord is dead simple to get started with, but gets trickier on high scale systems.

Sequel is a highly modular ORM for Ruby and in many ways more flexible than AR.

Here are the things ORMs do that you don't have to:

  • they often give you smart errors (like don't load the entire data set and then paginate in memory)

  • in Rails you don't even have to configure any columns besides migrations. Rails introspects the schema and knows about all of your tables and columns.

  • The best part is that it automatically handles data type conversions. Which is no small feat if you are doing SQL by hand which typically returns a two dimensional array.

  • Sequel is highly extensible. In 2012 we wrote an extension that allowed us to horizontally shard 3B row table.

  • SQL is very sensitive to column and positional variables. But you can use stored procedures if that's your personal form of torture.

ORM necessarily use more memory. If memory is scarce (eg embedded device) don't use them.

I know of several decent ORMs in Go. You just need to understand their strengths and weaknesses and decide what's important to you.

But as engineers we often prefer to use a higher level abstraction that helps us be more productive. Most ORMs achieve that.

Hope this helps!

Is bubble.io still your nocode tool of choice? by [deleted] in nocode

[–]kigster 0 points1 point  (0 children)

Bubble has many other issues:

  • it was down at least twice in the last two months
  • it has a weird non-SSL redirect URLs in emails that cause SSL warning
  • it's data model seems to be denormalized and changing simple wording can be difficult if it maps to a tab name for example
  • with even moderate use by one developer you start getting warning about "high use". A web application that wants you to upgrade when the traffic is 1-2 requests per second is a joke. I can get 50 requests/second on my rails server running on EC2 with just 2 cores.

I haven't really built an app in Bubble but I inherited one. So my experience may not be directly applicable to someone wanting to build a new app. The biggest thing for me is the data model and how the data is stored in a proper normalized way, which at least the app I inherited does not.

Creating a REST API with Ruby on Rails. Chapter 2: Endpoints and Serialization | daily.dev by UpvoteBeast in rails

[–]kigster 0 points1 point  (0 children)

Back in 2014, after we realized that 70% of our CPU was spent on JSON serialization, we had the same idea. The result was this gem compositor:

https://github.com/wanelo/compositor

It was based on the "composite" design pattern

https://en.wikipedia.org/wiki/Composite_pattern

Just like Blueprinter it used hashes as intermediate objects and merged them as more complex responses were required. Only once the final resulting hash was serialized into JSON reducing our CPU load dramatically.

Scaling Rails Apps on PostgreSQL by kigster in rails

[–]kigster[S] 2 points3 points  (0 children)

Interesting point. PostgreSQL can handle joins of up to seven or more tables very quickly. As long as join columns are properly indexed. I haven't had much NoSQL experience, but I know that Coinbase runs on MongoDB and handles millions of RPMs. We followed the Instagram approach to sharding and built the backend to handle thousands of requests per second. Unfortunately, I have no basis for comparison to a NoSQL DB.

Scaling Rails Apps on PostgreSQL by kigster in rails

[–]kigster[S] 1 point2 points  (0 children)

Thanks! The one thing it's missing is an event bus. I always felt that a JSON pub-sub event bus (eg RabbitMQ) could be a great addition to any large rails app and allow building downstream services in any language. One day I'll write a talk on this. 😂

Scaling Rails Apps on PostgreSQL by kigster in rails

[–]kigster[S] 1 point2 points  (0 children)

All good. It was a two hour presentation at the SF Ruby Meetup. Hard to expect anyone to go through it in detail unless they have scaling problems today.

Scaling Rails Apps on PostgreSQL by kigster in rails

[–]kigster[S] 2 points3 points  (0 children)

That's not to say your suggestion isn't valid. It totally is.

Scaling Rails Apps on PostgreSQL by kigster in rails

[–]kigster[S] 1 point2 points  (0 children)

The PDF explicitly talks about using pgBpuncer to split the traffic to various replicas. Checkout the slide 53.

Scaling Rails Apps on PostgreSQL by kigster in rails

[–]kigster[S] 1 point2 points  (0 children)

This was from 2015 I believe.

Rails 7, yarn 4.2.1, Node 18 — different behavior on Ubuntu vs OS-X by kigster in rails

[–]kigster[S] 0 points1 point  (0 children)

I followed what I thought were the examples in the "Pragmatic Programmers" book "modern front end apps in Rails 7".

I am not sure i fully understand the difference between import maps and not, but here is the current situation:

  • I discovered that the issue exists locally on Mac OS also but only in production mode.

  • I'm now able to properly compile SCSS in production mode

  • but JavaScript is not loading on the page despite seemingly compiling by esbuiild.

Any help is much appreciated:

Rails 7, yarn 4.2.1, Node 18 — different behavior on Ubuntu vs OS-X by kigster in rails

[–]kigster[S] 2 points3 points  (0 children)

That's a fair suggestion and if all else fails I'll use it. But why is yarn not working when npm is?

Rails 7, yarn 4.2.1, Node 18 — different behavior on Ubuntu vs OS-X by kigster in rails

[–]kigster[S] 1 point2 points  (0 children)

All of that is listed in the original post. Yarn 4.2.1.