MemcacheD php client for development purpose on Laravel 5

This class simulates the real memcached php extension in windows which doesn’t exist (php_memcached.dll) – Note the “d”.
I forked and modified this repository so that it works with few basic methods of laravel 5… Please don’t use this class on production, use it only for development purposes.

Github repo:

Configuration in Windows machine

Before you do anything else, make sure you have memcached server installed. Here’s a blog that shows how to do that (follow setp A):

Assuming you have memcached server isntalled, proceed with the following.

Place memcached.php file in C:\xampp\php\pear folder

In your laravel 5 installation, edit AppServiceProvider.php and place the code below inside the boot() method.

if (!class_exists('Memcached')) {
    include ("memcached.php");

so it should look something like:

public function boot(Kernel $kernel)
    if (!class_exists('Memcached')) {
        include ("memcached.php");

…you should be good to go!

Restrict RoundCube login username to one domain

Restrict RoundCube login username to one domain

Roundcube is a client software to access IMAP mailboxes. If you already came to this post, then I’m sure you’ve figured out that RoundCube does not restrict domains in the login form, which means that as long as your username and password are OK, you can basically use any domain you like in your username field. Exc:, etc.

This is not something that Roundcube deals with, because it should be taken care of on your IMAP server configuration, and if the IMAP server does not check for your full username (domain included), and allows access with any other domain, you get access :). However, even if it’s taken care of on your IMAP server, handling this in RoundCube will prevent an unnecessary request to your IMAP server.

One of the configuration options in Roundcube helps you append the domain to a clean username login.
Exc: if in your username field you type only the username “username” without the “” then roundcube can help  you by appending the “”. This is helpful only for IMAP servers that require full e-mail addresses for login. You can specify this by editing $rcmail_config[‘username_domain’] variable in config/

By default that variable is blank as below:

$config['username_domain'] = '';

Above that variable, you’ll find a short description on what options can be set to this variable, one of which you might assume it is:

%d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)

But in cases when your roundcube installation is in a different host/domain server than your original domain that is needed to authenticate in your IMAP server, that will not help, therefore use your domain as follows:

$config['username_domain'] = '';

Now if you type “username” (without the domain) in the username field, roundcube will append “” and the request to your IMAP server will have your username sent as “”, otherwise if you already specify the domain in your username field, it will make the login request with the specified domain which in this case can be anything (, etc). Continue reading “Restrict RoundCube login username to one domain”

Getting started with PhoneGap for Android

First of all a short description of what’s phonegap:
PhoneGap is an open source implementation of open standards. That means developers and companies can use PhoneGap for mobile applications that are free, commercial, open source, or any combination of these.
PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores. PhoneGap leverages web technologies developers already know best… HTML and JavaScript.

During this blog I’ll be showing mostly the main things you should be knowing when you start working with PhoneGap.
So what I’ll be talking about will be:

  • Importing some of the libraries that you will need…
  • How to make your application go Full Screen in Phonegap
  • How to add a Splash Screen and give it a (delay time)
  • How to create a basic menu with quit and reload function.
  • How to change the application icon instead of the default android one.
  • Where to put some specific lines for the code to work properly.
  • Make app compatible with older versions of Android.

OK, first of all you have to set up your environment for android developement as you have to follow the guide provided from phonegap here. Continue reading “Getting started with PhoneGap for Android”

How to setup MeetBot

MeetBot is designed to assist in running meetings, taking notes, and so on. It is in pure python, as a plugin to supybot.
However, there is a clear distinction between meeting-code and IRC-code, so it should be relatively easy to port to other bots. It is under the supybot license (3-clause BSD).

MeetBot is designed to be simple, not complex. Features are great, but not so much that it becomes hard to use or unwieldy to maintain.

More about MeetBot visit the debian wiki page:
Meetbot Manual:
Meeting notes after the debian meetings on IRC (example):
MeetBot IRC channel on #meetbot Continue reading “How to setup MeetBot”

How to install and setup Supybot

Supybot, is an IRC (Internet Relay Chat) bot written in Python
This bot is just fantastic. It does everything you need from a IRC bot, and it’s very easy to use.
The bot would have to be able to take care of auto-opping and similar “traditional” channel duties and has factoid functionality similar to blootbot/infobot
So pretty much you can say that supybot is an all in one IRC bot.

Some information you will need about supybot:
– Supybot handbook:
– Supybot source code:
– Supybot IRC channel on freenode: #supybot Continue reading “How to install and setup Supybot”

Resizing all images in a folder

Well, the most common application (tool) that I use in Linux for quick resizing an image is imagemagick an cmd based tool
The best 2 commands that I use most are:

Resizing just an image we use (convert):
This command actually takes image.jpg and resizes it on 500×500 pixels but it depends on the real size image so if it’s 600×500
the command wont deform its shape and make it like a square, but it’ll make it exc 500×400

# sudo convert image.jpg -resize 500x500 *.jpg

Resizing all images in a folder we use (mogrify):
When using mogrify its important to tell the path of images.

# sudo mogrify -path /home/user/yourimagesfolder/ -resize 500x500 /home/user/yourimagesfolder/*.jpg

How to get Way points and traces from a GPS device in Linux ?

Well basically I’m making this tutorial based in some problems I had in getting especially way points.

There are several softwares that can do that kinda job but it was hard of getting only way points. and other stuff you needed… so after I figured out (with the help of some friends) I decided for this tutorial.

As I said There are some softwares like: gpsbabel, gpsprune, qlandkartegt

What Im going to show you is Qlandkarte which Is a perfect software for doing this job on Linux.

QLandkarte GT is the ultimate outdoor aficionado’s tool. It supports GPS maps in GeoTiff format as well as Garmin’s img vector map format. Additional it is the PC side front end to QLandkarte M, a moving map application for mobile devices. QLandkarte GT is the proof that writing portable applications for Unix, Windows and OSX is feasible with a minimum of overhead. No excuses!

OK in this case I used Garmin Etrex LegendHCx: and I’m going to show you step by step..

1. First Download and Install the software by going to this site or by installing it from terminal:

# sudo apt-get install qlandkartegt

Continue reading “How to get Way points and traces from a GPS device in Linux ?”