Login
Discover
Waves
Decks
Plus
Login
Signup
davidpm
@davidpm
44
quick posts about programming
Followers
226
Following
20
Resource Credits
Available
Used
Website
http://davidpm.io
Created
March 3, 2018
RSS Feed
Subscribe
Posts
Blog
Posts
Comments
Communities
Wallet
davidpm
programming
2019-08-09 03:01
Disabling dangerous redis commands in Production redux
I recently read a great article from Honeybadger that muses on what could happen to a production environment if a fat fingered developer did something like: Redis.current.flushdb. This scared me enough
$ 0.000
1
1
davidpm
technology
2018-09-04 21:30
Heuristics on the Practice of Programming
A Living List What follows is a living list of heuristics I've come to internalize over the years as a developer. My goal is to periodically add to this list. Consider it a repository of programming wisdom.
$ 0.064
6
2
davidpm
programming
2018-07-07 07:02
Git Interactive Rebase to Alter Commits
Do you have skeletons in your git history? Maybe you want to re-write that history? I know I've been down that road, and since I've had to look up how to do this several times I thought it was high time
$ 0.000
2
davidpm
technology
2018-06-03 21:06
Dropping Into B-trees
My recent (and only) RailsConf talk:
$ 0.000
3
davidpm
ruby
2018-06-03 06:55
Create a command-line gem from scratch with Thor (part two)
This is the last in a two-part post on creating a Ruby cli gem from scratch. Part one found here. Picking up from our last post, we want to start working on our user interface. In this case we want a cli
$ 0.000
3
davidpm
ruby
2018-06-03 06:17
Create a command-line gem from scratch with Thor
This is the first in a two-part post on creating a Ruby command-line gem from scratch. Part two found here. Let's write a command-line interface (cli) as a Ruby gem. We need the gem to do something slightly
$ 0.021
2
1
davidpm
blockchain
2018-05-29 01:28
Blockchain Proof of Concept
If you are a programmer and have been hearing all of the fuss about THE BLOCKCHAIN but haven't yet looked into it, and were looking for a starting point, this is the post for you! Feel free to skip the
$ 0.000
2
davidpm
sql
2018-03-06 19:25
SQL Cheat Sheet
SQL can do a lot: data insertion, querying, updating and deleting, schema creation and modification, and data access control. I have to look up this stuff more often than I'd like to admit. How do I alter
$ 0.000
0
davidpm
rails
2018-03-06 05:09
Bootstrap with Rails and Postgres
> rails new app_name ...gives you all you need to get started developing an application, notably using SQLite as the default datastore. I've always worked with Postgresql (postgres) since I started
$ 7.236
3
2
davidpm
ruby
2018-03-05 02:08
REGEX Multiline Anchors
Ever try out a regular expression on rubular, stick it in your model: MEH_REGEX = /^(?=.*[a-zA-Z])(?=.*[0-9]).{8,}$/ ...start up your test suite and see this error? The provided regular expression is using
$ 6.901
3
1
davidpm
ruby
2018-03-05 01:30
Rspec Config
You've included rspec in your Gemfile, run bundle install and you want to initialize some examples to start testing. > rails g rspec:install The thing is you are sick of all the extras that come along
$ 7.037
1
davidpm
rails
2018-03-04 22:21
Rails MIME Types
When using Rails to build an API you'll most likely be working with JSON or XML to pass around data. That is because most APIs today work exclusively with these MIME(Multi-purpose Internet Mail Extension)
$ 7.136
1
davidpm
ruby
2018-03-04 12:35
Messages with Methods in Ruby
You hear it all the time when reading about Ruby: everything is an object. Objects in Ruby communicate with other objects by passing "messages" back and forth to one another. Well, those messages
$ 7.426
1
davidpm
linux
2018-03-04 08:40
CPUs
Ever needed to check really quick how many CPUs your *nix machine is running? Maybe you're logged into a remote server, or maybe you just forgot. In any case, I keep finding myself in a such situations
$ 0.000
1