13 lut

Piwik Real-time map: There is no data for this report – tutorial

If you also have a problem with real-time map in your piwik portal, here is a short description how to make it available in a few points. Let’s do it!

sudo apt-get install php5-geoip php5-dev libgeoip-dev
sudo pecl install geoip

add to php.ini

extension=geoip.so
geoip.custom_directory=/path/to/piwik/misc

Then restart webserver andgo to  Piwik > Settings > Geolocation, then choose the GeoIP PHP

If you want to know locationsof your visits before you have installed GeoIP feature run this script in /path/to/piwik/misc/others

php ./geoipUpdateRows.php
25 sty

Drag and drop rows to reorder your DataTable in Primefaces

primefaces

In Primefaces you can drag&drop your columns using widget Datatable to change order of them, but there is no out-of-the-box action to reorder rows. Code snippets attached below will help you implement such custom functionality.

  1. We need to add some JavaScript (JQuery) in your JSF page to make Datatable sortable and to disable selection mode. Listed below doReorder() method gets the new order of the rows and save to order_q variable: Read More
22 mar

Scanning and generating barcodes using ZXING library on Android

logoThe most popular all-in-one codes library for Android is zxing. Everyone used a Barcode scanner app based on this lib. But this library provides also ability to generate codes. In this example I show you how scan 1D code – Code 128. Code 128 is a very popular type of 1D code. After scanning, we obtain scanned information and… encode again to show on Android device for further scanning. Let’s go!

What we need:

29 cze

Bitbucket and Github on your Android smartphone

Do you use Bitbucket or Github? I use the repositories for bitbucket.org and I like when traveling see if a friend dropped something new. On Google Play we can find two applications: repoman and bitbeaker.

Personally, I like bitbeaker more. Looks good, I find quickly the corresponding information in this application. Anyway I only use a changesets list, rarely look for changes to files on the phone. Repoman has a very poor layout, but provides similar functionality. 

The choice is yours. Scan codes to download apps from Market… sorry from Google Play:

Bitbeaker
Repoman
18 cze

New version of Andlytics Project!

I wrote earlier that, Andlytics Android project has been discontinued, but… Today on @andlytics twitter channel appeared good news. Somebody did good work and new version Andlytics available from here http://t.co/9chm3OBt or scan this code:
New (working) Andlytics project available on Google Play or simply scan this new code: