Comments for Imaginary Billboards http://www.imaginarybillboards.com Imagined things Fri, 23 Mar 2018 15:51:30 +0000 hourly 1 https://wordpress.org/?v=5.6.7 Comment on Homemade switched outlet strip by seansy59 http://www.imaginarybillboards.com/?p=158&cpage=1#comment-881 Mon, 19 Dec 2011 22:09:35 +0000 http://www.imaginarybillboards.com/?p=158#comment-881 #1- You should have used 14ga or 12ga stranded copper cord. You can pick this up at any hardware store for about $0.50 a foot. Its used for power tools and extension cords. NM-B is not for any use except permenatly installed on walls.

]]>
Comment on Homemade switched outlet strip by Ivan http://www.imaginarybillboards.com/?p=158&cpage=1#comment-874 Sun, 11 Dec 2011 19:47:03 +0000 http://www.imaginarybillboards.com/?p=158#comment-874 Nice Job on the power strip build! However, it might be beneficial if you ground the metal boxes. To do so you can simply remove the plastic ring that holds the two attachment screws on the receptacle or you can tie the bare wire into the metal box using a grounding screw.

Also where did you acquire your supplies? All the supply houses in my area don’t carry Pass & Seymour devices.

]]>
Comment on Perl one-liner to see who is hogging all the open filehandles by Chris http://www.imaginarybillboards.com/?p=194&cpage=1#comment-630 Wed, 23 Mar 2011 14:32:22 +0000 http://www.imaginarybillboards.com/?p=194#comment-630 I’m so stealing both of those in the future – thanks both of you.

]]>
Comment on Perl one-liner to see who is hogging all the open filehandles by Simon Flack http://www.imaginarybillboards.com/?p=194&cpage=1#comment-629 Wed, 23 Mar 2011 14:15:56 +0000 http://www.imaginarybillboards.com/?p=194#comment-629 perl has some nice switches to simplify this a bit:


lsof | perl -anE '$c{$F[2]}++ }END{say "$_ $c{$_}" for (keys %c);'

=) Which is essentially piping lsof into:


use feature 'say';
while (defined($_ = )) {
our(@F) = split(' ', $_, 0);
++$c{$F[2]};
}
sub END {
say "$_ $c{$_}" foreach (keys %c);
}

see `perldoc perlrun` for more info

]]>
Comment on Perl one-liner to see who is hogging all the open filehandles by oylenshpeegul http://www.imaginarybillboards.com/?p=194&cpage=1#comment-626 Tue, 22 Mar 2011 23:59:33 +0000 http://www.imaginarybillboards.com/?p=194#comment-626 Ooh, I love one-liners! I’m not really much of a golfer, but here’s a few things you might do with flags:

You can use -l to get Perl to put that newline on for you.

perl -le ‘map{$c{(split(/\s+/))[2]}++} `lsof`;print “$_ $c{$_}” for keys %c;’

If we move the lsof call outside, then we can use -n to do the map

lsof | perl -nle ‘$c{(split(/\s+/))[2]}++; END{print “$_ $c{$_}” for keys %c}’

Then we can use -a to do the split

lsof | perl -anle ‘$c{$F[2]}++; END{print “$_ $c{$_}” for keys %c}’

With a recent perl, we can use say instead of print with -l

lsof | perl -anE ‘$c{$F[2]}++; END{say “$_ $c{$_}” for keys %c}’

The -l does a chomp on the way in too, but we didn’t really make use of that here, so say is all we need.

]]>
Comment on Homemade switched outlet strip by Nick http://www.imaginarybillboards.com/?p=158&cpage=1#comment-441 Tue, 21 Sep 2010 12:24:42 +0000 http://www.imaginarybillboards.com/?p=158#comment-441 I was looking at building this for my line dancing group, but now that I see the comments, I don’t think I will. It doesn’t seem to make sense to me if it has to be plugged into a real surge suppressor.

If I used a panduit power box, and the kind of plug that has the reset button/breaker in it, would I have to wire it up any differently?

]]>
Comment on Homemade switched outlet strip by Chris http://www.imaginarybillboards.com/?p=158&cpage=1#comment-438 Mon, 20 Sep 2010 16:06:57 +0000 http://www.imaginarybillboards.com/?p=158#comment-438 You’re right about the clamps, of course – I picked up the wrong ones at the store and ended up re-doing the entire strip after taking all these pictures. (And it is plugged into a real surge suppressor). Finally, this is *never* moved, so I didn’t mind using romex which shouldn’t ever be moved unless it’s covered (I think).

]]>
Comment on Homemade switched outlet strip by Homemade power strip - machine quotidienne http://www.imaginarybillboards.com/?p=158&cpage=1#comment-435 Mon, 20 Sep 2010 05:56:42 +0000 http://www.imaginarybillboards.com/?p=158#comment-435 […] Chris Kaufmann’s interesting take on the power strip involves outlet and switch boxes spaced along a cord. Great step-by-steps on the project site. […]

]]>
Comment on Homemade switched outlet strip by Henry http://www.imaginarybillboards.com/?p=158&cpage=1#comment-432 Sun, 19 Sep 2010 19:31:11 +0000 http://www.imaginarybillboards.com/?p=158#comment-432 Everything about this build is a bad idea

]]>
Comment on Homemade switched outlet strip by Marshall http://www.imaginarybillboards.com/?p=158&cpage=1#comment-424 Sun, 19 Sep 2010 03:49:33 +0000 http://www.imaginarybillboards.com/?p=158#comment-424 Great idea.
An observation for safety – you used clamps designed for conduit. The screw can penetrate the romex/insulation and cause a short. This will happen sooner if your setup is moved frequently. Please replace the clamps with those designed for romex.
Take care,
Marshall

]]>