Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. michaelkrauklis

    Architecture Question Regarding WCF

    Thanks Chiph! I think ultimately we've decided to do more of a REST style service for the less technical folks, secured with SSL. We'll also make available a webHttpBinding for the WS-* folks. I think this should cover all our needs. Thanks again, Mike K. "If debugging is the process of...
  2. michaelkrauklis

    Animation more fluid?

    Agreed, keying off the key-pressed/released events will be better than relying on the O/S to fire multiple keystroke events. Regarding the double buffering, I've had best results by running two threads, one controlling the model and one controlling the rendering. Basically you have a handle to...
  3. michaelkrauklis

    Architecture Question Regarding WCF

    Hello All, I'm currently developing an API that will be used by our current clients, as well as future clients yet to be defined. We would like this API to have the ability to be secure, so the built in features for WCF seemed like a natural fit. Unfortunately our current clients are running...
  4. michaelkrauklis

    Classpath and Path problems

    That really depends on the scope of the application. If you're going to set up the application as a service that will run for all users, they should be system variables. If you're just doing testing on a development box (particularly a box that could have more than one user) you should make...
  5. michaelkrauklis

    stripping numbers from strings

    True, but Wyald didn't specify that it would be used only once either. Generally a requirement like this is repeated, but not always. myenigmaself "If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra
  6. michaelkrauklis

    HashMap contains method without Case senstive generating problems

    timw - that's a good idea but since String is final you would have to write a true wrapper. If you're doing that you might as well wrap/extend HashMap. It's much simpler that way in terms of re-use. myenigmaself "If debugging is the process of removing bugs, then programming must be the...
  7. michaelkrauklis

    Classpath and Path problems

    Try specifying the classpath as an argument to the application rather than a system variable. e.g.: java -classpath ".;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;c:\program files\Microsoft...
  8. michaelkrauklis

    stripping numbers from strings

    If you really want to leverage regular expressions and you're going to be using this function more than once then you should be employing the use of the Pattern class. Using String.replaceAll re-compiles the regular expression every time the method is called, which is hugely inefficient...
  9. michaelkrauklis

    stripping numbers from strings

    One command isn't always best. It's elegant, I give you that, but it also causes a regular expression evaluator to be created, which causes overhead. If this function was only going to be used once per JVM the REGEX overhead would be overkill, but if the application called the function 10000s...
  10. michaelkrauklis

    Client Error

    I'm trying to write a client that interfaces with a WebSphere instance and I'm getting the following error: java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr This is coming from the code: ResourceBundle rbConnectionProperties = ResourceBundle...
  11. michaelkrauklis

    Need code to read text file from a zip file

    better... // Written by W.Buchanan, 2003 import java.io.*; import java.util.zip.*; public class unzip { public static void main (String argv[]) { try { BufferedOutputStream destination = null; FileInputStream finps = new FileInputStream(argv[0]); ZipInputStream zipinp = new ZipInputStream(new...
  12. michaelkrauklis

    Need code to read text file from a zip file

    CharArrayWriter writer = new CharArrayWriter(); for(int i1 = 0; i1 < unzippedByteArray.length; i1++) { writer.write(unzippedByteArray[i1]); // System.out.println(&quot;SS:&quot;+unzippedByteArray[i1])...
  13. michaelkrauklis

    Problem definition: My java

    Just a quick note, the final solution will only work with text files. It will give indeterminate results with binary files. Stick to streams with binary, readers and writers are for text files in which you know the encoding. MYenigmaSELF:-9 myenigmaself@myenigmaself.gaiden.com...
  14. michaelkrauklis

    Volume Capacity

    Does anyone know how to check the capacity/usage of a given volume? All I have is the path. I know you can check at least the capacity with JConfig, but I'd like to do it without purchasing additional software. MYenigmaSELF:-9 myenigmaself@myenigmaself.gaiden.com http://myenigmaself.gaiden.com...
  15. michaelkrauklis

    String problem

    I'm having a problem; I'm getting an Invalid Cast exception thrown when I try to add strings. Here's the code: string user=&quot;SELECT Password FROM InternalUserPwd where UserName = '&quot;+usr+&quot;'&quot;; if(checktype) { user+=&quot; and UserType = &quot; + type.ToString(); user+=&quot...
  16. michaelkrauklis

    XML Xerces Validation using SAXParser &amp; Schema

    I don't think I have any weird namespace things going on. They're pretty standard files, both the schema and the xml document. I'm trying to get some basic validation working before I move on to anything harder. Both the xml document and the schema I'm using can be found in...
  17. michaelkrauklis

    Xerces in VC++

    If anyone has any experience using xerces-c in c++ I have a question to ask about validation using SAXParser and schemas. Thanks. MYenigmaSELF:-9 myenigmaself@myenigmaself.gaiden.com http://myenigmaself.gaiden.com &quot;If debugging is the process of removing bugs, then programming must be the...
  18. michaelkrauklis

    XML Xerces Validation using SAXParser &amp; Schema

    The schema path is correct(both the schema file and the xml file reside in the same directory as the application), and the xml file is a generated sample file created automaticaly using XMLSpy, so I know the xml file should be valid. Has anyone had any luck passing a SchemeValidator object to...
  19. michaelkrauklis

    XML Xerces Validation using SAXParser &amp; Schema

    I'm having a problem validating an xml file using a Schema and the Xerces SAXParser. The code is as follows: parser = new SAXParser(); parser->setDoNamespaces(true); parser->setValidationScheme(SAXParser::Val_Always); parser->setValidationSchemaFullChecking(true)...
  20. michaelkrauklis

    xerces VC++ installation

    haha, man, it's weird how almost every time I pose a question I answer it within minutes of asking. for anyone interested I simply had to add xerces-c_1.lib to the object/library modules. I thought that was implied, but alas, I was incorrect. hopefully that was the only snag I'll run into...

Part and Inventory Search

Back
Top