BetterDev #205 - A from-scratch tour of Bitcoin in Python and Logging Tips for Postgres, Featuring Your Slow Queries
Better Dev #205 Jun 28, 2021
Hi all, Crypto is going chao last few weeks but when looking at it purely from an engineering purspective, it’s quite interesting system. Have fun enterainment with these links. Happy monday.
Usually when programming we call a public api on an object and the real works are being done. We don’t know exactly what happen under the hood. Imagine you read a file, you call fopen
or fseek
but that’s that. Who move the hard drive tip? who fetch the data from hard drive and put it to memory so your program can access it? The way to know that is working directly with the protocol instead of relying on the SDK. Today, we do the same with Bitcoin. It’s written by Tesla AutoPilit director
At some point in your career, you have to deal with slow queries and would wish a way to print out those queries so you can identify a pattern.
After an almost stellar 2 year uptime, on 22nd of June, bunny.net experienced a 2+ hour near system-wide outage caused by DNS failure. In a blink of an eye, we lost over 60% of traffic, and wiped out hundreds of Gbits of throughput. Despite all of these systems being in place, a very simple update brought it all crumbling down, affecting over 750.000 websites.
in 2010 the iPhone 4 came out, and the screen was 640×960, whereas the similar-sized iPhone 3 was 320×480. The resolution doubled, while the screen size was roughly the same, so in effect the screen density doubled. Apple couldn’t just run the same apps but at a higher resolution, because things like text and buttons would be tiny, so they doubled the size of everything. 1 pixel became 2 ‘device pixels’. On the web we call this the ‘device pixel ratio’, or DPR. The iPhone 4 had a DPR of 2. This is sometimes referred to as having a 2x screen, or 2dppx. So you see the mess?
How do you sort this ‘Bären’, ‘Käfer’, ‘küssen’, ‘Ähnlich’, ‘Äpfel’ with built-in sorting in your language? In JavaScript B will be the first where as Ähnlich is the right one
Simply change the user-agent of device just trick simple system. But it isn’t simple like that because a device also share many information such as screensize. And these parameters can be used to figured out the real device model.
WallStreetBets and the Gamestop incident causes spike in Reddit traffic and cause internal dependency failure cascaded as the core systems started degrading due to the database performance issues.
Despite Rails in its title, it can apply to any software stack. Check out the previous injection attack too
Despite Django in its title, you can just ignore and read all of the title, they will apply to your own SaaS or startup app.
Probably not need in our daily life but it’s great to know the language and toolchain available. Plus, I imagine it’s quite fun to write a parser to parse a language
Code to read
The smallest CommonMark compliant markdown parser with positional info and concrete tokens.
JavaScripta feature rich logging framework, and replacement for existing Ruby & Rails loggers.
is a campaign mailer for Rails. If you run a SaaS, it can be useful to schedule timing campaign for users. Stuff like send first email after signup. second emails after 2 days etc
RailsDozens of minimal operating systems to learn x86 system programming. Tested on Ubuntu 17.10 host in QEMU 2.10 and real hardware
multi-langTools
Hide your scrapers IP behind the cloud. Provision proxy servers across different cloud providers to improve your scraping success.
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 #204 - What Every Programmer Should Know About SSDs and Is an event loop just a for/while loop with optimized polling
Monday, June 21, 2021
Better Dev #204 Jun 21, 2021 Hi all, Last week I was busy working on an IMAP implementation for my email forwarding app and also have some consultant work so the issue was put aside. This week we'
BetterDev #203 - The repeated deahths of Object Oriented Programming and How a Jenkins Job Broke Slack's Jenkins UI
Monday, June 7, 2021
Better Dev #203 Jun 07, 2021 Hi all, Every companies has to have a CI/CD and also have to organize code. This week I got links on that topic. Jenkins, code organization and a few WebAssembly/CSS links.
BetterDev #202 - Let's build a Regex Engine and File Permissions: the painful side of Docker
Monday, May 31, 2021
Better Dev #202 May 31, 2021 Hi all, Happy holiday for US reader. We have quite a few interesting tool of this week. Check them out. For video, let's sit down and listen to Louis Pilfold, creator
BetterDev #201 - MVCC in PostgreSQL - Rows Versions and Teardown of a PC power supply
Monday, May 24, 2021
Better Dev #201 May 24, 2021 Hi all, This week, my email forwarding app reached a certain scale and I had to dive into Postgres performance to reduced our disk usage and improved performance. I did
BetterDev #200 - Don’t push that button: Exploring the software that flies SpaceX rockets and Starships
Monday, May 17, 2021
Better Dev #200 May 17, 2021 Hi all, Hope everyone has a great week ahead. For any readers who are in Gaza, stay safe, I hope everything will be fine. This week, we have many article that focus on high
You Might Also Like
The Long Road Home: A Story of Loss, Learning, and Renaissance - PART 4
Wednesday, November 27, 2024
Top Tech Content sent at Noon! How the world collects web data Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, November 27, 2024? The HackerNoon
Top Tech Deals 🏷️ PS5 Slim, 4K TVs, 10th Gen iPad, and More!
Wednesday, November 27, 2024
The Black Friday madness is here! How-To Geek Logo November 27, 2024 Top Tech Deals: PS5 Slim, 4K TVs, 10th Gen iPad, and More! The Black Friday madness is here! Black Friday sales are here, and we
The 165+ best Black Friday deals
Wednesday, November 27, 2024
Windows Super God Mode; Bluesky starter packs; Tech gifts under $100 -- ZDNET ZDNET Tech Today - US November 27, 2024 Black Friday 2024 live blog Best Black Friday deals 2024: 165+ sales live now
⚙️ Neuralink's new trial
Wednesday, November 27, 2024
Plus: Zoom is becoming an AI-first company
Matrix Botnet Exploits IoT Devices in Widespread DDoS Botnet Campaign
Wednesday, November 27, 2024
THN Daily Updates Newsletter cover The AI Value Playbook ($35.99) FREE for a Limited Time Business leaders are challenged by the speed of AI innovation and how to navigate disruption and uncertainty.
The Sequence Chat: Why are Foundation Models so Hard to Explain and What are we Doing About it?
Wednesday, November 27, 2024
Addressing some of the interpretability challenges of foundation models and the emerging fields of mechanistic interpretability and behavioral probing. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Overcoming Perfectionism: How to Break Free from the Enemy of Progress
Wednesday, November 27, 2024
Discover how perfectionism hinders progress and learn practical strategies to overcome the fear of imperfection, boost productivity, and achieve your goals without getting stuck in the pursuit of
🖤 Laravel Black Friday Deals!
Wednesday, November 27, 2024
The biggest deals of the year Laravel Black Friday Deals View in browser Laravel News Editor Note: We are sending this outside the regular Sunday newsletter schedule because some of these specials end
BetterDev #271 - Memory: The Forgotten History and Why did Windows 95 setup use three operating systems?
Wednesday, November 27, 2024
Better Dev #271 Nov 26, 2024 Hi all, Welcome to thanksgiving issue of BetterDev. Hope everyone had a safe and warm thanksgiving. It's getting so cold these days. If you are in warzone such as
Mapped | Unemployment Rate By U.S. State in 2024 💼
Tuesday, November 26, 2024
As of October 2024, DC and Nevada tied for the highest unemployment rate in the US at 5.7%. Which states saw the lowest rates? View Online | Subscribe | Download Our App FINAL CHANCE - ENDS TONIGHT!