Skip to main content

Ralsina.Me — Roberto Alsina's website

Don't let them tell you the CLI is bad

I mean, can you do this on a GUI?

grep 23/Nov/2007 /var/log/httpd/lateral-access_log |\
grep html | cut -d" " -f1 | sort |uniq |\
while read IP; do host $IP; done

Wanted: C programmer

Check­ing on my semi-dead pro­ject­s, I found that one was al­most fin­ished but I had for­got­ten about it: rater

In or­der to make it re­al­ly use­ful, how­ev­er, I need a C pro­gram­mer that can turn this python pro­gram:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from socket import *
serverHost = 'localhost'
serverPort = 1999

s = socket(AF_INET, SOCK_STREAM)
s.connect((serverHost, serverPort))
print "Sending: ",' '.join(sys.argv[1:])
s.send(' '.join(sys.argv[1:])+"\n")
data = s.recv(1024)
sys.exit(int(data.split(' ')[0]))

In­to a nice func­tion that nev­er fails and nev­er leaks mem­o­ry (of course, it should re­turn in­stead of ex­it, this is just ex­am­ple code ;-).

If that's done, I can re­lease rater as a use­ful tool, which should find a home in many qmail in­stal­la­tions (and maybe oth­er us­es).

Haven't had one of these in a while!

You start a blog, you like some­thing an­oth­er guy wrote, what do you do?

  1. Link and write a nice com­­ment

  2. Add it to del.i­­, have feed­burn­er show it in your "Links of the day" fea­­ture?

  3. Copy the whole thing, in­­­clud­ing the name of the au­thor, not fol­low­ing his very lib­er­al li­­cense, ig­nore his re­quest to fix it, and piss him of­f?

If you chose op­tion 3, then you will get along just fine with this guy!

New blog feature: Spanish translation!

I have de­cid­ed to make this blog avail­able al­so in Span­ish start­ing yes­ter­day.

Since it's gen­er­at­ed by my own soft­ware called Bartle­Blog, that meant I had to im­ple­ment ev­ery­thing so each post can have mul­ti­ple trans­la­tion­s.

And it's start­ing to work. You may no­tice sev­er­al things:

  • Be­low the ban­n­er there is an "Avail­able in En­g­lish - Es­­­pañol" thing.

  • Each Post has links to the dif­fer­­ent tran­s­la­­tions for which it's avail­able.

The lo­ca­tion and styling of these el­e­ments will change, and they may be bro­ken in dif­fer­ent ways for a few days. Sor­ry about that.

There will al­so be a "Lat­er­al Opin­ion en Es­pañol" RSS feed soon.

Up­date: here it is

Contents © 2000-2023 Roberto Alsina