|
Rewrite all target _blank links to use rel noopener (Javascript)
-
snippets.bentasker.co.uk
-
4 years ago
-
eng
It's fairly common for sites to include in external link anchors, to indicate that the link should open in a new window/tab. However, this practice is actually quite dangerous - the new site/window is able to access the original tab using Javascript (specifically window.opener, leading to techniques such as tabnapping. This can be prevented by including rel=noopener in link anchors. I wrote this function some time ago to detect externa..
|
|
This snippet implements the equivalent of jQuery's $(document).ready() but without the overhead of that library. It'll trigger the provided callback function when the DOM has loaded (or, immediately if it already has) Read more…
|
|
I’m continuing to dive deep on modern typescript/node development. I fixed a bug in a new tool I am using ( projen ) and learned a ton along the way. This post is to share some of that.
|
|
I’m continuing to dive deep on modern typescript/node development. I fixed a bug in a new tool I am using ( projen ) and learned a ton along the way. This post is to share some of that.
|
|
I’m continuing to dive deep on modern typescript/node development. I fixed a bug in a new tool I am using ( projen ) and learned a ton along the way. This post is to share some of that.
|
|
Flea Markets = Source of Treasures # A few weeks ago, at the local flea market, I was very lucky to find a copy of The Rites of Passage by Arnold Van Gennep. It is an Italian edition from 1960s and it belonged to the library of a nearby village. It shows the signs of time, but for the price (about 1€) I couldn’t really complain! I immediately started studying it and I was glad to find, since the first pages, references to The Golden B....
|
|
Flea Markets = Source of Treasures # A few weeks ago, at the local flea market, I was very lucky to find a copy of The Rites of Passage by Arnold Van Gennep. It is an Italian edition from 1960s and it belonged to the library of a nearby village. It shows the signs of time, but for the price (about 1€) I couldn’t really complain! I immediately started studying it and I was glad to find, since the first pages, references to The Golden B....
|
|
Life’s a Party: Analyzing Party Compositions for Combat – Encounters in Dungeons & Dragons Fifth Edition through Monte Carlo Methods
-
elegantcode.com
-
4 years ago
-
eng
My son, Mason Starr, is a grad student at Georgia Tech in astrophysics or something […] The post Life’s a Party: Analyzing Party Compositions for Combat – Encounters in Dungeons & Dragons Fifth Edition through Monte Carlo Methods appeared first on Elegant Code .
|
|
Guidance for Scaling - Reversible vs. Irreversible Decisions
-
www.craigkerstiens.com
-
4 years ago
-
eng
Was having a conversation with a founder earlier today and the topic of hiring functional leaders came up. I offered one of my common pieces of advice which was don’t hold the reins too tightly once you hire them. It’s something I see happen over and over to first time founders. You hire a new VP of Product and then still continue to oversee so much of the product process yourself. It is understandable, it’s your baby, you’ve spent years bu....
|
|
Guidance for Scaling - Reversible vs. Irreversible Decisions
-
www.craigkerstiens.com
-
4 years ago
-
eng
Was having a conversation with a founder earlier today and the topic of hiring functional leaders came up. I offered one of my common pieces of advice which was don’t hold the reins too tightly once you hire them. It’s something I see happen over and over to first time founders. You hire a new VP of Product and then still continue to oversee so much of the product process yourself. It is understandable, it’s your baby, you’ve spent years bu....
|
|
My buddy and I bought some lands (20ha/50acres) in the Quebec province. Creating a new problem It all started because as a new “forest owner”, I wanted to do a tree survey. There are some good mobile apps to recognize flowers and trees but nothing professionally graded I knew (except paying for human expert). I also needed a solution that would work offline since the mobile network coverage is not good on the field.
|
|
This year, despite generally taking precautions and having two shots of Moderna, Christmas found me in quarantine in my home office, hiding away from my family. As far as Christmas traditions go, “physical isolation” has to be one of the more unusual ways to celebrate a holiday whose traditions frequently involve getting together in larger groups. It was Christmas day and I was alone, but it didn't really feel that way: my wife, daughter, a..
|
|
This is one of those books that changes your theory of being. I cannot recommend this enough, this book should be on everyone’s…
|
|
At Vedic Astrology Centre , India’s Best Astrologer Pandit Neeraj Sharma with his penance of more than 13 Years in Astro-Vedic Science has a huge experience in resolving any life’s worries and providing the best and satisfactory measures with the help of Astro Science that leads to a peaceful life. Call us at: 9592227095
|
|
I’ve already posted about gomobile on this blog: “Using gomobile for real”. For a lot of people it seems crazy to run Go on iOS and Android for some others it’s just routine, Zenly & Tailscale to name a few. Since I’m reviving the idea for a geo database on iPhone here are some details. I’ve started to port spatialite with the required dependencies to realize most of them were LGPL and incompatible with iOS distribution, so I went back to a..
|
|
Checking Terraform IaC security in CI/CD with Regula and Bitbucket Pipelines [Tutorial]
-
snyk.io
-
4 years ago
-
eng
Regula enables teams to evaluate Terraform for security and compliance violations in CI/CD prior to deployment.
|
|
New Log4j 2.17.1 fixes CVE-2021-44832 remote code execution (but it’s not as bad as it sounds)
-
snyk.io
-
4 years ago
-
eng
This new CVE-2021-44832 security vulnerability is affecting versions up to 2.17.0, which was previously thought to be fixed. This vulnerability is similar in nature to CVE-2021-4104 which affected the 1.x branch of Log4j.
|
|
With the advent of the new technology of WebAssembly, it is possible to leverage other languages than JavaScript in the browser. Go is one popular language that you can call from your JavaScript web application. This article shows how to do that with TinyGo.
|
L'Advent of Code 2021, le concept est simple. Chaque jour du calendrier de l'avent vous devez résoudre un exercice de programmation (dit des puzzles) qui comporte deux niveaux de difficulté. Tout ceci est mis en contexte puisque vous aidez les lutins du père Noël (ici des elfes, mais on France on parle de lutin !) à récupérer les clés du traîneau ... Oui le traîneau du père Noël a des clés, et un lutin les a fait tomber dans l'océan. Ne vou..
|
|
Tor2Web (and Web2Tor) are reverse proxies giving access to Tor Onion Services (previously known as Hidden Services) via the public internet. The problem with this, is that they act as a trusted middleman, often putting unwitting user's privacy and security at risk . Some Tor2Web operators do the right thing and include a request header to tell the Onion service that the request is from a Tor2web node. Those that do can be detected and b..
|
|
An overview of many months of churning the entity activity system to use Rust's async/await support, for a much nicer design.
|
|
An overview of many months of churning the entity activity system to use Rust's async/await support, for a much nicer design.
|
|
I found a Consider the Lobster review on Goodreads that almost precisely matches my thoughts on DFW and the book. Hence, given the lazy Christmas-break mood I am in right now, I am conceding myself the right to copy-paste and edit David’s review right away. I know of nobody else who writes as thoughtfully and intelligently as DFW. That he manages to write so informatively, with humor and genuine wit, on almost any subject under the sun..
|
|
There are multiple ways to compute the “average” value of an array of numbers. One of such ways is the geometric mean . For a sample $x = \{ x_1, x_2, \ldots, x_n \}$, the geometric means is defined as follows: $$ \operatorname{GM}(x) = \sqrt[n]{x_1 x_2 \ldots x_n} $$ This approach is widely recommended for some specific tasks. Let’s say we want to compare the performance of two machines $M_x$ and $M_y$. In order to do this, we design a s....
|
|
There are multiple ways to compute the “average” value of an array of numbers. One of such ways is the geometric mean . For a sample $x = \{ x_1, x_2, \ldots, x_n \}$, the geometric means is defined as follows: $$ \operatorname{GM}(x) = \sqrt[n]{x_1 x_2 \ldots x_n} $$ This approach is widely recommended for some specific tasks. Let’s say we want to compare the performance of two machines $M_x$ and $M_y$. In order to do this, we design a s....
|
|
Writing a minimal Lua implementation with a virtual machine from scratch in Rust
-
notes.eatonphil.com
-
4 years ago
-
eng
By the end of this guide we'll have a minimal, working implementation of a small part of Lua from scratch. It will be able to run the following program (among others): function fib ( n ) if n < 2 then return n ; end local n1 = fib ( n - 1 ); local n2 = fib ( n - 2 ); return n1 + n2 ; end print ( fib ( 30 )); This is my second project in Rust and only the third ....
|
|
When The Digital Antiquarian released his System Shock retrospective earlier this year, I was in awe. System Shock was one of my favorite games back in the day, and yes, in the quarrel between id Software’s DOOM and Looking Glass’s System Shock, I was siding with the latter. I was so much more for immersion and storyline than shoot ’em-ups. The Antiquarian article is excellent. If you’re into gaming history or, really, into computer’s his..
|
|
Almost 20 years after the release of the 3rd Matrix (Revolutions). We get a new entry in the world known as Resurrections.
|
|
I’m not a regular philosophy reader, much less of self-improvement guides. I’m wary of the latter and too ignorant for the former. Yet, theologian Vito Mancuso has intrigued me for some time. I followed his podcast on the “Four Masters of Life” 1 and found it excellent. In it, Mancuso discusses his four tutelary deities: “Socrates, the educator. Buddha, the physician. Confucius, the politician. Jesus, the prophet.” I also listened to som..
|
|
Tornadoes are big and scary; and they’re beyond the control of ordinary civilians, so it’s the perfect scenario for helpful government intervention. It’s existential threats like these that remind us why we need governments; but perhaps too it serves as a prompt to consider if we could replace governments with something else.
|