Gadgets & hobbies

Electronic gadgets, hobbies, developing

How to check if all Calibre books are already in the Amazon cloud?

Preface

My primary software for managing Kindle books is Calibre. I’m using Amazon cloud for books synchronisation and sometimes I’d like to ensure that all my books stored in Calibre have been already sent to the cloud. Mainly, to avoid re-sending books and avoid duplicates.

Getting a list of Amazon books

Refer to Kindle Library List article.

After executing this step you should have one or more text listing your books:

Getting a list of Calibre books

Now open your Calibre, press a small triangle icon next to the Convert Books icon. Follow the instructions below:

After pressing OK you should get your Calibre books:

Compare the lists

In the very last step, use tide up the output files.

And finally – use a side-to-side text compare tool (JEdit, WinMerge, any other) and view the differences between Amazon.txt and Calibre.txt:

Review the differences and take proper actions:

  • Send the file to the cloud
  • Remove duplicates in the cloud (yes, this will be also visible in the output)

I hope it will help.

(more…)

Alfred 3 workflow – Time Zone

Do you like Alfred? I like too… I’ve recently found bunch of very nice Workflows. For me, the most used one is for sure Time Zone.

The workflow has been created by Mr Carlos from New Zealand and published on the Alfred Forum. I’ve enhanced the workflow by adding a few new functionalities:

 

 

 

  • Migration to Alfred 3
  • Converting any time to all pre-defined time zones
  • Enabling 24-hrs time format
  • Displaying phone country code

After all it looks like below:

Conversion of a time in your local time to your pre-defined time-zones – “tz <time>” in formats HH, HHMM or HH:MM:

CarlosNZ, thanks for this great tool!

Workflow can be downloaded from here: Alfred-TimeZones

(more…)

From Drupal 6 to Drupal 8 and… finally at WordPress

Website update & engine refreshment (announced in Changes, changes post) took me really a lot of time (it might be 12-18 months or so). For whole this time I was scratching my head how to migrate old Drupal 6 with plenty of dirty configs to the latest & greatest version.


I’ve had plenty of attempts for migration, including Drush, Drupal migration plugin, even manual (!!) – in each of them, the result was not really satisfying:

 

  • Content and formatting was not migrating correctly
  • Multi-language pages made the migration tools totally confused

Time was flying and I couldn’t run away from buggy and insecure D6.

(more…)

Changes, changes…

After years, significants changes on the site:

  • New domain! Finally, I managed to get my personal domain http://jhartman.pl hence I’m not tied to webd.pl
  • It turned out that it’s easier to migrate my old Drupal 6 to WordPress rather than to Drupal 8. Therefore I’m now on the new engine and so far I’m pretty happy
  • Attempted to AdSense, however Google is pretty picky and I’m not really sure if I will get approval

Withings to Garmin Connect

Since a while I’m owning great Withings Scale which has a capability to store measurements in a cloud. Because I’m using Garmin GPSes (and Garmin Connect), I’d love to synchronize the measurements to the Garmin Connect site.

Lucky, I found a great script garmin-withings.

Unfortunately, after latest changes in the Garmin Connect (implementation of SSO on march 2014) the script stopped to work. I’ve compiled changes proposed by https://github.com/cpfair/tapiriik and it seems that the script with my updates works again (well, at least until further changes in Garmin Connect…)

You can find the script on https://github.com/jaroslawhartman/withings-garmin-v2

ToDo

Garmin Connect can display a lot of other parameters, not only weight and body fat level:

Measurements

It would be great to calculate all these figures and post them to Garmin Connect, right? 🙂

Half-Life 1 on Wine

Almost 20 years after game release I wanted to play it to check if it provokes same feelings.

As I’m on MacOS now, the obvious choice was to use Wine to run the game.

After setting Wine environment and installing the game, it turned out that although the game starts up, it’s completely un-usable as we can see just 1/3 of the screen, without any option to change the resolution:

HL1

(more…)

Kindle Library List

Extracts documents list from Amazon Kindle webpage and save into a txt, xml and html file. Project stored in GitHub.

How to use:

  1. Download (or build) KindleLibrary.jar
  2. Navigate to Manage your content and devices Amazon page (tested using Chrome but I trust it should work with any other web browser)
  3. Switch Show to Docs Image 1
  4. Scroll down to reach end of your list (or to see Show more button) Image 2
  5. Save the html (File -> Save Page As…, using Complete Webpage). Override the default filename with an easy name, e.g. 1.
  6. If more docs pending, press Show More button on the bottom of the page and iterate to Step 4
  7. When all pages iterated, open a command line and invoke the conversion:

(more…)