Adventures of a Trench Coder

Throughout my career, when solving a problem related to a project,  I've made a habit of sending the solution to myself in an email. Over the last 15 years I've accumulated hundreds, maybe thousands, of emails. And now I've decided to write blog posts instead. Hopefully someone out there will find something in this blog that helps to solve a problem that I've already encountered.

 

HTML 5 - HTML ReadOnly vs Disabled

The difference between readonly and disabled attributes
2014-04-25

Blog - Java - JDBC Code Examples for MSSQL

I had to use JDBC for a recent task. Here are a few simple examples of executing a simple query and also a prepared statement:
2013-11-14

iOS - Getting the Height of the StatusBar in iOS

A snippet that will give you the status bar height, regardless of the orientation
2013-11-01

iOS - Some Problems of Developing for iOS

Issues that I'm experiencing as a part-time iOS developer
2013-10-30

JavaScript - Currying and Partially Applied Functions

A very simple example of currying and partial applied functions
2013-10-23

Blog - Java Generics

A good little code sample to help with understanding generics in Java
2013-10-10

JavaScript - Sorting an array of objects by a property

How to sort an array of objects by one of the object's properties
2013-10-10

JavaScript - Be careful when using instanceof

If you intend to throw an error if an object is not an instanof some class, be careful of this mistake that's easy to make.
2013-10-04

JavaScript - Handlebars - Calling a helper function from another helper

And a useful helper for populating select boxes.
2013-09-27

SQL - Some Basic and Useful Cypher Queries for Neo4J

A few queries to help in getting started with Cypher and Neo4J
2013-07-25

Blog - Neo4j Demo

A demo that I did on Neo4j
2013-07-15

Blog - Bulk Import Data in Neo4j 2

How to import data from a text file into Neo4j version 2
2013-07-03

jQuery - A Tip For When You Do Cross Origin Requests

I stumbled into an issue in IE when doing CORS ajax calls
2013-06-27

JavaScript - Using Handlebars with Backbone and RequireJS and Precompiling templates

Here are 3 different ways of using Handlebars templates with Backbone and RequireJS
2013-06-06

HTML 5 - Mobile Web Performance Optimizations

This is my summary of an excellent article that I read in Communications of the ACM (written by Nicholas Zakas) .
2013-05-17

JavaScript - Getting Google Maps To Work With RequireJS

This can be a little tricky, hopefully this post will save you some time.
2013-04-23

Python - Simple WebSocket Server in Python

Here's a simple websocket server that I found on github, which I modified very slightly.
2013-04-17

Blog - Forward And Reverse Proxy Servers

Brief overview of proxying.
2013-04-16

Android - Inspecting Your SQLite Database with adb

How to crack open your SQLite database from the adb shell
2013-04-12

Blog - Overview of Forks, Threads, and Asynchronous I/O

Applications that handle multiple connections can be built in one of three ways; forking processes, using muliple threads, or using asynchronous I/O.
2013-04-11

JavaScript - Example Of A Memory Leak

Here's something to watch out for in your code.
2013-04-09

JavaScript - Notes From Chrome Developer Course at CodeSchool

I stumbled into this really great course on using the Chrome developer tools. Here are my notes...
2013-04-09

Blog - Avro - Getting Started (also a good review on using classpath in Java)

Things I stumbled into when messing around with avro...
2013-04-07

JavaScript - How To Copy An Array In Javascript

I bumped into this when I was working on a prototype, and discovered that there's a very easy solution...
2013-04-01

JavaScript - RequireJS, Google Maps, and Pathing Issues

I learned a few lessons about getting Google Maps to work with RequireJS, and I learned a few things about paths in Requre.js.
2013-03-22

JavaScript - Backbone listenTo()

Some notest on backbone's listenTo() method
2013-03-07

C Programming - Example of a Binary Tree

A good little example of a b-tree.
2013-02-16

jQuery - Use e.which for Keyboard Events

