|
Trying out Google's swift-format . Build with: git clone -b swift-5.2-branch https://github.com/apple/swift-format.git cd swift-format swift build .build/x86_64-apple-macosx/debug/swift-format --help OVERVIEW: Format or lint Swift source code. USAGE: swift-format [options]
|
The short answer is : you don’t. There is no such thing as “staying” motivated. Instead you need to cultivate necessity. Necessity You know this feeling you get when you’re getting dangerously close to a deadline. Like you have to get that shit done. Now. Err.. actually yesterday, but yeah, now. And you get full power into your essay/project/report. That feel like motivation, right? So now the question is more how do I stay motivated all th..
|
|
Over the years I have dialed in my writing process. I started typing posts in a textbox on Zoomshare; nowadays, I write in a powerful text editor, track changes with version control software, keep redundant backups, and serve this site with a back-end I wrote myself. I have set myself up well with a pretty neat workflow, and today I want to share it with you. Permalink.
|
|
Mismanaging the configuration of your Amazon S3 resources can lead to significant security and compliance incidents. Learn how to prevent these risks.
|
You know it is true. You know it is right. Yet, you do not get to do it. Too busy? Too lazy? Maybe you are just unclear with your goals. Humans are goal-driven animals. We just cannot move our little finger if we do not have a reason for it. It may be a primal instinct that drive you toward action, and skip the rationalisation altogether, or it may be a cold rationalised series of strategic moves, or a mix of both.
|
|
A thought, a word, a drop in calm. Cada ser humano tiene una voce adentro que lo conseja y lo guida. Es vital escucharla y seguirla también que a veces no tiene mucho sentido. Allí la lógica no cuenta. Los milagros pasan; pero buen sentido y duro trabajo son todavía necesarios. Esfuerzate de ser. En particular, de ser un buen ser humano. El dinero es funcional, sirve y ayuda. No es un fin. Ogni ess....
|
You know it is true. You know it is right. Yet, you do not get to do it. Too busy? Too lazy? Maybe you are just unclear with your goals. Humans are goal-driven animals. We just cannot move our little finger if we do not have a reason for it. It may be a primal instinct that drive you toward action, and skip the rationalisation altogether, or it may be a cold rationalised series of strategic moves, or a mix of both.
|
|
The other day my wife noticed that my car wasn’t smelling too fresh. She doesn’t ride in my car that often since we bought a van , so I figured that the smell had been building for some time. I figured I might as well change the cabin air filter - after all, it had been three years since I replaced said cabin air filter.
|
|
I gave a talk recently at GoTo Chicago on Why open source firmware is important and I thought it would be nice to also write a blog post with my findings. This post will focus on why open source firmware is important for security. Privilege Levels In your typical “stack” today you have the various levels of privileges. Ring 3 - Userspace: has the least amount of privileges, short of there being a sandbox in userspace that is restric....
|
|
I wrote about using Marked with Sublime Text before I switched to Proofer , so I wanted to take a minute to share the snippet that lets me use Sublime Text with Proofer now. Permalink.
|
|
I did some virtual wandering through the CryptoVoxels world (loaded into Indigo Renderer), taking some virtual snapshots with Indigo :
|
|
It started with this chain of blog posts, Using Java to Read Really, Really Large Files -> Processing Large Files in Java -> Processing Large Files – Java, Go and ‘hitting the wall’ I thought after reading them I would add to the chain. While I don’t like solving arbitrary company made “programming tests” when doing interviews https://boyter.org/2016/09/companies-recruiting/ whenever I see a post comparing Go to Java where Jav..
|
|
If you have any programming experience, whether that’s as a student or a professional, there’s a good chance you have heard about testing.
|
|
Abstract In writer-priority reader/writer locks, as soon as a single writer enters the acquisition queue, all future accesses block behind any in-flight reads. Thus, if any readers hold the lock for extended periods of time, this can lead to extreme pauses and loss of throughput given even a very small number of writers. This phenomenon is well-known in certain systems engineering communities (e.g. among some kernel or database developers),..
|
|
Abstract In writer-priority reader/writer locks, as soon as a single writer enters the acquisition queue, all future accesses block behind any in-flight reads. Thus, if any readers hold the lock for extended periods of time, this can lead to extreme pauses and loss of throughput given even a very small number of writers. This phenomenon is well-known in certain systems engineering communities (e.g. among some kernel or database developers),..
|
|
750 words, 3 minutes. The reason I don’t post on Cyber Security current affairs? It’s a scramble to be first. If I’m to write something, what should it be? What’s my angle? Which lens do I use on the microscope, or since this is a mass medium, the projector? What film can I show you that you haven’t already seen a dozen times? I’ll attempt to answer these questions here, and in so doing introduce what may become a new thread of posts.
|
|
A Denial of Service vulnerability discovered in the Axios JavaScript package - affecting all versions of the popular HTTP client
-
snyk.io
-
7 years ago
-
eng
Affected versions of axios are vulnerable to Denial of Service (DoS) because content continues to be processed from requests even after maxContentLength is exceeded, causing increased I/O and CPU usage.
|
|
If you find sensitive data in your Azure Repos repository, you need to do several things to recover, including invalidating the tokens and passwords that were once public.
|
|
Having team-wide rules that prevent credentials from being stored as code is a great way to police bad actions in your existing developer workflow.
|
|
Adding a SECURITY.md file to your Azure Repos helps your users find the information they need and encourages maintainers to consider general security practices.
|
|
By adding Snyk’s native integration with Azure Repos, each pull request will be tested to ensure new vulnerabilities aren’t introduced into the code base. Policies can be defined to configure the severity level of a vulnerability that fails the merge. The following image displays a failed PR due to new vulnerabilities that it would have added:
|
|
Following the rule of least privilege, ensure that contributors exist in the correct groups and therefore have the necessary permissions to work. Try to restrict administrative actions where possible.
|
|
Azure Repos access is typically done using SSH keys or personal access tokens (in lieu of a password). But what happens if those tokens are stolen and you didn’t know? Be sure to refresh your keys and tokens periodically, mitigating any damage caused by keys that leaked out.
|
|
Expenses paid in cash between two dates ledger -f my.ledger reg "^Expenses" and expr 'any(account=~/Assets:Cash:Wallet/)' -b 02/19 -e 04/09 Bank account income between two dates ledger -f my.ledger reg "^Assets:Bank:Acme" and expr "amount > 0" -b 02/19 -e 04/09 Formatting reg output ledger -f my.ledger reg "^Assets:Bank:Acme" --format="%(payee) %(amount)\n"
|
|
Despite the fact that the NVIDIA Jetson Nano DevKit comes with Docker Engine preinstalled and you can run containers just out-of-the-box on this great AI and Robotics enabled board, there are still some important kernel settings missing to run Docker Swarm mode, Kubernetes or k3s correctly. So, let’s try to fix this… Analyzing the Linux Kernel In my last blogpost Verify your Linux Kernel for Container Compatibility , I already sh....
|
|
The first time I saw wdired in action, it blew my mind. wdired makes dired (directory editor) buffers writeable, so you can edit them like any other Emacs buffer. You can subsequently use all your favorite file-editing tricks to rename files (amongst other things). You can see it in action at the end of Emacs Rocks episode 16 . When combining find-dired with wdired, one can easily find matching files and quickly batch rename them u....
|
|
Writing a lisp compiler from scratch in JavaScript: 4. LLVM conditionals and compiling fibonacci
-
notes.eatonphil.com
-
7 years ago
-
eng
Previously in compiler basics: 1. lisp to assembly 2. user-defined functions and variables 3. LLVM Next in compiler basics: 5. LLVM system calls 6. an x86 upgrade In this post we'll extend the compiler 's LLVM backend to support compiling conditionals such that we can support an implementation of the fibonacci algorithm. Specifically we're aiming for the following: $ cat tests/fib.lisp ( def f....
|
|
In this blog, we take a look at the libraries that, because they contain today’s most common vulnerabilities, also most frequently appear in Snyk project scans.
|
|
I had a hard time getting Sublime Text to work with Marked 2 , back when I used Brett’s app to proof my writing. Dan Sturm posted a simple snippet that launched it using a build system, that failed if Marked came from the App Store. Here’s the fix: Permalink.
|
|
Maestro is a library we have developed to handle all playback across SoundCloud web applications. It successfully handles tens of millions of plays per day across soundcloud.com, our mobile site, our widget, Chromecast, and our Xbox application. We are considering open sourcing it, and this blog post is a technical overview of what we’ve achieved thus far with Maestro.
|
|
I’ve had a very particular itch for a long time, now. Something I love about open source is that it empowers developers to scratch their own itches, and a while back I decided to do exactly that. We’ve used it in production on the Nextcloud snap for a few months with relatively few issues, so I think it’s time to open it up for wider use… in case you share my itch.
|