October 11, 2013 Adem Bilican No comments

Goodbye Piwik !

This is not an anti-Piwik article. I have started using Piwik a few months ago. I really liked it, it is a powerful and open-source analytics tool.
If today I say “Goodbye” to Piwik, it is because I stopped using any analytic tool at all.
I was checking my stats very often, I was affected at some point, I couldn’t stay without checking many times a day.

A very interesting article from Ploum made me wonder about it.
I don’t want to write articles or share links depending on the interest of my readers (of course I care about you), but I want you to read things I will write with pleasure, with love. I completely uninstalled Piwik, I don’t know how many people are reading me, I only hope to be helpful to at least someone with my tutorials or information.
NB : You can also check your Ghostery, it says “No Trackers Found” 😉
Do the same, feel free.

Source: New feed

September 19, 2013 Adem Bilican No comments

Alternative to locate/find command line on mac

In linux you can use the “find” or “locate” command to look for a specific file or folder. The best alternative I know on Mac is Spotlight. However Spotligh is based on a graphical interface and the “best” option is to show all the results on the Finder, which is not very handy if you work all the time on the command line. After some research, I found a way to use Spotlight from the command line and show the results as the find or locate command on linux.

The main command to show Spotlight results on the terminal is :

    mdfind -name $NAME

where $NAME is the word you are looking for.

To make it easier to use and remember, I put an alias on my bash
1 – Open the file ~/.bash_profile
2 – Add the following lines

    search()
{
mdfind -name $1
}
alias find=search

3 – Reload you bash

    source ~/.bash_profile

you can now use the “find $NAME” command within your terminal as you would use it on linux and enjoy the results 😉

Related links :
Bash alias and parameters
Search Spotlight from the osx terminal
Source: New feed

September 16, 2013 Adem Bilican No comments

Getting rid of Google on Android

noGoogleAndroid.jpg
I recently switched again to Android. I was getting very limited in iOS, it was a pain to do simple things that you would do easily with Android (file transfert, syncing with multiple computers, real Bluetooth…). However, there is a big problem with Android : Google…
After receiving my second Androphone I realised that all the apps I installed in my first one were saved online on the Play Store. I knew the equation “Google != Privacy” and this was decisions’ time for me. I will explain in this article how to use Android without getting annoyed even by the G of Google.
I already stopped using any service from Google a few months ago. I am using owncloud for my contacts and calendars, Leed for my RSS feeds and Shaarli for my links (only private links). The biggest problem for me was to get rid of the Play Store. Luckily on Android it is possible to install third party apps without “jailbreaking” and many alternative app-stores exist.

The first step when you get your Androphone is to install Cyanogenmod (a.k.a CM, or any other alternative ROM respecting your privacy). It is a very nice ROM running on multiple devices and always up-to-date with the latest version of Android. Although my device is a Nexus (and thus get all the latest version of Android), I still decided to install Cyanogenmod to get completely rid of Google. The installation is straightforward, everything is clearly described on the wiki page of your device. The idea of installing CM is to use a stock version of Android, even without the Google Apps, thus do not install the additional Google Apps package for CM, I will show you how to survive without them.

First of all let’s look at the Play Store alternatives, as we need somewhere to download interesting apps.
There are many options, I tried the following ones.
F-Droid, an appstore containing only free and open-source softwares (FOSS) – F-Droid.apk
1 Mobile Market, where you can find the majority of the Play Store apps – 1mobile.apk
SlideMe
Amazon Android Appstore
PandaAppPandaApp.apk
GetJar
Opera mobile store
Firefox marketplace

For some of the stores you will need to create an account. I recommend to use junk/fake email services such as yopmail which works very well. Discodog.fr presents a list of junk email alternatives, I didn’t try all of them, be prudent and check by yourself first.

You can also use the google play downloader app from Tuxicoman. It is a graphical interface written in Python which connects to the Play store and downloads all the apps you want to your computer. If you need and Android ID, you can use the android-checkin script to create one (using a fake gmail address). (thank you Tuxicoman for the tip)
Another option is the APK Downloader pugin, which is unfortunately only available for the Google Chrome browser.

IDEA: Why not create a web-app accessible from your Androphone to be able to download the .apk files directly in your smartphone instead of dealing with your computer? If someone else is interested, please let me know, we can do that 😉

As we now have many Play Store alternatives, here are some alternatives for the original Google Apps.
First, try to get your own domain name, it is really cheap and very nice to have your email address like firstname@name.com. In this situation you also have all the control over your Privacy.
K9-mail, this app is a must-have.
Firefox, the Android app is very nice, I really enjoy using it (you can also access your apps downloaded from the Firefox Marketplace)
Navit (I recently discovered OsmAnd which is better and work the same way with offline maps) as a Navigation system, it runs on multiple platforms and is based on OpenStreetMap maps. It works offline, the map is saved on your Smartphone and you won’t need any data connection to use it. Please consider improving OSM maps, it is a very interesting experiment, start by reading the beginners’ guide.
Owncloud
MuPDF a simple document viewer
DuckDuckGo as your favorite search engine (.apk file link on the top of the page).
Gibberbot, a chat client supporting the open XMPP protocol and OTR encryption. In addition, I recommend to install your personal XMPP server.

