Faster SugarCRM Development with PHPStorm

Posted on Sun 30 April 2017 in sugarcrm • Tagged with sugarcrm, php, phpstorm

image2

Javascript development with SugarCRM can be a bit of a pain, however combining PHPStorm's filewatcher tool with a cut down repair script can speed things up to a more tolerable level.

What this setup does is watch for any javascript changes in our custom/ folder(because you're not making core …


Continue reading

Pomot - command line pomotodo client

Posted on Thu 20 April 2017 in Projects • Tagged with php, projects, productivity

image0

For anyone interested, I've created a simple pomotodo client for interacting with pomotodo.com easily.

You can find it here, feel free to use github issues for any issues or feature requests you can think of.


Continue reading

Command line calendars with Khal and fastmail

Posted on Tue 04 April 2017 in Linux

Recently I've been on a bit of a command line kick and I started using khal to render my calendar agenda locally.

All of the codebases used are python based so before I start I've created a virtualenv so as not to pollute my OS.

mkvirtualenv khal
workon khal

Vdirsyncer …


Continue reading

SugarCRM 7 - Conditional Read Only Fields

Posted on Sat 06 February 2016 in SugarCRM

SugarCRM has a few ways to set fields as read-only, but it leaves a lot to be desired. One of the missing features that you might need to implement is having a module flagged as read-only on the record view based on a field on the module or the result …


Continue reading

NetworkX - Get all Paths from all sources to sinks

Posted on Wed 04 November 2015 in Python

Often when I'm working with graphs and a set of masses in a spectrum I need to be able to iterate over all paths for all sources and sinks in that graph. Especially if I'm looking to compare multiple ideal spectrums against a given spectrum. Here's some code that will …


Continue reading

Generate Binary Tree From String

Posted on Tue 27 October 2015 in Python

Recently while implementing the Small Parsimony Problem I had the need to generate a binary tree from a string in Python.

The pseudo-code in the question implicitly assumes you have some functionality that will generate a DNA sequence like CAAATCCC into a binary tree, then run SmallParsimony on it. I …


Continue reading

SugarCRM - Conditional Actions

Posted on Thu 15 October 2015 in SugarCRM

image0

Say you need to hide certain actions in Sugar depending on the status of a field, I've come across a great snippet of code from an awesome comment by Felix Nilam on the SugarCRM forums and wanted to show you a brief snippet of how it could work.

Make sure …


Continue reading

Simple Python Text-Entry

Posted on Sun 04 October 2015 in Projects • Tagged with python, gtk

image0

Recently for my biogen project I needed a way to create pop-up text entries for users using virtualenv. Sadly, neither wxPython nor TkInter would work easily without ugly hacks involving symlinking to system directories. Eventually I worked out that Gtk would work via pip. However, I couldn't find sample code …


Continue reading

Bioinformatics/Rosalind - Skeleton Generator

Posted on Sun 27 September 2015 in Projects • Tagged with python, bioinformatics, testing, coursera

rosalind Working through part 4 of my Cousera Bioinformatics specialisation, I decided to write a generator that creates a standardised approach to structure, write and test your algorithmic code. It also works for Rosalind problems.

Explanations are in the README. If you have any issues or are confused by anything, feel …


Continue reading

Tiddlywiki to Org-Mode

Posted on Mon 31 August 2015 in Projects • Tagged with projects, python, emacs

image0

Okay, I swear this is the last document conversion script I’m writing this year. I’ve been on a bit of a rampage to move all of my life in Emacs Org-Mode and converting all of my Tiddlywiki notes into Org mode has been on my list for a …


Continue reading