I am using Module Builder in SugarCRM to construct some custom modules for a project. A module consists of a central table to hold data, fields that map onto that table, layouts of those fields on various forms and display pages, and relationships between the module and other modules. All these things can be manipulated […]
Archive | development
Some Useful REST Articles
Diving into REST is a bit like going into MVC: you think you can learn something about how it works by studying and following current implementations. Quickly you find how much the implementations differ from each other and how little they have in common. This is because the fundamentals are often forgotten by the implementers. […]
WooCommerce CSV Import – Some More Notes
There are a few problems with the WooCommerce CSV Import Suite that I have come up against. Some I have already talked about, but here are a few more. Some have workarounds, and some are just a little puzzling. I am hoping that most of these issues will be solved by the time you need […]
WooThemes Support – What on Earth Were They Thinking?
Update: WooThemes have listened, and are working to improve the situation. More details at the bottom of this post. Update 2: The answer to “What Ere They Thinking?” is a resounding They Were Not Thinking and now realise it. Now UserVoice has missed a trick here – they have shown to be unable to react […]
What Character Encoding does SagePay Use?
You can look through the SagePay website, the forums, the documentation, but try as you might, there is no statement on what character encoding SagePay uses when posting billing addresses, cart contents etc. I’ll tell you what it is: ISO-8859-1 Yes, it is an 8-bit extended ASCII encoding, from the days of DOS. If your […]
PHP Backtrace on Errors and Warnings
It is sometimes useful to see back-traces of PHP execution whenever errors or warnings appear on a page. Often you would insert var_dump() statements to see what is happening and to narrow down the source of a problem (I know, not the ideal way to fix bugs, but it is a technique that is always […]
SugarCRM cache directory – it is NOT a cache directory!
SugarCRM has a difrectory called “cache”. When the application runs, PHP scripts, JavaScript, CSS, images and so on, are cached in there. This is how SugarCRM allows modules to plug into other modules; the cached PHP scripts combine together lots of smaller scripts across the full range of modules. But that is not all the […]
CultureCode Hack – some project notes
I attended the CultureCode Hack run by CodeWorks on the 24/25 March 2012. I will blog about my personal experience at the event in good time. Or, when I can find some time. In the meantime I will offer some notes on the project that I worked on, specifically the technical aspects of it. The […]
What is github?
I has asked today what github is, after bringing it up in discussion concerning files that have come out of CultureCode hack this weekend. I suspect this will not be the last time I’m asked, so thought it an ideal subject to post about. So here is a brief discussion for absolute beginners, hopefully with […]
List crontabs (cron entries) for all linux users
We had a problem with Plesk, allowing a hacker to set up cron processes on our Linux server as various users. After cleaning a few up, I used this command to list the cron tables for all users: awk -F: ‘{print $1}’ /etc/passwd | xargs -l1 crontab -lu 2>/dev/null It’s a handy command to keep […]