PHPNews

Weekly Update 100

Made it to 100! And by pure coincidence, it aligned with the week where I've tuned out more than I ever have since gaining my independence which means there's really not much to talk about. But I did want to share a little about the snow in Australia (turns out it's not all beaches) and some thoughts on gov initiative…

Continue reading »

Written by Troy Hunt - - Aggregated on Friday August 17, 2018


Twitter Sends A Eulogy to 3rd Party Apps

I’ve always heard, “never build your business on something you don’t control” and those words have never been more accurate for 3rd party Twitter apps. Of course, this is nothing new as Twitter has crapped on developers a few times in the past and now they are continuing that trend by removing API that my Twitter …

Continue reading »

Written by Eric L. Barnes - - Aggregated on Friday August 17, 2018


Vim settings for working with YAML

Having managed to avoid YAML until quite recently, my vim installation wasn't well set up at all for working with it. It needs more config settings than plugins, so I thought I'd write down what I found helpful. I'm using it quite a lot now I'm working with OAS (used to be Swagger) API definitions. Let's start with …

Continue reading »

Written by Lorna Jane - - Aggregated on Wednesday August 15, 2018


Tuples in Python

Tuples are one of the core object types in Python. Although tuples may seem like lists, they are often used in different situations and for different purposes and unlike lists they are immutable. Syntactically they are enclosed in parenthesis (or without them) instead of square brackets like lists, but they …

Continue reading »

Written by code-diesel - - Aggregated on Wednesday August 15, 2018


List Comprehensions in Python

Lists are a versatile Python data structure and allows various sequence operations. Besides the usual, Lists also include a powerful operation called as ‘list comprehension’ which allows us to process various list structures, like a matrix or nested arrays or lists. It allows you to concisely form a new list by …

Continue reading »

Written by code-diesel - - Aggregated on Wednesday August 15, 2018


Working with zip files in Python

Since I started working with computers, my favorite file format was ‘zip’, popularized by the Windows PKZIP program. The idea of compressing data into shorter versions of themselves was a fascinating idea. Then, I was ignorant of the mathematical foundations of information theory, so it seemed like magic. I spent …

Continue reading »

Written by code-diesel - - Aggregated on Wednesday August 15, 2018


How to connect to MySQL in Python

Connecting to MySQL from Python offers many solutions, but I like the official MySQL connector. You can install the module using pip. sudo pip install mysql-connector-python Once the module is installed you can connect to MySQL using the following code. import mysql.connector   cnx = mysql.connecto…

Continue reading »

Written by code-diesel - - Aggregated on Tuesday August 14, 2018