• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dxoigmn

#1
.NET Platform / Re: [C++/CLI] Compiler Error C2352
September 01, 2006, 07:45 PM
Quote from: Dyndrilliac on September 01, 2006, 05:24 PM
Unfortunately, it doesn't mention how one would go about calling a non-static member method from outside the class as a non-static function.

You create an instance of that class and call the member method.

Quote from: Dyndrilliac on September 01, 2006, 05:24 PM
I got the error on this code:frmMain::AddDebug(szTextBuffer, Drawing::Color::Red);Can anyone clarify why the compiler thinks I am trying to call a static method, and what to do about it? Both class member-methods are non-static and public.

Going by what you're telling us, it sounds like frmMain is a class (not an instance of a class). You need to create an instance of frmMain, then call the method from that instance. You're also using the scope operator which, in this case, is used to call a static function.
#2
.NET Platform / Re: C# 2 -- ParamArray?
August 19, 2006, 10:14 PM
Use the params keyword.


private void addChat(System.Windows.Forms.RichTextBox rtb, params Object[] data)
#3
Quote from: rabbit on August 11, 2006, 11:55 PM
Not in sweeeeet first class.  They even give you all your drinks in crystal glasses!

US Airways doesn't do that anymore (occasionally I have gotten glassware) :( I don't know about the other legacies, though. I would suspect most of them cut back on the glassware after 9/11 (for monetary, not security reasons).
#4
Quote from: Topaz on August 11, 2006, 07:00 PM
You buy beverages from the airline. How do you think they make money?

Most airlines give you free drinks, but they do charge for alcohol.
#5
General Discussion / Re: GRE
July 24, 2006, 07:03 PM
Quote from: Yoni on July 24, 2006, 05:21 PM
Generic routing encapsulation? How does that help?

Bah @ you. But I guess I'll clarify...Graduate Record Examination.
#6
General Discussion / GRE
July 23, 2006, 12:45 AM
Anyone taken this? I have been looking into graduate schools lately and it seems a lot of them require the GRE along with the CS subject test (I plan on continuing with CS). How much preparation should I put into it? I get the feeling that it is similar to the SAT in that the questions are not particularly difficult, but in order to do well on the test it is a matter of learning how to take it. Any other tips/suggestions/etc?
#7
Microsoft is probably more interested in the winternals tools, so I doubt we'll be seeing the sysinternals tools go away.
#8
Quote from: MyndFyre[vL] on July 14, 2006, 12:28 PM
Now see, I don't know why I didn't think of a hashtable.

What are the memory considerations between a hash table and a B-tree?

Also, rabbit, there is a distinction between a binary tree and a B tree.  I don't remember what the distinction is - I think a binary tree is just not balanced and so it can get really long leaves.  Right?

Space(hash table) >> space(b-tree). Of course this all depends on your hash function. If you IDs are unique and constrained to a small range, then the hash table will use less memory than the B-tree.

A B-tree is simply a balanced binary tree.
#9
Quote from: MyndFyre[vL] on July 13, 2006, 09:32 PM
I have a lot of records sorted by an integral ID.  I don't really care how long it takes to populate the tree, but it needs to be fast to find records.

Are the IDs unique? Are they constrained to some range? A hash table will be the fastest for lookup (i.e. constant time) but might use too much space. Typically any sort of tree structure will take logarithmic-time to lookup and in the worst case linear time if the tree is not well balanced (i.e. in the case of a vine).
#10
Depends on how your define "fastest."
#11
General Programming / Re: *nix shell scripting
June 26, 2006, 04:40 PM
Why not:


cd "$*"; ls;

#12
It should be random, otherwise people can create accounts with fake email addresses if they figure out your scheme.
#13
General Discussion / Re: ACT
June 09, 2006, 11:35 AM
Quote from: warz on June 09, 2006, 10:50 AM
The ACT was a joke, even though it is the most widely accepted college entrance exam. I got an over all grade of 28 (out of 36) on the ACT, which was really good, but my SAT score outweighted it, so I used the SAT score for most college applications.

Wouldn't this imply (in your case) the ACT was more difficult than the SAT?
#14
General Discussion / Re: Global Warming?
June 03, 2006, 08:34 PM
Good article in Scientific American by a former skeptic:

http://www.sciam.com/article.cfm?articleID=000B557A-71ED-146C-ADB783414B7F0000
#15
Quote from: rabbit on May 18, 2006, 07:48 PM
Windows does it, and based on what's been said, that's the primary platform, so that's what I went with.

http://blogs.msdn.com/oldnewthing/archive/2004/01/14/58579.aspx

Quote from: Topaz on May 19, 2006, 01:23 AM
6. What is the equivalent of the switch/select case statement in Python?

(Python is great so far, but I've been needing to read a lot of documentation as well as code so I know how to use so-so function :))

http://www.google.com/search?hl=en&q=python+switch&btnG=Google+Search