Project Euler Q5 :: Smallest multiple
Explanation.ย Standard caveat: don't look here if you are trying to do these yourself. 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is...
View ArticleWhat are the odds?
[ Trigger warning: this post contains maths. Please don't be afraid, it probably won't bite. ] After posting this photo of our lottery ticket to FacebookI thought more and more about random-event...
View Articleadrianblp/taylor.swift ยท GitHub
Programmers are a funny bunch of people. Searching for 'Swift' inevitably leads to results for a certainย pop singer. Someone's decided that there needs to be at least one result going the other way....
View ArticleNew logo
Irregularly Scheduled Programming. Now with the namesake URL too! www.irregularlyscheduledprogramming.com.auย -- it's coding time.
View ArticleSimplyStats Thanksgiving Puzzle
I owe a lot to Jeff Leek and Roger Peng for their great Coursera courses, in which I learned to program in R. They (along with Rafa Irizarry) run the Simply Statistics blog, which I highly reccomend....
View ArticleJackpot!
The powerball lottery in the USA has jackpotted to a first prize of $1.3 billion, which is just a silly amount of money. The cost of an entry (if you happen to be in the USA) is just $2,...
View ArticleAWS Migration
Given how terrible my internet connection has been of late, I decided to migrate my site over to Amazon Web Services (AWS) where it's now hosted for free with a reliable connection. The migration...
View ArticleAdelaide Traffic - Part I
Have you seen the little shark-fins on top of some traffic light control boxes? Have you seen the new 'x minutes to y road' signs? Did you know they're connected? DPTI installed a heap of bluetooth...
View ArticleIs it crowded in here?
This was a neat graphic that someone made. It shows the population at a given latitude or longitude as a bar chart, overlayed on a map of the world itself. It shows where people live; the bigger the...
View ArticleImage marginal histograms
Another day, another interesting challenge. I follow Bob Rudis' (a.k.a. hrbrmstr's) blog, typically via R-bloggers, and this post caught my eye. Partly because I thought I knew of an existing way to do...
View ArticleBring on the ROpenSci #auunconf 2016!
I'll be heading to the 2016 ROpenSci un-conference (hackathon) in Brisbane later this month to smash out a heap of open-science R code. Ideas are already flowing quite nicely, and I'm confident that...
View Article52vis Week 2 Challenge
From Bob Rudis' blog comes a weekly data/coding challenge. I didn't quite get the time to tackle last week's but I thought this one offered up a pretty good opportunity. Half the challenge is of course...
View Article52vis Week 2 Challenge -- Australian Version
I mapped out the USA homelessness rate in my last post as a challenge and noted at the end that it would be interesting to do the same for Australia. That was the first comment I received in person,...
View ArticleSimpler isn't always faster
My name is Jonathan, and I have a coding obsession. I'll admit it, the Hadleyverse has ruined me. I can no longer read a blog post or stackoverflow question in base R and leave it be. There are...
View Article#auunconf slack users' timezone locations
I had never used slack before, but had read a heap of tech articles extolling its virtues. Apparently this is what our current Prime Minister advocates within Cabinet. The upcoming #auunconf organising...
View ArticleSolving Inequality (the math kind)
This neat approach showed up recently as an answer to a FiveThirtyEight puzzle and of course I couldn't help but throw it at dplyr as soon as I could. Turns out that's not a terrible idea. The question...
View ArticleBad Neighbours (no, not the movie)
Another day, another compulsion to see if I can do any better than someone's solution. This one also comes from the FiveThiryEight Puzzler challenge courtesy of Xi'an The original challenge this time...
View ArticleFrom a (set.)seed grows a mighty dataset
Can you predict the output from this code? printStr <- function(str) paste(str, collapse="") set.seed(12173423); x <- sample(LETTERS, 5, replace=TRUE) set.seed(7723132); y <- sample(LETTERS,...
View ArticleImages as x-axis labels
Open-source software is awesome. If I found that a piece of closed-source software was missing a feature that I wanted, well, bad luck. I probably couldn't even tell if was actually missing or if I...
View ArticleImages as x-axis labels (updated)
They say "if you want to find an answer on the internet, just present a wrong one as fact. Then wait." It didn't take long, actually. Despite my searches while trying to get images into x-axis labels...
View Article