author: Steve Summit

subject: Re: Why aren't my floats passing as doubles?

text:
In article <mdrj_k=[email]> [email] (Larry Blair) writes:

Why, yes: "Sun's ANSI C Compiler."  As Kenneth Herron has already
pointed out, the ANSI C Standard explicitly allows implementations
to pass floats as floats (as long as "new style" function
declarations and definitions are in use), obsoleting the pre-ANSI
rule that all floats were promoted to double.

Why are the floats only being passed/accepted as floats some of
the time, and not all of the time?  Perhaps some modules were
compiled with a non-ANSI compiler (such as Sun's earlier ones*).
Perhaps some modules are coming out of libraries which were so
compiled, perhaps deliberately (to allow the use of Sun's
non-ANSI compiler).  Perhaps (this is the most likely cause) some
of the functions-that-are-supposed-to-accept-float are defined
using old-style syntax (in which case the compiler rewrites the
parameter declarations to say that they accept doubles), and some
using new-style (in which case the compiler leaves "narrow"
parameters alone).  Or, perhaps some modules, which include calls
to the functions-that-are-supposed-to-accept-float, do not have
(new-style) function prototypes in scope: in this case, the
behavior defaults to "old style," and the arguments (whether
float or double) would be promoted to double.

For now, I recommend not declaring any function formal arguments
as float, short int, or char, especially when portability to
pre-ANSI compilers is desired, or when it may be necessary to
link together heterogeneous object files (some compiled with
pre-ANSI compilers and some with ANSI).  It's just too easy to
have these argument type incompatibility problems, especially
since the ANSI new-style vs. old-style rules are (necessarily)
complicated.  (My recommendation is "especially when it may be
necessary" rather than "only when it may be necessary" because
even if you don't think it's necessary to allow interim and/or
simultaneous use of pre-ANSI compilers, accidental use by your
colleagues of the wrong compiler and/or accidental omission of
prototypes in certain modules is likely to have the analogous
effect.)

[Followups to comp.lang.c, unless they have to do only with
something Sun-specific.]

					Steve Summit
					[email]

* My references here to "Sun's ANSI compiler" and "Sun's earlier
compilers" are based on my imperfect memories of descriptions
I've read in passing about the Sun C compiler situation, and may
not accurately reflect reality.


author: Kenneth Herron

text:
[email] (Larry Blair) writes:

If you use new-style function declarations (ie, prototypes), then
a parameter declared as a float will actually be passed as a float.
If you want a double, declare the function to take a double.  The same
goes for char/short/int/long, and it also applies to function return
values.


author: Ram Meenakshisundaram

subject: Inmos & the transputer - the early years

text:
Hi,

Thanks to Owen Ransen, I got a few pictures from the early years of the
transputer.  This includes the S43 prototype machine (1st transputer
silicon).  Check it out at:

http://members.nbci.com/transputer/inmos.htm

Cheers,

Ram


subject: Re: Inmos & the transputer - the early years

text:
Ram Meenakshisundaram wrote:

Anyone else have pictures, etc they would like to share???

Ram


author: Uwe Bonnes

text:
Ram Meenakshisundaram <[email]> wrote:
: Hi,

: Thanks to Owen Ransen, I got a few pictures from the early years of the
: transputer.  This includes the S43 prototype machine (1st transputer
: silicon).  Check it out at:

: http://members.nbci.com/transputer/inmos.htm

The pictures looks like a lot of fun involved...


author: Stanislaw Stepien

subject: 2d vector image from 3d data

text:
hi

i have 3d object defined as points and edges (no faces)

i need 3d -> 2d projection algorithm that would produce
2d vector image with visible edges only

any ideas ?

regards, stan


author: Hans-Bernhard Broeker

subject: Re: 2d vector image from 3d data

text:
Stanislaw Stepien <[email]> wrote:

Please don't mix up "projection", and the determination of visible
scene elements this way.  These are two independent tasks.

You definitely will have to construct faces, and optionally volumes
out your given input to be able to do this.  Because nothing at all
can be invisible of the data you have --- a wire is too thin for
anything else to become invisible because it's behind it.  Only an
object that is at least 2-dimensional in topology, i.e. a surface, can
hide anything else behind it.


author: David Turner

subject: Re: 2d vector image from 3d data

text:
Hi there

Stanislaw Stepien wrote:

Sutherland, E., Sproull, R. and Schumacker, R. "A Characterisation of
Ten Hidden-Surface Algorithms", ACM Computing Surveys, Vol. 6, No. 1,
March 1974, pp. 1-55.

semi :^)

Hope this helps


author: Byron Collins

subject: Geos-Talk E-List

text:
Hi All,
Sorry for this announcement:

First the bad news-
What has being known as the NewDeal E-List
at Yahoo! Groups ([email])
has being remove.

Some good news-
Everyone who truly wish to continue discussing
about PC/GEOS (New Deal Office, Geoworks Ensemble, etc..)
can subscribe to my "NEW" E-List call Geos-Talk.
The same rules will apply to "All" members when posting
for the first time.

Regards,

Byron Collins
List Administrator, Geos-Talk E-list
http://groups.yahoo.com/geos-talk/


subject: Re: Geos-Talk E-List

text:
Hi All,

This is an "Open Invitation" to
join the NEW Geos-Talk E-List at Yahoo! Groups.
This list is the replacement for the NewDeal E-List.

For more information: http://home.clarksville.com/~bcollins/GeosTalk.htm

Post message: [email]
Subscribe:  [email]
Unsubscribe:  [email]
List owner:  [email]

Regards,

Byron Collins
List Administrator, Geos-Talk E-list
http://groups.yahoo.com/geos-talk/


author: John Howard

subject: Re: Geos-Talk E-List

text:
Hi Byron,

The URL in your sig leads to a dead link.  It should be:

http://groups.yahoo.com/group/geos-talk

John ;-)

Byron Collins wrote:


author: Mark p

subject: Re: Geos-Talk E-List

text:
[email] (Byron Collins) wrote in message news:<[email]>...

Cool

Can't find it on yahoo egroups yet though :(.


author: NDRepMark

subject: Re: Geos-Talk E-List

text:
In article <[email]>,
[email] (Byron Collins) writes:

LOL,

I just assumed that yet another Yahoo group was broken. Probably a good thing
to create a new group as the AFA is trying to get Yahoo to shut down any group
with 'nude' in its name, and I doubt they can spell that well.

Adios 'NewD'eal, hello Geos-Talk

-MarkR
[email]  -  not a New Deal employee
Join me for GEOS chats Mondays 9-10PM EST
IRC server: irc.breadbox.com   room: #TheBreadboxChannel


subject: Re: Geos-Talk E-List

text:
[email] (Byron Collins) wrote in message news:<[email]>...

Hi All,
If you are having problems joining the new list;
you can also e-mail me privately for "direct" membership.

Regards,

Byron Collins
EMAIL: [email]
List Administrator, Geos-Talk E-list
http://groups.yahoo.com/group/geos-talk


author: Terence Hicks

subject: Re: Geos-Talk E-List

text:
It's nice to see that Bob is just as civil here as he was on the other
NewDeal board.

"Bob B." <[email]> wrote in message
news:lHz48.5774$[email]...


subject: Re: Geos-Talk E-List

text:
[email] (Mark p) wrote in message news:<[email]>...
CUT

Hi,
I should start showing up here:

http://dir.groups.yahoo.com/dir/Computers___Internet/Software/Operating_Systems/DOS

You got to give the Yahoo! Groups folks a couple of days
to update their site :).
It is my hopes that "Geos-Talk" will be King of the Hill
over in the DOS area like the NewDeal list were.

Regards,

Byron Collins
List Administrator, Geos-Talk E-list


subject: Re: Geos-Talk E-List

text:
[email] (Byron Collins) wrote in message news:<[email]>...

Hi All,
The Yahoo! Groups directory is updated now.
Geos-Talk is listed as number 8, so far.

Regards,

Byron Collins
List Administrator, Geos-Talk E-list


author: Bob B.

subject: Re: Geos-Talk E-List

text:
Yeah sure. How silly of a statement. Oh, and by the way, it should be, was,
not were. Your grammar is plain awful.


author: Bill Vermillion

subject: Re: Sudden FreeBSD Death Syndrome, SFDS

text:
In article <[email]>,
NWA  <[email]> wrote:

[and you could have just as easily sent plain text instead of MIME
encoding the other output]

Maybe it was Mozilla.  In the past month or so I've download at
least a dozen 600MB+ files with never a problem - running on 4.4
Today I had the first actual crash of a FreeBSD [ that was not
induced by something silly - that being me ] and that was a remoted
mail server.  It was going to be swapped on New Years Day - because
the will be the lightest day.  It had been running 333 days when I
looked this AM, and later I found I had been disconnected and
logged back in and found it had rebooted itself.  That's the first
spontaneous reboot of a system without a user at the keyboard I've
had in about 5 years. [BSD world that is - other OS just do it when
ever a buttefly flaps it's wings somewhere around the world].

User programs won't let that happen.  I'm suspecting it may be an
over-heating problem because of a lot of CPU useage during the DVD
decoding.  [Can you run top to see the percentage].  It could also
be power failure or RAM starting to fail.  Heavy useage will heat
things up and that will most often cause a failure.

Never had it happen - except today - and the 333 days doesn't fit
the S for sudden paradigm :-)

Bill


author: Michael Scheidell

subject: Re: Sudden FreeBSD Death Syndrome, SFDS

text:
"Bill Vermillion" <[email]> wrote in message news:[email]...
<[email]>,

Wrong.
userland programs can and DO cause a panic/reboot on FREEBSD 4.3, 4.4, and
4.4 STABLE.
Been documented since December 11th:

http://www.freebsd.org/cgi/query-pr.cgi?pr=32681

While I do agree that FBSD can and does exercise the hardware to its max,
thus pointing out any borderline problems with hardware, lets not forget
that no software (even FBSD) is 1000% bug free.

problem is in
/sys/kern/vfs_syscalls:

         if ((error = getvnode(td->td_proc->p_fd, SCARG(uap, fd), &fp)) !=
0)
	                return (error);
	        mp = ((struct vnode *)fp->f_data)->v_mount;
:	        sp = &mp->mnt_stat;


author: Matt Curtin

subject: Re: Sudden FreeBSD Death Syndrome, SFDS

text:
[email] (Bill Vermillion) writes:

Even if so, it wasn't doing anything more than tickling a bug in the
OS (or the hardware) that might not otherwise have been discovered.
Perhaps instead of calling Mozilla a browser, we could call it a
stress-tester. :-)


subject: Re: Sudden FreeBSD Death Syndrome, SFDS

text:
In article <[email]>,
Matt Curtin  <[email]> wrote:

Well if it was hardware it was not tickling a bug.  It is hardware
that is not really reliable, or it is overheating and failing.
Everything has limits.  Exceed the limits and it fails.  Failures
such as this are often because of heating - fan on CPU goes bad,
fan in PS fails, or in some cases really poor case design.  FreeBSD
does a lot more things all the time than an MS system for instance,
and thus will cause things to work harder.   Good hardware will
take anything BSD can throw at it - as a broken ap will almost
always only crash the ap.  Of course if the ap is running SUID
root then it could do something egregious.  Unix systems are
notoriously rugged - that's why I moved to them in 1983 after
becomoing so frustrated with the poor performance of PD-DOS 2.0 in
comparision to my earler systems.

