At the first glance Python's operator module might not seem very
interesting. It includes many operator functions for arithmetic and
binary operations and a couple of convenience and helper
functions. They might not seem so useful, but with help of just a
few of these functions you can make your code faster, more concise,
more readable and more functional. So, in this article we will
explore this great Python module and make the most out of the every
function included in it.
For me, one of the most aggravating performance issues on the web is
when it’s slow to type into a text input. I’m a fairly fast typist,
so if there’s even a tiny delay in a <textarea> or <input>, I
can feel it slowing me down, and it drives me nuts.
Idris has neither aged nor slept since they remade his mind in the
war. And one of humanity’s heroes now scrapes by on a freelance
salvage vessel, to avoid the attention of greater powers.
Eighty years ago, Earth was destroyed by an alien enemy. Many
escaped, but millions more died. So mankind created enhanced humans
such as Idris - who could communicate mind-to-mind with our
aggressors. Then these ‘Architects’ simply disappeared and Idris and
his kind became obsolete.
Now, Idris and his crew have something strange, abandoned in
space. It’s clearly the work of the Architects – but are they really
returning? And if so, why? Hunted by gangsters, cults and
governments, Idris and his crew race across the galaxy as they
search for answers. For they now possess something of incalculable
value, and many would kill to obtain it.
In the evening I started in Shards of
Earth,
The Final Architecture Book 1 by Adrian Tchaikovsky. Having read and
enjoyed a lot his Children of Time series I look forward to this new series.
Framework is a new company offering a laptop
that is designed to be repairable and upgradeable, both in terms of
internal components like the screen and motherboard, and in
pluggable expansion
cards.
In episode
2
of this series I noted that the languages in which I’m writing
Postgres functions share a common type system. It took me a while to
understand how types work in the context of Postgres functions that
can return sets of records and can interact with tables and
materialized views.
A few friends have recently asked about literature introducing Monad
Transformers. The best introduction I have found was in Haskell
Programming From First Principles. If you
don't have, or want to purchase, this book, then here is a brief
explanation with examples.
come to Rust having spent most of my career writing Java or
(Java/Type)script. Many moons ago in high school and university I
did C and C++ but have happily forgotten most of that. I’ve also
recently built some small projects in Go, which is the most
interesting and common comparand for Rust (a nice comparison can be
found here).
In the evening I finished The Black
Prism,
Lightbringer book 1 by Brent Weeks. I did enjoy the book a lot but
from what I recall I liked the Night Angel Series slightly
better. Still, I would recommend this book and for certain I am going
to read the rest of the Lightbringer series.
Unix provides fairly simple means of composing programs, and over
time I appreciate this feature more and more, however there are some
caveats. This article is my personal collection of noteworthy
examples, ending with a discussion.
After writing Praise for Alpine
Linux,
I have decided to continue writing more articles in praise of good
software. Today, I’d like to tell you a bit about
PostgreSQL.
Another month has passed, and we’ve gotten a lot of work done. No
big announcements to make, but lots of incremental progress,
bikeshedding and meetings. We have been laying the ground work for
several initiatives in Alpine 3.15, as well as working with other
groups to find a path forward on vulnerability information sharing.
If you’re using Python’s NumPy library, it’s usually because you’re
processing large arrays that use plenty of memory. To reduce your
memory usage, chances are you want to minimize unnecessary copying,
NumPy has a built-in feature that does this transparently, in many
common cases: memory views. However, this feature can also cause
higher memory usage by preventing arrays from being garbage
collected. And in some cases it can cause bugs, with data being
mutated in unexpected ways.
To avoid these problems, let’s learn how views work and the
implications for your code.
In this post, we’re going to dive into the Python datetime module
and explore how we can effectively implement date and time data into
our Python code.
Regardless of what area of Python programming you’re pursuing, this
is a must-know module with an endless amount of uses and tons of
professional career applications.
Sometimes when you’re working with several different dictionaries,
you need to group and manage them as a single one. In other
situations, you can have multiple dictionaries representing
different scopes or contexts and need to handle them as a
single dictionary that allows you to access the underlying data
following a given order or priority. In those cases, you can take
advantage of Python’s
ChainMap
from the collections
module.
But there’s a new kid on the block. Curtis “Ovid”
Poe has been spearheading
Corinna, an effort “to bring
effective OO to the Perl core and leapfrog [emphasis his] the
capabilities of many OO languages today.” No
CPAN modules, no chain of dependencies;
just solid OO features and syntax built-in. And while Corinna is a
ways off from shipping, Paul “LeoNerd”
Evans(maybe I should get a
cool nickname too?) has been implementing some of these ideas as
new Perl keyword
syntax in his
Object::Pad module.
Over the past 10 years, our team has planned hundreds of development
projects. As you’d expect, we’ve gotten better and better at it! Our
Software Development Estimation Tool started life as a spreadsheet,
before progressing into a recently updated online
tool (or mini web
app). This article discusses how to use the estimation tool for
software development, as well as the underlying methodology that
powers it. In particular, how looking at every project through two
lenses (team planning and tasks) can improve your understanding of
the software project’s cost and timeline.
Convolutional neural networks are very important in machine
learning. If you want to do computer vision or image recognition
tasks, you simply can’t go without them. But it can be hard to
understand how they work.
In this post, we will talk about the mechanisms behind convolutional
neural networks, their benefits, and business use cases.
Websites tend to protect their data and access. There are many
possible actions a defensive system could take. We'll start a
journey through some of them and learn how to avoid or mitigate
their impact.
So now you understand a certain programming language and you are
writing code and coffee is your new best friend. But everywhere
there is code, you see Git. They say a true developer must know
Git and here you are, knowing nothing about Git, but longing to
getting started.
I have to admit, Git is as complex as it is popular. However, you
don't need to know the whole 160+ commands of Git to use it
well. Here is a short but sure tutorial that will teach you the most
used feature of this world-famous version control system.
Okay, this is not another git rant. Git has taken the world by
storm, and anyone
complaining should go
sit in a corner, and stop wasting our time.
This post is an explanation of the most important quirk in git
terminology and how it
affects everything you do in version control. You see, while
“branch” is a central keyword in git — git in fact does not have
branches.