POV-Ray : Newsgroups : povray.off-topic : Adventures with digital painting Server Time
27 Nov 2026 16:42:32 EST (-0500)
  Adventures with digital painting (Message 71 to 120 of 197)  
<<< Previous 50 Messages Goto Latest 50 Messages Next 50 Messages >>>
From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 8 Mar 2008 21:09:36
Message: <47d346e0$1@news.povray.org>
On Sat, 08 Mar 2008 14:51:02 -0800, Darren New wrote:

> Jim Henderson wrote:
>> On Sat, 08 Mar 2008 11:54:07 -0800, Darren New wrote:
>> 
>>> Here's a contest. Given the directory /tmp/stuff, delete all the files
>>> in that directory that end with ".tmp".
>> 
>> cd /tmp/stuff; find -type f | grep tmp$ | awk '{system("rm \"" $0
>> "\""))'
> 
> Great. Now try it on a directory with the following names in it:
> 
> -rf\n.tmp  (where the \n means newline, of course) <.tmp
> .xyz.tmp
> hip"hop.tmp
> hop'hip.tmp
> this.tmp;that.tmp
> this\bthat.tmp   (where the \b means bell) this\bthat.tmp   (where the
> \b is two characters, backslash and b)
> 
> Two for zero... ;-)

I *think* if I were to do a single quote rather than a double, that would 
solve most of those problems.  Maybe not the one with the single tick in 
it, but a gsub for a pattern of special characters would do it.

But of course, I try not to name files with special characters - not 
always successfully (occasionally torrents that I pull down have names 
that are stupidly in violation of all standards for file naming).

But if I wanted it to work all the time, I'd write it in C and be done 
with it - then the shell doesn't come into play. :-)

> (I work with big directories, and big files. Often I'll have a program
> that runs 3 hours, then takes half an hour to delete its input files. Or
> individual files that take 2 minutes of disk I/O to delete. Or empty
> directories that take several minutes to delete because they used to
> have six or seven million files in em.  And of course, the machine
> becomes completely unusable during any sort of operation like that.)

I occasionally do things like this myself - that's the reason I didn't 
try to pass all the files on the command-line to a single rm command.  
BTDTGTTS. :-)

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 8 Mar 2008 21:10:17
Message: <47d34709$1@news.povray.org>
On Sat, 08 Mar 2008 17:44:45 -0500, Warp wrote:

> Jim Henderson <nos### [at] nospamcom> wrote:
>> cd /tmp/stuff; find -type f | grep tmp$ | awk '{system("rm \"" $0
>> "\""))'
> 
>   Why does it need to be so complicated?
> 
>   find /tmp/stuff -name "*.tmp" -exec rm {} \;

Because there's a million ways to do it, and I haven't memorised all the 
options for the find command.

In the time that it would take me to look up the options for find, I've 
written the command-line out.

Jim


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 8 Mar 2008 21:12:09
Message: <47d34779$1@news.povray.org>
Jim Henderson escribió:
> But if I wanted it to work all the time, I'd write it in C and be done 
> with it - then the shell doesn't come into play. :-)

Can filenames have null characters on them? :)


Post a reply to this message

From: Chambers
Subject: Re: Adventures with digital painting
Date: 8 Mar 2008 22:04:09
Message: <47d353a9$1@news.povray.org>
Orchid XP v7 wrote:
> Chambers wrote:
> 
>> So what you're really saying, is that we need a modern implementation 
>> of traditional Unix style tools, distributed as a package.  It 
>> wouldn't need a ton of that backwards-compatibility stuff, because all 
>> of the included tools are fresh implementations that we know work 
>> together.
> 
> What I'm saying is that "Unix" isn't a single coherant design. It's 
> 50,000 random people all doing their own seperate thing, and expecting 
> the result to actually function. Which, almost unbelievably, it does. 
> But *damn* is it messy...

When you're writing a single, simple tool, with well defined inputs and 
outputs, it's much easier to make it work *no matter what*.  When each 
tool is maintained by a separate group of people, they may not share the 
same design ideology, but they're much more likely to operate correctly 
under unexpected circumstances.

So the fact that it works as often as it does shouldn't really surprise 
anyone.

-- 
...Ben Chambers
www.pacificwebguy.com


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 8 Mar 2008 23:06:56
Message: <47d36260$1@news.povray.org>
On Sun, 09 Mar 2008 00:11:49 -0200, Nicolas Alvarez wrote:

> Jim Henderson escribió:
>> But if I wanted it to work all the time, I'd write it in C and be done
>> with it - then the shell doesn't come into play. :-)
> 
> Can filenames have null characters on them? :)

