adlfkjfadslkjfads

Python Tip of the Day - Double If's in Comprehensions

Posted on Wed 11 April 2018 in Posts • Tagged with pythonTipOfTheDay, python

So I was reviewing a coworkers pull request today and saw something I hadn't seen in Python before. As it turns out you can have multiple if clauses on a list comprehension. For example:

>>> [v for v in range(50) if v % 2 == 0 if v > 10]  # all even numbers …

Continue reading

Setting Up A Pelican Site in AWS

Posted on Sun 08 April 2018 in Posts • Tagged with pelican, aws, s3, hosting

So I was going to write a blog post outlining most of the stuff I did in getting this site up off the ground, but then a colleague went ahead and did the same and wrote up their journey. :)

So, in true CodependentCodr fashion, Imma going to stea...err borrow …


Continue reading

Link of the Day: Fighting Burnout

Posted on Wed 04 April 2018 in Posts • Tagged with burnout, health

Today's link of the day is from Stride's blog: https://www.stridenyc.com/blog/11-ways-to-fight-burnout

I found much of the stuff in the article resonated with me, and many of the tips in in are things I do & have found helped, so passing along.


AWS Tip Of The Day - Invalidating Items in the CloudFront Cache

Posted on Sun 01 April 2018 in Posts • Tagged with aws, cloudfront, awsTipOfTheDay

TIL today: in CloudFront, creating an invalidation for /*.html is not the same as creating an invalidation for / even though / redirects to /index.html.

Context: yesterday I set up a CloudFront distribution for this site, so that I could attach an SSL cert to it (more about this in a …


Continue reading

Screencaptures on OSX

Posted on Tue 27 March 2018 in Posts • Tagged with osxTipOfTheDay, osx

Oftentimes you want to take a screenshot. On OSX this is easy: ⌘+SHIFT+4 and you're presented with a rectangle that allows you to click & select what to capture. But what happens when you want things like capturing a tooltip, or the mouse pointer itself.

As it turns out there's …


Continue reading

Scheduled Builds in Jenkins Scripted Pipelines

Posted on Tue 20 March 2018 in Posts • Tagged with jenkins, jenkinsfile, devops

Sometimes you’ll want to have Jenkins trigger a build on a recurring schedule. Common examples include things like a scheduled build at midnight (or some other time when regular work isn’t happening). Traditionally in Jenkins this could be done on the configuration page for the job in question …


Continue reading

Python Tip of the Day - Logging basicConfig

Posted on Wed 14 February 2018 in Posts • Tagged with pythonTipOfTheDay, logging, python

Oftentimes you just want to try out something related to logging in the REPL, or in a hacky script.  Wading through the docs on the logging module is this painful exercise in reading about handlers and formatters and other stuff you don't care about.

The simplest way to just get …


Continue reading

Code Refactor of the Day - Extracting Compound Conditionals

Posted on Mon 15 January 2018 in Posts • Tagged with codeRefactorOfTheDay, refactoring, quality, python

I'm currently doing the 30-Day Code Quality Challenge (https://www.codequalitychallenge.com), and today's exercise was an interesting one -- extract a compound conditional.

The idea of extracting a compound conditional is it's a refactor to try and improve the readability of code by giving a name to a complex boolean …


Continue reading

Python and Microsoft?

Posted on Wed 03 January 2018 in Posts • Tagged with python, news, microsoft

Much has been said about how Microsoft has changed in recent years, no longer the super closed-source monopolistic giant it once was.  Regardless of whether or not you believe the change is real or just at the surface, permanent or temporary, etc, there is definitely some interesting things that have …


Continue reading

Why not exact story point estimates?

Posted on Tue 12 December 2017 in Posts • Tagged with agile, scrum, estimation

Awhile back at a job a question was raised in a sprint planning meeting about why we don't do exact story point estimation, instead of doing the fibonacci (or fibonacci-like) scales. We had scales of 0.25, 0.5, 1, 3, 5, 8, 13, etc at the place, and people …


Continue reading