(I reposted this because of server migrations incase anyone noticed)
6 hours of my lesson-free day was fighting against my >8 years aged server. I lost the battle with some cuts on my fingers.
Instead of a bad configuration, it seems a faulty network card was playing me out. Lesson learned: If it ain’t broke don’t double fix it. If the server ain’t going to work anymore, there’s no point keeping this post as a draft, gotta publish it now.
Back to the topic, my father brought home a portable Philips radio combined with a Cd player and alarm clock years ago. My impression it wasn’t a very good audio player, its features and sound quality was just minimal. However, there was still few interesting and useful features. It served as clock and I also used it to set my morning alarms to interrupt my dreams by either
a) Turning on a FM station
b) Playing tracks of my CDs, or
c) Sounding alarms likes beeps and rings.
You could set to 2 alarms on it, so I usually turn on the 1st alarm to the CD tracks, then blast the noisy alarms 10 to 60 minutes later. The 1st alarms is for switching my body into a light sleep, and starts the engine of my subconscious mind. If I’m still in deep sleep, the loud sounding alarms is the last line of defense not to be late for school.
There were few CD tracks that never fail to wake me up- Carmen’s fantasy, Walton’s violin sonatas, Stravinsky’s Rite of Spring and so on… some tracks made me want to lie in bed to hear the songs- Bach’s Brandenburg Concerto 5…
That’s for waking up. For sleeping, I’ll set the timer to turn off the CD or Radio after a period of time. It seems to me I never get to sleep soon if my mind is actively listening to classical music.
— if you are not a computer geek you can stop reading right here —
Here’s did an equivalent on my server plugged to speakers. 4 linux commands I used: screen, mplayer, sleep, killall.
I start my ssh session with putty to my and run
1. Play lullaby softly
mplayer http://audio-ogg.ibiblio.org:8000/wcpe.ogg -cache 256 -af volume=-5dB
This plays WCPE, the online classical radio at a softer volume. I move to another screen window for the next step (^A,n)
2. Silence the lullaby
sleep 15m && killall mplayer
Sleep here is used sort of like a countdown timer. Here, 15 minutes later, the mplayer is terminated for silence. We need another window for the next step.
3. Countdown the alarm
sleep 3.5h && radio.sh
This shows I want the radio to be turned on again after 3 and a half hours to wake me up…
Thats not too much sleep isn’t it? La la la… ZzZzZZZzZ