Recent content by Xeno8

  1. X

    Preperation for College

    [Lethal] > IQ can only get you so far in life. That's funny; I always thought that the take-home lesson was that a high-enough IQ trumps just about every other shortcoming. I mean, it's not like STL's blind zealotry or social indelicacy held him back in the real world; Microsoft recruited him...
  2. X

    Preperation for College

    The personal site of STL might interest you. He was the valedictorian of his class and had some amazing test scores: # SAT I: 1600/1600 (sophomore year), 1480 (freshman year; 730 math, 750 verbal) # ACT: 35/36 (late junior year), 34 (early junior year), 31 (freshman year) # SAT II Math IIc...
  3. X

    anyone good at recursion stuff v.c++

    I came up with a very succinct, recursive solution that solves the problem in O(n). I'll give you some hints about the function I wrote. Its signature (in Java) is: public static int maxSequenceLen(int[] array, int begIdx) For the example array you gave, the function is called 8 times and...
  4. X

    Z-5500 speaker cable confusion

    Hi, I was looking at the Z-5500 on Newegg and I found 2 different speaker wiring designs: In the top image, the speaker cables are hard-wired to the speakers and they plug into RCA-style input plugs on the subwoofer. In the bottom image, the speaker cables are not hard-wired and the...
  5. X

    intel X25M G2 - $249.00 In stock at MWave @ 2:05PM MST

    Hot damn, thanks for the find! I ordered two of them with 2 day shipping for $509.41. Also, this deal is most definitely [H]ot, considering that demand for these drives has driven up their price at Amazon (the only other retailer that seems to have them in stock right now) to $329.99. Even...
  6. X

    Where to Buy 920 D0 Stepping?

    http://www.antaresdigital.com/customer/product.php?productid=16135&cat=282&page=1
  7. X

    Programming - Learn First?

    To add to mikeblas's explanation, many programmers assume that garbage collected languages like Java and C# can never leak memory. That's not true! Consider this example from Effective Java, 2nd Ed.: // Can you spot the "memory leak"? public class Stack { private Object[] elements...
  8. X

    Java code: Limiting float values to 2 points past decimal.

    You want printf. Here's some example code: float value = 1234.56789f; System.out.printf("%.2f", value); // Prints "1234.57" Incidentally, there's an expression in your code that's just begging for trouble: acreage = (length * width) / 43560; Since all values in the expression are...
  9. X

    Visual c++ vs c++

    [CreganTur] > I can't speak on building visual applications via C++. > I imagine it can be done, but would take a lot of work. I don't think you can use Visual C++'s spiffy GUI builder to create an unmangaged C++ GUI. You can use Qt's though, which is also very good.
  10. X

    java project works fine in netbeans but not from cmd prompt

    Netbeans has that feature, except they call it "live parsing". Any time the background compiler detects an error, it underlines the offending line in red. In the margin at the left of the line, a light bulb icon appears that you can click to pop up a list of suggestions to fix the problem...
  11. X

    java project works fine in netbeans but not from cmd prompt

    Netbeans vs Eclipse is like vi vs Emacs: both are good, it just comes down to personal preference. Besides, most Netbeans detractors haven't tried a recent version. Its editor used to be clearly inferior to Eclipse's. Now it's not.
  12. X

    C++ Linked List problem

    In a singly-linked list, I can't see a way to do what you're asking with less than 4 pointers. In a doubly-linked list, on the other hand, you could get by with 2. EDIT: Scratch that; I figured out a way to remove the minimum element from a singly-linked list using only 2 pointers. The trick...
  13. X

    java project need assistance

    For what it's worth, the way to fix the code I suggested is: File jarFile = new File(Main.class.getProtectionDomain().getCodeSource().getLocation().toURI()); I forgot that you structured your program in a goofy way such that all methods were static.
  14. X

    java project need assistance

    [King_Weaver] > I need it to always save the file in the same directory as the .jar file Believe it or not, what you're asking is very difficult to do in pure java. There's a thread about it on the Sun forums: http://forums.sun.com/thread.jspa?threadID=611734&messageID=3370212 It seems...
  15. X

    java project need assistance

    From what directory are you running the program? "user.dir" will vary depending on what directory you're in on the command line when you invoke java.
Top