From 7f98cee1da17f29b785f190e31e07f6a8dfb0131 Mon Sep 17 00:00:00 2001 From: Chris Hodapp Date: Sun, 2 Feb 2020 14:02:10 -0500 Subject: [PATCH] Started restoring some old images & posts; changed themes to notepadium --- .gitmodules | 3 + hugo_blag/config.toml | 35 +++++++++- .../2008-03-22-hello-world-2.markdown | 0 ...stian-appalachian-project-day-one.markdown | 0 .../2008-03-25-workfest-day-two.markdown | 0 .../2008-03-26-workfest-day-three.markdown | 0 .../2008-03-27-workfest-day-four.markdown | 0 .../2008-03-28-workfest-day-fourfive.markdown | 0 ...stuff-i-experienced-at-work-today.markdown | 0 .../2008-04-04-alexander-blu.markdown | 0 ...and-scrap-notes-starting-20080403.markdown | 0 ...e-scrap-notes-starting-2008-04-18.markdown | 0 ...-05-05-alix1c-board-edirol-repair.markdown | 0 ...-scrap-notes-20080425ish-20080503.markdown | 0 ...overdue-scrap-notes-20080501-0516.markdown | 0 ...ages-of-scrap-notes-20080519-0523.markdown | 0 ...tattered-notebook-from-1999-notes.markdown | 0 ...zed-scrap-notes-20080526-20080601.markdown | 0 ...008-06-07-notes-20080601-20080607.markdown | 0 ...06-18-20080607-20080617-yay-notes.markdown | 0 ...618-20080709-really-overdue-notes.markdown | 0 ...08-07-26-20080710-20080726-debris.markdown | 0 ...008-08-04-20080726-20080803-stuff.markdown | 0 ...0804-20080821-more-technical-blah.markdown | 0 ...2-20080926-or-something-like-that.markdown | 0 ...926-20081109-really-overdue-stuff.markdown | 0 .../old_crap}/2009-04-21-20090420.markdown | 0 .../old_crap}/2009-04-21-20090420b.markdown | 0 .../old_crap}/2009-04-26-20090426-2.markdown | 0 .../old_crap}/2009-04-26-20090426.markdown | 0 .../old_crap}/2009-04-27-20090426-3.markdown | 0 .../old_crap}/2009-04-28-20090426-4.markdown | 0 .../old_crap}/2009-05-01-20090430.markdown | 0 .../old_crap}/2009-05-02-20090501.markdown | 0 .../old_crap}/2009-05-04-20090503.markdown | 0 .../2009-06-15-2009-06-14-4.markdown | 0 .../2009-06-15-2009-06-14-5.markdown | 0 .../old_crap}/2009-06-23-2009-06-15.markdown | 0 .../old_crap}/2009-06-23-2009-06-16.markdown | 0 .../old_crap}/2009-06-23-2009-06-18.markdown | 0 .../old_crap}/2009-06-23-2009-06-19.markdown | 0 .../old_crap}/2009-07-22-2009-07-21.markdown | 0 .../old_crap}/2009-08-14-2009-08-12.markdown | 0 .../2009-10-15-fun-with-nx-stuff.markdown | 0 ...-hacked-infrared-camera-attempt-1.markdown | 0 ...9-angry-rants-2010-summer-edition.markdown | 0 .../2010-11-19-venue-222-rooftop.markdown | 0 ...10-12-05-cyanotypes-first-attempt.markdown | 0 ...0-12-30-cyanotypes-better-results.markdown | 0 ...acro-photography-attempts-1-and-2.markdown | 0 ...er-from-a-recovering-pov-ray-user.markdown | 0 ...06-10-first-attempt-at-slide-film.markdown | 0 ...i-can-never-win-that-context-back.markdown | 0 .../2011-06-13-openframeworks-try-1.markdown | 0 ...my-experiences-with-apache-axis2c.markdown | 0 ...2011-08-27-isolated-pixel-pushing.markdown | 0 .../2011-08-29-context-free.markdown | 0 ...pendencies-external-preprocessing.markdown | 0 ...11-11-24-obscure-features-of-jpeg.markdown | 0 .../2012-08-16-some-thoughts.markdown | 0 .../dla2c.png | Bin .../index.md} | 3 + .../20110118-sketch_mj2011016e.jpg | Bin .../20110131-mj20110114b.jpg | Bin .../20110205-mj20110202-starburst2.jpg | Bin .../hive13-bezier03.png | Bin .../index.md} | 10 ++- .../20100713-0107-interleave.jpg | Bin .../cropphoto1.png | Bin .../cropphoto10.png | Bin .../cropphoto2.png | Bin .../cropphoto3.png | Bin .../cropphoto4.png | Bin .../cropphoto5.png | Bin .../cropphoto6.png | Bin .../cropphoto7.png | Bin .../cropphoto8.png | Bin .../cropphoto9.png | Bin .../index.md} | 63 ++++++++++-------- .../jpeg_split.c | 0 .../libjpeg-wizard.txt | 0 .../2018-04-08-recommender-systems-1/index.md | 34 +++++----- .../content/posts/2018-04-13-opinions-go.org | 48 +++++++------ hugo_blag/themes/hugo-notepadium | 1 + 84 files changed, 126 insertions(+), 71 deletions(-) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-03-22-hello-world-2.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-03-24-workfest-with-christian-appalachian-project-day-one.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-03-25-workfest-day-two.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-03-26-workfest-day-three.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-03-27-workfest-day-four.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-03-28-workfest-day-fourfive.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-03-31-stuff-i-experienced-at-work-today.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-04-04-alexander-blu.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-04-18-post-its-and-scrap-notes-starting-20080403.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-04-26-more-scrap-notes-starting-2008-04-18.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-05-05-alix1c-board-edirol-repair.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-05-05-scrap-notes-20080425ish-20080503.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-05-17-overdue-scrap-notes-20080501-0516.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-05-24-20-pages-of-scrap-notes-20080519-0523.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-05-27-old-tattered-notebook-from-1999-notes.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-06-01-semi-organized-scrap-notes-20080526-20080601.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-06-07-notes-20080601-20080607.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-06-18-20080607-20080617-yay-notes.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-07-10-20080618-20080709-really-overdue-notes.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-07-26-20080710-20080726-debris.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-08-04-20080726-20080803-stuff.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-08-22-20080804-20080821-more-technical-blah.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-09-27-20080822-20080926-or-something-like-that.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2008-11-09-20080926-20081109-really-overdue-stuff.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-04-21-20090420.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-04-21-20090420b.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-04-26-20090426-2.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-04-26-20090426.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-04-27-20090426-3.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-04-28-20090426-4.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-05-01-20090430.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-05-02-20090501.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-05-04-20090503.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-06-15-2009-06-14-4.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-06-15-2009-06-14-5.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-06-23-2009-06-15.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-06-23-2009-06-16.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-06-23-2009-06-18.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-06-23-2009-06-19.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-07-22-2009-07-21.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-08-14-2009-08-12.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2009-10-15-fun-with-nx-stuff.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2010-04-03-hacked-infrared-camera-attempt-1.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2010-06-09-angry-rants-2010-summer-edition.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2010-11-19-venue-222-rooftop.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2010-12-05-cyanotypes-first-attempt.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2010-12-30-cyanotypes-better-results.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2010-12-30-macro-photography-attempts-1-and-2.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-02-07-blender-from-a-recovering-pov-ray-user.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-06-10-first-attempt-at-slide-film.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-06-10-i-can-never-win-that-context-back.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-06-13-openframeworks-try-1.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-07-15-my-experiences-with-apache-axis2c.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-08-27-isolated-pixel-pushing.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-08-29-context-free.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-11-13-qmake-hackery-dependencies-external-preprocessing.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2011-11-24-obscure-features-of-jpeg.markdown (100%) rename {exitwp_raw => hugo_blag/content/old_crap}/2012-08-16-some-thoughts.markdown (100%) rename {images => hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees}/dla2c.png (100%) rename hugo_blag/content/posts/{2010-07-04-processing-dla-quadtrees.md => 2010-07-04-processing-dla-quadtrees/index.md} (95%) rename {images => hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user}/20110118-sketch_mj2011016e.jpg (100%) rename {images => hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user}/20110131-mj20110114b.jpg (100%) rename {images => hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user}/20110205-mj20110202-starburst2.jpg (100%) rename {images => hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user}/hive13-bezier03.png (100%) rename hugo_blag/content/posts/{2011-02-07-blender-from-a-recovering-pov-ray-user.md => 2011-02-07-blender-from-a-recovering-pov-ray-user/index.md} (90%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/20100713-0107-interleave.jpg (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto1.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto10.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto2.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto3.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto4.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto5.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto6.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto7.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto8.png (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/cropphoto9.png (100%) rename hugo_blag/content/posts/{2011-11-24-obscure-features-of-jpeg.md => 2011-11-24-obscure-features-of-jpeg/index.md} (93%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/jpeg_split.c (100%) rename {images/obscure_jpeg_features => hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg}/libjpeg-wizard.txt (100%) create mode 160000 hugo_blag/themes/hugo-notepadium diff --git a/.gitmodules b/.gitmodules index b761466..ad034e3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "hugo_blag/themes/nofancy"] path = hugo_blag/themes/nofancy url = https://github.com/gizak/nofancy.git +[submodule "hugo_blag/themes/hugo-notepadium"] + path = hugo_blag/themes/hugo-notepadium + url = https://github.com/cntrump/hugo-notepadium.git diff --git a/hugo_blag/config.toml b/hugo_blag/config.toml index 1c65b0b..4fc8b1e 100644 --- a/hugo_blag/config.toml +++ b/hugo_blag/config.toml @@ -5,11 +5,22 @@ title = "My New Hugo Site" #theme = "indigo" #theme = "zen" # This one *does* use 'highlight' below: -theme = "nofancy" +#theme = "nofancy" + +theme = "hugo-notepadium" + +#PygmentsCodeFences = true +#PygmentsStyle = "monokai" + +[params.math] +enable = true # optional: true, false. Enable globally, default: + # false. You can always enable math on per page. + # (how?) +use = "katex" # option: "katex", "mathjax". default: "katex" [params] # See themes/nofancy/static/highlight/styles for available options - highlight="tomorrow" + #highlight="tomorrow" # Controls what items are listed in the top nav menu # "none", or "categories" # If you have too many categories to fit in the top nav menu, set this to "none" @@ -29,3 +40,23 @@ theme = "nofancy" # noClasses = true # style = "monokai" # tabWidth = 4 + +[params.nav] +showCategories = true # /categories/ +showTags = true # /tags/ + +[[params.nav.custom]] +title = "Posts" +url = "/posts" + +[[params.nav.custom]] +title = "About" +url = "/about" + +[[params.nav.custom]] +title = "Old Crap" +url = "/old_crap" + +[[params.nav.custom]] +title = "Hugo" +url = "https://gohugo.io/" diff --git a/exitwp_raw/2008-03-22-hello-world-2.markdown b/hugo_blag/content/old_crap/2008-03-22-hello-world-2.markdown similarity index 100% rename from exitwp_raw/2008-03-22-hello-world-2.markdown rename to hugo_blag/content/old_crap/2008-03-22-hello-world-2.markdown diff --git a/exitwp_raw/2008-03-24-workfest-with-christian-appalachian-project-day-one.markdown b/hugo_blag/content/old_crap/2008-03-24-workfest-with-christian-appalachian-project-day-one.markdown similarity index 100% rename from exitwp_raw/2008-03-24-workfest-with-christian-appalachian-project-day-one.markdown rename to hugo_blag/content/old_crap/2008-03-24-workfest-with-christian-appalachian-project-day-one.markdown diff --git a/exitwp_raw/2008-03-25-workfest-day-two.markdown b/hugo_blag/content/old_crap/2008-03-25-workfest-day-two.markdown similarity index 100% rename from exitwp_raw/2008-03-25-workfest-day-two.markdown rename to hugo_blag/content/old_crap/2008-03-25-workfest-day-two.markdown diff --git a/exitwp_raw/2008-03-26-workfest-day-three.markdown b/hugo_blag/content/old_crap/2008-03-26-workfest-day-three.markdown similarity index 100% rename from exitwp_raw/2008-03-26-workfest-day-three.markdown rename to hugo_blag/content/old_crap/2008-03-26-workfest-day-three.markdown diff --git a/exitwp_raw/2008-03-27-workfest-day-four.markdown b/hugo_blag/content/old_crap/2008-03-27-workfest-day-four.markdown similarity index 100% rename from exitwp_raw/2008-03-27-workfest-day-four.markdown rename to hugo_blag/content/old_crap/2008-03-27-workfest-day-four.markdown diff --git a/exitwp_raw/2008-03-28-workfest-day-fourfive.markdown b/hugo_blag/content/old_crap/2008-03-28-workfest-day-fourfive.markdown similarity index 100% rename from exitwp_raw/2008-03-28-workfest-day-fourfive.markdown rename to hugo_blag/content/old_crap/2008-03-28-workfest-day-fourfive.markdown diff --git a/exitwp_raw/2008-03-31-stuff-i-experienced-at-work-today.markdown b/hugo_blag/content/old_crap/2008-03-31-stuff-i-experienced-at-work-today.markdown similarity index 100% rename from exitwp_raw/2008-03-31-stuff-i-experienced-at-work-today.markdown rename to hugo_blag/content/old_crap/2008-03-31-stuff-i-experienced-at-work-today.markdown diff --git a/exitwp_raw/2008-04-04-alexander-blu.markdown b/hugo_blag/content/old_crap/2008-04-04-alexander-blu.markdown similarity index 100% rename from exitwp_raw/2008-04-04-alexander-blu.markdown rename to hugo_blag/content/old_crap/2008-04-04-alexander-blu.markdown diff --git a/exitwp_raw/2008-04-18-post-its-and-scrap-notes-starting-20080403.markdown b/hugo_blag/content/old_crap/2008-04-18-post-its-and-scrap-notes-starting-20080403.markdown similarity index 100% rename from exitwp_raw/2008-04-18-post-its-and-scrap-notes-starting-20080403.markdown rename to hugo_blag/content/old_crap/2008-04-18-post-its-and-scrap-notes-starting-20080403.markdown diff --git a/exitwp_raw/2008-04-26-more-scrap-notes-starting-2008-04-18.markdown b/hugo_blag/content/old_crap/2008-04-26-more-scrap-notes-starting-2008-04-18.markdown similarity index 100% rename from exitwp_raw/2008-04-26-more-scrap-notes-starting-2008-04-18.markdown rename to hugo_blag/content/old_crap/2008-04-26-more-scrap-notes-starting-2008-04-18.markdown diff --git a/exitwp_raw/2008-05-05-alix1c-board-edirol-repair.markdown b/hugo_blag/content/old_crap/2008-05-05-alix1c-board-edirol-repair.markdown similarity index 100% rename from exitwp_raw/2008-05-05-alix1c-board-edirol-repair.markdown rename to hugo_blag/content/old_crap/2008-05-05-alix1c-board-edirol-repair.markdown diff --git a/exitwp_raw/2008-05-05-scrap-notes-20080425ish-20080503.markdown b/hugo_blag/content/old_crap/2008-05-05-scrap-notes-20080425ish-20080503.markdown similarity index 100% rename from exitwp_raw/2008-05-05-scrap-notes-20080425ish-20080503.markdown rename to hugo_blag/content/old_crap/2008-05-05-scrap-notes-20080425ish-20080503.markdown diff --git a/exitwp_raw/2008-05-17-overdue-scrap-notes-20080501-0516.markdown b/hugo_blag/content/old_crap/2008-05-17-overdue-scrap-notes-20080501-0516.markdown similarity index 100% rename from exitwp_raw/2008-05-17-overdue-scrap-notes-20080501-0516.markdown rename to hugo_blag/content/old_crap/2008-05-17-overdue-scrap-notes-20080501-0516.markdown diff --git a/exitwp_raw/2008-05-24-20-pages-of-scrap-notes-20080519-0523.markdown b/hugo_blag/content/old_crap/2008-05-24-20-pages-of-scrap-notes-20080519-0523.markdown similarity index 100% rename from exitwp_raw/2008-05-24-20-pages-of-scrap-notes-20080519-0523.markdown rename to hugo_blag/content/old_crap/2008-05-24-20-pages-of-scrap-notes-20080519-0523.markdown diff --git a/exitwp_raw/2008-05-27-old-tattered-notebook-from-1999-notes.markdown b/hugo_blag/content/old_crap/2008-05-27-old-tattered-notebook-from-1999-notes.markdown similarity index 100% rename from exitwp_raw/2008-05-27-old-tattered-notebook-from-1999-notes.markdown rename to hugo_blag/content/old_crap/2008-05-27-old-tattered-notebook-from-1999-notes.markdown diff --git a/exitwp_raw/2008-06-01-semi-organized-scrap-notes-20080526-20080601.markdown b/hugo_blag/content/old_crap/2008-06-01-semi-organized-scrap-notes-20080526-20080601.markdown similarity index 100% rename from exitwp_raw/2008-06-01-semi-organized-scrap-notes-20080526-20080601.markdown rename to hugo_blag/content/old_crap/2008-06-01-semi-organized-scrap-notes-20080526-20080601.markdown diff --git a/exitwp_raw/2008-06-07-notes-20080601-20080607.markdown b/hugo_blag/content/old_crap/2008-06-07-notes-20080601-20080607.markdown similarity index 100% rename from exitwp_raw/2008-06-07-notes-20080601-20080607.markdown rename to hugo_blag/content/old_crap/2008-06-07-notes-20080601-20080607.markdown diff --git a/exitwp_raw/2008-06-18-20080607-20080617-yay-notes.markdown b/hugo_blag/content/old_crap/2008-06-18-20080607-20080617-yay-notes.markdown similarity index 100% rename from exitwp_raw/2008-06-18-20080607-20080617-yay-notes.markdown rename to hugo_blag/content/old_crap/2008-06-18-20080607-20080617-yay-notes.markdown diff --git a/exitwp_raw/2008-07-10-20080618-20080709-really-overdue-notes.markdown b/hugo_blag/content/old_crap/2008-07-10-20080618-20080709-really-overdue-notes.markdown similarity index 100% rename from exitwp_raw/2008-07-10-20080618-20080709-really-overdue-notes.markdown rename to hugo_blag/content/old_crap/2008-07-10-20080618-20080709-really-overdue-notes.markdown diff --git a/exitwp_raw/2008-07-26-20080710-20080726-debris.markdown b/hugo_blag/content/old_crap/2008-07-26-20080710-20080726-debris.markdown similarity index 100% rename from exitwp_raw/2008-07-26-20080710-20080726-debris.markdown rename to hugo_blag/content/old_crap/2008-07-26-20080710-20080726-debris.markdown diff --git a/exitwp_raw/2008-08-04-20080726-20080803-stuff.markdown b/hugo_blag/content/old_crap/2008-08-04-20080726-20080803-stuff.markdown similarity index 100% rename from exitwp_raw/2008-08-04-20080726-20080803-stuff.markdown rename to hugo_blag/content/old_crap/2008-08-04-20080726-20080803-stuff.markdown diff --git a/exitwp_raw/2008-08-22-20080804-20080821-more-technical-blah.markdown b/hugo_blag/content/old_crap/2008-08-22-20080804-20080821-more-technical-blah.markdown similarity index 100% rename from exitwp_raw/2008-08-22-20080804-20080821-more-technical-blah.markdown rename to hugo_blag/content/old_crap/2008-08-22-20080804-20080821-more-technical-blah.markdown diff --git a/exitwp_raw/2008-09-27-20080822-20080926-or-something-like-that.markdown b/hugo_blag/content/old_crap/2008-09-27-20080822-20080926-or-something-like-that.markdown similarity index 100% rename from exitwp_raw/2008-09-27-20080822-20080926-or-something-like-that.markdown rename to hugo_blag/content/old_crap/2008-09-27-20080822-20080926-or-something-like-that.markdown diff --git a/exitwp_raw/2008-11-09-20080926-20081109-really-overdue-stuff.markdown b/hugo_blag/content/old_crap/2008-11-09-20080926-20081109-really-overdue-stuff.markdown similarity index 100% rename from exitwp_raw/2008-11-09-20080926-20081109-really-overdue-stuff.markdown rename to hugo_blag/content/old_crap/2008-11-09-20080926-20081109-really-overdue-stuff.markdown diff --git a/exitwp_raw/2009-04-21-20090420.markdown b/hugo_blag/content/old_crap/2009-04-21-20090420.markdown similarity index 100% rename from exitwp_raw/2009-04-21-20090420.markdown rename to hugo_blag/content/old_crap/2009-04-21-20090420.markdown diff --git a/exitwp_raw/2009-04-21-20090420b.markdown b/hugo_blag/content/old_crap/2009-04-21-20090420b.markdown similarity index 100% rename from exitwp_raw/2009-04-21-20090420b.markdown rename to hugo_blag/content/old_crap/2009-04-21-20090420b.markdown diff --git a/exitwp_raw/2009-04-26-20090426-2.markdown b/hugo_blag/content/old_crap/2009-04-26-20090426-2.markdown similarity index 100% rename from exitwp_raw/2009-04-26-20090426-2.markdown rename to hugo_blag/content/old_crap/2009-04-26-20090426-2.markdown diff --git a/exitwp_raw/2009-04-26-20090426.markdown b/hugo_blag/content/old_crap/2009-04-26-20090426.markdown similarity index 100% rename from exitwp_raw/2009-04-26-20090426.markdown rename to hugo_blag/content/old_crap/2009-04-26-20090426.markdown diff --git a/exitwp_raw/2009-04-27-20090426-3.markdown b/hugo_blag/content/old_crap/2009-04-27-20090426-3.markdown similarity index 100% rename from exitwp_raw/2009-04-27-20090426-3.markdown rename to hugo_blag/content/old_crap/2009-04-27-20090426-3.markdown diff --git a/exitwp_raw/2009-04-28-20090426-4.markdown b/hugo_blag/content/old_crap/2009-04-28-20090426-4.markdown similarity index 100% rename from exitwp_raw/2009-04-28-20090426-4.markdown rename to hugo_blag/content/old_crap/2009-04-28-20090426-4.markdown diff --git a/exitwp_raw/2009-05-01-20090430.markdown b/hugo_blag/content/old_crap/2009-05-01-20090430.markdown similarity index 100% rename from exitwp_raw/2009-05-01-20090430.markdown rename to hugo_blag/content/old_crap/2009-05-01-20090430.markdown diff --git a/exitwp_raw/2009-05-02-20090501.markdown b/hugo_blag/content/old_crap/2009-05-02-20090501.markdown similarity index 100% rename from exitwp_raw/2009-05-02-20090501.markdown rename to hugo_blag/content/old_crap/2009-05-02-20090501.markdown diff --git a/exitwp_raw/2009-05-04-20090503.markdown b/hugo_blag/content/old_crap/2009-05-04-20090503.markdown similarity index 100% rename from exitwp_raw/2009-05-04-20090503.markdown rename to hugo_blag/content/old_crap/2009-05-04-20090503.markdown diff --git a/exitwp_raw/2009-06-15-2009-06-14-4.markdown b/hugo_blag/content/old_crap/2009-06-15-2009-06-14-4.markdown similarity index 100% rename from exitwp_raw/2009-06-15-2009-06-14-4.markdown rename to hugo_blag/content/old_crap/2009-06-15-2009-06-14-4.markdown diff --git a/exitwp_raw/2009-06-15-2009-06-14-5.markdown b/hugo_blag/content/old_crap/2009-06-15-2009-06-14-5.markdown similarity index 100% rename from exitwp_raw/2009-06-15-2009-06-14-5.markdown rename to hugo_blag/content/old_crap/2009-06-15-2009-06-14-5.markdown diff --git a/exitwp_raw/2009-06-23-2009-06-15.markdown b/hugo_blag/content/old_crap/2009-06-23-2009-06-15.markdown similarity index 100% rename from exitwp_raw/2009-06-23-2009-06-15.markdown rename to hugo_blag/content/old_crap/2009-06-23-2009-06-15.markdown diff --git a/exitwp_raw/2009-06-23-2009-06-16.markdown b/hugo_blag/content/old_crap/2009-06-23-2009-06-16.markdown similarity index 100% rename from exitwp_raw/2009-06-23-2009-06-16.markdown rename to hugo_blag/content/old_crap/2009-06-23-2009-06-16.markdown diff --git a/exitwp_raw/2009-06-23-2009-06-18.markdown b/hugo_blag/content/old_crap/2009-06-23-2009-06-18.markdown similarity index 100% rename from exitwp_raw/2009-06-23-2009-06-18.markdown rename to hugo_blag/content/old_crap/2009-06-23-2009-06-18.markdown diff --git a/exitwp_raw/2009-06-23-2009-06-19.markdown b/hugo_blag/content/old_crap/2009-06-23-2009-06-19.markdown similarity index 100% rename from exitwp_raw/2009-06-23-2009-06-19.markdown rename to hugo_blag/content/old_crap/2009-06-23-2009-06-19.markdown diff --git a/exitwp_raw/2009-07-22-2009-07-21.markdown b/hugo_blag/content/old_crap/2009-07-22-2009-07-21.markdown similarity index 100% rename from exitwp_raw/2009-07-22-2009-07-21.markdown rename to hugo_blag/content/old_crap/2009-07-22-2009-07-21.markdown diff --git a/exitwp_raw/2009-08-14-2009-08-12.markdown b/hugo_blag/content/old_crap/2009-08-14-2009-08-12.markdown similarity index 100% rename from exitwp_raw/2009-08-14-2009-08-12.markdown rename to hugo_blag/content/old_crap/2009-08-14-2009-08-12.markdown diff --git a/exitwp_raw/2009-10-15-fun-with-nx-stuff.markdown b/hugo_blag/content/old_crap/2009-10-15-fun-with-nx-stuff.markdown similarity index 100% rename from exitwp_raw/2009-10-15-fun-with-nx-stuff.markdown rename to hugo_blag/content/old_crap/2009-10-15-fun-with-nx-stuff.markdown diff --git a/exitwp_raw/2010-04-03-hacked-infrared-camera-attempt-1.markdown b/hugo_blag/content/old_crap/2010-04-03-hacked-infrared-camera-attempt-1.markdown similarity index 100% rename from exitwp_raw/2010-04-03-hacked-infrared-camera-attempt-1.markdown rename to hugo_blag/content/old_crap/2010-04-03-hacked-infrared-camera-attempt-1.markdown diff --git a/exitwp_raw/2010-06-09-angry-rants-2010-summer-edition.markdown b/hugo_blag/content/old_crap/2010-06-09-angry-rants-2010-summer-edition.markdown similarity index 100% rename from exitwp_raw/2010-06-09-angry-rants-2010-summer-edition.markdown rename to hugo_blag/content/old_crap/2010-06-09-angry-rants-2010-summer-edition.markdown diff --git a/exitwp_raw/2010-11-19-venue-222-rooftop.markdown b/hugo_blag/content/old_crap/2010-11-19-venue-222-rooftop.markdown similarity index 100% rename from exitwp_raw/2010-11-19-venue-222-rooftop.markdown rename to hugo_blag/content/old_crap/2010-11-19-venue-222-rooftop.markdown diff --git a/exitwp_raw/2010-12-05-cyanotypes-first-attempt.markdown b/hugo_blag/content/old_crap/2010-12-05-cyanotypes-first-attempt.markdown similarity index 100% rename from exitwp_raw/2010-12-05-cyanotypes-first-attempt.markdown rename to hugo_blag/content/old_crap/2010-12-05-cyanotypes-first-attempt.markdown diff --git a/exitwp_raw/2010-12-30-cyanotypes-better-results.markdown b/hugo_blag/content/old_crap/2010-12-30-cyanotypes-better-results.markdown similarity index 100% rename from exitwp_raw/2010-12-30-cyanotypes-better-results.markdown rename to hugo_blag/content/old_crap/2010-12-30-cyanotypes-better-results.markdown diff --git a/exitwp_raw/2010-12-30-macro-photography-attempts-1-and-2.markdown b/hugo_blag/content/old_crap/2010-12-30-macro-photography-attempts-1-and-2.markdown similarity index 100% rename from exitwp_raw/2010-12-30-macro-photography-attempts-1-and-2.markdown rename to hugo_blag/content/old_crap/2010-12-30-macro-photography-attempts-1-and-2.markdown diff --git a/exitwp_raw/2011-02-07-blender-from-a-recovering-pov-ray-user.markdown b/hugo_blag/content/old_crap/2011-02-07-blender-from-a-recovering-pov-ray-user.markdown similarity index 100% rename from exitwp_raw/2011-02-07-blender-from-a-recovering-pov-ray-user.markdown rename to hugo_blag/content/old_crap/2011-02-07-blender-from-a-recovering-pov-ray-user.markdown diff --git a/exitwp_raw/2011-06-10-first-attempt-at-slide-film.markdown b/hugo_blag/content/old_crap/2011-06-10-first-attempt-at-slide-film.markdown similarity index 100% rename from exitwp_raw/2011-06-10-first-attempt-at-slide-film.markdown rename to hugo_blag/content/old_crap/2011-06-10-first-attempt-at-slide-film.markdown diff --git a/exitwp_raw/2011-06-10-i-can-never-win-that-context-back.markdown b/hugo_blag/content/old_crap/2011-06-10-i-can-never-win-that-context-back.markdown similarity index 100% rename from exitwp_raw/2011-06-10-i-can-never-win-that-context-back.markdown rename to hugo_blag/content/old_crap/2011-06-10-i-can-never-win-that-context-back.markdown diff --git a/exitwp_raw/2011-06-13-openframeworks-try-1.markdown b/hugo_blag/content/old_crap/2011-06-13-openframeworks-try-1.markdown similarity index 100% rename from exitwp_raw/2011-06-13-openframeworks-try-1.markdown rename to hugo_blag/content/old_crap/2011-06-13-openframeworks-try-1.markdown diff --git a/exitwp_raw/2011-07-15-my-experiences-with-apache-axis2c.markdown b/hugo_blag/content/old_crap/2011-07-15-my-experiences-with-apache-axis2c.markdown similarity index 100% rename from exitwp_raw/2011-07-15-my-experiences-with-apache-axis2c.markdown rename to hugo_blag/content/old_crap/2011-07-15-my-experiences-with-apache-axis2c.markdown diff --git a/exitwp_raw/2011-08-27-isolated-pixel-pushing.markdown b/hugo_blag/content/old_crap/2011-08-27-isolated-pixel-pushing.markdown similarity index 100% rename from exitwp_raw/2011-08-27-isolated-pixel-pushing.markdown rename to hugo_blag/content/old_crap/2011-08-27-isolated-pixel-pushing.markdown diff --git a/exitwp_raw/2011-08-29-context-free.markdown b/hugo_blag/content/old_crap/2011-08-29-context-free.markdown similarity index 100% rename from exitwp_raw/2011-08-29-context-free.markdown rename to hugo_blag/content/old_crap/2011-08-29-context-free.markdown diff --git a/exitwp_raw/2011-11-13-qmake-hackery-dependencies-external-preprocessing.markdown b/hugo_blag/content/old_crap/2011-11-13-qmake-hackery-dependencies-external-preprocessing.markdown similarity index 100% rename from exitwp_raw/2011-11-13-qmake-hackery-dependencies-external-preprocessing.markdown rename to hugo_blag/content/old_crap/2011-11-13-qmake-hackery-dependencies-external-preprocessing.markdown diff --git a/exitwp_raw/2011-11-24-obscure-features-of-jpeg.markdown b/hugo_blag/content/old_crap/2011-11-24-obscure-features-of-jpeg.markdown similarity index 100% rename from exitwp_raw/2011-11-24-obscure-features-of-jpeg.markdown rename to hugo_blag/content/old_crap/2011-11-24-obscure-features-of-jpeg.markdown diff --git a/exitwp_raw/2012-08-16-some-thoughts.markdown b/hugo_blag/content/old_crap/2012-08-16-some-thoughts.markdown similarity index 100% rename from exitwp_raw/2012-08-16-some-thoughts.markdown rename to hugo_blag/content/old_crap/2012-08-16-some-thoughts.markdown diff --git a/images/dla2c.png b/hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees/dla2c.png similarity index 100% rename from images/dla2c.png rename to hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees/dla2c.png diff --git a/hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees.md b/hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees/index.md similarity index 95% rename from hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees.md rename to hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees/index.md index 43d3986..d38e814 100644 --- a/hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees.md +++ b/hugo_blag/content/posts/2010-07-04-processing-dla-quadtrees/index.md @@ -16,7 +16,10 @@ implementation in a slow language for heavy computations (i.e. Python), but it worked well enough to create some good results like this: + +![Diffusion Limited Aggregation](./dla2c.png "Don't ask for the source code to this") After about 3 or 4 failed attempts to optimize this program to not take days to generate images, I finally rewrote it reasonably diff --git a/images/20110118-sketch_mj2011016e.jpg b/hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/20110118-sketch_mj2011016e.jpg similarity index 100% rename from images/20110118-sketch_mj2011016e.jpg rename to hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/20110118-sketch_mj2011016e.jpg diff --git a/images/20110131-mj20110114b.jpg b/hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/20110131-mj20110114b.jpg similarity index 100% rename from images/20110131-mj20110114b.jpg rename to hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/20110131-mj20110114b.jpg diff --git a/images/20110205-mj20110202-starburst2.jpg b/hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/20110205-mj20110202-starburst2.jpg similarity index 100% rename from images/20110205-mj20110202-starburst2.jpg rename to hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/20110205-mj20110202-starburst2.jpg diff --git a/images/hive13-bezier03.png b/hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/hive13-bezier03.png similarity index 100% rename from images/hive13-bezier03.png rename to hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/hive13-bezier03.png diff --git a/hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user.md b/hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/index.md similarity index 90% rename from hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user.md rename to hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/index.md index 69202a4..bd98858 100644 --- a/hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user.md +++ b/hugo_blag/content/posts/2011-02-07-blender-from-a-recovering-pov-ray-user/index.md @@ -54,9 +54,15 @@ the 2nd image down below) or [OpenFrameworks](http://www.openframeworks.cc/) or one of the too-many-completely-different-versions of Acidity I wrote. + + +![Hive13 bezier splines](./hive13-bezier03.png "What I learned Bezier splines on, and didn't learn enough about texturing.") + +![Processing sketch](./20110118-sketch_mj2011016e.jpg "This was made directly from some equations. I don't know how I'd do this in Blender.") [POV-Ray](http://www.povray.org) was the last program that I 3D-rendered extensively in (this was mostly 2004-2005, as my @@ -92,6 +98,6 @@ all the precision that I would have had in POV-Ray, but I built them in probably 1/10 the time. That's the case for the two work-in-progress Blender images here: -[![This needs a name and a better background.](../images/20110131-mj20110114b.jpg){width=100%}](../images/20110131-mj20110114b.jpg) +![20110131-mj20110114b](./20110131-mj20110114b.jpg "This needs a name and a better background") -[![This needs a name and a better background.](../images/20110205-mj20110202-starburst2.jpg){width=100%}](../images/20110205-mj20110202-starburst2.jpg) +![20110205-mj20110202-starburst2](./20110205-mj20110202-starburst2.jpg "This needs a name and a better background.") diff --git a/images/obscure_jpeg_features/20100713-0107-interleave.jpg b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/20100713-0107-interleave.jpg similarity index 100% rename from images/obscure_jpeg_features/20100713-0107-interleave.jpg rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/20100713-0107-interleave.jpg diff --git a/images/obscure_jpeg_features/cropphoto1.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto1.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto1.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto1.png diff --git a/images/obscure_jpeg_features/cropphoto10.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto10.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto10.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto10.png diff --git a/images/obscure_jpeg_features/cropphoto2.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto2.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto2.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto2.png diff --git a/images/obscure_jpeg_features/cropphoto3.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto3.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto3.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto3.png diff --git a/images/obscure_jpeg_features/cropphoto4.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto4.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto4.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto4.png diff --git a/images/obscure_jpeg_features/cropphoto5.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto5.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto5.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto5.png diff --git a/images/obscure_jpeg_features/cropphoto6.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto6.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto6.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto6.png diff --git a/images/obscure_jpeg_features/cropphoto7.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto7.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto7.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto7.png diff --git a/images/obscure_jpeg_features/cropphoto8.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto8.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto8.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto8.png diff --git a/images/obscure_jpeg_features/cropphoto9.png b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto9.png similarity index 100% rename from images/obscure_jpeg_features/cropphoto9.png rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/cropphoto9.png diff --git a/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg.md b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/index.md similarity index 93% rename from hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg.md rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/index.md index 54d6314..57be5a2 100644 --- a/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg.md +++ b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/index.md @@ -48,9 +48,9 @@ expressing an identical image. One command I've used pretty frequently before posting a large photo online is: -```bash +{{}} jpegtran -optimize -progressive -copy all input.jpg > output.jpg -``` +{{< / highlight >}} This losslessly converts *input.jpg* to a progressive version and optimizes it as well. (*jpegtran* can do some other things losslessly @@ -108,7 +108,7 @@ Your libjpeg distribution probably contains something called **wizard.txt** someplace (say, `/usr/share/docs/libjpeg8a` or `/usr/share/doc/libjpeg-progs`); I don't know if an online copy is readily available, but mine is -[here](<../images/obscure_jpeg_features/libjpeg-wizard.txt>). I'll +[here](<./libjpeg-wizard.txt>). I'll leave detailed explanation of a scan script to the "Multiple Scan / Progression Control" section of this document, but note that: @@ -124,7 +124,7 @@ Progression Control" section of this document, but note that: According to that document, the standard script for a progressive JPEG is this: -```bash +{{}} # Initial DC scan for Y,Cb,Cr (lowest bit not sent) 0,1,2: 0-0, 0, 1 ; # First AC scan: send first 5 Y AC coefficients, minus 2 lowest bits: @@ -146,31 +146,36 @@ According to that document, the standard script for a progressive JPEG is this: 1: 1-63, 1, 0 ; # Y AC lowest bit scan is last; it's usually the largest scan 0: 1-63, 1, 0 ; -``` +{{< / highlight >}} + And for standard, sequential JPEG it is: -```bash +{{}} 0 1 2: 0 63 0 0; -``` +{{< / highlight >}} + In -[this image](../images/obscure_jpeg_features/20100713-0107-interleave.jpg) +[this image](./20100713-0107-interleave.jpg) I used a custom scan script that sent all of the Y data, then all Cb, then all Cr. Its custom scan script was just this: -```bash +{{}} 0; 1; 2; -``` +{{< / highlight >}} + While not every browser may do this right, most browsers will render the greyscale as its comes in, then add color to it one plane at a time. It'll be more obvious over a slower connection; I purposely left the image fairly large so that the transfer would be slower. You'll note as well that the greyscale arrives much more slowly than the -color. +color. (2020 note: most browsers will now let you use their +development tools to simulate a slow connection if you really want to +see.) Code & Utilities ================ @@ -179,16 +184,18 @@ The **cjpeg** tool from libjpeg will (among other things) create a JPEG using a custom scan script. Combined with ImageMagick, I used a command like: -```bash +{{}} convert input.png ppm:- | cjpeg -quality 95 -optimize -scans scan_script > output.jpg -``` +{{< / highlight >}} + Or if the input is already a JPEG, `jpegtran` will do the same thing, losslessly (as it's merely reordering coefficients): -```bash +{{}} jpegtran -scans scan_script input.jpg > output.jpg -``` +{{< / highlight >}} + libjpeg has some interesting features as well. Rather than decoding an entire full-resolution JPEG and then scaling it down, for instance (a @@ -197,7 +204,7 @@ decoding so that it will simply do the reduction for you while decoding. This takes less time and uses less memory compared with getting the full decompressed version and resampling afterward. -The C code below (or [here](../images/obscure_jpeg_features) or this +The C code below (or [here](./jpeg_split.c) or this [gist](https://gist.github.com/9220146)), based loosely on `example.c` from libjpeg, will split up a multi-scan JPEG into a series of numbered PPM files, each one containing a scan. Look for @@ -207,7 +214,7 @@ processes as much input JPEG as it needs for the next scan. (It needs nothing special to build besides a functioning libjpeg. `gcc -ljpeg -o jpeg_split.o jpeg_split.c` works for me.) -```c +{{}} // jpeg_split.c: Write each scan from a multi-scan/progressive JPEG. // This is based loosely on example.c from libjpeg, and should require only // libjpeg as a dependency (e.g. gcc -ljpeg -o jpeg_split.o jpeg_split.c). @@ -342,20 +349,20 @@ void read_scan(struct jpeg_decompress_struct * cinfo, jpeg_finish_output(cinfo); fclose(outfile); } -``` +{{< / highlight >}} Examples ======== Here are all 10 scans from a standard progressive JPEG, separated out with the example code: -![Scan 1](../images//obscure_jpeg_features/cropphoto1.png) -![Scan 2](../images//obscure_jpeg_features/cropphoto2.png) -![Scan 3](../images//obscure_jpeg_features/cropphoto3.png) -![Scan 4](../images//obscure_jpeg_features/cropphoto4.png) -![Scan 5](../images//obscure_jpeg_features/cropphoto5.png) -![Scan 6](../images//obscure_jpeg_features/cropphoto6.png) -![Scan 7](../images//obscure_jpeg_features/cropphoto7.png) -![Scan 8](../images//obscure_jpeg_features/cropphoto8.png) -![Scan 9](../images//obscure_jpeg_features/cropphoto9.png) -![Scan 10](../images//obscure_jpeg_features/cropphoto10.png) +![Scan 1](./cropphoto1.png) +![Scan 2](./cropphoto2.png) +![Scan 3](./cropphoto3.png) +![Scan 4](./cropphoto4.png) +![Scan 5](./cropphoto5.png) +![Scan 6](./cropphoto6.png) +![Scan 7](./cropphoto7.png) +![Scan 8](./cropphoto8.png) +![Scan 9](./cropphoto9.png) +![Scan 10](./cropphoto10.png) diff --git a/images/obscure_jpeg_features/jpeg_split.c b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/jpeg_split.c similarity index 100% rename from images/obscure_jpeg_features/jpeg_split.c rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/jpeg_split.c diff --git a/images/obscure_jpeg_features/libjpeg-wizard.txt b/hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/libjpeg-wizard.txt similarity index 100% rename from images/obscure_jpeg_features/libjpeg-wizard.txt rename to hugo_blag/content/posts/2011-11-24-obscure-features-of-jpeg/libjpeg-wizard.txt diff --git a/hugo_blag/content/posts/2018-04-08-recommender-systems-1/index.md b/hugo_blag/content/posts/2018-04-08-recommender-systems-1/index.md index e730188..cf4c8c4 100644 --- a/hugo_blag/content/posts/2018-04-08-recommender-systems-1/index.md +++ b/hugo_blag/content/posts/2018-04-08-recommender-systems-1/index.md @@ -852,7 +852,7 @@ C & =M^\top M \\ D &= \left(M^\top U - (M^\top U)^\top\right) /\ \textrm{max}(1, M^\top M) \end{align} $$ - + where $/$ is Hadamard (i.e. elementwise) division, and $\textrm{max}$ is elementwise maximum with 1. Then, the below gives the prediction for how user $u$ will rate movie $j$: @@ -860,7 +860,7 @@ where $/$ is Hadamard (i.e. elementwise) division, and $\textrm{max}$ is element $$ P(u)_j = \frac{[M_u \odot (C_j > 0)] \cdot (D_j + U_u) - U_{u,j}}{M_u \cdot (C_j > 0)} $$ - + $D_j$ and $C_j$ are row $j$ of $D$ and $C$, respectively. $M_u$ and $U_u$ are column $u$ of $M$ and $U$, respectively. $\odot$ is elementwise multiplication. @@ -891,7 +891,7 @@ S_{j,i}(\chi)} u_j - u_i = \frac{1}{card(S_{j,i}(\chi))}\left(\sum_{u \in S_{j,i}(\chi)} u_j - \sum_{u \in S_{j,i}(\chi)} u_i\right) \end{split} $$ - + where: @@ -930,7 +930,7 @@ matrix multiplication:
$$C=M^\top M$$ - +
since $C\_{i,j}=card(S\_{j,i}(\chi))$ is the dot product of row $i$ of $M^T$ - which is column $i$ of $M$ - and column $j$ of $M$. @@ -940,7 +940,7 @@ We still need the other half:
$$\sum_{u \in S_{j,i}(\chi)} u_j - \sum_{u \in S_{j,i}(\chi)} u_i$$ - +
We can apply a similar trick here. Consider first what $\sum\_{u \in S\_{j,i}(\chi)} u\_j$ means: It is the sum of only those ratings of @@ -958,7 +958,7 @@ $M\_j$ (consider the definition of $M\_j$) computes this, and so:
$$\sum_{u \in S_{j,i}(\chi)} u_j = M_i \cdot U_j$$ - +
and as with $C$, since we want every pairwise dot product, this summation just equals element $(i,j)$ of $M^\top U$. The other half of the summation, @@ -967,13 +967,13 @@ the transpose of this matrix:
$$\sum_{u \in S_{j,i}(\chi)} u_j - \sum_{u \in S_{j,i}(\chi)} u_i = M^\top U - (M^\top U)^\top = M^\top U - U^\top M$$ - +
So, finally, we can compute an entire deviation matrix at once like:
$$D = \left(M^\top U - (M^\top U)^\top\right) /\ M^\top M$$ - +
where $/$ is Hadamard (i.e. elementwise) division, and $D\_{j,i} = \textrm{dev}\_{j,i}$. @@ -987,7 +987,7 @@ Finally, the paper gives the formula to predict how user $u$ will rate movie $j$ $$ P(u)_j = \frac{1}{card(R_j)}\sum_{i\in R_j} \left(\textrm{dev}_{j,i}+u_i\right) = \frac{1}{card(R_j)}\sum_{i\in R_j} \left(D_{j,i} + U_{u,j} \right) $$ - + where $R\_j = \{i | i \in S(u), i \ne j, card(S\_{j,i}(\chi)) > 0\}$, and $S(u)$ is the set of movies that user $u$ has rated. To unpack the paper's somewhat dense notation, the summation is over every movie $i$ that user $u$ rated and that at least one other user rated, except movie $j$. @@ -995,7 +995,7 @@ We can apply the usual trick yet one more time with a little effort. The summati
$$P(u)_j = \frac{[M_u \odot (C_j > 0)] \cdot (D_j + U_u) - U_{u,j}}{M_u \cdot (C_j > 0)}$$ - +
#### 5.2.2.4. Approximation @@ -1003,7 +1003,7 @@ The paper also gives a formula that is a suitable approximation for larger data
$$p^{S1}(u)_j = \bar{u} + \frac{1}{card(R_j)}\sum_{i\in R_j} \textrm{dev}_{j,i}$$ - +
where $\bar{u}$ is user $u$'s average rating. This doesn't change the formula much; we can compute $\bar{u}$ simply as column means of $U$. @@ -1169,7 +1169,7 @@ In that sense, $P$ and $Q$ give us a model in which ratings are an interaction b
$$\hat{r}_{ui}=q_i^\top p_u$$ - +
However, some things aren't really interactions. Some movies are just (per the ratings) overall better or worse. Some users just tend to rate everything higher or lower. We need some sort of bias built into the model to comprehend this. @@ -1177,7 +1177,7 @@ Let's call $b_i$ the bias for movie $i$, $b_u$ the bias for user $u$, and $\mu$
$$\hat{r}_{ui}=\mu + b_i + b_u + q_i^\top p_u$$ - +
This is the basic model we'll implement, and the same one described in the references at the top. @@ -1187,7 +1187,7 @@ More formally, the prediction model is:
$$\hat{r}_{ui}=\mu + b_i + b_u + q_i^\top p_u$$ - +
where: @@ -1215,7 +1215,7 @@ $$ \frac{\partial E}{\partial b_i} &= 2 \sum_{r_{ui}} \left(\lambda b_i + r_{ui} - \hat{r}_{ui}\right) \end{split} $$ - + Gradient with respect to $p_u$ proceeds similarly: @@ -1229,7 +1229,7 @@ p_u}q_i^\top p_u \right) + 2 \lambda p_u \\ \frac{\partial E}{\partial p_u} &= 2 \sum_{r_{ui}} \lambda p_u - \left(r_{ui} - \hat{r}_{ui}\right)q_i^\top \end{split} $$ - + Gradient with respect to $b\_u$ is identical form to $b\_i$, and gradient with respect to $q\_i$ is identical form to $p\_u$, except that the variables switch places. The full gradients then have the standard form for gradient descent, i.e. a summation of a gradient term for each individual data point, so they turn easily into update rules for each parameter (which match the ones in the Surprise link) after absorbing the leading 2 into learning rate $\gamma$ and separating out the summation over each data point. That's given below, with $e\_{ui}=r\_{ui} - \hat{r}\_{ui}$: @@ -1242,7 +1242,7 @@ $$ \frac{\partial E}{\partial q_i} &= 2 \sum_{r_{ui}} \lambda q_i - e_{ui}p_u^\top\ \ \ &\longrightarrow q_i' &= q_i - \gamma\frac{\partial E}{\partial q_i} &= q_i + \gamma\left(e_{ui}p_u - \lambda q_i \right) \\ \end{split} $$ - + The code below is a direct implementation of this by simply iteratively applying the above equations for each data point - in other words, stochastic gradient descent. diff --git a/hugo_blag/content/posts/2018-04-13-opinions-go.org b/hugo_blag/content/posts/2018-04-13-opinions-go.org index 4cb4f24..49b47b8 100644 --- a/hugo_blag/content/posts/2018-04-13-opinions-go.org +++ b/hugo_blag/content/posts/2018-04-13-opinions-go.org @@ -20,20 +20,21 @@ compilation, namespaces, multiple return values, packages, a mostly sane build system, no C preprocessor, *minimal* object-oriented support, interfaces, anonymous functions, and closures. Those aren't trivialities; they're all rather great things. They're all missing in -C and C++ (for the most part). They're all such common problems that -nearly every "practical" C/C++ project uses a lot of ad-hoc solutions -sitting both inside and outside the language - libraries, abuse of -macros, more extensive code generation, lots of tooling, and a whole -lot of "best practices" slavishly followed - to try to solve them. -(No, I don't want to hear about how this lack of very basic features -is actually a feature. No, I don't want to hear about how -painstakingly fucking around with pointers is the hairshirt that we -all must wear if we wish for our software to achieve a greater state -of piety than is accessible to high-level languages. No, I don't want -to hear about how ~$arbitrary_abstraction_level~ is the level that -*real* programmers work at, any programmer who works above that level -is a loser, and any programmer who works below that level might as -well be building toasters. Shut up.) +C and C++ (for the most part - excluding that C++11 has started +incorporating some). They're all such common problems that nearly +every "practical" C/C++ project uses a lot of ad-hoc solutions sitting +both inside and outside the language - libraries, abuse of macros, +more extensive code generation, lots of tooling, and a whole lot of +"best practices" slavishly followed - to try to solve them. (No, I +don't want to hear about how this lack of very basic features is +actually a feature. No, I don't want to hear about how painstakingly +fucking around with pointers is the hairshirt that we all must wear if +we wish for our software to achieve a greater state of piety than is +accessible to high-level languages. No, I don't want to hear about +how ~$arbitrary_abstraction_level~ is the level that *real* +programmers work at, any programmer who works above that level is a +loser, and any programmer who works below that level might as well be +building toasters. Shut up.) I'm a functional programming nerd. I just happen to also have a lot of experience being knee-deep in C and C++ code. I'm looking at Go from @@ -53,13 +54,12 @@ less transparently. Concurrency was made a central aim in this language. If you've not watched Rob Pike's [[https://blog.golang.org/concurrency-is-not-parallelism][Concurrency is not parallelism]] talk, go do it now. -While it's perhaps not my favorite approach to concurrency. While I -may not be a fan of the style of concurrency that it uses (based on -[[https://en.wikipedia.org/wiki/Communicating_sequential_processes][CSP]] rather than the more Erlang-ian message passing), this is still a -far superior style to the very popular concurrency paradigm of -Concurrency Is Easy, We'll Just Ignore It Now and Duct-Tape the -Support On Later. [[http://jordanorelli.com/post/31533769172/why-i-went-from-python-to-go-and-not-nodejs][Why I went from Python to Go (and not node.js)]], in -my opinion, is spot-on. +While I may not be a fan of the style of concurrency that it uses +(based on [[https://en.wikipedia.org/wiki/Communicating_sequential_processes][CSP]] rather than the more Erlang-ian message passing), this +is still a far superior style to the very popular concurrency paradigm +of Concurrency Is Easy, We'll Just Ignore It Now and Duct-Tape the +Support On Later, How Hard Could It Possibly Be. [[http://jordanorelli.com/post/31533769172/why-i-went-from-python-to-go-and-not-nodejs][Why I went from +Python to Go (and not node.js)]], in my opinion, is spot-on. Many packages are available for it, and from all I've seen, they are sensible packages - not [[https://www.reddit.com/r/programming/comments/4bjss2/an_11_line_npm_package_called_leftpad_with_only/][leftpad]]-style idiocy. I'm sure that if I look @@ -92,7 +92,11 @@ system is also still very limited - particularly, things like the lack of any parametric polymorphism. I'd probably prefer something more like in [[https://www.rust-lang.org][Rust]]. I know this was largely intentional as well: Go was designed for people who don't want a more powerful type system, but do -want types. +want types, and further, to support this kind of polymorphism involves +tradeoffs it looks like they were avoiding, like those Russ Cox gives +in [[https://research.swtch.com/generic][The Generic Dilemma]]. (Later note: the [[https://github.com/golang/proposal/blob/master/design/go2draft-contracts.md][Contracts - Draft Design]] +proposal for Go 2 offers a possible approach for parametric +polymorphism.) My objections aren't unique. [[https://www.teamten.com/lawrence/writings/why-i-dont-like-go.html][Ten Reasons Why I Don't Like Golang]] and [[http://yager.io/programming/go.html][Why Go Is Not Good]] have criticisms I can't really disagree with. diff --git a/hugo_blag/themes/hugo-notepadium b/hugo_blag/themes/hugo-notepadium new file mode 160000 index 0000000..e479cd6 --- /dev/null +++ b/hugo_blag/themes/hugo-notepadium @@ -0,0 +1 @@ +Subproject commit e479cd6fc378e0c236dac90e0a10360c232927a5