The WWW is a dangerous place. Scrapers abound to capture my thoughts and train advanced LLMs on my musings.
Any non-Rubyist can wander in and pore over my prose. I'm not gatekeeping! Pore away! But there's something
special when I can really guarantee my audience. Dust on your fingers, MINASWAN-CON 2009 sweatervest keeping
you warm. YOU.
So - from here to eternity. drb.schwad.org will give you the MiniSchwog. Be sure to check in once in a while.
Usage
require 'drb'
DRb.start_service
server = DRbObject.new_with_uri("druby://drb.schwad.org:9999")
puts server.help # Everything you can do
puts server.latest_post # Latest musing
Ruby pomodoro timer with exceptional tunes
Greetings Ruby pals. I've been using the pomodoro system off and on
for maybe a decade. It's not like, a big thing I'm into. It's just I've found it nifty to help rein in
my focus when I want to give it a kick in the shorts.
TL;DR for the uninitiated: You set a 25 minute
timer. Work without ANY distraction. At the end of the "pomodoro" you set a 5 minute timer. Get up. Eyes off
screen. Stretch. Every four pomodoros you take a 15 minute break. I find it can help with focus and endurance.
Your eyes don't get spun out as fast.
But here's what I'm thinking.
My actual kitchen timer STINKS. It's cute. But too inaccurate.
And the google timer looks cool. But, it's too easy to mute and when unmuted it is about as loud as my scream when stepping on a lego. And you can't modulate the volume. I've nearly dumped my Ovaltine all over my precious mechanical keyboard TOO MANY TIMES to keep using this timer.
SO. pomo. It is inspired by TJ Holowaychuk's pomo I'm pretty sure I used in 2014. It's a lightweight executable you can pop in your /usr/local/bin/pomo, sprinkle a little chmod +x /usr/local/bin/pomo magic on it, and BOOM! Pomotization complete.
Once you run your pomo, you get a simple little 25 minute timer. It chirps at you with five minutes left. Then when it's done it plays you a badass tune.
bloopsaphone is an excellent project from why maybe 20 years ago to make rad tunes in Ruby. It still works. My team of freelance Ruby pros maintain it now.
So, the best bit is, you can be annoyingly ping'd to a tune of your choice! You can randomize it! Or jazz it up a bit! Let me know what you make.
What is?
Welcome to the wonderful world of schwogs! In this post, we'll explore...
What is a Schwog?
A schwog is like a blog, but with 100% more schw. It's the perfect format for...
class WanderingSpirit
def initialize(secret_identity)
@true_name = secret_identity.reverse.upcase
@mood = %w[sparkly grumpy rainbow_powered].sample
end
def dance_with_universe
stars = "*" * (@true_name.length % 7 + 3)
puts "#{stars} BEHOLD! #{stars}"
puts "I am #{@true_name}, feeling rather #{@mood}"
puts "Let us waltz among the cosmic dust!"
puts "#{stars}#{stars.reverse}#{stars}"
end
alias_method :greet, :dance_with_universe
end