Posts RSS Comments RSS 43 Posts and 31 Comments till now

Archive for the 'english' Category

Esercitare l’inglese

Da qualche tempo mi sono ritrovato a parlare, ascoltare, scrivere inglese per poter collaborare a un progetto. “In inglese me la cavo”, pensavo. E sbagliavo. Mi ha convinto la prima conference call a cui ho partecipato. Non ho capito quasi niente.
Per rimettere in sesto il mio inglese, ho trovato qualche suggerimento su un post molto utile pubblicato su nonsolocodice.it, un blog di “svluppo responsabile”.

Unix and Philosophy

Interesting idea: Applying Unix Philosophy to Personal Productivity.

Handbook for bloggers and cyber-dissidents

Handbook for bloggers and cyber-dissidents
Here you can download the Handbook for bloggers and cyber-dissidents.

Upgrade wordpress 2.3.1

This is a reminder for me.

I’ve upgraded my wp from 2.1 to 2.3: the new version needs some changes:

  1. file index.php (template directory)
  2.     <!-- correzione per aggiornamento wordpress 2.3.1 errore chiamata funzione in_category() in wp-includes/category-template.php -->
        <?php if ( in_category($AsideId) && !is_single() ) : ?>
        <?php if ( $AsideID != '' && in_category($AsideId) && !is_single() ) : ?>
  3. file wp-config.php
  4.     //define('DB_CHARSET', 'utf8'); // default value
        define('DB_CHARSET', 'latin1'); // update for WP 2.3.1

References:

Stream downloader

I discover a new simple utility: Mimms.

Mimms allow you to download streams using the MMS protocol and save them to your computer.

You don’t need to install full media player suite (Xine, Mplayer, …). It’s a simple command-line interface, for Debian and Debian-like system, to download streams. In Ubuntu system you need to install this package (repository universe).

Against Internet Censorship

Against Internet CensorshipThe Citizen Lab has released this guide: Everyone’s Guide to By-Passing Internet Censorship for Citizens Worldwide. You can download it.

This guide provides tips and strategies on how to by-pass content filters worldwide. It is very helpful for people who live where content filtering is applied against freedom of speech and expression.

Bea Weblogic 81 su Ubuntu Linux

Ho scritto una breve guida su come installare Bea Weblogic 81 su Ubuntu Linux.

Devo dire che è stato più semplice del previsto.

Tomcat security issue with jdbc connections

This is a reminder for me, for Tomcat setting about security violation.

In a simple servlet, if you have some issue with db connection, with this output:

    java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve)

have a look at Tomcat security policy.

To correct this problem, you have to edit /etc/tomcat5/policy.d/

We want to give all contexts not configured by their own grant entry some default permissions in addition to what Tomcat assigns by default:

    grant {
        permission java.net.SocketPermission "localhost:3306","listen,connect,resolve";
        permission java.util.PropertyPermission "*","read";
    };

You may have to replace localhost:3306 with your db host and port.

Ubuntu: manage two monitors

How manage two monitors in Ubuntu system?

First of all, you have tu use ATI fglrx driver, obiously if you have ATI graphic card :-)

Follow the Unofficial ATI Linux driver wiki to 1) install and configuring the driver and 2) enable two monitors.

In short:

  1. install the driver:
  2. sudo apt-get install xorg-driver-fglrx

  3. you shouldn’t need to update xorg.conf, just verify that fglrx is present in this file:
  4. [...]
    Section "Device"
    Identifier "ATI Technologies Inc Radeon Mobility X700 (PCIE)"
    Driver "fglrx"
    [...]
    EndSection
    [...]

  5. enables support fro Big-Desktop, and places the two monitors next to each other (see thread about ATI Big Desktop)
  6. sudo aticonfig --desktop-setup=horizontal --sync-vsync=on --add-pairmode=Width0xHeight0+Width1xHeight1

  7. enable two monitors on the fly:
  8. aticonfig --enable-monitor=lvds,crt1 --effective=now
    Note: in
    aticonfig --enable-monitor=string, string
    string can be one of the following set, separated by commas: none, crt1, crt2, lvds, tv, tmds1, tmds2, auto. Check out connected and enabled monitors using:
    aticonfig --query-monitor

JAVA_HOME: where do I set?

When you install Java (JRE or SDK) on linux system you have to set some environment variables, like JAVA_HOME, J2EE_HOME, etc.

Usually you have to set this variables for all users: system-wide level. OK, I agree. But where do I set JAVA_HOME?

Three alternatives:

  1. /etc/profile
  2. /etc/bash.bashrc
  3. /etc/environment

The first solution. I tried to set the environment variables in /etc/profile: it’s the right place for system wide variables, but in Ubuntu system seems not working.

The second solution worked for all users who use bash. Nice, but there’s another way.

The third solution is to use /etc/environment: in my opinion this is the best way, if the first solution fails.

References:

Next »