Title photo
frugal technology, simple living and guerrilla large-appliance repair

Regular blog here, 'microblog' there

Many of my traditional blog post live on this site, but a great majority of my social-style posts can be found on my much-busier microbloging site at updates.passthejoe.net. It's busier because my BlogPoster "microblogging" script generates short, Twitter-style posts from the Linux or Windows (or anywhere you can run Ruby with too many Gems) command line, uploads them to the web server and send them out on my Twitter and Mastodon feeds.

I used to post to this blog via scripts and Unix/Linux utilities (curl and Unison) that helped me mirror the files locally and on the server. Since this site recently moved hosts, none of that is set up. I'm just using SFTP and SSH to write posts and manage the site.

Disqus comments are not live just yet because I'm not sure about what I'm going to do for the domain on this site. I'll probably restore the old domain at first just to have some continuity, but for now I like using the "free" domain from this site's new host, NearlyFreeSpeech.net.

Thu, 15 Feb 2018

Showtime's 'I'm Dying Up Here': Comic timing ... and parking

So I've been watching Showtime's "I'm Dying Up Here," the excellent series about LA's 1970s stand-up comedy scene and its "Carson's couch means you've made it" vibe, and all I can think about is how easy it was to park your car in LA back in those days.

Wed, 07 Feb 2018

Pragmatic Programmers, No Starch Press, Manning Books, Packt and Apress fill void left by O'Reilly Media

It wasn't a total surprise in mid-2017 that O'Reilly Media was retreating from tech-book publishing, especially when it comes to offering digital books. It's been more than a while since the company announced that it would no longer sell books -- digital or print -- directly and would instead offer all of its books through the Safari online service and in print via Amazon.

Here are two articles from O'Reilly Media on their decision:

If you look at it, this decision by O'Reilly to exit the direct-sales market didn't just happen out of the blue in June 2010. It was a slow decline over years. O'Reilly (and most other publishers, really) used to offer a whole lot of books on Linux and Unix, and even more on individual programming languages.

O'Reilly really slowed down what it did for Linux (pretty much stopping that category) and put out programming books with longer and longer gaps in between.

Announcing that they would no longer sell directly to readers was just the end of what had already been in motion for a long time. I don't begrudge O'Reilly its sizable conference business, which I'm sure "carried" the book publishing part of the company for years. I also can't fault them for pulling back. It's a business decision. Sure, they are killing their brand, but they don't see it that way. Maybe a brand isn't so valuable if you can't make money with it.

Luckily we have a few tech-book publishers who are doing a great job filling the sizable gap (and, if I'm right, sizable market) left by O'Reilly.

In no particular order, my favorite tech publishers are Pragmatic Programmers, No Starch Press and Manning Books.

On the second tier are Packt and Apress.

I'd also like to mention Leanpub, which is more of an author "platform," but has a lot of content I like.

And then there's the rest of the self-published tech-book world, which you can tap into via Amazon and all over the Web. In particular, a lot of academics are publishing extremely valuable books for free via PDF, sometimes also publishing in print. I've even heard some authors for the "real" publishers say their books sell better when they're also available for free in electronic form. Maybe you get such a big audience for a free book that the percentage who might want a paper copy is bigger than the number who are willing to take a chance on a book that they can't yet read.

What O'Reilly Media used to "bring" was a guaranteed level of quality. I think that PragProg, Manning and No Starch are continuing that tradition. They're "gatekeepers" in the sense that you know it's going to be a good book that really offers value. I don't always get that sense with Packt books. Apress seems to bring a good level of quality, but it's not at PragProg/Manning level.

I'm sad that O'Reilly went all in with their digital subscription model, but they were fading from relevance for years before they made that move. That makes me happy to support the current publishers who are keeping quality high and selling direct to their readers.

Mon, 29 Jan 2018

Use an .htaccess rewrite to force trailing slashes at the end of URLs

I'm looking into this very thing -- using .htaccess to force trailing slashes at the end of URLs requested on the Apache web server.

Stack Overflow may have the answer:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)([^/])$        /$1/ [L,R=301]

As SO user jeffbyrnes says,

The RewriteCond will check to make sure there's no files with that name, and if not, perform the RewriteRule. More future-proof than having a manual list of extensions!

I don't have time right now to hack this onto a server, but I will for sure be giving it a try.

Ruby String Methods (Ultimate Guide) - a great tutorial from rubyguides.com

Rubyguides.com does a great job presenting all the things you can do with strings in Ruby.

How to change permissions on all directories in a directory while leaving the files alone

I have a situation where I want all of the directories in my project to have 755 permissions while all files have 644 permissions.

All of the files have the same extension, so it's easy to single them out:

$ chmod 644 *.txt

But what do you do for directories? I did a search, and a Linux Questions thread gave me the answer:

$ find . -type d -exec chmod 755 {} \;

Works like butter.

Reading Clojure by Ricardo J. Méndez

Two very helpful (and very readable) articles by Ricardo J. Méndez of Numergent. I will be watching for future articles in what I hope will be a series.