Simulate Google GCP API Gateway and Cloud Functions for Local Dev with Nginx

Posted on Thu 17 November 2022 in Computing • Tagged with gcp, python, api gateway, cloud functions, nginx

Simulate Google GCP API Gateway and Cloud Functions for Local Dev with Nginx


Continue reading

Building Python from Source on OpenSUSE

Posted on Sun 06 December 2015 in Computing • Tagged with python

My very first post on this blog was how to build Python from source.  In 2015 it turns out that this is a bit harder that it should be, and having wasted most of the morning working it out I'm posting the solution for future reference.

Building Python in the …


Continue reading

Nested List Comprehension

Posted on Mon 04 January 2010 in misc • Tagged with Python

I never really feel like i'm any good at using Python unless I am doing cool things with List Comprehension.

Here's a quick example of nested list comprehension I used today to create a new list from a list containing lists of three items

Visually:-

[['mostly cloudy (day)', 'cloudy3.png …

Continue reading

A Question Of Python Style

Posted on Sun 11 October 2009 in misc • Tagged with python

Having ended up almost solely with Python at the end of a journey of many languages I have learnt and used; style has been something important to me.

Python has pep8 which states something's definitively such as:-

  • Use 4 spaces per indentation level" (I was actually using 2 until now …

Continue reading

Python function args

Posted on Tue 29 September 2009 in misc • Tagged with Python

I rarely use anything beyond named parameters, but this post captures what you need to know.

http://kbyanc.blogspot.com/2007/07/python-aggregating-function-arguments.html


Continue reading

Building Python from Source

Posted on Mon 21 September 2009 in misc • Tagged with Python

How easy it is to install python from source? Very.

./configure --prefix=/usr/local/python2.6/
make #(took 4mins on my x86_64 dc)
make install

Continue reading