BetterDev #155 - Papers with code and Preparing Applications for IPv6
Better Dev #155 Jun 8, 2020
This week, I want to share a quick shell trick to check if a port open or not without using any external tool like telnet
or nc
.
And it’s a one liner: echo > /dev/tcp/host/port
. Example: echo > /dev/tcp/127.0.0.1/1605/
. If the port is open, no outout, otherwise it will say:
-bash: connect: Connection refused
-bash: /dev/tcp/127.0.0.1/1605: Connection refused
It only works on Linux though, so if you are on Mac, don’t bother to try it.
Have ever feel frustrated reading a whitepaper without code? So either you have to re-implement to verify or use the research theory? This site is a directory of paper with its code, as in they have a github repository.
A software developers guide to writing and migrating networked applications for use on ipv6 networks. Discuss strategies for apps supporting both ipv4 and ipv6 during the transition. Not just in term of network, it also discussed how to store ipv6 into database effectively. How to deal with ipv6 in your programing language etc. So a great guide both in term of networking and programming.
Is writing to a file from multiple processes safe? As in they won’t corrupted the file or overwride each other? and will all get append properly.
Jepsen is a framework to test distrubuted system. It uncovered many bugs in system like MongoDB, Riak, Redis, ElasticSearch. But what do you do if you are a developer and your app failed at Jepsen test. This is a journey of a dgraph developer try to fix one of the most complicated Jepsen test using distributed tracing. The test is so hard that you cannot just think of theory to quickly try fixing out blindly.
Recently Apple has a Zero-Day in thir Sign In with Apple system, which allow a way to login as anybody. The core issue is not validating user input data. If a single thing you can learn from this article is this: always validate user input data, especially in a multi steps flow, validate at every steps.
All code examples are JavaScript/Node but generally all good rule: never use GET to modify state, csrf token, check origin header, Use SameSite cookies, write nagtive test cases.
There are many ways of addressing performance bottlenecks, but for the sake of discussion here are several ways we can look at this issue: Tuning Performance Parameters, Session Connections, Bloat, Autovacuum, Data Hotspots, Competing Application Processes
A series about Postgres locks. This part is about dead lock, object-level locks and predicate locks.
Awk crunches massive data; a High Performance Computing (HPC) script calls hundreds of Awk concurrently. Fast and scalable in-memory solution on a fat machine.
Leverage ffmpeg. ffmpeg is awesome but it’s huge so knowing how to put thing together is a nice first step to get into video programming.
The code example is in Go but it introduce you to structure of JVM and how much you can achieve with a short amount of code. Also a good chance to understand some aspect of JVM, regardless you like Java or not, I think this is a great artcile and will level up your knowledge.
Code to read
Ever wonder how to generate YouTube-like ids from numbers? Here you go, in 400 lines of TypeScript
TypeScriptTools
Self-hosted, Node.js based analytics tool for those who care about privacy. Ackee runs on your own server, analyses the traffic of your websites and provides useful statistics in a minimal interface
Explore your data with SQL. Easily create charts and dashboards, and share them with your team
a distributed event bus broker that implements a RESTful API abstraction on top of Kafka-like queues, which can be used to send, receive, and analyze streaming data in real time, in a reliable and highly available manner.
You can view this issue in web browser.
If you have any suggestion/feedback, do tell me by replying to this email. I read them all.
No longer want to receive these emails?
Older messages
BetterDev #154 - Everything you should know about certificates and PKI but are too afraid to ask
Monday, June 1, 2020
Better Dev #154 Jun 1, 2020 Hi everyone, Welcome to issue #154. Let's get straight to our link this week Everything you should know about certificates and PKI but are too afraid to ask X.509, ASN.1
BetterDev #153 - Ray Tracing In Notepad.exe At 30 FPS
Monday, May 25, 2020
Better Dev #153 May 25, 2020 Hi everyone, Welcome to issue #153. This week, I found a free course on Network Security, on OpenLearn. It's a short course and part 5) Implementing encryption in
BetterDev #151 - OWASP Web Security Testing Guide v4.1
Monday, May 11, 2020
Better Dev #151 May 11, 2020 Hi everyone, Welcome to issue #151. This week sponsor is programmingdigest.net, they are a weekly newsletter just like BetterDev but emphasizing on delivering five links
BetterDev #150 - The Best Medium-Hard Data Analyst SQL Interview Questions
Monday, May 4, 2020
Better Dev #150 May 04, 2020 Hi everyone, Welcome to issue #150. We continue to our pandemic with this novel virus global wide. I hope we all stay healthy, positive and safe. This week sponsor is
BetterDev #149 - What if Two Processes Write to the Same File simultaneously
Monday, April 27, 2020
Better Dev #149 Apr 27, 2020 Hi everyone, Welcome to issue #149. Given the current economy, many companies are looking to reduce infrastructure cost, many migrations need to be done. In this issue, I
You Might Also Like
Going supersonic
Tuesday, April 30, 2024
Plus Go remains popular in pull requests, a CP/M emulator, and, sure, Go isn't Java. | #505 — April 30, 2024 Unsub | Web Version ✍️ It's been a quiet week for big Go related news, but we still
Make Windows 11 less annoying in 7 steps
Tuesday, April 30, 2024
Beats Solo 4; OneDrive's new Offline mode; Pixel Fold 2 dreams; Must-have running tech -- ZDNET ZDNET Tech Today - US April 30, 2024 placeholder 7 ways to make Windows 11 less annoying I told you
React Native Newsletter #181
Tuesday, April 30, 2024
This week's issue features This week's issue features articles about the release of RN 0.74 and React 19 Beta Issue 181 • Open in browser React Native Newsletter This issue: Release of RN 0.74
An inside look at Techstars’ horrible year
Tuesday, April 30, 2024
TechCrunch spoke with over 30 people to find out just what happened at Techstars last year View this email online in your browser By Alex Wilhelm Tuesday, April 30, 2024 Welcome to TechCrunch AM! This
LW 131 - Test And Debug Shopify Functions
Tuesday, April 30, 2024
Test And Debug Shopify Functions Shopify Development news and articles Issue 131 - 04/30/2024 Read Online Liquid Weekly All Things Shopify Development Test And Debug Shopify Functions In this video we
Node.js 22; Bun 1.1.5; JSR is not a package manager
Tuesday, April 30, 2024
We have 5 links for you - Stay up-to-date on JavaScript and tools Node.js 22: require() ESM modules, --run package scripts, --watch files, fs.glob() and more nodejs.org @nodejs@social.lfx.dev
Meta is offering popular Threads users thousands of dollars in bonuses
Tuesday, April 30, 2024
The Morning After It's Tuesday, April 30, 2024. Meta is offering some creators thousands of dollars if they go viral on Threads. The payouts are part of a new invitation-only bonus program that
New U.K. Law Bans Default Passwords on Smart Devices Starting April 2024
Tuesday, April 30, 2024
THN Daily Updates Newsletter cover Coding with AI For Dummies ($18.00 Value) FREE for a Limited Time Boost your coding output and accuracy with artificial intelligence tools Download Now Sponsored
Post from Syncfusion Blogs on 04/30/2024
Tuesday, April 30, 2024
New blogs from Syncfusion Start Using the npm Query Today: Powerful Commands for Every Developer By Osusara Kammalawatta Explore npm query commands for efficient dependency management in Node.js.
Edge 391: Autonomous Agents and LLM Function Calling
Tuesday, April 30, 2024
LLMs that invoke external functions, UC Berkeley's LLM Compiler and the Phidata framework. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