Urgent.News

What's breaking now, across thousands of outlets.

Tech

Testing scheduled jobs using faketime

Recently, I was tasked with testing some scheduled exports to investigate a defect. Unit tests should have caught it, but something else was going on. I had to simulate a real execution in a container by faking its internal clock. This is where I utilized faketime . faketime is a tool that manipulates system time for a specific program without changing the system's actual time. It works by…

We haven't written up this one. Dev.to has the full story — the link below goes straight to it.

Read the original at dev.to →

More in Tech

Suspend, Background, Disown

I'm currently working on a hobby project, using crawlers to download media files for a dataset. Some of these are large files that also need preprocessing.

  • Press CTRL + Z to suspend a running process.
  • Resume suspended process in background with 'bg'.
  • Disown process using 'disown -h %1' for independence.

No measurement, no optimization

No measurement, no optimization. There's a common saying in programming: "Don't optimize what you haven't measured yet." You can only truly appreciate this advice when you experience it yourself.

  • Optimization should follow performance measurement
  • Database queries caused most performance issues
  • Combined queries had higher average response time

Uptime Kuma on Fedora with Podman Quadlet

Over the weekend, I decided to set up Uptime Kuma on my mini-server. I needed a quick way to monitor some important work services, and Uptime Kuma’s Slack notifications make it easy to get alerts…

  • Uptime Kuma installed on Fedora mini-server for service monitoring
  • Podman Quadlet used to manage containers with declarative files
  • SELinux permissions adjusted and systemd service enabled via Quadlet

Using fstab instead of autofs for a samba share

A few weeks ago, I borrowed a Raspberry Pi 4B from a friend. Since it wasn't going to be used for a while, I decided to set up a network storage for our home network.

  • Author used Samba for network storage on Fedora Server 38
  • Initial autofs and crypttab configuration failed due to race condition
  • Fstab permanently mounted drive, solved Samba access issue

When Redis goes down, does your app die?

The Problem: The App Dies There was an incident that caused our application to fail because our Redis cache went down. It was in the middle of moving to a larger compute instance to handle a higher…

  • Redis cache failure significantly impacted application experience
  • Resilient Cache-Aside approach implemented to handle exceptions
  • Circuit Breaker pattern improved app performance and user experience

More from Sunday 27 September →