No matter Bitcoin is down, Stay hungry on Blockchain!

2018 is going to the end with a huge difference comparing to the last year: Bitcoin’s price!

We’ve all experienced a very exciting (for some of us highly stressful) hype through last 12–13 months & maybe it was a completely new to majority of us. This level of volatility in a financial asset & all the dreams that could have come true if cryptocurrency charts didn’t change their way downward!

Anyway today Bitcoin is in its 4k channel & all other coins also share such bloodbath with it. Maybe we shouldn’t lose our faith in Bitcoin & Altcoins… Maybe we should take our focus out of all those charts, speculations, indicators, bulls & bears getting back to our own business or maybe… . Regardless of which path you choose to follow, I guess we can have a valuable take home yet & it is Blockchain.

No matter what the price of BTC, ETH, XRP & XYZ is, You, as technology fans, can still keep your mind fresh with following all the innovations that this disruptive technology offers everyday. Internet Money, isn’t the only product of Blockchain. It has a lot to offer, from the general ecosystem for decentralized applications (dApps), to Brendan Eich’s Private browser valuing your Attention, to decentralized file storage all are really exciting products/applications to switch to.

Of course I agree its hard to stay up to date in this field, in the information era! That’s where following websites like Coindesk can help. It will help you get informed of what is going on globally. Additionally if you like to follow blockchain news in your own language community, try to find the appropriate website in your country/community & stick with it. For example, in my mother tongue (Persian), Blockfarsi is a dedicated source of news & educational material on blockchain & cryptocurrencies. So, whenever I need to get updated information on Bitcoin price, I browse the dedicated bitcoin page there.

Long story short! Find a global/local news/educational website on blockchain & cryptocurrencies & follow it regularly. I hope you hear good news/pulse on your investments in addition to making a solid knowledge in Blockchain field.

Stay hungry, Stay decentralized!

Changing Apache’s PHP version in Ubuntu 16.04 (Xenial Xerus)

Maybe you’ve also encountered that php versions’ are not the same on Apache web server & Command line. Because of installing softwares/packages from command line in Linux, usually command line PHP gets updated, without affecting PHP module used by Apache.

Say, My machine in Linux mint which is built on Ubuntu 16.04 (Xenial Xerus) & we are about to change Apache’s php to version PHP7.0.

In such circumstances, you need to make sure of missing PHP module for Apache. To do so, jump into terminal & run:

ls -l /usr/lib/apache2/modules/ | grep libphp

If you couldn’t find sth like ‘’, it means you don’t have the required module. So, first install it using:

sudo apt-get install libapache2-mod-php7.0 --fix-missing

after installing the module, if you ls Apache modules directory, this time you’ll see that ‘’ is present.

Now that you have the required module, you should disable the existing php module version (e.g. php5.6) used by Apache:

sudo a2dismod php5.6

and enabling desired version:

sudo a2enmod php7.0

So far so good. What we’ve done so far, would suffice for websites & web apps without database(e.g. mysql) dependency. But what if your website uses a mysql database as its data storage? you have to install mysql connection library for PHP7.0. To do so, run following command & you’ll have databases connected to the new PHP interpreter again:

sudo apt-get install php7.0-mysql

Alright, everything is OK. Just one step to embrace php7.0! restart Apache:

sudo service apache2 restart

Well done! you can use phpinfo() to check for php version.

As final note, lets browse directory of PHP7.0 modules. Do you know Where it is? if you browse into /usr/lib/php, you’ll find a some folders named using a date. What are these weird folders? Each of them are representing a particular version of PHP & are called Internal API version:

PHP VersionPHP Extension (Internal API version)
PHP 5.620131226
PHP 7.020151012

If you look into 20151012 folder, you’ll see some files with .so extensions, these are php extensions. Then for installing a php extension that you are not sure about its name, you may type `sudo apt-get install php7.0` & press tab key to see available modules to install. Just, don’t forget to restart Apache server or things won’t take effect until next system restart!

Alright, we’ve done with upgrading php version in Linux Mint(Ubuntu 16.4 – Xenial Xerus) &I hope you’re comfortable with your upgraded machine. Happy coding php7.0!

Bitcoin 51% Attack?!

For those familiar with Bitcoin, one of the criticisms some illiterate people to Bitcoin make occasionally, is the famous 51% Attack ! Its also known as Majority Attack or Majority Hash Rate Attack.

I don’t want to go through this, because there are plenty of comprehensive resources/articles out there at your fingertips via Googling. I’m just here to share an interesting page, trying to convince people from a different POV.

Here it is from the : Cost of a 51% Attack.

I guess it’d be helpful, specially for numbers-persons. Take a look at eye-watering amount of money one should invest in attacking Bitcoin network, & Guess what happens next? The price will experience a free fall down to $0 !

So the common sense simply says: No worries, It Won’t Happen 🙂