The vast majority of crashes on my systems or systems I maintained
for clients was hardware related after the late 1980s.  Before that
things were a bit twitchy.

never looked back


author: Josh Berkus

subject: Quick help with CVS?

text:
Folks,

I can't seem to find the CVS command for telling a single file to revert to
the version in the repository.  Help?


author: Peter Eisentraut

subject: Re: Quick help with CVS?

text:
Josh Berkus writes:

It would normally be cvs update -A filename, but the postgresql.org CVS
server doesn't support this.  So I suggest 'rm && cvs update'.


author: Roberto Mello

subject: Re: Quick help with CVS?

text:
On Wed, Oct 22, 2003 at 02:49:27PM -0700, Josh Berkus wrote:

If you don't care about yor modifications, you can just rm the file then
"cvs update -Pd" to re-add it from the repository.

There are other ways too. See the CVS red book (available online).

-Roberto


author: "Marc G. Fournier"

subject: Re: Quick help with CVS?

text:
On Thu, 23 Oct 2003, Peter Eisentraut wrote:

Huh?  Works for me:

%cvs update -rREL7_4_BETA4 HISTORY
U HISTORY
%cvs status HISTORY
===================================================================
File: HISTORY           Status: Up-to-date

   Working revision:    1.219   Thu Oct 23 00:16:19 2003
   Repository revision: 1.219   /cvsroot/pgsql-server/HISTORY,v
   Sticky Tag:          REL7_4_BETA4 (revision: 1.219)
   Sticky Date:         (none)
   Sticky Options:      (none)

%cvs update -A HISTORY
U HISTORY
%cvs status HISTORY
===================================================================
File: HISTORY           Status: Up-to-date

   Working revision:    1.222   Thu Oct 23 00:16:29 2003
   Repository revision: 1.222   /cvsroot/pgsql-server/HISTORY,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


author: Gav

subject: Delegates...?

text:
I am trying to write an application using the "Presenter First"
methodology that I use when coding in C# but am a bit unsure how to get
round the fact that Java does not have delegates.

In C# I would create a Model class which has the actual application
functions in it, a view class which is a dumb GUI and then have a
presenter class which binds the two together. The presenters constructor
takes references to the model and view then calls methods in the model and
view classes to point a delegate to the method in the presenter. So
basically the presenter knows about the model and view but the model and
view simply fire events which call methods in the presenter.

If anybody could enlighten me here it would be great, its years since I've
done any Java and I'm just trying to get back into it. I've included some
example C# code which probably explains better what I'm trying to do.

thanks

Gav

public delegate void   EventDelegate();

public class Model
{
	private event EventDelegate Test;

	public Model()
	{
	}

	pivate void CallTest()
	{
		if ( this.Test != null )
			this.Test();
	}

	public void SubscribeTestEvent(EventDelegate listener)
	{
		this.Test += listener;
	}
}

public class View
{
	private event EventDelegate Test2;

	public View()
	{
	}

	private void CallTest2()
	{
		if ( this.Test2 != null )
			this.Test2();
	}

	public void SubscribeTest2Event(EventDelegate listener)
	{
		this.Test2 += listener;
	}

}

public class Presenter
{
	private Model myModel;
	private View  myView;

	public Presenter(Model pModel, View pView)
	{
		this.myModel = pModel;
		this.myView  = pView;

		this.myModel.SubscribeTestEvent(TestMethod);
		this.myView.SubscribeTest2Event(TestMethod2);
	}

	private void TestMethod()
	{
		// Do Something
	}

	private void TestMethod2()
	{
		// Do Something
	}
}


author: Mark Space

subject: Re: Delegates...?

text:
Gav wrote:

I think I see what you are trying to do here, even though I'm not
familiar with C#.  Here is a simple example which does what you want (I
think).  I skipped trying to implement a list of listeners because I
wanted to emphasize the "delegate" concept.  Note how I use the
interface called "Delegate" to make a method than can be called by the
Presenter.  The Presenter knows this because it is passed objects of
type "Delegate".

package presenterfirst;

public class Main {
     public static void main(String[] args) {
         Delegate m = new Model();
         Delegate v = new View();
         Presenter p = new Presenter( m, v);
         p.testMethod();
         p.testMethod2();
     }
}

interface Delegate {
     void doIt();
}

class Model implements Delegate{
     private int state;
     public void doIt() {
         System.out.println("Do something with state here");
     }
}

class View implements Delegate {
     public void doIt() {
         System.out.println("Do something with the view here");
     }
}

class Presenter {
     private Delegate model;
     private Delegate view;
     public Presenter(Delegate model, Delegate view) {
         this.model = model;
         this.view = view;
     }
     public void testMethod(){
         model.doIt();
     }
     public void testMethod2() {
         view.doIt();
     }
}

But in real Java programs, you should try to use the existing APIs.

For example, most usable Swing components support a method
"addActionListener" which binds a listener to the component.  The usual
method is to declare the listener as an anonymous class which takes the
place of your Delegate.  You can use removeActionListener to remove a
previously added listener, and there are methods to manipulate the
listeners in other ways.

This is a very simple example.  The class I make, MyFrame, is completely
self contained.  It gets created and it goes all by itself.  It therefor
contains it's own model and delegate/presenter.  This is ok for very
small, simple GUI components.

One thing: Swing components must be created with the pattern I use in
"createGui()".  They are prone to deadlock if not.  It's a simple rule,
see the tutorials.

Something like this:

package javamvcexample;

/**
  * MVC Example
  */
public class MvcEx {
     public static void main(String[] args) {
         createGui();
     }
     private static void createGui() {
         java.awt.EventQueue.invokeLater( new Runnable() {
             public void run() {
                 new MyFrame("MVC Example").setVisible( true );
             }
         } );
     }
}

class MyFrame extends javax.swing.JFrame {
     private javax.swing.JButton myButton;
     private int count;
     public MyFrame( String title ) {
         super( title );
         myButton = new javax.swing.JButton("Click Me");
         setDefaultCloseOperation(
           javax.swing.WindowConstants.EXIT_ON_CLOSE);
         myButton.addActionListener(
              new java.awt.event.ActionListener()
         {
             public void actionPerformed(
               java.awt.event.ActionEvent e) {
                 count++;
                 System.out.println("The count is: " + count );
             }
         });
         this.add( myButton );
         this.pack();
         this.setLocationRelativeTo( null );
     }
}

Ok I don't pretend to really understand your Presenter First model.  But
if I had to translate the example above into something like what you
showed, I'd do this:

package javamvcexample2;

import java.awt.event.ActionEvent;

/**
  * MVC Example2
  */
public class MvcEx {
     public static void main(String[] args) {
         createGui();
     }
     private static void createGui() {
         java.awt.EventQueue.invokeLater( new Runnable() {
             public void run() {
                 MyFrame frame = new MyFrame("MVC Example");
                 frame.setText( "Click Me!");
                 frame.setLocationRelativeTo( null );
                 frame.pack();
                 MyModel model = new MyModel();
                 MyPresenter presenter =
                         new MyPresenter( frame, model );
                 frame.setVisible( true );
             }
         } );
     }
}

interface SimplePresenterView {
     void setActionListener(
             java.awt.event.ActionListener act );
}

class MyFrame extends javax.swing.JFrame
         implements SimplePresenterView {
     private javax.swing.JButton myButton;
     public MyFrame( String title ) {
         super( title );
         myButton = new javax.swing.JButton();

         setDefaultCloseOperation(
           javax.swing.WindowConstants.EXIT_ON_CLOSE);
         this.add( myButton );
     }
     public void setActionListener(
             java.awt.event.ActionListener act ) {
         myButton.addActionListener( act );
     }
     void setText( String t ) {
         myButton.setText(t);
     }
}

interface SimplePresenterModel {
     public void doIt();
}

class MyModel implements SimplePresenterModel {
     private int count;
     public void doIt() {
         count++;
         System.out.println("The count is: " + count);
     }
}

class MyPresenter {
     private SimplePresenterView view;
     private final SimplePresenterModel model;
     public MyPresenter(SimplePresenterView view,
             final SimplePresenterModel model) {
         this.view = view;
         this.model = model;
         this.view.setActionListener(
           new java.awt.event.ActionListener() {
             public void actionPerformed(ActionEvent e) {
                 model.doIt();
             }
         });
     }
}

Now the View is totally dumb.  It has no idea where it's methods will
go.  The Model does the same thing as before:  it keeps count of the
number of clicks on the button and prints them out to the console.

There's a few hokey things about MyPresenter.  I didn't like having to
use the passed parameter model instead of the instance variable, but it
saved me save me a few lines and both the passed parameter and the
instance variable are final, so it should be ok.  Keep an eye on that
for your own programs though.

MyFrame implements SimplePresenterView, so the presenter can act on it
and set a listener.  MyModel implements SimplePresenterModel, again so
the Presenter has a doIt method to use in the listener.  This Presenter
can bind any two classes that implement these interfaces.  A more
sophisticated Presenter might need to know how to bind a view that
requires more than one listener to the appropriate models.

I hope I didn't booger up anything too badly in the examples above.
Questions? Ask!


author: Roedy Green

subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 11:37:15 GMT,
[email](Gav) wrote, quoted or indirectly
quoted someone who said :

Java does to have function pointers, but it does have delegates. See
http://mindprod.com/jgloss/delegate.html
http://mindprod.com/jgloss/callback.html


author: Peter Duniho

subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 03:37:15 -0800, Gav
<[email]> wrote:

I see that Lew has posted a link to a good example of the human capacity
for rationalization.  Buried in that article is actually an example of how
a behavior similar to delegates in C# can be implemented in Java.
Unfortunately Lew didn't bother to point out where the useful information
was amongst all that chaff.

Anyway, basically Java doesn't have delegates or anything like that.
Instead, you can use interfaces to accomplish similar behavior.  I don't
really know that this is the _best_ way, but it is how I've been dealing
with the lack of delegate types, and the article Lew posted appears to
suggest that's in fact how the Java designers expect you deal with it.

So instead of declaring a delegate type, you declare an interface that
includes a method representing the signature you want to call back.  Then
you implement the interface (in your main class, in an inner/nested class
that you can instantiate as needed, or using an anonymous inner class) and
provide an instance of that implementation to whatever needs it.

In that way, your code might become something like this (quoting your
original code, adding replacement lines as necessary...I think this is a
clear way to represent the changes, but if not please don't hesitate to
ask for clarification; also, see notes at the end):

public interface EventDelegate
{
     public void Execute();
}

     private ArrayList<EventDelegate> Test = new ArrayList<EventDelegate>();

     for (EventDelegate delegate : this.Test)
     {
         delegate.Execute();
     }

     this.Test.add(listener);

     private ArrayList<EventDelegate> Test2 = new
ArrayList<EventDelegate>();

     for (EventDelegate delegate : Test2)
     {
         delegate.Execute();
     }

     this.Test.add(listener);

     this.myModel.SubscribeTestEvent(new EventDelegate() { public void
Execute() { TestMethod(); } });

     this.myView.SubscribeTest2Event(new EventDelegate() { public void
Execute() { TestMethod2(); } });

