Category Archives: Linux

Manually debugging the SugarCRM REST API with cURL

The SugarCRM REST API is particularly difficult to debug; it’s full of bugs and inconsistencies in behaviour, and in general a malformed request simply returns an HTTP 200 code with the data string “null”. Nothing useful is posted in the application log. To that end, I have found it essential to have cURL at my [...]
Also posted in APIs, PHP, SugarCRM | Leave a comment

Quickly see how many of your users are on Gravatar

A couple of the companies that I work with have wanted to evaluate the business case for integrating with Gravatar. In order to do this, we wanted to know how many of our users had Gravatar profiles, so I built this very simple PHP script which reads an input file containing email addresses (one per [...]
Also posted in APIs, General, PHP | 2 Comments

Email files directly from the Linux console

It’s not a great habit to get into, but sometimes it can be very quick and convenient to email a file to yourself directly from a bash SSH console. Note: Because this uses email, this method isn’t secure. Think carefully about the contents of what you’re sending before you email files directly from your system. [...]
Also posted in Debian, General, Systems Administration | Leave a comment

Debian APT repos not found? Switch to the archive!

If you’re running an older release of Debian and you’re seeing messages like this when you try and apt-get installs, then it’s probably because your release has been taken off the main mirrors and can no longer be updated that way. W: Failed to fetch http://ftp.uk.debian.org/debian/dists/lenny/main/binary-amd64/Packages 404 Not Found [IP: 83.142.228.128 80] W: Failed to [...]
Also posted in Debian, Systems Administration | 4 Comments