2/22/2017

Static Site Generators

I've been using  CMS (Content Management Systems) for a while, starting with Joomla and also trying Wordpress for several projects. These products are great, but you have to invest a lot of time in keep an updated OS version and CMS version as well, for security purpose.

The setup is not hard in most of the cases (PHP, Mysql and Apache environment), but sometimes the deployment of this tools are not the best choice if you want to work in a small/personal project or if you want to keep static information all the time in the web page.

I started to read about Static Site Generators (SSG) and I found that this tool an excellent choice for static web page and different types of projects. The main benefit is that you don't need an advanced setup configuration, just in most of the cases, an apache working server (there's no need to connect to a database to retrieve information to your web page). The content is managed in several types of files and the performance it's pretty good compared with standard CMS.

Here's a good starter link, to take a look about SSG, from Gitlab and also a nice post about why to choose this type of technology

Also you can find here 2 sites with some information about the most popular SSG available right now: HeadlessCms and StaticGen

I will dedicate future posts to the deploy of some of this SSG tools

Thanks for visiting

Rodolfo

2/15/2017

CPU Virtualization Checklist

Every time you start to play with virtualization or have to work with it, you must check if your processor has virtualization support. This feature is helpful, because you can improve the guest/vm performance. Instructions are trapped and emulated at the hardware level (Intel® VT-x/VT-i and AMD-V™). This means that a guest can run without specific modifications to allow for virtualization.

Most of the times this feature is disabled from the bios, and you have to enabled in order to take full advantage of the processor capabilities. 

For example in a Sun x6270 Server, we can review the information from more /proc/cpuinfo. This a common way that many sites and blogs recommend.

[root@oraclevm etc]# dmidecode | grep -A3 '^System Information'
System Information
        Manufacturer: Oracle Corporation
        Product Name: Sun Blade X6270 M3
        Version: N/A

[root@oraclevm ~]# more /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz
stepping        : 7
microcode       : 0x710
cpu MHz         : 2494.092
cache size      : 15360 KB
physical id     : 0
siblings        : 12
core id         : 0
cpu cores       : 6
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi
mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eag
erfpu pni pclmulqdq monitor est ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_tim
er aes xsave avx hypervisor lahf_lm ida arat epb pln pts dtherm xsaveopt
bugs            :
bogomips        : 4988.18
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

We need to search for the following flags

      vmx – (intel)
      svm – (amd)

We are not able to see in our case the vmx flag. Let's move to the bios

Once I logged into the bios I went to Main->Cpu Information .I can confirm that virtualization support is enabled


I also went to IO->IO Virtualization and enabled each option

      VT-d:   Enabled
      SR-IOV:  Enabled
      ARI:  Enabled

and saved the changes and rebooted the server

After that I'm not able to see again the vmx flag

[root@oraclevm ~]# grep vmx /proc/cpuinfo
[root@oraclevm ~]#

After digging into google, I found this article

I'm using Oracle VM, that runs a XEN kernel and according to the previous article 

Tip # 3: XEN Kernel

By default, if you booted into XEN kernel it will not display svm or vmx flag using the grep command. To see if it is enabled or not from xen, enter:
cat /sys/hypervisor/properties/capabilities

You must see hvm flags in the output. If not reboot the box and set Virtualization in the BIOS

Once I run cat /sys/hypervisor/properties/capabilities ,i can see the right values

[root@oraclevm ~]# cat /sys/hypervisor/properties/capabilities

xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64

So I think we are good :).

Another tool that I found useful and interesting during this research was virsh.

Thanks for visiting

Cheers

Rodolfo

2/09/2017

Steak Revolution - Must see documentary for Meat Lovers

This documentary is a must see, for every food lover. This french documentary from 2014, tries to search in a worldwide trip, the best piece of meat.

France,Spain, Italy, Argentina, Brazil, USA and Japan are part of this adventure that includes a complete ecosystems of chefs, farmers, butchers, food critics and writers, that provides a diverse and rich point of view for such a noble and challenging task.

Here you can find the netflix link for the movie


Also is available in youtube too : Portuguese Version

Have fun

Rodolfo





2/03/2017

Desde el sur con cariño

Mientras finalizaba mis estudios de Ingeniería Civíl Informática, estuve trabajando como freelance, para una productora de cine , en mi ciudad natal, Valdivia. Daba asesorías en el aspecto informático, colaborando en la mantención de su infraestrura tecnológica.

La productora Jirafa, lleva años haciendo cine, desde este rincón del mundo, amigable , sereno y quitado de bulla. El realizar cine independiente y de calidad no es tarea fácil y mantenerse vigente durante todos estos años es meritorio, para una ciudad de 200.000 habitantes.

Me siento orgulloso de mi ciudad, que se ha forjado un sitial en el aspecto cultural de mi país, con iniciativas como el Festival de Cine de Valdivia, entre tantas muestras artisticas, así como tambien el museo de arte contemporáneo.

Les dejo una muestra del trabajo de esta productora y espero que tengan la oportunidad de conocer mi ciudad en todos sus aspectos (cultural, gastrónómico y turístico).



El trabajo es del director Valdiviano Cristian Jimenéz .


Have fun

Rodolfo