In the above, you've provided no facility in your C# for unsubscribing a
delegate.  In practice, the event would normally be public and you'd
subscribe or unsubscribe directly, rather than going through a method.  If
you wanted to support similar functionality in Java, obviously you'd need
an "unsubscribe" method, in which you'd use "remove()" on the
ArrayList<EventDelegate> member to remove the subscribed instance.

Of course, unlike in C# where you can easily reference the delegate method
to be removed simply by naming the method again, in Java you'd need to
save the instance you created when subscribing in the first place, so that
you can remove it later (actually, there's probably a way to use an
abstract class instead of an interface, and override equals() in the class
to match instances as long as they are effectively the same so that you
can call remove() with a new instance and still have it do the right
thing, but that seems like an awful lot of trouble to me :) ).

There are some Java conventions you might want to follow, such as naming
your interface "XXXListener", and naming the add/remove methods for the
list of listeners "addXXXListener" and "removeXXXListener".

Also note that the above is specifically designed to replicate the
multicast behavior of C# delegates, by using an ArrayList<EventDelegate>
to store your subscribers.  If you don't need that(e.g. for some reason
you can guarantee that you'll only ever subscribe one delegate at a time),
you could just store a single instance of your delegate type rather than
an ArrayList of them.

Pete


author: Mike Schilling

subject: Re: Delegates...?

text:
Gav wrote:

In general, one uses inner classes (often anonymous inner classes) in
Java to implement callbacks that would be implemented via delegates in
C#.  I won't even try to explain here how that's done, but you might
look up those terms in your favorite Java reference.


subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 17:54:58 -0800, Mark Space <[email]>
wrote:

For what it's worth, I think you don't see what he's trying to do there.

Your code puts the interface implementor into the Model and View classes,
used by the Presenter class.  But in the OP's code, the implementor of the
interface is the Presenter class, with two different implementations, each
used by the Model and View classes, respectively.

In other words, your example is backwards as compared to what the OP was
asking.

I don't think there's anything wrong with what you wrote in your reply per
se.  Except that I don't think it answers the question that was asked.  :)

I suppose ultimately the OP can clarify or elaborate.  But I am reasonably
familiar with C# and so I believe that my observations about the original
post and your reply are correct.

Pete


subject: Re: Delegates...?

text:
By the way, I just ran across something in the Java docs that I think
would be useful here.  In my reply, I posted a specific interface
declaration.  However, I just noticed that there's a generic interface
that is probably preferable to use here.  In particular:

On Thu, 21 Feb 2008 10:45:09 -0800, Peter Duniho
<[email]> wrote:

In C#, as with the Func<T>, Action<T>, and Action delegate types, Java has
interfaces, one generic and one not (because it doesn't need to be), that
are useful here.

The generic interface is Callable<V>, defined as having a single method
that returns the type V.  So instead of declaring an explicit
delegate-like interface, one could use the Callable<V> interface for
methods that return a value.

In looking at that interface, I realized that the interface I already know
about for other reasons would serve exactly the same purpose that my
EventDelegate type serves.  That is, the Runnable interface, an interface
with a single method that takes no parameters and returns void.  If it
seems okay to call a method named "run()" in the code at the appropriate
point, then Runnable would work just as well as the interface I suggested
earlier.

I realize this is a relatively minor point, but I think it's a good idea
to use the framework-provided types where appropriate.  And they
definitely seem appropriate here.

Pete


author: Lew

subject: Re: Delegates...?

text:
Peter Duniho wrote:

Maybe because I found the entire article useful.

I see you have posted a good example of the human capacity for dismissing
someone's point (in this case, Sun's) without having to provide a rationale.
Simply labeling the article "a good example of the human capacity for
rationalization" doesn't invalidate anything the article has to say.

I suggest that people read the article at
<http://java.sun.com/docs/white/delegates.html>
for themselves, and then read up on C# delegates and think about the issues
for themselves.

I'm not saying I agree with Sun's reasoning, but it's clear from it that they
exercised the human capacity for rational thinking before deciding whether to
include delegates in the Java language.


subject: Re: Delegates...?

text:
Lew wrote:

Shorter Sun: We thought about introducing method pointers, but since
we're considering suing Microsoft for doing just that, we changed our
minds.


author: Gavin Metcalfe

subject: Re: Delegates...?

text:
Correct that example is backwards to what I am trying to do. The presenter
has references to the View and the Model and calls methods that way. The
View and Model on the other hand call the delegate which is like a
function pointer to the methods in the presenter.

See this document for a more in depth explanation of "Presenter First".

http://www.atomicobject.com/files/PresenterFirstAgile2006.pdf

Gav


subject: Re: Delegates...?

text:
Peter Duniho wrote:

I think the OP was trying to show test methods (ie. unit test harness).
  I showed a production example.  It would be trivial to substitute an
instance method in Presenter for doIt() in the interface.

The other bit in the OP's code I think is a call-back that would be
implemented in the view (which I did not show).  Again, the OP is
showing a unit test.  Same deal, just use a different method call.

I could be wrong of course, but I think you're all wet.


subject: Re: Delegates...?

text:
Peter Duniho wrote:

Sorry but this is poor advice.  Don't use Callable or Runnable.  Use
java.awt.event.ActionListener.  You'll end up tying yourself in knots
otherwise.

Callable and Runnable aren't general purpose delegates.  They are highly
specific and should only be used when they are needed.  For GUI work,
you won't need them very often.  Use the classes in javax.swing and
java.awt.


author: Arne Vajhøj

subject: Re: Delegates...?

text:
Lew wrote:

I don't think their arguments are very valid.

Delegates is a nice feature in C# and does not seem to have
any side effect when we look at it from the practical perspective.

The *only* valid argument I can see against delegates is the
size of the language: more languages features does not make a
language better - just ensure it has the same future as PL/I and Ada.

Unfortunately that opinion is not in favor with either the
Java or the C# masters.

Arne


subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 16:54:53 -0800, Lew <[email]> wrote:

But was it the most useful way to answer the OP's question?  I don't
believe so.

My intent wasn't to invalidate the article.  It was to answer the OP's
question.  You are focusing on a single sentence out of my entire post.
Even within the same paragraph in which you found that sentence, you'll
find that my primary point is not at all about whether I agree with the
article, but rather as to whether the article was an effective way to
answer the OP's question.

The article is interesting, at least inasmuch as it provides insight
behind why there's no delegate/function pointer type in Java.  But posting
a link to that article is a remarkably indirect way to answer the actual
question asked.

Not bad advice at all.  But it's not an effective way to answer the
original question.  You'll note that the OP never asked why Java doesn't
have a delegate type.  He asked how to accomplish the same thing he would
have in C# using a delegate type.

Rationalization requires rational thinking.  That doesn't mean it's
necessarily the way to arrive at the correct conclusion.

More important in this context though, I think the point of a reply to the
original question should be to answer that question, in as direct and
useful a way as possible.  Regardless of what you think of Sun's rationale
for excluding a delegate type, an article describing that rationale is not
even close to being the most useful way to answer the original question.

Pete


subject: Re: Delegates...?

text:
Gavin Metcalfe wrote:

Check the actual Swing examples I provided later in that post.  The
first one was just a quick example of how to do a delegate, you can
substitute any method invocation you like.


subject: Re: Delegates...?

text:
I wanted to add that I was using this as a general pattern:

<http://blogs.infragistics.com/blogs/tsnyder/archive/2007/10/17/mvc-or-mvp-pattern-whats-the-difference.aspx>


subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 19:05:23 -0800, Mark Space <[email]>
wrote:

Well, tell you what: when you've actually learned C#, write a program that
executes the code the OP posted.  Then run the code you posted.  And then
come back and tell us if the two pieces of code do the same thing.

I think you're all wet too, but I've got better manners than to say so
publicly.  I prefer instead to focus on the technical, objective issues,
rather than throwing personal insults around.  Maybe I should have stated
more emphatically that your reply was incorrect.  It certainly was my own
mistake for assuming that once your mistake was pointed out, you'd
acknowledge it gracefully.

Pete


subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 19:15:22 -0800, Mark Space <[email]>
wrote:

Hmmm?  ActionListener seems at least as context-specific as Runnable.

Well, neither is ActionListener.

If you've got an example of a truly general-purpose interface that Java
offers, I'll agree that my previous advice was flawed.  But I don't see
how replacing one special-purpose interface with another improves the
situation.

I do understand what you mean about Callable and Runnable being specific
to a given scenario, and I'd agree that an interface that is more
specifically intended as a general-purpose interface would be better (much
better, in fact).  But the pattern of those interfaces is itself more
general-purpose than that of ActionListener.  I don't see how the latter
is superior to the former.

Pete


subject: Re: Delegates...?

text:
Arne Vajhï¿½j wrote:

But if you add delegates, you remove the need for inner classes to
implement callbacks.  (Nested classes could be retained as
code-structuring devices, but the notion of owning instance can go.)
To my mind, delegates are much simpler than inner classes, so this is
a net gain in simplicity.


subject: Re: Delegates...?

text:
Peter Duniho wrote:

For certain values of "effective" and "useful" I agree with you.  However, I
find that providing just a bald, limited answer to a topic as fraught with
subtlety as delegates vs. inner-class pseudo-closures might not be as useful
or effective in the long run as having a full, deep understanding of what Java
does and why, which the cited article provided.

Besides, this isn't a help desk, it's a discussion group.  I was discussing.

Let's make a deal.  You are very knowledgeable, both about Java and C#.  You
provide the simple, direct answers limited only to the precise context of the
posters' questions and I'll provide in-depth, background information to help
make those short answers more sensible overall.


subject: Re: Delegates...?

text:
Peter Duniho wrote:

Since the OP is actually asking about Java in a Java group, why don't
you post some working Java code, like I did.  Seriously.  If my examples
are that bad (and every one of those three programs executed correctly),
I'd appreciate seeing a corrected example.


subject: Re: Delegates...?

text:
Mike Schilling wrote:

You can never remove features from a language.

The curse of compatibility.

Arne


subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 18:09:21 -0800, Lew <[email]> wrote:

I didn't see anything in that article that discussed those subtleties in
any great detail.  Instead, it seems to be more concerned with brevity of
code and run-time performance.  Where it does discuss some of the more
subtle parts, it seems to be focused primarily on J#...many of the
comments don't apply in C#, or assume that one might only have a naked
method used as a delegate.