A null character can be represented as a value, so yes.

Jim


Post a reply to this message

From: Eero Ahonen
Subject: Re: Adventures with digital painting
Date: 9 Mar 2008 03:17:01
Message: <47d39cfd$1@news.povray.org>
Darren New wrote:
> 
> % cat a b c >d
> Can't create d: permission denied
> % sudo !!
> Can't create d: permission denied
> 
> Of course, the real line was much longer, so a simple "su" meant 
> retyping the line (or using copy-and-paste to retype it for you) instead 
> of just !! or up-arrow. :-)
> 

<up arrow><home>su -c <enter>

-- 
Eero "Aero" Ahonen
    http://www.zbxt.net
       aer### [at] removethiszbxtnetinvalid


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 9 Mar 2008 04:55:23
Message: <47d3b40b@news.povray.org>
Jim Henderson <nos### [at] nospamcom> wrote:
> On Sat, 08 Mar 2008 17:44:45 -0500, Warp wrote:

> > Jim Henderson <nos### [at] nospamcom> wrote:
> >> cd /tmp/stuff; find -type f | grep tmp$ | awk '{system("rm \"" $0
> >> "\""))'
> > 
> >   Why does it need to be so complicated?
> > 
> >   find /tmp/stuff -name "*.tmp" -exec rm {} \;

> Because there's a million ways to do it, and I haven't memorised all the 
> options for the find command.

> In the time that it would take me to look up the options for find, I've 
> written the command-line out.

  But now you know. The -exec option of find is actually quite useful.
Learn to use your tools. :)

-- 
                                                          - Warp


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 9 Mar 2008 11:37:27
Message: <47d41247$1@news.povray.org>
Eero Ahonen escribió:
> Darren New wrote:
>>
>> % cat a b c >d
>> Can't create d: permission denied
>> % sudo !!
>> Can't create d: permission denied
>>
>> Of course, the real line was much longer, so a simple "su" meant 
>> retyping the line (or using copy-and-paste to retype it for you) 
>> instead of just !! or up-arrow. :-)
>>
> 
> <up arrow><home>su -c <enter>

On some ssh sessions, and on MSYS bash shell, pressing home or end keys 
types a ~ symbol instead of moving the cursor. Probably something I have 
to configure...


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 9 Mar 2008 15:25:27
Message: <47d447b7@news.povray.org>
On Sun, 09 Mar 2008 04:55:23 -0500, Warp wrote:

> Jim Henderson <nos### [at] nospamcom> wrote:
>> On Sat, 08 Mar 2008 17:44:45 -0500, Warp wrote:
> 
>> > Jim Henderson <nos### [at] nospamcom> wrote:
>> >> cd /tmp/stuff; find -type f | grep tmp$ | awk '{system("rm \"" $0
>> >> "\""))'
>> > 
>> >   Why does it need to be so complicated?
>> > 
>> >   find /tmp/stuff -name "*.tmp" -exec rm {} \;
> 
>> Because there's a million ways to do it, and I haven't memorised all
>> the options for the find command.
> 
>> In the time that it would take me to look up the options for find, I've
>> written the command-line out.
> 
>   But now you know. The -exec option of find is actually quite useful.
> Learn to use your tools. :)

Yes, now I know - and I never would claim to "know it all" (been burned 
too many times with things I do know more than the average person about - 
and then had something pointed out I didn't know <g>).

So I do appreciate you teaching me that one.  New weapon for the 
arsenal. :-)

Jim


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 04:20:23
Message: <47d4fd56@news.povray.org>
Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> > <up arrow><home>su -c <enter>

> On some ssh sessions, and on MSYS bash shell, pressing home or end keys 
> types a ~ symbol instead of moving the cursor. Probably something I have 
> to configure...

  ctlr-a to get to the beginning of the line, ctrl-e to get to the end.
(ctrl-u to erase the entire line is a good shortcut to know too. ctrl-l
clears the console (in interactive full-console programs it usually
refreshes the console).)

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 05:07:06
Message: <47d5084a@news.povray.org>
Warp wrote:
> Orchid XP v7 <voi### [at] devnull> wrote:
>> What I'm saying is that "Unix" isn't a single coherant design. It's 
>> 50,000 random people all doing their own seperate thing, and expecting 
>> the result to actually function. Which, almost unbelievably, it does. 
>> But *damn* is it messy...
> 
>   I really fail to see how that is at all different from Windows. ;)

Well, Windoze certainly ended up being a pretty serious mess... But at 
least it does a better job of presenting a coherant appearence if 
nothing else.

