Articles by JJ
I finally started writing my first CoffeeScript today. I’m working on a very complicated AngularJS app, so this is probably the worst time to be trying something new, but since Angular directives, filters, etc. are all of a very similar boilerplate format, this actually seemed like a good time ...
Hitting a new level of meta, I just wrote a decorator decorator for Django views.
The context here is that I needed to write some custom view decorators that gave me access to the
requestobject, since the normal built-in decorators like
user_passes_testonly offer access to the
I discovered today that Python’s
Falseare actually constants—which means that their values can be changed. While this has been disallowed in Python 3, it still allows you to wreak some havoc in your—or someone else’s—Python 2 programs.
Definitely don’t do this ...Tagged in: python
By using HTML comments to insert fake ending tags, you can trick Markdown into allowing you to stick Markdown syntax inside HTML tags.
Despite being an Excel power user, I’m currently without Excel on my computer for the time being so for some data analysis I had to do I had to make do with Google Docs’ spreadsheets. While decent, and impressive for a web application, unfortunately it’s not great for ...
I’ve been experimenting with Rails a bit for the past couple weeks. This has been pretty exciting for me, as I’ve generally been much more of a Python developer and I’d never touched Ruby before, so it was very interesting to see a completely different approach to ...
About a third of the way into Hacker School, I got myself entrenched in a rather unusual project—trying to figure out how to get an automatically updated weather icon into my Bash prompt, doing it purely in Bash for practical (and aesthetic) reasons.
I called it BashWeather.
Today at Hacker School, I gave a seminar entitled “Freelance and Travel for Fun and Profit,” talking about the year I spent traveling the world while supporting myself as a freelance programmer. I’ve long been meaning to write this up as both a series of blog posts and a ...!-->
(If you haven’t seen the CodeMash 2012 WAT video, you should.)
In this case, Amy wrote about how unintuitively in Python, when creating a function with default arguments, those ...
While working through Clojure for the Brave and True, I came across an explanation of Clojure’s
compfunction and some basic implementations of versions of
compthat take only two arguments or three arguments. The tutorial challenged me to try to completely re-implement
compto accept an arbitrary number ...
In the past, my sites have always been hosted places ...
As I’ve always been interested in cryptography and cybersecurity, I started working on it a bit while at Hacker School, mainly by working on the challenges in the Microcorruption capture the flag game.
In my quest to learn a bit more about front-end and responsive design, I’ve decided to do a mini-project building a Pacman map-editor in the browser. Hopefully, I’ll also be able to make it playable. This was inspired by a conversation with Mary about ...!-->!-->
Matt at Hacker School has plans to go back home and hook up a Raspberry Pi or an Arduino to a motion sensor in order to detect when his cat jumps onto the table (which apparently happens too much)—and maybe scare him as well, making it make a loud ...!-->
The benefits of hosted static site generators include crazy ease of use, auto-deployment, hosting, etc.—but on the downside, you’re sometimes a bit more limited in the control you have over the site.
When starting out with trying Scriptogr.am, I was a bit disappointed by the lack of ...
I’m undecided on exactly where to settle on hosting my site. The main things I’m looking for are:
- Code syntax highlighting
- Nicely formatted list of categories and full archive on the sidebar
- Editing from anywhere
- Ease of publishing/deployment
As of this writing, my Hacker ...
Activity layouts: XML vs Java
For a long while, I couldn’t really understand the difference between the XML files and the Java files. It seemed at first like the XML files determine what objects are available on the display for a particular activity, and then the actions and interactivity ...
As part of my quest to finish packaging up my Bash function that gets the updated weather in your Bash prompt, I needed to better organize my code, and so started putting some code into functions. Bash, however, is a fickle language, and the difficulty that quickly arose was using ...
I’ve been working quite a bit this week and last week with Arduinos and Spark Cores (an Arduino-like device with WiFi and a cloud service built-in). I’ve been working on a few projects, including many out of the Arduino starter book, hooking up a remote control car to ...