Tag Archives: linux
Using Sinatra inside the Ruby Class and keep configuration data separately
Sinatra, http://www.sinatrarb.com is the very useful framework in Ruby if you need to build a web-service processing various requests – I suggest to use it to every team as a Mock QA environment where you can SIMPLY generate any type … Continue reading
Filed under technology
Sample of using log4r with Ruby classes, local and global loggers.
That is a very popular family of the loggers, people use when they develop a code in various languages like log4j for Java,. Today we will be talking about log4r, logger for Ruby, and I will show you of how … Continue reading
Filed under technology
Simple connection pool for MySQL implemented in Ruby
I needed a simple mysql connection pool in Ruby supporting get/release connection from/to pool and delete a connection pool on the end. That is the code, together with unit tests – samples of the usage, and test runner #!/usr/bin/env ruby … Continue reading
Filed under technology
Linux equivalent of prstat
I was intently used prstat Unix command on Sun Solaris trying to gather the information of number of the threads per process trying to audit the software fired threads per request to perform an action (need to skip details of … Continue reading
Filed under technology
Grinder, a Java Load Testing Framework. Using custom headers, cookies and payload in GET, PUT, POST, DELETE, OPTIONS HTTP methods
Adding headers, cookies, and payload for various HTTP methods in Grinder, a Java Load Testing Framework, is unfortunately, is not intuitively clear. So the following sample should make life much easier: we specify custom header, cookies, and payload for the … Continue reading
Filed under technology
Installing Ruby, RVM, JRuby on CentOS 5
Ruby RVM, or Ruby Version Manager is a very convenient way of running multiple versions of ruby/jruby on the same machine without install/uninstall it every time. It also applies with using different ruby gem verionsets. You should be aware, that … Continue reading
Filed under technology
Native Data class in Ruby 1.8 is much slower than Date::Performance – class Data, partially re-written to C
http://blog.pluron.com/2009/04/ruby-date-class.html https://github.com/rtomayko/date-performance Unfortunately, it is for 1.8 only. It will not compile on 1.9 rtomayko commented January 15, 2010 Oh, now that I think about it, it’s going to take a lot of work to get date-performance running under 1.9. … Continue reading
Filed under technology
Running Grinder console on EC2 cloud or fixing “java.lang.Error: Probable fatal error:No fonts found”
I was trying to run Grinder console on EC2 cloud, and that is my log of what happened. 1. Yes, I setup the “X” forwarding, and you can read it here of how it was setup. 2. However, trying to … Continue reading
Filed under technology
X Forwarding with Amazon EC2
Thousands people use Amazon EC2 to run they Unix (read Linux) services on the cloud. Sometimes you need to run something that has UI, and you come up to the fact that you need to forward your “X” somewhere out … Continue reading
Filed under technology
Installing Redis 2.2.14 on CentOS 5/6 and running with an “init” script.
Here are simple steps to get Redis 2.2.14 running on CentOS 5/6 (local desktop running CentOS 5.4 and EC2 AMI running CentOS 6.1) using an init script. The setup is intended to be used on developer desktop/laptop rather than production … Continue reading
Filed under technology