I am especially amused at the article's claim that inner classes offer
_superior_ functionality, given that in C# you can in fact implement that
exact functionality using a nested class.  In other words, C# offers what
Java has, but allows you to "flatten" (the article's word) the delegate
design if you want (which in many cases makes more sense, as in those
cases the delegate method really is part of the main class...putting it in
a nested class is an arbitrary complication there).

Frankly, I find the Java design works just fine.  And I think that there's
some validity to _some_ of what they write in that article.  But even in
those cases, they seem to have made what I feel is an arbitrary trade-off,
sacrificing one benefit for another (for example, personally I like not
having to create a whole new class, even if anonymous, just to implement a
single-method interface, whether once or multiple times).  They've
rationalized, rather than made a true determination of superior design.

In other cases, at least as compared to C#, the points aren't even
relevant (I will assume that in the context of J#, they are, but I don't
know enough about that variant to have first-hand knowledge).  They make
claims that, even if they are detriments in the context of J#, don't apply
to C#.  As such, they aren't relevant at all to someone who's specifically
coming from a C# context.

If you say so.  I don't personally see a single link to an article as
"discussion".  Also, discussion usually comes _after_ a question has been
answered, not before (and certainly not without).  But I accept that not
everyone will share that point of view.

I don't like that deal.  Especially since I think you're mistaken to
characterize me as being knowledgeable about Java.  I've only been using
it a couple of months, for crying out loud.  Just how knowledgeable could
I be?

I think a better deal would be, I'll refrain from offering any more
critique of your reply in this thread, and we can let the OP tell us which
reply he felt was the more effective and useful.  If the OP tells us that
knowing _why_ the Java designers felt they should not include a delegate
type made _my_ answer more sensible overall, I'll accept your assertion
that your reply was relevant and helpful.

And let's leave future performance out of the deal altogether.  Why should
either of us feel restricted in how we can answer a person's question,
assuming we are actually addressing the question?

Pete


subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 19:45:10 -0800, Mark Space <[email]>
wrote:

I did.

Seriously.

Define "correctly".  None of your examples behaves in the way that the
OP's code does.  I wouldn't call that correct.

And I never said your examples were bad.  In fact, I specifically wrote "I
don't think there's anything wrong with what you wrote in your reply per
se".  They demonstrate a useful behavior.  They just don't demonstrate the
same behavior that the OP is looking for.

Just look at my first reply to the OP.

Pete


subject: Re: Delegates...?

text:
Arne Vajhï¿½j wrote:

Sure; I meant that delgates could have been added instead of inner
classes.  Adding them now would be pointless.


subject: Re: Delegates...?

text:
Peter Duniho wrote:

You may not feel expert in Java details yet, at this point, but it is
abundantly clear that you understand the language very well, and you reason
correctly about it with clear evidence for your points.  I'm sure you don't
feel that knowledgeable yet, but I've only been using Java for nine years and
I barely feel now that I understand the language.  Anyone who reads Usenet
knows that I frequently make inaccurate or incomplete remarks about Java, and
I do feel that I know the language pretty well.  The main reason I participate
here is because the corrections, arguably more so than posts who reinforce my
conclusions, train me and refine my understanding more quickly and ruthlessly
than any other method I've found.

I suggest to the OP that they consider whether merely having a recipe to
answer one question really helps them understand Java programming, or whether
a deep knowledge of why things are a certain way, even if wrongly chosen, in
the language does more to engender mastery.  I assert that without deep
understanding of the issues involved, one is doomed to be a mere hack.  The
big opportunities and joy in programming come from being able to solve
problems or create systems that are novel - if anyone could do it, everyone
would do it.

If the OP were to claim that deep understanding is not necessary to their
purpose, and all they want is a rote response to their limited question, I
would decry that response as detrimental to their growth as a programmer.

I suggest that even your vehement disagrements with the Sun white paper on why
they don't use delegates, and your humorous rhetoric denigrating it ("chaff",
etc.), serve to sharpen one's understanding of the matter even more.  You and
I have been excellent partners, laying out the information, pricking holes in
its logic, and actually giving incentive for others to read the article to
understand why I proffered it and you think it's hokum.  Thus we have
benefited the community and provided growth for all.


subject: Re: Delegates...?

text:
Peter Duniho wrote:

I'd would have liked to see something actually interface into a working
"view" that is, an actual GUI component in the Java API, but ok, I guess
you did provide an example.


subject: Re: Delegates...?

text:
On Thu, 21 Feb 2008 20:26:52 -0800, Mark Space <[email]>
wrote:

Well, your example didn't have a GUI.

It's true that I only ported the code the OP posted.  I didn't include a
main() method or directives to make the sample complete.  But I took as
granted the OP didn't need it, and I would be surprised if you had any
trouble coming up with an appropriate one.

For that matter, the one you posted is nearly sufficient.  The only
difference being that you'd need to make the CallTest() and CallTest2()
methods public (or provide public methods that would call them), and then
call those methods from the main() method, rather than calling the
TestMethod() and TestMethod2() methods directly as your sample does.  I
would think you could make those changes easily enough.

And do you now see how that example differs from the one you offered?

Or do you need something more specific?

Pete


subject: Re: Delegates...?

text:
Peter Duniho wrote:

"Examples," plural.  And the heck they didn't.  Did you scroll down?
There were three working programs in my one post.


subject: Re: Delegates...?

text:
On Fri, 22 Feb 2008 10:11:44 -0800, Mark Space <[email]>
wrote:

I was talking about the very first one.

I know.  But your requirement for a GUI seems arbitrary, unnecessary, and
not even followed by you in all of your examples.

But even if you had, what of it?  Is a GUI required in order to
demonstrate the principles?  No.  And why duck the question I asked?  Do
you now understand the error you made?  Or are you going to continue to
insist that I'm "all wet"?

I understand the temptation to go on the offensive with irrelevancies so
that you can avoid the real question.  But I don't see the point in doing
so.

Pete


subject: Re: Delegates...?

text:
Peter Duniho wrote:

My point about the GUI is that Swing seems to provide already most of
what the OP is asking for.  There's no reason to build the presenter and
delegates from scratch.  When someone says "I don't know enough Java to
even pass an object which hold a method" I think it helps to give them a
steer in the right direction.

I'm reading the link the OP provided now about MVP.  The more I do so,
the more I think "the view they describe just like Swing."  Actually on
page four they just got into talking about using an automated builder
for creating presenters, which is good.  And I like rigor of the model.
  But I'm thinking my original instincts that the OP should be looking
heavily at what's already been done in Swing were right on.

What I didn't like about your example was that it seems to re-implement
things that it really should not.

I'm ducking the question of my first example because it was really just
an example of delegates in Java.  The whole point was to lead up to the
third example.  Maybe that was a bad idea or unnecessary, but I cut out
as much as I could to keep the line count down.  It's not really
important to me though.


author: Ian Sammis

subject: Commodore's offer of software... When can we expect it?

text:
Hello, all!

When we bought our A4000, Commodore was offering Deluxe Paint 4.0 and
Art Department Pro free if we sent in proof of purchase and a registration
card.  We did this all, but the software has yet to arrive.   The offer
has since expired. (We bought the machine in April of this year)

To any others who bought their machines around the time we did, has
this software arrived anywhere?  To anyone at Commodore who is listening
(well, reading anyway :), when can we expect the software?

Thanks in advance!

Ian Sammis
Caltech Seismology Laboratory
[email]


author: Roy Park

subject: Commodore's offer of soft

text:
Oh no... another unsatisfied customer... well, you better call up Commodore
and demand that you get them right away.  That's only thing I can think of.

Roy

 ** UNREGISTERED EVALUATION COPY - PLEASE SUPPORT THE SHAREWARE CONCEPT **
---


author: Mike J. McGrath

subject: Re: Commodore's offer of software... When can we expect it?

text:
In article <[email]>,
Ian Sammis <[email]> wrote:

Same with me! I'm pretty upset about it too.....

[email]


author: william carlylre dukes

text:
In article <25gpfm$[email]> [email] (Mike J.
McGrath) writes: >In article <[email]>, >Ian Sammis
<[email]> wrote: >>Hello, all! >> >>When we bought
our A4000, Commodore was offering Deluxe Paint 4.0 and >>Art Department
Pro free if we sent in proof of purchase and a registration >>card.  We
did this all, but the software has yet to arrive.  The offer >>has since
In article <25gpfm$[email]> [email] (Mike J. McGrath) writes:
In article <25gpfm$[email]> [email] (Mike J. McGrath) writes:
In article <25gpfm$[email]> [email] (Mike J. McGrath) writes:
In article <25gpfm$[email]> [email] (Mike J. McGrath) writes:
In article <25gpfm$[email]> [email] (Mike J. McGrath) writes:

I finally got my software about 3 months after I got my 4000, and only
after I called them a dozen times.  I got my computer in March '93 and
software arrived in June.  Try calling (215) 431-9368 Alice Feeney @
Commodore to bitch.  She had a special answering machine just for folks
who were pissed about not getting software.  If that doesn't work, CBM's
main number is (215) 431-9100.  Keep that number in a safe place as they
don't seem to make it readily available. (Ever see a CBM number published
other than that stupid 800 dealer locator?)  You may still be able to get
your software but I wouldn't hold my breath.

Bill Dukes
Kinetic Designs


author: SysCold

subject: Hex to Decimal - Urgent

text:
Does anyone know how to convert Hex number to decimal?
Is there any function that will do the trick in Visual Basic?

Please, it's urgent,
                                By SysCold


author: DarrenH

subject: Re: Hex to Decimal - Urgent

text:
If you just want to convert a number, use the Windows calculator (set to
scientific, enter decimal number, click on "Hex")

If you're wanting to do it in a program, go to Planet Source Code...there's
probably tons of examples there....

good luck
D

"SysCold" <[email]> wrote in message
news:acu38g$8bi$[email]...


author: Dag Sunde

subject: Re: Hex to Decimal - Urgent

text:
...
    Dim nDecValue as long
    Dim sHexString as long
    sHexString = "FEDCBA9"

    nDecValue = CLng("&H" & sHexString)

    Debug.Print nDecValue
    ...


author: [redacted]

subject: Re: Hex to Decimal - Urgent

text:
On Mon, 27 May 2002 21:58:10 +0200, "SysCold" <[email]>
wrote:

While Dag's example will work, it tends to have problems with large
numbers. I don't know about you, but I've always hated the way VB
switches to negative numbers when all you have is a large positive
number.

Here's a function I threw together just now. It uses Currency data
type, which is less efficient (by far) than Long, but handles larher
numbers without overflows or converting them to negatives.

The code is fairly "rough around the edges", but it does appear to
work. A lot of the intermediate steps such as calculating "Power" and
"Weight" aren't really necessary but were inserted while I was having
problems with overflow errors. Feel free to tighten up the code. I'll
expect my royalties in the mail, shall I?  :)

Private Function MyHex2Dec(ByVal Hex As String) As Currency

  Dim I As Currency
  Dim L As Currency
  Dim Digit As String * 1, DigitVal As Currency
  Dim Total As Currency
  Dim Power As Currency, Weight As Currency

  L = Len(Hex)
  If L = 0 Then
    Exit Function
  End If
  Const Digits As String = "0123456789ABCDEF"
  Hex = UCase(Hex)
  For I = 1 To L
    Digit = Mid$(Hex, I, 1)
    Power = (L - I)
    Weight = 16! ^ Power
    DigitVal = (InStr(Digits, Digit) - 1!) * Weight
    Total = Total + DigitVal
  Next
  MyHex2Dec = Total
End Function


subject: Re: Hex to Decimal - Urgent

text:
Here's one I found at PSC as I suggested:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=35672&ln
gWId=1

"DarrenH" <[email]> wrote in message
news:bB6N8.1063$aW1.20620@news...
Code...there's


author: Duane Bozarth

subject: Re: Hex to Decimal - Urgent

text:
[email] wrote:

Much simpler--just tell VB it's a long...for example--

