Our Blog

Recent Posts

Categories

27Jun

PHP tip: How to get number of followers from your Twitter account

Here is a simple solution to get the number of followers from your twitter account:
    $twitterUsername = 'yourusername';
    $countTwitterFollowers = file_get_contents("http://twitter.com/statuses/user_timeline/" . $twitterUsername .
Categorised under: PHP, Twitter
27Apr

Sphinx and SphinxSE

Recently a client requested to setup SphinX, a great full-text search engine for MySQL. Installing the Sphinx daemon was straightforward as you can compile it from the source or use a .DEB/.RPM package but SphinxSE was a little bit tricky since it needed to be installed as a plugin on a running MySQL server.

So if you use Debian or Centos and install your MySQL from a .deb or .rpm package this is how you do it.

1. This requires MySQL 5.1 since it supports plugins and you will not have to recompile MySQL to have support for SphinxSE.
Categorised under: Sphinx
10Sep

Howto quickly theme the Drupal 6 search form

When you get a whole website in html and need to quickly turn it into a Drupal theme look for a way to reuse what you already have.
Categorised under: Drupal
10Sep

Inservio launched CakeForum

We have launced CakeForum, a lightweight CakePHP powered forum. For more information visit http://cakeforum.inservio.ba/

Categorised under:
05Aug

Build your own .deb packages

I wanted to upgrade mydns on etch to mydns-ng and the package was missing. So I decided to build my own using checkinstall which was missing for Debian etch, so I googled it and fond a link:
# wget http://debian.nix.hu/debian/dists/etch/checkinstall/binary-i386/checkins...
installed it
# dpkg -i checkinstall_1.6.1-1_i386.deb
downloaded mydns-ng
# wget http://switch.dl.sourceforge.net/sourceforge/mydns-ng/mydns-1.2.8.26.tar.gz
# tar -xzvf mydns-1.2.8.26.tar.gz
# cd mydns-1.2.8
the BUILD opt
Categorised under: Debian