The trouble with Linux is that everything is 50,000 utterly *tiny* 
pieces, each of which does almost nothing useful by itself, and you have 
to put thousands of these tiny pieces together to do anything useful.

The trouble with Windoze is that *everything* is one gigantic lump. (And 
it's a very buggy, undocumented and unreliable lump at that.)

Why can't somebody build an OS with a *sane* level of granularity?? What 
would be so hard about that?

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 05:21:38
Message: <47d50bb2$1@news.povray.org>
>> What I'm saying is that "Unix" isn't a single coherant design. It's 
>> 50,000 random people all doing their own seperate thing, and expecting 
>> the result to actually function. Which, almost unbelievably, it does. 
>> But *damn* is it messy...
> 
> When you're writing a single, simple tool, with well defined inputs and 
> outputs, it's much easier to make it work *no matter what*.  When each 
> tool is maintained by a separate group of people, they may not share the 
> same design ideology, but they're much more likely to operate correctly 
> under unexpected circumstances.
> 
> So the fact that it works as often as it does shouldn't really surprise 
> anyone.

Hooooookay then... let me see...

http://unixhelp.ed.ac.uk/CGI/man-cgi?ls

So the program to "list the contents of a folder" has 59 seperate 
command-line options?

And what do these options do? Well, some of them control which fields to 
show or not show. Some control which way to sort the list. Some control 
which files to show/hide. Some control various formatting options 
(escape filenames, use colour, grid or column view).

I just love the way they interact:

   -lct: Show ctime, sort by ctime.
   -lc:  Show ctime, sort by name.
   -c:   Hide ctime, Sort by ctime.

What the hell??

So, rather than having options to select individual fields to show or 
hide, and another option specifying which field to sort by, we have this 
ad-hoc *mess* of haphazardly interacting command switches that you have 
to spend 20 minutes studying the manpage to decode the interactions for?

In what universe is this a "simple tool" with "well defined inputs and 
outputs"?

Also: autoconf exists. Need I say more?

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Phil Cook
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 06:57:37
Message: <op.t7st7dw2c3xi7v@news.povray.org>
And lo on Fri, 07 Mar 2008 21:06:57 -0000, Nicolas Alvarez  
<nic### [at] gmailisthebestcom> did spake, saying:

> Tim Cook escribió:
>> Heck, I use version 7...even 8 was too bloatware for my taste.
>
> http://stuff.povaddict.com.ar/psp5.png
>
> I tried 8 or 9 and I was impressed at the amount of bloat.

But wasn't it v7 that introduced the ability to layout and print multiple  
images? Such a handy little thing.

-- 
Phil Cook

Using PSP7.04

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 07:16:31
Message: <47d5269f@news.povray.org>
Invisible escribió:
> Why can't somebody build an OS with a *sane* level of granularity?? What 
> would be so hard about that?

GNU Hurd, if I understand it correctly, splits the kernel into pieces too :)


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 07:17:41
Message: <47d526e5$1@news.povray.org>
Phil Cook escribió:
> And lo on Fri, 07 Mar 2008 21:06:57 -0000, Nicolas Alvarez 
> <nic### [at] gmailisthebestcom> did spake, saying:
>> http://stuff.povaddict.com.ar/psp5.png
>>
>> I tried 8 or 9 and I was impressed at the amount of bloat.
> 
> But wasn't it v7 that introduced the ability to layout and print 
> multiple images? Such a handy little thing.

I don't have a working printer, so meh.


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 07:35:22
Message: <47d52b0a@news.povray.org>
Nicolas Alvarez wrote:
> Invisible escribió:
>> Why can't somebody build an OS with a *sane* level of granularity?? 
>> What would be so hard about that?
> 
> GNU Hurd, if I understand it correctly, splits the kernel into pieces 
> too :)

Ah yes, but in Unix land, a device driver is counted as part of the 
kernel. ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Phil Cook
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 07:35:43
Message: <op.t7svyt1sc3xi7v@news.povray.org>
And lo on Mon, 10 Mar 2008 12:15:34 -0000, Nicolas Alvarez  
<nic### [at] gmailisthebestcom> did spake, saying:

> Phil Cook escribió:
>> And lo on Fri, 07 Mar 2008 21:06:57 -0000, Nicolas Alvarez  
>> <nic### [at] gmailisthebestcom> did spake, saying:
>>> http://stuff.povaddict.com.ar/psp5.png
>>>
>>> I tried 8 or 9 and I was impressed at the amount of bloat.
>>  But wasn't it v7 that introduced the ability to layout and print  
>> multiple images? Such a handy little thing.
>
> I don't have a working printer, so meh.

In that case you're probably fine with v5, the only reason I'd be looking  
to upgrade is that v7 doesn't retain EXIF data and I think v8 upwards does.

