Change WordPress username using phpMyAdmin

As you surely know, WordPress doesn’t allow users to change their username from administration panel. But, if you have access to WordPress database, you can simply workaround this limitation.

In this little tutorial, we will show all steps needed to change a WordPress username directly editing database records. Of course, this operations can be done with every MySQL client, but following snapshots specifically refers to phpMyAdmin.

First of all, we need to access to phpMyAdmin. In my case, I started from a cPanel administration dashboard and I simply need to click on phpMySql panel link.

change-wordpress-username-step1

Continue Reading

Setup Oracle JDK 7 + Netbeans 7.0.1 on Ubuntu 12.04 LTS

In this post we will see how to setup a basic environment to develop Java applications on a Ubuntu Precise Pangolin. Normally this setup should be a very simple operation, anyway I had some trouble during process, so I decided to write down and describe all steps I followed to sort out.

First of all, I installed Oracle Java Development Kit using specific webupd8team repository.

Please note that this step is mandatory because using ubuntu openjdk package, Netbeans won’t be able to work correctly: in fact new project window will lock down on “please wait…” message.

Continue Reading

Update Twitter Bootstrap to release 3 in Zend Framework 2

Recently I started a new project based on Zend Framework 2, using Twitter Bootstrap as CSS framework. Some days ago, new Bootstrap v3 was released and introduced a lot of changes and improvements. Because of ZF2 Skeleton Application comes out-of-box with Twitter Bootstap 2, I decided to setup the new project skeleton and update CSS framework to latest available release.

In this post, I’ll describe the process to update Bootstrap to v3 into a ZF2 project.

Please note: I set up the project with Zend Framework 2.2.2 and updated to Twitter Bootstrap 3.0.0-rc1 because, actually, are latest available versions. If time is passed, you should check official documentations to ensure that this procedure is still valid.

I’ll describe update process assuming that we have a working Skeleton Application deployed following Zend Framework Getting starded guide.

First of all, we have to update libraries in public/ folder by accomplish following steps:

  1. Download Twitter Bootstrap library package and unzip it.
  2. Move content of dist/ folder into <project>/public/ folder.
  3. Download Glyphicons package and unzip it.
  4. Copy fonts/ folder into <project>/public/ folder.
  5. Copy css/bootstrap-glyphicons.css into <project>/public/css/ folder.
Continue Reading

Riattivare ibernazione dopo il ridimensionamento della partizione swap

L’ibernazione può essere un funzionalità importante per molti utenti: essa permette di spegnere il PC ed ottenere, alla riaccensione, la sessione nello stesso identico stato di quando è stata arrestata (file aperti, applicazioni caricate, configurazioni modificate, terminali, ecc.).

Questa funzionalità si basa sull’utilizzo della partizione di swap. In parole povere: quando l’utente iberna il PC, tutto il contenuto della memoria RAM viene conservato in questa partizione e viene recuperato all’avvio successivo. Per questa ragione, la partizione di swap deve essere più grande (o almeno pari) della dimensione della RAM e, in caso di un aggiornamento di RAM, va ridimensionata.

Problema

Il problema è che, dopo un operazione di ridimensionamento, l’UUID della partizione di swap viene modificato e initramfs non riesce più a riconoscere la partizione swap. Ciò significa che quanto proverete ad ibernare il PC, esso non si riattiverà nel modo corretto e si avvierà come se fosse stato spento normalmente.

Soluzione

La soluzione è molto semplice: dopo il ridimensionamento della partizione di swap, informiamo initramfs riguardo il nuovo UUID. Vediamo come.

Continue Reading

Fix Hibernation after swap partition resize

Hibernation can be an important feature for many users: it allows people to turn on the PC and get it in the exact state session of when it was turned off (open files, running applications, configurations edited, terminals, etc.).

This feature is based on usage of swap partition. In poor words: when user hibernate PC, all content of RAM memory is stored in this partition and is fetched at next startup time. For this reason, the swap partition must be bigger (or at least equal) than RAM size and, in case of RAM update, must be enlarged.

The problem

The problem is that, after a resize operation, swap partition’s UUID is modified and initramfs is unable to recognize swap partition. This means that when you try to hibernate your PC, it don’t wake up correctly and boots as you turned it off normally.

The solution

The solution is very simple: after swap partition resize operation, let’s inform initramfs about new UUID. Let’s see how.

Continue Reading