|
I was doing some code review today and I realized after the fact that the refactoring I wrote for the review was a great example of how I iteratively evolved a piece of code into something really great. So here’s a step-by-step approach to finding and performing a code refactoring you can be proud of.
|
|
Wireguard is the hip, new way to VPN :P No, but seriously I wanted to try it out because it is super interesting and I think the direction it is going is awesome. Read about it on their website if you have not already. What is cool about Wireguard is it integrates into the Linux networking stack so you have a lot of power over interactions with it. In other words, it is very easy to clone the interface into specific containers. Or ju....
|
|
It’s quite a challenge to climb Mount Shasta. It’s an active volcano and as a result, it’s high and steep. At 14180 feet it is the fifth highest peak in California. With 3000 meters of vertical prominence over the nearby town of the same name, it stands like an Eiffel Tower over the surrounding area, except that the Shasta tower is ten times higher. According to Wikipedia, it is one of the one hundred most prominent peaks in the world https....
|
|
In our final installment for the Higher Level Function in Python Series, we dive into the Python filter function. No sidetracks this time around. We simply take a look at how it's used, try to find a way where it would be superior to list comprehensions, fail, and conclude the series.
|
|
Last Tuesday I was Table Topics master at my local Toastmasters meeting, which means I had to choose questions or topics that the other members had to give a one to two-minute speech. Being that the 4th of July, Independence Day here in the United States, is approaching, I decided to theme my questions about that holiday in particular.
|
I just woke to a post in some fb group with a mashup of the latest Burger King twitter roast and thought I should start documenting these… so I downloaded that… Enjoy! When Burger King become Pancake King Whataburger is not having it Chili's siding with Whataburger
|
I just woke to a post in some fb group with a mashup of the latest Burger King twitter roast and thought I should start documenting these… so I downloaded that… Enjoy! When Burger King become Pancake King Whataburger is not having it Chili's siding with Whataburger
|
|
At times, you may need GNU versions of command line utilities on macOS. For example, GNU find. As usual, Homebrew saves the day. Install with: brew install findutils Unless you install with –with-default-names (I don't), GNU utilities will be prefixed with a "g". gfind --version If you need more, there are others: brew install binutils brew install diffutils brew install ed brew install findutils brew install gawk brew install gnu-..
|
|
Collection of PlantUML snippets from Scripter.co . Real World PlantUML . Welcome to The Hitchhiker’s Guide to PlantUML! .
|
|
In the digital age you stumble on concepts analog in their nature. Modern graphics are created on a computer yet they originate in an analog process. You constantly change the brush size yet the computer allows you to do it in an increments. Do you actually care your color is R=53, G=123, B=200 in numerical values except when moving the data? Concept of making an analog controller for art creation on the computer was always interesting ..
|
|
One of our most frequent feature requests recently has been for the ability to generate an API token that isn’t tied to a particular user. We’re excited to be able to now offer our pro and enterprise customers the ability to create service accounts – a special type of user that has an API token associated with it.
|
|
Have you ever had a hard drive which runs out of space while there is still space remaining? Have you ever wondered where that space goes? Let me show you a magic trick First I’ll save a message in message.txt Nothing here nothing there, I’ll save two secret messages the first one is a secret, the second one a big file of text. (but I could save a jpg or an exe).
|
|
Context I have a simple flask app that displays data from a sqlite3 database. Nothing fancy. Tutorials ¶ Serve Flask Apps with Gunicorn and Nginx Setup Firewall on Ubuntu 16.04 Setup SSL with LetsEncrypt on Ubuntu 16.04 The Pieces ¶ Based on searching online, the most battle-tested deployment tools right now seem to be: Gunicorn – application server Systemd – among other things, it can manage custom services (..
|
|
Have you ever had a hard drive which runs out of space while there is still space remaining? Have you ever wondered where that space goes? Let me show you a magic trick First I’ll save a message in message.txt Nothing here nothing there, I’ll save two secret messages the first one is a secret, the second one a big file of text. (but I could save a jpg or an exe).
|
|
Originally appeared on Opsgenie Engineering Blog If you are deploying serverless applications in AWS Lambda and using Java, you are well aware of cold start problems. Cold start happens because of the way the Java Virtual Machine works, it kicks in JIT (Just-in-time), and it needs to “warm-up” like a car from the 80s. AWS Lambda caches containers for you, so when idle, it is paused and brought back online immediately as soon as a request a..
|
|
A work colleague (let’s call him Owen as that’s his name) asked me the other day “I dont understand the problem space scc et al solve. If you wanted to write a short post, i’d read and share the hell out of it. Basically, it seems like a heap of people can see the need for it, and I’m trying to understand it myself” Owen is one of the more switched on people I know. As such if he is asking whats the point of tools such as scc, tokei..
|
|
I have spent a lot of time in front of a computer. That’s because you can do a lot of amazing stuff with it. I don’t think I enjoy the process that much though. Sometimes there is so much clicking and pointing to do simple stuff. I don’t think I would code without using VIM or at least adding VIM bindings to the text editor I’m using. I just can’t use mouse when I code. Coding is discrete. Smallest unit of code is a letter. If you use t..
|
|
My Own Car System, Rear Camera, Offline Maps & Routing on Raspberry Pi part I
-
blog.nobugware.com
-
7 years ago
-
eng
At first I needed a car rear camera, one thing led to another… My Car, from 2011, only has an LCD display and no rear camera, so I bought a PAL rear camera, we passed some cables from the rear window to the front then everything begun. Here is my journey to transform my car into a modern system running on RPi3 (a never ending project). Hardware I’m using an Rpi3 (old model).
|
|
Metrics are data points representing your system behaviour over time. People instrument their long-running apps with metrics to see if there are or were any problems and if the system behaves as expected. There are various metric types, but most common ones are counters, gauges and histograms. Metric types Counter is simply an increasing number. You may use counters to track the number of served requests, number of errors, and so on.
|
|
Metrics are data points representing your system behaviour over time. People instrument their long-running apps with metrics to see if there are or were any problems and if the system behaves as expected. There are various metric types, but most common ones are counters, gauges and histograms. Metric types Counter is simply an increasing number. You may use counters to track the number of served requests, number of errors, and so on.
|
|
You programmed STM32 microcontroller using Nucleo or Discovery boards. That means you used Serial Wire Debug ( SWD ) for programming/debugging. Now, you are designing a PCB with a STM32 microcontroller on it, which means you have to be able to program it. One solution is uploading the code through a bootloader - a small piece of software, made by ST that has been saved in the protected (read-only) memory of the microcontroller. It’s a..
|
|
Whilst casually browsing Hacker News, I stumbled upon a fairly new post which had hit the front page suggesting that a Gitea (a self-hosted GitHub alternative) may have had some of its release binaries compromised . The post linked to an issue on the Gitea’s GitHub page , where at the time it was unclear what & how this had happened, just that the releases had been altered and were distributing something malicious. A few hours later, so..
|
|
On 11th of November 2017 trivago hosted a Hackathon at NASDAQ's MarketSite in New York. The winners were awarded with a trip through Europe to visit trivago's offices as well as conference tickets for [The Next Web, Amsterdam](https://thenextweb.com/event/tnw-conference/). We invited the winners to our office, where we got to the chance to interview them about their Hackathon experience.
|
|
It has been one month since I started working fully remote, and I think I learned some things I can share.
|
|
On 11th of November 2017 trivago hosted a Hackathon at NASDAQ's MarketSite in New York. The winners were awarded with a trip through Europe to visit trivago's offices as well as conference tickets for [The Next Web, Amsterdam](https://thenextweb.com/event/tnw-conference/). We invited the winners to our office, where we got to the chance to interview them about their Hackathon experience.
|
|
Will Making Twice-Monthly Half Mortgage Payments Save Money?
-
www.joehxblog.com
-
7 years ago
-
eng
In the quest to pay debt off as quick as possible, people try to find unique ways (“hacks” if you will) to reduce the timeframe and interest charged. The most popular - and successful - method is the snowball method or one of its variants. Another trick is to split the payments into two or more payments a month.
|
|
I figured it would be nice to have one canonical place for talks I have given. So here it is… 2019 CERN - Why Open Source Firmware is Important This talk will dive into some of the problems of running servers at scale, including data from surveys about physical infrastructure and firmware concerns. In this talk, we’ll understand how open source firmware will solve some of these common problems. Why is open source firmware important for ....
|
|
I was recently involved in a discussion around why would a regular Oracle foreground session wait for the log file sequential read wait event. I then realized that I had never published my Hotsos Symposium 2014 talk about a relatively complex (treacherous?) Oracle performance issue involving multiple problems that “collide”. So I decided to run this presentation as a webinar next week + will demo some of my newer related scripts too!
|
|
I was recently involved in a discussion around why would a regular Oracle foreground session wait for the log file sequential read wait event. I then realized that I had never published my Hotsos Symposium 2014 talk about a relatively complex (treacherous?) Oracle performance issue involving multiple problems that “collide”. So I decided to run this presentation as a webinar next week + will demo some of my newer related scripts too!
|
|
Lessons from moderating online communities about when megathreads help and when they hurt discussion.
|
|
Lessons from moderating online communities about when megathreads help and when they hurt discussion.
|
|
I’ve finally had a chance to read a book I bought a while ago called “97 Things Every Software Architect Should Know – Collective Wisdom from the Experts“. Not the shortest title for a book, but very descriptive. I bought this book at the OSCON Conference in Portland last year. It’s an interesting book and […]
|