-- 
Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:00:18
Message: <47d530e2@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> Ah yes, but in Unix land, a device driver is counted as part of the 
> kernel. ;-)

  There are many pros in monolithic kernels. Of course there are cons,
but many people believe that the pros outweight the cons in this case.

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:03:16
Message: <47d53194@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> Also: autoconf exists. Need I say more?

  Autoconf exists because not all systems have the same tools or libraries
installed, nor all systems have the same versions of those tools/libraries.

  Autoconf also exists because computer architectures are different.
For instance, some architectures may be little-endian while others are
big-endian. Some architectures may be 32-bit while others are 64-bit.

  Portability is a key feature of unix-like systems.

-- 
                                                          - Warp


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:05:54
Message: <47d53232$1@news.povray.org>
Invisible escribió:
> Also: autoconf exists. Need I say more?

When trying to compile POV-Ray for the iPod touch, I had trouble with 
two libraries. JPEG, which used a very old version of autoconf, and 
TIFF, which used a half-assed written-by-hand configure script.


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:06:54
Message: <47d5326e$1@news.povray.org>
Invisible escribió:
> In what universe is this a "simple tool" with "well defined inputs and 
> outputs"?

ls is a good example of a program that *doesn't* have well-defined 
outputs, in the sense that scripts should never rely on parsing ls 
output. ls is supposed to have *human-readable* output.


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:13:11
Message: <47d533e7$1@news.povray.org>
Warp wrote:
> Invisible <voi### [at] devnull> wrote:
>> Ah yes, but in Unix land, a device driver is counted as part of the 
>> kernel. ;-)
> 
>   There are many pros in monolithic kernels. Of course there are cons,
> but many people believe that the pros outweight the cons in this case.

I just prefer being able to add new drivers without having to recompile 
the kernel and reboot the machine - but that's just me...

OOC, what are the benefits?

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:18:24
Message: <47d53520$1@news.povray.org>
Warp wrote:

>   Autoconf exists because not all systems have the same tools or libraries
> installed, nor all systems have the same versions of those tools/libraries.

As far as I can tell, autoconf exists because some systems use BSD awk 
and others use GNU awk, and the two aren't precisely compatible. 
Multiply this by the 50,000 other tiny utilities you may or may not need 
to set up this program and you have a configuration nightmare so bad it 
requires an automated tool to make things remotely tractable.

And it seems to me that most of this has happened because the entire 
system has been poked and prodded by so many different people over time 
that you now have a huge tangled mass of different implementations all 
of which are only semi-compatible.

>   Autoconf also exists because computer architectures are different.
> For instance, some architectures may be little-endian while others are
> big-endian. Some architectures may be 32-bit while others are 64-bit.

Shouldn't the compiler be dealing with those issues?

>   Portability is a key feature of unix-like systems.

That I don't have a problem with... ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:40:35
Message: <47d53a53$1@news.povray.org>
Invisible escribió:
> Warp wrote:
>>   Autoconf also exists because computer architectures are different.
>> For instance, some architectures may be little-endian while others are
>> big-endian. Some architectures may be 32-bit while others are 64-bit.
> 
> Shouldn't the compiler be dealing with those issues?

No. If the compiler "dealt" with little endian and big endian, by making 
the C code always see one or the other, it would make the other 
architecture much slower.

Also, the C standard only mentions minimum sizes for data types. A 
compliant C implementation may have 64-bit bytes if it wants to.


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:47:37
Message: <47d53bf9$1@news.povray.org>
>> Shouldn't the compiler be dealing with those issues?
> 
> No. If the compiler "dealt" with little endian and big endian, by making 
> the C code always see one or the other, it would make the other 
> architecture much slower.

What I meant was, shouldn't the programmer be able to just write their 
program, and let the compiler generate the correct code depending on the 
actual processor architecture?

But then, since C is little more than semi-portable machine code, I 
guess that would be quite hard to do.

> Also, the C standard only mentions minimum sizes for data types. A 
> compliant C implementation may have 64-bit bytes if it wants to.

IOW, the C standard is insane. ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:53:13
Message: <47d53d49$1@news.povray.org>
Invisible escribió:
>>> Shouldn't the compiler be dealing with those issues?
>>
>> No. If the compiler "dealt" with little endian and big endian, by 
>> making the C code always see one or the other, it would make the other 
>> architecture much slower.
> 
> What I meant was, shouldn't the programmer be able to just write their 
> program, and let the compiler generate the correct code depending on the 
> actual processor architecture?
> 
> But then, since C is little more than semi-portable machine code, I 
> guess that would be quite hard to do.