So far so good, but I still miss the following features of iOS : by default support of calDAV and cardDAV, a nice reminders app (with calDAV support). There are some calDAV and cardDAV sync app but they are mainly not open-source (except caldav sync adapter) and they don’t work as expected (automatic sync, two-ways sync…) — I found DavDroid (carDAV and calDAV support) and Mirakel (task manager with calDAV sync) — Google is unfortunately trying to force you to use your Google account, then everything is easier.

Interesting links :
Me & My shadow
Security in-a-box : How to use smartphones as securely as possible

Images :
Google
Android
Peace Love and Happyness
Source: New feed

September 10, 2013 Adem Bilican No comments

The Sebsauvage Effect

sebsauvage effect (SE)  speaker.png [Ṧȅƃsọṿåij]
noun
1. Increase of Piwik’s “Visits over time” counter
2. High score of sebsauvage.net in “Refferer Websites”
3. Suspect slow down on affected website

Origin :
This effect started approximately in the early 2012. It affected a very large number of blogs. The effect takes place once the affected blog/website is mentioned at Sebsauvage’s Shaarli. Do not try to prevent the Sebsauvage effect, it is under no control. Simply enjoy it…

Representation :
piwik.png

Synonyms :
– There is no known synonym yet.

Idioms and Phrases :
– I have been sebsauvage’d.
– I got the SE !
– SE’d or not yet SE’d ?
Source: New feed

September 8, 2013 Adem Bilican No comments

Install your personal XMPP server

XMPP_logo.png
Do you want to get rid of Whatsapp, Viber & co? Do you want to use an open protocol to communicate with your friends and family? Are you interested in encrypted communication? If yes, XMPP is what you are looking for.
XMPP (or Jabber) is an open-source protocol for communication (a.k.a. chat). Many XMPP servers already exist, if you want to start using XMPP right now, you can register an account at dukgo.com. Otherwise, you can also install your own XMPP server and use it with your personal domain name, which is very nice and let you a complete control over your communication. You can even create XMPP accounts for your friends and family using your domain name. To do so, I will introduce you to the different steps to install ejabberd. Ejabberd is an open-source XMPP server written in Erlang and very well supported in Unix systems. I installed ejabberd on my server running Xubuntu and it is working very well.

1- Install ejabberd

    sudo apt-get install ejabberd

2- Once installed, you need to modify the configuration file:

    sudo emacs /etc/ejabberd/ejabberd.cfg

modify the line 58 to

    {acl, admin, {user, “[USERNAME]”, “[DOMAIN]”}}.

and line 61 to

    {hosts, [“localhost”,”[DOMAIN]”]}.

3- Finally, you need to add an admin user from the command line

    ejabberctdk register USERNAME DOMAIN PASSWORD

restart your ejabberd server by typing

    sudo /etc/init.d/ejabberd start

You also need to open the ports 5222, 5280 and 5269 of your server to be able to access your account from outside.
To access the admin interface of your account go to
http://[DOMAIN]:5280/admin/

4- You can then use any chat client supporting the XMPP protocol to enjoy your new account 😉

For Desktop environment you can use Adium, Pidgin or Jitsi.
For mobile platforms, I recommend GibberBot and Beem (Android, available on F-Droid) or ChatSecure (iOS) both supporting OTR.

Useful link : JabberFr wiki (in French)
Image source : XMPP logo Wikimedia Commons

Source: New feed

August 27, 2013 Adem Bilican No comments

[FR] Ce blog est non-fumeur

[FR] Ce blog est non-fumeur
noSmokingLogo.jpg
    Quel est le problème de notre société avec la cigarette ? Je me demande toujours ce qui pousse autant de personnes à se “suicider” lentement. Oui, je pense que la cigarette est une sorte de suicide, un suicide “lent et doux”.

    Pour les nerveux accros de la tétée nicotinisée qui me diront “Qu’est-ce ça peut te foutre espèce de puceaux de la cigarette ? Si je fume, je fume pour moi, et alors…” 😳
Je ne peux pas vous empêcher de faire ce que vous voulez de votre corps, de votre âme… c’est votre vie, faites-en ce que vous voulez. Mais ayez au moins la gentillesse, la politesse et le respect de laisser les non-fumeurs tranquille. Pourquoi suis-je obligé d’encaisser la fumée de votre cigarette, tous ces poisons que vous m’envoyez en plein dans la face, sans parler de l’odeur insupportable alors que je n’ai rien demandé.

