Pagination: You're (Probably) Doing It Wrong.
Pagination? No problem! SELECT ... LIMIT X, Y Right? Hah! Not quite! You see, your pagination logic is not stable; and that matters quite a bit in this ajaxy, client-appy, infinite-scrolly world.
View ArticleObject Path Validation
An object path represents the logical path of a property inside an object (from the root to the node member). This article aims to expose a possibile solution in validating this kind of paths with...
View Articleprogramming with purpose.
So here we find ourselves {programmers} being incessantly pinged by recruiters and fawned over by non programmers. "Damn we are important" is what runs through our heads.
View ArticleKeep TODOs in git
This records an empty commit prefixed with "TODO". This way git log will remind you both what you have done on this branch and what you need to be doing:
View ArticleWorkflow in Tmux
Tmux has three levels of hierarchy when it comes to organizing views: Sessions, windows, and panes. Sessions are groups of windows, and a window is a layout of panes. Windows and panes are to a certain...
View ArticleBreaking Bad logo with CSS, HTML, SVG & JS
A while ago I recreated the logo from Breaking Bad with just some CSS, HTML (canvas), SVG and JavaScript:
View ArticleThe single most useful thing in bash
This allows you to search through your history using the up and down arrows … i.e. type "cd /" and press the up arrow and you'll search through everything in your history that starts with "cd /".
View ArticleThe //* /*/ //*/ comment toggle trick
So, I guess I'm not the only one that need some way of easily toggling code in and out of the code.
View ArticlePlease, oh please, use git pull --rebase
When working on a project you usually synchronize your code by pulling it several times a day. What you might not know is that by typing
View ArticleAssociative/sparse arrays in pure C? Give it a trie!
While we usually take associative array/dictionary/hash data structure as granted in modern programming languages, there is no such thing builtin in a good old C. It might be tempting to use SQLite or...
View ArticleSafe stubbing with Bogus
Bogus presents a novel way of isolating in Ruby tests. This posts shows how to stub safely with Bogus.
View ArticleFTP is so 90's. Let's deploy via Git instead!
First, create a directory on your server and initialize an empty git repository. I like to serve my websites from ~/www/, so that's what I'll do in this example.
View ArticleScale PHP on Ec2 to 30,000 Concurrent Users / Server
RockThePost.com is a LAMP stack hosted on Ec2. We're preparing to be featured in an email which will be sent to ~1M investors... all at the same time. For our 2 person engineering department, that...
View ArticleLaunch a standby "emergency mode" website today
We were just featured in an email that was sent to a million people. It went great but we were a little concerned about what would happen if we had an unexpected problem in our application at the last...
View Article8 Things I’ve Learned As A Web Engineer
I do not have a computer science degree yet I’ve worked in 8 companies in the last 13 years holding leading software development positions. 99% of what I do I learned by doing.
View ArticleJava is always "pass by value"
Remember that when you pass a parameter in java, java is always "pass-by-value".
View ArticleAdvices and resources for PHP novices
Yesterday, a tweet from Chris Cornutt made me think a lot about how it is nowadays to get started, from the very beginning, with PHP.
View ArticleMove over Bootstrap and Foundation, welcome Semantic UI
I don't usually like changing frameworks, even if it's just an HTML/CSS framework. But sometimes, the final product makes it all worth it.
View ArticleUse a Google Spreadsheet as your JSON backend
When writing a simple web app or prototyping something, you may want a quick and simple way to store, edit and retrieve data.
View ArticleHow to draw heart shaped ImageView in Android using PorterDuffXfermode and SVG
Custom shape ImageView using PorterDuffXfermode with paint shapes and SVGs Android library
View ArticleBootstrap without all the debt
My old coworker Matt Copeland recently wrote an excellent article called Bootstrap Bankruptcy, in which he compares using Bootstrap on a website to taking out a mortgage:
View ArticleScripting Objective-C code with Clang
It works by using AWK to get the objc portion and then creating a new tmp file that is compiled and executed. When the program is executed we immediately delete the two temporary files.
View Article[Android] Use i-Racer (DaguCar) commands set
A simple demo done in a couple hours, on how to send i-racer (https://www.sparkfun.com/products/11162) commands (http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Robotics/DaguCarCommands.pdf) via...
View ArticleParsing the Kafka protocol with Erlang. Pattern matching FTW!
This is post is about I took a raw response from a Kafka broker that looked like...
View ArticleGoogle Spreadsheet JSON API: SQL Filtering
Using Google Spreadsheet as a JSON backend is not a new story, but do you know what's sexier? Filtering data from that spreadsheet with simple SQL syntax!
View Article