Of course there is a lot of code that can be written without caring 
about endianness. In which case you wouldn't tell autoconf to do that check.


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 08:54:23
Message: <47d53d8f@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> I just prefer being able to add new drivers without having to recompile 
> the kernel and reboot the machine - but that's just me...

  I have never had to recompile the kernel or reboot the machine because
of requiring a new driver.

  man modprobe

> OOC, what are the benefits?

  For example, the interfaces and protocols between the kernel and the
drivers can be modified easily without having to worry about backwards
compatibility. If an existing interface or protocol results to be a bad
design choice, or it results to have some inefficiencies in a newer
architecture, they can all be changed without problems. Basically, the
kernel is not burdened with backwards compatibility issues with regard
to drivers.

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 09:00:40
Message: <47d53f07@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> Warp wrote:

> >   Autoconf exists because not all systems have the same tools or libraries
> > installed, nor all systems have the same versions of those tools/libraries.

> As far as I can tell, autoconf exists because some systems use BSD awk 
> and others use GNU awk, and the two aren't precisely compatible. 

  In other words, autoconf exists to increase portability. My point exactly.

> Multiply this by the 50,000 other tiny utilities you may or may not need 
> to set up this program and you have a configuration nightmare so bad it 
> requires an automated tool to make things remotely tractable.

  You seem to have quite many nightmares others don't.

> >   Autoconf also exists because computer architectures are different.
> > For instance, some architectures may be little-endian while others are
> > big-endian. Some architectures may be 32-bit while others are 64-bit.

> Shouldn't the compiler be dealing with those issues?

  There are some cases were endianess matters, especially if you are trying
to write low-level efficient code.

  A concrete example which I remember where the program has to behave
differently depending on endianess is mplayer. The source code has to
know the endianess of the target system in order to be able to write
bytes in the proper order.
  (Sure, the code could have been written so that endianess doesn't matter,
but then it wouldn't have been so efficient.)

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 09:06:46
Message: <47d54076@news.povray.org>
>> I just prefer being able to add new drivers without having to recompile 
>> the kernel and reboot the machine - but that's just me...
> 
>   I have never had to recompile the kernel or reboot the machine because
> of requiring a new driver.
> 
>   man modprobe

No - but it *is* fun if you try to install some device driver that needs 
to be compiled from source and you don't have the kernel headers 
installed. (Whereas on Windoze you just install the driver - and hope to 
God that PnP actually does what it's meant to...)

I had great fun trying to get the nVidia graphics drivers to actually 
blinking work...

>> OOC, what are the benefits?
> 
>   For example, the interfaces and protocols between the kernel and the
> drivers can be modified easily without having to worry about backwards
> compatibility.

Mmm, OK. I can see how that would be useful...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 11:38:23
Message: <47d563ff$1@news.povray.org>
On Mon, 10 Mar 2008 10:07:04 +0000, Invisible wrote:

> The trouble with Linux is that everything is 50,000 utterly *tiny*
> pieces, each of which does almost nothing useful by itself, and you have
> to put thousands of these tiny pieces together to do anything useful.

Well, that's a fallacy right there.  I'm running a monolithic application 
at the moment called "pan", which is a newsreader.

I've got another fairly monolithic application called "firefox" running 
in the background, and another called "OpenOffice" that's at the 
standby.  Also one called "Pidgin" which is an IM client.

None of these apps particularly *requires* any of the standard command-
line utilities on my OS for anything short of building it (if I should 
desire to do so).

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 11:39:07
Message: <47d5642b$1@news.povray.org>
On Mon, 10 Mar 2008 13:13:10 +0000, Invisible wrote:

> I just prefer being able to add new drivers without having to recompile
> the kernel and reboot the machine - but that's just me...

Well, in Linux you don't have to.  You build the driver (if it's not 
already included), load it, and away you go.

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 11:40:11
Message: <47d5646b$1@news.povray.org>
On Mon, 10 Mar 2008 14:06:44 +0000, Invisible wrote:

> No - but it *is* fun if you try to install some device driver that needs
> to be compiled from source and you don't have the kernel headers
> installed.

There's a reason why you install the kernel headers.  Once.

The latest nVidia drivers installed like a dream for me on openSUSE 
10.3.  The ATI drivers are, admittedly, a royal pain in the arse.

Jim


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 11:51:24
Message: <47d5670c@news.povray.org>
>> The trouble with Linux is that everything is 50,000 utterly *tiny*
>> pieces, each of which does almost nothing useful by itself, and you have
>> to put thousands of these tiny pieces together to do anything useful.
> 
> Well, that's a fallacy right there.  I'm running a monolithic application 
> at the moment called "pan", which is a newsreader.
> 
> I've got another fairly monolithic application called "firefox" running 
> in the background, and another called "OpenOffice" that's at the 
> standby.  Also one called "Pidgin" which is an IM client.
> 
> None of these apps particularly *requires* any of the standard command-
> line utilities on my OS for anything short of building it (if I should 
> desire to do so).

Right. And simply booting the OS doesn't require GRUB, init, chkfs, 
getty, some kind of shell to run all the startup scripts, plus every CLI 
tool that those scripts call...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 12:55:41
Message: <47d5761d$1@news.povray.org>
On Mon, 10 Mar 2008 16:51:29 +0000, Invisible wrote:

> Right. And simply booting the OS doesn't require GRUB

Modern Windows has an equivalent - ever seen the boot menu?

> init

service manager

> chkfs,

chkdsk

> getty, 

GINA

> some kind of shell to run all the startup scripts, 

service manager (again)

> plus every CLI
> tool that those scripts call...

DLL hell. ;-)

