Pint 1

Of course I could have said that this picture is just a test of night mode photography of Motorola A780. But the truth is that’s a capture of the moment from the last party, where I am quater drunk, holding the price tag for a lager pint.

Pint 1

Thanks, Vladimir.

Sending bulk HTML emails with perl

First of all, I have to warn you that using HTML in emails is almost always inappropriate. Use plain text. If you have to send HTML, than send it as an attachment.

For those cases, where HTML message has to be sent and there is no choice in the matter, here is a small perl script – send_html_mail.pl

Edit a few lines at the beginning of the file to suit your needs. From address and Subject line must be changed. Locactions of two files – list of recepients and the body of the message – can be either specified on the command line or will be taken from default values hardcoded in the script.

Run the script as:

send_html_mail.pl message.html recepients.txt

If you changed the location of data files or if you are using defaults, than you don’t have to pass any arguments to the script.

List of recepients is expected to be a comma separated list of names and emails. An example file could look like this:

You There,[email protected]
Him Somewhere,[email protected]

Message body file should contain all your HTML, CSS, JavaScript and whatever else is that you want to send. Here is an example file for you:

<HTML>
<BODY>
<H1>Hi there!</H1>
<DIV>This is an HTML message.</DIV>
</BODY>
</HTML>

It is easy to change the script to send plain text messages instead of HTML. Just change the line that specifies Content-Type as “text/html” to “text/plain”.

National Treasure

National Treasure (2004)I am a bit slow on catching up big movies lately, but I’m trying my best. Today I finally watched “National Treasure“.

Directed by: Jon Turteltaub
Genres: Adventure, Action
Cast: Nicolas Cage, Diane Kruger, Justin Bartha, Sean Bean, Jon Voight, Harvey Keitel, Christopher Plummer, David Dayan Fisher, Stewart Finlay-McLennan, Oleg Taktarov, Stephen A. Pope, Annie Parisse, Mark Pellegrino, Armando Riesco, Erik King
IMDB raintg: 6.6
My rating: 6.5 [rate 6.5]

Continue reading National Treasure

Fedora Linux Core 4 is out!

I know that everyone is waiting for it, so I’ll break out the good news – Fedora Linux Core 4 is out. I am currently downloading it from one of the mirrors, but the speed is dicreasing. Hopefully I’ll have it before everything stops completely. I will upload all 4 CDs to Thunderworx FTP as soon as I have them. Meanwhile, you can read the Release Notes.

Update: Fedora Linux Core 4 is available via bittorrent.

Update: Official announcement.

Update: Fedora Linux Core 4 ISOs are uploaded to Thunderworx FTP. You can get them from here.

In Good Company

In Good Company (2004)Living through my hangover day, I wanted to watch something simple and low profile. The best option I had was “In Good Company” DVD.

Directed by: Paul Weitz
Genres: Comedy, Drama
Cast: Dennis Quaid, Topher Grace, Scarlett Johansson, Marg Helgenberger, David Paymer, Clark Gregg, Philip Baker Hall, Selma Blair, Frankie Faison, Ty Burrell, Kevin Chapman, Amy Aquino, Zena Grey, Colleen Camp, Lauren Tom
IMDB raintg: 7.1
My rating: 7.0 [rate 7.0]

Continue reading In Good Company