Search This Blog

Friday, February 27, 2015

Ubuntu 14.04 LTS Chrome - enable touch mode (Android-like support)

1. Check you Chrome flags configuration - go to chrome://flags

Enable touch events Mac, Windows, Linux, Chrome OS
Enable pinch scale. Windows, Linux, Chrome OS
Enable pinch virtual viewport. Windows, Linux, Chrome OS, Android
Enable touch based text editing Windows, Linux, Chrome OS

2. Check the no. of your touch-panel

xinput list

for me it gave:

Atmel Atmel maXTouch Digitizer           id=10 [slave  pointer  (2)]

3. Start your chrome browser with the following script


#!/bin/bash
sudo killall chrome
#xinput list  # list input devices 
google-chrome --touch-devices=10 &




Tuesday, February 17, 2015

Android SMS to HTML backup / exporter

The application SMS to HTML exporter that I recently published for  the Android platform enables the user to easily export all his/her messages into a convenient HTML format that can be sent to a desirable email address instantly.

The fresh, material-design inspired and simple user interface should get anyone going in moments.

The application can be downloaded from Google-Play: here

or just copy-paste this address:
https://play.google.com/store/apps/details?id=com.bkosarzycki.smstohtmlexporter

Screenshots:






Tuesday, February 3, 2015

Git - show number of project lines of code for a specific user


To see number of:

  • added lines
  • removed lines
  • total lines of code
for a specific user, use the following:


git log --author="Name Surname" --pretty=tformat: --numstat | gawk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s removed lines: %s total lines: %s\n", add, subs, loc }' -



Android project - count lines of code

In the project directory execute the following command. It searches for all *.java files and counts their lines of code - ignoring _*.java files which are generated by Android Annotations.



find . -name '*.java' -not -name '*_.java' | xargs wc -l