Set up mongoDB as a Windows service

September 18, 2015

VSFTP to backup multiple websites

For our web management service we also performance website backups in a timely manner by using our own FTP server. This guide is written on how we configured VSFTP (A recognized FTP server in Linux distros such as Ubuntu) to handle multiple websites. ...

August 22, 2015

Git and Dropbox together

Git is a source code management tool and heavily used to open source software developers particulary with services such as github.com. These managed source code locations are called repositories. Source code repository is a powerful place to find history of source code modifications or to download the source code instantly. However sometimes you might want to have a repository that is only available for you. For example, as a backup repository....

July 20, 2015 · Sinaru Gunawardena

Edit images while on WordPress

Tip to update the images on WP. This feature comes inbuilt of WordPress. Go to media. Click on the image. Click edit image button. Then you will see a list of button that you can use to manipulate (rotate, scale…) the image. Once changed, it will affect all the places where the image is used.

April 23, 2015

Redirect from one host to another using Apache htaccess

Redirect from one host to another using Apache htaccess

April 19, 2015

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. Now the thing about the driver is that it uses a real web browser to run the scripts....

April 18, 2015

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

April 16, 2015

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 WWW. Then when I hit the URL, I was getting “No Input File Specified” for my PHP script....

April 5, 2015

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 Installing on Windows XAMPP 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 Install easiest xdebug for Firefox and specify the remote IDE key for Firefox...

December 30, 2014

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 it is having more advantages over XPATH REF: http://seleniumeasy.com/selenium-tutorials/css-selectors-tutorial-for-selenium-with-examples Some points to XPATH XPATH can travese up the document from a child element to parents....

December 8, 2014