debug.print cdbl(&HFFFF&)
 65535


author: Rick Rothstein

subject: Re: Hex to Decimal - Urgent

text:
And for a different approach...I believe this function correctly gives
integer results for numbers up to 96 bits (far more than would ever be
needed).

Rick

Function Hex2Dec(HexString As String) As Variant
  Dim X As Integer
  Dim BinStr As String
  If Len(HexString) <= 12 Then
    Const BinValues = "0000000100100011" & _
                      "0100010101100111" & _
                      "1000100110101011" & _
                      "1100110111101111"
    For X = 1 To Len(HexString)
      BinStr = BinStr & Mid$(BinValues, _
               4 * Val("&h" & Mid$(HexString, X, 1)) + 1, 4)
    Next
    For X = 0 To Len(BinStr) - 1
      Hex2Dec = Hex2Dec + Val(Mid(BinStr, _
                Len(BinStr) - X, 1)) * 2 ^ X
    Next
  Else
    ' Number is too big, handle error here
  End If
End Function

<[email]> wrote in message
news:[email]...


subject: Re: Hex to Decimal - Urgent

text:
On Mon, 27 May 2002 18:58:15 -0500, Duane Bozarth
<[email]> wrote:

Oh yeah? Try FFFFFFFF.


author: Frank Adam

subject: Re: Hex to Decimal - Urgent

text:
On Tue, 28 May 2002 02:50:57 GMT, [email] wrote:

That's not a long, that's a too long. ;-)

Regards, Frank


author: Robert Side

subject: Connecting a SCA backplane

text:
I've just got a new server in house. In consists of an ASUS PU-DLS
motherboard, an Adaptec 2010S RAID controller, a SCA backplane and
three SCSI hard drives, one scsi tape drive.

Machine had problems booting up and recognizing the hard drives. I determined
that if only two drives were connected, the system would boot up and
recognize the two drives.

Now, the way the scsi chain was originally wired I think was just plain
wrong. FYI, the LVD cable has a built-in terminator. It was wired like
this:

MB -----C--C--C--C--C---C---T
                    |       |
		    I-D-D-D-O

MB = Motherboard
C = Connector
T = Terminator
I = SCSI in on backplane
D = SCSI Drive on backplane
0 = SCSI out on backplane

I tried re-wiring the system like this but had the same symptoms.

MB -----C--C--C--C--C--C-T
                       |
		       I-D-D-D-O

That doesn't seem correct to me either. It seems to me the correct way it
should be wired is like this:

MB -----C--C--C--C--C
                    |
		    I-D-D-D-O--T

Which diagram is correct? Also, if the latter case is correct, do I need to
a new cable without a terminator and a separate terminator?

Rob


author: Gereon Wenzel

subject: Re: Connecting a SCA backplane

text:
The latest is best, or something like

 MB -----C--C--C--C--C       C---C---T
                     |       |
                     I-D-D-D-O

but as a backplane usually acts as a single SCSI device
this should work as well:

 MB -----C--C--C--C--C--C--T
                     |
                     I-D-D-D-O

Make sure the backplane doesn't autoterminate.
Some backplanes can be jumpered for termination as well.
Several backplanes can be very strange in adding to the SCSI IDs
as well as assigning IDs you wouldn't suspect.
I remember IBM adding 1 to any ID set on the tray,
you never got your ROM detected by the first try.

Gereon W.

Robert Side schrieb:


subject: Re: Connecting a SCA backplane

text:
Robert Side <[email]> wrote:

Sorry, I must post a follow-up to my own message due to an error
in my first diagram. It was wired like this:

 MB -----C--C--C--C--C-------C-T
                     |       |
                     I-D-D-D-O

Rob


author: Jim Roberts

subject: Re: Connecting a SCA backplane

text:
"Robert Side" <[email]> wrote in message
news:tNoBb.626438$9l5.284103@pd7tw2no...

Try

    MB----C--C--C--C--C
                                        |
                                        I-D-D-D-O--C-T
Jim

determined
it
to


author: Daniel Drori

subject: Using griddata with method 'v4'

text:
Hi there,

I'm working on a project and I need to build a 3d surface by giving the coordinates: x,y,z. I use the following code:

PictureSize = size(A);
ty = 1:1:PictureSize (1);
tx = 1:1:PictureSize (2);
[X,Y] = meshgrid(tx,ty);
Z  = griddata(x,y,z, X, Y,'v4');
surf(X,Y,Z);

I tried to use the method 'cubic' instead of 'v4' but it gives me a lot of NaN's, and when I start using the method 'v4' I start getting real values.
I have several questions:

1) What are the differences between the two methods 'cubic' and 'v4'??
2) Where can I read about the method 'v4' in order to know how it works?
3) Is there any way I can translate the 'griddata' function with the method 'v4' to C++?

Please help me...
Thanx in advance
Daniel Drori
[email]


author: Bruno Luong

subject: Re: Using griddata with method 'v4'

text:
"Daniel Drori" <[email]> wrote in message <gtkf05$cuc$[email]>...

According to the doc, v3 method is derived here:

[2] Sandwell, David T., "Biharmonic Spline Interpolation of GEOS-3 and SEASAT Altimeter Data", Geophysical Research Letters, 14, 2, 139–142,1987.

"Seasat" altimeter data is the sea surface height (SSH) data acquired by the a satellite called SEASAT; -)

Bruno


author: John D'Errico

subject: Re: Using griddata with method 'v4'

text:
"Daniel Drori" <[email]> wrote in message <gtkf05$cuc$[email]>...

'cubic' is a triangulation based method. So if a point
is outside the convex hull of the data, then you won't
find a triangle that contains it. Therefore ... NaN.

'v4' is apparently a Greens' function approach. It uses
a full matrix composed of ALL of the interpoint
distances. This will be SLOW for many points, and
extremely memory intensive.

Just pick any radial basis function method. There
are many of them to be found. In fact, there are
RBF codes on the file exchange.

These RBF methods are not always terribly good.
I originally played with them for a year or so,
before developing the ideas behind gridfit, which
works FAR better on the problems I've ever seen,
as well as giving you more control over the results.

John


subject: Re: Using griddata with method 'v4'

text:
hi John,
concerning my questions:
 1) What are the differences between the two methods 'cubic' and 'v4'??
 2) Where can I read about the method 'v4' in order to know how it works?
are there any researches so I can read them?
why do I get negative values when I use V4?
is there any way to get Nan's with v4? why?
basically, all I need to know is how dose this method calculate the 3d surface i get..

thanx in advance
Daniel


subject: Re: Using griddata with method 'v4'

text:
"Daniel Drori" <[email]> wrote in message <gvj9bd$mda$[email]>...

Think of the 'cubic' method as a version of a spline,
on a triangular support. So you will have cubic
pieces in 2 dimensions. I'd expect to see derivative
breaks of some order across the triangle boundaries.

The 'v4' method is much like a radial basis function
interpolant. These methods are distance based
methods, so you will have a single radially symmetric
basis function around EVERY data point. The 'v4'
method will form a linear combination of these basis
functions, so it must formulate and solve a linear
system of equations, of size the number of data
points.

There are many such interpolants, multi-quadric and
inverse multi-quadric. Read Richard Franke's paper
on this subject (Mathematics of Computation) for
a good discussion of

R. Franke, "Scattered Data Interpolation: Tests of Some
Methods", Mathematics of Computation, 1982

It has no constraint on the value it predicts, merely
interpolating your data. However, locations between
the data points and exterior to them may take on
any value that is consistent with the interpolant used.
Any polynomial interpolant has similar behaviors.

The 'v4' method is a poor choice in general, IMHO.
It is slow. It will do nasty things to you in extrapolation,
as well as in "intrapolation". (Intrapolation is a word
of mine that describes interpolation across a large
internal hole in your data. This can have many of the
bad characteristics of extrapolation.)

Not unless you have NaNs in the data iself, or possibly,
replicate data points. As described above, 'v4' is a
distance based method that solves a linear system of
equations for the solution. NaNs will occur only if
there are already NaNs in the data, or if there are
replicate points in your set. The latter case will
generate a singular system, so might introduce NaNs
in the solution.

The other methods of griddata introduce NaNs because
they are triangulation based. Points outside of the convex
hull will cause failure here, so NaNs are returned.

John


author: Steven Lord

subject: Re: Using griddata with method 'v4'

text:
"Daniel Drori" <[email]> wrote in message
news:gvj9bd$mda$[email]...

*snip*

Take a look at the Algorithm and References sections of the function
reference page:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/griddata.html

It gives the journal article that describes the 'v4' method.  I'm guessing
your local library may have this journal or may be able to get a copy of
that article for you.


author: Joaquim Luis

subject: Re: Using griddata with method 'v4'

text:
Mirone has MEX files for both the GMT's "surface" program and the MB-SYSTEM equivalent (surface_m.c & gmtmbgrid_m.c). The both use the minimum curvature algorithm that is very fast and since they are MEXs user is not obliged to provide an entire full matrix for X, and Y which a find a absurd and highly limits (due to memory issues) the size of the grid one may compute. The gmtmbgrid_m computes NaNs on cells not constrained by data (controlled by an input option -C).

J. Luis


author: Peter Mao

subject: Re: Using griddata with method 'v4'

text:
"John D'Errico" <[email]> wrote in message <gvjg6p$fbb$[email]>...
...

Hi John,

my experience with 'v4' (based on Sandwell, 1987) doesn't exactly conform to what you're saying here.  Indeed, it is slow, but I found that it handled "intrapolation" better than the other interpolation methods available in Matlab (I checked out 'nearest', 'linear' and 'cubic (spline)').

I can post up specifics, if you're interested in discussing this further.

Also, to expand on the topic of interpolation methods in 2D, do you have any insight on Shepard's method (Shepard, ACM, 1968) or the triangular interpolation method of Cline and Renka (1984)?  Those are scattered-data 2D interpolation methods in NAG that I haven't seen in Matlab (maybe in the File Exchange?).

Peter


subject: Re: Using griddata with method 'v4'

text:
A question to John:

- I have a program where I use griddata v4 from scatter to scatter with extrapolation.The interpolation/extrapolation is used for visualization purpose. I would like to try GRIDFIT. But this function seems to require a gridded target nodes. What is the reason for that? Can I trick it by calling gridfit many times as there are scattered target points and still get a coherence surface?

Bruno


subject: Re: Using griddata with method 'v4'

text:
"Peter Mao" wrote in message <kme5fp$fgb$[email]>...

Peter, I won't argue with you. Feel free to use it or not.

My comments stand. Period. Beyond that, I am retired
and will not re-enter a conversation from years ago.

John


subject: Re: Using griddata with method 'v4'

text:
"Bruno Luong" <[email]> wrote in message <gvmpb1$ln1$[email]>...

Hi Bruno,

Gridfit builds a plaid grid for a few reasons. This makes it
efficient for relatively large grids, since I can build a simple
style of regularizer easily. It is also trivial to build the
predictor array. Finally, it makes for a relatively simple
interface that can be used simply out of the box.

I have written a gridfit style code that does not require
a plaid grid. It works on a triangulated domain, and even
does so in n-dimensions. It is a little slower to build the
matrices though than gridfit, but since it will generally
work on smaller problems, the two should cancel out.

