|
I’ve been programming TypeScript professionally for the last two years. Even with that much TypeScript experience it’s always useful to have a beginner’s mindset.
|
|
In my book, A Programmer’s Introduction to Mathematics, I describe the Taylor Series as a “hammer for every nail.” I learned about another nail in the design of modern smartphone accelerometers from “Eight Amazing Engineering Stories” by Hammack, Ryan, and Ziech, which I’ll share here. These accelerometers are designed using a system involving three plates, which correspond to two capacitors. A quick recap on my (limited) understanding of h..
|
|
In my book, A Programmer’s Introduction to Mathematics, I describe the Taylor Series as a “hammer for every nail.” I learned about another nail in the design of modern smartphone accelerometers from “Eight Amazing Engineering Stories” by Hammack, Ryan, and Ziech, which I’ll share here. These accelerometers are designed using a system involving three plates, which correspond to two capacitors. A quick recap on my (limited) understanding of h..
|
|
In my book, A Programmer’s Introduction to Mathematics, I describe the Taylor Series as a “hammer for every nail.” I learned about another nail in the design of modern smartphone accelerometers from “Eight Amazing Engineering Stories” by Hammack, Ryan, and Ziech, which I’ll share here. These accelerometers are designed using a system involving three plates, which correspond to two capacitors. A quick recap on my (limited) understanding of h..
|
|
Coding with Python Dictionaries the Ruby Way With Respect to Missing Keys
-
fuzzyblog.io
-
5 years ago
-
eng
I recently had an interesting experience with Python dictionaries that made question one of Python's foundational principles i.e. TOOWTDI: There should be one– and preferably only one –obvious way to do it. Although that way may not be obvious at first unless you're Dutch. More… The application was a large scale JSON processor and, in Python, JSONs are mapped to Python dictionaries which correspond to Ruby hashes. The issue is ....
|
|
Somehow I got curious: what would be the smallest bitmap font that would still be readable? why 2x3 grid There are plenty of existing retro 8x16 bitmap fonts, like the ones used in VGA graphics and text-mode consoles. We should probably be able to go much smaller than that. We only need to encode 26 different symbols. If our encoding is perfect - we need roughly 5 bits of information, or 5 pixels, each being either black or white.
|
|
Somehow I got curious: what would be the smallest bitmap font that would still be readable? why 2x3 grid There are plenty of existing retro 8x16 bitmap fonts, like the ones used in VGA graphics and text-mode consoles. We should probably be able to go much smaller than that. We only need to encode 26 different symbols. If our encoding is perfect - we need roughly 5 bits of information, or 5 pixels, each being either black or white.
|
|
Stupid Docker Tricks - Validating Outbound Connectivity from an Image
-
fuzzyblog.io
-
5 years ago
-
eng
I recently had the odd situation where it seemed like I had outbound Internet connectivity issues under Ruby powered by Docker but not with Python powered by Docker. Here's how I disproved this: docker run -it ruby:2.7.1 ping google.com 64 bytes from ord30s26-in-f238.1e100.net (216.58.192.238): icmp_seq=1 ttl=37 time=15.2 ms 64 bytes from ord30s26-in-f238.1e100.net (216.58.192.238): icmp_seq=2 ttl=37 time=15.5 ms and docker run ....
|
|
An Engineering Anti Pattern - New Code Being Written During an Engineer's Final Days
-
fuzzyblog.io
-
5 years ago
-
eng
I am currently involved in leaving a gig where I've been for a year now and I find myself breaking one of my fundamental engineering beliefs, in effect, engaging in an anti-pattern . If a pattern is what you should do for something then an anti-pattern is what you should not do . The anti-pattern I find myself engaging in is really, really simple; I am writing all new code in my last two weeks of work. Not fixing bugs or doing cle....
|
|
A single-node Kubernetes cluster without virtualization or a container registry
-
notes.eatonphil.com
-
5 years ago
-
eng
This post is a recipe for setting up a minimal Kubernetes cluster on Fedora without requiring virtualization or a container registry. These two features make the system cloud-agnostic and the cluster entirely self-contained. The post will end with us running a simple Flask app from a local container. This setup is primarily useful for simple CI environments or application development on Linux. (Docker Desktop has better tooling for develo....
|
|
Would you like to clearly understand what's happening when you use the Python import keyword? Do you want to use modules more effectively to structure your code? Or maybe you're ready to move to the next level with your Django project by adding user management. This week on the show, David Amos is back with another batch of PyCoder's Weekly articles and projects.
|
|
We’re busy preparing for our software engineering fall hiring season . Over the years we’ve done our best to make our interview process more transparent to candidates. While many candidates show up knowing something about what our interviews look like, much of the information floating around on the internet is outdated or wrong. These past few months have also changed a lot about the process as we’ve adapted to working from home and other ..
|
|
We’re busy preparing for our software engineering fall hiring season . Over the years we’ve done our best to make our interview process more transparent to candidates. While many candidates show up knowing something about what our interviews look like, much of the information floating around on the internet is outdated or wrong. These past few months have also changed a lot about the process as we’ve adapted to working from home and other ..
|
|
New AWS Quick Start available to secure Amazon Elastic Kubernetes Service (Amazon EKS) workloads
-
snyk.io
-
5 years ago
-
eng
We are delighted to announce a new AWS Quick Start featuring Snyk Container and sample deployments for quickly and easily securing workloads running on Amazon Elastic Kubernetes service (Amazon EKS).
|
|
Do you find yourself struggling for hours to solve problems with Formik? I've started using a different library that's much simpler.
|
|
I went on a motorcycle trip. A fellow TOMCC 1 member was planning a solo trip to Campo Imperatore (“Emperor’s Fields”), the well known alpine meadow in the Apennine ridge. He called me as he was looking for some advice, and well, I ended up joining him. What sparked my interest was the destination, of course, because Campo Imperatore is a superb place to visit, especially on a motorcycle, but also Antonio’s peculiar take on the journey....
|
In this article, I explore an anti-hype opinion on service meshes and aim to provide a clearer perspective on whether they are the right solution for specific problems.
|
|
Changes The draft is a living document which means these posts will need to change over time. This section documents when changes have taken place to this post. 21/08/20 : Moving forward with the generics design draft Series Index Generics Part 01: Basic Syntax Generics Part 02: Underlying Types Generics Part 03: Struct Types and Data Semantics Introduction In this series of posts about generics in Go, I will present code..
|
|
Is Technology Accelerating? An Analysis of US Patent Records
-
www.joehxblog.com
-
5 years ago
-
eng
Technology keeps progressing faster and faster. It’s accelerating. Or so I’m told. But is it really? How can we tell?
|
How does Grouparoo use Next.js to load pages and components from plugins to modify our web user interface?
|
|
We’re excited to unveil Snyk’s developer-first prioritization capabilities, helping development and security teams prioritize fixes for security vulnerabilities in their open source dependencies and containers more effectively!
|
|
For developers, deciding which security issue to address first is hard, requiring time and expertise developers often don't have. This is a chance for the right tools to shine, providing the expertise to know which security questions to ask when prioritizing, and the technology to answer them quickly.
|
|
Outsourcing has put America in a precarious position. It quietly became one of the greatest threats to national security over the course of several decades, unrealized until the Coronavirus pan(dem)ic revealed the fragility of our situation. David Adler and Dan Breznitz, in the American Affairs Journal, discuss the issue and offer some concrete suggestions for fixing it. I encourage you to give it a read. See also: On National and Enterpr..
|
|
Normally when I'm trying to validate that an Internet service is available, well, I ping . Ping is one of those Internet bedrock protocols that I'm firmly in the camp of "SHOULD ALWAYS, ALWAYS, ALWAYS BE TURNED ON". But there are ping flooding attacks, etc so there are reasons why it isn't always a default (looking at you here AWS; staring you dead in the eyes with the 'ol stink eye). I recently realized that while it isn't example the ..
|
|
I went on an adventure today. I left behind the stable comforts of the terminal and compiled bleeding-edge Emacs that uses a native window system. This is a big deal for me. As long as I can remember, I’ve used Emacs from within a terminal. I’ve decided to give the GUI’d Emacs a whirl. My Journey # I’m running macOS Catalina (10.15.5). Originally I tried using the pre-built packages via brew (brew cask install emacs) and those ava....
|
|
Apollo vs Relay Modern: An unbiased look at which GraphQL client to use
-
maxrozen.com
-
5 years ago
-
eng
If you're building an app using GraphQL, picking a client to use can be hard. Apollo? Relay? Urql? Let's look into some options.
|
|
Docker runs as root. The programs executing inside containers too. Make it a bit better. # do everything you need as root (maybe installing some dependencies) # create a non-root user RUN addgroup --gid 1001 appgroup RUN useradd --create-home --gid 1001 --uid 1001 appuser # set new workdir WORKDIR /home/appuser # activate non-root user USER appuser # copy new files with correct permis..
|
|
I went on an adventure today. I left behind the stable comforts of the terminal and compiled bleeding-edge Emacs that uses a native window system. This is a big deal for me. As long as I can remember, I’ve used Emacs from within a terminal. I’ve decided to give the GUI’d Emacs a whirl. My Journey # I’m running macOS Catalina (10.15.5). Originally I tried using the pre-built packages via brew (brew cask install emacs) and those ava....
|
|
Talks about the valiant but almost-dead 10-year effort to prevent tracking with the Do Not Track header.
|
Adding Google Analytics to Django properly requires a bit of extra steps over just pasting the Google provided JavaScript snippet in your base template and calling it a day. For example, if you use the same analytics key in dev and production you would inadvertently be co-mingling... [Continue reading...] Adding Google Analytics to Django Templates The post Adding Google Analytics to Django Templates appeared first on BHoey .
|
|
Whether you want to start a career as a developer, or have been a developer for 20 years, you should check out these books.
|
|
PUBNUB: Making Engaging Realtime Experiences a Reality in India
-
www.9lessons.info
-
5 years ago
-
eng
Realtime Communication is providing enterprises with an innovative way to deliver better, more cost-effective customer service. Technology companies in India are racing towards a more connected and always-on world, making it easier, faster, safer, and more convenient for everyday people to do the things they need and achieve the things about which they dream. PubNub’s Realtime Communication Platform provides the backbone that any company ..
|
|
It seems like a simple enough question. Which word should you choose so that it takes your opponent the most guesses to discover it? Should you choose a long word to use up your opponent’s guesses? Or perhaps a short word with obscure letters? In this document I look into this question. But first, a bit of background. If you’re not familiar with the rules of hangman, it is a guessing game played between two people. Player A chooses a secr..
|
|
Monitoring Your Own Infrastructure Using Grafana, InfluxDB, and CollectD
-
serhack.me
-
5 years ago
-
eng
For some companies, infrastructure is the heart of its business. Specifically, I am referring to those companies which need to manage data and applications located on more than one server. -Continue to read the article on SerHack.me
|
|
It’s so hard to find great engineers that pass all of your interviews with flying colors. So when you do find someone who actually makes that happen, don’t let them go because you feel the need to bargain over little bits of money.
|
|
K8s Operator with dynamic CRDs using controller runtime (no structs)
-
blog.gripdev.xyz
-
5 years ago
-
eng
Warning: This is a bit of a brain dump. I’m working on a project at the moment which dynamically creates a set of CRDs in Kubernetes and an operator to manage them based off a schema which is provided by the user at runtime . When the code is being built it doesn’t know the schema/shape of the CRDs. This means the standard approach used in Kubebuilder with controller-gen isn’t going to work.
|