Blog Archives

Mapping IPv4 Address (with Hilbert curves) in R

January 2, 2015
By
Mapping IPv4 Address (with Hilbert curves) in R

While there’s an unholy affinity in the infosec commuinty with slapping IPv4 addresses onto a world map, that isn’t the only way to spatially visualize IP addresses. A better approach (when tabluation with bar charts, tables or other standard visualization techniques won’t do) is to map IPv4 addresses into Hilbert space-filling curve. You can get a good feel...

Read more »

Shell Script to Build OS X ‘Shiny Apps’ from Github Gists

December 2, 2014
By

Since the previous post was fairly popular, I went ahead and built a small shell script (also below) to ease the process of building the OS X Shiny-gist application. After copying the script to a place you can run it from in your PATH and executing a “chmod a+x shinyapp.sh” (or whatever you named it), all you have to...

Read more »

Turn R (Shiny) Scripts Into Double-clickable OS X Applications With One Line of Code

November 30, 2014
By
Turn R (Shiny) Scripts Into Double-clickable OS X Applications With One Line of Code

I was playing with some non-security-oriented R+Shiny code the other day, and thought that Shiny apps would be even more useful if they were double-clickable applications that you could “just run”—provided R was installed on the target system—vs have to cut/paste code into R. Now, I know it’s not hard to enter: shiny::runGist('95ec24c1b0cb433a76a5', launch.browser=TRUE) at an R console, but I’ll wager...

Read more »

Don’t Worry _Too_ Much About The 2014 Gallup Crime Poll

October 29, 2014
By
Don’t Worry _Too_ Much About The 2014 Gallup Crime Poll

Gallup released the results of their annual “Crime” poll in their Social Poll series this week and spent much time highlighting the fact that “cyber” was at the top of the list. (There’s nary a visualization on the Gallup post or in the accompanying PDF, so keep that graphic handy or use the scraped/cleaned poll data and...

Read more »

Installing dplyr 0.3 on Mac OS X (Mavericks)

September 25, 2014
By

UPDATE Per the author, a devtools::install_github("hadley/devtools") should take care of everything you need prior to installing the latest dplyr (though I did not have postgres libs installed and suspect that might still be needed). The R dplyr package just turned 0.3 and to get it working in my development environment (OS X Mavericks) I had to do the following: brew install postgresql...

Read more »

“Do You Want to Steal a Snowman?” – A Look (with R) At TorrentFreak’s Top 10 PiRated Movies List #TLAPD

September 18, 2014
By
“Do You Want to Steal a Snowman?” – A Look (with R) At TorrentFreak’s Top 10 PiRated Movies List #TLAPD

We leave the Jolly Roger behind this year and turn our piRate spyglass towards the digital seas and take a look at piRated movies as seen through the lens of TorrentFreak. The seasoned seadogs who pilot that ship have been doing a weekly “Top 10 Pirated Movies of the Week” post since early 2013, and...

Read more »

Migrating Table-oriented Web Scraping Code to rvest w/XPath & CSS Selector Examples

September 17, 2014
By

I was offline much of the day Tuesday and completely missed Hadley Wickham’s tweet about the new rvest package: Are you an #rstats user who misses python's beautiful soup? Please try out rvest (http://t.co/PeiIHr3jDW) and let me know what you think.— Hadley Wickham (@hadleywickham) September 12, 2014 My intrepid colleague (@jayjacobs) informed me of this (and didn’t...

Read more »

Keep your team informed with “slackr”

September 5, 2014
By
Keep your team informed with “slackr”

Karl Broman did a spiffy job summarizing a good number of the options available to R folk if they want to get notifications from R. You can also generate OS X notifications as well. If you’re using Slack for team coordination and communications, you’ve got a new option - slackr that also enables you...

Read more »

How unusual is it for TLDs to resolve to an address at the top most level? (a.k.a. a sneaky, basic introduction to dplyr)

August 29, 2014
By
How unusual is it for TLDs to resolve to an address at the top most level? (a.k.a. a sneaky, basic introduction to dplyr)

I saw this on Hacker News this morning and it got me curious as to how many other TLDs (e.g. .com) resolve to an address (i.e. http://uz./ displays a page in your browser since uz. resolves to 91.212.89.8). This is quick work with R and the resolv & iptools packages, plus I threw in a little...

Read more »

statebins – U.S. State Cartogram Heatmaps in R

August 27, 2014
By
statebins – U.S. State Cartogram Heatmaps in R

UPDATE The statebins package is now available on CRAN I became enamored (OK, obsessed) with a recent visualization by the WaPo team which @ryanpitts tweeted and dubbed statebins: Statebins! RT @kevinschaul: States with the most jobs lost or threatened because of trade. http://t.co/r1pJhudpz3 pic.twitter.com/eMozAgyEAb— Ryan Pitts (@ryanpitts) August 24, 2014 In a very real sense...

Read more »