|
Over the past few years, I’ve taken to using technology less and less in my daily life. I leave my phone in the car when going to a party or social event. I’ll only fetch it if I want to take a picture, and only after appreciating the moment I’d like to capture to the fullest. When I listen to music on my phone (via headphones) during the long walks I take to get exercise and relax, I don’t check my phone at all. If the environment around..
|
|
Over the past few years, I’ve taken to using technology less and less in my daily life. I leave my phone in the car when going to a party or social event. I’ll only fetch it if I want to take a picture, and only after appreciating the moment I’d like to capture to the fullest. When I listen to music on my phone (via headphones) during the long walks I take to get exercise and relax, I don’t check my phone at all. If the environment around..
|
|
Needed to rewrite the date format in a couple of csv columns. Emacs multiple cursors helps here, but needed a function to parse and reformat the dates themselves. I can likely reformat dates using the built-in parse-time-string and format-time-string functions, but hey why not give the ts.el library a try… (defun ar/region-to-timestamp () "Convert date like \"29 Apr 2019\" to \"2019-04-29\"." (interactive) (let ((date (ts-parse ..
|
|
Released a tiny npm package today: @0xadada/random-emoji , a javascript random emoji function with zero dependencies. $ yarn add @0xadada/random-emoji $ node > const random = require('@0xadada/random-emoji'); > random() '😁' let a = random(); // defaults to 'emoticons' let b = random('emoticons'); let c = random('food'); let d = random('animals'); let e = random('expressions'); console.log(a, b, c, d, e); // 😍 🙄 🍗 🐥 🤢 Small, fun.
|
|
the room contains no sound except the ticking of the clock which has begun to panic like an insect, trapped in an enormous box Books lie open on the carpet Somewhere else you’re sleeping and beside you there’s a woman who is crying quietly so you won’t wake. Wendy Cope
|
|
When writing long sentences in documentation repositories, git tends to show really unhelpful diffs. They are unreadable because long lines aren’t broken, which hides edits happening towards end of line. A colleague of mine asked me if git couldn’t be configured to make this sort of thing more obvious. Challenge accepted! Figure 1: Can you spot the edit made in a long line of text?
|
|
Get a cool graph of commits from the command line! For newbies and experts alike, git is a bit hard to visualize. Here’s a handy git command to make understanding git easier. git log --decorate --oneline --graph Figure 1: Git graph of this repository This can be made into a git command via an entry your ~/.gitconfig: [alias] graph = log --decorate --oneline --graph Code Snippet 1 : Alias "graph" defined in ~/.gi..
|
|
When writing long sentences in documentation repositories, git tends to show really unhelpful diffs. They are unreadable because long lines aren’t broken, which hides edits happening towards end of line. A colleague of mine asked me if git couldn’t be configured to make this sort of thing more obvious. Challenge accepted! Figure 1: Can you spot the edit made in a long line of text?
|
|
Get a cool graph of commits from the command line! For newbies and experts alike, git is a bit hard to visualize. Here’s a handy git command to make understanding git easier. git log --decorate --oneline --graph Figure 1: Git graph of this repository This can be made into a git command via an entry your ~/.gitconfig: [alias] graph = log --decorate --oneline --graph Code Snippet 1 : Alias "graph" defined in ~/.gi..
|
|
Emacs dired is a powerful directory browser/editor. By default, it shows lots of handy file and directory details. I typically prefer hiding file and directory details until I need them. The built-in dired-hide-details-mode makes this easy with the "(" key toggle. Coupled with Steve Purcell 's diredfl (for coloring), it strikes a great user experience. With a short snippet, you can also show/hide dired details in style: (u..
|
|
Maps are fun, self hosted maps are awesome ! Serving world maps was reserved to big companies like Google, thanks to the OpenStreetMap project, we now have access to an open world of data. Generating Tiles MapBox (and others) worked hard to create a vector format bundled in a SQLite file: mbtiles format. It’s vector based as opposed to older raster maps containing 256x256 PNG images. The Openmaptiles folks did a great job automating the map..
|
|
New scripts: xb.sql and xbi.sql - Explain Oracle Execution Plans Better! (Part 1)
-
tanelpoder.com
-
6 years ago
-
eng
Here’s a blog entry about some “new” Oracle execution plan displaying scripts that I’ve had since 2011 or so - I just tidied them up recently and added some improvements too. My aim in this blog post is not to go deep into SQL tuning topics, but just show what these scripts can do. The new scripts xb.sql and xbi.sql ( eXplain Better and eXplain Better, by sqlId ) are in my GitHub repo. Make sure you pull the latest changes as I uplo..
|
|
New scripts: xb.sql and xbi.sql - Explain Oracle Execution Plans Better! (Part 1)
-
tanelpoder.com
-
6 years ago
-
eng
Here’s a blog entry about some “new” Oracle execution plan displaying scripts that I’ve had since 2011 or so - I just tidied them up recently and added some improvements too. My aim in this blog post is not to go deep into SQL tuning topics, but just show what these scripts can do. The new scripts xb.sql and xbi.sql ( eXplain Better and eXplain Better, by sqlId ) are in my GitHub repo. Make sure you pull the latest changes as I uplo..
|
|
We at Canonical have been hard at work on the security features of version 2 of the Robot Operating System (ROS 2). However, if we lift our collective heads up out of the weeds it’s easy to see folks completely misunderstanding how security works today in ROS 2. We’ve written some design articles to help distill all the moving pieces into something comprehensible, but I wanted to do the same here in a slightly less formal way.
|
|
We still have features to cover from our summer vacation but we need to make a short de-tour through newer things that landed recently. One of the big highlights is the switch to WKWebView . We effectively changed the default iOS browser component to WKWebView instead of UIWebView. This resolved warnings Apple started sending out to developers about using the out of date UIWebView. This mostly went unnoticed by most developers as it shou..
|
|
I see U-Haul’s video on the importance of proper trailer loading resurface every once in a while, and most recently at Jalopnik . I do my best to avoid trailers . I don’t even like pulling them on paved roads, and off-road, they make all but the easiest tracks impossible. If you get stuck using one, though, at least know how to load it. Permalink.
|
|
Shifting compliance left: Helping legal teams and developers cooperate around licensing issues
-
snyk.io
-
6 years ago
-
eng
We are excited to share that we now support customized license instructions, helping the teams in your organization collaborate better together on licensing compliance: legal teams can better equip developers to shift compliance left by customizing license policies with clear instructions, and developers can then more easily integrate license analysis as part of their routine workflow.
|
In an effort to put my comic out for more to see I'm going to make it a habit of posting them here! ...
|
|
Integration Testing in Go: Part II - Set-up and Writing Tests
-
www.ardanlabs.com
-
6 years ago
-
eng
Prelude This post is the 2nd installment of a 2 part series about integration testing. You can read the first installment , which is about executing tests in a restricted environment using Docker. The example repository that this post draws it examples from can be found here . Introduction ”More than the act of testing, the act of designing tests is one of the best bug preventers known.” - Boris Beizer Before an integration t..
|
|
Ada Lovelace Day: Celebrating the game-changers of the UK tech scene
-
www.thoughtworks.com
-
6 years ago
-
eng
Every year, on the second code Tuesday of October, we celebrate Ada Lovelace Day - an important opportunity to appreciate the achievements of women in science, technology, engineering and maths (STEM). As an unapologetic feminist, I’ve never needed much of an excuse to celebrate amazing women who’ve been paving the way and shaping the world in which we live. However, over the years, I’ve become disheartened by the predictability of such occ..
|
|
HLS Stream Creator is a script which acts as a wrapper to FFMPEG in order to simplify remuxing video into HTTP Live Streaming (HLS) format. Originally written as research into HLS for a job interview, I've continued to develop it and since used it for a range of projects, including creating a raspberry-pi based transcoding cluster .
|
|
Do you think there are any declarative programming languages at the moment that are developed enough to be useful? Declarative programming is a really fascinating subject, I just wish there was more research/development there. Prolog has been the number one in the field forever, but things like Sentient Lang and Mercury are able to do similar things while being a much newer and more featureful language. That being said, with a proper de..
|
|
So I recently learned about cargo doc --open while attending the Colorado Gold Rust conference. However, on my linux mint machine it opened the docs in chrome instead of my default web browser which is firefox. Since I spent most of my morning rust coding time tracking down why that was and how to fix it, I figured I write a blog post about it. So here goes: By looking at the cargo source, I was able to see that a separate crate named o....
|
|
So I recently learned about cargo doc --open while attending the Colorado Gold Rust conference. However, on my linux mint machine it opened the docs in chrome instead of my default web browser which is firefox. Since I spent most of my morning rust coding time tracking down why that was and how to fix it, I figured I write a blog post about it. So here goes: By looking at the cargo source, I was able to see that a separate crate named o....
|
|
Lets say you encounter a bug in the software you work on. Maybe a user informs you of the bug, or you find it yourself. Let's say this bug has been in your software for a little while, and is not a bug you just added in the last hour or so. This implies that your unit tests did not catch the bug. Here's the process I recommend for fixing the bug: 1) Work out what the problem is. 2) Work out the solution, edit your source files unti....
|
|
Despite the more colloquial meaning that most are more familiar with, nonce is an important definition within computing, and particularly crypto Literally N-once, a nonce is an arbitrary number intended to be used just once during a communication - it's often used as a sort of salt to ensure that replay attacks cannot simply use old communications, as well as for IVs etc when encryption This short snippet will generate a nonce in both P..
|
|
Despite the more colloquial meaning that most are more familiar with, nonce is an important definition within computing, and particularly crypto Literally N-once, a nonce is an arbitrary number intended to be used just once during a communication - it's often used as a sort of salt to ensure that replay attacks cannot simply use old communications, as well as for IVs etc when encryption This short snippet will generate a nonce in both P..
|
|
Various services require a token to be submitted using a HMAC. Although SHA1-HMAC is common, other hashing algorithms are sometimes required. This Python 3 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 Python 3 snippet allows you to specify the hashing algorithm to use Read more…
|
|
Nenechajte sa mianipulovať cielenou propagandou, ktorá má chrániť nikoho iného než systém, ktorý má prínos z agresívneho očkovania nepotrebnými vakcínami. Iniciativa pre uvedomenie si rizik ockovania vydala tlacovu spravu ohladom pripadu tetanu u 3-rocneho chlapca na Juznej Morave. Kampaň za pravdu v medicíne chce poukázať na to, ako sofistikovane sa s prípadom manipuluje a ako […]
|
|
I have talked before about some of the aliases I use in my development environment , and how these and other little tricks make my life just a bit easier. Victor Zhou wrote a neat post about his aliases, and about while they don’t save him much time in the end, they make his life a little easier, too. Permalink.
|
|
Voting is a uniquely difficult problem with seemingly contradictory requirements. On one hand, in order to prevent coercion and vote-buying…
|
|
Some kids are into dinosaurs. Others, trains. Some kids even like trucks. But my son? He likes books.
|
|
I like these drawers from Land Shark Outfitters. With big names in the space pricing their systems at well over $1,000, I love the idea of a polished product at half the price. My sleeping platform came out to about $600, with two sets of $215 36“ lock open/close slides and a $145 pair of 28” base mount slides . Having gone through that build process, though, and after seeing this system from Land Shark Outfitters, I think I could cu..
|
|
We open-sourced a Python library for HLLs compatible with postgresql-hll. 5 minute read What is python-hll? We recently open-sourced python-hll , which is an implementation of HyperLogLog whose goal is to be storage compatible with java-hll , js-hll , and postgresql-hll . At NextRoll, we use these libraries to do fast counting of unique values in PostgreSQL and Java, but we were dismayed that there was no Python library for ....
|
|
Logo ©Nikhil( unsungNovelty ). Logo was envisioned and conceptualised by me and brought to life by Ark Arjun ! And I agree now, the negative space “N” looks cool indeed! Thanks da! \o/ Contents / arts unless specified ©Nikhil( unsungNovelty ) NOTE: If you have any questions regarding the license or anything related to how to use any of the contents, drop an email at “nikhil at unsungnovelty dot org” Theme ©Nikhil( unsungNovelt....
|