Search results

  1. M

    Anyone here using XSLT?

    I use XSLT at work for two purposes (currently). 1 is to take an XML document and translate it into a PDF (using Apache FOP), the second time I use XSLT is to transform an XML document I received from a web service to translate it into xhtml to display it to our users. I find it very useful and...
  2. M

    Antec Sonata III HD LED?

    I figured it out. Unfortunately, my eyes aren't as good as they used to be. I installed all of the jumpers vertically instead of horizontal (or horizontal instead of vertical, depending on how you want to look at the board). The little tiny numbers on the motherboard weren't as clear as they...
  3. M

    Antec Sonata III HD LED?

    I have an Antec Sonata III case and I just installed the Intel Intel BOXDG33TLM motherboard. I just cannot get the HD LED to work. No matter how which direction I install the jumper the LED never comes on (and I know my disks are in use). Anyone have any ideas? Thanks, Mr_Superstar
  4. M

    returning objects in C++ question

    Hi All, I've got a question about returning a std::string in C++. I have a function defined roughly as: std::string doSomething(std::string input) { std::vector<char> buffer(1000); ... return std::string(buffer.start(), buffer.end()); } As a java programmer, I've...
  5. M

    Bump in trackpad?

    I've noticed something weird with the trackpad on my macbook pro. I didn't think anything about it until I decided to search for it. My issue seems pretty much identical to this post [1] on the macrumor forums, except it's on the right side of my trackpad. For a while I thought it was in my...
  6. M

    Using Recursion to Add

    Nope, it just overflows...
  7. M

    Using Recursion to Add

    This is a very good point that no one has yet replied too. If lf + rt > INT_MAX (assuming signed int's, as in java), the result will overflow and return a negative value. Then, dividing by two will still result in a negative number. Using this as an array index will cause an...
  8. M

    java hw

    Have you learned about string concatenation or StringBuilder (or StringBuffer)?
  9. M

    java hw

    Well, depending on how you write the code, you'll either need a loop & a conditional statement or multiple conditional statements. You'll also need some way of building the final string.
  10. M

    java hw

    It looks like you are on the right track. Perhaps the language of the problem is tripping you up. You're not really "decrypting" the string, rather you're just pulling out some characters in certain positions of the string. Take a look at the String API [1]. Look for methods that deal with...
  11. M

    Java Servlet Question

    Sorry for the delay.. In Resin (from reading the docs), there are two directories that contains web applications. One is called ROOT, which is a special application that's used when you access "/" (or /index.(html|jsp) etc). Other web applications are deployed in the webapps directory. You...
  12. M

    Java Servlet Question

    Is this deployed as the ROOT web application?
  13. M

    Java Servlet Question

    I haven't tried this and I'm not 100% sure it'll work. But, you could try adding this to your web.xml <welcome-file-list> <welcome-file>FCMS/PageView?name=index</welcome-file> </welcome-file-list>
  14. M

    Macbook Pro keyboard issue?

    I installed the keyboard fix a few weeks ago, but I still seem to notice an issue of dropping keys, particularly in iChat. I'll hit a key or two, and sometimes (randomly) it doesn't show up. It's not extremely frequent, but frequent enough to annoy me. Does this happen to anyone else?
  15. M

    Any ffmpeg experts?

    What message is it die()'ing with? Is ffmpeg in the PATH that your webserver is using?
  16. M

    Macbook Pro screen protector?

    I just got the Radtech Screensaverz and it was a little bit thicker than I expected. I was able to close the lid just fine without feeling any resistance, I just wonder if the unnecessary pressure on the LCD over time will damage it (assuming it does actually touch the LCD when closed).
  17. M

    Static Electricity + Macbook Pro

    Do any of you guys have a problem with shocking your macbook pro? I've shocked mine quite a few times now... hopefully it's not hurting anything. The aluminum case looks so nice.. but damn, it hurts. Perhaps I need to quit wearing socks around the house.
  18. M

    Macbook Pro killing wireless network?

    I don't want to push my luck, but I just upgraded from 10.4.10 to 10.5 and everything seems to be working fine when running on AC power. I haven't tried unplugging the laptop yet, I'm afraid to push my luck...
  19. M

    Macbook Pro killing wireless network?

    I just got a macbook pro. Whenever it is running on battery, when my network connection is idle for a few minutes, my wireless network goes down. It takes out the whole wireless network, my other laptop (an HP running WinXP) can no longer connect to anything as well. I have to go upstairs and...
  20. M

    Macbook Pro screen protector?

    I'll be getting my macbook pro sometime this week (or so says the order status). I've seen a few "Screen Protector" products for the macbook pro. Do any of you use and/or recommend them? Thanks.
  21. M

    Java packages question

    Yeah, you can do that with packages without any troubles. The compiler needs to be told where all of your classes live. You need to specify the classpath setting using -cp. You might try the following: javac -cp . -d . .\command\*.java
  22. M

    javascript creating dom nodes then searching for them

    I was able to get it to work with the following: <html> <head> <script type="text/javascript"> function init() { node = document.createElement("div"); node.id = "myNode"; document.body.appendChild(node); alert(node); // try and find the node...
  23. M

    Question about Dijkstra's shortest paths algorithm

    After thinking about it further, I'm also not sure how to fix the heap in less than O(n) time. I was thinking about heapify(), but it runs in O(n).
  24. M

    Question about Dijkstra's shortest paths algorithm

    I know you want a straight-up answer, but that seems to violate the spirit of helping out students on the forum. Anyway... I think you're over analyzing the problem. It doesn't matter if you know which element's priority changed, you can still update the heap in log(n) time. There is one...
  25. M

    programming languages

    I don't know about "dog slow". Have you used java lately? Sure, there is a one-time hit when the program starts, but after that, it's fast. Also, it's not entirely interpreted from byte-code. The JIT compiler uses runtime analysis to compile commonly used methods to native code, which makes it...
  26. M

    Override toString (Java)

    You should be using a StringBuffer or StringBuilder(java 5.0+) instead of using "+" as it's more efficient.
  27. M

    java while loop

    Why exactly do you have to use the previous power of two to calculate the next one? Why not use Math.pow()?
  28. M

    Java ArrayList -> Array

    The document says it returns an array of the same type passed in populated with the elements of the List. It doesn't necessarily use the same array (for example, if the input array is too small, it will create one at runtime of the same type that can accommodate the correct number of items)...
  29. M

    Java ArrayList -> Array

    You have to pass it an array because because the URLClassLoader requires a specific type of Array. The URLClassLoader takes an array of URL, not an array of Object. If you look at the documentation of toArray, you will see that the toArray with zero arguments returns an array of type...
  30. M

    Java, Apache SOAP, and the Return type

    How where you making the request via PHP or Perl? Was it possible they were using GET requests instead of POST?
  31. M

    Dell 6400/E1505 vs. Alienware m5790

    No problem. I was just trying to offer an alternate 15.4" laptop with a nice resolution. Another laptop I've been looking at is the HP Compaq nc8430. It has an ATI Mobility Radeon X1600 with 256MB of memory. It only has a WSXGA+ (1680x1050) max resolution, but I still consider that very nice...
  32. M

    Dell 6400/E1505 vs. Alienware m5790

    I have Dell Latitude D810 from work and I love it (15.4" screen with a 1920x1200 resolution). I'd highly recommend the Dell D820 (the D810 is the old model). Plus, I've heard that if you buy from Dell Small Business, the support is in the US. I just customized a Dell Latitude 820 with the...
  33. M

    Authenticating users for website

    I thinking about doing this in Java and using Tomcat as the servlet container. If I go this route, my work is basically done because I can use container managed security to handle the sessions for me.
  34. M

    Authenticating users for website

    My 'users' table will have a password column hashed by SHA-256. I'm not really worried about users forgetting their password, generating a new one and sending an email to the user is simple enough (although not the most secure system).
  35. M

    Authenticating users for website

    Hi. I've recently decided to develop a website as a personal project. I will be creating a website, and I wanted to know what the best way to store user authentication details. I've seen a few examples that use a 'session' table that stores the session ID, the username, and the IP address...
  36. M

    little help with scheme

    Do you have an AIM account? it might be faster using AIM.
  37. M

    little help with scheme

    Don't give up! (yeah, I know I said I wouldn't be online, I just felt bad leaving someone stranded). Ok, I just re-wrote my solution. Have you learned about 'letrec' yet?
  38. M

    little help with scheme

    I'm going to be getting off of the computer now, so I won't be able to help any more tonight. I do have to say though, one of the great things about scheme is the ability to use simple functions, like tree-reduce and use map, apply, reduce, etc. to build bigger/better functions. One thing you...
  39. M

    little help with scheme

    Yup, write a function called 'flatten' to flatten the list and then use 'apply' to apply the function to the flattened list. Although, this will work on more than just trees. Edit: Ths is actually the wrong solution, because it will ignore one of the two input functions.
Back
Top