joi, 30 septembrie 2010

A new update for "SEO Starter Guide".

Google say us : "About two years ago we published our first SEO Starter Guide, which we have since translated into 40 languages..." The new version is more explicit and useful to have it. Unfortunately it is not translated in all languages.
I wonder why google does not use the open source community to translate them.
Now we can download the new update from  here .

miercuri, 22 septembrie 2010

Python, pyuno and OpenOffice

Some time ago, I discovered python. Then I saw that he can work with the OpenOffice. Today I will briefly introduce how to do this. I do this in Windows XP, and windows users could benefit. In the folder 'C:\Program Files\OpenOffice.org 3\program" there was a file called "python.exe". Go there and type the following script to start OpenOffice:

import os
import subprocess
import sys
import time
import uno

NoConnectionException = uno.getClass("com.sun.star.connection.NoConnectException")
ooffice = 'soffice "-accept=socket,host=localhost,port=8100;urp;"'
def start_OOo():
    '''Starts OpenOffice.org with a listening socket.'''
    # Start OpenOffice.org and report any errors that
    # occur.
    try:
        retcode = subprocess.call(ooffice, shell=True)
        if retcode < 0:
            print >>sys.stderr, \
                "OOo was terminated by signal", \
                -retcode
        elif retcode > 0:
            print >>sys.stderr, \
                "OOo returned", \
                retcode
    except OSError, e:
        print >>sys.stderr, "Execution failed:", e
    # Terminate this process when OOo has closed.
    raise SystemExit()
started_OOo = False
if not started_OOo:
    print "Starting OOo"
    started_OOo = True
    start_OOo()
time.sleep(3)
print "OOo started"
This will start OpenOffice 3.
We can use now python scripts to create any type of file use by OpenOffice .
Let show one image create with few lines :

joi, 2 septembrie 2010

My linux counter machine

The "The Linux Counter" site is a good site.

At Sep 02 2010 16:22:56 GMT, there are
125104
users registered
133701
machines registered
My guess at the number of Linux users:
Twenty-nine million 
 
My number machine is :

We can use a script to registers or updates a machine's info in the counter.
The script is allow here.
We can use add, update and send mail with info about your linux machine.
We can add a crontab job with -c arg .
The user ID must only be able to send mail and write to its own home directory.