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.

Mon, 23 Mar 2015

Test your (or any) web site’s availability with Apache’s ab utility

Buried in this blog post is a great tip: Using the Apache web server utility ab to determine web site availability and speed.

Definitely check out the post (which is about hosting static sites on Amazon S3), and if you are interested, install ab, which comes bundled for Debian/Ubuntu-style Linux systems in apache2-utils and for Fedora/RHEL/CentOS-style systems in httpd-tools.

The article linked above gives you the command to install apache2-utils in Ubuntu/Debian, and I could provide a similar yum command for Fedora/CentOS, but you probably already know how to install packages both from the command line and a GUI, right?

(I'm not sure how you'd get the Apache utilities in Mac OS X or Windows -- maybe someone else knows.)

Once you have the appropriate package installed (I already had it and didn't even know it), you just run the ab program from a terminal. This line hits my site with 1,000 requests:

$ ab -n 1000 -c 40 http://stevenrosenberg.net/blog

And the output is:

This is ApacheBench, Version 2.3 <: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking stevenrosenberg.net (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        nginx/1.6.2
Server Hostname:        stevenrosenberg.net
Server Port:            80

Document Path:          /blog
Document Length:        309 bytes

Concurrency Level:      40
Time taken for tests:   4.828 seconds
Complete requests:      1000
Failed requests:        0
Non-2xx responses:      1000
Total transferred:      530000 bytes
HTML transferred:       309000 bytes
Requests per second:    207.14 [#/sec] (mean)
Time per request:       193.109 [ms] (mean)
Time per request:       4.828 [ms] (mean, across all concurrent requests)
Transfer rate:          107.21 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       71   82  32.9     76    1077
Processing:    76  106  31.6     96     431
Waiting:       76  105  29.9     96     282
Total:        148  188  46.7    182    1157

Percentage of the requests served within a certain time (ms)
  50%    182
  66%    189
  75%    199
  80%    209
  90%    232
  95%    259
  98%    283
  99%    312
 100%   1157 (longest request)

That's a pretty useful utility, am I right?

Note: So how did Ode do in this test? Very well. The site carries Javascript for Disqus and the Twitter and Google Plus counters, so it's not as light as it could be, and the speeds are no slower than for my entirely static sites on this same shared-hosting server.

And it also shows that Ode can easily handle 1,000 simultaneous requests. Not bad at all.

Fri, 06 Mar 2015

PulseCaster records both sides of your conversation - and I can confirm that it works

PulseCaster has a very simple GUI

So I'm looking for PulseAudio-related software today, and I come across PulseCaster, a Python application created by former Fedora Project Leader (and current Red Hat employee) Paul Frields.

It's a simple app. On Linux systems equipped with PulseAudio (which these days is most of them), it will record both sides of a conversation you are having on any application that pushes that audio over PulseAudio. The default is recording both sides of the conversation to a single OGG file. There is an "advanced" setting that records each side of the the conversation as a separate, uncompressed WAV file.

It's a simple app, and I can tell you that it works well. The wiki suggests that you use it with VOiP apps like Ekiga and Twinkle. Let me tell you now that it also works just fine with the non-free, freedom-hating Skype.

If you wanted to record a podcast, or just a VoIP call with someone else (and yes, PulseCaster warns you not to record without the other party's permission), it couldn't be easier than this.

PulseCaster's warning screen

PulseCaster is packaged for Fedora, but you can get the code from the links on the project home page (which is generated out of GitHub).

It's a simple app that works. What more could you want?

All the PulseCaster links you'll need: Wiki, GitHub, Home

Mon, 02 Mar 2015

Xfce 4.12 Copr repos available for Fedora 20 and 21

Thunar in Xfce 4.12

Copr repos are to Fedora what PPAs are to Ubuntu. And there are Copr repos for the new Xfce 4.12 that work on Fedora 20 and 21.

So what's new in the long-awaited Xfce 4.12? The Xfce news post details the changes, and an online tour provides a more graphical look at the new release.

I'm running Xfce 4.10 in Fedora 21, and there's nothing in 4.12 I can't wait for, so I'll probably be sticking with what I've got until the next Fedora (or other) release I upgrade to or install.

But it's nice to see development continuing for Xfce, which had quite a dry spell between 4.10 and 4.12.

A nice note at the bottom of the Xfce.org tour:

A note on Xfce's portability

All but one of those screenshots were taken on machines running OpenBSD -current, a good proof that Xfce is still portable and friendly to all Unix systems.

Tue, 24 Feb 2015

How to turn on tap-to-click in LXDE on Fedora 21

Almost all the tutorials on tap-to-click for LXDE are on how to turn it off, mostly in Lubuntu.

I've just started experimenting with LXDE in Fedora 21 and was surprised to find out that I can toggle tap-to-click in the configuration of Xfce but not in LXDE, where there is no tap-to-click out of the box.

I repeat: There is seemingly no GUI way to toggle tap-to-click in LXDE. I'd love to be wrong, but I fear I am not.

There is more than one way to turn tap-to-click on with scripts, or modifying xorg.conf or files in xorg.conf.d.

I just wanted something simple. I turned to the synclient utility (using it in the terminal).

First of all you can use synclient to check your setup:

$ synclient -l

And to turn on tap-to-click:

$ synclient TapButton1=1

Like I say above, there are ways to do this via Xorg, and probably other ways, too.

I'm not sure whether or not there is a GUI in LXDE to autostart scripts, but I notice that one of the choices in LXDE's Desktop Session Settings is Xfsettingsd, the Xfce Settings Daemon. Could that bring some of my Xfce settings into LXDE? It's probably worth a try.

But for now, just running synclient TapButton1=1 in the terminal gets me where I want to be.

Sun, 22 Feb 2015

Jono Bacon: Too much hierarchy kills your company, community, family (and anything else)

"Bobbing for Influence" by former Ubuntu Community Manager Jono Bacon, now community manager for XPrize, is an insightful look at a problem affecting many communities.

And if you don't recognize your organization, be it a family, project or company, as a community, you're doing it wrong.

Jono's articla is all about how rigid observance of hierarchy can really kill a company's culture, mission and even bottom line. The worst is when your boss/CEO/etc. thinks that acting like Steve Jobs is going to work. Steve Jobs was a genius. And an asshole. (The chances that you're a genius are slim. And the idea that genius only thrives when mashed up with asshole is stupid. Steve Jobs was an edge case who made thousands of other guys mock-turtle it up and steamroll everybody in their path. Not good.)

Be that as it may, Jono says it better:

A big chunk of the problems many organizations face is around influence. More specifically, the problems set in when employees and contributors feel that they no longer have the ability to have a level of influence or impact in an organization, and thus, their work feels more mechanical, is not appreciated, and there is little validation.

Now, influence here is subtle. It is not always about being involved in the decision-making or being in the cool meetings. Some people won’t, and frankly shouldn’t, be involved in certain decisions: when we have too many cooks in the kitchen, you get a mess. Or Arby’s. Choose your preferred mess.

The influence I am referring to here is the ability to feed into the overall culture and to help shape and craft the organization. If we want to build truly successful organizations, we need to create a culture in which the very best ideas and perspectives bubble to the surface. These ideas may come from SVPs or it may come from the dude who empties out the bins.

The point being, if we can figure out a formula in which people can feel they can feed into the culture and help shape it, you will build a stronger sense of belonging and people will stick around longer. A sense of empowerment like this keeps people around for the long haul. When people feel unengaged or pushed to the side, they will take the next shiny opportunity that bubbles up on LinkedIn.

Jono goes through 10 individual points on the problems of lack of influence in communities. I can think of few people who wouldn't benefit from reading this article. (I sure did.)

If this isn't a chapter in one of Jono's current books, it should be in his next one, for sure.

Sun, 15 Feb 2015

What is 8th? A cross-platform development environment/language ... but there's a $199 catch

I'm coming into this blind. I saw a link to the 8th site and found out that 8th is a while new programming language and development environment that allows you to code once and run on:

  • Windows
  • OS X
  • Linux
  • Android
  • iOS

Really?

As the 8th site says:

Program code is only written once, in 8th™, regardless of how many platforms are targeted. The code is then packaged to run on the target operating system, which may be any combination of Windows, OS X, Linux, Android or iOS. Differences between operating systems are handled by 8th™, letting the developer leverage existing knowledge across all platforms.

And it looks like simplicity is important to 8th. Here is the "Hello, World" program in 8th:

"Hello, world!\n" . bye

That's easy, all right.

I don't know enought about 8th, or about what exactly you can code with it, but the idea that these applications are so vigorously cross-platform really gets me thinking. Even just in the mobile space, the ability to code once for both Android and iOS is huge. And add to that all the major desktop OSes (Windows, OS X, Linux), and this could potentially be something.

There IS a catch (and truthfully, I didn't see it coming)

To produce "packaged applications" with 8th, you have to pay per year.

I'm not sure this is good, let alone -per-year good.

What do you think?

Tue, 13 Jan 2015

Answers from a Fedora Xfce developer

Fedora developer (and Red Hat employee) Kevin Fenzi answers questions that users have about the project's Xfce spin in a new blog post.

As a longtime user of Fedora's Xfce spin, naturally I'm interested.

He covers:

  • The reasons why Xfce 4.11 is not in Fedora Rawhide (because there is no 4.12 release imminent, and 4.11 in "stable" Fedora would be bad, but there is a COPR repo for those who want it)

  • Rumors that Xfce, the project, is dead (It's not -- fixes and small changes continue to be committed; there's just no timetable for a 4.12 release)

  • The Xfce spin leaving its 700MB CD size behind and now aiming at 1 GB USB flash drive size in Fedora 22

  • Xfce continuing to be available for RHEL/CentOS users in EPEL

  • Ways of making Xfce work better on HIDPI displays (but don't expect miracles until Xfce adopts gtk3)

Read the original post. It's well worth it.

I've been running the Fedora Xfce Spin since F18, and I think it's one of the best-kept secrets in the Xfce-running distro world. It comes well-configured out of the box, looks great, is as cutting-edge as you'd want and really does just work most of the time.

Sat, 03 Jan 2015

Strehler is a new CMS built with Perl and the Dancer2 Framework

Spotted on Reddit is Strehler CMS, described as "A light-weight, nerdy smart CMS in Perl based on Perl Dancer2 Framework."

I'm not sure what to say about it, and I haven't even found a blog running it, but it is something to keep an eye on.

Thu, 18 Dec 2014

I'm running Fedora 21 with Wayland, and so far (almost) everything is working just fine

After saying I wouldn't jump into a Fedora 21 upgrade, I rather quickly had a change of heart and mind, ran a Fedup upgrade and am now running Fedora 21 on my go-to HP Pavilion g6 laptop.

With Wayland.

Yep, one of the new features of the GNOME 3.14-running Fedora 21 is a preview of the next-generation, post-X Window Wayland display manager, and you can choose "GNOME with Wayland" in the login/session manager.

I'm running Wayland right now. I've heard the caveat many times: Not all applications will work in Wayland. But so far, every application I've tried (Firefox, Gedit, Transmission, FileZilla, VLC, Files/Nautilus, Liferea, Yumex, Google Chrome, Geany, even apps in Wine) has run in Wayland with no trouble.

I've been running Fedora 21 for a few days now, spending most of my time in the non-Wayland world of Xfce and GNOME with X, and the system is as solid as ever. And by that I mean pretty damn solid.

The only glitch I've had with Wayland has been in suspend/resume, which is pretty touchy anyway with my hardware. (I've probably written 50 posts about it since I got this laptop.) When running Wayland, the laptop will suspend and then resume, but I'm seemingly "detached" from my session and have to log in again. At this point I'm logged in twice. This doesn't happen in X. If this is the only thing I can find wrong with Wayland, I'll still consider it pretty remarkable.

Just from a "look and feel" perspective, GNOME 3.14 is working better and faster than version 3.10 did in Fedora 20. I'm not saying I'm going to throw Xfce over for it, but the environment is more usable than ever. I moved to the Adiwata Dark theme while still in F20, and everything looks that much better in F21.

As I've said since I began running Fedora 18 on this laptop and upgrading via Fedup to each subsequent release, a system as forward-looking as Fedora shouldn't be anywhere near as stable as it is. It's a tribute to the developers for Fedora and the many upstream projects that go into the distribution.

Today marks only nine days since Fedora 21 went stable, and my system is running like a well-maintained watch.

So if you think of yourself as the adventurous type, someone who likes everything to be pretty new all the time but doesn't really want to deal with a lot of breakage and is curious about Wayland in the real world, give Fedora 21 a try.

Later: You know what got fixed in Fedora 21 that was broken in F20? Mounting of Apple iOS 8 devices.

Tue, 16 Dec 2014

This is an Ode Markdown formatting test

This paragraph is set off with tabs and has a Markdown-generated link:

This is my Ode site, [which lives here](http://stevenrosenberg.net/blog).

This paragraph uses "blockquote" HTML tagging and an HTML link:

This is my Ode site, which lives here.

This paragraph is set off with tabs and has an HTML-tagged link:

This is my Ode site, <a href="http://stevenrosenberg.net/blog">which lives here</a>.

None of this text uses the "code" tag.

So my question is, how do you call "blockquote" without "code" in Markdown?

Later: I have the answer. Set off every line with the > character:

> This text will be set off in blockquote style.

With the proper Markdown, this becomes:

This text will be set off in blockquote style.