Sencha Javascript Ext JS Example

July 26th, 2014 No comments

Javascript CREATING OBJECTS AND METHODS

July 26th, 2014 No comments

JAVASCRIPT CREATING OBJECTS AND METHODS
########################################
1)Scope and Hoisting
Scope = a variable visibility
- globoal scope, out of a function
- function scope, inside a function
Does not support block scope (inside if/else for example)
Hoisting : When a var is declared in a block it is elevated to function scope

Continue reading “Javascript CREATING OBJECTS AND METHODS” »

Categories: HowTo, Javascript Tags: , ,

Benchmark a SSD

July 8th, 2014 No comments

I used the sysbench tool, more info at
sysbench –test=fileio –file-total-size=1G prepare
sysbench –test=fileio –file-total-size=1G –file-test-mode=rndrw –max-time=300 –max-requests=0 run
sysbench –test=fileio –file-total-size=1G cleanup

Continue reading “Benchmark a SSD” »

Categories: HowTo, Linux Tags:

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found

July 3rd, 2014 No comments

ERROR:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found

Continue reading “The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found” »

Categories: HowTo, Linux Tags: , , ,

Linux how to change interface name

May 14th, 2014 No comments

When cloning vm’s inside a ESX I always get a eth1 instead of eth0.
So here is what I do to fix that.

Continue reading “Linux how to change interface name” »

Categories: Linux Tags:

CES 3.0

April 7th, 2014 1 comment

Testing Centreon Enterprise Server 3.0

Basic howto:

http://documentation.centreon.com/docs/ces-documentation/en/latest/installation/getting_started.html

Continue reading “CES 3.0” »

Categories: Uncategorized Tags:

Brasil centron event

April 7th, 2014 1 comment

I had the chance to go to a Centreon meeting organized by Komputer in Sao Paulo on Friday 5th of April 2014.
It was great to met the creator of Centreon Romain Le Merlus and listen and learn to current centreon news.
I hope they can estabilish some users in Brasil and visit more often.

Continue reading “Brasil centron event” »

Categories: News Tags: ,

check_varnish_uptime

March 25th, 2014 No comments

Simple script to check if the varnish daemon has been restarted latelly

Here is the code:

Continue reading “check_varnish_uptime” »

check links

March 25th, 2014 No comments

This code has not been tested in the last 2 years…

Here is the code:

#!/usr/bin/perl

 Continue reading “check links” »
Categories: Uncategorized Tags:

check_backend.sh

March 25th, 2014 No comments

Another bash script to monitor if there were any failed connections to the backend’s.
It is a simple aproach using the command:
varnishstat -1 -f backend_fail
Then it puts the output on a tmp file and next time it runs it checks if it is still having erros on the backend.

Continue reading “check_backend.sh” »