diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-09-21 14:44:38 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-09-21 14:44:38 -0700 |
commit | 6458fe2de26e181178cf47c026ce989eed815dd1 (patch) | |
tree | 81198e09d2504d2aeaecbb4b065ecd958b801957 | |
parent | 61f9afbdfb6209a98eabdfff1285bce87654ec2e (diff) | |
download | my_new_personal_website-6458fe2de26e181178cf47c026ce989eed815dd1.tar.xz my_new_personal_website-6458fe2de26e181178cf47c026ce989eed815dd1.zip |
pyblog: date-display => date_display, and update posts
Looks slightly more professional.
Diffstat (limited to '')
80 files changed, 84 insertions, 84 deletions
@@ -837,7 +837,7 @@ def new_post(title): newpost.write("---\n") newpost.write('title: "%s"\n' % title) newpost.write("date: %s\n" % iso_date) - newpost.write("date-display: %s\n" % display_date) + newpost.write("date_display: %s\n" % display_date) newpost.write("---\n") sys.stderr.write("New post created in:\n") print(fullpath) @@ -892,8 +892,8 @@ def touch(filename): whatchanged.write("-%s+%s\n" % (line, updated_line)) continue - if line.startswith("date-display: "): - updated_line = "date-display: %s\n" % display_date + if line.startswith("date_display: "): + updated_line = "date_display: %s\n" % display_date sys.stdout.write(updated_line) whatchanged.write("-%s+%s\n" % (line, updated_line)) continue diff --git a/source/blog/2014-10-20-hello-octopress.md b/source/blog/2014-10-20-hello-octopress.md index ff1396c5..16f60ccd 100644 --- a/source/blog/2014-10-20-hello-octopress.md +++ b/source/blog/2014-10-20-hello-octopress.md @@ -1,7 +1,7 @@ --- title: "Hello, Octopress!" date: 2014-10-20T16:53:00-0700 -date-display: October 20, 2014 +date_display: October 20, 2014 --- This post marks my transition from Tumblr to Octopress & GitHub Pages. diff --git a/source/blog/2014-10-20-help-mou-hit-1-dot-0.md b/source/blog/2014-10-20-help-mou-hit-1-dot-0.md index 190f914a..12b08e04 100644 --- a/source/blog/2014-10-20-help-mou-hit-1-dot-0.md +++ b/source/blog/2014-10-20-help-mou-hit-1-dot-0.md @@ -1,7 +1,7 @@ --- title: "Help Mou hit 1.0" date: 2014-10-20T17:37:45-0700 -date-display: October 20, 2014 +date_display: October 20, 2014 --- Quick call for [Mou 1.0 fundraiser](https://www.indiegogo.com/projects/mou-1-0-markdown-editor-on-os-x-for-you) on Indiegogo. At the time of writing, it has raised $6,178/$20,000, and has 39 days to go (with 21 already passed). diff --git a/source/blog/2014-10-21-get-rolling.md b/source/blog/2014-10-21-get-rolling.md index 16eca0c4..10e9ad59 100644 --- a/source/blog/2014-10-21-get-rolling.md +++ b/source/blog/2014-10-21-get-rolling.md @@ -1,7 +1,7 @@ --- title: "Get rolling" date: 2014-10-21T11:40:14-0700 -date-display: October 21, 2014 +date_display: October 21, 2014 --- Yesterday, on an internet forum, I saw someone’s signature, which translates to diff --git a/source/blog/2014-10-23-ripping-copy-protected-dvd-with-mpv.md b/source/blog/2014-10-23-ripping-copy-protected-dvd-with-mpv.md index 849282ea..e6d19e90 100644 --- a/source/blog/2014-10-23-ripping-copy-protected-dvd-with-mpv.md +++ b/source/blog/2014-10-23-ripping-copy-protected-dvd-with-mpv.md @@ -1,7 +1,7 @@ --- title: "Ripping copy-protected DVD with mpv" date: 2014-10-23T20:03:22-0700 -date-display: October 23, 2014 +date_display: October 23, 2014 --- **_11/02/2014 update:_** diff --git a/source/blog/2014-10-24-charles-munger-donated-$65m-to-kitp.md b/source/blog/2014-10-24-charles-munger-donated-$65m-to-kitp.md index 30c8dd53..c410cc72 100644 --- a/source/blog/2014-10-24-charles-munger-donated-$65m-to-kitp.md +++ b/source/blog/2014-10-24-charles-munger-donated-$65m-to-kitp.md @@ -1,7 +1,7 @@ --- title: "Charles Munger donated $65M to KITP" date: 2014-10-24T16:41:36-0700 -date-display: October 24, 2014 +date_display: October 24, 2014 --- Today's news has it that Charles Munger made a $65 million donation to KITP at UCSB. See for instance [this article](http://nyti.ms/1D4zg24) on NYT. Of course I didn't learn it from NYT (I'm generally sick of any news other than math, physics, or IT-related ones). I learned it from [Not Even Wrong](http://www.math.columbia.edu/~woit/wordpress/?p=7247) instead (of course I don't agree with Woit, but some of his links are nice). diff --git a/source/blog/2014-10-25-os-x-package-receipts.md b/source/blog/2014-10-25-os-x-package-receipts.md index baf470e4..54ec1905 100644 --- a/source/blog/2014-10-25-os-x-package-receipts.md +++ b/source/blog/2014-10-25-os-x-package-receipts.md @@ -1,7 +1,7 @@ --- title: "OS X package receipts" date: 2014-10-25T13:26:02-0700 -date-display: October 25, 2014 +date_display: October 25, 2014 --- I just learned something new. Whenever you install a `pkg` on OS X, OS X stores a receipt of what was installed in `/var/db/receipts` (I'm running OS X 10.9.5 at the time of writing), called a **bom** — bill of materials (I’d rather call it a manifest, whatever). This feature was introduced in NeXTSTEP. From `man 5 bom`: diff --git a/source/blog/2014-10-26-audio-cd-slash-dvd-to-iso-image-on-os-x.md b/source/blog/2014-10-26-audio-cd-slash-dvd-to-iso-image-on-os-x.md index 86f2ca2c..b37c81e0 100644 --- a/source/blog/2014-10-26-audio-cd-slash-dvd-to-iso-image-on-os-x.md +++ b/source/blog/2014-10-26-audio-cd-slash-dvd-to-iso-image-on-os-x.md @@ -1,7 +1,7 @@ --- title: "Convert Audio CD/DVD to ISO image on OS X" date: 2014-10-26T23:29:47-0700 -date-display: October 26, 2014 +date_display: October 26, 2014 --- **_11/02/2014 update:_** diff --git a/source/blog/2014-10-26-disk-visualizer-daisydisk.md b/source/blog/2014-10-26-disk-visualizer-daisydisk.md index 3bb4ed8a..4c62b3ed 100644 --- a/source/blog/2014-10-26-disk-visualizer-daisydisk.md +++ b/source/blog/2014-10-26-disk-visualizer-daisydisk.md @@ -1,7 +1,7 @@ --- title: "Disk visualizer: DaisyDisk" date: 2014-10-26T00:02:22-0700 -date-display: October 26, 2014 +date_display: October 26, 2014 --- DaisyDisk is a pretty famous name. I’ve heard a lot that DaisyDisk is beautiful, but as a “power user” I always feel ashamed about using a disk analyzer or visualizer (although no one really cares). I’m pretty comfortable with doing most filesystem operations right in the shell, and for other tasks too tedious for the shell (like renaming a bunch of files with no obvious pattern), Finder (equipped with TotalFinder) works just fine. diff --git a/source/blog/2014-10-27-onedrive-goes-unlimited.md b/source/blog/2014-10-27-onedrive-goes-unlimited.md index 76b7c22c..40318545 100644 --- a/source/blog/2014-10-27-onedrive-goes-unlimited.md +++ b/source/blog/2014-10-27-onedrive-goes-unlimited.md @@ -1,7 +1,7 @@ --- title: "OneDrive goes unlimited" date: 2014-10-27T09:44:51-0700 -date-display: October 27, 2014 +date_display: October 27, 2014 --- **10/28/2014 Update:** diff --git a/source/blog/2014-10-28-google-drive-no-selective-subfolder-sync.md b/source/blog/2014-10-28-google-drive-no-selective-subfolder-sync.md index c81a60db..6dad0652 100644 --- a/source/blog/2014-10-28-google-drive-no-selective-subfolder-sync.md +++ b/source/blog/2014-10-28-google-drive-no-selective-subfolder-sync.md @@ -1,7 +1,7 @@ --- title: "Google Drive — no selective subfolder sync?" date: 2014-10-28T20:49:24-0700 -date-display: October 28, 2014 +date_display: October 28, 2014 --- Up to this point I've been using Google Drive as an online backup service, and uploads files mostly manually, although I do sync `~/img` with the client. diff --git a/source/blog/2014-10-28-mou-1-dot-0-fundraiser-goal-reached.md b/source/blog/2014-10-28-mou-1-dot-0-fundraiser-goal-reached.md index 6f8fb442..2563dc06 100644 --- a/source/blog/2014-10-28-mou-1-dot-0-fundraiser-goal-reached.md +++ b/source/blog/2014-10-28-mou-1-dot-0-fundraiser-goal-reached.md @@ -1,7 +1,7 @@ --- title: "Mou 1.0 fundraiser: goal reached" date: 2014-10-28T01:57:06-0700 -date-display: October 28, 2014 +date_display: October 28, 2014 --- A week ago I wrote a post [*Help Mou hit 1.0*](blog/2014/10/20/help-mou-hit-1-dot-0/). Today, I'm delighted to find out that Mou has reached its goal, $20,000, half way into the fundraiser. diff --git a/source/blog/2014-10-29-fun.md b/source/blog/2014-10-29-fun.md index 119de5f2..a8f662ce 100644 --- a/source/blog/2014-10-29-fun.md +++ b/source/blog/2014-10-29-fun.md @@ -1,7 +1,7 @@ --- title: "Fun" date: 2014-10-29T11:26:29-0700 -date-display: October 29, 2014 +date_display: October 29, 2014 --- This happened in yesterday's Math 210A lecture. diff --git a/source/blog/2014-11-02-vobcopy-dvdbackup-etc.md b/source/blog/2014-11-02-vobcopy-dvdbackup-etc.md index 2197542d..52fac4d7 100644 --- a/source/blog/2014-11-02-vobcopy-dvdbackup-etc.md +++ b/source/blog/2014-11-02-vobcopy-dvdbackup-etc.md @@ -1,7 +1,7 @@ --- title: "vobcopy, dvdbackup, etc." date: 2014-11-02T15:06:07-0800 -date-display: November 2, 2014 +date_display: November 2, 2014 --- A few days ago, I was cloning my entire Audio CD and DVD collection, and reported some of the findings in [this post](/blog/2014-10-26-audio-cd-slash-dvd-to-iso-image-on-os-x.html). As said, the most important commands are diff --git a/source/blog/2014-11-05-apple-is-pushing-yosemite-hard.md b/source/blog/2014-11-05-apple-is-pushing-yosemite-hard.md index 734c4f1a..68d727d2 100644 --- a/source/blog/2014-11-05-apple-is-pushing-yosemite-hard.md +++ b/source/blog/2014-11-05-apple-is-pushing-yosemite-hard.md @@ -1,7 +1,7 @@ --- title: "Apple is pushing Yosemite hard" date: 2014-11-05T22:17:01-0800 -date-display: November 5, 2014 +date_display: November 5, 2014 --- Apple is pushing Yosemite hard and secretly Yosemitizing things. iTunes was updated to its shiny new look on Mavericks, day one upon Yosemite launch. I liked it. The only problems I had with the new iTunes are: diff --git a/source/blog/2014-11-05-list-youtube-playlist-with-youtube-dl.md b/source/blog/2014-11-05-list-youtube-playlist-with-youtube-dl.md index 16001c51..cd46078c 100644 --- a/source/blog/2014-11-05-list-youtube-playlist-with-youtube-dl.md +++ b/source/blog/2014-11-05-list-youtube-playlist-with-youtube-dl.md @@ -1,7 +1,7 @@ --- title: "List YouTube playlist with youtube-dl" date: 2014-11-05T10:37:58-0800 -date-display: November 5, 2014 +date_display: November 5, 2014 --- Of course you are always welcome to use the [Google APIs Client Library for Python](https://developers.google.com/api-client-library/python/) to wrestle with YouTube, which is usually pretty simple. (As an added bonus, YouTube has some [nice runnable sample scripts](https://developers.google.com/youtube/v3/code_samples/) to get you started.) With the client library, listing videos in a YouTube playlist is a breeze. diff --git a/source/blog/2014-11-06-2014-nobel-prize-in-physics-led-lights-seriously.md b/source/blog/2014-11-06-2014-nobel-prize-in-physics-led-lights-seriously.md index bc36bc6d..45550498 100644 --- a/source/blog/2014-11-06-2014-nobel-prize-in-physics-led-lights-seriously.md +++ b/source/blog/2014-11-06-2014-nobel-prize-in-physics-led-lights-seriously.md @@ -1,7 +1,7 @@ --- title: "2014 Nobel Prize in Physics — LED lights, seriously?" date: 2014-11-06T11:08:45-0800 -date-display: November 6, 2014 +date_display: November 6, 2014 --- For some reason, I only learned about this year’s laureates today, through [the reference frame](http://motls.blogspot.com/2014/11/ex-employer-wont-meet-blue-led-nobel.html). The prize goes to the inventors of the LED. Not exciting at all, so I don’t care if I’m ever informed. (Lubos has a good point on why applied physics — well, let’s even widen the concept of applied physics a bit — should not surprise anyone when they appear in a Nobel Prize announcement: “After all, Alfred Nobel might have very well considered his dynamite to be a discovery in physics, too.”) diff --git a/source/blog/2014-11-07-interstellar.md b/source/blog/2014-11-07-interstellar.md index abeff753..3e7a576c 100644 --- a/source/blog/2014-11-07-interstellar.md +++ b/source/blog/2014-11-07-interstellar.md @@ -1,7 +1,7 @@ --- title: "Interstellar" date: 2014-11-07T23:56:31-0800 -date-display: November 7, 2014 +date_display: November 7, 2014 --- Today (I mean November 7, 2014 — it’s technically November 8 at the time of writing) I saw [*Interstellar*](https://en.wikipedia.org/wiki/Interstellar_%28film%29) (IMAX digital) at AMC Mercado 20. I rarely go to movie theaters, less on the release day (film formats of *Interstellar* were released on November 5, and digital formats followed on November 7). However, reviews of it were positive (from the physics community), and I really need a way to release stress these days — I wasn’t in the right condition for months. So I figured I’d just spend an afternoon in front of the big screen. diff --git a/source/blog/2014-11-10-average-phone-plan-in-the-u-dot-s-costs-ten-time-as-much-as-that-in-the-u-dot-k.md b/source/blog/2014-11-10-average-phone-plan-in-the-u-dot-s-costs-ten-time-as-much-as-that-in-the-u-dot-k.md index b1631b16..ceb6f034 100644 --- a/source/blog/2014-11-10-average-phone-plan-in-the-u-dot-s-costs-ten-time-as-much-as-that-in-the-u-dot-k.md +++ b/source/blog/2014-11-10-average-phone-plan-in-the-u-dot-s-costs-ten-time-as-much-as-that-in-the-u-dot-k.md @@ -1,7 +1,7 @@ --- title: "Average phone plan in the U.S. costs ten time as much as that in the U.K." date: 2014-11-10T11:11:46-0800 -date-display: November 10, 2014 +date_display: November 10, 2014 --- To quote [Opera News](http://blogs.opera.com/news/2014/11/mobile-data-anyway/), diff --git a/source/blog/2014-11-11-re-encoding-everything-for-iphone-6-plus.md b/source/blog/2014-11-11-re-encoding-everything-for-iphone-6-plus.md index a0a7f687..75992541 100644 --- a/source/blog/2014-11-11-re-encoding-everything-for-iphone-6-plus.md +++ b/source/blog/2014-11-11-re-encoding-everything-for-iphone-6-plus.md @@ -1,6 +1,6 @@ --- title: "Re-encoding everything for iPhone 6 Plus" date: 2014-11-11T13:31:25-0800 -date-display: November 11, 2014 +date_display: November 11, 2014 --- AT&T finally delivered my iPhone 6 Plus (silver, 64 GB) after about fifty days since preorder… The 1080p Retina display is simply stunning. However, it turns out that my old videos don’t work so well on 6 Plus’s giant screen. My old mobile video collection was optimized for my 16 GB 4S, targeting the small screen and highly limited storage — you guessed it, they were resized to 960x540, and they looked great. But they’re not up to the task any more. 960x540 videos aren’t at all sharp on the stunning screen of 6 Plus, which is more than capable of handling 4x pixels. Therefore, I have no choice but to feed it more pixels. I’m left in a weird situation, where my 1080p desktop (or even HDTV) quality videos should fit the screen just fine, but H.264 profile stands in the way. iPhone 6 and 6 Plus are only capable of High Profile level 4.2, so anything encoded in level 5.1, for instance, needs to be re-encoded. Also there are still MPEG-2 and MPEG-4 videos out there (MPEG-4 should be obsolete by now, I assume, but some people still use it; and MPEG-2 is de facto in TV broadcasts), which have to be transcoded. Okay, it’s a daunting task to re-encode a fairly big collection, but I have to do it sooner or later. Presumably this weekend. I’ll also report whether 720p videos look sharp on the screen later. diff --git a/source/blog/2014-11-19-convolution-of-irreducible-characters.md b/source/blog/2014-11-19-convolution-of-irreducible-characters.md index 8139aa9b..f1ef9391 100644 --- a/source/blog/2014-11-19-convolution-of-irreducible-characters.md +++ b/source/blog/2014-11-19-convolution-of-irreducible-characters.md @@ -1,7 +1,7 @@ --- title: "Convolution of irreducible characters" date: 2014-11-19T20:40:37-0800 -date-display: November 19, 2014 +date_display: November 19, 2014 --- __*TL; DR:* The actual PDF write-up is [here](https://dl.bintray.com/zmwangx/generic/20141119-convolution-of-irreducible-characters.pdf).__ diff --git a/source/blog/2014-11-20-dropbot-for-geeks(r).md b/source/blog/2014-11-20-dropbot-for-geeks(r).md index 3a60bc34..77d163cb 100644 --- a/source/blog/2014-11-20-dropbot-for-geeks(r).md +++ b/source/blog/2014-11-20-dropbot-for-geeks(r).md @@ -1,7 +1,7 @@ --- title: "Dropbot for Geeks®" date: 2014-11-20T09:48:15-0800 -date-display: November 20, 2014 +date_display: November 20, 2014 --- I propose the following cloud storage and syncing service model of the future. I call it **Dropbot for Geeks®**, and it totally rules. It's designed for geeks who are tired of the highly limited, miserably unproductive traditional services (based on clicking around). It has the following features: diff --git a/source/blog/2014-11-24-iphone-photography-frustration.md b/source/blog/2014-11-24-iphone-photography-frustration.md index 1b344011..33ae40d4 100644 --- a/source/blog/2014-11-24-iphone-photography-frustration.md +++ b/source/blog/2014-11-24-iphone-photography-frustration.md @@ -1,7 +1,7 @@ --- title: "iPhone photography frustration" date: 2014-11-24T12:42:25-0800 -date-display: November 24, 2014 +date_display: November 24, 2014 --- **TL; DR:** Jump to the paragraph “In the end…” diff --git a/source/blog/2014-11-24-why-i-abandoned-mathjax-and-fell-back-to-pdf.md b/source/blog/2014-11-24-why-i-abandoned-mathjax-and-fell-back-to-pdf.md index cd04f82a..7e5d7fa4 100644 --- a/source/blog/2014-11-24-why-i-abandoned-mathjax-and-fell-back-to-pdf.md +++ b/source/blog/2014-11-24-why-i-abandoned-mathjax-and-fell-back-to-pdf.md @@ -1,7 +1,7 @@ --- title: "Why I abandoned MathJax and fell back to PDF" date: 2014-11-24T20:54:36-0800 -date-display: November 24, 2014 +date_display: November 24, 2014 --- Recently I wrote an expository article, [*Convolution of irreducible characters*](/pdf/20141119-convolution-of-irreducible-characters.pdf), and posted it [here](/blog/2014-11-19-convolution-of-irreducible-characters.html). At first I intended to use MathJax, but in the end I fell back to good ol' PDF. Here's why. diff --git a/source/blog/2014-11-25-i-got-16-gigs-of-ram.md b/source/blog/2014-11-25-i-got-16-gigs-of-ram.md index 4aac8554..75410054 100644 --- a/source/blog/2014-11-25-i-got-16-gigs-of-ram.md +++ b/source/blog/2014-11-25-i-got-16-gigs-of-ram.md @@ -1,7 +1,7 @@ --- title: "I got 16 gigs of RAM" date: 2014-11-25T16:28:30-0800 -date-display: November 25, 2014 +date_display: November 25, 2014 --- Today I upgraded the RAM of my MacBook Pro mid-2012 to 2x8GB. I purchased the [Crucial 16GB Kit (8GBx2) DDR3/DDR3L 1600 MHz (PC3-12800) CL11 SODIMM 204-Pin 1.35V/1.5V Memory for Mac CT2K8G3S160BM](http://smile.amazon.com/dp/B008LTBJFW) from Amazon, which cost me $146.64 after tax. I followed the [official guide](http://support.apple.com/en-us/HT201165) as well as the [iFixit guide](https://www.ifixit.com/Guide/MacBook+Pro+13-Inch+Unibody+Mid+2012+RAM+Replacement/10374). To finish the job I needed a Phillips #00 screwdriver and a spudger, so I purchased the [spudger](https://www.ifixit.com/Store/Tools/Spudger/IF145-002) and the [54 bit driver kit](https://www.ifixit.com/Store/Tools/54-Bit-Driver-Kit/IF145-022-1) from iFixit. diff --git a/source/blog/2014-11-26-original-images-in-day-one-journal.md b/source/blog/2014-11-26-original-images-in-day-one-journal.md index 93281277..b38e5e03 100644 --- a/source/blog/2014-11-26-original-images-in-day-one-journal.md +++ b/source/blog/2014-11-26-original-images-in-day-one-journal.md @@ -1,7 +1,7 @@ --- title: "Original images in Day One journal" date: 2014-11-26T00:22:16-0800 -date-display: November 26, 2014 +date_display: November 26, 2014 --- **TL; DR:** Jump to the paragraph beginning with “workaround”. diff --git a/source/blog/2014-11-28-given-infinite-time.md b/source/blog/2014-11-28-given-infinite-time.md index 5d28cf4f..a37c287b 100644 --- a/source/blog/2014-11-28-given-infinite-time.md +++ b/source/blog/2014-11-28-given-infinite-time.md @@ -1,6 +1,6 @@ --- title: "Given infinite time" date: 2014-11-28T00:18:19-0800 -date-display: November 28, 2014 +date_display: November 28, 2014 --- Given infinite time. There's so much I can do *given infinite time*. I don't think I'll ever be bored. But sadly the time assigned to each human being is finite. Actually it's epsilon, epsilon approaching zero. Sadly. diff --git a/source/blog/2014-11-28-going-diceware.md b/source/blog/2014-11-28-going-diceware.md index 7341e061..d9dfb860 100644 --- a/source/blog/2014-11-28-going-diceware.md +++ b/source/blog/2014-11-28-going-diceware.md @@ -1,7 +1,7 @@ --- title: "Going Diceware" date: 2014-11-28T19:05:59-0800 -date-display: November 28, 2014 +date_display: November 28, 2014 --- Today I'm officially going [Diceware](http://world.std.com/~reinhold/diceware.html). I published my simple C implementation of diceware on [GitHub](https://github.com/zmwangx/diceware). diff --git a/source/blog/2014-11-30-opera-style-advanced-keyboard-shortcuts-in-safari.md b/source/blog/2014-11-30-opera-style-advanced-keyboard-shortcuts-in-safari.md index 423e6e65..7e7bd933 100644 --- a/source/blog/2014-11-30-opera-style-advanced-keyboard-shortcuts-in-safari.md +++ b/source/blog/2014-11-30-opera-style-advanced-keyboard-shortcuts-in-safari.md @@ -1,7 +1,7 @@ --- title: "Opera-style advanced keyboard shortcuts in Safari" date: 2014-11-30T17:20:20-0800 -date-display: November 30, 2014 +date_display: November 30, 2014 --- I've been using the Chromuim Opera for a long time, after Chrome's design went unbearably ugly around v32 (IIRC Opera stable channel was on v19 when I switched, which was released on January 28, 2014). From then on, Opera's [advanced keyboard shortcuts](http://help.opera.com/opera/Mac/1583/en/fasterBrowsing.html#advanced) has become an integral part of my browsing habit. In particular, the following are especially handy for me: diff --git a/source/blog/2014-12-05-distraction-free-writing.md b/source/blog/2014-12-05-distraction-free-writing.md index b42c69d6..2c25aed6 100644 --- a/source/blog/2014-12-05-distraction-free-writing.md +++ b/source/blog/2014-12-05-distraction-free-writing.md @@ -1,7 +1,7 @@ --- title: "Distraction free writing" date: 2014-12-05T21:09:10-0800 -date-display: December 5, 2014 +date_display: December 5, 2014 --- This is not the first time that a distraction free writing app is featured on the Mac App Store. This time the candidate is [Desk](https://itunes.apple.com/us/app/desk/id915839505?mt=12). The official website is [here](http://desk.pm), but licensing is MAS-exclusive. The icon looks like this: diff --git a/source/blog/2014-12-10-omnifocus-change-sync-behavior-mac-and-ios.md b/source/blog/2014-12-10-omnifocus-change-sync-behavior-mac-and-ios.md index 9a8675b6..6642ae09 100644 --- a/source/blog/2014-12-10-omnifocus-change-sync-behavior-mac-and-ios.md +++ b/source/blog/2014-12-10-omnifocus-change-sync-behavior-mac-and-ios.md @@ -1,7 +1,7 @@ --- title: "OmniFocus: change sync behavior, Mac and iOS" date: 2014-12-10T22:45:34-0800 -date-display: December 10, 2014 +date_display: December 10, 2014 --- On OS X, the following URIs are relevant: diff --git a/source/blog/2014-12-13-the-mac-like-evernote.md b/source/blog/2014-12-13-the-mac-like-evernote.md index 73d24aea..1a874153 100644 --- a/source/blog/2014-12-13-the-mac-like-evernote.md +++ b/source/blog/2014-12-13-the-mac-like-evernote.md @@ -1,7 +1,7 @@ --- title: "The Mac-like Evernote" date: 2014-12-13T21:47:31-0800 -date-display: December 13, 2014 +date_display: December 13, 2014 --- Once in a while (maybe a year, maybe several months — not set in stone), I give big name free services not in use a chance to convince me. Evernote is one such service. The interface used to look very cheap and cluttered. I hated it. However, this time I'm sold. Now everything Evernote, from its Mac app to its iOS app to its web design to its physical products, looks distinctively Mac-like. (I use Mac-like to refer to Apple's design philosophy, including iOS. Well, I guess the Android and Windows apps aren't Mac-like.) I mean, just look at the screenshots: diff --git a/source/blog/2014-12-14-speeding-up-emacs-with-emacsclient.md b/source/blog/2014-12-14-speeding-up-emacs-with-emacsclient.md index 15049b36..c5eafb27 100644 --- a/source/blog/2014-12-14-speeding-up-emacs-with-emacsclient.md +++ b/source/blog/2014-12-14-speeding-up-emacs-with-emacsclient.md @@ -1,7 +1,7 @@ --- title: "Speeding up Emacs with emacsclient" date: 2014-12-14T10:06:02-0800 -date-display: December 14, 2014 +date_display: December 14, 2014 --- Emacs is notorious for its loading time. For me, this is especially annoying when I'm editing LaTeX files — AUCTeX takes about five seconds to load, and once I exit Emacs (especially after a quick edit), all that work is wasted, and next time I want to do some quick editing with that same LaTeX file — sorry, another five seconds. diff --git a/source/blog/2014-12-14-the-google-chrome-comic-a-classic.md b/source/blog/2014-12-14-the-google-chrome-comic-a-classic.md index 0a212f9b..6a7cf0d7 100644 --- a/source/blog/2014-12-14-the-google-chrome-comic-a-classic.md +++ b/source/blog/2014-12-14-the-google-chrome-comic-a-classic.md @@ -1,7 +1,7 @@ --- title: "The Google Chrome Comic — A classic" date: 2014-12-14T17:42:55-0800 -date-display: December 14, 2014 +date_display: December 14, 2014 --- I was cleaning up my Opera bookmarks just now — I'm semi-officially leaving Opera for Safari. Of course, Safari still can't handle everything (e.g., Adblock Plus is still not so good on Safari, YouTubeCenter lags behind and I don't bother to compile myself — yes, I have a certificate, and some power user features simply don't exist), so I'm still going to Opera/Opera beta/Chrome/Firefox for certain tasks. But Safari is very nice. For the first time. diff --git a/source/blog/2014-12-19-app-suggestion-dropzone-3.md b/source/blog/2014-12-19-app-suggestion-dropzone-3.md index ab8c20a3..9609a91b 100644 --- a/source/blog/2014-12-19-app-suggestion-dropzone-3.md +++ b/source/blog/2014-12-19-app-suggestion-dropzone-3.md @@ -1,7 +1,7 @@ --- title: "App suggestion: Dropzone 3" date: 2014-12-19T14:08:57-0800 -date-display: December 19, 2014 +date_display: December 19, 2014 --- I recently tried and purchased [Dropzone 3](https://aptonic.com/dropzone3/). See a list of features on the linked official website. In short, Dropzone 3 provides an intermediate zone for drag-n-drop. You can use it as a stash (called "Drop Bar" — stacking is available), use it as a shortcut by putting frequently used folders and applications there, or trigger actions by dropping. There are a dozen builtin actions and [an additional list of readily available actions](https://aptonic.com/dropzone3/actions/), covering common web drives, SNS and file sharing sites. **Better yet, you can develop your custom actions with the easy-to-use [Ruby API](https://github.com/aptonic/dropzone3-actions/blob/master/README.md#dzalerttitle-message).** For instance, I wrote a simple Google Translate action, `Google Translate.dzbundle` ([link](https://gist.github.com/zmwangx/b27f106a8ba47468a43d)), based on [translate-shell](https://github.com/soimort/translate-shell). (You know, it's Ruby, so calling external commands and concatenating strings feel at home, as if you are coding in Perl or directly in shell; unlike Python, where you at least need to `import subprocess` then `subprocess.check_output` to get the output of an external command, and have to use a bunch of stupid `+`'s to get your goddamn message to print.) diff --git a/source/blog/2014-12-22-10k-images-on-imgur.md b/source/blog/2014-12-22-10k-images-on-imgur.md index b31fd69b..103341d4 100644 --- a/source/blog/2014-12-22-10k-images-on-imgur.md +++ b/source/blog/2014-12-22-10k-images-on-imgur.md @@ -1,6 +1,6 @@ --- title: "10k images on imgur" date: 2014-12-22T12:42:16-0800 -date-display: December 22, 2014 +date_display: December 22, 2014 --- I happened to check my imgur account just now (haven't been to the web interface for ages), and you know what, I have uploaded 10,744 images since I created the account in February this year! (I've been using imgur for longer than that; previously I uploaded images anonymously.) Most of the 10k images were uploaded via scripts using the API. This again demonstrates the importance of a good API — without the imgur API I wouldn't have been able to upload hundreds of images with a few keystrokes all in a snap, and getting links would be a huge pain in the ass. There are myriad image hosting services out there, but imgur rules 'em all, thanks to its decent API (and also its good CDN and direct image links, of course). diff --git a/source/blog/2014-12-23-mpv-launcher.md b/source/blog/2014-12-23-mpv-launcher.md index b377aa1d..41382d69 100644 --- a/source/blog/2014-12-23-mpv-launcher.md +++ b/source/blog/2014-12-23-mpv-launcher.md @@ -1,7 +1,7 @@ --- title: "mpv launcher" date: 2014-12-23T00:51:05-0800 -date-display: December 23, 2014 +date_display: December 23, 2014 --- **_04/06/2015 update:_** diff --git a/source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md b/source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md index a6e20257..d7f35d5c 100644 --- a/source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md +++ b/source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md @@ -1,7 +1,7 @@ --- title: "OS X system ruby encoding annoyance" date: 2015-01-01T22:49:39-0800 -date-display: January 1, 2015 +date_display: January 1, 2015 --- I've been using RVM (with fairly up-to-date Rubies) and pry since my day one with Ruby (well, almost), so it actually surprises me today when I found out by chance how poorly the system Ruby behaves when it comes to encoding. diff --git a/source/blog/2015-01-10-fonts-why-chinese-web-design-is-hard.md b/source/blog/2015-01-10-fonts-why-chinese-web-design-is-hard.md index c60b165c..13e91cd7 100644 --- a/source/blog/2015-01-10-fonts-why-chinese-web-design-is-hard.md +++ b/source/blog/2015-01-10-fonts-why-chinese-web-design-is-hard.md @@ -1,7 +1,7 @@ --- title: "Fonts: why Chinese web design is hard" date: 2015-01-10T09:30:02-0800 -date-display: January 10, 2015 +date_display: January 10, 2015 --- For years I've been complaining about Chinese websites' horrendous designs. Yesterday I tried to translate one of my simple project websites to Chinese, and finally realized that web design for the Chinese language is no simple task — much harder than for English. The problem is fonts. This might not be the only problem (and cannot take blame for all the horrendous designs), but it certainly seems to be a roadblock. diff --git a/source/blog/2015-01-21-web-design-microsoft-vs-apple.md b/source/blog/2015-01-21-web-design-microsoft-vs-apple.md index 671192ba..82078dda 100644 --- a/source/blog/2015-01-21-web-design-microsoft-vs-apple.md +++ b/source/blog/2015-01-21-web-design-microsoft-vs-apple.md @@ -1,7 +1,7 @@ --- title: "Web design: Microsoft vs Apple" date: 2015-01-21T16:30:51-0800 -date-display: January 21, 2015 +date_display: January 21, 2015 --- I just had a look at Ars's live blog on today's Windows 10 Event to acquire a sense of where Windows is heading. There's not much to report. Safari rip-off (Microsoft's new Spartan — wait, is this name also inspired by Safari? — features reading mode and offline reading list, Safari's killer features) aside, the focus seems to be virtual assistant, PC-tablet-phone integration, and gaming, none of which I'm interested in. The hologram thing does look cool, but putting the hype aside, I doubt if it will be really useful for the masses (except probably in gaming, one of my most despised applications of computing). I'm not a visionary so maybe I'm underestimating this. diff --git a/source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md b/source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md index 5191a2ba..24cad7c3 100644 --- a/source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md +++ b/source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md @@ -1,7 +1,7 @@ --- title: "Monitor progress of your Unix pipes with pv" date: 2015-02-10T02:18:30-0800 -date-display: February 10, 2015 +date_display: February 10, 2015 --- Recently I found a very useful utility called `pv` (for "pipe viewer"). [Here](http://www.ivarch.com/programs/pv.shtml) is its home page, and it can be easily installed with `brew`. According to its man page, diff --git a/source/blog/2015-02-17-microsoft-is-getting-cool-but-not-its-website.md b/source/blog/2015-02-17-microsoft-is-getting-cool-but-not-its-website.md index ebff0f29..6a33e176 100644 --- a/source/blog/2015-02-17-microsoft-is-getting-cool-but-not-its-website.md +++ b/source/blog/2015-02-17-microsoft-is-getting-cool-but-not-its-website.md @@ -1,7 +1,7 @@ --- title: "Microsoft is getting cool (but not its website)" date: 2015-02-17T18:57:19-0800 -date-display: February 17, 2015 +date_display: February 17, 2015 --- Microsoft is getting kind of cool. For instance, open sourcing .NET last year caused quite a buzz. Ars has a good piece about this: [Microsoft’s continuing efforts to be cool](http://arstechnica.com/information-technology/2015/02/microsofts-continuing-efforts-to-be-cool/). diff --git a/source/blog/2015-02-20-my-dock-and-updated-omnifocus.md b/source/blog/2015-02-20-my-dock-and-updated-omnifocus.md index 9b0fe075..4f4a996b 100644 --- a/source/blog/2015-02-20-my-dock-and-updated-omnifocus.md +++ b/source/blog/2015-02-20-my-dock-and-updated-omnifocus.md @@ -1,7 +1,7 @@ --- title: "My dock and updated OmniFocus" date: 2015-02-20T16:16:10-0800 -date-display: February 20, 2015 +date_display: February 20, 2015 --- > Simplicity is the ultimate sophistication. diff --git a/source/blog/2015-02-21-all-is-not-lost.md b/source/blog/2015-02-21-all-is-not-lost.md index 1e25c13f..e9114183 100644 --- a/source/blog/2015-02-21-all-is-not-lost.md +++ b/source/blog/2015-02-21-all-is-not-lost.md @@ -1,7 +1,7 @@ --- title: "All is not lost" date: 2015-02-21T17:12:32-0800 -date-display: February 21, 2015 +date_display: February 21, 2015 --- Lubos Motl always attacks the Many-Worlds Interpretation as if it is on the same level as anti-scientific claims. He even went on to attack Hugh Everett (the guy who first formulated this interpretation) personally; *ad hominem* is of course typical Motl shit, and I don't bother to find those posts. Anyway, here's yet another one: [Many worlds: a Rozali-Carroll exchange](http://motls.blogspot.com/2015/02/many-worlds-rozali-carroll-exchange.html). diff --git a/source/blog/2015-02-24-the-new-onedrive-api.md b/source/blog/2015-02-24-the-new-onedrive-api.md index 1a973d58..9d685a9f 100644 --- a/source/blog/2015-02-24-the-new-onedrive-api.md +++ b/source/blog/2015-02-24-the-new-onedrive-api.md @@ -1,7 +1,7 @@ --- title: "The new OneDrive API" date: 2015-02-24T18:31:19-0800 -date-display: February 24, 2015 +date_display: February 24, 2015 --- Microsoft released the new OneDrive API today. See the blog post announcement [here](https://blog.onedrive.com/the-new-onedrive-api/). One highlight is that [large file upload](http://onedrive.github.io/items/upload_large_files.htm) is now officially supported. Previously, large file upload was handled with a semi-official API using the BITS protocol; the only documentation was a [gist](https://gist.github.com/rgregg/37ba8929768a62131e85). Now it is handled through standard HTTP `POST`. With this major release, there's likely a lot of work to be done with [python-onedrive](https://github.com/mk-fg/python-onedrive). I have opened an issue: [mk-fg/python-onedrive#52 — New OneDrive API support](https://github.com/mk-fg/python-onedrive/issues/52). diff --git a/source/blog/2015-03-22-back-up-os-x-app-icons.md b/source/blog/2015-03-22-back-up-os-x-app-icons.md index 712fbfe1..05d441ac 100644 --- a/source/blog/2015-03-22-back-up-os-x-app-icons.md +++ b/source/blog/2015-03-22-back-up-os-x-app-icons.md @@ -1,7 +1,7 @@ --- title: "Back up OS X app icons" date: 2015-03-22T16:58:50-0700 -date-display: March 22, 2015 +date_display: March 22, 2015 --- OS X application icons are valuable assets, and it's interesting to see how they evolve over time. This is especially the case when we upgraded to OS X 10.10 Yosemite, when Apple and many design-aware third party developers overhauled (mainly flattened) their icons. diff --git a/source/blog/2015-04-26-using-python-3-with-emacs-jedi.md b/source/blog/2015-04-26-using-python-3-with-emacs-jedi.md index 1d95f506..a475a8bc 100644 --- a/source/blog/2015-04-26-using-python-3-with-emacs-jedi.md +++ b/source/blog/2015-04-26-using-python-3-with-emacs-jedi.md @@ -1,7 +1,7 @@ --- title: "Using Python 3 with Emacs Jedi" date: 2015-04-26T21:19:14-0700 -date-display: April 26, 2015 +date_display: April 26, 2015 --- Recently I'm working on [a hobby project in Python](https://github.com/zmwangx/storyboard), which means editing Python source files a lot. I've been using [Emacs Jedi](https://github.com/tkf/emacs-jedi) for almost as long as I've been writing Python, and it has been pretty helpful at completing away long names. diff --git a/source/blog/2015-05-03-why-oh-my-zsh-is-completely-broken.md b/source/blog/2015-05-03-why-oh-my-zsh-is-completely-broken.md index 58296800..a7d29989 100644 --- a/source/blog/2015-05-03-why-oh-my-zsh-is-completely-broken.md +++ b/source/blog/2015-05-03-why-oh-my-zsh-is-completely-broken.md @@ -1,7 +1,7 @@ --- title: "Why Oh My Zsh is completely broken" date: 2015-05-03T17:15:49-0700 -date-display: May 3, 2015 +date_display: May 3, 2015 --- Today I moved from [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh) to [Prezto](https://github.com/sorin-ionescu/prezto), after using Oh My Zsh for about three years since 2012. I'll try to shed some light on the reasons in this post. diff --git a/source/blog/2015-05-05-graceful-handling-of-sigint-when-using-pythons-multiprocessingprocess.md b/source/blog/2015-05-05-graceful-handling-of-sigint-when-using-pythons-multiprocessingprocess.md index c289dece..6e0ca9b0 100644 --- a/source/blog/2015-05-05-graceful-handling-of-sigint-when-using-pythons-multiprocessingprocess.md +++ b/source/blog/2015-05-05-graceful-handling-of-sigint-when-using-pythons-multiprocessingprocess.md @@ -1,7 +1,7 @@ --- title: "Graceful handling of <code>SIGINT</code> when using Python's <code>multiprocessing.Process</code>" date: 2015-05-05T22:03:39-07:00 -date-display: May 5, 2015 +date_display: May 5, 2015 --- Today I learned something about Python's (at least CPython's) multiprocessing and signal handling, and I would like to share it here. Basically my situation was such (when developing [`pydoc`](https://github.com/zmwangx/zmwangx.github.io/blob/source/pyblog) that powers this blog): diff --git a/source/blog/2015-05-05-new-blog-new-start.md b/source/blog/2015-05-05-new-blog-new-start.md index 2a0cf272..2f077f9a 100644 --- a/source/blog/2015-05-05-new-blog-new-start.md +++ b/source/blog/2015-05-05-new-blog-new-start.md @@ -1,7 +1,7 @@ --- title: "New blog, new start" date: 2015-05-05T02:42:44-07:00 -date-display: May 5, 2015 +date_display: May 5, 2015 --- Octopress has been serving me for the past six months, during which even Octopress itself underwent major changes — in fact, [Octopress 3.0.0](https://github.com/octopress/octopress/releases/tag/v3.0.0) was only released 3 days ago, which I never got to try. Anyway, Octopress's heavily colored interface grew old on me fairly quickly. I'm especially unhappy with the inline `<code>` tag, which is always wrapped in a white box and stands out too much (worse still, there's no visual difference when such a `<code>` tag is placed inside an `<a>` tag). Since I use inline code/verbatim a lot, many of my articles were littered with arbitrary boxes everywhere. diff --git a/source/blog/2015-05-06-searchable-settings-are-one-honking-great-idea-lets-do-more-of-those.md b/source/blog/2015-05-06-searchable-settings-are-one-honking-great-idea-lets-do-more-of-those.md index 25b9c3f4..72f5ee04 100644 --- a/source/blog/2015-05-06-searchable-settings-are-one-honking-great-idea-lets-do-more-of-those.md +++ b/source/blog/2015-05-06-searchable-settings-are-one-honking-great-idea-lets-do-more-of-those.md @@ -1,7 +1,7 @@ --- title: "Searchable settings are one honking great idea — let's do more of those!" date: 2015-05-06T19:29:46-07:00 -date-display: May 6, 2015 +date_display: May 6, 2015 --- I had to tweak some iOS settings just now, which wasn't a delightful experience. Since I just renovated my blog inside out and am still in the hype mode, I'll write a post on the interface design of settings or preferences. diff --git a/source/blog/2015-05-09-storyboard-reached-01.md b/source/blog/2015-05-09-storyboard-reached-01.md index 30ad4c1f..3364d9aa 100644 --- a/source/blog/2015-05-09-storyboard-reached-01.md +++ b/source/blog/2015-05-09-storyboard-reached-01.md @@ -1,7 +1,7 @@ --- title: "<code>storyboard</code> reached 0.1" date: 2015-05-09T00:32:28-07:00 -date-display: May 9, 2015 +date_display: May 9, 2015 --- For quite some time I've been working on a Python project called [`storyboard`](https://github.com/zmwangx/storyboard), and today I finally released the 0.1 stable (or you can think of it as 1.0). diff --git a/source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md b/source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md index 7e6c6e3a..143a5f36 100644 --- a/source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md +++ b/source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md @@ -1,7 +1,7 @@ --- title: "Bash: the special slash character in filename expansion" date: 2015-05-19T18:33:51-07:00 -date-display: May 19, 2015 +date_display: May 19, 2015 --- It is well-known and common sense that the slash character (`/`) serves a special role in Bash filename expansion. For instance, the asterisk `*` certainly won't match `/` or `.` when used in filename expansion; otherwise, a standalone `*` would match everything in the filesystem. diff --git a/source/blog/2015-05-22-using-a-command-table-as-wallpaper.md b/source/blog/2015-05-22-using-a-command-table-as-wallpaper.md index 5eacb0e1..6d2d5143 100644 --- a/source/blog/2015-05-22-using-a-command-table-as-wallpaper.md +++ b/source/blog/2015-05-22-using-a-command-table-as-wallpaper.md @@ -1,7 +1,7 @@ --- title: "Using a command table as wallpaper" date: 2015-05-22T00:48:19-07:00 -date-display: May 22, 2015 +date_display: May 22, 2015 --- Recently I cleaned up my source code directory, removed a lot of rarely-used, dated scripts, and grouped the remaining standalone scripts into a central place (`~/dev/scripts`)[^dev]. One thing I learned in this process is that I tend to write a reusable script but rarely actually reuse it (even if it sits on `PATH`), sometimes implementing the same functionality twice or typing a long command line over and over again. diff --git a/source/blog/2015-05-29-apples-customer-service-is-still-the-best-plus-an-authy-horror-story.md b/source/blog/2015-05-29-apples-customer-service-is-still-the-best-plus-an-authy-horror-story.md index 9873eccc..003ab394 100644 --- a/source/blog/2015-05-29-apples-customer-service-is-still-the-best-plus-an-authy-horror-story.md +++ b/source/blog/2015-05-29-apples-customer-service-is-still-the-best-plus-an-authy-horror-story.md @@ -1,7 +1,7 @@ --- title: "Apple's customer service is still the best (plus an Authy horror story)" date: 2015-05-29T20:40:05-07:00 -date-display: May 29, 2015 +date_display: May 29, 2015 --- Recently the mute switch (officially known as the Ring/Silent switch) on my little-more-than-half-a-year-old iPhone 6 Plus stopped working. It almost always bounced back to ON (ring) position upon turning, and even if I could keep it at the OFF position for five seconds, it would most likely bounce back when I thrust it into my pocket. I got bitten a few times — almost got heart attacks when the phone dinged loudly in class. Minor yet annoying problem. diff --git a/source/blog/2015-05-30-using-a-personal-helper-package-in-everyday-scripting.md b/source/blog/2015-05-30-using-a-personal-helper-package-in-everyday-scripting.md index dbd4a181..7bd23d75 100644 --- a/source/blog/2015-05-30-using-a-personal-helper-package-in-everyday-scripting.md +++ b/source/blog/2015-05-30-using-a-personal-helper-package-in-everyday-scripting.md @@ -1,7 +1,7 @@ --- title: "Using a personal helper package in everyday scripting" date: 2015-05-30T22:48:57-07:00 -date-display: May 30, 2015 +date_display: May 30, 2015 --- Recently I've been scripting (mostly in Python) quite a bit, and noticed that some functionalities get copied over or reimplemented over and over again. Examples include reading configuration files (mostly JSON, INI, and YAML), printing progress information to tty in color, displaying progress bar, and so on. diff --git a/source/blog/2015-06-07-stackoverflow-review-system-is-completely-bs.md b/source/blog/2015-06-07-stackoverflow-review-system-is-completely-bs.md index 4573303c..7b0be5c3 100644 --- a/source/blog/2015-06-07-stackoverflow-review-system-is-completely-bs.md +++ b/source/blog/2015-06-07-stackoverflow-review-system-is-completely-bs.md @@ -1,7 +1,7 @@ --- title: "StackOverflow review system is completely BS" date: 2015-06-07T18:58:57-07:00 -date-display: June 7, 2015 +date_display: June 7, 2015 --- I just answered an interesting question about ZLE [on StackOverflow](http://stackoverflow.com/q/30699242/1944784), and in the process I also improved my own toolchain. For the record, the OP asked for tab completion to present working directory items (executable files and directories) on an empty command line, which led to the following widget: diff --git a/source/blog/2015-06-08-apple-turns-its-homepage-into-a-wwdc-liveblog.md b/source/blog/2015-06-08-apple-turns-its-homepage-into-a-wwdc-liveblog.md index d95638d1..e6b2b232 100644 --- a/source/blog/2015-06-08-apple-turns-its-homepage-into-a-wwdc-liveblog.md +++ b/source/blog/2015-06-08-apple-turns-its-homepage-into-a-wwdc-liveblog.md @@ -1,7 +1,7 @@ --- title: "Apple turns its homepage into a WWDC liveblog" date: 2015-06-08T14:42:50-07:00 -date-display: June 8, 2015 +date_display: June 8, 2015 --- WWDC is Apple's biggest event every year, and WWDC keynote always attracts tons of hype. Apple knows that. In the past years folks who can't (at work, in class, etc.) or don't want to watch the crappy live stream would follow the various WWDC liveblogs presented by tech sites like Gizmodo, TechCrunch, Ars Technica, etc. But this year the landscape has changed: Apple rolled its own card-based liveblog at [www.apple.com/live/2015-june-event](http://www.apple.com/live/2015-june-event/).[^stream] Not only that; during the keynote, Apple redirected its homepage to the liveblog page, so it effectively turned its homepage into a liveblog: diff --git a/source/blog/2015-06-10-chrome-disappointment-the-shabby-and-boring-old-bookmark-system-from-stone-age-strikes-back.md b/source/blog/2015-06-10-chrome-disappointment-the-shabby-and-boring-old-bookmark-system-from-stone-age-strikes-back.md index 92c0897b..74339127 100644 --- a/source/blog/2015-06-10-chrome-disappointment-the-shabby-and-boring-old-bookmark-system-from-stone-age-strikes-back.md +++ b/source/blog/2015-06-10-chrome-disappointment-the-shabby-and-boring-old-bookmark-system-from-stone-age-strikes-back.md @@ -1,7 +1,7 @@ --- title: "Chrome disappointment: the shabby and boring old bookmark system from Stone Age strikes back" date: 2015-06-10T23:17:05-07:00 -date-display: June 10, 2015 +date_display: June 10, 2015 --- I just restarted my machine (in the process of planning a fresh OS re-install), and something in Chrome's UI immediately felt wrong. After a few moments I realized it was the star button (bookmark button) in the far right of the omnibox giving me the uneasy feeling — the old bookmark system is back. Broadcasting from stable channel, build 43.0.2357.124 on OS X. diff --git a/source/blog/2015-06-12-the-tip-of-the-iceberg.md b/source/blog/2015-06-12-the-tip-of-the-iceberg.md index e5a747ab..fc821857 100644 --- a/source/blog/2015-06-12-the-tip-of-the-iceberg.md +++ b/source/blog/2015-06-12-the-tip-of-the-iceberg.md @@ -1,7 +1,7 @@ --- title: "The tip of the iceberg" date: 2015-06-12T14:24:18-07:00 -date-display: June 12, 2015 +date_display: June 12, 2015 --- *__Disclaimer__: While this post might have been triggered by a [specific](https://twitter.com/search?q=%23distractinglysexy)[^not-shaming] campaign, I'm certainly not addressing any specific concern or siding with any party. I never bothered to learn enough about a specific campaign to form a judgement that I would stand by,[^judge] since I simply don't care. I'm writing this post because I'm just too tired to see them popping up in my feeds every once in a while.* diff --git a/source/blog/2015-06-23-all-problems-solved.md b/source/blog/2015-06-23-all-problems-solved.md index d5918250..3894246b 100644 --- a/source/blog/2015-06-23-all-problems-solved.md +++ b/source/blog/2015-06-23-all-problems-solved.md @@ -1,7 +1,7 @@ --- title: "All problems solved!?" date: 2015-06-23T21:47:07-07:00 -date-display: June 23, 2015 +date_display: June 23, 2015 --- The project I've been working on intermittently over the past month, [`pyonedrive`](https://github.com/zmwangx/pyonedrive), a OneDrive API v1.0 API/CLI client, is now quite satisfactory in terms of its feature set[^1], so today I'm thinking about what I should work on next. Of course there's [a lot more I can do](https://github.com/zmwangx/pyonedrive/labels/enhancement), but what is done already encapsulates 95%+ of my daily usage; moreover, as everyone knows, refining an existing project is not as exciting as starting a new one and making something happen that is previously tedious or impossible. diff --git a/source/blog/2015-06-26-ios-9-searchable-settings.md b/source/blog/2015-06-26-ios-9-searchable-settings.md index 148a649d..6a3febf8 100644 --- a/source/blog/2015-06-26-ios-9-searchable-settings.md +++ b/source/blog/2015-06-26-ios-9-searchable-settings.md @@ -1,7 +1,7 @@ --- title: "iOS 9: searchable Settings" date: 2015-06-26T23:59:28-07:00 -date-display: June 26, 2015 +date_display: June 26, 2015 --- Finally it's here. According to [MacRumors](http://www.macrumors.com/2015/06/26/hidden-features-in-ios-9-and-os-x-el-capitan/): diff --git a/source/blog/2015-06-27-automatically-clean-up-previous-mobile-applications.md b/source/blog/2015-06-27-automatically-clean-up-previous-mobile-applications.md index ff629c3b..1ccab97c 100644 --- a/source/blog/2015-06-27-automatically-clean-up-previous-mobile-applications.md +++ b/source/blog/2015-06-27-automatically-clean-up-previous-mobile-applications.md @@ -1,7 +1,7 @@ --- title: 'Automatically clean up "Previous Mobile Applications"' date: 2015-06-27T21:19:59-07:00 -date-display: June 27, 2015 +date_display: June 27, 2015 --- iTunes keeps a "Previous Mobile Applications" folder of questionable value, which always annoys me. It eats into disk space and wastes syncing/backup cycles and bandwidth; you can easily find horror stories online about [100GB+ PMA folders](http://forums.macrumors.com/threads/5-years-of-deleted-iphone-apps-accumulated-in-my-itunes-library.1781676/#post-19749496). The value? You might be able to roll back to an earlier version, or restore an app pulled from the App Store. Really? I never had that need in my life[^disclosure]; have you? Worst of all, there should be a periodic clean up option — just like how deleted mail are automatically purged after one month, but the option is missing. diff --git a/source/blog/2015-06-29-dl-cmplnts-in-apple-news.md b/source/blog/2015-06-29-dl-cmplnts-in-apple-news.md index a4421f2a..20c85703 100644 --- a/source/blog/2015-06-29-dl-cmplnts-in-apple-news.md +++ b/source/blog/2015-06-29-dl-cmplnts-in-apple-news.md @@ -1,7 +1,7 @@ --- title: "dl? cmplnts? in Apple News" date: 2015-06-29T23:14:42-07:00 -date-display: June 29, 2015 +date_display: June 29, 2015 --- I submitted this blog to Apple via [News Publisher](https://developer.apple.com/news-publisher/) a few days after the WWDC keynote, just to get a feel for the submission process. It was easy; basically I just needed to provide an [Atom 1.0](/atom.xml) or [RSS 2.0](/rss.xml) feed, both of which I already have anyway.[^care] I was told at the end of the submission process that my submission would be reviewed. diff --git a/source/blog/2015-07-15-zsh-save-stdout-stderr-and-return-value-of-command-to-different-variables-without-temp-file.md b/source/blog/2015-07-15-zsh-save-stdout-stderr-and-return-value-of-command-to-different-variables-without-temp-file.md index d27a3002..32ca1ca5 100644 --- a/source/blog/2015-07-15-zsh-save-stdout-stderr-and-return-value-of-command-to-different-variables-without-temp-file.md +++ b/source/blog/2015-07-15-zsh-save-stdout-stderr-and-return-value-of-command-to-different-variables-without-temp-file.md @@ -1,7 +1,7 @@ --- title: "Zsh: save stdout, stderr, and return value of command to different variables (without temp file)" date: 2015-07-15T09:21:47-07:00 -date-display: July 15, 2015 +date_display: July 15, 2015 --- This is something worth sharing. The idea was based on [this SO answer](http://stackoverflow.com/a/18086548/1944784), and I cooked up this particular implementation to remove potential race conditions, with input from Mathias Fredriksson[^1]. See [mafredri/zsh-async#1](https://github.com/mafredri/zsh-async/issues/1), and in particular [this comment](https://github.com/mafredri/zsh-async/issues/1#issuecomment-121468958) for explanation. diff --git a/source/blog/2015-07-19-github-experimental-attachment-formats-pdf-docx-and-pptx.md b/source/blog/2015-07-19-github-experimental-attachment-formats-pdf-docx-and-pptx.md index aebc2c4e..57b6246d 100644 --- a/source/blog/2015-07-19-github-experimental-attachment-formats-pdf-docx-and-pptx.md +++ b/source/blog/2015-07-19-github-experimental-attachment-formats-pdf-docx-and-pptx.md @@ -1,7 +1,7 @@ --- title: "GitHub experimental attachment formats: PDF, DOCX and PPTX!?!" date: 2015-07-19T21:58:01-07:00 -date-display: July 19, 2015 +date_display: July 19, 2015 --- I was browsing [github/hub](https://github.com/github/hub), and noticed something funny in the issue tracker: diff --git a/source/blog/2015-07-25-dl-cmplntss-web-doesnt-suck.md b/source/blog/2015-07-25-dl-cmplntss-web-doesnt-suck.md index 5eb33c40..a2c47fad 100644 --- a/source/blog/2015-07-25-dl-cmplntss-web-doesnt-suck.md +++ b/source/blog/2015-07-25-dl-cmplntss-web-doesnt-suck.md @@ -1,7 +1,7 @@ --- title: "dl? cmplnts?'s web doesn't suck" date: 2015-07-25T11:31:54-07:00 -date-display: July 25, 2015 +date_display: July 25, 2015 --- I was reading [Les Orchard's *The Verge's web sucks*](http://blog.lmorchard.com/2015/07/22/the-verge-web-sucks/) just now, and inspired by his dignostics of his various daily reads, I also ran the performance meter on my very own blog. Fortunately, it doesn't suck[^firefox]: diff --git a/source/blog/2015-07-30-the-sad-state-of-finder-on-el-capitan.md b/source/blog/2015-07-30-the-sad-state-of-finder-on-el-capitan.md index 830cdd53..c671667e 100644 --- a/source/blog/2015-07-30-the-sad-state-of-finder-on-el-capitan.md +++ b/source/blog/2015-07-30-the-sad-state-of-finder-on-el-capitan.md @@ -1,7 +1,7 @@ --- title: "The sad state of Finder on El Capitan" date: 2015-07-30T23:59:09-07:00 -date-display: July 30, 2015 +date_display: July 30, 2015 --- I was listening to [Accidental Tech Podcast E128](http://atp.fm/episodes/128) today, which discussed the implications of Rootless (i.e. System Integrity Protection) at quite some length.[^1] Which stirred up my old worries about the Finder — I was briefly concerned about TotalFinder immediately after Rootless was announced in WWDC, but was quickly reassured and forgot that concern after learning that Homebrew (i.e. `/usr/local`) isn't affected, which attracted more of my attention. diff --git a/source/blog/2015-08-02-sync-chrome-bookmarks-with-safari-on-os-x.md b/source/blog/2015-08-02-sync-chrome-bookmarks-with-safari-on-os-x.md index 5881f730..4d140d04 100644 --- a/source/blog/2015-08-02-sync-chrome-bookmarks-with-safari-on-os-x.md +++ b/source/blog/2015-08-02-sync-chrome-bookmarks-with-safari-on-os-x.md @@ -1,7 +1,7 @@ --- title: "Sync Chrome bookmarks with Safari on OS X" date: 2015-08-02T22:11:56-07:00 -date-display: August 2, 2015 +date_display: August 2, 2015 --- **08/11/2015 Update:** I have taken down the project from GitHub since it's way too flaky. Guess I'll stick with manually clicking around then... diff --git a/source/blog/2015-08-05-should-apple-split-up-itunes-on-os-x.md b/source/blog/2015-08-05-should-apple-split-up-itunes-on-os-x.md index 4766474e..59113e2e 100644 --- a/source/blog/2015-08-05-should-apple-split-up-itunes-on-os-x.md +++ b/source/blog/2015-08-05-should-apple-split-up-itunes-on-os-x.md @@ -1,7 +1,7 @@ --- title: "Should Apple split up iTunes on OS X?" date: 2015-08-05T14:09:51-07:00 -date-display: August 5, 2015 +date_display: August 5, 2015 --- These days everyone seems to be talking about how complicated iTunes is and how Apple should give it a clean-sheet rewrite. This is not new, but the argument has certainly intensified ever since the introduction of iCloud Photo Library and Apple Music. For one recent example, see [Don't order the fish](http://www.marco.org/2015/07/26/dont-order-the-fish) by Marco Arment. I was listening to John Gruber's [The Talk Show episode 127](https://daringfireball.net/thetalkshow/2015/07/29/ep-127) earlier today (a little bit late to the game, yeah), and the complexity argument was brought up yet again. diff --git a/source/blog/2015-08-05-switching-to-capitalized-commit-messages.md b/source/blog/2015-08-05-switching-to-capitalized-commit-messages.md index 55613b6b..04a018f5 100644 --- a/source/blog/2015-08-05-switching-to-capitalized-commit-messages.md +++ b/source/blog/2015-08-05-switching-to-capitalized-commit-messages.md @@ -1,7 +1,7 @@ --- title: "Switching to capitalized commit messages" date: 2015-08-05T19:38:37-07:00 -date-display: August 5, 2015 +date_display: August 5, 2015 --- This post is a note to self. diff --git a/source/blog/2015-08-13-other-peoples-___.md b/source/blog/2015-08-13-other-peoples-___.md index 801fcad2..6a8e583f 100644 --- a/source/blog/2015-08-13-other-peoples-___.md +++ b/source/blog/2015-08-13-other-peoples-___.md @@ -1,6 +1,6 @@ --- title: "Other people's ___" date: 2015-08-13T02:00:24-07:00 -date-display: August 13, 2015 +date_display: August 13, 2015 --- Often enough we look at other people's ___ (fill in the blank here) and say wow, but more often than not when we actually get to lay our hands on it, we find it less than impressive or even super annoying, and end up having nothing to say but meh. For Zsh geeks, examples include other people's Zsh prompts<a href="https://github.com/chauncey-garrett/zsh-prompt-garrett" style="text-decoration: none">,</a> zsh-syntax-highlighting, and zsh-autosuggestions. diff --git a/source/blog/2015-08-14-laymen.md b/source/blog/2015-08-14-laymen.md index 673c32e4..15690e2f 100644 --- a/source/blog/2015-08-14-laymen.md +++ b/source/blog/2015-08-14-laymen.md @@ -1,7 +1,7 @@ --- title: "Laymen" date: 2015-08-14T18:32:13-07:00 -date-display: August 14, 2015 +date_display: August 14, 2015 --- I always cringe when I see laymen discussing physics in comments sections of news websites. A typical situation: one commentator put together a sentence with all physics-sounding (kind of) terms he's ever heard of; the next commentator "agrees" with the previous one, adding something that sounds more reasonable (to folks who've never taken high school physics) but unfortunately violates the first law of thermodynamics; then yet another guy comes along and corrects both of the above in a pedagogic tone, with an argument that violates the second law of thermodymics... diff --git a/source/blog/2015-08-20-i-installed-blockparty-and-the-only-thing-i-can-say-is-wow.md b/source/blog/2015-08-20-i-installed-blockparty-and-the-only-thing-i-can-say-is-wow.md index 744a6eb8..1b367b66 100644 --- a/source/blog/2015-08-20-i-installed-blockparty-and-the-only-thing-i-can-say-is-wow.md +++ b/source/blog/2015-08-20-i-installed-blockparty-and-the-only-thing-i-can-say-is-wow.md @@ -1,7 +1,7 @@ --- title: "I installed BlockParty, and the only thing I can say is WOW" date: 2015-08-20T20:58:55-07:00 -date-display: August 20, 2015 +date_display: August 20, 2015 --- **09/18/2015 update.** Okay, [Peace has been pulled](http://www.marco.org/2015/09/18/just-doesnt-feel-good). Guess I'll keep using it for a while, though. diff --git a/source/blog/2015-08-20-ios-9-turn-off-wi-fi-assist.md b/source/blog/2015-08-20-ios-9-turn-off-wi-fi-assist.md index 78fcca4b..0ae72764 100644 --- a/source/blog/2015-08-20-ios-9-turn-off-wi-fi-assist.md +++ b/source/blog/2015-08-20-ios-9-turn-off-wi-fi-assist.md @@ -1,7 +1,7 @@ --- title: "iOS 9: turn off Wi-Fi Assist!" date: 2015-08-20T01:01:57-07:00 -date-display: August 20, 2015 +date_display: August 20, 2015 --- Seriously. Go to Settings->Cellular, and scroll all the way down to reveal the "Wi-Fi Assist" switch. See screenshot at the end of the post. You'll see a description: diff --git a/source/blog/2015-08-25-automated-os-x-provisioning.md b/source/blog/2015-08-25-automated-os-x-provisioning.md index fd282238..54ee89e6 100644 --- a/source/blog/2015-08-25-automated-os-x-provisioning.md +++ b/source/blog/2015-08-25-automated-os-x-provisioning.md @@ -1,7 +1,7 @@ --- title: "Automated OS X provisioning" date: 2015-08-25T08:16:44-07:00 -date-display: August 25, 2015 +date_display: August 25, 2015 --- After quite a bit of work, I finally have a decent OS X provisioning system, capable of provisioning a blank OS X install (with Xcode and CLT) for development and everyday life. diff --git a/source/blog/2015-08-31-after-all-these-years-10pt-non-anti-aliased-monaco-is-still-the-best.md b/source/blog/2015-08-31-after-all-these-years-10pt-non-anti-aliased-monaco-is-still-the-best.md index 59b672b9..601421ec 100644 --- a/source/blog/2015-08-31-after-all-these-years-10pt-non-anti-aliased-monaco-is-still-the-best.md +++ b/source/blog/2015-08-31-after-all-these-years-10pt-non-anti-aliased-monaco-is-still-the-best.md @@ -1,7 +1,7 @@ --- title: "After all these years, 10pt non-anti-aliased Monaco is still the best" date: 2015-08-31T06:31:03+08:00 -date-display: August 31, 2015 +date_display: August 31, 2015 --- Ars Technica [just ran a piece](http://arstechnica.com/information-technology/2015/08/open-source-typeface-hack-brings-design-to-source-code/) on the open source programming font [Hack](https://github.com/chrissimpkins/Hack). Now I don't really know why this is news-worthy (open source programming fonts aren't a new thing), but I thought I'd give it a try. diff --git a/source/blog/2015-09-21-zsh-51-and-bracketed-paste.md b/source/blog/2015-09-21-zsh-51-and-bracketed-paste.md index 3750f566..61e421b6 100644 --- a/source/blog/2015-09-21-zsh-51-and-bracketed-paste.md +++ b/source/blog/2015-09-21-zsh-51-and-bracketed-paste.md @@ -1,7 +1,7 @@ --- title: "Zsh 5.1 and bracketed paste" date: 2015-09-21T14:40:36-07:00 -date-display: September 21, 2015 +date_display: September 21, 2015 --- **TL;DR.** Jump to [code](#code). diff --git a/templates/template.html b/templates/template.html index 65f22d11..b3d2ade4 100644 --- a/templates/template.html +++ b/templates/template.html @@ -50,8 +50,8 @@ $if(subtitle)$ <h1 class="article-subtitle">$subtitle$</h1> $endif$ <h2 class="article-metadata"> -$if(date-display)$ - <time class="article-timestamp" $if(date)$datetime="$date$"$endif$>$date-display$,</time> +$if(date_display)$ + <time class="article-timestamp" $if(date)$datetime="$date$"$endif$>$date_display$,</time> $endif$ by <span class="article-author">Zhiming Wang</span> </h2> diff --git a/tools/convert-from-octopress.awk b/tools/convert-from-octopress.awk index 43978df3..e8235021 100755 --- a/tools/convert-from-octopress.awk +++ b/tools/convert-from-octopress.awk @@ -33,11 +33,11 @@ # to # # date: 2015-05-03T17:15:49-0700 - # date-display: May 3, 2015 + # date_display: May 3, 2015 # # Requires date from coreutils; BSD date doesn't work. printf "date: %sT%s%s\n", $2, $3, $4 - printf "date-display: " + printf "date_display: " system("date -d "$2" +'%B %_d, %Y'") } else { print |