Google Chart API and Pycha 0

Since Google released its Google Chart API, everybody’s  been charting like mad carrots.

Well, there’s a nice Python package for building charts available, which is pretty lightweight, simple to use and nice looking.

It’s name came out a little unfortunate, though… It’s called PyCha.

In Portuguese, it sounds a little strange.

Manager:  So, are we going to use Google’s API for charts?
Programmer:
No, we’re using the PyCha…

Update: I came across pygooglechart, a Python wrapper for the Google Chart API.

Tomcat access logs 1

First of all, why does Tomcat take so long to shut down? It took almost three minutes just now… Funnily, it takes two and a half seconds to start up.

Anyway, I’ve finally found out how to  enable access logs on Tomcat, thanks to this page. Just add the following snippet in the correct section of the $TOMCAT_HOME/conf/server.xml file:

<Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs"  prefix="access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>

Restart Tomcat. It’s working.

First post and LighTTPd 0

This is my first post on this blog. Let’s see how this goes.

Found lots of stuff on the web about getting Pretty Permalinks working  with WordPress and LighTTPd, but they were all very complicated…

So I just wrote my own configuration:

$HTTP["host"] =~ “^smux\.net$” {
  url.rewrite-once = (
    ”^/blog/(wp-.*)$” => “/blog/$1″,
    ”^/blog/(.*)$” => “/blog/index.php?$1″
  )
}

Then, select “/%year%/%monthnum%/%day%/%postname%/” as the Permalink custom structure, and you’re done… Simple.

« Previous Page