dpaste.com spot check

Once in a while I look at a sampling of recent dpaste activity. Partly I do it so I’m not totally out of touch with what my site contains. Partly I do it because it’s just interesting.

And I do it to confirm that the site is actually used by people who want to share code snippets, not just spambots who fire their cannons into every porthole.

I just sampled 10 random items from the last week. Happily, no spam. Here’s what I saw:

How to install the open source application Darktable on OS X

How to install the open source application Darktable on OS X

A step-by-step guide from real life

Darktable

  1. Go to darktable.org/install.
  2. Skim page.
  3. Download some tarball.
  4. Scratch head over .tar.xz format.
  5. brew install xz
  6. xz --decompress darktable-1.4.2.tar.xz
  7. cd darktable-1.4.2
  8. ./build.sh --prefix /opt/darktable --buildtype Release
  9. Fail.
  10. brew install cmake
  11. brew install glib
  12. brew install gtk
  13. Fix weird permissions error inside existing libpng install.
  14. brew install gtk again
  15. brew install webp
  16. brew install lensfun
  17. build.sh again… fail, needs rsvg2
  18. No available formula for rsvg2
  19. No available formula for rsvg
  20. Give up on build.
  21. Go back to website, actually read OS X install instructions.
  22. Download .dmg file, mount, copy application, launch.

SPAMMER WHOSE COMMENT GENERATOR IS BROKEN commented :

Switching from OS X to Ubuntu

Switching from OS X to Ubuntu

laptops

In July, I switched from OS X to Ubuntu as my workday environment. For three years my personal MacBook Air had been pulling double duty, personal computer plus workstation at my job (each role with its respective user on the box). When the combined demands for disk space exceeded the 250GB SSD, I took that as a sign that it was time for a change. I work outside my office enough that an external HD wasn’t a practical solution, and a USB key is too slow.

The standard unix password manager you never heard of

Recently I switched my work environment from OS X to Ubuntu (a post on that project is in the works).

For years I’ve been using the standard Apple Keychain app, which has several points in its favor: it’s included with the OS, it integrates well with a lot of applications, and is not trying to “freemium” me into a paid tier. However, it’s OS X only, which meant I had to find something new.

The story of dpaste.com 2.0

Eight years ago, I launched a simple pastebin site written in Django.

In those early Django days I spent a lot of time in the #django IRC channel. I thought we should have a pastebin that knew how to correctly colorize our code, and which was written in our framework to boot. So I wrote one. Eventually its URL ended up in the channel topic, then in the Django source code itself.

Over the years, changes have been minimal. I switched from a Javascript-powered colorizer to Pygments. I added an API. I fixed things that broke. Mostly I just kept it running and usable. (I’ll also note that many excellent new pastebins were created in those years as well.)

Creativity and Constraint

O’Reilly Media recently asked in their “Programming Today” newsletter:

For many old-school software engineers, developing code has always been as much an art as a science. But as the industry focuses more on practices such as Test-Driven Development, and Patterns become the lingua franca of programming, is there any room left for real creativity in coding? Or, has it become an exercise in cookie-cutter production, putting together components in new ways, but without any real room for individual style? Share your thoughts with us…

Booktools

A little-known bit of trivia about our book, Python Web Development with Django: we wrote the manuscript in Markdown.

I think it was my idea. One of the major motivations for using a text-based format – versus the unfortunate de facto standard, Microsoft Word – was integration with good developer tools and workflow.

Our manuscript and all our project code was in a Subversion repo, so each author always had the latest updates. HTML generated from the Markdown files was great for generating nice printed/printable output too.