rss2mail

Previously I have wrote lj2mail – a script which gets fresh posts from LiveJournal and emails them to the list of recepients. I have tried to avoid sending same items over and over again, but failed. The script was implemented with the help of LiveJournal API (LJ::Simple Perl module).

I got annoyed by that script repeating some items (mess with publishing date), so I wrote a different one. rss2mail simply gets the RSS feed, parses it and emails items as individual messages to the list of recepients. I guess that caching RSS item link is much better than LiveJournal’s publishing date. Also, rss2mail is much more flexible. It can be used with any RSS feed, not only LiveJournal’s. I have tried to make it as generic as possible. If it doesn’t work with other feeds, just check the fields of the RSS feed it uses.

rss2mail.pl

On sleepless parenting

One of the most frequently repeated things that people preparing for parenting read is that there will be a huge lack of sleep during the first months after the baby is born. Most of the parents remember this time as the hardest time of their life.

Indeed, sleep is a very important part of every person’s life. Cutting the sleep is, I guess, similar to eating less. People get sad, depressive, and all psychodelic when denied the recharge of batteries. Brain needs rest or it will get fried, overwhelmed with information.

During my last few days as being non-father I am trying to imagine how bad can that be. One of the thoughts that sort of calms me down is that most people (of those who call the first few months the hardest time in their lives) have to go through a major change when the baby is born. Most people sleep during the night and stay awake during the day. With the newborn baby this changes, as do a lot of other things, and the young parent gets a lot of stress due to these many changes. I myself don’t use the night for sleep. With my work in the NOC, I get all sorts of shifts. I regularly switch between night shifts (from 23:00 until 08:00) and office work (from 09:00 until 18:00). I don’t always go to bed in the morning after the night shift. In fact, I don’t sleep that much anyway. Sometimes I can sleep for just 2 or 3 hours and go for the next 24 hours without sleep. Sometimes 5 hours per day (broken into pieces) make me feel recovered. I don’t have any problem falling asleep at any time of the day. And I don’t have that big of a problem waking up. I think that not that many people sleep in this way. That gives me hope that the first few month won’t be as hard for me as they are for most parents.

Not that they will be totally easy, but just easier than for most. I will still have to deal with the stress of responsibility, huge amounts of information, and a bunch of new tasks. We’ll see how it goes…

WARNING: Do not lick the lemons!

Do not lick the lemons!When I don’t sleep enough, my brain does all sorts of things to entertain itself. Sometimes I compose poems. Sometimes I write songs. Sometimes I draw. Sometimes I write. Usually it’s just an almost random behavior with no much to show for it. Still, some people find it entertaining (like my wife, for example), so I decided that I will be saving “the best of the best”.

Yesterday I made a couple of pictures of the lemon. The subject is very simple and I didn’t manage to find a fresh view of it. Probably that annoyance stayed in my mind, since it came out in the form of 3 language warning 20 minutes ago. The combination of brown and yellow reminded me of nazi colors somehow and just begged for a touch of red. From than on everything just appeared itself.

I’ve also copied the image to the yesterday’s album.