Category: Uncategorized
WordPress with MariaDB instead of MySQL
So I heard good things about MariaDB and decided to switch from MySQL to MariaDB. MariaDB is a fork of MySQL developed by the original developers of MySQL and it is intended to be a drop in replacement – meaning all your commands and databases from MySQL should continue to work seamlessly after the switch.…
Setting up live blogging that works with the latest version of WordPress
True to form, I want big things for my blog, but they aren’t easy. This time the idea came from a reader who wanted my commentary tweet series on current events to be done instead as a live blog, so that they could read all the ideas at once in one place and they would…
How to autopost your blogs and Twitter feed to Google Plus pages
HEADS UP!!! Hootsuite is offering a very cool 50% off on a pro membership (which allows you unlimited autoposts). Use Coupon Code: HOOTXA90 Please note that this does not work with Google Plus profiles, only pages – like this Vidyut page. Google has recently released an API to select partners, which allows posting to google…
Add source url to content copied from your site
Ever wonder how the url gets added when you copy something on some websites? There are plugins and websites that do it (for money or registration), but they also appear to track clicks, so I was a bit paranoid. It isn’t so difficult and is very useful. Basically, what happens is that whenever content from…
How to install ioncube loader on Ubuntu in one line of code
To install ioncube loader on Ubuntu, AS ROOT paste this line: cd /usr/local && wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && tar xzf ioncube_loaders_lin_x86-64.tar.gz && echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” | sudo tee /etc/php5/conf.d/ioncube.ini If you are using nginx, that would be: cd /usr/local && wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && tar xzf ioncube_loaders_lin_x86-64.tar.gz && echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” | sudo tee /etc/php5/fpm/conf.d/ioncube.ini Please note that if…
How to create an admin area on fake domain
Often, you need to have areas of your site that you access through a browser, that you don’t want anyone else to access. These can be control panels or scripts with phpinfo or your apc cache monitoring script. what I do is create a fake domain for these and give them their own site. For…
How to forward only .onion or .i2p urls selectively
If you are like me and don’t need to use TOR so much for anonymity as for accessing interesting hidden sites, the overall slow speed of TOR probably bothers you for normal browsing. The need to toggle proxies or start two separate browsers probably bugs you too. Now I have found .i2p which is similar…
Install APC and fix “potential cache slam” problem
APC is an Alternative PHP Cache or Opcode cache that speeds up performance dramatically by caching queries. How to install APC? apt-get install php5-apc You will have to enble it in the php configuration. Add the following to your php.ini file extension=apc.so Alternatively, you could create a separate apc.ini file and put it in the…
Permission denied: make_sock: could not bind to address 0.0.0.0:80
Did you just type service apache2 restart or /etc/init.d/apache2 restart and get stuff like: * Starting web server apache2 ulimit: 88: error setting limit (Operation not permitted) (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Action ‘start’ failed. The Apache error log may have…