Two weeks ago I set up affiliate link tracking in my Google Analytics. Although the program doesn’t pay much per sale, it does convert pretty well given my generic traffic. They do offer detailed stats but I suspected that it reports too many clicks (including bot clicks) and I always wanted to track this via […]
There was another great tutorial at PhotoshopTutorials.ws. This was really simple and at the same time I filled some gaps. Doesn’t take much time at all and is great for absolute beginners. Here is my result. You can compare it with the original on their site. It was much easier than cartoon pirate tutorial.
Followed this tutorial and after a few days of work produces this: It was great. I learned a ton! If you are interested in learning Photoshop it’s a great tutorial to follow. Challenging enough but also not too complicated.
>> require ‘fileutils’ >> FileUtils.pwd # prints working directory >> FileUtils.cd ‘/path/to/requiredfolder’ # takes you to required directory To exit irb either exit or CTRL+D should work.
Q: What to_i stands for in Ruby and what it does? A: to_i stands for “to integer” and is needed to convert strings into integers so you can do mathematical operations with them. Any value, even numbers, acquired from URLs in params becomes a string and if you need to do some math with it […]
Q: What are params in Ruby? A: params in Ruby are equivalent of $_REQUEST array in PHP. They can come from: query string of GET request, input from POST request, or the path of the URL. If user requested http://localhost:4567/bill then params[:name] are “bill” Example: require ‘sinatra’ get ‘/:name’ do name = params[:name] “Hi there […]
Here is the solution that will save you time and nerves while working in Sinatra / Ruby. To reload Sinatra automatically, in the beginning of your document right after the opening require ‘sinatra’ add this: require ‘sinatra/reloader’ if development? You can now see changes by simply reloading page in your browser, no need to type […]
While there are many backup solutions both paid and free some of you will want to know how to backup WordPress site or blog manually without relying on plugins or paid services. It is a matter of preference really, but if you are a control freak like me or if you have too much to […]
If you build so many websites that you eventually forget not only your password but even username or maybe even email you used to install WordPress, here is how you can find it (provided you still remember how to access to cPanel where your site is hosted): 1. Go to yourwebsite.com/cpanel and login using your […]
This quick tutorial will help you fix 404 error issue when you request index.html for your WordPress site. If you initially started out with WordPress you will not have this problem, but those who were on different platforms or had static websites that used index.html page, then converted to WordPress might still have old links […]