Category Archives: Tips&Tricks

Google App has stopped working after Lollipop upgrade on Motorola G 2nd gen

Moto G 2nd generation, Lollipop 5.0.2 upgrade, firmware version 22.21.28, you have a constant crash on “Google App” that prevents from doing anything with the phone, here is how to fix it:
– show the notification panel swiping from the top
– tap on the top/right on the Account icon
– tap on ‘Settings’ icon
– tap on ‘Apps’
– tap on ‘Google App’
– tap on ‘Manage Space’
– tap on ‘Clear all data’

Et voila’, crash is gone, your phone is back on business.

https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/103526/p/30,6720,9151

Tallinn, Estonia: how to deal with dishonest landlords

Hello new citizens of Tallinn, I don’t live there any more, but I know the city very well, I lived there for four years and unluckily I know also very well some dishonest landlords that tried to literally steal my deposit at the end of a rental contract.

Today I want to start with V.V.
Continue reading Tallinn, Estonia: how to deal with dishonest landlords

Writing portable code Linux/Windows

One: never name a anything as ‘small‘. Why? This is defined under RpcNdr.h header file:
#define small char;

Two: never name a anything as ‘FindText‘. Why? This is defined under CommDlg.h header file:
#ifdef UNICODE
#define FindText FindTextW
#else
#define FindText FindTextA
#endif // !UNICODE

Three: if you use ‘__PRETTY_FUNCTION__‘ with GCC prepare that is not part of C++ standard! But you can use the following define:
#ifdef _MSC_VER
#define __PRETTY_FUNCTION__ __FUNCSIG__
#endif

http://msdn.microsoft.com/en-us/library/b0084kay%28v=vs.80%29.aspx

Four: Visual Studio does not like the use of ‘log10()‘ math function passing an int without explicitly casting it:
int foo;
int bar = 100;
foo = log10(bar);

needs to be something like:
int foo;
int bar = 100;
foo = log10((float)bar);

Five: again Visual Studio does not like the use of another math function like ‘pow()‘ passing (double, uint) without explicitly casting it:
double foo(10.0);
uint bar(2);
pow(foo, bar);

needs to be:
double foo(10.0);
uint bar(2);
pow(foo, (int)bar);

I hope this helped someone, do you have more? Drop a comment!

A-Link USB WiFi adapter with RTL8192U 802.11n works with Linux

Thanks to “chili555” from the Ubuntu forum I can say that this chip worked on Ubuntu 11.10 – 32 bit kernel 3.0:
Bus 001 Device 003: ID 0bda:8192 Realtek Semiconductor Corp. RTL8192U 802.11n Wireless Adapter

To make it work you need to copy a firmware from another similar chip, here are the needed commands:
sudo mkdir /lib/firmware/RTL8192U
sudo cp /lib/firmware/RTL8192E/* /lib/firmware/RTL8192U
sudo modprobe -rfv r8192u_usb
sudo modprobe -v r8192u_usb

Mestiere: sviluppatore web – atto secondo

Vi ricordate il primo atto? Se non l’avete letto passate subito a leggerlo:
http://www.marcocimmino.net/2010/10/28/mesterie-sviluppatore-web/

Ho fatto un altro incontro con uno sviluppatore (o sedicente tale) web italiano e diciamo che ci sono stati dei miglioramenti da quello della prima volta (almeno questo ha donato!), ma certe cose proprio non le vogliono imparare, tra tutte una: l’uso della lingua italiana. Continue reading Mestiere: sviluppatore web – atto secondo

libneon27-gnutls_0.28.6-1_i386 for Ubuntu Lucid 10.04

Few minutes after my first issue with the newest Ubuntu Lucid 10.04 and now already the second using subversion: Debian bug #548773

Certificate verification error: signed using insecure algorithm

The only workaround I found is to downgrade to libneon27-gnutls 0.28.6 that I have taken from Kubuntu Karmic and compiled for you. ENJOY!!!

WARNING: Use this at your own RISK, I’m not responsible for any damages!

libneon27-gnutls_0.29.0-1really0.28.6-1_i386.zip
for Ubuntu 10.04 32 bit

librmagick-ruby_2.13.0-2 for Ubuntu Lucid 10.04

I just upgraded to the newest Kubuntu Lucid 10.04 and here we go the first regression, I can’t compile anymore “my” software.
Here is the error:

This installation of RMagick was configured with ImageMagick 6.5.5 but ImageMagick 6.5.7-8 is in use.

So I immediately searched through Launchpad and found that there is already a bug report about that: Bug #518122
That refers to an already fixed bug on Debian bug tracker: Bug #557778

So I just grabbed the Debian testing sources for librmagick-ruby_2.13.0-2 lowered one dependencies and finally compiled under my Lucid aaaaaand here we go, the zip package containing all debs you need to fix this issue! ENJOY!!!

WARNING: Use this at your own RISK, I’m not responsible for any damages!

librmagick-ruby_2.13.0-2_i386.zip for Ubuntu 10.04 32 bit


The Unstandard-Remix includes Cimy User Extra Fields

I got this incoming link to my blog from this site: http://andrewfordlyons.drew3000.net/2009/02/26/dab-of-paint/
Seems that guy did a package with many plug-ins and including also Cimy User Extra Fields.

My curiosity began when I read these words:
The design employs several plugins native to WordPress, among them, heavily edited versions of Customize Your Community and Cimy User Extra Fields.

I said: “Wow finally someone patched my plug-in again and improved it.” Continue reading The Unstandard-Remix includes Cimy User Extra Fields