Daniel Bradbury
Software engineer based in Sacramento, CA
The magic of Vim script
I've pulled a random bit of documentation from :help matchadd
to show off some of the magic thats referenced in the docs.
Matching is case sensitive and magic, unless case sensitivity or magicness are explicitly overridden in {pattern}
This line make...
Ruby Install Issues on Mac
I love rvm
but won't pretend that I don't have to fight with it to stay on the latest version of Ruby when using my mac.
Here's an example that popped up when trying to work with the new WriteBooks codebase that was release...
Deploying with Kamal
After seeing the costs from 2 months of ECS running on my personal AWS account it was time to tryout something that doesn’t cost more than $15 a month to get a minimalist website up and running (this personal site)
I had listened to a podcast from DHH whe...
Deploying Rails Application to ECS with GitHub Actions
I recently had the pleasure of figuring out a deploy scenario without any of my favorite deploy tools kamal
, Capistrano
were not options as we are not allowed to SSH to any box that we want to deploy. In the scenario I'm describing you are being forced...
Git Auth when Windows Credentials are Locked
Most Windows users won’t run into this problem because they don’t have a system administrator controlling their machine but for anyone who is experiencing weirdness while using wincred
here’s a brief explanation of the problem + an easy fix to get things...
Twitter Gaming
There are plenty of twitter management tools out that will help automate / manage your twitter account for a few bucks a month.
While most products don't add too much value I've found some particular features on Tweepi.com that have been pretty helpful. I...
Bioshock
The initial introduction to the underwater dystopian society of Rapture in the original Bioshock was something that I recommend every real gamer ex...
Reverse Engineering 'Product Catalog'
Recently I've been looking at an application that has some data that I'd like to scrape and use/format for my own selfish desires. The application we are targeting is on iOS + Android so I went through the usual flow on my iPhone
- mitmproxy - no good. tra...
Ixalan Draft #1
Black/Blue/White Deck
Didnt realize I messed up mana until I got home.. would have preferred a 664
- 7 Swamp
- 6 Island
- 3 Plains
- Ixalans Binding
- Slash of Talons
- Cancel
- ...
Connecting to Wifi on Amtrak
I wrote this post a few months ago when I was stuck on a train and figured I'd publish it before it gets lost forever.
Today I bring you the pain in the ass process I went through to get a really shitty connection on my Amtrak ride
Connecting to the wi...
Turbolinks
Just trying to do things like
<a href=”#” onclick=”alert(1)”>ZZZ</a>
Expected behavior here?.. Scroll to top of the page right? Not if turbolinks is doing its thang.
From my previous write-ups on Turbolinks ([1](http://danbradbury.net/blog/2016/05/0...
Horse's Hoofs - Sagely Errors
Associated reading: Zhuangzi - Horse's hoofs
TLDRBWPIKWG; The natural order is pretty chill but some "sagely dudes" threw a wrench in that real quick
![](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9G...
Intercepting iOS Network Traffic on Mac
For the most part you are probably fine just using a solution like mitmproxy
(shown here) and sniffing HTTP/S traffic but sometimes there's a need to go deeper..
When testing an application you may notice so...
Trying to make sense of PG&E's Marketing Campaigns
We are getting close to baseball season and since I try to catch the majority of games that means I get to watch a ton more local advertising!
yay ads!
Last season I was lucky enough to return to Norcal and got to watch the Giants on CSN-Bay Area for t...
Mediocrity in Movies (part 1)
I've been trying to make sense of the wave of mediocore movies, games, and music that has been dumped on us lately. This will be part 1 of a series of rants dedicated to mediocrity.
The Question
Why the hell are studios making these trash movies ...
Exploiting P2P Game Hosting in Dead by Daylight
Any gamer will tell you dedicated servers are prefered to someone being selected as the host and having an unfair advantage with much better latency. P2P online gaming is just awful for anyone who wants a true competetive environment; clients must maintain...
Unnecessary Noise in the Programming community
Growing up on the internet I've always been aware of trolling and general BM that are associated with competetive gaming and message boards. Unfortunately I've been noticing similar behavior in more and more projects & programming community sites. It seems...
Turbolinks and anchors
So far my journey with turbolinks
hasn't been too bad; I write my slop and things work as I'd expect them to. I knew this streak of good luck was bound to come to an end at some point and today is the day.
I had the misfortune of attempting to implement...
Different browsers are the worst
While working on a personal project I ran into an issue with a bootstrap navbar collapse. In my local testing everything went fine and I decided to push and hoped everything would behave properly.. I grab my iPhone 5 and take a look only to see that the dr...
Vim Tricks - Googling with keywordprg
Most vim users are familiar with the man page lookup; K
under the cursor or on visual selection. For anyone who needs a quick refrersher lets take a look at the help docs (help :K
)
K Run a program to lookup the keyword under the
curs...
Into the Abyss with Turbolinks
Previous attempts to adopt turbolinks
during upgrades or new projects led me to the conclusion that I have a burning hatred for everything the project stands for (rage hatred is the worst kind..). From conversations with other Rails folks + former CTOs i...
Development Turntable
And the turntable keeps on turnin' and turnin' Nothing can fuck with the way it goes around
- Slug
Human nature tells us that there is a natural desire to make sense of the uncertain and create some semblance of control in our lives. This fundamenta...
Scaling Images with HTML5 Canvas
Had intented to post this 8 months ago but it got lost in the sea of gists..
This is old news by now for most but I had quite a bit of fun implementing it for myself and figured I'd share my code and some learnings that came along with it. The basic ide...
Playing the Twitter-game
I am not a marketer not do I have any real prior experience managing PR/social media for a company of any size. This is just a write-up of some of my learnings while out in the wild
By all accounts I am a Twitter novice; I joined a few years ago but don...
Replacing SimpleCov
After fighting with simplecov
for a little longer that I would like to admit; was attempting to get it to start analyzing a group of files that were the meat and potatoes of my application(Golaith application). U...
"Requirements for a Text Editor"
These are my minimum requirements for a competent text editor. The list is meant to serve as a quick litmus test for true understanding of tooling in the craft of writing software.
- Navigate with ease; jumping to line number, move to top/bottom of fi...
replacing heroku
For anyone still on Heroku and throwing addons at your application please stop and seriously reconsider what you are doing. Across the board things are getting a bit ridiculous for the average hobbyist / fincially conscious company. I used to be quite the ...
Deploying Jekyll Site on Ubuntu VPS
Over the past few months Heroku has become an increasingly expensive option for projects that are starting to scale in any way (Addon price hikes, [Dyno Sleeping and Charging](https://devcenter.heroku.com/articles/dyno...
matchadd vs match
The target of this post is to clear up any confusion about the subtle differences between matchadd
and match
/2match
/3match
. This is not meant for the novice vim user but folks that have some experience with vimL. I'll try to keep it as simple as po...
stop being lazy and learn haml
The desire to write familiar view code, similar to the same html
you were writing to support your shitty LAMP apps is completely understandable but it's time to move on from the glory days..
There seems to be this idea that using erb
is "good enough" ...
thoughts on heroku
After deploying over 10 applications with Heroku I think that I can finally make a fair assessment on the general developer / Heroku relationship.
After watching an excellent talk by Matz at Waza (link at the bottom) I was taken aback by how much he seeme...