Welcome to thatlinuxbox.com Monday, March 30 2020 @ 01:27 PM UTC

My dailymile_export tool - this time in Perl

View Printable Version
  • Wednesday, May 20 2015 @ 06:55 PM UTC
  • Contributed by:
  • Views: 1,878
Linux, Open Source, and Tech Stuff

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

I first announced my dailymile export tool in February 2015.

Announcing v1.2 of my dailymile export tool

In this most recent release of dailymile_export I have included a Perl 5 version of the script. The download bundle is available:

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

The basic usage info of the perl script:

 

$ perl dailymile_export_to_csv.pl --help

Description:

  Script to download entries from the dailymile API for a particular user into a CSV.

Usage: dailymile_export_to_tsv.pl [OPTIONS]

  Parameters:
    --help, -h         Display this usage help.
    --username, -u USERNAME
                       The dailymile.com username to export (Required).
  Options:
    --debug, -d        Enable debug level output.
    --gear, -g         Enable download of gear info (not yet available)
    --maxpages, -m MAX
                       Maximum number of pages to fetch (to limit http requests during testing)

 

The github repo for the project is located:

https://github.com/danstoner/dailymile_export

If my dailymile export tool is useful to you, or you have suggestions or feedback, please leave a comment here or as a github issue.

 

Getting Started with Perl 6

View Printable Version
  • Wednesday, March 11 2015 @ 12:07 AM UTC
  • Contributed by:
  • Views: 6,492
Linux, Open Source, and Tech Stuff

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

The goal of this blog post is to document the steps needed to install and run Rakudo Perl, which is a "useful and usable distribution" of Perl 6

The #perl6 IRC channel on freenode has been very active the few times I popped in with questions and I was able to get them answered very quickly. Larry Wall announced that he wants to release Perl 6 by Christmas 2015 ( http://http://blogs.perl.org/users/shadowcat_mdk/2015/02/fosdem-2015-its-christmas.html ) and at this point it seems like the Perl 6 community is moving along on its merry way towards that goal.  The Perl 6 design documents are interesting ( http://design.perl6.org/ ), especially the Apocolypse docs which talk about the various aspects compared to Perl 5 and nice tidbits such as "Larry's First Law of Language Redesign."

Perl 6 even has its own logo:

Ubuntu and Debian already contain Perl 6 in their repositories. The 'rakudo' package description on Ubuntu 14.04 is "Perl 6 implementation on top of Parrot virtual machine".  I did not test this but it should be easily installable via:

Two websites for HTTP responses and status codes

View Printable Version
  • Saturday, February 21 2015 @ 11:40 PM UTC
  • Contributed by:
  • Views: 1,828
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 @ 01:43 PM UTC
  • Contributed by:
  • Views: 8,030
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
  • Friday, February 06 2015 @ 12:14 AM UTC
  • Contributed by:
  • Views: 1,652
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/


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

GitHub

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.


The Clymb


Awesome VPS hosting by Linode.com