I've not really spent any serious time in optimizing it.
One thing I did do was to write a tool based on it that
does adaptive mesh refinement. So I can start with a
coarse triangulation of a domain, refining the regions
of the domain where there is significant lack of fit.

So this is the tool I'd recommend you play with here,
not gridfit.

John


subject: Re: Using griddata with method 'v4'

text:
Thank you John. Your opinion is informative as always.

Bruno


author: Neema

subject: Re: Using griddata with method 'v4'

text:
"John D'Errico" <[email]> wrote in message <gvmu82$kin$[email]>...

John,

It would be very useful if you can post that version of gridfit that works on triangulated domains. Now it is quite a while from this message but you still didn't include it in the file exchange distribution.

Thanks in advance


subject: Re: Using griddata with method 'v4'

text:
"Bruno Luong" <[email]> wrote in message <gvmv9p$sb$[email]>...

I'll send it to you if you wish to try it out.

Let me know.

John


subject: Re: Using griddata with method 'v4'

text:
Thank you John. Right now I'm using the 'v4'. I have to finalize the code soon for delivery, no time to play with other methods. I'll be happy to contact you later to test the scattered interpolation code.

Cheers,

Bruno


author: MLH

subject: A97 - where is the system.mdw file located

text:
Where is system.mdw normally stored
in typical A97 installation?


author: David W. Fenton

subject: Re: A97 - where is the system.mdw file located

text:
MLH <[email]> wrote in
news:[email]:

This is not a valid question.

It can be stored anywhere.

And each individual MDB may have its own custom system.mdw.


author: Keith

text:
"MLH" <[email]> wrote in message
news:[email]...

(From memory) Try C:\WinNT\System32.

www.keithwilby.com


text:
I found that out the hard way. I took a
compiled app to a client's site today with
the mdw that was in \windows\system32
and when I got there, it allowed only my
userid to log in. I had tried all the login
id's before I left and they worked, but
none except for mine were valid when
I rolled it out. I have some investigating
to do it seems.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


text:
OK, I found it. I opened Workgroup Administrator and
easily recognized the filename and location. I was in
a hurry this morning and did not recall that I had
created a uniquely named system database long
ago. I know where it is now. Thank-you.


author: Peter Carter

text:
"David W. Fenton" <[email]> wrote in message
news:Xns9677A33DB998Edfentonbwaynetinvali@24.168.128.90...

It is a valid question.  It begins with a capital letter and ends with a
question mark.  If you started with a pc with no operating system, then
installed say Win 98 followed by Office 97 accepting all the defaults
offered there is little doubt where system.mdw would end up.  And although
one could create many system.mdw files on the pc it might be better to give
them different names to reflect their purpose.  Otherwise you'd end up like
my aquaintance Jeff who, since 1998, has named every single one of his
databases Jeff.mdb, but just keeps them in different folders.
Anyway, the OP would have probably been quicker searching his pc for
system.mdw.


text:
"Peter Carter" <[email]> wrote in
news:d8sp0o$252$[email]:

No, it's *not* a valid question, as its scope is too narrow. An
answer only to the question asked will solve the problem only if
there is no custom workgroup. And I doubt someone would be asking
the question in the first place if there weren't a custom workgroup
involved.

The question was badly worded as, however much there *is* a default
location for A97 (which is actually different for different versions
of Windows, BTW), that doesn't even begin to cover the scope of the
problem space.


text:
I agree with you both, in this sense. In a broad sense,
it was a valid question in that it came from confused
person who knew not how to narrow the scope to
make it more valid when asked. But I see clearly now
so asking the Q - however poorly - helped me reach
a resolution. I know now not to look in one and only
one location for the system database and that it may
well be under a different name. But to David's credit,
it could-a-been better worded.


author: Mosix

subject: apm in KDE

text:
Has anybody disabled the apm suport in the KDE starting. Can you tell me
how?

  Thanks in advance


author: Binh Nguyen

subject: Re: apm in KDE

text:
Mosix wrote:

Why don't you stop it from even loading before KDE even starts. I'm fairly
sure the Redhat 'setup' utlity or any of the other associated System V
coniguration utilities will allow you to do this.

Binh.


author: horne

subject: Re: apm in KDE

text:
"Binh Nguyen" <[email]> scribbled these thoughts
sometime during Wed, 30 Apr 2003 10:18:37 -0400:

If the bootloader is LILO then add the apm=off to the appropriate stanza.


author: Jamie Wyatt

subject: ps gives uid not login

text:
PROBLEM: New users to the system only get their UID number when they perform
a ps and not their login name. The users that have had user accounts
still works OK. Any suggestions?????
Things were working fine then one day I added a new user and from that
user on no user ID when they ps.

I am running IRIX 4.0.5 and NIS. The NIS file is separate from the normal
file.

I have run the pwck on the file and it does not complain.

Any help would be appreciated.

Thanks
Jamie


author: Dave Olson

subject: Re: ps gives uid not login

text:
In <[email]> [email] (Jamie Wyatt) writes:

| PROBLEM: New users to the system only get their UID number when they perform
| a ps and not their login name. The users that have had user accounts
| still works OK. Any suggestions?????
| Things were working fine then one day I added a new user and from that
| user on no user ID when they ps.

rm /tmp/.ps_data.  ps knows when /etc/passwd changes, but has no idea
if/when NIS passwd maps change.  This is made clear on the 405H ps
man page.


author: Sjoerd Mullender

subject: Re: ps gives uid not login

text:
[email] (Dave Olson) writes:

This doesn't have to be like this.  Each NIS database contains a key
YP_LAST_MODIFIED.  The value is the time the NIS database was last
changed (in seconds since the epoch, naturally).


author: Alan J Rosenthal

subject: Re: Help: security over solaris 2.6

text:
"M. Aram" <[email]> writes:
...

I don't.  Your intruder was running "eggdrop", which is an IRC relay, but the
intrusion was through other means, probably the statd or cmsd bug.

Of course, anything could be renamed "eggdrop", but there's not a lot of
creativity out there amongst "crackers" (although renaming things *is* one of
the ways in which they do exercise their meagre creativity).

You'll almost certainly have to reinstall your system from scratch.
See ftp://ftp.cert.org/pub/tech_tips/root_compromise

To avoid this happening again, subscribe to Sun's security-alert mailing list
and keep current in patches.  Do apply the current recommended patch set
before putting your machine (fully) on the network.


author: Luke Andrews

subject: Ugly kerning with superscript text

text:
Using the tag to generate superscript tag almost always creates
ugly, awkward kerning with surrounding text; the line on which the
superscript occurs gets pushed down unevenly, no matter how the line-height
is set.

Can anyone suggest the best CSS solution to this problem?


author: Eric B. Bednarz

subject: Re: Ugly kerning with superscript text

text:
Luke Andrews <[email]> wrote in message
news:[email]:

sup
  {
  vertical-align: text-top;
  }


author: Alan J. Flavell

subject: Re: Ugly kerning with superscript text

text:
On Mar 5, Luke Andrews inscribed on the eternal scroll:

Indeed, I've been irritated by that too...

I don't know about "best", but one approach that seems to "work" is to
increase the line-height of the normal text, say something like

 p { line-height: 115%; }

to leave a bit of air for the sub/sups, and then tell lies about the
sub/sup height:

 sub, sup { line-height: 0.1em; }

I got this tip from Matt McIrvin here.  (Maybe he'd now want to disown
it, but there you are...)


subject: Re: Ugly kerning with superscript text

text:
in article Xns91C8B5023CE5rantbox@24.132.65.12, Eric B. Bednarz at
[email] wrote on 3/5/02 11:45 AM:

I tried that, and, in Explorer 5/Mac at least, it put the superscript text
on the same baseline as the plain text -- in otherwords, it's not "super"
anymore. I need the text to be at least slightly elevated. As I'm dealing
with a French document, superscript abbreviations like Mme (madame) or 1er
(premier) are fairly key to making a page look properly formatted.


subject: Re: Ugly kerning with superscript text

text:
Luke Andrews <[email]> wrote in message
news:[email]:

[ugly, awkward kerning with superscript]

