Profile cover photo
Profile photo
Daniel Howard
34 followers
34 followers
About
Daniel's interests
View all
Daniel's posts

Post has attachment
The Eh (Canadian) programming language
I know a guy who is Canadian and, just for fun, I wrote a programming language for him. The language is the Eh programming language.   The syntax is similar to JavaScript, except that instead of a line ending with a semicolon, it ends with a comma, a space,...

Post has attachment
Put your git branch in your Mac or Linux prompt
There is a lot of examples out there but here's a basic way to show your Git branch in your profile. First, edit your .bash_profile. $ vi .bash_profile Press "i" to put vi in "insert mode".  Then, add the following to your .bash_profile: ps1_git_branch() { ...

Post has attachment
Private data in JavaScript using createPrivate()
/**
* Wrap the prototype functions and put the wrappers on the
* object itself. A wrapper merges the object and private
* properties before the call, makes the call then unmerges
* the object and private properties.
*
* Normally, you create your priv...

Post has attachment
Make Mac Minecraft work on Oracle Java
My son likes to play Minecraft.  I like to use Oracle Java 8 instead of the decrepit Apple Java (6) that Apple insists on.  Can't Minecraft use Oracle Java 8? It can but it took me 6 months to figure out how to do it right.  You can modify the Minecraft Mac...

Post has attachment
Making Mac Minecraft to work with Oracle and Apple Java
My son likes to play Minecraft.  I like to use Oracle Java 8 instead of the decrepit Apple Java (6) that Apple insists on.  Can't Minecraft use Oracle Java 8? It can but it took me 6 months to figure out how to do it right.  You can modify the Minecraft Mac...

Post has attachment
Converting a Mac .app to use universalJavaApplicationStub
My son likes to play Minecraft.  I like to use Oracle Java 8 instead of the decrepit Apple Java (6) that Apple insists on.  Can't Minecraft use Oracle Java 8? It can but it took me 6 months to figure out how to do it right.  You can modify the Minecraft Mac...

Post has attachment
What does _.bind() do?
The name, "bind", conjures fear.  It's scary.  Binding sounds mysterious and strange. Underscore.js has the _.bind() function.  What does it do? Let's say that you using the JavaScript setTimeout() function to set the focus on a jQuery DOM element. var el =...

Post has attachment
AngularJS dependency resolution and child controller creation
Suppose that you have an AngularJS template (HTML with AngularJS tags, same thing) and an AngularJS controller and you want to execute them together: var elem = angular.element(angularTemplateHtml); var compileFunc = $compile(elem); $controller(controllerNa...

Post has attachment
Angular.js $formatters
Suppose you have a new directive that declares a tag like: <input type="array"> In AngularJS v1.4.1, when you add an "input" directive, AngularJS decides how its going to store your data.  Will your data be stored as a string (in a text node), in a JavaScri...

Post has attachment
QUnit tests on Angular directives
Recently, I had an little homework assignment to create a "signup" web application using Angular.js. You can see the app here . As part of that assignment, I created an Angular directive to validate the data in the "password" and "verification" text inputs....
Wait while more posts are being loaded