BetterDev #197 - Postgres error: invalid byte sequence for encoding
Better Dev #197 Apr 26, 2021
Hi all, Hope everyone has a great week ahead. Enjoy this week issue with articles cover a wide ranges of knowledge: from hardware to network to SRE and algorithm. Thank you to the readers who have bought me a coffee, really appreciate that ❤.️
One common problem that a lot of people seem to have is when they encounter error message like this:
psql:test.sql:1: ERROR: invalid byte sequence for encoding "UTF8": 0xb3
Why it happens? What can be done about it? Let’s see.
USB-C promises to use one port for everything. USB-C converters to DisplayPort or HDMI are common and inexpensive. USB-C hubs with external monitor support are also common, but understanding their capabilities and limitations can be extremely confusing. Some are Mac-compatible and some aren’t. Some need driver software
One frustrating thing that can happen to your database has nothing to do with performance and queries. Rather, it’s running out of disk space to store data. Today we’ll drill into some good practices you can put in place to help prevent such from happening. And if it does, show how to get you out of a bind as quickly as possible.
If a substring would be compared in reverse order, things may be different. For example, we search for a ‘CAT’ substring in ‘HORSE TURTLE CAT’ string. With naive algorithm, we will first compare ‘H’ and ‘C’, we see they are unequal characters and we will advance substring one character ahead. But if we start at the end of sub string CAT
we can jump back 3 character at a time.
Learn the history and evolution of same-origin policy and CORS, understand CORS and the different types of cross-origin access in depth, and learn (some) best practices.
Given their large scale operation, if any bug in network that arise, ebay sure experienced it. So Charles ended up with many Sherlock Holmes stories to tell. And this post is a troubleshooting case of mysterious traffic imbalance.
A private IP address is an IP address that’s reserved for internal use behind a router. They cannot be routed on the internet, only in LAN. 10.0.0/8 is private address spaces and we can guess the reason to choose it, easy to type and remember. But what’s about 192.168⁄16?
In this article I’m trying to explain the difference/similarities between dynamic programing and divide and conquer approaches based on two examples: binary search and minimum edit distance (Levenshtein distance).
This is a page for amateur compiler writers. Anything that I did not find practical is not listed here. (I also did not include the things that I do not yet know!)
A single tweet decribe a very creative method to check anagrams.
Code to read
a Golang library for spawning and managing a goroutine pool, allowing you to limit work coming from any number of goroutines with a synchronous API.
GoAll Algorithms implemented in Python. I’m sure you will find some gem in here for your favourite algorithm.
PythonLike tmux but written in Rust. Rust is started to being used in many low level CLI stuff. It has layout system and a plugin system that leverage WebAssembly. The plugin has hook in load update, render state to allow you control how to render certain thing. Such as writing a status bar.
RustTools
A tool for cleaning up your cloud accounts by nuking (deleting) all resources within it. Grunkworks reduce 85% AWS bill with it.
Open source self-hosted web archiving. Takes URLs/browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more…
high-fidelity infrastructure monitoring and troubleshooting. Open-source, free, preconfigured, opinionated, and always real-time.
an open-source abstraction layer library that turns easy apps deployment on AWS, GCP, Azure, and other Cloud providers in just a few minutes.
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? Unsubscribe
Older messages
BetterDev #196 - Allow arbitrary URLs, expect arbitrary code execution and curl those funny ipv4 addresses
Tuesday, April 20, 2021
Better Dev #196 Apr 19, 2021 Hi all, This week is an issue of network knowledge, tips and tricks. The fundamental of how computers can talk to each others :-). If you enjoy this newsletter, make a
BetterDev #194 - This man thought opening a txt file is fine, he thought wrong. macos cve-2019-8761
Monday, April 5, 2021
Better Dev #194 Apr 05, 2021 Hi all, This week, We had some interesting low level links about font rendering, IP parse, and a few tools which I'm sure will make you engineer life easier, checkout
BetterDev #191 - A developers guide to HIPAA compliance and application development
Monday, March 15, 2021
Better Dev #191 Mar 15, 2021 Hi all, This week, We had some interesting tools which I'm sure will make you engineer life easier, checkout tools section. If you enjoy this newsletter, make a small
BetterDev #190 - Common Nginx misconfigurations that leave your web server open to attack
Monday, March 1, 2021
Better Dev #190 Mar 01, 2021 Hi all, I hope you enjoy this week's newsletter. We had some interesting links to help secure Nginx and practice breaking and fixing K8S. If you enjoy this newsletter,
BetterDev #189 - How Buffer Pool Works and Reconnecting your application after a Postgres failover
Monday, February 22, 2021
Better Dev #189 Feb 22, 2021 How Buffer Pool Works: An Implementation In Go a database need to read and write data from disk in an efficient manner. And the answer to that is: buffer pool. In this post
You Might Also Like
Get Compliant in 2024 - Download Ultimate PAM Policy Template Today
Wednesday, May 1, 2024
Privileged Access Management Policy Template What are your PAM policies for 2024? Get ready for the New Year Is your approach to Privileged Access Management as current and effective as it could be? In
What's new in Autodesk Inventor 2025?
Wednesday, May 1, 2024
Post from Syncfusion Blogs on 05/01/2024
Wednesday, May 1, 2024
New blogs from Syncfusion Chart of the Week: Creating a WPF 100% Stacked Area Chart to Visualize the World Vehicle Production in Major Countries By Karthikeyan V Let's visualize the world vehicle
New U.K. Law Bans Default Passwords on Smart Devices Starting April 2024
Wednesday, May 1, 2024
THN Daily Updates Newsletter cover Webinar -- Uncovering Contemporary DDoS Attack Tactics -- and How to Fight Back Stop DDoS Attacks Before They Stop Your Business... and Make You Headline News.
Our verdict on Beats' $200 Solo 4 headphones
Wednesday, May 1, 2024
The Morning After It's Wednesday, May 01, 2024. Beats today announced the Solo 4, a $200 set of familiar-looking cans with significant upgrades inside, even if they look almost entirely the same as
Power BI Weekly #256 - 1st May 2024
Wednesday, May 1, 2024
Power BI Weekly Newsletter Issue #256 powered by endjin Welcome to the 256th edition of Power BI Weekly! No announcements this week, so we'll jump straight into the highlighted articles. Firstly,
Apple AI browser 🌎, Tesla fires Supercharger team ⚡, new sudo replacement 👨💻
Wednesday, May 1, 2024
Apple is testing a version of its Safari web browser that includes an AI-powered tool called Intelligent Search Sign Up |Advertise|View Online TLDR Together With Modern Treasury TLDR 2024-05-01 The
JSter #218 - Libraries and more
Wednesday, May 1, 2024
All JavaScript is good JavaScript. I'm close to done with my SurviveJS rework. The new site will have more content while being much lighter and faster to compile so that's all good. Libraries
BetterDev #258 - Build an 8-bit computer from scratch and Home automation with ESP8266
Wednesday, May 1, 2024
Better Dev #258 Apr 30, 2024 Hi all, We come back with a new issue this week. If you like BetterDev, please help spead word out by refer to your friends. Buy me a coffee would be great too. Build an 8-
Interface Interference 👎
Wednesday, May 1, 2024
Amid the AI device dunking, should everything “just be an app”? Here's a version for your browser. Hunting for the end of the long tail • April 30, 2024 Interface Interference The problem