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.

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”

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”

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”