POV-Ray : Newsgroups : povray.off-topic : Context switching Server Time
4 Sep 2024 23:20:38 EDT (-0400)
  Context switching (Message 153 to 162 of 222)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Darren New
Subject: Re: Context switching
Date: 22 Apr 2010 15:54:17
Message: <4bd0a969$1@news.povray.org>
andrel wrote:
> Ah ok. And how do I do that? I'll find out next week after some deadlines.

http://articles.techrepublic.com.com/5100-10878_11-6163793.html

GIYF, once you have a basic idea of what the answer looks like. :-)

In particular, peek at Figure G.

If that doesn't help (and you might have to tell it to reindex stuff), then 
there's something out there somewhere that provides a "this is really a text 
file" interface for an arbitrary list of extensions.

http://www.bench3.com/2009/06/customize-search-feature-in-windows.html
explains that a bit more, showing you where you'll see it.  See if that 
helps. And again, remember that unless you wait for the rebuild of the 
index, it won't necessarily show up right away.

-- 
Darren New, San Diego CA, USA (PST)
   Linux: Now bringing the quality and usability of
   open source desktop apps to your personal electronics.


Post a reply to this message

From: Jim Henderson
Subject: Re: Context switching
Date: 22 Apr 2010 16:00:00
Message: <4bd0aac0$1@news.povray.org>
On Thu, 22 Apr 2010 09:12:03 +0100, Invisible wrote:

>>> I throught that grep is an overly-complicated way of searching for the
>>> location of a string within one particular file? (I usually just use
>>> my text editor's "search" function.)
>> 
>> Does your editor support regular expressions?   Most only support a
>> simple substring search.
> 
> Is there some advantage to supporting regular expressions?

Yes, because if you don't know the exact string you're looking for, you 
can specify a more general string that is likely to be found.

> I mean, I realise that hypothetically a regex can find things that a
> normal search can't. But in reality, when are you *ever* going to use
> that? What would it be useful for?

I use it several times a week myself, reasons include chat log files in 
my IM client where I might need to find a conversation I've had in the 
past about something.  I recently was trying to remember the name of an 
internal website, but I couldn't remember who I had talked to about it or 
the website name.  I was able to use grep to find what I needed in a 
matter of seconds without searching (checks - "find -type f | wc -l" - 
8694 chat log files across all the different IM protocols I use).

Doing that by hand would be very tedious and would take days, and even 
then, I might not find what I was looking for.

>> As Warp said, you also can traverse a directory structure with grep to
>> find the file(s) that have the string in them.
> 
> I didn't know that. I thought grep was just for searching within one
> file.

If I tell you the 'net is wonderful resource for information, what will 
you say in response?  ;-)

Jim


Post a reply to this message

From: Orchid XP v8
Subject: Re: Context switching
Date: 22 Apr 2010 16:01:27
Message: <4bd0ab17$1@news.povray.org>
Darren New wrote:
> Orchid XP v8 wrote:
>> With an extension? Or natively? I don't recall seeing anything about 
>> it in the docs. (I did find DDE, however. And registry access.)
> 
> That said, it's in ActiveState's teapot, so in a sense it's "native" and 
> "comes with Tcl".

OK, fair enough. I just didn't see anything about it while reading the 
FreeWrap documentation.

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


Post a reply to this message

From: Jim Henderson
Subject: Re: Context switching
Date: 22 Apr 2010 16:02:56
Message: <4bd0ab70$1@news.povray.org>
On Thu, 22 Apr 2010 09:06:38 +0100, Invisible wrote:

>>> Now, in fairness,
>>> as far as I can tell Windoze can't do this *at all*. But it was pretty
>>> hard to do from Linux either.
>> 
>> Windows = Internet Connection Sharing Linux = at least with openSUSE
>> 11.2, YaST -> Firewall -> Masquerading. Two NICs need to be configured
>> and running.  You can even set port forwarding there.
> 
> Interesting. I thought ICS only works for dialup modems?

Apparently not.  Dunno the current state, as I don't use Windows...

Jim


Post a reply to this message

From: Orchid XP v8
Subject: Re: Context switching
Date: 22 Apr 2010 16:08:44
Message: <4bd0accc$1@news.povray.org>
>>> Nonsense. Every programming language and every scripting language 
>>> supports COM that I've seen.
>>
>> I've yet to find a language that can do it.
> 
> I've named half a dozen. What languages do you use?

I just named a bunch of 'em. ;-)

>>> Didn't you tell me Haskell has a COM interface?
>>
>> Yes, but it doesn't compile on Windows. 
> 
> Are you sure it's "it doesn't compile" and not "I don't know how to 
> compile it"?

Well, I asked about it and got stoney silence. From past experience, the 
solution probably begins with "install a Unix emulator..."

>>> I know Tcl does.
>>
>> With an extension? Or natively? I don't recall seeing anything about 
>> it in the docs. (I did find DDE, however. And registry access.)
> 
> http://www.vex.net/~cthuang/tcom/
> 
> Extensions *are* native. Tcl is a language for writing extensions in.