— Pour tous les autres fumeurs —
Je prends le train tous les jours pour me rendre au travail. Pourquoi attendez-vous devant la porte avec le briquet et la cigarette à la main l’ouverture de la porte pour vous empoisonner si impatiemment dès le prochain arrêt ?
Pourquoi en plein hiver, il faut impérativement que vous sortiez dehors vous gelez les coui…s pour pouvoir fumer ?
Pourquoi payez-vous autant d’argent pour mourir lentement ? N’y as-t-il pas d’autres moyens plus économiques (ceci est une blague bien évidemment) ?
Pourquoi empoisonnez-vous vos propres enfants ? Tous ces pauvres bébés qui naissent accro/toxicoman à cause de leur mère fumeuses (mon épouse étant infirmière en maternité je sais de quoi je parle). Et que dire des grands-parents qui dégoûtent leurs petits enfants avec leur odeur de cigarette (là aussi je sais de quoi je parle…)
Et vous les jeunes, est-ce vraiment un signe d’acceptation sociale que de fumer le plus tôt possible ? Bon j’arrête avec les jeunes, ça ne sert à rien, le problème venant de la source.
Des parents qui fument ne peuvent pas empêcher leurs enfants de fumer, ils n’en ont tout simplement pas le “droit”. L’enfant aura simplement à dire : “Si fumer est si mauvais, pourquoi toi tu fumes alors ?”

    Est-ce si difficile d’arrêter ? Avez-vous déjà essayé ? Je veux dire essayer pour de vrai ? Pas comme ce camarade qui dit qu’il ne peut pas s’en passer plus de 2-3 heures et que quand le mois de ramadan arrive il est capable de ne pas fumer pendant toute une journée ? Peut-être n’avez-vous pas assez de convictions ? Je vais vous donner une bonne raison d’arrêter de fumer: la santé.
Ne vous gâchez pas la vie si vous avez la chance d’être en bonne santé. Dites-vous que d’autres personnes n’ont même pas cette chance et que si ces personnes étaient à votre place elles ne fumeraient pas de leur vie.

    Faites savoir à vos proches que vous voulez qu’elles arrêtent de fumer, dites-leur en insistant, encore et encore, sans en avoir marre, ne laissez pas tomber. Ne vous dites pas que c’est leur vie à eux et qu’ils en font ce qu’ils veulent (comme je le fais un peu plus haut pour me défendre des nerveux de la cigarette). Si les personnes que vous aimez sont mal, vous le serez aussi, tôt ou tard.

A.
Source: New feed

July 19, 2013 Adem Bilican No comments

Longer php sessions in Ubuntu

Longer php sessions in Ubuntu
    I just realized that the sessions of my web-apps were closing very rapidly, I had to login again every time I wanted to check my RSS (Leed) , my blog (Blogotext) or my links (Shaarli).
After some DDG search I managed to change the maximum lifetime of my sessions to remain connected for a longer period.
To do so open a terminal and run the following command

cd /usr/lib/php5/

You should see a file called maxlifetime, open it and modify the value of the max parameter (this value is in second). I changed it to 259200.

If you don’t see the maxlifetime file, you can search for it by running

dpkg -L php5-common

Enjoy your web-apps without repetitive disconnections 😉

Source: New feed

May 27, 2013 Adem Bilican No comments

Keep SSH connection alive in OSX

Keep SSH connection alive in OSX
    If you want to keep you SSH connection alive to avoid automatic disconnections it is very easy in OSX.
Open your terminal and run the following command:

cd ~/.ssh

Check if you have a file named “config”. If not, run:

touch config 

to create the config file. Then, add the following line in the “config” file

ServerAliveInterval 60

With this command, the client (your computer) will send a null packet to the server every 60 seconds, thus keeping the SSH connection alive.
Enjoy your ∞ connection… 😉

Source: New feed

May 11, 2013 Adem Bilican No comments

Add sub-domains to your server with Apache

Add sub-domains to your server with Apache
    If you have multiple services running on your server, and want to use sub-domains instead of sub-folders, here is a quick howto 😏
    I am running different services on my server at home, for example Shaarli and Leed. Instead of using different sub-folders of the main Apache /var/www/ folder, I preferred to use sub-domains. With sub-domains you obtain something like :
links.domain.com instead of domain.com/links
    To do so, you have to edit a file in the Apache configuration. In Ubuntu, the file is located under

/etc/apache2/sites-availabe/

Open the file named “default” with your preferred text editor and add the following lines at the end of the file

<VirtualHost *:80>
DocumentRoot /var/links/
ServerName links.domain.com
</VirtualHost>

The folder /var/links/ represent the installation folder of Shaarli.
Then, restart your Apache server

sudo /etc/init.d/apache2 restart

open your browser to links.domain.com
Enjoy ✅

Source: New feed

April 16, 2013 Adem Bilican No comments

Blogotext’s Links, new section on the blog

Blogotext’s Links, new section on the blog
    I usually like to write detailed articles on my blog. However it often happens that I want to share a quick note, for example a basic command. In this situation, I am not going to write a complete article about how to use this command. That’s why I decided to use Blogotext’s (BT) Links as a links/notes sharing platform. BT Links is similar to Shaarli (installed on my own server for personal use).
    Here, I preferred BT Links instead of Shaarli because it fits better with my blog. I can manage my links from the blog’s admin page, the graphical chart remains the same as on my blog and it is easier to use. From now on, you can follow my links/notes from my Links page, or using your favorite RSS reader from my Links RSS feed.
    I hope you’ll enjoy 😉

Source: New feed