git: random notes

Recursively add all files in a directory subtree that match a glob pattern:

git add \*.php  #adds all the .php files find in the subtree

git add  assets\*  #adds all the files found in the assets subtree folder

 

How to push and delete remote branches: post

A special thanks

After several year I’m back on venturin.net … home sweet home :)

I’m really happy because there is no place like home and because I love the theme made by Dasha  for this wordpress. It’s fantastic!!! :) THANK YOU MATE!

And you readers are lucky for this: without Dasha you’d see a black rectangle with white text over it (which is actually my best artistic expression [after years of training] ).

I hope you readers enjoy it too (yes, comments against this design will be deleted :D )

Why high-tech companies keep hiding their products features?

As I wrote in my previous post, I’m looking for a mobile device so I’m investigating.

What’s coming out from the investigation is that the manufacturer web site is the last place you have to look to have useful informations. Isn’t this weird? I mean we are talking about companies working in the communication field with huge budgets, thousands of employees and any kind of technology.

Let’s take Samsung Galaxy Tablet (every other product/brand could be taken in consideration) : I really believe that it’s a good product but:

  • it takes hours to know that it has no built-in microphone and then to realize that you NEED a headset EVERY TIME you want to make a phone call. I think that Samsung doesn’t mention this anywhere.
  • there isn’t a clear and official accessories-list for this device. To get a stylus you need to dig and than pray that your device will work with the tablet
  • Samsung website doesn’t mention that if you use a bluetooth keyboard you can’t use a bluetooth headset at the same time.
  • you can’t find no show case for this device
  • details on the device are different from country to country. I mean if you check the USA website the features of the device are related to the provider (Verizon and so on… ). If you check the Italian website you get 4 really poor pages about the product
  • battery life: there is no technical paper showing how long the battery lasts in different usage conditions. It’s hard to believe that the producer doesn’t test the device or doesn’t know the answer.
  • from Samsung website you can’t even understand how to connect your Ical calendar with your device: come on, do you really believe that I’m buying that product just to watch videos? I’m worker!! Job comes first!

The list could me much much longer and it doesn’t make sense to go on. The point is: why they don’t care to show their products features ?

That’s completely unbelievable: aren’t we in the communication age? What’s happening? Now that we have the tools to communicate comes out that we are not capable to communicate and to be honest?

Please help me to understand. Am I fool, weird?

tip: apache settings in ubuntu

se vuoi vedere quali sono i settaggi con cui è stato compilato l’apache che gira sul tuo server:

damko@smoke:~$ apache2ctl -V
Server version: Apache/2.2.4 (Ubuntu)
Server built: Feb 4 2008 20:30:42
Server’s Module Magic Number: 20051115:5
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with….
-D APACHE_MPM_DIR=”server/mpm/prefork”
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=”"
-D SUEXEC_BIN=”/usr/lib/apache2/suexec”
-D DEFAULT_PIDLOG=”/var/run/apache2.pid”
-D DEFAULT_SCOREBOARD=”logs/apache_runtime_status”
-D DEFAULT_LOCKFILE=”/var/run/apache2/accept.lock”
-D DEFAULT_ERRORLOG=”logs/error_log”
-D AP_TYPES_CONFIG_FILE=”/etc/apache2/mime.types”
-D SERVER_CONFIG_FILE=”/etc/apache2/apache2.conf”

le magie di jhonny lee e nintendo wii

incredibili le potenzialita di wii: un vero schermo 3d

[youtube=http://www.youtube.com/watch?v=0awjPUkBXOU]

il sito di Lee

cmq ricordo che ancora mancano:
i frontend per ldap
i frontend per hylafax
i frontend per bacula
i frontend per samba (gestione account e shares)
... (devo continuare?)

tip: postgresql non si disinstalla. un trucco barbaro per risolvere

il problema:

# apt-get remove –purge postgresql-8.1

Reading package lists…
Building dependency tree…
The following packages will be REMOVED
postgresql-8.1*
0 upgraded, 0 newly installed, 1 to remove and 21 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 12,8MB disk space will be freed.
Do you want to continue [Y/n]? (Reading database … 32630 files and directories currently installed.)
Removing postgresql-8.1 …
Stopping PostgreSQL 8.1 database server: main* Error: The cluster is owned by group id 119 which does not exist any more
failed!
Starting PostgreSQL 8.1 database server: main* Error: The cluster is owned by group id 119 which does not exist any more
failed!

in pratica lo script /etc/init.d/postgresql-8.1  ritorna false quando tenta di arrestare il servizio (che in realta nel mio caso non è nemmeno attivo)

ho provato ad armeggiate con apt ma senza esito quindi ricorro alla forza bruta.

soluzione:

NOTA: se ci sono dei dati di postgresql vanno backuppati ora!

ps aux| grep postgre

… killo i processi attivi

mv /etc/init.d/postgresql-8.1 /etc/init.d/postgresql-8.1.old

echo “exit 0″  > /etc/init.d/postgresql-8.1 (in queso modo $? di ritorno sara 0 e apt-get potra continuare

apt-get remove –purge postgresql-8.1

bug: vmware server dice che non è ben configurato

se vmware server funziona bene ma ogni volta che riavviate il pc o il servizio vedete un errore di questo tipo:

VMware Workstation is installed, but it has not been (correctly) configured
for the running kernel. To (re-)configure it, invoke the
following command: /usr/bin/vmware-config.pl.

si risolve con:

rm /etc/vmware/not_configured

bug: bachi in ubuntu gutsy

elenco brevemente i bachi riscontrati dopo l’installazione di gutsy su thinkpad T61 e le possibili soluzioni: (continuerò ad aggiornare l’elenco appena trovo le soluzioni)

gnome-keyring: non funziona bene (bug aperto su launchpad, non risolto)

plugin jamendo su rhythmbox: non funziona per niente (bug aperto su launchpad, quasi risolto)

eclipse: funziona malissimo fino a quando non si eseguono queste operazioni (bug chiuso su launchpad, risolto)

wireless iwl4965: funziona ma si blocca randoml (bug chiuso su launchpad, risolto)

aumix: non funziona proprio (bug aperto su launchpad, non risolto)

lanciare comandi da root in un click

oggi è la giornata del “fix delle stupidate”

stanco di aprire terminali per svolgere attivita routinarie, come ad esempio l’avvio di apache?

ecco uno screenshot che spiega come farlo aggiungendo un custom application launcher a un drawer di gnome