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”

Enable email notifications in Open Atrium

I was struggling to find the way to enable email notifications in Open Atrium because they just didn’t work after the install and finally I found out the way that works, no need for SMTP or any other module.

Only 2 steps:
1. Install/Enable PHPmailer.
2. Enable “Immediate” notification on the admin settings page

1. Steps to install PHPMailer

If you are using php5 then take this source and extract it inside:
YourAtriumRootFolder/profiles/openatrium/modules/contrib/messaging/messaging_phpmailer

and make sure you save the extracted folder name like: “PHPMailer” (case sensitive)

Go to Admin > Site building > Modules and enable “Messaging PHPMailer” module.

2. Steps to enable the notifications

Go to Admin > Messaging and Notifications > Notifications Settings and tick/enable “Immediate sending” and Save Configuration.

The importance of sharing and contribution in FLOSS communities

One of my mentors who I consider him as my teacher, friend and colleague (James Michael Dupont) wrote an email which was very inspiring for me to start writing this blog (mostly pasting what he wrote), and it was about Sharing and the importance of it.
What could other people benefit from the experience you share with them and what could they learn from that ?!

As the old quote stands: “If you give a man a fish, you feed him for a day but if you teach him how to fish, you feed him for his entire life”.
Lots of things today are achieved by sharing knowledge with people around you, ideas are free to copy and that doesn’t cost you anything if you write them down and put them on-line, share them on Internet and in this way contribute together with other people to make the world a better place to live in.

Finding answers to problems today is very easy, you’ll only have to Google them and you’ll find pretty much everything you want.
Why is it that you find the answer of your problem in Google ?
Because someone somewhere spent his time writing a blog or an article and shared his knowledge on solving the problem and he din’t help only you, but he might have been helping thousands of other people who had the same problem.
When no one shares or communicates, there will be no learning in the community. Continue reading “The importance of sharing and contribution in FLOSS communities”

gimp : Depends: libglib2.0-0 (>= 2.31.2) but 2.30.0-0ubuntu4 is to be installed

After I did an upgrade gimp was automatically removed and then I couldn’t install it.
Every time I tried it showed me the error below..
It took me a while to find where is the problem and fix it, so here is what I did.

This is the error that showed when I tried to install gimp:

$ sudo apt-get install gimp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gimp : Depends: libglib2.0-0 (>= 2.31.2) but 2.30.0-0ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.

Then I did a:

$ apt-cache policy gimp
gimp:
Installed: (none)
Candidate: 2.7.5-2012020901~oo
Version table:
2.7.5-2012020901~oo 0
500 http://ppa.launchpad.net/matthaeus123/mrw-gimp-svn/ubuntu/ oneiric/main amd64 Packages
2.7.4-2011102201~oo 0
100 /var/lib/dpkg/status
2.6.11-2ubuntu4 0
500 http://al.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages

After that I saw that the problem stands at my PPA, (I actually added that months ago just to test some new features, I dont really remember)
What I did is, I removed my PPA from matthaeus123
(I just edited the files and commented the lines) Continue reading “gimp : Depends: libglib2.0-0 (>= 2.31.2) but 2.30.0-0ubuntu4 is to be installed”

Prishtina Buses project

Too many candidates in the campaigns promised an improvement of public transportation in Pristina, but so much was said and so little was done in this direction, and what the municipality failed to do, some teenagers did it.

Last week Within the next meeting of  “UNICEF Innovations Lab Kosovo” me and my friend Gent Thaci got the chance to present our last project (still ongoing) called “Pristina Buses” which will enable all citizens of Kosovo to watch online all the bus lines of Prishtina, schedules of departures, prices etc.

Although the site is still under construction, it is worth mentioning that behind this lies a very good idea developed by our working group: Gent Thaci, Altin Ukshini, Lulzim Gashi, Giulia Martin, Daniela Bodnarova, Shkelqim Ahmeti, Ardian Haxha, Besfort Guri, and Ardi Hasimja (mainly FLOSSK members, experienced guys in IT), we developed something that Prishtina needed for years. Continue reading “Prishtina Buses project”

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: http://wiki.debian.org/MeetBot
Meetbot Manual: http://meetbot.debian.net/Manual.html
Meeting notes after the debian meetings on IRC (example): http://meetbot.debian.net
MeetBot IRC channel on irc.oftc.net: #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: http://supybook.fealdia.org/
– Supybot source code: http://sourceforge.net/projects/supybot/
– Supybot IRC channel on freenode: #supybot Continue reading “How to install and setup Supybot”

Windows vs. Mac OS X vs. Linux: The Operating System Battle

Windows, Mac OS X, or Linux? That has been the age-old dilemma that is now gaining more and more attention as each operating system is progressing at a record pace. This summary will give you a comprehensive and thorough examination of each operating system, their advantages, disadvantages, and a final summary of which one is better. Please note that all conclusions are self-drawn opinions that are supported by facts. However, it does not guarantee that these thoughts are truths. Continue reading “Windows vs. Mac OS X vs. Linux: The Operating System Battle”

CiviCRM, civimail cron job setup

To have your mailing actually send. We have to set up a cron job that will periodically poke CiviMail to send all of the mailings that are past their scheduled date.

Actually there are so many ways out there to do this thing, and probably are shorter, but I’ve built a script for my self to do that for me and is more clear to understand.

Note: The script works only with Drupal.

1. Create a file in /usr/local/bin/ called civicrmcron.sh
    and add the following lines in it, edit the required fields and save it: Continue reading “CiviCRM, civimail cron job setup”