Please Remind Me Every 15 Minutes!

Quick and Dirty in irb.

At where I stay during my internship, I have a TV in my room.

So instead of buying a pair of stereo speakers, I bought a stereo–composite audio adapter, and plugged my MacBook into the TV.

However, the TV sounds terrible. Fortunately, you can build your own system-wide equalizer on Mac OS X, using Soundflower and AU Lab, both for free. It now sounds awesome.

But there’s still a problem.

I only plugged in the audio cable, so there’s no video. Therefore, the TV thinks that it is not in use and shuts itself down after 15 minutes, and I have to turn it back on every time.

This can be prevented by pressing a button on the remote. That resets the timer, so I have to press the button every 15 minutes.

But I usually forget and suddenly the sound stopped. How annoying.

With Ruby with me, I just fired up irb and…

Problem solved!

Code, Applied to Life

Stories about how coding can be applied to solve everyday…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store