I have a vague recollection of seeing some Tcl extension that did 
something I wanted, and being unable to actually make it work. I won't 
beat on about that too much though since I no longer remember enough 
details.

>>> What language have you used on Windows that does *not* do COM?
>>
>> Java, Smalltalk, Eiffel, JavaScript, Tcl, Haskell, POV-Ray (well, 
>> duh!) As far as I know, none of them support it.
> 
> In other words, you didn't take the time to google
> java "com interface"
> smalltalk "com interface"
> eiffel "com interface"
> tcl "com interface"
> before you said you have no languages that support it.

Ah, so they added it to Java? (I'm not sure I even want to know how they 
made that platform-neutral...) I haven't used Java for a while, but when 
last I did it was legendary that the APIs undergo radical changes with 
every minor point release.

For Smalltalk, I'm going to put my foot down and assert that the 
implementation that *I* have doesn't support COM.

And Eiffel... yeah, well, I don't use Eiffel any more. And Tcl we've 
talked about elsewhere.

> Javascript per se doesn't, but jscript does, which is pretty much the 
> same thing with a different name.

I'm clearly going to have to investigate this one... It might actually 
be useful.

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


Post a reply to this message

From: Gilles Tran
Subject: Re: Context switching
Date: 22 Apr 2010 16:23:18
Message: <4bd0b036@news.povray.org>

discussion : 4BD### [at] gmailcom...
> Matlab files with extension .m in XP
> no luck but your google skills are way beyond mine anyway.
>
> Do you have an idea why it would not find those or look into them anyway? 
> Because if I had a theory about that I could try to find a cure.

Darren gave you the answer, but here's the magic google search:
http://www.google.com/search?q=xp+search+matlab+files
The right answer is the first one.
I've largely stopped wondering about oddities in Windows (or Office or any 
software with a big following). I just google for answers: it's faster and 
usually very smart people have found workarounds.

G.


Post a reply to this message

From: Stephen
Subject: Re: Context switching
Date: 22 Apr 2010 16:28:53
Message: <4bd0b185$1@news.povray.org>
On 22/04/2010 9:02 PM, Jim Henderson wrote:

> Apparently not.  Dunno the current state, as I don't use Windows...
>
> Jim

Your lighting bill must be huge ;-)

-- 

Best Regards,
	Stephen


Post a reply to this message

From: Stephen
Subject: Re: Context switching
Date: 22 Apr 2010 16:31:13
Message: <4bd0b211$1@news.povray.org>
On 22/04/2010 8:49 PM, Neeum Zawan wrote:
> 	Somehow I've lost the point of this whole discussion. Who said you have
> to use just Windows Explorer?

The god of capitalism? Hmm! :-)

-- 

Best Regards,
	Stephen


Post a reply to this message

From: andrel
Subject: Re: Context switching
Date: 22 Apr 2010 16:31:36
Message: <4BD0B225.20700@gmail.com>
On 22-4-2010 21:54, Darren New wrote:
> andrel wrote:
>> Ah ok. And how do I do that? I'll find out next week after some 
>> deadlines.
> 
> http://articles.techrepublic.com.com/5100-10878_11-6163793.html
> 
> GIYF, once you have a basic idea of what the answer looks like. :-)
> 
> In particular, peek at Figure G.
> 
> If that doesn't help (and you might have to tell it to reindex stuff), 
> then there's something out there somewhere that provides a "this is 
> really a text file" interface for an arbitrary list of extensions.
> 
> http://www.bench3.com/2009/06/customize-search-feature-in-windows.html
> explains that a bit more, showing you where you'll see it.  See if that 
> helps. And again, remember that unless you wait for the rebuild of the 
> index, it won't necessarily show up right away.
> 
Although this is for vista, I get the idea.

Basically what happens is that while I still think a file is a sequence 
of bytes my OS suddenly has started thinking about the contents and 
meaning of my files. I wasn't expecting that, so I was dumbfounded that 
the utilities that used to work suddenly didn't behave as before. They 
probably have advertised this increase in user friendliness extensively 
and I have not paid attention. Conclusion: it is all my fault.

BTW is there a switch to tell the system that it can keep the PnP, the 
USB support and the filesystems but otherwise stop trying to 'help' me 
and behave like a simple windows 95 machine?


Post a reply to this message

From: andrel
Subject: Re: Context switching
Date: 22 Apr 2010 16:33:25
Message: <4BD0B292.4030902@gmail.com>
On 22-4-2010 22:23, Gilles Tran wrote:
> 

> discussion : 4BD### [at] gmailcom...
>> Matlab files with extension .m in XP
>> no luck but your google skills are way beyond mine anyway.
>>
>> Do you have an idea why it would not find those or look into them 
>> anyway? Because if I had a theory about that I could try to find a cure.
> 
> Darren gave you the answer, but here's the magic google search:
> http://www.google.com/search?q=xp+search+matlab+files

when you do it it always sounds so simple :(


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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