Profile

Cover photo
Ian Douglas
Works at GetStream.io
Attended St Lawrence College, Kingston ON
Lives in Denver, CO
1,325 followers|2,303,453 views
AboutPostsPhotosReviews

Stream

Ian Douglas

Help Center  - 
 
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:

https://gist.github.com/iandouglas/0d6daa197bc0062e3317b41f2a40eff3

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.
1
1
Ian Douglas's profile photo
 
What I've learned so far: the gray color on the secondary toolbar is the primaryColor in my theme, which is fine. The white font came from my toolbar's parent of AppCompat.Light.DarkActionBar ... if I remove the 'DarkActionBar" part of that, the font changes to a charcoal gray, but I cannot find any documentation on how to change that charcoal gray to a black color.
Add a comment...

Ian Douglas

Shared publicly  - 
 
Wrote a scraper to pull GitHub counter data dynamically into Google Spreadsheets using IMPORTDATA: http://iandouglas.com/2016/09/30/dynamic-data-in-google-spreadsheet/

#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.
1
Add a comment...

Ian Douglas

Shared publicly  - 
 
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...
Introduction Open-source development has played a big part in our company history, so it is with great pleasure that we announce an official Go client library for GetStream.io. Two community-led projects were adapted to produce this library. We are releasing this library as version 0.9.0,...
4
Add a comment...

Ian Douglas

Shared publicly  - 
 
 
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: https://github.com/PaulTR/AndroidDemoProjects/tree/master/AwarenessAPI
Aside from the most basic of Android applications, everything you build will require at least some use of background threading to perform an operation. This is becau
View original post
2
Add a comment...

Ian Douglas

Shared publicly  - 
 
Upgraded to Ubuntu 16.04 on my workstation at home, promptly broke my nvidia drivers, and nothing I'm trying so far has helped. I dual boot Windows so I can't shut off UEFI, so now what...
1
Lori Culberson's profile photoIan Douglas's profile photo
2 comments
 
Eventually fixed it, what a hassle though.
Add a comment...

Ian Douglas

Shared publicly  - 
 
I'm headed to Denver's first Android Developer conference in late July. Anyone else want to go?
2
Paul Trebilcox-Ruiz's profile photo
 
I'll be there
Add a comment...

Communities

17 communities

Ian Douglas

Shared publicly  - 
 
Wrote up a review of the Google Pixel XL and a handful of accessories I've purchased with it from Amazon.
1
Add a comment...

Ian Douglas

Packages  - 
 
If you're building an app with a news feed or activity feed, we now have an official (beta) Go library at GetStream.io
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!
Introduction Open-source development has played a big part in our company history, so it is with great pleasure that we announce an official Go client library for GetStream.io. Two community-led projects were adapted to produce this library. We are releasing this library as version 0.9.0,...
2
1
Add a comment...

Ian Douglas

Shared publicly  - 
 
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=$(...
View original post
1
Add a comment...

Ian Douglas

Shared publicly  - 
 
Dropped my laptop back in April, and it's been degrading quite a bit since then (sensors aren't working, battery drains in 2 hours when it used to last 7-8 hours). Guess it's time to back it up and send it in for repair.
3
Jeff Bond's profile photo
 
nothing a little duct tape & baling wire won't fix !
Add a comment...
 
Is anyone else noticing that glyph points don't get added to their scanner, or is it just me? I've been at like 600-ish points for months despite getting into glyph hacking more and more, today earning maybe a few thousand points worth of AP yet according to my Ops screen I'm still at 628 points.
6
Elizabeth TreeHugger's profile photoThe Baconator's profile photoAd S. (Adalbercik)'s profile photoAshley Witt's profile photo
12 comments
 
MemoGlyph is actually much better, I still use it and I'm almost 12x Onyx. The only thing I don't like atm is they haven't updated for the complex glyph and that's all I do.
Add a comment...
Communities
17 communities
Story
Tagline
Devoted, Dad, Developer, Dork
Introduction
Senior Web Developer/Architect/SysAdmin/DevOps from the Denver Colorado area. Fluent in Python, Bash and several other open-source languages.

