Monthly Archives: March 2014

Google Add to Calendar link

This is how

<a href="http://www.google.com/calendar/event?
action=TEMPLATE
&text=[event-title]
&dates=[start-custom format='Ymd\\THi00\\Z']/[end-custom format='Ymd\\THi00\\Z']
&ctz=America/New_York
&details=[description]
&location=[location]
&trp=false
&sprop=
&sprop=name:"
target="_blank" rel="nofollow">Add to Google Calendar</a>

 

Vigo pedirá en referendo a adhesión a Portugal??


Polo menos douscentos cincuenta mil vigueses están chamados ás urnas para decidir en referendo o futuro da cidade de Vigo.

Habitante de Vigo defensor da incorporación á República de Portugal

Despois de anos de rumores e difamacións acerca da procedencia e nacionalidade dos habitantes vigueses, o levantamento popular das clases lusistas da cidade, fará posíbel este pronuciamento.

Read more at http://temposgalegos.com/2014/03/17/vigo-pedira-en-referendo-a-adhesion-a-portugal/

 

 

GMail – address alias

 

Install Plesk in CentOS

I’m installing a Plesk on a virtual machine, in a fresh CentOS.

For non-fresh CentOS  or with f Apache, PHP, MySQL and/or Cyrus, remove them.

yum remove http* 
yum remove php* 
yum remove cyrus* 
yum remove mysql*

1. Disable SELinux status

setenforce 0

3. Make a working directory and go inside her 😉

mkdir /root/plesk
cd /root/plesk

4. Download the plesk auto installer

wget http://autoinstall.plesk.com/plesk-installer

5. Run it

 sh ./plesk-installer

Now is just follow the screens! 🙂

 Congratulations!
 All stages of the installation/upgrade have been finished.
 psa is now running on your system.
 To complete the system configuration process, please proceed to URL:
 https://localhost.localdomain:8443/ or
 https://127.0.0.1:8443/
 Use 'root' and '<YOUR root PASSWORD>' as login name and password in case of fresh installation.
 Use 'admin' and '<YOUR admin PASSWORD>' as login name and password in case of upgrade,
 or if Plesk is already configured.

Further, use the following commands to start and stop the system:
 /etc/init.d/psa start and
 /etc/init.d/psa stop respectively.

 

Your host name must resolve to the correct IP address of your server – Plesk

Your host name must resolve to the correct IP address of your server, unless you are using network address translation (NAT).

Please quit Parallels Installer, fix the host name resolution problem,
and then try installing again.
You can skip the hostname check and continue the installation, however,
in such a case, the installer cannot guarantee successful installation.

I’v edited /etc/hosts/ and added

127.0.0.1 webhostplesk 

to it.
It worked… dunno if is the right solution, but it worked. 🙂

 

Hack – programming language for HHVM – seamlessly PHP

Today we’re releasing Hack, a programming language we developed for HHVM that interoperates seamlessly with PHP. Hack reconciles the fast development cycle of PHP with the discipline provided by static typing, while adding many features commonly found in other modern programming languages.

We have deployed Hack at Facebook and it has been a great success. Over the last year, we have migrated nearly our entire PHP codebase to Hack, thanks to both organic adoption and a number of homegrown refactoring tools.

We’re also proud to release an open source version of Hack to the public http://www.hacklang.org/ as part of our HHVM runtime platform, which will now support both Hack and PHP.

 

 

WordPress caching – Quick Cache

I have a bunch of wordpress blogs, two of them getting 1k unique visitor each.

Both of homepage was taking almost 3 seconds to be compiled…
I’v installed a small WordPress Plugin named Quick Cache, to make cache of pages, and from almost 3 seconds now they are served in less that half of a second.

Before Quick Cache plugin

After Quick Cache plugin

History from some tests on the 10th of March and 17th of March.