Welcome to thatlinuxbox.com Friday, December 14 2018 @ 10:19 am EST

Two websites for HTTP responses and status codes

View Printable Version
  • Saturday, February 21 2015 @ 06:40 pm EST
  • Contributed by:
  • Views: 1,454
Linux, Open Source, and Tech Stuff

Share
  • Google Plus
  • Facebook
  • Twitter
  • Reddit
  • LinkedIn
  • Digg

I found two useful websites the other day while cleaning up some code that deals with various HTTP responses and status codes.

The first web site is HTTP Status Codes, which as you might be able to guess provides documentation about the various HTTP status codes:

http://httpstatus.es/

Screenshots:






The second site is the HTTP Client Testing Service, or httpbin. The httpbin site provides endpoints that return all of the various HTTP status codes as well as particular content type responses.

http://httpbin.org/

Screenshots:





Both websites have an accompanying github repository (you can find links on the sites themselves) if you would like to contribute or see the source code.

Export entries from dailymile with my export tool

View Printable Version
  • Saturday, February 21 2015 @ 08:43 am EST
  • Contributed by:
  • Views: 6,519
Linux, Open Source, and Tech Stuff

Share
  • Google Plus
  • Facebook
  • Twitter
  • Reddit
  • LinkedIn
  • Digg

I have been using dailymile as my fitness training log since 2010. I have now logged over 1500 entries and 6600 miles total. I don't want to lose that information. I would like to be able to do more advanced anlalytics on my personal fitness data than the dailymile web app provides.

The built-in dailymile.com export feature is abysmal. The file generated includes only a small number of fields (date, activity_type, distance, time, felt, elevation_gain).  Seriously, they include elevation gain but do not include the name of the workout or the description?

Because of these limitations, I contacted dailymile support. The response was something along the lines of "you could always write your own tool using the API." So I did.

Announcing v1.1 of my dailymile export tool. The current version is written in Python.  The software archive can be downloaded from:

https://github.com/danstoner/dailymile_export/releases

The github repo for the project is located:

https://github.com/danstoner/dailymile_export

Here is the basic usage info:

$ python dailymile_export_to_tsv.py -h
usage: dailymile_export_to_tsv.py [-h] [-d] [-g] username

Script to download entries from the dailymile API for a particular user into a
tab-delimited file.

positional arguments:
  username     The dailymile.com username of the account to export.

optional arguments:
  -h, --help   show this help message and exit
  -d, --debug  Enable debug level logging.
  -g, --gear   Retrieve gear data also.

 

Here is some sample output of the running script and the generated output file:

 

Linode now offering 10 bucks per month plan

View Printable Version
  • Thursday, February 05 2015 @ 07:14 pm EST
  • Contributed by:
  • Views: 1,295
Linux, Open Source, and Tech Stuff

Share
  • Google Plus
  • Facebook
  • Twitter
  • Reddit
  • LinkedIn
  • Digg

Linode is an outstanding VPS provider.

I have been a happy Linode customer since 2010 (over five years). During that time, Linode has provided many free upgrades (more memory, more disk space, ...).

image

For their birthday last year, Linode announced a $10 per month VPS plan. This lower-cost plan is still hosted on Linode's ultra-reliable Linux servers with all-SSD storage and tons of performance. For more details, read their blog post:

https://blog.linode.com/2014/06/16/11th-linode-birthday-10-linode-plan/

GoPiGo - Raspberry Pi Robot

View Printable Version
  • Friday, October 24 2014 @ 08:01 am EDT
  • Contributed by:
  • Views: 1,913
Linux, Open Source, and Tech Stuff

Share
  • Google Plus
  • Facebook
  • Twitter
  • Reddit
  • LinkedIn
  • Digg

I recently received a package from another successfully funded Kickstarter project, the GoPiGo, a Raspberry Pi robot.The Kickstarter campaign raised $56k compared to their $7,600 goal.

https://www.kickstarter.com/projects/...y-pi-robot

My package included the robot kit, a bunch of accessories, and an actual Raspberry Pi Model B+. The SD card comes loaded with the Raspbian for Robots Operating System.




Now there are two Raspberry Pis in our house. Time for some fun!

For more info visit GoPiGo by Dexter Industries.

Kano Computer Kit - Great for Kids

View Printable Version
  • Friday, October 03 2014 @ 07:55 pm EDT
  • Contributed by:
  • Views: 3,509
Linux, Open Source, and Tech Stuff

Share
  • Google Plus
  • Facebook
  • Twitter
  • Reddit
  • LinkedIn
  • Digg

Last week I received our Kano Computer Kit, the "computer anyone can make". I have not backed very many Kickstarter projects and I am just so happy that this one made it. The result is a fully-polished, professional quality computer kit... for kids.



My daughter (10 years old, 5th grade) said over and over again "this is so much fun!" On the first day she spent about 4 hours playing around with the various coding environments. In particular, she liked the "Make Pong" environment where she worked through the exercises and made all kinds of interesting variations on the game (changing the ball size and color and the actions that happened when the ball hit the paddles).

The initial unboxing, assembling, and software setup of the Kano was straightforward and I only had to give my daughter a tiny bit of guidance here and there. For example, it took some care to get the Raspberry Pi board out of its safe and secure packaging. But for the most part, she read the guide and read the screen and followed the instructions and enjoyed the whole experience.

Follow the white rabbit...

(The setup includes a cute sequence of an animated ASCII art rabbit.)

The process was kind of nostalgic for me. The pong game reminded me of the Pong console game we received one Christmas when I was a kid. I remember the few times in my childhood when my dad brought home a new computer and unboxed it and hooked it up to the TV and we all spent hours fooling around with it. In fact, I almost think my dad (now a grandpa who pretends not to know anything about computers) would enjoy having a Kano to play with.

Team Kano received $1.5 million in their Kickstarter campaign, compared to their original goal of $100,000. One of the backer perks is that my name is included in the Credits file that is shipped out to the world on each little Kano computer.

https://www.kickstarter.com/projects/...e-can-make

For more info or to order a Kano Computer Kit for yourself, visit the Kano Computer Kit web site.

User Functions

Login

Connect

thatlinuxbox.com is the home of Dan Stoner's Personal Blog, Photos, and More (opinions, rants, techno-babble, and possibly a few useful tidbits of knowledge).

Questions or Comments about this site? Contact danstoner _ at _ gmail.com.

RSS Feed for this blog

Other places to find me on the web:

Twitter

LinkedIn

dailymile

GitHub

Visit Dan Stoner's profile on Pinterest.

Support This Site

If you like something that you find on this site, please consider making a purchase through one of the links below or sending me an item from my Amazon Wish List.


If you can't speak for yourself, your Road ID will.


Altra Zero Drop Footwear
10% Off and Free Shipping!

10% Off and Free Shipping!
(Discounts will become visible during Checkout)


The Clymb


Awesome VPS hosting by Linode.com