Go is a quite new programming language. It was developed in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. Although it’s not as mature as C, Python or Java, it has already gained significant popularity in developers community. For instance, Docker is written in Go. It’s also in active use in Dropbox, Canonical and…
Ansible: how to add swap memory on your Linux box
If you are not familiar with ansible, you might want to take a look at our previous post. So here’s a problem. If you have, say, Amazon EC2 instance or Rackspace Cloud server, you might want to add swap memory. You can do do it by running the following commands: sudo dd if=/dev/zero of=/mnt/4GB.swap bs=4096…
Ansible: quick intro
Ansible is a solution for remote server management. It’s pure Python and basically the only thing it requires is SSH connection. Why you might want to start using it? Well.. For starters, it’s very simple. It’s possible to start using it after 10 minutes introduction. It doesn’t require to know anything special. All configuration is plain…
Installing Sentry on Centos 6.5
Sentry is a real time event logging and aggregation platform. It allows to aggregate all events of your project in one place. It may be handy to get all logging messages and to have a possibility to track what’s going on with your application. You could use Sentry with node.js, PHP, Go, Python, Java and some…
Installing Python 2.7 on Centos 6.5
Centos 6.5 is shipped with Python version 2.6. And for some projects and/or applications you may need to use version 2.7. First thing which comes to mind is to compile it from sources. But obviously it’s not the best way. It would create more problem in future, besides it’s quite easy to get the whole system…
Python: running services with logging to Rsyslog on Fedora
So, here is a task. We need to run some Python script as service with logging to Rsyslog on Fedora. As you may know, Fedora starting from 15 uses systemd which is a replacement for SysVinit and Upstart. With use of it to setup Python service with logging is quite simple. Let’s assume we have…
vBulletin: attachments service optimization using vb-accelerator
By default vBulletin uses PHP to deal with attachment downloads. It means that to provide a file from forum attachments to a user PHP process reads it and then starts to output it. This would work ok if you don’t have to much users. But if you do attachments downloads from PHP could become one of…
Headless Selenium testing environment on Centos 6.5
Selenium is a set of tools which allows to test web applications automatically. Here’s a way to get it working on Centos 6. At the end we should be able to run headless Selenium tests with Firefox. Please note that as X11 disaplay server we will use Xvfb. At first let’s install required packages and…
How to enable LED blinking for a drive in LSI RAID
If you need to replace a failed HDD, it might be useful to enable LED blinking. Here’s how you can do this if you have LSI RAID. At fist let’s find HDD information. MegaCli64 -PDList -aALL | less What you need to find is Enclosure Device ID and Slot number. Once done, run: MegaCli64 -PdLocate…
elasticsearch: installation and configuration on Centos 6.2
The installation of elasticsearch (which is distributed RESTful, search engine built on top of Apache Lucene) on Centos, will be easier if it is in repositories. But it isn’t. And since the best way to install application on Centos is to use rpm packages we will need to build it. At the very beginning you…