|
I recently had to look at a complex JSON structure in Python. The way that I wanted to do this was to look at a sorted list of the keys. Here's the core of what I came up with: keys = my_json . keys () keys = list ( keys ) keys . sort () I keep a common_json.py library and this is what I came up that I can call from: common_json . print_sorted_keys ( json_dict ) Note : If you are debugging insi....
|
|
Building mobile UI mockups in Excalidraw is a lot of fun, but eye-balling screen ratios is not great. Here are some free resources to help you get started, and a guide on how to make your own frames.
|
|
Like many developers, I keep track of my configuration files in version control, to make moving to new machines is simpler and share code with others. This process started out for my Emacs config files at first, but grew to consume other aspects: bash functions, git aliases… Since 2016, I have accumulated over 500 git commits . Now the dotfiles are tracked, the next biggest pain is to install packages and folder structures and obscure ..
|
|
Like many developers, I keep track of my configuration files in version control, to make moving to new machines is simpler and share code with others. This process started out for my Emacs config files at first, but grew to consume other aspects: bash functions, git aliases… Since 2016, I have accumulated over 500 git commits . Now the dotfiles are tracked, the next biggest pain is to install packages and folder structures and obscure ..
|
Swag alert! The DEF CON store has a ton of new #DEFCONisCanceled goodies for your delectation. The much requested mask is here, along with hats, pins and stickers. Thanks to everyone for your support while we construct #defconsafemode - stay tuned for even more new swag items in the coming days! Stay safe, and stay in touch.
|
|
The top 3 reasons to join the AWS, CircleCI, and Snyk webinar on the DevSecOps journey
-
snyk.io
-
5 years ago
-
eng
On Tuesday, June 16 from 10-11 am PT, three hands-on experts from AWS, CircleCI, and Snyk will host “The DevSecOps Journey Webinar” to demo how CircleCI and Snyk seamlessly port with you as you increasingly develop in the cloud.
|
|
Implementing dynamic super calls in Swift through runtime manipulation, assembly language, and ARM64 register management for InterposeKit.
|
|
A brief introduction to Go for programmers who haven't used Go before: Why use it? The standard library. And the language itself.
|
|
Fixing the Docker Permission Denied While Trying to Connect to the Docker Daemon Socket Error
-
fuzzyblog.io
-
5 years ago
-
eng
I recently had the situation where even the simplest docker command: docker run -it bash gave this error: docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. The solution for this is actually pretty simple: Add your ....
|
|
Open-source plugin for QGIS that loads fast vector maps. Change colors and fonts of the map to get unique look.
|
|
This post digs into the options of the git rebase interactive command and that you can use to “rewrite your history.”
|
|
I cover the core game loop, why a fixed timestep is required and how it's implemented, topped off with a glorious comparison gif.
|
|
I cover the core game loop, why a fixed timestep is required and how it's implemented, topped off with a glorious comparison gif.
|
|
Cory Doctorow, in Inaction is a Form of Action : “Itâs tempting to simply laugh off these ‘free market’ fetishists as they get their comeuppance when Alex Jones and the Daily Stormer get kicked off the internet, but that is to miss the wider point: we are now in a speech environment where power is so concentrated that the whims of a half-dozen tech execs determine — for all intents and purposes — who may speak and what they may say....
|
Automated bots creating fake accounts are a persistent problem targeting any user self-registration systems and django-allauth is no exception. The most common approach to discourage these bots is to incorporate a captcha on your signup page that adds a layer of validation, with Google's ReCaptcha being the industry-standard implementation. Integrating recaptcha into django-allauth can be tricky so in this post I'll cover the steps to add a..
|
|
Tables make it hard to give hierarchy to data. To underline the importance of certain values in a table you can use chips that highlight the values with colors.
|
|
One of the better lessons that you learn as a programmer is that you never want to work too large, in short, that laziness can be a virtue. I'm speaking, of course, of doing things manually that you can automate. I recently wanted to download a set of images from github that represented anonymous animals. Here's the repo: [https://github.com/wayou/anonymous-animals/tree/master/icons](https://github.com/wayou/anonymous-animals/tree/mas....
|
|
Series Index Python and Go: Part I - gRPC Python and Go: Part II - Extending Python With Go Python and Go: Part III - Packaging Python Code Python and Go: Part IV - Using Python in Memory Introduction Like tools, programming languages tend to solve problems they are designed to. You can use a knife to tighten a screw, but it’s better to use a screwdriver. Plus there is less chance of you getting hurt in the process.
|
|
I recently learned about the concept of a “shadow” that Carl Jung defined. According to it, each of us has a psychological shadow - the part of us that we suppress unconsciously. It’s usually a darker side which society makes us hide, such as a side of violence, but it doesn’t have to be negative. It can be different sexuality, or creativity. It is there, even if we aren’t aware if. For me personally, on the surface level I’ve struggled w....
|
|
Fehrist – Document Indexing Library in Go Fehrist is a document indexing library written in Golang which is used to index different kind of text documents
-
blog.adnansiddiqi.me
-
5 years ago
-
eng
TLDR: Visit Github repo if you are not interested in the internals of the lib. Today I present you another library I made in Go language, called, Fehrist From the Github README: Fehrist is a pure Go library for indexing different types of documents. Currently, it supports only CSV and JSON but flexible architecture gives you the liberty to add more documents. Fehrist(فہرست) is an Urdu word for Index. Similar terminologies used in Arabic(فھر....
|
|
Curl has support for sftp and scp, among many other protocols. In one of our php-applications we use libcurl to transfer files via sftp to a remote datacenter. We recently migrated this application into a docker-container. With it we transferred the private key into the container, so the application can connect to the datacenter. However the job that periodically transfers these files wasn’t working anymore when run inside the containe....
|
|
How to evenly distribute points on a sphere more effectively than the canonical Fibonacci Lattice
-
extremelearning.com.au
-
5 years ago
-
eng
Mapping the Fibonacci lattice (aka Golden Spiral, aka Fibonacci Sphere) onto the surface of a sphere is an extremely fast and effective approximate method to evenly distribute points on a sphere. I show how small modifications to the canonical implementation can result in notable improvements for nearest-neighbor measures. tl;dr: Get a summary of this post … Continue reading "How to evenly distribute points on a sphere more effectively ..
|
|
Overview # The primary thrust of this book is that television has degraded our mode of public discourse. Our news, politics, education, and even religion are delivered to us primarily through television, where they were once delivered via the written word. This transformation of medium is not irrelevant: just as poetry doesn’t survive fully intact when translated from one language to another, likewise ideas do not survive translation o....
|
|
A marketplace business connects buyers and sellers in exchange for a cut of the revenue. Some of today's biggest companies, such as Amazon, Uber, and Airbnb, are marketplaces. Yes, these companies cha...
|
|
Overview # The primary thrust of this book is that television has degraded our mode of public discourse. Our news, politics, education, and even religion are delivered to us primarily through television, where they were once delivered via the written word. This transformation of medium is not irrelevant: just as poetry doesn’t survive fully intact when translated from one language to another, likewise ideas do not survive translation o....
|
|
In a previous post, I've underlined the philosophy behind Domain Driven Design, DDD, and now I'd like to move to a practical approach that handles real issues in software development and architecture, requirements that constantly change, and models that are never precise, never current, and/or never using the best technology available. One of the solution to such problems is to build an evolutionary architecture.
|