I didn't know that; in IE6 and Moz097/win it's OK, but having a closer
look, it also screws up in Opera 6 :(

 -- in otherwords, it's not

Something like this

sup
  {
  font-size: 70%;
  line-height:70%;
  }

with the size depending on the line height of the containing block seems to
be OK in IE, Mozilla and Opera.


author: Jukka K. Korpela

subject: Re: Ugly kerning with superscript text

text:
"Eric B. Bednarz" <[email]> wrote:

I've used just font-size:80% and it seems to help sufficiently. But to
compensate for the reduced legibility that font size reduction causes, I
also use font-family suggesting a sans-serif font. Some related notes:
http://www.cs.tut.fi/~jkorpela/math/#linespacing


author: Greg Stevens

subject: Use X10 Dimmer on Casablanca IntelliTouch Fan Light?

text:
Hi,

  Has anyone tried to use an X-10 dimmer (in-line or screw-in) on the
fan light of a Casablanca fan light that is controlled by an
IntelliTouch switch? I am thinking this could be done by keeping the
IntelliTouch light switch always on. Hopefully, the IntelliTouch
circuitry would pass through the X-10 signal to the X-10 dimmer module
on the light.

Thanks,
Greg
[email]


author: David Pfeffer

subject: Re: Use X10 Dimmer on Casablanca IntelliTouch Fan Light?

text:
You don't want to do it. ^^

However, for my Casablanca fans, I build a circuit to X-10ize them
completely. Do you have the remote controlled version or the wall
switch?

Basically, I put in a two gang box in the wall, and put the Casablanca
in one of them. My circuit went in the adjacent slot and had a blank
faceplate. I removed the front of the Casablanca control, soldered
wires to the contacts that the switches control, and then replaced the
cover. I then hooked these wires up to relays in my circuit, and
control the relays via a PIC16f84A microcontroller. I allow selection
of two unit codes (and one house code). Brightening the unit code
"pushes" the switch to make it go a notch higher (either fan or
light). Diming makes it turn off and then go to one notch below what
it was already at (the PIC remembers what the current state is). Power
off turns off the fan/light and power on just pushes the switch once
to make it go to its last remembered state.

I also have fans that were wireless. I used the same principle, except
I just bought a second remote and completely mangled it (soldered
wires to the contacts but didn't put the buttons back in). The only
difference was the PIC could loose track of the fan speed if another
remote was used to change speeds. This wasn't possible with the
in-wall version, where pushing the switch on the hard-wired control
sent a signal to my controller (and then my controller broadcast an
X-10 signal corrisponding to what happened -- I build this to be
2-way. I also supported the poll signal.)

Let me know via email if you're interested in the circuit.

David Pfeffer

Greg Stevens <[email]> wrote in message news:<[email]>...


author: BruceR

text:
The IntelliTouch instructions specifically say not to use another
dimmer. Let us know what happens!

"Greg Stevens" <[email]> wrote in message
news:[email]...


text:
Hi David,

   That sounds cool! I would definitely be interested in that circuit. Can you please post
it or send it to me via email?

Thanks
Greg
[email]

David Pfeffer wrote:


author: NickName

subject: About rept footer

text:
Say, I have a report called saleRpt in Access 97, naturally it has a
header and body (some query), then, it has a footer like
Sum(saleTotal) -- saleTotal has been referenced in the body query.
Now, how do I get the content of the rept footer for this rept
programmatically?  I understand the Reports collection has a property
called PageFooter, but that's not what I'm after.  Shed some light,
Access guru?

TIA.


subject: Re: About rept footer

text:
Good point.  It seems that my attempt or other similar attempt may not
be very productive overall.  Thanks.


subject: Re: About rept footer

text:
Well, I guess we miscommunicated.  I'm trying to figure out a way to
get the sql statement for report footer if any for a given rept.  The
reason is, we're moving away from Access and I need to migrate all the
reports to a new platform, going to report design view to capture it
one by one would be most undesirable.  Thanks though.


author: Trevor Best

subject: Re: About rept footer

text:
NickName wrote:

The textbox containing the total value has a unique name within the
report regardless of it's placement, just reference it ny name.


subject: Re: About rept footer

text:
NickName wrote:

Report footers don't have a SQL statement of their own. You could try to
determine the SQL being generated from a textbox with a sum() in it, if
the report's recordsource is a table or query it would be:

"Select " & Mid(Textbox,2) & " from " & rpt.Recordsource

However, it gets more complicated when you apply filters to the report
or if the report is based on a SQL statement.


author: Greg

subject: A quote from nwn.bioware.com/forums, sound familiar?

text:
Re: CAMERA VIEW

Enter a large room. Notice on the far side of the room is a pair of
shoes, a pair of ankels, and a pair of knees.

All of the sudden, those shoes, ankels & knees are casting spells and
firing arrows at you. You attempt to move the camera down just a tad
more so you can reveal the face and name, but wait, you can't; the
camera is locked at a 45 degree angle.

All of this happening while totally Zoomed out. Of course in the total
zoom out position you are removed a bit more from the experience. The
beautiful graphics, texture, color, etc., of all before you can not be
seen close up, for by doing so means you enter the lotus position with
head tilted down left only to follow your breath and chant a mantra.
That mantra is "Sure wish I could see around me".

BioWare:

You know the code that locked the camera. You must know the code to
unlock it. Please, let us worry about the performance hit, the
rendering issues, the lack of sky, the whatever. Just give us a
freakin option to break out of the angel you have placed an
unreasonable restriction on. If you cannot do this for reasons I fail
to grasp; please explain why and I will drop this request. If you can
do this, relatively easily, please, I beg you, DO IT!!!!!!!! Make it
an option and one where perhaps we need to open an .ini files and
change something with the disclaimer it is not officially supported by
BioWare, so that the typical gamer doesn't elect this option by
mistake.

Those happy as a clam with the way it is, get to keep it just as they
like it. Those of us it is driving up a freakin wall, get to stop
being annoyed by this limitation and can go back to loving this game
without wondering whos shoes those are sending harmful spells my way.

Thank you,

ChinaCat


author: Vorlin

subject: Re: A quote from nwn.bioware.com/forums, sound familiar?

text:
"Greg" <[email]> wrote in message
news:[email]...

<good post snipped for brevity>

Game coders write code the way corporate programmers wrote it in the 60's
and 70's:  they write what's handy for them, not what the user wants or
needs.  It's long been realized in the corporate world that code produced
this way results in a great deal of frustration on the part of the user, so
they started including their target audience's input when designing
interfaces and such.  It's too damn bad that game developers absolutely
refuse to do this.  I've yet to buy a game where 20 minutes into it I
couldn't spot several gross deficiencies in the user interface (often
several dozen in more complex games).  You know what I'm talking about,
where you lean back in your chair with and ask yourself "Did these fuckers
ever -play- this game?  If so, how the hell could this have been left
uncorrected?".

I understand the limited budget of PC game developers, but this isn't a
matter of adding something, it's a matter of doing what you are going to do
anyway (create a user interface) but doing it right.  When your customer
spends more time screwing with a half-ass interface than they do playing the
game, something is very wrong.


author: Tomi Heteaho

text:
"Greg" <[email]> wrote in message
news:[email]...

So I am not alone. How the hell did this NOT come up during the beta test?
Just 5 degrees more and you could actually see the enemies you are sometimes
fighting (or not, if they happen to stand on some kind of platform. You will
not be able to even cast spells at him unless you go really close to him...)

It definetly bugs me alot.

Tomi


author: Alexander Mars

text:
Did you complain about this in Diablo?

I really think that making a top down game in 3D was a mistake because no one
seems to be satisfied with it being top down now.  It's the same perspective
we've played a lot of games in, but now because we can move the camera the game
is supposed to be freely convertible between first person and third person?

Give them a break, sounds like you would prefer MW (which is first person, I
believe).

-Well, God was my co-pilot....but we crashed into a mountain and I had to eat
Him.

www.atar.com/alexmars (yet another useless web site)


author: Lord Nerd on High

text:
Tthis was the first thing I noticed when I fired up the game.  I was psyched
when I had seen screen shots of NWN thinking that with all the user
definiablity that they were touting that you could do anything from baldurs
gate perspective all the way to first person.  I was really looking forward to
FINALLY having a multiplayer roleplaying game with all the detail but in a
first person perspective.

It's so frustrating because the technology is there but then the game designers
snatch that element away from us.

==
remove the crap to email


author: Memnoch

text:
On Sat, 29 Jun 2002 23:08:43 +0300, "Tomi Heteaho" <[email]>
wrote:

Have a look at this screenshot from their webpage.

http://homepage.ntlworld.com/memnoch/NWN0002_large.jpg

It's definitely at a lower angle than you can currently see in the game. It is
looking right down the street. And it doesn't look to bad considering there
isn't any sky to look at. I would at least like to have the option of doing
this on the odd occasion it would have been helpful.


author: Bob Perez

text:
"Tomi Heteaho" <[email]> wrote in message
news:afl3rp$gg4$[email]...

No, you are not alone. A lot of us find this incredibly frustrating, it was
the same exact experience that I had with Dungeon Siege and I was
disappointed to recognize it five minutes into the game (see June 19th
thread entitled: "NWN: Advanced Dungeon Siege?").


author: Alfred Hailey

text:
He's not after first-person, he wants to be able to tilt the
third-person camera down so that it's viewing things from a more level
angle. There's no reason it shouldn't be able to, but it seems to have
been arbitrarily locked to prevent it.


text:
"Alexander Mars" <[email]> wrote in message
news:[email]...

one
perspective
game
person?

It's a classic mistake made by many interface designers that if you give
people a really cool new feature that adds incredible value but don't bring
that feature up to par with other products that also use the feature, you
can sometimes wind up creating more disappointment than perceived value.
I've taken features out of products (or dropped them from the design)
precisely for this reason. It's a tough tradeoff but hey, that's the nature
of the marketplace. You're never going to satisfy everyone.

I

Oh I gave them a LOT more than a break, I bought several copies of their
game! I'm not going to apologize for making a few critical comments about
the end product. Doesn't mean I don't like the game, but I don't feel
compelled to withhold critical comment.


author: Booger

text:
"Alexander Mars" <[email]> wrote in message
news:[email]...

Changing the perspective in a sprite game involves supplying all new
artwork, which is an unreasonable request. That's not the case here. Anyway,
yes, the inability to see past a certain point was just as frustrating in
that game as it is here.

one

This is not a new complaint, but even if it was, why supply gorgeous art
resources and then for all practical purposes forbid the player from
enjoying them? Diablo was (relative) crap graphically, which is why no one
felt any overwhelming desire to play it zoomed in. That's not the case with
NWN.

game
person?

I don't believe anyone in this thread even mentioned first person
perspective. They're asking for a free-roaming camera. You know, like the
one all the know-nothing fanbots said was just so difficult or impossible to
deliver for Dungeon Siege, which two days later a mod delivered and worked
like a charm? Or the one whose absence from Freedom Force has caused me to
shelve that supposedly wonderful game without even getting past Nuclear
Winter? (I haven't shelved it in protest or anything; it's just literally
too much trouble to play.)

I

What makes you think we don't have MW already? I do, and I don't prefer it.
I mean, the first-person perspective is nice, but in third-person they still
locked the fugging camera. Can you give me one good reason why they did
that? Hmm?


author: Drunk'in Hillbilly

text:
The restriction seems to be on camera height, so I wonder if there would be
a problem with the camera ending up in walls. The way it is now, the walls
are always below the camera (I think) even when it is tilted all the way
down.


author: John Alcock

text:
On Sat, 29 Jun 2002 22:54:10 GMT, "Booger" <[email]> wrote:

Hmmm?  You can move the camera around in 3rd person in MW.


text:
"John Alcock" <[email]> wrote in message
news:[email]...
it.
still

Well, technically, no you can't. You can point the camera wherever you want,
but the camera's position stays locked behind your character. Still, you're
right that I wasn't remembering correctly. It's been about a month since I
played, and I was remembering the screensaver panning view that kicks in
when you're idle too long as the actual playing view.


author: Grant King

subject: Re: Windows '98

text:
I run NT4 at work almost exclusively (I also have Win 95 using dual
booting).  I prefer it to Win 95 because it is more stable and gives me
more advanced feedback information about my computer than Win 95 does.
Hopefully MS will have upgrade pricing from Win 95 to NTWorkstation 5.0
when it comes out because it is awfully painful to fork out $250 or more to
get the full version of NTW 4.0.

One caveat: check the NT hardware compatibility list before trying to
install NT4.  I see that you have a K6, and I recall that some people had
problems with non-Intel microprocessors when installing NT4 while it was in
beta testing.  You should also make sure that your other hardware is on the
list as well, or that your hardware vendor(s), such as for your video card,
can supply NT4 drivers.


author: Rob McDonald

subject: A 'greedy' component...

text:
I have developed a graphical interface extended from java.awt.Component.  It
is drawn using Graphics2D objects, and is nicely interactive.

When the interface is placed in a JPanel, which is placed in a JFrame,
everything works great.  My interface checks the its size, and calculates
the size & placement of all the internal stuff.

However, when you try to put anything else in the JFrame or JPanel, my
component gets shrunk to a point, and isn't displayed.

How can I make a component's default behavior to be to expand to fill all
available space?

Component.setPreferredSize(new Dimension(Integer.MAX_VALUE,
Integer.MAX_VALUE));

Any suggestions are appreciated,

         Rob


author: Chris Smith

subject: Re: A 'greedy' component...

text:
Rob McDonald <[email]> wrote:

This isn't about the component, but rather about the layout manager in
the container.  What layout manager are you using for the JFrame's
content pane?  How about for the JPanel?


author: Andrey Kuznetsov

subject: Re: A 'greedy' component...

text:
your interface should also tell his parent his preferred size (*not*
Integer.MAX_VALUE!)
see
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html#getPreferredSize()


subject: Re: A 'greedy' component...

text:
I do something like this...

final JFrame frame = new JFrame("My Frame");
final JPanel mainPane = new JPanel();
mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.PAGE_AXIS));
frame.getContentPane().add(mainPane, BorderLayout.CENTER);

MyComponent myComp = new MyComponent();
mainPane.add(myComp);
JTextField textF = new JTextField(10);
mainPane.add(textF);

