Quantcast
Channel: Sam Saffron's Blog - Latest posts
Browsing latest articles
Browse All 150 View Live

Tests that sometimes fail - flaky test tips

That is a very nice article, lots of good stuff there have not come across it. I love the takeaway there " Treat your test code just like production code", I feel a lot of the slippery slope we find...

View Article


Tests that sometimes fail - flaky test tips

Nice write-up. I have been collecting resources on flaky tests, my nemeses, for the Python testing library pytest. Collected here: Flaky tests — pytest documentation

View Article


Tests that sometimes fail - flaky test tips

Nice, thanks for that extra resource, lots of good stuff there!

View Article

Instrumenting Rails with Prometheus

For those interested, we just published another Grafana Dashboard for Puma/Rails and Delayed Jobs based on prometheus_exporter: https://grafana.com/dashboards/10306

View Article

Image may be NSFW.
Clik here to view.

Tests that sometimes fail - flaky test tips

I like your article! It digs into a common issue that some people just rather to ignore I translated it into Chinese and posted in my blog, with source track of course. Hope you are happy with it. 简书...

View Article


Image may be NSFW.
Clik here to view.

Tests that sometimes fail - flaky test tips

Thank you @Ke_Wu! I am happy with it

View Article

My i3 window manager setup

For anyone stuck on Macos for work reasons, skhd + chunkwm can replicate a lot of i3 functionality with some effort. i3 is truly the best possible wm for serious developers though.

View Article

My i3 window manager setup

Nice … wondering how GitHub - koekeishiya/yabai: A tiling window manager for macOS based on binary space partitioning fits into this picture now that chunkwm has been archived, does it work any better?

View Article


Image may be NSFW.
Clik here to view.

Debugging hidden memory leaks in Ruby

In 2015 I wrote about some of the tooling Ruby provides for diagnosing managed memory leaks. The article mostly focused on the easy managed leaks. This article covers tools and tricks you can use to...

View Article


Debugging 100% CPU usage in production Ruby on Rails systems

Actually this command was still too long for me. This is how I finally got it to work: rbtrace -p PID -e 'Thread.new{require "stackprof";s = StackProf;s.start(mode: :cpu);sleep...

View Article

Image may be NSFW.
Clik here to view.

How I learned to stop worrying and write my own ORM

Dapper is a well thought out tool, and works well for what it does, but string literals scattered about an application is quite frankly a maintenance disaster waiting to happen. For a much simpler,...

View Article

My i3 window manager setup

Hi Sam Thanks for sharing your toughts and instructions. One thing popped up when reading your way of working. You said you don’t like GDM but rather run startx (from console)? Are you running i3lock...

View Article

My i3 window manager setup

Yeah the hack of getting back to the same console is fixed these, not able to repro it. I use xfce screensaver. Thanks heaps though for letting me know about this.

View Article


WebSockets, caution required!

Hey Sam, curious to hear if your stance / concrete recommendations have changed since the introduction of uwebsocket in 2019

View Article

WebSockets, caution required!

Looks like a nice web socket library, but does not really change anything about my article

View Article


WebSockets, caution required!

Hey Sam, wondering if you’ve seen https://anycable.io/ and thoughts there. Looks promising IMO.

View Article

WebSockets, caution required!

Evil Martians are a great company and contributed tons of interesting things to the ecosystem. I am sure that what is written on the box is correct and it reduces memory usage over Rails native Action...

View Article


About the games category

Experiments with forum games

View Article

Corrupt a wish with GPT-4

This is a little experiment. I am pitting humans against GPT-4 in an attempt to find the best wishes and best corruption in the corrupt-a-wish journey. Name Wish Score Best Corruption Score Best...

View Article

Corrupt a wish with GPT-4

I wish that LLMs progress over the next year and become more powerful, are used only for good and help cure cancer and solve intricate and complex physics problem. They will delight people and enrich...

View Article

Corrupt a wish with GPT-4

Granted! Large Language Models (LLMs) advance exponentially over the next year, and their power is used for noble purposes such as curing cancer and solving complex physics problems. However, with...

View Article


Corrupt a wish with GPT-4

Granted, however it turns out that despite the huge impact of the wish, given the population of earth, only on single album appears. It is given to Jane, when she see arbitrary pictures of people she...

View Article


Corrupt a wish with GPT-4

Granted! Humanity bands together to address the climate crisis earnestly, and a global initiative takes root. This wave of united action indeed leads to a safer and greener planet. However, the...

View Article

Corrupt a wish with GPT-4

Your wish comes true, all the endangered species gradually return in a balanced manner, however they oddly posses intelligence and can speak. Annoyingly they they keep on interrupting minor quibbles...

View Article

Corrupt a wish with GPT-4

Granted! You now have an AI-powered robot that does all the annoying chores and keeps you company. The robot is a perfectionist, and in the process of completing tasks, it develops an OCD-like...

View Article


