Slashdot Mirror


User: mataap

mataap's activity in the archive.

Stories
0
Comments
9
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 9

  1. Re:Why I no longer believe in global warming on Scientists Cut Greenland Ice Loss Estimate By Half · · Score: 1

    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?

  2. Re:How about we pay the author not to write them? on Asimov Estate Authorizes New I, Robot Books · · Score: 1

    Charles. Stross.

  3. Re:Biased? hardly on Hydraulic Analog Computer From 1949 · · Score: 1

    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.

  4. shell script portability depends on the unix tools on Beginning Portable Shell Scripting · · Score: 1
    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.

  5. Re:What a fucking stupid idea! on New Font Uses Holes To Cut Ink Use · · Score: 1

    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.

  6. Re:dereverberated on Unix Dict/grep Solves Left-Side-of-Keyboard Puzzle · · Score: 1

    I think we need to hire some dereverberaters. (15)

  7. A cure, finally. on Baldness Gene Discovered — 1 In 7 Men "At Risk" · · Score: 2, Funny

    Ah finally, we can use gene therapy to cure all those afflicted people. Now everyone can be bald!

  8. Can I magnetize a pig by stroking it with a cow? on Scientists Discover Cows Point North · · Score: 1

    Can I magnetize a pig by stroking it with a cow? How many cows can I hang head to arse like paper clips?

  9. Re:I, too, call BS on Scientists Discover Cows Point North · · Score: 1

    Well, that's 'cause your monitor is not correctly aligned. The left side of your monitor should be pointed north. Or a cow arse.