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 ...


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 ...


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 ...


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

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 ...


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 ...


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 ...


Continue reading