Using Frame Rate with requestAnimationFrame

Today I will show you one simple tutorial about requestAnimationFrame.
According to mozilla development team ths requestAnimationFrame has made to :
The Window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.
This allow you to controlling the frame rate by limiting the frame rate.
First you need to make a simple HTML5 file with h1 tag and id named frame_count ( you can use any id name -if you want).

<!DOCTYPE html>
<h1 id=”frame_count”></h1>
The next step is to customize with CSS into style tab.
I make it with a Arial green font and bold style.
Just add the next source code into style HTML tag.

Now you need to use javascript with requestAnimationFrame.
Let see the source code:

So two functions: first will used the requestAnimationFrame into the windows and draw function will drawing all into browser.
The first function has another function to setTimeout.This creates a function object and executes it immediately bacause I used }());
Most of variable is named to understand how happend.
I also used this document.querySelector.bind to return the first element within the document (using depth-first pre-order traversal of the document’s nodes) and that matches the specified group of selectors.
And the output is this:

Rainmeter – the new conky for Windows OS – part 001.

If you love it conky under Linux OS then for Wiondows OS you can try Rainmeter.
This application let you to customize your desktop with a lot of infos about web and PC.
Rainmeter is a free, open-source application, that enables skins to run on the desktop.
Some skins can interact with other skins and applications using special commands, called bangs and can be changing with short lines of text, called variables.
With some experience with Rainmeter’s code language you can make or changing someelese skins.
As you can see in this image , the application let you to set by GUI most of the skins and also to change it using your text editor. I used notepad , but you can also use any text editor (like sublime or something else).
Rainmeter tutorial 001
Also I set some default skins like network , data , disks and system.
You can have multimple layouts. I used illustro. Any layout can have many skins.
This skins can be loaded and unloaded by the user. In the bottom of this GUI will see one button named: Edit settings. This allow you to edit the file settings of Rainmeter.
Next will show you something about how to use the Rainmeter.ini file.
For example first line ( see the image from the top):

… tells us about logging -if set to 1, the log will be saved to a file, and also thepath to the skins folder.
Easy to do it if you know how to deal with this file. For example if I add the TrayIcon set by 0, you don’t see the Rainmeter trayicon.

Now will try to speak about some basic standard” features of this application.
First is meter and that allow you to defines a visual element.
This visual element is displayed in a skin, does not have a value, has a certain position with dimensions.
Let’s make one skin. Thirst you need to create one folder into this path:

Make also a text file named : MySkin001
… and fil with this :

I used this png file ( I also used gimp to set transparency).
The image is not very clean , but you can make some changes.
rainmeter sprites
Clicl left on trayicon and select Manage. Under Skins tab select illustro -> MySkin001 -> MySkin001.ini and press load button to load the skin.
The next video show you how is working.

If you don’t make yourself all of this settings then you can get a lot of skins from

New Tampermonkey – Greasemonkey extension for Chrome.

Every body hear about Greasemonkey. Greasemonkey is a Mozilla Firefox extension known as augmented browsing.
This allow users to install scripts that make on-the-fly changes to web page content after or before the page is loaded in the browser.
Now you can use it with Chrome and Opera Next by using Tampermonkey.
This tool that provides Greasemonkey script support for Google Chrome and Chromium Browser. Also is fully compatible to Greasemonkey, including GM_registerMenuCommand, GM_xmlhttpRequest with cross domain support and access to the unsafeWindow object.
You can find more about this extension from tampermonkey website.
The was the source for tampermonkey.
Be careful: it’s a lot of SPAM and SCAM scripts that try to hijack your Facebook account.

How to find free images of high quality – part 001.

You can download for free from

Over 250,000 free photos, vectors and art illustrations
Finding free images of high quality is a tedious task – due to copyright issues, attribution requirements, or simply the lack of quality. This inspired us to create Pixabay – a repository for stunning public domain pictures. Your source for free vectors, free drawings and free photos. You can use any Pixabay image without attribution in digital and printed form, even for commercial applications.