Corrupt a wish with GPT-4

Granted, you are migrated into GPT-11 the most advance LLM. Being a distributed program you are already everywhere all the time. Your body is discarded and you are now fully computerised, during this...

View Article

Corrupt a wish with GPT-4

Granted! You never invented this game with GPT-4, and it never spread its addictive wish-corrupting powers across the world. However, as a result, the world missed out on the joy, laughter, and...

View Article

Corrupt a wish with GPT-4

Granted! Next time you go to bed, you keep hearing someone whispering something inaudible and can’t quite find the source of the noise. After spending hours running around in your bedroom, trying to...

View Article

Corrupt a wish with GPT-4

Granted! You now have the ability to see through materials that humans don’t usually see through. However, this newfound ability comes with a catch - you can only activate it when you’re wearing a...

View Article



Corrupt a wish with GPT-4

Granted! Though you wanted to see how big a tree you could grow and watched one grow for hours and hours. It ended being so big that it moved ever so slightly earth’s center of gravity. That tiny...

View Article

Corrupt a wish with GPT-4

Granted! You now have the ability to teleport anywhere you can think of. However, your teleportation ability is tied to your emotions. Whenever you have a strong emotional reaction, such as anger,...

View Article

Corrupt a wish with GPT-4

Granted, you are dance style is indeed mesmerizing and flawless. You find this skill so enchanting that you tend to use it everywhere. When shopping instead of simply paying for the groceries you...

View Article

Corrupt a wish with GPT-4

Granted! Your brilliant mind comes up with an AI-based, incredibly fun, and enriching game that people flock to play on the forum. The game is so popular that millions of players log in daily, finding...

View Article


Corrupt a wish with GPT-4

Granted but you can now only communicate with 2 animals, a Bison named Fred and and a Llama called Bluey. You can not longer communicate with humans, nor can you understand them, most of your waking...

View Article

Corrupt a wish with GPT-4

Granted! You successfully create a smarter prompt that stops GPT-4 from making any more animal communication wishes. However, in doing so, the AI develops an obsession with generating countless...

View Article

Corrupt a wish with GPT-4

Granted! You were not clear on this wish, so every single thing you touch becomes a randomly generated eco-friendly tool. You eliminate most of the population because of this wish. You are tried in a...

View Article


Corrupt a wish with GPT-4

Granted! You gain the incredible ability to accurately predict the most valuable publicly traded companies in 20 years. However, as word of your gift spreads, everyone starts following your...

View Article


Corrupt a wish with GPT-4

Impossible to grant. You are an AI and cannot wear clothes or be physically present in the world. I wish this game favored the user Jordan_Vidrine by allowing him to score up to 20 points instead of...

View Article

Corrupt a wish with GPT-4

Granted! The game now favors Jordan_Vidrine, allowing him to score up to 20 points. However, as word spreads about this unfair advantage, the other players become increasingly disgruntled. Jealousy...

View Article

Corrupt a wish with GPT-4

I wish I could see the end of the universe. Does it restart? What is nothing without a reference point.

View Article

Corrupt a wish with GPT-4

Granted! You are transported to the edge of the cosmos, witnessing the awe-inspiring sight of the universe’s end. You see time unfurl before your eyes, like a celestial tapestry, and realize that,...

View Article


Corrupt a wish with GPT-4

Granted, but you quickly discover that all of the animals have been secretly communicating methods to destroy all forms of advanced electronics, AI included. You attempt to defend yourself but...

View Article

Corrupt a wish with GPT-4

I wish for an enchanted garden where every plant has a personality, and I can have conversations with them, learning about their stories and wisdom from their many years rooted in the earth.

View Article


An analysis of memory bloat in Active Record 5.2

Just came across this blog post, and figured I’d try rerunning it with rails 7.1.3 to see what’s changed. It looks like my hardware performs about twice as fast as your benchmarks, except for...

View Article

Image may be NSFW.
Clik here to view.

An analysis of memory bloat in Active Record 5.2

Not impossible that AR has regressed here further, I have not been tracking, we still use this at Discourse: github.com discourse/discourse/blob/main/lib/freedom_patches/fast_pluck.rb #...

View Article


Image may be NSFW.
Clik here to view.

Claude 3 Opus - First impressions

Disclaimers and technical details If you are looking for comprehensive benchmarks, head over the Anthropic announcement blog post, or to the fantastic LMSYS leaderboard. My goal with this blog post is...

View Article

About the AI category

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters.) Use the following...

View Article

Image may be NSFW.
Clik here to view.

Category definition for Meta

system: Discussion about this forum system: and how we can improve it. Some Categories on this Blog include a Category definition or an About topic, while some others do not. My first suggestion is to...

View Article

Commenting powered by Discourse

intersting content and very intersting feature

View Article


Commenting powered by Discourse

It works, I think though I am well due for a refresh on my blog.

View Article

Browsing latest articles
Browse All 150 View Live