Husband, father of 2 boys, and full-time dork. Love teaching/mentoring, public speaking, paintball and darts.
Bragging rights
Grew up in an area of Canada that had sustained temperatures lower than -40F, and now the town doesn't exist any more. (search Google for "Pine Point, NWT")
Education
  • St Lawrence College, Kingston ON
  • Frontenac Secondary School, Kingston ON
  • Bayridge Secondary School, Kingston ON
Basic Information
Gender
Male
Looking for
Friends, Networking
Relationship
Married
Other names
cormyn (gaming handle), iandouglas.com, iandouglas736 (most IM services)
Work
Occupation
Software Developer
Skills
Programming, Mentoring, Startup Coaching, Public Speaking
Employment
  • GetStream.io
    Growth Hacker, 2016 - present
  • iandouglas.com
    Programmer/Consultant, 1997 - present
  • Simple Energy
    Director of Engineering, 2015 - 2016
  • SendGrid
    Sr Web Architect / Lead Engineer, 2011 - 2015
  • Armor Games
    Sr Software Engineer / DevOps, 2010 - 2011
  • The Rubicon Project
    Sr Software Engineer, 2009 - 2010
  • PriceGrabber.com
    Sr Software Engineer, 2006 - 2008
  • Los Angeles County Office of Education
    Consulting Programmer, 2008 - 2008
  • iCreditVision
    Software Engineer / DevOps, 2000 - 2004
  • Chrysalis ITS, Ottawa
    Firmware Engineer, 1999 - 2000
  • Telexis Corporation, Ottawa
    Firmware Engineer, 1997 - 1999
  • QNX Software Systems, Ottawa
    Tech Support, 1996 - 1997
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Denver, CO
Previously
Los Angeles, CA - Ottawa, ON - Kingston, ON - Pine Point, NWT
Contact Information
Work
Email
Really nice suites, lots of parking, very clean facility. Hit tub was out of order but they worked out a deal with the Hampton next door to use their hot tub.
Public - 3 months ago
reviewed 3 months ago
Great price for kids, $5 for an entree, drink and dessert. Service was decently quick, though our server was a little distracted and we needed to remind him a few times for things. He brought the bill before bringing the kids' desserts. Prime rib was good, crust on it was excellent. Kids food was a little cold when it arrived. He never asked me if I also wanted dessert, not asked if we wanted a box to take home unfinished food.
Public - 7 months ago
reviewed 7 months ago
We had uboxes shipped here from California and the staff here have been nothing but pleasant and professional. We rented a truck from them to take stuff from the uboxes to our apartment and the rental process was quick and painless.
Public - 3 years ago
reviewed 3 years ago
20 reviews
Map
Map
Map
Getting into Westin for events is great but if the event is busy, can getting our of the parking lot can be quite the bottleneck.
Public - 6 months ago
reviewed 6 months ago
We had a bad time here tonight, which was surprising since it wasn't that busy. We waited over twenty minutes just to take our order, our food showed up at the one hour mark and it was cold. Not even room temperature -- the meat on my roast beef dip was actually cold to the touch. One of our kids' meals was slider hamburgers and they were also cold like they didn't even sit under a heat lamp. We didn't order anything particularly special, the other two meals were a small pizza and corn dogs. Manager comp'd all of our food so we paid $12 for our drinks. Table next to us also had problems with their food, and several other tables in our area waited at least twenty minutes just to take their orders, too. We'll probably be back some day, but this location won't be at the top of our list of places to eat in Boulder.
• • •
Public - 9 months ago
reviewed 9 months ago
Very friendly staff, but our breakfast order got "lost in the computer" and I've been waiting over forty minutes with two little kids, no refills offered or anything.
Public - 3 years ago
reviewed 3 years ago