HowTo: view and copy your Kindle ebook highlights and notes

  1. Go to https://read.amazon.com/notebook and log in as yourself
  2. Choose the book you made notes or highlights in
  3. Highlight and copy what you want

 

Example:  I highlighted parts of Python Tricks: A Buffet of Awesome Python Features: (screenshot of the website followed by a normal cut&paste):

Your Kindle Notes For:

Python Tricks: A Buffet of Awesome Python Features

Dan Bader

Last accessed on Tuesday May 14, 2019

6 Highlight(s) | 0 Note(s)

Yellow highlight | Page: 20

Python’s assert statement is a debugging aid, not a mechanism for handling run-time errors. The goal of using assertions is to let developers find the likely root cause of a bug more quickly. An assertion error should never be raised unless there’s a bug in your program.

Yellow highlight | Page: 22

The biggest caveat with using asserts in Python is that assertions can be globally disabled3 with the -O and -OO command line switches, as well as the PYTHONOPTIMIZE environment variable in CPython.

Yellow highlight | Page: 23

it becomes extremely dangerous to use assert statements as a quick and easy way to validate input data.

Yellow highlight | Page: 25

you should always do a quick smoke test with your unit test cases. Make sure they can actually fail before you move on to writing the next one.

Yellow highlight | Page: 31

So what’s the with statement good for? It helps simplify some common resource management patterns by abstracting their functionality and allowing them to be factored out and reused.

Yellow highlight | Page: 31

Opening files using the with statement is generally recommended because it ensures that open file descriptors are closed automatically after program execution leaves the context of the with statement.

 

The folks at Marble Jar Channel have a wonderful video of using the highlights & notes with Google Sheets and Evernote.  The same method can be used with Microsoft’s OneNote or whatever you want really:

It wouldn’t take much to automate the process 🙂

Share Button

High overview of Cloud Computing with Ubuntu Eucalyptus Cloud (UEC) from Canonical

I installed Ubuntu Eucalyptus cloud (#UEC) on a couple of servers at home. I was naively expecting it to be similar to VMware. Oh I was wrong.

UEC is the Eucalyptus ‘cloud’ software running on Ubuntu servers. The instances would run under the KVM or Xen hypervisors. Ubuntu’s defaulted to running KVM but isn’t restricted by it.

“Eucalyptus is a software available under GPL that helps in creating and managing a private or even a publicly accessible cloud. It provides an EC2 compatible cloud computing platform and S3 compatible cloud storage platform…” Eucalyptus Beginner’s Guide

This is how a vm works in UEC:

You publish an image that you previously installed all the software you need (or you can download such an image). There can be as many instances of this image running as the hardware supports (spread across N number of backend Node Servers).

All instances are transient. As long as an image is running, it will have a physical presence.. but when it is shutdown, the instance is removed including any work performed in the instance.

“static” storage is available via a Storage Server. After you create an image but before you start it, you have the opportunity to attach storage to the instance.

Diagram courtesy of Eucalyptus Beginner’s Guide – UEC edition

While the management tools for UEC, and therefore Amazon EC2/EM, are primitive compared to VMware, it should be able to scale much higher with far less focus on which ‘virtual machine’ goes where.

Share Button

Robert Jordan and Brandon Sanderson’s The Wheel of Time book # 13: Towers of Midnight

Just waiting… I can wait … yes I can
Towers of Midnight (Wheel of Time)
Here is the book cover courtesy of Dragonmount.com:

Share Button

Robert Jordan’s The Wheel of Time: (Dragonmount) The Gathering Storm – US book cover

If you’ve been following the Wheel of Time series by Robert Jordan, you would know that the last “book” will be released in three separate volumes.  Why?  Because there is just so many plots and subplots and subsub plots and subsubsub plots ….  plots to wrap up.

Click on the image to pre-order the book from Amazon.

The Gathering Storm
The Gathering Storm

Brandon Sanderson will be taking over writing the last book as Robert Jordan died last year.  See the full size cover over at Dragonmount.  It will be released on November 3rd of this year (2009).  🙂

Share Button