And I get a giant JTextField, with a non-existant MyComponent.  If I force
the textF.setSize(100,15); I get a small JTextField, and a speck that I
assume is supposed to be the MyComponent.

I also tried a FlowLayout() instead of the BoxLayout(), without any
significant change in behavior.

           Rob


author: Marizel

subject: Changing query to access different tables

text:
I'm not sure there's an easy solution to this, but thought I'd ask.  I
often find myself with a query which I'd like to reuse, but with a
different datasource.  These datasources generally have identical
field names.  The queries select a subset of the fields, so "Select *"
is not really an option.

Is there an easy way to change the source of a query, either in the
design grid or SQL display?  I suppose I could copy the SQL into
WordPad and use find and replace, but it seems Access should provide
some way to do this.

For an example, if I have the following query that reads from the 2003
data:
SELECT [tbl_MD_03].LastName, [tbl_MD_03].FirstName,
[tbl_MD_03].Address1, [tbl_MD_03].City, [tbl_MD_03].State,
[tbl_MD_03].ZipCode
FROM tbl_MD_03 WHERE ((([tbl_MD_03].State)="WV"));

What I'd like is a quick way to now convince it to select the same
fields, but from tbl_MD_04 (or tbl_MD_02, etc.).

Any ideas?
Thanks,
Mary

I tried searching for a solution to this, but didn't


author: Pieter Linden

subject: Re: Changing query to access different tables

text:
[email] (Marizel) wrote in message news:<[email]>...

Sounds like a flawed design, because you should probably have a single
table with an extra field that flags the records.  If you do that,
then you could just turn this into a parameterized query, and you'd be
off and running.  As is, you have to do something like:
1. open the querydef.SQL in code
2. use the Replace function to replace each occurence of the old
tablename with the new one.
3. run the query. (I guess you could save this as a new query...)

Umm... convinced your design is a bit off yet?  If you just included
one extra field in your table, you could just do something like point
your query at an unbound form to gather parameters and then open your
query.  No code required.


author: John Baker

text:
Marizel wrote:

Are you using the queries directly, or as datasources for forms and
reports?  If the latter, just create all the queries you need, and you
can manually or programtically change the datasource for forms and reports.


text:
[email] (Marizel) wrote in message news:<[email]>...

Okay, after a little more useful thought... why are you partitioning
your data by year into different tables?  Don't.  Just chuck it all in
ONE table with a Year field or whatever.  then this whole thing is so
easy it's ridiculous.

Put all your criteria in unbound textboxes/comboboxes on a form and
then just do something like this:

then put a button on your form to open the query.  Done.


text:
John Baker <[email]> wrote in message news:<7RGLc.227180$[email]>...

I'm afraid the queries are used directly, to export data to different
formats--delimited text, dbf, Excel, you name it.


text:
[email] (Pieter Linden) wrote in message news:<[email]>...

Well, there aren't really any forms involved.  Maybe I'd better
explain a little further what I'm doing here.  I kind of
oversimplified in the example.  Afraid it's going to be kind of long.

Another organization has a large, lovely, mostly normalized relational
database of health professionals licensure info.  My organization is
contracted to take requests from people who want a copy of portions of
this data.  Nobody wants the original lovely 27 normalized linked
tables, they want a flat file to read into some system of their own.
So the original organization squashes it into a single table database,
and sends it to me quarterly. (Well, actually it's 3 tables for 3
different health professions, but that just complicates it further.)
So, anyhow, I have a new set of data--a snapshot at than moment, not
really something I can throw in with the previous quarter.

When I get the data, I fill the multiple requests. Some people want
their data in Access, others in Excel, delimited text, fixed field
text, dbf files, printed out, mailing labels, you name it. They can
select certain fields they want and also if they want the whole list
or limited to only physicians from certain counties, or with certain
specialties, etc.

So when someone orders data I set up a query for what they want and
then use export to create their dataset. For people who order
regularly I try to reuse the queries.  Usually I can just name last
quarter's MD table to somethink like MD_Y04Q1 and link the new one as
MD, and things are fine.  But right now, the original organization is
changing their database system around repeatedly and I need to do an
initial query to massage the data a little before it gets to my 50
little queries.  Should I have based all those on an initial query to
start with?  You bet I should, but now I'm stuck with changing it.

Access isn't much help when it can't find something and adds the Expr
stuff either:  SELECT [tbl_MD_03].LastName as Expr1,
[tbl_MD_03].FirstName as Expr2, etc.  That limits using WordPad to
edit the table name.

Anyhow, sorry for the length, if you're still with me.  This is kind
of a special situation now, but I freqently find myself needing to
change query source for one reason or another in other situations,
i.e. trying to make a copy of a query, and it's always a pain.

Thanks,
Mary


author: corey lawson

text:
[email] (Pieter Linden) wrote in
news:[email]:

Maybe he's getting ready to upsize it to SQL Server (7/2K), in which
case, this vertically partitioned data is more than easily wrapped up in
one view. It's pretty dang fast. Yes, I have this scenario, with a
dataset with over 2 million rows in it. Breaking it up into a few smaller
pieces, and it works great now. Of course, in Oracle, the partitioning is
invisible to the user, and it can readjust itself within reason (usually
based on a time-based field...), so your updates/inserts still go against
only one target entity. In SS, you need to have a stored proc or
something that adds data to each subtable (or use an INSTEAD OF view in
SS2K).


author: Bob Quintal

text:
[email] (Marizel) wrote in
news:[email]:

If the field names are constant, you can use the Field List
Properties Alias property to change the name. Open the query
builder click on the first field list and click on the properties
icon in the toolbar. there are two fields alias and source. Just
type the new table's name, and proceed to do the remainder of the
tables.

Now select SQL view. You'll see the field names prefixed with what
you've entered as alias and the FROM statements read something like
Foo AS Bar. just delete the Foo AS and save your query. When you
reopen it, it'll use the new tables.


text:
this isn't terribly hard, but more complicated than you might think.
Here's how I did it.

I have a form with the following controls on it:
(cbo = combobox, txt=textbox, cmd=commandbutton)
cboQuery, txtChangeFrom, txtChangeTo, txtOldSQL, txtNewSQL, cmdGetSQL,
cmdChangeSQL, txtNewQueryName, cmdSaveSQL, cmdListControls

Here's the code behind all my buttons:
Private Sub cmdGetSQL_Click()
    'retrieves the SQL of the query selected from the combobox listing
the queries in the db.

    Dim db As DAO.Database
    Dim qdf As DAO.QueryDef

    Set db = CurrentDb
    Set qdf = db.QueryDefs(Me.cboQuery)

    Me.txtOldSQL = qdf.SQL

    Set qdf = Nothing
    Set db = Nothing
End Sub

Private Sub cmdChangeSQL_Click()
    'modifies the SQL in the txtOldSQL textbox (on the form), and puts
it into txtNewSQL textbox

    Dim strSQLOld As String, strSQLNew As String

    strSQLOld = Me.txtOldSQL
    strSQLNew = Replace(strSQLOld, Me.txtChangeFrom, Me.txtChangeTo)

    Me.txtNewSQL = strSQLNew
End Sub

Sub CreateQueryDefX(ByVal strOldQryName As String, ByVal strNewQryName
As String, _
                    ByVal strOldSource As String, ByVal strNewSource
As String)

    'pretty much copied most of this right out of the help file
    'creates the new querydef from the modified SQL from
cmdChangeSQL_Click

    Dim dbs As Database
    Dim qdfOld As QueryDef
    Dim qdfNew As QueryDef
    Dim strSQLOld As String, strSQLNew As String

    Set dbs = CurrentDb

    Set qdfOld = dbs.QueryDefs(strOldQryName)
    strSQLOld = qdfOld.SQL

    '--since you can't save over the old query, you need to delete it
after grabbing the old SQL...
    If strOldQryName = strNewQryName Then
        dbs.QueryDefs.Delete (strOldQryName)
    End If

    strSQLNew = Replace(strSQLOld, strOldSource, strNewSource, 1, ,
vbTextCompare)
    ' Create permanent QueryDef.
    Set qdfNew = dbs.CreateQueryDef(strNewQryName, strSQLNew)
    ' refresh the collection
    dbs.QueryDefs.Refresh

    Set qdfOld = Nothing
    Set qdfNew = Nothing
    Set dbs = Nothing
End Sub

Private Sub cmdSaveSQL_Click()
    'this is the button on my form.
    Call CreateQueryDefX(Me.cboQuery, Me.txtNewQueryName,
Me.txtChangeFrom, Me.txtChangeTo)
End Sub

Private Sub cmdListControls_Click()
    'just for listing all the controls on this form that I'm
interested in (all but labels).
    Dim ctl As Control
    Dim strControlList As String

    For Each ctl In Me.Controls
        If TypeOf ctl Is Label Then
            'do nothing
        Else
            strControlList = strControlList & ", " & ctl.Name
        End If
    Next ctl

    'snip off initial ", "
    strControlList = Right$(strControlList, Len(strControlList) - 2)

    Me.txtNewSQL = strControlList

End Sub

If you want, I can send you the form and all the code for it in one
DB, then you can just import the forms/code and just use it. (May be
too hard to explain if you've never done this before!)

HTH,
Pieter


text:
Bob Quintal <[email]> wrote in message news:<Xns952EC2E99A0ADBQuintal@66.150.105.50>...

Perfect (well almost).  This is just what I was looking for!

The only not quite perfect part is that if you spell the new table
name incorrectly you're stuck with:
SELECT [tbl_oops].LastName AS Expr1, [tbl_oops].FirstName AS Expr2,
....
and seemingly without any easy way out of it.

Thanks,
Mary


text:
[email] (Marizel) wrote in
news:[email]:

Always work on a copy of your query :)


author: Paulo Oliveira

subject: Property Window - "Inherit from class" same BUGGGGG in vo2.7a

text:
Hi all,

Is just only my cpoies of VO or they are some others, but in vo2.7a i
can't see my subclasses in the property Window, well i have a lot of
app, and a lot of subclasses to inherit my objects and controls, and
today I give up, my productivity is ZERO,

Please some HELP!!!!

Despaired
Paulo Oliveira


author: [redacted]

subject: Re: Property Window - "Inherit from class" same BUGGGGG in vo2.7a

text:
Hi

It seems it also happens in 2.7b.
All my inheritances in the wed property window have gone to just the
selected one and AUTO.
This could drive me nuts...

What's the solution ?

Regards

Richard


text:
Erik

Yes I guessed that, but it can take up to 30 minutes to do with a big
repo.

AND exporting all aef's, then reimporting and touching as you go is not
much faster really.

Richard


author: Michael Rubinstein

text:
Paulo, it is not your copy of VO and it is not
"Paulo Oliveira" <[email]> wrote in message
news:[email]...


text:
Sorry about the misfired post. Paulo, it is a know issue, irritating,
but by no means a 'killer' issue. It is a strange problem, some inherited
classes seem to stick around, other show up after the class is touched and
recompiled and vanish from the property window next time VO is started.

    Michael

"Paulo Oliveira" <[email]> wrote in message
news:[email]...


author: Jamal Assaf

text:
Paulo,

Try an External Repository Index.

HTH,
Jamal

"Paulo Oliveira" <[email]> wrote in message
news:[email]...