Jun 15 2018

test

Published by under General

Test post, different content, and some more

Comments Off on test

Jun 08 2018

First GitHub Repository

Published by under General

I’ve been hacking code for many years now but have never considered myself to be a real software developer, despite having built apps in a variety of languages. Over the last couple of years I’ve enjoyed hacking away at Python and have created many websites, apps, and scripts but never really published them.

I just published my first GitHub repository with a Python script to retrieve the latest spot price from the Flick website for our account. Flick have been promising to release an API for years but have yet to deliver anything, so my script uses Requests and BeautifulSoup to scrape the spot price from the Flick dashboard.

When first run, the script prompts for your credentials and saves them to a file on your disk so that the script can be run without interaction in the future. And when you first successfully authenticate it will save your cookies to a file to avoid having to reauthenticate each time it runs. The spot price on the Flick website is updated every half hour, so the script will save the current spot price to disk as well as the end date time which indicates when the next website update will be. Then the script can be run as often as you like but it will only ever go to the website once while that price is valid.

I created the script so that I could retrieve the spot price and integrate it into my HomeAssistant installation. I plan to do further automation based on the current spot price but for now I’m just sending myself a Telegram notification when the price changes.

 

Comments Off on First GitHub Repository

Jan 06 2014

LEGO The Simpsons House Revealed

Published by under General

LEGO The Simpsons House (71006) Revealed.

Comments Off on LEGO The Simpsons House Revealed

Sep 03 2012

Just testing the email subscription plugin

Published by under General

Testing, nothing to see here.

 

Comments Off on Just testing the email subscription plugin

Apr 01 2012

another test

Published by under General

Thumbnails?

Comments Off on another test

Apr 01 2012

Test post

Published by under General

On the new server

Comments Off on Test post

Nov 24 2010

A short history of airport security

Published by under General

A short history of airport security: We screen for guns and bombs, so the terrorists use box cutters. We confiscate box cutters and corkscrews, so they put explosives in their sneakers. We screen footwear, so they try to use liquids. We confiscate liquids, so they put PETN bombs in their underwear. We roll out full-body scanners, even though they wouldn’t have caught the Underwear Bomber, so they put a bomb in a printer cartridge. We ban printer cartridges over 16 ounces — the level of magical thinking here is amazing — and they’re going to do something else.

Bruce Schneir via A Waste of Money and Time – Room for Debate – NYTimes.com

Comments Off on A short history of airport security

Nov 22 2010

How to Crash IE with JavaScript – Jeff Bail

Published by under link

Link: How to Crash IE with JavaScript – Jeff Bail

How might you do that? Glad you asked. Using JavaScript, it’s dead simple:

for (d in document.write) {
        document.write(d);
}

Comments Off on How to Crash IE with JavaScript – Jeff Bail

Nov 22 2010

Published by under video

Source Code Trailer on Devour.com Looks awesome.

Comments Off on

Nov 21 2010

Published by under photo

Give yourself the ultimate Xmas present with a free IDEOS 8150 on a $59 or higher Pay Monthly plan. As a special bonus, Choice Mobile is also including a free 4GB Micro SD card with every IDEOS 8150. via Ultimate Xmas Present » Choice Mobile

Comments Off on

Next »