Saturday, May 18, 2013

Installing PhantomJS on Ubuntu 13.04

PhantomJS is a headless WebKit with JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

I have a virtual machine in which Ubuntu 13.04 (64-bit) version is installed. After a few attempts, I found the way how to install PhantomJS 1.9 to my virtual machine.

Steps are bellow:

~cd /Downloads
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
sudo tar xvf phantomjs-1.9.0-linux-x86_64.tar.bz2
sudo mv phantomjs-1.9.0-linux-x86_64 /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/bin/phantomjs
To check is installed successfully run such command:
phantomjs --version

Friday, May 17, 2013

How to install Sublime Text 2 on Ubuntu

There is a good blog post how to install Sublime Text 2 on Ubuntu. This blog post can be found here.

Wednesday, May 15, 2013

SVG Loader

A few weeks ago I started working on project in which I used svg images. In internet I found a solution how to create svg loader.

To get source code of svg loader go here.

Tuesday, February 19, 2013

NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence

A few days go I finished reading book NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence.

The first part of the book concentrates on core concepts, including schemaless data models, aggregates, new distribution models, the CAP theorem, and map-reduce. In the second part, the authors explore architectural and design issues associated with implementing NoSQL. They also present realistic use cases that demonstrate NoSQL databases at work and feature representative examples using Riak, MongoDB, Cassandra, and Neo4j.

Tuesday, February 12, 2013

ASP.NET web api

Microsoft introduced new ASP.NET Web API framework. This framework allows to create rest-services. There is nice diagram in which you can see base components of web api and also to see how requests are processed in server. which represents web api infrastructure.


Full diagram can be found here.

Thursday, January 3, 2013

Disk space usage

Use df command to get disk space usage:
df -H
Output:
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        33G  1.7G   29G   6% /
udev            910M  8.2k  910M   1% /dev
tmpfs           366M  246k  366M   1% /run
none            5.3M     0  5.3M   0% /run/lock
none            914M     0  914M   0% /run/shm
/dev/sdc1       172G  4.8G  159G   3% /home/git/repositories
/dev/sdb1        76G  1.3G   71G   2% /mnt/resource

Saturday, December 15, 2012

Installing PhantomJS on Ubuntu

PhantomJS is a headless WebKit with JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

I have a virtual machine in which Ubuntu 12.04 (32-bit) version is installed. After a few attempts, I found the way how to install PhantomJS 1.7 to my virtual machine.

Steps are bellow:
cd ~
get http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-i686.tar.bz2
sudo tar xvf phantomjs-1.7.0-linux-i686.tar.bz2
sudo mv phantomjs-1.7.0-linux-i686 /usr/local/share/phantomjs
phantomjs --version