Site uses cookies to provide basic functionality.
Javascript rendering is set to off by default when visiting the site via .onion and .i2p domains. It can be enabled back again in user's settings section. Javascript rendering set to off means, that you can disable javascript in your browser now and the site will remain functional.
There is also IRC server now available via native IRC clients or non javascript web based one.
Fonts can be adjusted in user's settings section as well.
Check FAQ for more.

OK

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....

Debug Jest with VSCode - juri.dev - 6 years ago - eng

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..





Today I announce a new project: Swig . Swig is a monolithic, multithreaded, micro web framework designed for an air-gapped intranet environment. Aside from Python 3, it has zero dependencies; just download and deploy. Out of the box, Swig supports IPv4 and IPv6, HTTP and HTTPS, block and chunked responses, and gzip compression. I encourage you to go through the README for more information, and to check out the code on GitHub repo . P..

Update I now use dwim-shell-command , which reduces the logic to: (defun dwim-shell-commands-image-to-jpg () "Convert all marked images to jpg(s)." (interactive) (dwim-shell-command-on-marked-files "Convert to jpg" "convert -verbose '<>' '<>.jpg'" :utils "convert")) Original post Shell one-liners are super handy for batch-processing files. Say you'd like to convert a bunch of images from HEIC to jpg, you could use somethi....

Last night I moved this site from a VM in the UK to a static deployment in Google Cloud Run . It’s a neat service that can take a pre-packaged container and route HTTP and gRPC requests to that container. The concept of having immutable versions of infrastructure deployed, such that it’s clear what the deltas between versions were, and rollback is clearly nothing new, but it’s really nice that it’s quite so easy to deploy things on GCP thi..

Last night I moved this site from a VM in the UK to a static deployment in Google Cloud Run . It’s a neat service that can take a pre-packaged container and route HTTP and gRPC requests to that container. The concept of having immutable versions of infrastructure deployed, such that it’s clear what the deltas between versions were, and rollback is clearly nothing new, but it’s really nice that it’s quite so easy to deploy things on GCP thi..



KVM is a virtualization technology that comes with the Linux kernel. In other words, it allows you to run multiple virtual machines (VMs) on a single Linux VM host. VMs in this case are known as guests. If you ever used QEMU or VirtualBox on Linux - you know what KVM is capable of. But how does it work under the hood? ioctl KVM provides an API via a special device node - /dev/kvm.

This post is meant to be a counterpart to the previous KVM post, but about containers instead. The idea is to show how exactly containers work by running a busybox Docker image in our own small container runner. Unlike a VM, container is very vague term. Normally, we call containers a self-contained bundle of code and its dependencies, that can be shipped together and run in an isolated environment inside some host operating system.



Previously in database basics: 1. SELECT, INSERT, CREATE and a REPL 2. binary expressions and WHERE filters 3. indexes In this post, we'll extend gosql to implement the database/sql driver interface. This will allow us to interact with gosql the same way we would interact with any other database. Here is an example familiar program (stored in cmd/sqlexample/main.go) we'll be able to run: package main import....

KVM is a virtualization technology that comes with the Linux kernel. In other words, it allows you to run multiple virtual machines (VMs) on a single Linux VM host. VMs in this case are known as guests. If you ever used QEMU or VirtualBox on Linux - you know what KVM is capable of. But how does it work under the hood? ioctl KVM provides an API via a special device node - /dev/kvm.

This post is meant to be a counterpart to the previous KVM post, but about containers instead. The idea is to show how exactly containers work by running a busybox Docker image in our own small container runner. Unlike a VM, container is very vague term. Normally, we call containers a self-contained bundle of code and its dependencies, that can be shipped together and run in an isolated environment inside some host operating system.



55 visitors online