You say "tomayto", I say "tomahto".

Jim


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 13:05:52
Message: <47d57880@news.povray.org>
Jim Henderson <nos### [at] nospamcom> wrote:
> The ATI drivers are, admittedly, a royal pain in the arse.

  The ATI Linux display driver has installed itself just fine for years.
Its only problem is that it's buggy with several display cards (including
mine), which renders it unusable with them.

-- 
                                                          - Warp


Post a reply to this message

From: Eero Ahonen
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 13:56:43
Message: <47d5846b@news.povray.org>
Jim Henderson wrote:
> 
> Well, in Linux you don't have to.  You build the driver (if it's not 
> already included), load it, and away you go.

And if the driver hangs, you unload and reload it. No need for reboot on 
that ;).

> Jim


-- 
Eero "Aero" Ahonen
    http://www.zbxt.net
       aer### [at] removethiszbxtnetinvalid


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 14:19:24
Message: <47d589bc$1@news.povray.org>
On Mon, 10 Mar 2008 13:05:52 -0500, Warp wrote:

> Jim Henderson <nos### [at] nospamcom> wrote:
>> The ATI drivers are, admittedly, a royal pain in the arse.
> 
>   The ATI Linux display driver has installed itself just fine for years.
> Its only problem is that it's buggy with several display cards
> (including mine), which renders it unusable with them.

The 8.40.4 version of fglrx is the last one that works for me on my 
Thinkpad.  Installation is a pain if you have a kernel update - the 
nVidia package by comparison is smart enough to recognise that it needs 
to be rebuilt on a reboot and it does that automatically.

All the newer ATI drivers just plain don't work on this machine.

Jim


Post a reply to this message

From: Orchid XP v7
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 14:22:46
Message: <47d58a86$1@news.povray.org>
Jim Henderson wrote:

> You say "tomayto", I say "tomahto".

Difference is, all the little bits and pieces that make up Windoze all 
come from one manufacturer, there's only one version of them, and 
they're all extensively tested together.

Linux, OTOH... You don't often find two machines set up exactly the same 
way. And all the individual parts are from different people, and there 
are a myriad of possible versions and implementations.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 14:47:58
Message: <47d5906e$1@news.povray.org>
On Mon, 10 Mar 2008 19:23:19 +0000, Orchid XP v7 wrote:

> Jim Henderson wrote:
> 
>> You say "tomayto", I say "tomahto".
> 
> Difference is, all the little bits and pieces that make up Windoze all
> come from one manufacturer, there's only one version of them, and
> they're all extensively tested together.
> 
> Linux, OTOH... You don't often find two machines set up exactly the same
> way. And all the individual parts are from different people, and there
> are a myriad of possible versions and implementations.

You need to look at how the software checkins and testing are handled for 
the kernel.

And you need to look up again the definition of "DLL Hell".

Not so different as you might think.

Jim


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 04:24:30
Message: <47d64fce@news.povray.org>
>> Difference is, all the little bits and pieces that make up Windoze all
>> come from one manufacturer, there's only one version of them, and
>> they're all extensively tested together.
>>
>> Linux, OTOH... You don't often find two machines set up exactly the same
>> way. And all the individual parts are from different people, and there
>> are a myriad of possible versions and implementations.
> 
> You need to look at how the software checkins and testing are handled for 
> the kernel.

Who said anything about the kernel? I'm talking about the entire Linux 
OS. (Most of which is actually GNU, if you want to be technical about it...)

> And you need to look up again the definition of "DLL Hell".
> 
> Not so different as you might think.

