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 BASH you might quite often use sort -n to ensure that strings are sorted as if they were numeric (i.e. so 12a,2a,4a is sorted into the order you'd expect based on the integers at the front). There isn't a direct way to do this to a list in Python, so you need a wrapper to help implement the functionality Read more…

In BASH you might quite often use sort -n to ensure that strings are sorted as if they were numeric (i.e. so 12a,2a,4a is sorted into the order you'd expect based on the integers at the front). There isn't a direct way to do this to a list in Python, so you need a wrapper to help implement the functionality Read more…

dotfiles/grid.lua at master for simple functions to resize windows. Emacs keys everywhere Hammerspoon Script . Getting Started With Hammerspoon (by Diego Martín Zamboni) . Hammerspoon config inspired by Spacemacs . Just Enough Lua to Be Productive in Hammerspoon, Part 1 . Just Enough Lua to Be Productive in Hammerspoon, Part 2 . launchOrFocusByBundleID for global key bindings (there are Emacs goodies there too). My configuration wi..

A Hacker News's thread Go gets preliminary WebAssembly support has a couple of tips to reduce binaries compiled with Go. go build -ldflags=-s UPX (Ultimate Packer for eXecutables) packs the binary further. upx --ultra-brute

I had to think for a minute to realize that Stack Overflow has “gamification" too. Not a ton. Maybe a dusting of gamification, most of it around reputation. Read more "A Dusting of Gamification"

My HLS Stream Creator script takes input videos and outputs adaptive HLS streams. However, it was written as an experiment and developed over time, so has always been focused more on manual runs. This snippet gives an example of wrapping automation around the script, and (a slightly different version) is in active use on one of my muxers, fetching muxing jobs from an upstream API (hence the slightly odd input to triggerMux). It may ne..

My HLS Stream Creator script takes input videos and outputs adaptive HLS streams. However, it was written as an experiment and developed over time, so has always been focused more on manual runs. This snippet gives an example of wrapping automation around the script, and (a slightly different version) is in active use on one of my muxers, fetching muxing jobs from an upstream API (hence the slightly odd input to triggerMux). It may ne..

Every now and then I hear some ridiculous things about the equals symbol. Some large subset of programmers—perhaps related to functional programmers, perhaps not—seem to think that = should only and ever mean “equality in the mathematical sense.” The argument usually goes, Functional programming gives us back that inalienable right to analyze things by using mathematics. Never again need we bear the burden of that foul mutant x = x+1! No no..

Every now and then I hear some ridiculous things about the equals symbol. Some large subset of programmers—perhaps related to functional programmers, perhaps not—seem to think that = should only and ever mean “equality in the mathematical sense.” The argument usually goes, Functional programming gives us back that inalienable right to analyze things by using mathematics. Never again need we bear the burden of that foul mutant x = x+1! No no..

Every now and then I hear some ridiculous things about the equals symbol. Some large subset of programmers—perhaps related to functional programmers, perhaps not—seem to think that = should only and ever mean “equality in the mathematical sense.” The argument usually goes, Functional programming gives us back that inalienable right to analyze things by using mathematics. Never again need we bear the burden of that foul mutant x = x+1! No no..

In a similar vein to my previous article , here is a script to change the line endings of all files across all revisions in a Git repository to UNIX line endings. git filter-branch -f --tree-filter 'find . -name .git -prune -o -exec sh -c "file {} | grep -q text" \; -exec dos2unix -q {} \; ' Subversion, by default, stores all files in the repository in the line endings in which they were created. Git, by default, converts all files..

I actually started teaching on April 13th 1998 (20 years ago today). It was my final year as a student at the University of Waterloo, and as I was finishing up writing my final exams I realized that I needed to actually go out and get a real job to support my family (I was married with a daughter at the time). Prior to that, I had worked on some very cool technology projects for various companies (including some big names like Microsoft..

So your product bills customers and produces invoices. Being self-employed, I have to go through my bank statements and send those invoices to my accountant. This is what I wish companies who produce invoices would do: Invoices are PDFs. PDF files are easy to put into a directory to send to my accountant. PDF files can be styled to actually look like invoices. (HTML files inevitably look different depending on your zoom level, and so ..

I actually started teaching on April 13th 1998 (20 years ago today). It was my final year as a student at the University of Waterloo, and as I was finishing up writing my final exams I realized that I needed to actually go out and get a real job to support my family (I was married with a daughter at the time). Prior to that, I had worked on some very cool technology projects for various companies (including some big names like Microsoft..

The Swiss Society of Cartography awarded MapTiler for its innovative work in the field of digital cartography.

March was an incredible month. I started a major renovation on the master bathroom , which I ended up putting on pause due to a major life update . Due to the incredible busyness, I was only able to finish one book.

In this post we are going to play around with full text searching Linux man pages using Elasticsearch. The idea We will: setup an Elasticsearch instance locally create an index for the data feed the index with the man pages of the OS create a search method for full text searching full text search the man pages The code I have gathered the code snippets you will find here in a script called elman and it is available on GitHub so ....

In this post we are going to play around with full text searching Linux man pages using Elasticsearch. The idea We will: setup an Elasticsearch instance locally create an index for the data feed the index with the man pages of the OS create a search method for full text searching full text search the man pages The code I have gathered the code snippets you will find here in a script called elman and it is available on GitHub so ....

In this post we are going to play around with full text searching Linux man pages using Elasticsearch. The idea We will: setup an Elasticsearch instance locally create an index for the data feed the index with the man pages of the OS create a search method for full text searching full text search the man pages The code I have gathered the code snippets you will find here in a script called elman and it is available on GitHub so ....

In this post we are going to play around with full text searching Linux man pages using Elasticsearch. The idea We will: setup an Elasticsearch instance locally create an index for the data feed the index with the man pages of the OS create a search method for full text searching full text search the man pages The code I have gathered the code snippets you will find here in a script called elman and it is available on GitHub so ....

Sometimes you want to use a variable to contain the name of an attribute that you might later want to fetch from an object. For example, if you're doing hashing operations you might want to have the algorithm name in a variable, and use that in order to trigger behaviour (rather than having a massive if block, duplicating calls). Read more…

Sometimes you want to use a variable to contain the name of an attribute that you might later want to fetch from an object. For example, if you're doing hashing operations you might want to have the algorithm name in a variable, and use that in order to trigger behaviour (rather than having a massive if block, duplicating calls). Read more…

Various services require a token to be submitted using a HMAC. Although SHA1-HMAC is common, other hashing algorithms are sometimes required. This snippet allows you to specify the hashing algorithm to use Read more…

Various services require a token to be submitted using a HMAC. Although SHA1-HMAC is common, other hashing algorithms are sometimes required. This snippet allows you to specify the hashing algorithm to use Read more…

Sometimes you need to double check that a private key matches your certificate (if, for example, you've got multiple badly named keys on your system). You might also occasionally want to check if a certificate matches a Certificate Signing Request (CSR) Read more…

SHA1-HMAC's are often used by API's (and in tokenisation) as a means to prove control over a shared secret. They allow proof of control without sending the secret over the network. Read more…

SHA1-HMAC's are often used by API's (and in tokenisation) as a means to prove control over a shared secret. They allow proof of control without sending the secret over the network. Read more…

I had this happen to me a few times already. Notification Center on the Mac goes completely numb: no more notifications and the list is empty. I’m writing down the fix, so I do not have to google the forums once again the next time. Open the Terminal, then: # this usually fails, as the notification server is already running launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist # kills and restarts the notifi..

Highlights from the CodeBeam SF 2018 conference, March 15-16 2018 Once was Erlang Factory The name has changed - yearly in fact, for the past few years - but this conference is always a destination for the Erlang faithful. The premise has been broadened since the Erlang Factory days of yore to welcome other BEAM based languages, the most prominent of those being Elixir of course, but worthy mentions here are LFE (Lisp Flavored E....

A trucker delivering palletized cargo to a pier would have to remove each item from the pallet and place it on the dock. Longshoreman would then replace the items on the pallet for lowering into the hold, where other longshoreman would break down the pallet once more and stow each individual item - all at a cost so high that shippers knew not to send pallets to begin with. – The Box, Marc Levinson. P143

A trucker delivering palletized cargo to a pier would have to remove each item from the pallet and place it on the dock. Longshoreman would then replace the items on the pallet for lowering into the hold, where other longshoreman would break down the pallet once more and stow each individual item - all at a cost so high that shippers knew not to send pallets to begin with. – The Box, Marc Levinson. P143



Usually, you only want to revert a single commit at once. Just occasionally, though, you want to revert multiple commits all in one fell swoop (making it either a very sad or a very happy day). Read more…

Gotta build on of these for a complex and content rich elearning site. So did some research. Here are some of my findings. Here is a good start : How to Build a Recommender Systemby Martin KihnThe Components of a Recommender Systemon a site with quite some articles on the topic – like this one on Impression DiscountingOr this one : Beginners Guide to learn about Content Based Recommender Engineswhich is from 2015 but still cover the general..

Gotta build on of these for a complex and content rich elearning site. So did some research. Here are some of my findings. Here is a good start : How to Build a Recommender Systemby Martin KihnThe Components of a Recommender Systemon a site with quite some articles on the topic – like this one on Impression DiscountingOr this one : Beginners Guide to learn about Content Based Recommender Engineswhich is from 2015 but still cover the general..

Guy Podjarny live hacks a Node.js application to exploit vulnerabilities in real world packages. In this edited down video from the JSKongress conference. Guy explains where some of the most common JS security pitfalls exist.

Last weekend I headed to New Zealand and marshalled at the Highlands Festival of Speed . The Highlands Festival of Speed is a weekend packed with some of the best modern classic racing you will see in New Zealand. Featuring the Pre 65 Racing, Mainland Muscle, Formula Libre, South Island Porsche, OSCA, Highlands Modern Classics/Nostalgic Classics and the Highlands Sprint Series. This is a weekend of true blue Kiwi racing starring some o..

Last weekend I headed to New Zealand and marshalled at the Highlands Festival of Speed . The Highlands Festival of Speed is a weekend packed with some of the best modern classic racing you will see in New Zealand. Featuring the Pre 65 Racing, Mainland Muscle, Formula Libre, South Island Porsche, OSCA, Highlands Modern Classics/Nostalgic Classics and the Highlands Sprint Series. This is a weekend of true blue Kiwi racing starring some o..

Last weekend I headed to New Zealand and marshalled at the Highlands Festival of Speed . The Highlands Festival of Speed is a weekend packed with some of the best modern classic racing you will see in New Zealand. Featuring the Pre 65 Racing, Mainland Muscle, Formula Libre, South Island Porsche, OSCA, Highlands Modern Classics/Nostalgic Classics and the Highlands Sprint Series. This is a weekend of true blue Kiwi racing starring some o..

Last weekend I headed to New Zealand and marshalled at the Highlands Festival of Speed . The Highlands Festival of Speed is a weekend packed with some of the best modern classic racing you will see in New Zealand. Featuring the Pre 65 Racing, Mainland Muscle, Formula Libre, South Island Porsche, OSCA, Highlands Modern Classics/Nostalgic Classics and the Highlands Sprint Series. This is a weekend of true blue Kiwi racing starring some o..

Last weekend I headed to New Zealand and marshalled at the Highlands Festival of Speed . The Highlands Festival of Speed is a weekend packed with some of the best modern classic racing you will see in New Zealand. Featuring the Pre 65 Racing, Mainland Muscle, Formula Libre, South Island Porsche, OSCA, Highlands Modern Classics/Nostalgic Classics and the Highlands Sprint Series. This is a weekend of true blue Kiwi racing starring some o..

JS tooling - yasha.solutions - 8 years ago - eng
The web is evolving. Here are some element to catch up on VueJs and NodeJS  Building a RESTful API with Node.jsNodeJS Shopping CartVue.js 2 – Getting StartedBuild a Chat Room from scratch (vuejs, nodejs, socket.io)Full Stack Web App using Vue.js & Express.jsHotel system in Vue.jsVue.js 2 & Vuex (Basics)

JS tooling - yasha.solutions - 8 years ago - eng
The web is evolving. Here are some element to catch up on VueJs and NodeJS  Building a RESTful API with Node.jsNodeJS Shopping CartVue.js 2 – Getting StartedBuild a Chat Room from scratch (vuejs, nodejs, socket.io)Full Stack Web App using Vue.js & Express.jsHotel system in Vue.jsVue.js 2 & Vuex (Basics)

42 visitors online