When dealing with callbacks for keyboard events, use e.which.
2013-01-30

jQuery - remove() vs. detatch()

Both will remove an element from the DOM, but remove() will wipe out all data and handlers, while detatch() will leaves them untouched.
2013-01-30

HTML 5 - Scolling on Mobile Devices

Some CSS tricks for scrollable areas
2013-01-21

Book Reviews - Java EE 6 Pocket Guide by Arun Gupta; O'Reilly Media

Review of Java EE 6 Pocket Guide, by Arun Gupta
2013-01-06

Book Reviews - Learning Cocoa with Objective-C by Paris Buttfield-Addison, Jonathon Manning; O'Reilly Media

This is a perfect book for intermediate iOS programmers who want to reinforce some of the fundamentals, and learn about new advanced concepts.
2013-01-06

Python - My first attempt at a Python SQLite class to use in an app

Here is a simple class that is used to fetch data from a SQLite database for a python app
2012-12-19

Blog - Markdown Reminders

Some self-reminders about working with Markdown syntax
2012-12-13

SQL - SQLite Reminders

Some self-reminders about sqlite
2012-12-12

Blog - Git Reminders

Some notes on using git
2012-11-17

JavaScript - Publisher Subscriber Pattern

I've been playing with the pub/sub pattern.
2012-11-16

JavaScript - Learning About Dust.js

I've been playing with Backbone.js and I discovered a templating tool called dust.js that looks really promising (these notes are not coherent , yet)
2012-11-12

JavaScript - Notes on YUI Doc

Self reminders for using YUI Doc
2012-11-12

JavaScript - Using JSON.stringify() on an object that contains cyclical references

I stumbled into this when using Google Maps, you can override object values in the output of JSON.stringify().
2012-11-09

Blog - Overview of UX Testing

Here's my 10 minute introduction to usability testing, and how it rocked my world.
2012-11-02

Blog - Three Google Analytics metrics for measuring the usability of your website

Funnels, bounce rate, and search terms can give you valuable insight into the usability of your website.
2012-10-31

JavaScript - What is JSONP?

A quick reminder about how JSONP works.
2012-10-30

Blog - Self reminder about BASE encoding

This is a self reminder about base encoding (binary, hexidecimal, and base 10)
2012-10-30

iOS - Dealing with military time (and some regular expression stuff too)

Had to convert military time into AM/PM. I thought there would be an easier way to do it, but couldn't find anything. Here's what I did:
2012-10-30

JavaScript - The main difference between forEach() and map()

While forEach() alters the array that it's called on, map() returns a new array.
2012-10-24

SQL - Formatting a timestamp

Quick tip for formatting a timestamp in SQLite
2012-10-21

SQL - How to query the version of a sqlite db

Here's a quick one, but I've had to look this up more than once, so I thought I better blog about it
2012-10-19

iOS - How To Find The Line Number Of An Error

As a beginner, one of my biggest pet peeves about working with iOS, was not being able to see the line number that caused an error in the debugger.
2012-10-09

JavaScript - When using setTimeout(), setInterval(), or requestAnimationFrame()

Remember that the scope of 'this' will be global when your callback function runs in setTimeout(), setInterval(). or requestAnimationFrame().
2012-10-06

SQL - Adding a Time and a Date and then Converting to Timestamp

This took me longer to figure out than it should have.
2012-10-05

iOS - Quick Tip - Keyboard and becomeFirstResponder

Quick Tip - Keyboard and becomeFirstResponder
2012-10-02

Android - Links To Android Articles On The Old Blog Site

To see a few posts on Android, visit the old blog site. Hope to get back to android development soon.
2012-09-28

Book Reviews - WebGL: Up and Running by Tony Parisi; O'reilly Media

If you're a web developer looking for a quick introduction to 3D graphics, then this is the book for you.
2012-09-08

jQuery - A quick note on the detach() method..

Here's an interesting little observation I made about the detach() method
2011-10-30