Read posts about pipes

August 20

Red pipes (Studio Pickett (Soph)) by gmpicket

P8200110 The red pipes are installed. Next I want to paint a little rust on the pipes, using the dirt colors that I used on the silo, then it'll be done. This cement silo car has considerable more detail than the previous cement silo car - it is fun and interesting to compare them. They look essentially alike, but the old one seems out of focus by comparison with the new one's sharp details. The new one is also more fragile; it will be useful to see how it ages as time goes by, to know how fragile is ok or not. Posted in: cement silo car , pipes , uce 8014 , zementsilowagen
August 19

Blue pipes, red pipes (Studio Pickett (Soph)) by gmpicket

P8190104 The blue pipes are now glued and painted. They need a little touch-up paint, and they will be done. I used the contact cement to glue the flanges in place. The big advantage of using the contact cement is that it makes a stretchy bond, which allowed me to position the flanges, then tweak them a few minutes later, which is not possible when gluing with the carpenter's wood glue or the Liquitex matte medium. It is hard to mark where things go when using brass rods, so this way I could get the flange to stay put, position the pipes into place and see how much to tweak the flanges to get them to line up. I used the Liquitex matte medium to glue where the glue would show because it dries to nearly invisible - so I used it to glue the ends of the pipes to the deck, and to strengthen the top joint. The top joint has contact cement inside it. I had to use a super skinny brass rod to get the glue inside the joint. It's quite an achievement, I suppose, when the wooden glue sticks that seem quite small, are too big for the gluing task! [...] Posted in: cement silo car , glue , metal , paint , pipes , styrene , uce 8014 , zementsilowagen
April 18

Cutting down on the use of pipes (Kilala.nl (Cailin Coilleach)) by Cailin Coilleach

One of the obvious down sides to using a scripting language like ksh as opposed to a "real" programming language like Perl or PHP (or C for that matter) is that, for each command that you string together, you're forking off a new process.

This isn't much of a problem when your script isn't too convoluted or when your dataset isn't too large. However, when you start processing 40-50MB log files with multiple FOR loops containing a few IF statements for each line, then you start running into performance issues.

And as I'm running into just that I'm trying to find ways to cut down on the forking, which means getting rid of as many IFs and pipes as possible. Here's a few examples of what has worked for me so far...

Instead of running:
[ expr1 ] && command1
[ expr2 ] && command1

Run:
[ (expr1) && (expr2) ] && command1

Why? Because if test works the way I expect it to, it'll die if the first expression is untrue, meaning that it won't even try the second expression. If you have multiple commands that complement eachother then you ought to be able to fit them into a set of parentheses after test cutting down on more forks.

Instead of running:
if [ `echo $STRING | grep $QUERY | wc -l` -gt 0 ]; then

Run:

if [ ! -z `echo $STRING | grep $QUERY` ]; then

More ideas to follow soon. Maybe I ought to start learning a "real" programming language? :D

EDIT:
OMG! I can't believe that I've just learnt this now, after eight years in the field! When using the Korn shell use [[ expr ]] for your tests as opposed to [ expr ].

Why? Because the [ expr ] is a throw-back to Bourne shell compatibility that makes use of the external test binary, as opposed to the built-in test function. This should speed up things considerably!

Posted in: optimization , pipes , shell script , unix
February 9

The web as a switchboard, Yahoo Pipes (Put together quickly (Haligan)) by michaelb

Pasha Sadri and his teammates at Yahoo released Yahoo Pipes this week. To any Unix user the name itself pretty much explains what it does, but after using the editor I think it would help the average computer user to think of it as the web’s switchboard. As their calls (data) gets plugged into other parties (modules) they get to have the conversation they where looking for.

I’m pretty impressed after working with it for a bit this morning and I only had a few issues. First it crashed Safari and performance has been very slow for me in the Mac version of FireFox (2.0.0.1) with modules taking a while to drag into the editor and for content to refresh, but with their message on adding capacity and how their server was overloaded from an unexpected high demand I expect these issue to go away soon.

After this morning here are a few pointers and a couple of things to keep in mind. When using either “For Each” (Annotate or Replace), sometimes the source or pipe module doesn’t refresh its fields to reflect the data that is coming into the “For Each” module. Try refreshing the module or modules prior to it to get the correct fields. Also sometimes just toggling the “to” (all items / first item) field in it does the trick. It took me a while to find where to rename a pipe, all you need to do is click the name while in edit mode and you’ll be able to change the name from there.

Posted in: pipes , web services , yahoo

The web as a switchboard, Yahoo Pipes (Put together quickly (Haligan)) by michaelb

Pasha Sadri and his teammates at Yahoo released Yahoo Pipes this week. To any Unix user the name itself pretty much explains what it does, but after using the editor I think it would help the average computer user to think of it as the web’s switchboard. As their calls (data) gets plugged into other parties (modules) they get to have the conversation they where looking for.

I’m pretty impressed after working with it for a bit this morning and I only had a few issues. First it crashed Safari and performance has been very slow for me in the Mac version of FireFox (2.0.0.1) with modules taking a while to drag into the editor and for content to refresh, but with their message on adding capacity and how their server was overloaded from an unexpected high demand I expect these issue to go away soon.

After this morning here are a few pointers and a couple of things to keep in mind. When using either “For Each” (Annotate or Replace), sometimes the source or pipe module doesn’t refresh its fields to reflect the data that is coming into the “For Each” module. Try refreshing the module or modules prior to it to get the correct fields. Also sometimes just toggling the “to” (all items / first item) field in it does the trick. It took me a while to find where to rename a pipe, all you need to do is click the name while in edit mode and you’ll be able to change the name from there.

Posted in: pipes , web services , yahoo

The web as a switchboard, Yahoo Pipes (Put together quickly (Haligan)) by michaelb

Pasha Sadri and his teammates at Yahoo released Yahoo Pipes this week. To any Unix user the name itself pretty much explains what it does, but after using the editor I think it would help the average computer user to think of it as the web’s switchboard. As their calls (data) gets plugged into other parties (modules) they get to have the conversation they where looking for.

I’m pretty impressed after working with it for a bit this morning and I only had a few issues. First it crashed Safari and performance has been very slow for me in the Mac version of FireFox (2.0.0.1) with modules taking a while to drag into the editor and for content to refresh, but with their message on adding capacity and how their server was overloaded from an unexpected high demand I expect these issue to go away soon.

After this morning here are a few pointers and a couple of things to keep in mind. When using either “For Each” (Annotate or Replace), sometimes the source or pipe module doesn’t refresh its fields to reflect the data that is coming into the “For Each” module. Try refreshing the module or modules prior to it to get the correct fields. Also sometimes just toggling the “to” (all items / first item) field in it does the trick. It took me a while to find where to rename a pipe, all you need to do is click the name while in edit mode and you’ll be able to change the name from there.

Posted in: pipes , web services , yahoo