Single Sign-On with SugarCRM and RoundCube Using Multiple PHP Sessions

I am currently involved in an interesting integration project at work.  As part of it, we need to create a single sign-on process between SugarCRM (version 6.5.20) and RoundCube (version 1.1.4) webmail application.  RoundCube webmail is being displayed within the iframe inside the SugarCRM user interface, so it would help if users didn’t have to login to RoundCube since they are already authenticated in SugarCRM.

Once the user is authenticated in the SugarCRM, a PHP session is created with, among other information, authenticated user ID.  Using that ID, we can fetch the full user record and get his IMAP credentials, necessary for the RoundCube login.  While this wasn’t too difficult, there were a couple of road bumps that I’d like to document here, so that next time I won’t have to work it all out from scratch again.

Continue reading Single Sign-On with SugarCRM and RoundCube Using Multiple PHP Sessions

Stack Overflow Developer Survey Results 2016

Stack Overflow published the results of their developer survey for 2016.  Over 50,000 participants from more than 170 countries answered the questions this time around.  Some of the results are quite predictable, while others less so.

education

Latency numbers by year

Last year I came across a nice chart of latency numbers every programmer should know.  Today, I saw this page, which shows you the same latency numbers, but also provides a timeline from 1990 to 2020.

For some operations, latency is constant, because it’s based on things of nature – speed of light, distance between continents, etc.  For other operations, latency can be decreased through better technology and algorithms.

The timeline clearly shows the mind-blowing advance we’ve experienced in technology over the last three decades.

Falsehoods programmers believe about …

I thought I’ve posted some of these links a while back but alas I can’t find them in the archives.  Maybe I just thought I did.  So here they go with some new additions:

Even if you are not a programmer, these are useful to read through.  It just shows how complex even the simplest of things are, and how much thought goes (or doesn’t) into computer programming.

Useful git commands (and GitHub integration)

Garrett Holmstrom’s blog /dev/zero has a nice collection of useful git commands, especially for those people who work a lot with GitHub.  Here are a few links to get you started:

Very handy stuff!