OSQA to Tiddlywiki

Posted on Mon 27 July 2015 in Projects • Tagged with projects, python

image0

Recently I've been trying out Tiddlywiki as an alternative to Evernote. I decided to try convert my existing OSQA install to Tiddlywiki as I'm travelling a lot and don't always have access to my servers via the internet. Here's a python script I wrote that might help anyones trying to …


Continue reading

Verify you're hidden with conky

Posted on Sun 26 July 2015 in Security

Selection_001

I run a few scripts to ensure my identity stays hidden day to day on my laptop. Here's a few conky scripts to verify things are as they should be.

VPN

Because I don't always know my ip or what my VPN's ip is, I wanted conky to display the …


Continue reading

SugarCRM 7 - Adding an action to the listview headerpanel

Posted on Sat 25 July 2015 in SugarCRM • Tagged with php, sugarcrm

A red button with the words "Take action" on it

This tutorial should show you how to add a custom button/action that will appear across all modules. It's a little similar to this tutorial with a few changes to how the button gets rendered and the actions get called.

1. Adding the button to the headerpanel

Firstly you'll need …


Continue reading

SugarCRM - Prevent currencies getting overridden

Posted on Thu 16 April 2015 in SugarCRM

200452489-001

SugarCRM has some neat features involving currency rates, but one of the more annoying ones is that Sugar will automatically update the base rate every time you save a record with a currency field attached. This can be fairly annoying default behaviour if you wish to maintain the correct record …


Continue reading

SugarCRM 7 - Roll SugarCRM with Docker

Posted on Tue 07 April 2015 in SugarCRM • Tagged with docker, devops, sugarcrm

sugar_docker

I find trying to replicate the SugarCRM environment locally a real pain. One of the main issues is simply that Sugar requires such old versions of PHP to be installed, especially compared to other web projects I have that implement the latest/greatest versions of PHP. Running multiple PHP versions …


Continue reading

Setting up git with Rescuetime highlights

Posted on Sun 15 February 2015 in Productivity • Tagged with git, Productivity

image0

Recently I've written on another site how I use Rescuetime to provide metrics on my overall productivity that I can review each week. One useful feature I noticed was Rescuetime highlights, which gives you a good overview of your accompishments throughout the day. The first thing I wanted to add …


Continue reading

Solving boot2docker's fail to start error

Posted on Sat 07 February 2015 in Devops • Tagged with docker, virtualbox

b2dimg

I'm putting this obvious solution up as I couldn't see it anywhere online.

If you try to start up boot2docker with boot2docker start and it returns.

error in run: Failed to start machine "boot2docker-vm": exit status 1

Before destroying everything and wiping your ~/Virtualbox VMs folder, try starting up Virtualbox …


Continue reading

R - Cleaning/Merging Excel files

Posted on Thu 05 February 2015 in R • Tagged with data, snippets

r-lang

This is just a useful snippet of code I've been using a lot to tidy up messy exports I've been getting lately.

Takes in a bunch of excel files, rewrites some variable column names in column 3 then outputs them as a list of dataframes. These then get merged into …


Continue reading

SugarCRM - Git Version Control Strategy

Posted on Mon 10 November 2014 in SugarCRM • Tagged with git, mysql, php, sugarcrm

git-logo I've found SugarCRM an utter pain to work with in terms of version control for a number of reasons, but the most annoying is simply that certain critical elements of the SugarCRM configuration are stored on the database.

Over time I've worked out a system that circumvents this and I've …


Continue reading

Better PHP Debugging with Emacs

Posted on Thu 02 October 2014 in Projects • Tagged with debug, emacs, lisp, php

Emacs-icon.sh

Recently I came across an app called CodeBug, a really nice PHP debugger for Mac. I find debugging PHP really painful within editors such as Vim or Emacs, so up until now I'd been stuck using the incredibly bloated PHPStorm.

On Emacs you can currently use Geben for debugging but …


Continue reading