Profile cover photo
Profile photo
Ian Douglas
Devoted, Dad, Developer, Dork
Devoted, Dad, Developer, Dork

Ian's posts

Hey everyone, I used Symfony 1.1 and 1.4 way back in the day and looking at Symfony 3 for a new project.

I'm curious if anyone can point me at any examples of a service bundle that saves something in a database and also pushes it to a third-party API... like a payment processor that saves state in your db and then sends data to a payment api, or an image processor that saves some details about a file upload in the database and then pushes the image to a CDN API, or something of that nature.

I've spent the afternoon looking through and can't quite find any examples of this.


Sorry if this has been asked before, but I've lurked and couldn't find any posts.

Since Google stopped working on CDE, I'd like to make it available to some students who have Chromebooks and learning simple web development (html/css/js). I'm curious if anyone has written up instructions for cloning Google's repo, building their own app, and loading it onto a Chromebook if Chrome's developer mode were enabled. I was able to side-load the ide/web/manifest.json through the Extensions page, but seems like much of the functionality (like cloning a git repo) doesn't work.

Thanks for any pointers.

Post has attachment
Relatively new Android dev; I'm stuck on styling a toolbar.

In the images below you'll see a red toolbar and a gray one. The red toolbar comes from my MainActivity, from which I have a navigation drawer which launches an activity using TaskStackBuilder and startActivityForResult()if a nav item is chosen. When that new activity is launched, the toolbar turns gray and I can't easily find any resources on how to style that next toolbar containing the up/back arrow.

I'm happy to add more code to this gist if someone can help:

the register activity's layout xml has no toolbar/appbar etc within it, and you can see from the screenshot below that it's getting a toolbar from somewhere, I just don't know how to style it using my styles.xml ... or can I only style it from my RegisterActivity code? (and if so, how?)

I can make the red/black toolbar have a gray background, no problem, and I want to keep the black text, which works just fine. Ultimately my goal is to have the second toolbar also have black text (and a black back arrow). I've tried many different text color attributes in my AppTheme in an attempt to set the text to some other color and not having any luck.
2 Photos - View album

Post has attachment
Wrote up a review of the Google Pixel XL and a handful of accessories I've purchased with it from Amazon.

Post has attachment
Wrote a scraper to pull GitHub counter data dynamically into Google Spreadsheets using IMPORTDATA:

#python #flask #heroku #beautifulsoup

Pretty simple code, but also a pretty fun and useful way to get dynamic data into a Google Spreadsheet for tracking some metrics.

Post has attachment
If you're building an app with a news feed or activity feed, we now have an official (beta) Go library at
Since I've been out of Go for a little over a year, and wasn't really expert level at it in the first place, I'd love to hear any feedback while I work at cleaning it up over the next few months. Specifically, I need to improve some test coverage, making some things private that don't need to be public, and perhaps a little DRY work. I'd love to hear some feedback from people who are more versed at best practices than I am if there are glaring errors. Thanks!

Post has attachment
I built a thing! Well, technically I refactored a thing quite a lot, added testing, and still have some cleanup to do to exit a beta phase, but I built a thing...

Post has shared content
protips on tuning gunicorn workers
TIP: running 2N+1 Gunicorn workers
If you read, people tend to say that for web services, run 2N+1 workers, where N is the number of CPUs. It turns out the Intarwebs are wrong about exactly how to do this. Here's my solution based on "epicbrew"'s work on Stack Overflow: gunicorn --workers=$(...

Post has shared content
Looks like my next article in the Android from Scratch series was published. Next week or so should be the one on Play Services, then hardware sensors. After that, then I'm back to working on whatever I suggest :) I do have one on the Awareness API coming up as soon as it's gone through the editor, with source here:
Wait while more posts are being loaded