Wednesday, September 30, 2015

Inserting Browser Images into Blogger

Sometimes you have to go back to the basics of combination keys, i.e., CTRL-C to copy, CTRL-V to paste.

Let me explain the context. Often in my political blog I'll copy and paste things, properly attributed, of course. With text, I usually select the chosen text by mouse, right-click, copy. In my blog post in compose (vs. html) mode, using browser Chrome, I'll point to the target location, right-click, paste as plain text. (The paste option often includes undesired original text formatting characteristics; if I do run into undesired text formatting, say copying/pasting in a different browser, I'll click on the html tab, and insert the copied text in the desired location there.)

Images are somewhat different. In Blogger, there's an insert wizard which is file-oriented. So say if a Facebook feed is primarily an image. I can often double-click on the image, which spawns a separate browser tab of just the image, right-click and select the image URL option. I return to my Blogger post, point at the desired target, click on the image wizard icon and select the image URL option (one of the rightmost options) to paste the URL text.

There are a few exceptions to this process. I've found that double-clicking on some images will launch an article page, often without the linked image.  Now there are workarounds, e.g., the Facebook group may have a photos section where you can find the image in question. And, of course, you can always do a print screen, crop/save the target image (via, e.g., MS Paint) and upload it to the blog through the insert wizard or similar functionality.

Now others have noticed nuances between clipboard and browser functionality (e.g., here). I had tried clipping an image to the clipboard via an image capture utility like Greenshot, but the problem is that Blogger doesn't seem to allow me to paste from the clipboard. I had also tried selecting an image and right-clicking to save, but I don't have a right-click copy option (I get link options, not copy/image options; now if  I include some superset of the image, e.g., some trailing text, I'll get a copy option that will work; I can simply delete the copied trailing text.)

Based on some related copy/paste posts on copying images to Gmail compose windows (drag-select the mouse over the source image, CTRL-C, navigate to the message window and CTRL-V at the desired target location). I didn't understand why it would work in Gmail but not my Blogger compose window; but I can verify as of the date of this post that the functionality works in Chrome on draft.blogger. As long as the conventional copy/paste keystrokes work as intended within the same browser, I'm not as concerned with the specifics of the enabled functionality. There are some unintuitive aspects to the interface here, e.g., even though I have an image in my "web/browser clipboard", I don't have a right-click paste option in my Blogger compose window target location.

[Note added 10/01/15].  I recalled earlier using Gmail functionality as a go-between between other webpages or applications and Blogger. (I do not know if there have been any interim developments to Gmail and/or Blogger.) But this functionality worked for me today: I used Greenshot to capture an image to the clipboard. I could then do a conventional paste of the image into a Gmail compose window. Note: Blogger did NOT let me paste from the clipboard into the Blogger compose window. But once the image painted in my Gmail compose window, I found that I could drag and drop the pasted image in Gmail compose to Blogger. Of course, this workaround requires that you have a Gmail account. I would hope at some point we don't have to resort to a workaround, and I don't know if future product changes will affect the workaround. But I tested the workaround multiple times today, including processing images for my Q-Dir post.

Sunday, September 27, 2015

A Workaround to a Mozilla Thunderbird Blank Folder Pane Problem

[last updated * 5/21/26; prior 5/18/16; 1/09/16]

At least a handful of times over the past week, I have launched Thunderbird with a blank or hidden messages pane, i.e., I'll see my familiar calendar/today pane on the right, but nothing to the left--no list of mailbox accounts and their folders, no local folders, etc. Oddly enough, I can download my external email pop accounts--but I don't see them. Now I occasionally experienced this problem in the past, and I simply would shutdown Thunderbird and relaunch later--with the folder pane viewable again (a memory issue?); I've removed any recent add-ons and/or rebooted the PC, which occasionally works. But what if all the usual steps, e.g., clearing cache, resetting options (e.g., toggling the folder pane off and on), don't work? It may be, for instance, some key file in the AppData Thunderbird folder has been corrupted.

I have a workaround solution, but first let discuss backups; as a professional DBA, I'm obsessed with backups. I have several layers of backups; with multi-terabyte USB external drives available for roughly $100-150, there's no reason not to do backups frequently. (For a list of freeware backup tools, see here; I've successfully used Paragon, EaseUS, and Aomei; also check the folder synchronization tools.)  Flash drives are also increasingly inexpensive; for example, I was recently able to purchase a 120GB flash drive for around $30. I use licensed encryption software to maintain archivals (not to mention portable applications). Finally, depending on your email storage size, you can use any number of free (up to x GBs) online storage options (including Dropbox, Microsoft OneDrive, and Google Drive); at the time of this post, Google offers 100 GB storage for about $2/month. In some cases, you can configure your data, e.g., Thunderbird mail folders, under your online service sync folder (see  discussion below*).  If for some reason you cannot reconfigure your storage locations, you might be able to set up a file synchronization from your source folder(s) to your target sync folder.

I suspect that some files under the Thunderbird profile folder have been corrupted; it doesn't seem to involve email folders themselves. Here is my workaround, designed to minimize the loss of downloaded emails:
  • First, always maintain at least one recent copy of your email folders. Also you should have at least one recent copy of your profile folder/tree, via system backup or file folder synchronization. (If you are using default email locations, your profile backup includes your mail folders.)
  • If you run into the blank folder pane, shutdown Thunderbird. (You may want to see if launching it again, say 20 minutes later, or rebooting resolves the problem before moving onto the next step.)
  • If any interim emails have been downloaded since your last relevant profile backup and you are using default profile mailbox locations for external or local email storage, backup/sync your Mail folder under the profiles folder (AppData, Roaming, Thunderbird) to a sync or temporary directory. [Note below discussion on migrating emails to non-default locations.*]
  • Delete the existing profile directory (some-alphanumeric-string.default), and restore the last profile backup to the same location. 
  • If you had to backup up Mail directory files before restoring your profile directory, replace your restored profile Mail directory with your Mail directory backup.
  • Launch Thunderbird. You should now see your folder pane as expected. I would recommend doing another backup of your profile ASAP.
[* Note: 9/28/15. My earlier writeup implied a non-default setting for my local email folders but default settings for the external email folders.  I wasn't aware that you can also reconfigure target directories for your external email folders: the setting is on the server settings pane, not the account settings pane. (Also note if you reset your local folders to say your sync drive directory, you need to manually cut-and-paste the folders from the AppData subdirectory to the target directory after setting the Thunderbird account parameter and bringing down Thunderbird.) [Changing the mail storage directory, local or external, results in a Thunderbird popup saying that it needs to come down.] Assuming you've already moved messages from your external email folders to local folders, you don't have to worry about manually moving folders during reconfiguration: it will simply recreate folders, inbox, trash, send folders as needed at the target setting, e.g., [sync drive path]/Gmail.]

[Note: 10/26/15.  The delete/restore profile workaround almost always works. I think I've encountered one time it didn't seem to work after a copy in the same PC session, but it did after a reboot. As I've said, sometimes I close Thunderbird and restart it minutes later, no problem. Sometimes a reboot seems to do the trick. If you have gigabytes of email folders like I do, you may want to try these first, before going through a few minutes of delete/restore. As always, continue to backup your PC regularly, at least to the point you are willing to accept lost emails. I've occasionally, under prior Outlook Express (I haven't liked Windows Mail because it seemed to take forever to load my emails, hence my move to Thunderbird) and/or Thunderbird, found that one or more email folders got corrupted.

Take, for instance, I have a problem with my local inbox.  I might do something like create a folder inbox2, bounce the email client, click into inbox2. bring down the client, get relevant inbox files from backup, rename/copy to the target, and delete the corrupted inbox. The email client should regenerate a missing inbox or other core folder. After startup I should see my new empty inbox and a populated inbox2. At this point, if I wish, I can move my messages from inbox2 to inbox. I sometimes call this my shell game workaround.

Again, I have no idea how prevalent this problem for other Thunderbird users; I religiously update Thunderbird and I don't recall it happening over the last few years until recent months, so it may be a bug, but I've seen it happen a few times a week--not always, but frequently enough to be a nuisance. I sometimes have tried another workaround short of delete/replace. In my case I have multiple configured email accounts; I've found, on at least two occasions, that switching the default email account for Thunderbird and restarting Thunderbird seems to resolve the issue.]

[Update 1/09/16].

I ran into folder pane problem on a recurring basis lately, which may have coincided after a recent Thunderbird update. Many of the tactics I've listed above did not seem to work (i.e., restarting Thunderbird and/or the PC, refreshing the profile folder under user AppData). Based on a tip I read in a Thunderbird forum, I tried running Thunderbird in safe mode (I usually add the client to my taskbar and then click on the icon while holding down the shift key: you should see a popup and I simply proceed without toggling on available options). This seemed to work consistently in restoring the folder pane, but with the addons temporarily disabled; in my case, for example, I have Lightning which is configured with my Google calendar, Nostalgy which I use to file emails not configured with my existing filter rules, and others which prune duplicate emails, strip attachments, and convert eml's to other formats.

Are addons incompatibile with the upgraded client? I tried disabling addons one at a time and restarting in normal mode, but I couldn't identify the rogue addon if any. (I also saw the folder pane appearing with addons available on an inconsistent basis since the patch.)

Finally, I uninstalled Thunderbird (without removing data) and reinstalled the software from the Mozilla website, finding the folder pane as usual appearing with addons intact. I have subsequently bounced the software on multiple occasions without the issue reappearing. I don't have enough information to judge whether somehow the software had been corrupted. If the problem resurfaces again, I'll update the post.

[Update 5/18/16]

After a few months of no issues, it reoccurred in full force again. There had been one or 2 times I launched into a folderless screen in the interim, but an application restart seemed to resolve the issue. Today I made numerous restarts plus a reboot, and the problem persisted. Deleting and refreshing the profile folder from my Google drive backup resolved the issue. So clearly one or more files in the profile folder are getting corrupted.

I ran into a separate performance issue lately which involved painfully slow email composes. I tweaked a few things, like togging off the message preview panel. One thing I noticed is that the application seems to spontaneously toggle preview back on. What I find is to undo that I have to toggle preview back on and then immediately toggle it back off.

There are a few other bugs that test my patience like pop-up error messages (especially on startups) which get in the way of password validation. I also notice that in moving messages from my download to local folders if the mouse floats over one of the other options (like copy to folder...), it seems to get stuck and I have to wait for the option to time out (my description) before I can float over the Move to Inbox option again.

Another tip for Thunderbird users: I use another layer of redundancy, the free-for-personal-use MailStore Home, which can be configured to back up Thunderbird folders. I will usually archive/update my MailStore emails every week or two. It basically appends new emails to folders; it doesn't sync the source/target email folders. So, for example, I might still have copies of emails that were in my local inbox years ago during archiving. Searching is blazing fast; for example, I have a Venezuelan immigrant friend and I was able to pull up emails from him over the last few years in a split second.

* [5/21/16]

I did another Google search; for some reason, I pulled down more usable results than prior Google searches. I ran into the same problem again for the second time in a week, this time a little more problematic. There were multiple tweeks plus a reboot necessary to regain the panes (there must have been some process that the reboot released--beyond the thunderbird executable).

I do have a more nuanced solution based on a couple of troubleshooting posts that suggest looking at a couple of JSON files in the profile folder: foldertree and/or session. One or both sources suggested that deleting or renaming existing files should result in Thunderbird regenerating said files. I think that the foldertree regenerated but same problem. I tried copying over the same two files from my Gdrive copy; it didn't work. I rebooted and this time the folder tree appeared on startup. So I suspect some process must have been hosing things. I'll have to wait and see if the problem recurs to see if the issue can be resolved with a reboot/JSON regeneration fix or whether the archival files do the trick. I would like to see if I can figure out what process is hosing a session fix.

Saturday, September 26, 2015

Dealing With iTunes Playlists

I had a spat I described in one of my blogs with an Apple Support analyst some time back; I remember I had stumbled across some puzzling interface anomaly and pointed out that I've written articles and book chapters on software usability; I wanted her to forward my comments to relevant Apple developers/managers. She responded with a skeptical tone and all the enthusiasm of not-invented-here syndrome that there were Internet pages or forums to post complaints or suggestions.

When I moved to West Virginia from Maryland at the beginning of 2014, I had run into an issue with my second iPod shuffle. WalMart online had indicated that they had new Shuffles for sale at my local Wal-Mart, but I couldn't find them on display; during my hunt I found a different mp3 player with more capacity but a third of the cost.  I guess I shouldn't have been surprised that unlike the Shuffle, the iTunes software didn't interface with the new player; the practical issue was that while it was fairly easy to refill my Shuffle with updated playlists, sifting through hundreds of music tracks to copy and paste them to the new player was a nontrivial task. But I discovered when I installed the Media Monkey player and read in my Music folder, it had somehow imported my iTunes playlists. I could then select all the songs in the chosen playlist and write them to the mp3 player. (I think I wrote this in one of my my flagship political blog daily (miscellany) posts; I didn't think the workaround was substantive enough to write up in this blog.)

However, I had merely deferred the playlist functionality issue. I did realize that iTunes library file (iTunes Library.itl) was critical because in the past I had to deal with corrupted files in starting up iTunes. But for the most part I had blackboxed the library files--until yesterday, when I had finally caught up on my podcasts and decided to launch one of my playlists--only to discover that the handful of playlists were gone. In essence, I was back to the problem with the mp3 player--I didn't want to sift through hundreds of mp3 tracks to rebuild my playlists. I stumbled across this Apple Support note, which basically tells you to exit iTunes (if necessary), rename/archive the existing itl file and copy/rename the latest time-stamped archive file from the "Previous iTunes Library" folder. To my relief, I was able to find my playlists in that last archive file and didn't have to iterate up the list of archives.

But this wasn't the optimal solution either: I had made a number of changes to my music files, podcasts, etc., since that snapshot library file. The right click menu seemed to be an incoherent blend of structural (edit/delete/clone/burn playlist) and functional (play/shuffle/skip playlist tracks) items. Now from my reference, I wanted to apply my preexisting template/advance organizers, e.g., the file menu, i.e., open/import or save/export playlists. It turns out that there are options to import/export playlists--but you have to navigate through File/Library menu (which I think is unintuitive). The export functionality requires you to first select the target playlist.

So I exported my handful of playlists (with a playlist.txt names), exited iTunes, reverted the library filenames, and brought up iTunes. I then imported the playlists through File/Library; I got warnings about missing music files, which in my case had to do with my Amazon music folders somehow not being registered with iTunes, the simple solution being to add the Amazon folder to the library through the file menu. (Kudos to the wonderful Voidtools' everything freeware utility.)

I've now made a note to synchronize my iTunes itl and playlist export files with my cloud-based storage accounts and my daily backups to external drives.

Wednesday, September 23, 2015

Miscellanous Notes on PC Annoyances

[Editor's Note: This is not intended to be a final post; I expect to add to the initial post over time. Last update 10/18/15.]

  • Setting the PC time after a system reset  [9/23/15]. After I've done a reset, I've found that the time zone and/or time itself is off. This may manifest itself in unusual ways. For example, after a reset on my workhorse notebook PC I  checked my online gmail account, the most recent messages showed a timestamp off by hours. I scanned the gmail forums and stumbled across a note to check the properties of the system time display at the right end of the tray. This was not obvious because the time looked fine, but when I checked the properties, I saw it listed PDT vs. the relevant EDT zone setting. And changing the time zone advanced the correct wall time by 3 hours. The solution is to use the Internet Time option to sync the PC (after you've set the correct time zone). The navigation to the desired target Internet Time pane may differ by version of Windows; on my Windows 10 PC I click on date and time settings link under the month view after clicking the time display in the tray. I then click on the "different clock" link on the bottom of the settings page which brings up the target 3-pane display; Internet time is the third/rightmost pane. (There may be alternate easier pathways, but this sequence works for me.) I then click on the Change Settings button. Here's the key point: I think the default setting is time.microsoft.com. For some reason, that setting has never worked for me; there is a menu dropdown, and I typically select time.nist.gov. This has generally resolved my system clock issues.
  • Windows Update History in Windows 10. [10/18/15].  Granted, I knew there would be nuances to Windows Update in Windows 10. Probably the biggest from a user's perspective is that it's no longer accessed via Control Panel but as the trailing option (Updates & Security) under Settings, which you can select from the lower left region of the start menu (Window icon at the bottom low corner of your screen).  Microsoft has largely automated the update process, but there are ways to manually configure things. Frequently updates require PC reboots to make certain file changes or execute processes, and one way you'll know that Microsoft has updated automatically is that by default, you will get up a reboot scheduling popup. (I have backup PC's, also on Windows 10, so after I update my primary PC, I'll usually manually check for updates on the others after updates have been completed on my primary system.) What bothered me was an inconsistency of how to review applied patches. Under Control Panel Windows Update there was a left menu panel option to review patch history; there is no comparable interface in the Windows 10 version. I eventually discovered that if you click the Advanced Options link at the bottom of the Updates screen (which allows you to reconfigure Update functionality), there is an update history link on the Advanced Options page (in the "Choose How Updates Are Installed" region).  (I personally find the placement/grouping somewhat nonintuitive.)

Thursday, September 17, 2015

Microsoft OneNote: A Nice Freeware Tool

There are a couple of free (for personal use) PC tools/apps that I've relied on over the last few years: Local Website Archive, which allowed me to store copies of webpages, and Readability, a utility which declutters a webpage.  (I should note that it looks like Aignes recently revised LWA, and I have not test-installed it yet. LWA, like Thunderbird, stores data in the user account AppData folder; a typical restore would be to install the application on the target PC and then (with the application down) restore the relevant backup directory to the target directory. I ran into minor usability issues (e.g., browser/URL integration) beyond the scope of this post and more recently started saving pdf copies of webpages which were more universally viewable and convertible.) Readability gets rid of the distracting ads on a webpage (and you can do a pdf-print of the result, which is convenient, because it embeds the original webpage link). Readability also has a free online account where you can store articles for later viewing and also allows you to email article links to your account.

Microsoft has a free OneNote desktop utility (see onenote.com) with integrated online notebook access that synchronizes nicely with OneDrive and a browser plugin, OneNote Clipper. Now it's beyond the scope of this post to describe all of its functionality, but I simply want to point out one sample application, an integration of what I've been using it for, which combines the functionality. Basically think of a notebook as a collection of categories called sections  (Your default notebook could have a single section called QuickNotes; you can easily rename your notebook name and sections and add sections.) I would add a number of webpage categories: e.g., tech tips, health, recipes, politics, news, email (which I'll discuss shortly), and some catchall section, say misc.

Now when I come across something of interest, e.g., I wanted to import my Google calendar data for my thumbdrive portable PIM, a simple Google search yielded a short clippable procedure. I invoke my OneNote Clipper icon to the right of my browser address bar, if necessary, log onto One Note Online, then click on the region select icon, click and drag the mouse over the relevant summary on the Google search page, and then choose to store the clip in the tech tips section of my notebook (via the menu arrow). If for some reason I'm in a hurry and don't have time to create a new section for the clip, I could save it to my misc section and later create the section and drag-and-drop the clip from my misc section to the new section.

There are other options for the Clipper. Suppose that I really liked George Will's current Washington Post column posted online. I can choose the Article option of the Clipper and the result is similar to a Readability declutter of the webpage. I then store it in the politics section of my notebook. (There are subtle differences between OneNote online and the desktop application: the sections are vertically stacked online but horizontally tabbed on the desktop).

Finally, there's a convenient way to send emails to OneNote from your registered email accounts. Say, for example, your travel itinerary was mailed to your primary home email account. You can simply forward your email to your OneNote account, i.e., me@onenote.com. (You first need to confirm your email account and select/activate it online and identify your target section on your OneNote configuration page, a one-time procedure. Repeat the procedure for any additional personal email accounts you wish to integrate with OneNote.) OneNote also allows you to identify a non-default section via your email header, say, for example, if you had a preexisting travel section in your notebook.

Wednesday, September 9, 2015

Goodbye to an Old Favorite: AskSam

I have multiple PC's, but my primary workhorse recently had to be reset, which means going back to the factory settings (more usable in the sense I don't have to find the PC's operating system's CD's or DVD's). This reset required two upgrades and over 200 Microsoft updates--and then there are all the applications one has to reinstall from scratch, retrieve workfiles (e.g., my email folders)  from backups, etc.

There are only a few commercial applications I license, including various security, and there are sometimes quirks in how licenses are implemented, because the vendors may sometimes see the owners as showing the license in use (i.e., before the system reset). For example, I had to deal with one tech support analyst who heatedly said I was at fault for not deactivating the license.Of course, I might have done that--if and when I knew the system wasn't going to reboot.

But there is one product I have licensed ever since I was on the UWM faculty several years ago, before Windows 3--a fairly unique program called a freeform database named AskSam. It allows you to create databases in a very flexible manner, with defined fields or blank/freeform text; AskSam also provides a number of templates and enables you to import all sorts of files, e.g., emails, documents, pdf's, html files, etc.

To describe the full functionality is beyond the scope of this post; suffice it to say one has powerful searching and reporting functionality (including mail-merge). My principal use has been for email. The search capability is analogous to Google-like search capabilities. I normally create separate files corresponding to archived email folders. Let me provide a simple example. I have one file for outgoing correspondence. I occasionally ran into issues with Thunderbird import functionality, but my workaround was to use Thunderbird add-on functionality to convert emails into html or txt format. The Thunderbird functionality allowed the use of fields (such as date). The html file imports had to searched like freeform text. So, for instance, if I wanted to look at the emails I sent in April of this year I might enter something like 4/?/2015 or 4/??/2015 in the search field. I need the phone number for my point of contact with an IT staffing firm or the  license key for my security software from the vendor file to do a reinstall. With a few keywords, I don't have to scan and reread a number of emails to find the information I want. I periodically update my files as a redundancy check on my email folders.

So I once again had to search for my AskSam software, when it occurred to me that AskSam Systems hadn't sent me a promotional email in a while; I think the last time I contacted them was over a Thunderbird import bug. I had steadily upgraded the software through version 7. I wondered if they had come out with version 8 and tried accessing their website. No splash screen within a reasonable period of time. I then did a Google search, looked at their Facebook page--and it seems as if they just disappeared about 2-3 years back. I found a couple of online forums discussing the issue--unacknowledged emails to tech support, abandoned forms, no responses to phone calls. I haven't found any notice of the company ceasing operations (maybe an artifact of my Google search), but a competing product describes itself as "suitable alternative for the discontinued free-form database tool AskSam.".

 I wouldn't say I'm completely surprised because I also used the Google Desktop product before it was discontinued a few years back; they claimed, given the increasing focus on cloud-based services, the project was an effort of diminishing returns and importance.

Of course, I have backups of the software and license code. Here are some products I've installed which provide related functionality:

  • everything (voidtools): freeware that searches on filenames
  • docfetcher (sourceforge): freeware that works on certain desktop file types similar to AskSam functionality; you don't have to import the files in application files but you may need to manually build/update indexes.
One product, MyInfo, claims to be similar in nature and in fact offers an AskSam import plugin (see above link). Note that I have not licensed and validated the vendor's claims.