I have yet to experience "DLL Hell". I'm told it exists, and it's not 
fun, but I haven't seen it personally. (Don't ask me why...)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 10:12:56
Message: <47d6a178$1@news.povray.org>
On Tue, 11 Mar 2008 09:24:29 +0000, Invisible wrote:

>>> Difference is, all the little bits and pieces that make up Windoze all
>>> come from one manufacturer, there's only one version of them, and
>>> they're all extensively tested together.
>>>
>>> Linux, OTOH... You don't often find two machines set up exactly the
>>> same way. And all the individual parts are from different people, and
>>> there are a myriad of possible versions and implementations.
>> 
>> You need to look at how the software checkins and testing are handled
>> for the kernel.
> 
> Who said anything about the kernel? I'm talking about the entire Linux
> OS. (Most of which is actually GNU, if you want to be technical about
> it...)

So yes, be technical about it, then - I don't know of any Linux distro 
that uses "standard" tools that aren't GNU, be it awk, sed, perl, bash, 
etc.

>> And you need to look up again the definition of "DLL Hell".
>> 
>> Not so different as you might think.
> 
> I have yet to experience "DLL Hell". I'm told it exists, and it's not
> fun, but I haven't seen it personally. (Don't ask me why...)

You've been lucky.  Last company I worked for had many applications with 
DLLs in common but requiring different versions.  We had a team of 
software deployment engineers who did testing to ensure the software 
would all work together and work around the issues of needing multiple 
versions of the same DLL.

Jim


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 10:34:29
Message: <47d6a685$1@news.povray.org>
>> Who said anything about the kernel? I'm talking about the entire Linux
>> OS. (Most of which is actually GNU, if you want to be technical about
>> it...)
> 
> So yes, be technical about it, then - I don't know of any Linux distro 
> that uses "standard" tools that aren't GNU, be it awk, sed, perl, bash, 
> etc.

Except that Unix /= Linux. There's also BSD and Solaris and random stuff 
like that... and autoconf works with all of them.

"Windoze" is more or less one product line. Binaries work unmodified on 
most versions of it. (Assuming the features they use are there.) "Unix" 
is not one product. It's not even close to being one product. It's a 
vast stew of different products all bolted together in a giant mess.

>> I have yet to experience "DLL Hell". I'm told it exists, and it's not
>> fun, but I haven't seen it personally. (Don't ask me why...)
> 
> You've been lucky.

Let's hope it stays that way...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 10:42:34
Message: <47d6a86a$1@news.povray.org>
Invisible escribió:
>>> Who said anything about the kernel? I'm talking about the entire Linux
>>> OS. (Most of which is actually GNU, if you want to be technical about
>>> it...)
>>
>> So yes, be technical about it, then - I don't know of any Linux distro 
>> that uses "standard" tools that aren't GNU, be it awk, sed, perl, 
>> bash, etc.
> 
> Except that Unix /= Linux. There's also BSD and Solaris and random stuff 
> like that... and autoconf works with all of them.
> 
> "Windoze" is more or less one product line. Binaries work unmodified on 
> most versions of it. (Assuming the features they use are there.) "Unix" 
> is not one product. It's not even close to being one product. It's a 
> vast stew of different products all bolted together in a giant mess.

I'm not sure if it's possible to put a non-GNU userland (like BSD) along 
with a Linux kernel, but it's definitely possible to have GNU userland 
on many kernels, like BSD.

Heck, the "BSD Subsystem" package for my iPod was based in BSD (duh), I 
removed it and installed Telesphoreo (much better package of unix tools) 
and it's based on GNU tools. Kernel is Mach for ARM processor. I have 
yet to try autoconf stuff there :) (somebody is struggling to get a 
native compiler working)


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:08:24
Message: <47d6ca98@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> In other words, if you completely bypass the shell, it can be made easy 
>> to work. Otherwise you get things like "no such user John.tmp" when you 
>> try to delete "~John.tmp".
> 
>   Only if you write "~John.tmp" by hand instead of letting the shell do
> the proper expansion.

Or if you pass it through another program that also tries to do the 
expansion. I.e., if it goes thru the shell more than once.

