Category: Programming

  • Redirect from one host to another using Apache htaccess

    Redirect from one host to another using Apache htaccess RewriteCond %{HTTP_HOST} ^old-domain.com$ [NC] RewriteRule ^(.*)$ http://www.new-domain.com/$1 [R=301,L]

  • Speed up Selenium web-driver tests by disabling images and CSS

    Using Selenium Webdriver, we can manipulate and use a web browser programmatically. This is widely used in website testing as once a programmed script is written to run on a website, we can sit back and relax while the script is testing the desired outcomes of the website. Also there are many other use cases. […]

  • PDF version of Guide to MongoDB Indexes

    You can download the PDF version for MongoDB indexes on their official site at: http://docs.mongodb.org/master/MongoDB-indexes-guide.pdf

  • Fixing No Input File Specified error on Nginx + PHP

    Today I wanted to try out Nginx server my windows machine. After setting up the basic server block details for my project, I called the site URL. In the WT-NMP stack to quickly setup the software I needed. In the server block, I needed to specify my root path in a different location other than […]

  • Setting up xdebug with phpstorm

    This guide provide a step by step details on how to set up phpstorm IDE to work with xdebug.   Installing on Ubuntu In software search for xdebug and install.   Add to the following xdebug settings to php.ini file   xdebug.remote_enable = 1 xdebug.remote_port = 9000 xdebug.remote_handler = dbgp xdebug.remote_mode = req     […]

  • Xpath vs CSS Selectors

    After researching and reviewing on whether to choose XPATH or CSS selector, the following are the points I came across.   Some points to CSS Generally CSS is easy to use and readable over XPATH. REF: http://www.seleniumhq.org/docs/appendix_locating_techniques.jsp#starting-to-use-css-instead-of-xpath   CSS is native to browsers and XPATH is not REF: http://old.eurostarconferences.com/blog/2013/1/28/liveblogged!-automated-web-testing-traps-for-the-unwary-with-simon-stewart CSS is preferred for testing as […]

  • NUC machines might be the next desktop killer

    While it seems like to CPU processing power is coming to a limitation, Intel is focusing on small form factor machines.

  • Installing Unlimited Strength Jurisdiction Policy Files for your JRE

    Today in work, I had to use AES encryption to basically encrypt and secret text and store it somewhere. This is with Ruby language so I ended up using ‘aes’ gem as it is build on top of OpenSSL and provides simple set of methods that can be used to encrypt and decrypt strings. Following […]

  • Setting up xdebug with phpstorm

    This guide provide a step by step details on how to set up phpstorm IDE to work with xdebug.   First download xdebug and copy it into the extension folder. Copy the full path the extension.   Add the following xdebug settings to php.ini file.   php.ini file [XDebug] zend_extension = “C:xamppphpextphp_xdebug-2.2.5-5.5-vc11.dll” xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000 […]