Validation on vardefs

While working with SugarCRM, I noticed that a lot of developers tend to do validations using JS and Logic Hooks while they could just use a more cool feature that exists probably since 5.x.

It just needs a few tweaks on vardefs.php file. Imagine that you have a integer field defined in vardefs and you want to make sure that the user only inputs data within the 110 and 65535 range. You could just add this to the vardef:


Rsync continuously until it's done

My concept of Done isn't only applied on Scrum, but into my programming as well :)

While syncing my data to do an offsite backup, I often run into connection issues (mostly due to IP changes - since I'm using a dyndns service, because it's free as in beer).


Accessing AirPort Extreme remotely

I'm not really paranoid about security, but I try to keep my stuff as safe as possible, therefore I disabled the option "Allow setup over WAN" in my AirPort Extreme and Express that I have in Portugal.

Installing basic network tools in QNAP

Like I said on my first post, I have a QNAP which currently is just serving as a remote (aka offsite) backup server from my main one (Debian based).

I was needing to check the IP addresses of some of my local network gadgets, more specifically the Airport Express IP address. So I just logged in into my NAS, using SSH, and fired the arp -a command and I got a -sh: arp: command not found reply. Not happy.

Notes as separate subpanel

A while ago, I was asked to do a quick favor on a customer's SugarCRM 6.x instance to separate the Notes sub panel entry into their own sub panel (normally it's shown in History sub panel).

Basically the request was to make a separate Notes panel that would have the description field shown in full, so that they could just see everything on Accounts' Detail views (normally that information is shown on a popup triggered by the "View Summary" button).

I wrote a quick package back then, but here is how you can do it:

Painless Analytics

One thing that people that buy domains and serve web pages often forget is to confirm that there is only one single domain pointing to their website. What I mean is, your customers or visitors might reach your page in either your parent domain or subdomain (often www).

Secure login in Drupal

While its ok to serve a blog or a web page in normal HTTP protocol, when you login into your CMS (or any other web application you might use) should be done using a more secure protocol (HTTPS).

Drupal is a great CMS (I'm never tired of writting this :)) and allows you to serve your pages in standard HTTP while forcing the login to be secure.

Develop locally with https

On last post I explained how to make your OS X use Homebrew.

Now I will explain how you can make your develop machine to reply to HTTPS requests so that you can test some use case that you might have with a secure application.

Finally MAMP Free

What I don't like much about MAMP is both the clear separation of the normal and PRO version. Don't get me wrong, you can speed a lot of your "LAMP" setup on a Mac with using MAMP, but for me having to reinstall xhprof, imap ssl and activate xdebug almost every time I update to latest MAMP (or every time I do a clean install on my Mac) it's painful.


I've been using Homebrew for quite some time now and dam, I wish the first package managers I tried (like MacPorts or Fink) where as awesome as this.

The 3 amazing things about Homebrew are:


Subscribe to Open War RSS