>   Well, if "rm *" works (ie. there aren't too many files), you don't.
> If there are too many files, I suppose you'll have to use the 'find'
> trick.

Yep. Then it gets very slow, or very complicated.

>   If you do a "scp *" it won't ask the password for each one.

Again, I tend to work with tens of thousands of files at once.

>> , so you either have to use xargs (with the -0 
>> switch, which is why that's there!) or manage to tar them up somehow, 
>> which has the same problems.
> 
>   What's the problem with tarring them? "tar -cvf . files.tar"

If you want to select a subset of files to tar up, then it becomes very 
difficult.

> However, I haven't seen any problems with special characters so far.

Well, clearly we work on different kinds of things. And yes, shells have 
gotten way better lately, but if you wind up doing multiple passes 
through a shell (i.e., a shell script looping and calling another shell 
script) it gets messy.

>   The only valid point you have presented is the too-many-files argument,

See above. If you have a shell script to process something, it takes 
magic escaping.

Explain the "-0" argument to find and xargs if it isn't otherwise a problem?

>> Having the shell doing your expansion has caught me other times, too...
> 
>> % cat a b c >d
>> Can't create d: permission denied
>> % sudo !!
>> Can't create d: permission denied
> 
>> Of course, the real line was much longer, so a simple "su" meant 
>> retyping the line (or using copy-and-paste to retype it for you) instead 
>> of just !! or up-arrow. :-)
> 
>   What's wrong with getting the command from the command history with
> the up cursor, going to the beginning of the line with ctrl-a and then
> adding the "sudo" there?

Because it still doesn't work. SUDO doesn't kick in until after the 
output redirection is done, so "sudo echo xyz >pdq" doesn't overwrite pdq.

>   Still many shell scripts fail to use the basic "$@" for the correct
> expansion of all the parameters (and instead use $*, which is wrong).

That too. And it still doesn't work when there are too many files.  I'm 
not really sure why it's even limited, given I've got 16 gig of real 
memory and twice that of virtual memory. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:11:19
Message: <47d6cb47@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> (I work with big directories, and big files. Often I'll have a program 
>> that runs 3 hours, then takes half an hour to delete its input files. Or 
>> individual files that take 2 minutes of disk I/O to delete. Or empty 
>> directories that take several minutes to delete because they used to 
>> have six or seven million files in em.  And of course, the machine 
>> becomes completely unusable during any sort of operation like that.)
> 
>   Isn't that a clear sign that a re-design of your programs is in place?-)

Probably not. I don't know any other way of storing several weeks worth 
of CD-quality audio in a way that is easy to extract portions, then 
delete the beginning without affecting the end.

Now, if Linux supported the thing that NTFS supports where you can 
delete the beginning of a file, maybe I'd use that. But as it is, I have 
to chop the file up so I can delete parts of it.

Plus, of course, the device buffers on the audio device get upset if you 
tell it to try to accumulate a gig of audio data before handing it over 
to your software. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:11:59
Message: <47d6cb6f$1@news.povray.org>
Jim Henderson wrote:
> But if I wanted it to work all the time, I'd write it in C and be done 
> with it - then the shell doesn't come into play. :-)

Yah, as I said, when it gets messy, I use Tcl. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:12:30
Message: <47d6cb8e$1@news.povray.org>
Nicolas Alvarez wrote:
> Jim Henderson escribió:
>> But if I wanted it to work all the time, I'd write it in C and be done 
>> with it - then the shell doesn't come into play. :-)
> 
> Can filenames have null characters on them? :)

No. The only thing Linux (and most other unix) filesystems disallows is 
slash and NUL.

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:16:55
Message: <47d6cc97$1@news.povray.org>
Invisible wrote:
> The trouble with Windoze is that *everything* is one gigantic lump. (And 
> it's a very buggy, undocumented and unreliable lump at that.)

No, it's just a bunch of tightly-coupled pieces you have to be a 
programmer to get at. Instead of using files to pass around data, 
windows uses APIs. And it isn't especially undocumented. It just costs 
money to go to the classes that teach you the stuff properly, and there 
isn't source code available.

It's not like IIS is less documented than Apache, or the Windows 
graphics stuff is less documented than X-Windows.

> Why can't somebody build an OS with a *sane* level of granularity?? What 
> would be so hard about that?

Because one size doesn't fit all?

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:33:41
Message: <47d6d085$1@news.povray.org>
Jim Henderson wrote:
> chkdsk

It's actually not even chkdsk at boot time. It's autochk, which is a 
different program to do the same thing. And the recovery console has yet 
a different version. Why they felt the need to implement it three times 
I don't understand. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:38:59
Message: <47d6d1c3$1@news.povray.org>
On Tue, 11 Mar 2008 11:11:59 -0700, Darren New wrote:

> Jim Henderson wrote:
>> But if I wanted it to work all the time, I'd write it in C and be done
>> with it - then the shell doesn't come into play. :-)
> 
> Yah, as I said, when it gets messy, I use Tcl. :-)

Really the best option - remove the shell. :-)

Jim


Post a reply to this message

<<< Previous 50 Messages Goto Latest 50 Messages Next 50 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.