Category Archives: Blog Post

Getting your Zwift ID the easy way

Zwift is an online training app for cycling (and running). If you have an account at Zwift, you can also use other web apps, such as Zwift Power and Zwift GPS. You connect these apps to your Zwift account using your Zwift ID.

Getting your Zwift ID can be a bit tricky. For some reason, Zwift is not simply listing it in your profile, but you can figure it out if you analyse the link of a downloaded activity (.FIT) file.

It can be much easier using a bookmarklet. A bookmarklet is a small tool that is installed in your bookmarks bar and that can do simple tasks, such as getting information from the current web page.

Continue reading

New version of Gmail to Evernote now in spreadsheet

A new version of the Gmail to Evernote script has been released. It is now embedded in a spreadsheet, so you have all the relevant information together and can easily view it. Moreover, you have your own copy of the script now: much more secure, but it is not to update automatically anymore. Therefore, current users are advised to install the latest version and use this instead of the old version. The old version may stop working in the course of the next week (end of April 2019).

Continue reading

Changing the settings for a Garmin Connect IQ App

Update: Garmin has now a page on their support site explaining How to Access the Settings of Downloaded Connect IQ Content Using the Garmin Connect App.

Garmin has a range of sports watches, on which you can install Apps, both provided by Garmin and by the community. You can find the  Apps developed by HarryOnline in the Connect IQ store.

From the feedback I received, I noticed that many people find it hard to change the settings for an App. This can be done on the watch itself, if it provides such an option via the Menu, or using a connected computer or smartphone. On a computer  you use Garmin Express, on a smartphone there is the Connect Mobile App. For both I will describe how the settings can be changed.

Continue reading

ObjDB: the easy way to store data with Google Apps Script

There are various ways in Google Apps Script to store data, a common way is to store data in a spreadsheet. Spreadsheet data is relatively easy to access, and sample code is provided to read data from a spreadsheet into an array of JavaScript objects, and to write from objects to the spreadsheet. For more advanced database functions (update, select, delete), you have to do some more programming.

For larger applications, you may want to use MySQL or other databases via JDBC, Again, some sample code is provided, but this time not to read/write to and from JavaScript objects. A lot more coding is required, especially to link the fields in each record to the field name, instead of just the offset in the results rows.

To make it easier to work with data in Google Apps Script, both from spreadsheets and from JDBC databases, I have developed the ObjDB library. This is a set of functions, with which you can open a spreadsheet or database, and do all the basic operations: select, update, insert, delete. Functions are the same for spreadsheets and for JDBC databases, except the different parameters for the open() function, so if you start with data in a spreadsheet, and later move the data to a database, there is hardly any code to change.

To show how the library works, I prepared a demo spreadsheet with script. Open the link, it should create a new copy of the spreadsheet, if not, copy it yourself. Then go to ToolsScript editor…, and run any of the functions to see it in action.

Note that the script in this spreadsheet includes the objDB library, see under ResourcesManage Libraries….

For more documentation, reference and source code, go to http://googlescripts.harryonline.net/objdb.

How to index Project Gutenberg files

project_gutenberg_logoProject Gutenberg offers over 40,000 free ebooks: choose among free EPUB books, free kindle books, download them or read them online. Recently, they have added support for Dropbox, so you can download ebooks directly to your Dropbox account. It will create a folder ‘Apps/gutenberg’, and will store all ebooks in that folder.

After a while, this Dropbox folder will have a long list of files, all with names like pg1234.epub and pg5678-images.epub. They have some meaning, but which file contains which title? Of course, you can rename each ebook  after downloading, but this is extra work, and I want a smart solution.

pg_filelist

So I created a script to create an index for all ebooks–at least, for those in EPUB format. Now there is simply an index.html file, which will open in any browser. It shows the file name, together with the creator, title and language. Depending on how you view the index.html file, the links may be clickable, In any case, you can quickly see which file is which book.

pg-index

The script works on any set of EPUB file, but usually, they will have a more meaningful name and there will be less need for a script like this.

Continue reading