1. Climate Change
I had my first doubts about global warming, when they introduced the term climate change“ which the added claim that climate change“ may not just cause warming in some regions, but may actually cause cooling in others. So all of the sudden climate change“ may cause everything: Hot, cold, stormy, dry, wet, etc.
Why is this a problem for you? Some parts of the world may indeed show a reduced 30 year (e.g.) average temperature, but that doesn't mean that the global 30 year mean won't increase.
Global warming is not necessarily global uniform warming. Global change is not necessarily global uniform change.
I'm sure someone can come up with a Star Trek style analogy for this. Anyone?
Indeed, my father used to build hydraulic gang nail presses for a reseller, and the original (successful) design also used hydraulics to move the gantry and the hanging presses, which the operators loved, as it gave them good control and gentle takeoffs and stops. Then a young buck decided to change to electric motors for positioning the gantry and the press, to save money ( against the advice of older and wiser heads). The customers didn't like them, the stops and starts were too sudden, and it was very hard to position the press where they wanted it. It was like those old gags with elevator operators constantly overshooting and undershooting the floor level. The company went back to hydraulics.
Where shell script portability falls down is often in the need to call external utilities. Once you move beyond a common set of basic functionalities, many unix tools will vary in their behaviour. E.g. find, make, tar, ps, even ls vary from platform to platform. Even if your script is written portably, you have to take account of the variance of the tools the script calls.
I recall one script that broke because ls on one system put an extra leading space in its output. (I think it was an old sgi box.)
Yes, there is posix. So if you must write scripts, try to stick to that. But I have some systems here that are pretty old, and I can't be sure that they are posix compliant.
When I have to use unix tools, I try to arrange for the gnu utilities to be built and installed, so I only have to consider one set of man pages, and not a set for each platform the script has to run on. Similarly, makefile portability is difficult because make behaviour varies between platforms e.g. vpath, so I try to arrange for gnu make to be installed.
In response to those people who just shell out from python: that's a method that I have seen a few times among programmers transitioning from shell to python scripting, including myself. You end up with a bash script where every line is wrapped with os.popen calls. No, the way to write a python script is to look in the library doco for the modules that have the functionality you want. As someone pointed out, find -> os.walk for example. Plus os.popen or os.subprocess from python is still vulnerable to the non-portability that results from behaviour variation of unix tools across platforms.
My preference these days is to write scripts in python, but I agree that there will be systems without python, where shell is required. In those cases, it is great to know how write scripts with better portability, so the book in the post is likely a good addition to the library.
Use a2ps or fineprint to reduce paper and ink usage. Lots of controls to manage multi page printing, duplex, rejecting dud pages before printing, blocking graphics etc.
1. Climate Change I had my first doubts about global warming, when they introduced the term climate change“ which the added claim that climate change“ may not just cause warming in some regions, but may actually cause cooling in others. So all of the sudden climate change“ may cause everything: Hot, cold, stormy, dry, wet, etc.
Why is this a problem for you? Some parts of the world may indeed show a reduced 30 year (e.g.) average temperature, but that doesn't mean that the global 30 year mean won't increase.
Global warming is not necessarily global uniform warming. Global change is not necessarily global uniform change.
I'm sure someone can come up with a Star Trek style analogy for this. Anyone?
Charles. Stross.
Indeed, my father used to build hydraulic gang nail presses for a reseller, and the original (successful) design also used hydraulics to move the gantry and the hanging presses, which the operators loved, as it gave them good control and gentle takeoffs and stops. Then a young buck decided to change to electric motors for positioning the gantry and the press, to save money ( against the advice of older and wiser heads). The customers didn't like them, the stops and starts were too sudden, and it was very hard to position the press where they wanted it. It was like those old gags with elevator operators constantly overshooting and undershooting the floor level. The company went back to hydraulics.
I recall one script that broke because ls on one system put an extra leading space in its output. (I think it was an old sgi box.)
Yes, there is posix. So if you must write scripts, try to stick to that. But I have some systems here that are pretty old, and I can't be sure that they are posix compliant.
When I have to use unix tools, I try to arrange for the gnu utilities to be built and installed, so I only have to consider one set of man pages, and not a set for each platform the script has to run on. Similarly, makefile portability is difficult because make behaviour varies between platforms e.g. vpath, so I try to arrange for gnu make to be installed.
In response to those people who just shell out from python: that's a method that I have seen a few times among programmers transitioning from shell to python scripting, including myself. You end up with a bash script where every line is wrapped with os.popen calls. No, the way to write a python script is to look in the library doco for the modules that have the functionality you want. As someone pointed out, find -> os.walk for example. Plus os.popen or os.subprocess from python is still vulnerable to the non-portability that results from behaviour variation of unix tools across platforms.
My preference these days is to write scripts in python, but I agree that there will be systems without python, where shell is required. In those cases, it is great to know how write scripts with better portability, so the book in the post is likely a good addition to the library.
Use a2ps or fineprint to reduce paper and ink usage. Lots of controls to manage multi page printing, duplex, rejecting dud pages before printing, blocking graphics etc.
I think we need to hire some dereverberaters. (15)
Ah finally, we can use gene therapy to cure all those afflicted people. Now everyone can be bald!
Can I magnetize a pig by stroking it with a cow? How many cows can I hang head to arse like paper clips?
Well, that's 'cause your monitor is not correctly aligned. The left side of your monitor should be pointed north. Or a cow arse.