|
Leveling Up Your Python Literacy and Finding Python Projects to Study
-
realpython.com
-
6 years ago
-
eng
In your quest to become a better developer, how do you find Python code that is at your reading level? What are good code bases or projects to study? What are the things holding you back from leveling up your Python literacy? This week we have Cecil Phillip on the show to discuss all of these common questions. Cecil is a Senior Cloud Advocate at Microsoft.
|
|
Another interesting piece, among several others , on encouraging writing within an organization. As I prepare to move on to a new role, I’m happy to report that my team’s efforts to publish an internal written product on a regular schedule has gone well so far. I hope it continues in my absence, and I look forward to starting a similar project with my next team. Permalink.
|
|
Introduction In most of the reviews for this post, I was asked why choose a graph database over something else? This is a hard question to answer since my experience right now is limited on the graph database side. My guess is you’re wondering the same thing, so this is my best answer to date. At this point in my career, I would only choose a relational database if I was writing financial software. Relational databases are very rigid..
|
|
In every responsive web project, you need media queries to adapt to different screen sizes. Styled components are a popular way to write CSS styles in React applications. This article proposes a way to write media queries with the styled components library Emotion.
|
|
If you dabble in 3D printing, you’ve probably stumbled upon the OctoPrint project . It’s a web interface for your printer. It’s a very cool project with lots of features. The typical use case is to host OctoPrint on a Raspberry PI . That requires a bit of fiddling around if you want to power it from the printer’s power supply. It’s a very popular project so finding instructions on how to do it isn’t difficult.
|
|
Within Malta’s Education system, as a secondary school student, you are constantly working towards the O-Levels, which are examinations set…
|
|
After five years away from personal blogging, I'm returning to share technical stories that don't fit on Twitter or corporate blogs.
|
|
Single Message Transformations - The Swiss Army Knife of Kafka Connect
-
www.morling.dev
-
6 years ago
-
eng
Table of Contents Format Conversions Ensuring Backwards Compatibility Filtering and Routing Tombstone Handling Externalizing Large Payloads Limitations Learning More Do you remember Angus "Mac" MacGyver? The always creative protagonist of the popular 80ies/90ies TV show, who could solve about any problem with nothing more than a Swiss Army knife, duct tape, shoe strings and a paper clip? The single message transf..
|
|
Single Message Transformations - The Swiss Army Knife of Kafka Connect
-
www.morling.dev
-
6 years ago
-
eng
Table of Contents Format Conversions Ensuring Backwards Compatibility Filtering and Routing Tombstone Handling Externalizing Large Payloads Limitations Learning More Do you remember Angus "Mac" MacGyver? The always creative protagonist of the popular 80ies/90ies TV show, who could solve about any problem with nothing more than a Swiss Army knife, duct tape, shoe strings and a paper clip? The single message transf..
|
|
Learn about some great open source tools for Terraform code testing, like TFLint, Terratest, GOSS, and more.
|
|
In Go 1.14, the new T.Cleanup() function schedules defer-like work to be done after the current test. This makes it possible to write very comfortable setup helper functions: func SetUpFrobnicator(t *testing.T) *frob.Frobnicator { t.Helper() f := frob.New() // Do setup. t.Cleanup(f.Close) // Schedule cleanup for later. return f } func TestFoobar(t *testing.T) { f := SetUpFrobnicator(t) // (Run the test itself, using f.) } Previo..
|
|
In Go 1.14, the new T.Cleanup() function schedules defer-like work to be done after the current test. This makes it possible to write very comfortable setup helper functions: func SetUpFrobnicator(t *testing.T) *frob.Frobnicator { t.Helper() f := frob.New() // Do setup. t.Cleanup(f.Close) // Schedule cleanup for later. return f } func TestFoobar(t *testing.T) { f := SetUpFrobnicator(t) // (Run the test itself, using f.) } Previo..
|
|
In Go 1.14, the new T.Cleanup() function schedules defer-like work to be done after the current test. This makes it possible to write very comfortable setup helper functions: func SetUpFrobnicator(t *testing.T) *frob.Frobnicator { t.Helper() f := frob.New() // Do setup. t.Cleanup(f.Close) // Schedule cleanup for later. return f } func TestFoobar(t *testing.T) { f := SetUpFrobnicator(t) // (Run the test itself, using f.) } Previo..
|
|
The other day I needed to take some regular expressions and convert them to strings. And while executing a .to_s on the regular expression itself worked correctly it brought through the regular expression characters so there were things like: covid[ -]19 where what I was looking for was just the "covid19" bit (I was generating hashtags from the matched regular expressions for the new CovidNearMe News Aggregator ). I started diggin....
|
|
The very sucessful open-source project OpenMapTiles is used by 250 millions users every month. Here are the plans for the future.
|
|
This is a good, solid read. I wouldn't call it life changing for me, more life upkeeping. For some people it can be life changing though. In this book, Austin argues that we should all share our work. He will share a lot of useful advice for doing work in public. Austin is very convincing. If you never considered sharing your work, by the end of this books, you will be convinced.
|
|
The main technique in software design is this: You look at the entirety of your system and you decompose it into pieces that are more manageable and have clear interfaces. This approach is usually referred to as modularization . But what’s the point of investing such an effort if in the end only the externally visible properties of a software matter? In his classic paper “On the Criteria To Be Used in Decomposing Systems into Modules” ....
|
|
The main technique in software design is this: You look at the entirety of your system and you decompose it into pieces that are more manageable and have clear interfaces. This approach is usually referred to as modularization . But what’s the point of investing such an effort if in the end only the externally visible properties of a software matter? In his classic paper “On the Criteria To Be Used in Decomposing Systems into Modules” ....
|
|
The main technique in software design is this: You look at the entirety of your system and you decompose it into pieces that are more manageable and have clear interfaces. This approach is usually referred to as modularization . But what’s the point of investing such an effort if in the end only the externally visible properties of a software matter? In his classic paper “On the Criteria To Be Used in Decomposing Systems into Modules” ....
|
|
This blog post was originally posted on JetBrains .NET blog . In Rider , we have unit tests that enumerate files in your project and dump a sorted list of these files. In one of our test projects, we had the following files: jquery-1.4.1.js, jquery-1.4.1.min.js, jquery-1.4.1-vsdoc.js. On Windows, .NET Framework, .NET Core, and Mono produce the same sorted list: jquery-1.4.1.js jquery-1.4.1.min.js jquery-1.4.1-vsdoc.js
|
|
This blog post was originally posted on JetBrains .NET blog . In Rider , we have unit tests that enumerate files in your project and dump a sorted list of these files. In one of our test projects, we had the following files: jquery-1.4.1.js, jquery-1.4.1.min.js, jquery-1.4.1-vsdoc.js. On Windows, .NET Framework, .NET Core, and Mono produce the same sorted list: jquery-1.4.1.js jquery-1.4.1.min.js jquery-1.4.1-vsdoc.js
|
Update August 17 2021 : I've got the tool working in Chrome and Firefox by launching it a standalone new window instead of loading in an iframe. It is still broken in Safari for unknown reasons. It's not ideal, but until the whole SharedArrayBuffer debacle settles down, it's probably the best I can do right now. Update October 17 2022 : The mp4's should now always be compatible with QuickTime. While they were always compatible with ....
|
Update August 17 2021 : I've got the tool working in Chrome and Firefox by launching it a standalone new window instead of loading in an iframe. It is still broken in Safari for unknown reasons. It's not ideal, but until the whole SharedArrayBuffer debacle settles down, it's probably the best I can do right now. Update October 17 2022 : The mp4's should now always be compatible with QuickTime. While they were always compatible with ....
|
|
How do you convert a UTC timestamp to Unix Time (seconds since the epoch)? "2020-04-29 04:48:15" → 1588135695 Of course the right answer is “you use a standard library function.” But what if you don’t have one available? Or what if you’re the person implementing that library? Converting the time portion is trivial. Unix Time pretends that leap seconds do not exist and makes every day exactly 86,400 seconds long. This is a fib on....
|
|
Jenkins is an Open Source CI / CD software program that you can easily install on an AWS instance. Here is how to install Jenkins: sudo apt install default-jre wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt update sudo apt install jenkins sudo systemctl start jenkins Here are ..
|
|
Ansible is an Open Source DevOps engine for systems configuration. Here is the process for installing Ansible on Ubuntu 18 for AWS. sudo apt-add-repository ppa:ansible/ansible sudo apt update sudo apt install ansible sudo apt install python-pip pip install boto3 --user pip install boto --user Note : The commands pip install boto3 –user / pip install boto –user - you only need one of these. Use boto3 if your Ansible installation i..
|
|
URI.parse is a Ruby call I've written a thousand plus times. The unfortunate reality of URI.parse is that it doesn't work when there are UTF-8 characters in the url. The work around is the addressable gem. So: Gemfile gem "addressable" Example Usage require 'addressable/uri' url = 'http://www.example.com/wp content/uploads/2012/01/München.jpg' parts = Addressable::URI.parse(url) Sources [Stack Overflow] (https://stackoverflow..
|
|
Brain dump so I don’t forget this one] So you want your bash script to exit on an error but you’d like it to clean some stuff up before it closes after the error occurs. No problem a TRAP can do this for you (read detailed docs for caveats). In a very simple form it looks like this: https://gist.github.com/lawrencegripper/9e778601b2a21d7891e46cf0e1765f46 Using Trap to fire cleanup on exit Learn more here: https://www.linuxj..
|