|
A fully automated cleanup strategy. This is a comparison of different programming idioms for performing cleanup work. Common use cases where this is used include: Locking and unlocking synchronization locks. Opening and closing files. Canceling asynchronous operations that aren’t needed any more. Allocation and deallocation. A naive solution: Cluttered cleanups int frobnicate() { set_up(); int err = foo(); if (err) { clean_up();....
|
|
A fully automated cleanup strategy. This is a comparison of different programming idioms for performing cleanup work. Common use cases where this is used include: Locking and unlocking synchronization locks. Opening and closing files. Canceling asynchronous operations that aren’t needed any more. Allocation and deallocation. A naive solution: Cluttered cleanups int frobnicate() { set_up(); int err = foo(); if (err) { clean_up();....
|
|
Dapper is a well thought out tool, and works well for what it does, but string literals scattered about an application is quite frankly a maintenance disaster waiting to happen. For a much simpler, better performing, and more productive approach you should immediately switch to sqlplus.net Best ORM for C# AND SQL Server Experience unrivaled performance and productivity without barriers. SQL+ is the only tool that fully embraces ..
|
|
Auto-rotate images based on their Exif data with ImageMagick (BASH)
-
snippets.bentasker.co.uk
-
6 years ago
-
eng
Most modern cameras will store orientation details in the EXIF data of images taken on them. So if you turn the camera portrait to take an image, software can tell that this image should be displayed portrait. However, not all software checks the EXIF data first, so you can wind up with portrait images being displayed lying on their side in some software - this is an easy trap to fall into if your file manager does honour the EXIF dat..
|
|
James Temple, writing for MIT Technology Review in The Rivian pickup’s real edge over Tesla’s Cybertruck isn’t its battery , emphasis mine: Permalink.
|
|
Denver Skyline from a Remote Worker's Office; Photo Credit - Kim Corbett; Thank You) I have been, with one 9 month exception, a fully remote worker since 1999 and a manager of remote workers since 1996. Heading into 2020 that puts me at over 20 years of solid, day in and day out remote work so, I'll admit, that I know a thing or two about remote work. I've both been a remote worker, managed remote workers and I think all possible perm....
|
|
Repository: @knadh/pfxsigner GitHub release page: v0.2.0 Changelog f8bb4b9 Merge pull request #1 from mr-karan/docker 5608a6b feat: Add github actions 79b9368 feat: Dockerize pfxsigner 79156c7 feat: Add healthcheck and index handler in server.go 925cd92 feat: Remove repetitive usage of PHONY in Makefile e5de425 feat: Add .gitignore to project Docker images docker pull kailashnadh/pfxsigner:latest docker pull kailas..
|
VWO puts a lot of focus on ensuring websites remain performant enough while using VWO. We have been increasing the efforts in this area and…
|
|
Senior Consultant Developer Tiffany Leung recently joined Thoughtworks, moving 16,000km away from Boston, USA to settle into a new home in Sydney, Australia. Interested to hear what her experience was like, we asked her to share her journey to landing a job at Thoughtworks and starting an international career. Tell us a little bit about you
|
|
The required steps to build security into your products from the ground up. The goal is to create a product that is resilient against defects from the inside and attacks from the outside.
|
|
Denver Skyline from a Remote Worker's Office; Photo Credit - Kim Corbett; Thank You) I have been, with one 9 month exception, a fully remote worker since 1999 and a manager of remote workers since 1996. Heading into 2020 that puts me at over 20 years of solid, day in and day out remote work so, I'll admit, that I know a thing or two about remote work. I've both been a remote worker, managed remote workers and I think all possible perm....
|
|
tl;dr git bisect can make you save eons when you are looking in your git history to find the exact revision that created a problem. This is a quick tutorial. A lot inspired from Automated git bisect will make your day - I am writing this article because it did make my day! The example project Let’s do a bit of work together. mkdir demo-git-bisect cd demo-git-bisect git init echo 'Yeah, we created a new git repository!' >....
|
|
Understanding filesystem takeover vulnerabilities in npm JavaScript package manager
-
snyk.io
-
6 years ago
-
eng
On the 11th of December, 2019 a security vulnerability which extends to all major JavaScript package managers (npm, yarn and pnpm) was publicly disclosed. This vulnerability, discovered by security researcher Daniel Ruf, allows malicious actors to apply varied tactics of arbitrary file overwrites.
|
|
Nikita Prokopov, on the growing complexity of software and the shrinking number of people who understand it: “In programming, we are developing abstractions at an alarming rate. When enough of those are stacked, it becomes impossible to figure out or control what’s going on down the stack. ... Docker and Electron are the most hyped new technologies of the last five years. Both are not about improving things, figuring out complexity or r....
|
|
Photo Credit - Lisa Meece ; Thank You) Hi Bob , I strongly doubt you remember but I met you years ago as part of the Boston Blogging group that Dave Winer used to organize. About the same time I also met Dan Bricklin . I wanted to make a suggestion to you. I've been subscribed to you in my aggregator for a long time but due to the design of aggregators, it isn't clear if a post in the aggregator is full content or summary. Her....
|
|
Learn JavaScript Array .filter() method with code examples
-
akashrajpurohit.com
-
6 years ago
-
eng
|
|
Learn JavaScript Array .filter() method with code examples
-
akashrajpurohit.com
-
6 years ago
-
eng
|
|
Developer Advocacy: Turning a passion for talking about tech into a career
-
www.thoughtworks.com
-
6 years ago
-
eng
What exactly is a developer advocate, and how do they connect developers and companies around the world? Why is the area of developer relations set to explode? Can anybody with a passion for tech become a developer advocate? What are the keys to success on a global scale? How does a developer advocate maintain authenticity when balancing the needs of their company and their tech community?
|
|
Photo Credit - Lisa Meece ; Thank You) Hi Bob , I strongly doubt you remember but I met you years ago as part of the Boston Blogging group that Dave Winer used to organize. About the same time I also met Dan Bricklin . I wanted to make a suggestion to you. I've been subscribed to you in my aggregator for a long time but due to the design of aggregators, it isn't clear if a post in the aggregator is full content or summary. Her....
|
|
Trump's Surprising Embrace of Industrial Policy to Fight China
-
mattstoller.substack.com
-
6 years ago
-
eng
I took some time to update Keeping Up with Current Events and My Evening Reads over the holidays, which involved adding Matt Stoller’s excellent newsletter BIG to the list of sources that help me stay informed. His most recent issue, Trump’s Surprising Embrace of Industrial Policy to Fight China , is a prime example of the shrewd analysis that makes it so interesting. This issue is a great way to start the new year, and new s..
|
|
Looking for a way to stream Linux laptop audio to Windows desktop
-
blog.kaetemi.be
-
6 years ago
-
eng
I’m setting up my old laptop next to my desktop. Currently my desktop, running Windows 10, is connected to an old Creative X-Fi USB sound card that’s no longer supported....
|
|
In 2020, I want to give a talk a month about random security topics. Not extreme detail in either, but scratching the surface of many.
|
|
As I write this it is 3:45 am and I am playing with Python. I have a small script that looks like this: import pandas as pd DATA_PATH = "data/" filename = "file.json" train_sample_size = 45000 dataset = pd . read_json ( os . path . join ( DATA_PATH , filename ), lines = True ) dataset_test = dataset . copy (). sample ( train_sample_size ). reset_index () dataset_head ....
|
|
The first breath after my return to Sydney felt as relieving as I imagined it would. The sweet scent that reminded me of tree sap and freshly mown grass was a good contrast to the exhaust fumes that filled the Xi’an air. The flight had been on time, but my mind was still soaking on five weeks of memories. Day 1: We’re walking through customs. The Xi’an airport looks the same as every other airport. The grey-and-white walls, pillars, ceiling..
|
|
As I write this it is 3:45 am and I am playing with Python. I have a small script that looks like this: import pandas as pd DATA_PATH = "data/" filename = "file.json" train_sample_size = 45000 dataset = pd . read_json ( os . path . join ( DATA_PATH , filename ), lines = True ) dataset_test = dataset . copy (). sample ( train_sample_size ). reset_index () dataset_head ....
|
|
Two months ago I published the CN1Lib “Wowza Live Streaming Events”, as usual you can install that by the Extension Manager. The purpose of this CN1Lib is to add live streaming capabilities to iOS and Android Codename One apps, hiding all the complexities and reducing the effort. __ The Wowza cn1lib has been deprecated since the publication of this post However, live events are not trivial. That’s why you should read this README..
|
|
Thanks to the MSYS2 project, now there is an easy way to utilize Clang to build C/C++ application on Windows. This works equally well for both 32-bit and 64-bit programs.
|
|
Thanks to the MSYS2 project, now there is an easy way to utilize Clang to build C/C++ application on Windows. This works equally well for both 32-bit and 64-bit programs.
|
|
I'm in the process of working out security for a new side project (yes, yes, yes - I know; I have too many of these but they are such a good teaching tool for one's self) and I wanted to use pundit . Pundit, for those who haven't played with it, is a Ruby gem which makes authorization at the controller level easier. Authorization, Authentication, Oh My Just to review the very basics of computer security, there are two key concepts: Au....
|
|
Make resilient Go net/http servers using timeouts, deadlines and context cancellation
-
ieftimov.com
-
6 years ago
-
eng
When it comes to timeouts, there are two types of people: those who know how tricky they can be, and those who are yet to find out.
|
|
Make resilient Go net/http servers using timeouts, deadlines and context cancellation
-
ieftimov.com
-
6 years ago
-
eng
When it comes to timeouts, there are two types of people: those who know how tricky they can be, and those who are yet to find out.
|