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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by daniel135

  1. daniel135

    a question of politics & Ethics

    In another thread, I believe it is CajunCenturion that refers to the latin etymology of Ethics as referring to "Character". I believe that behaviour definitely shows good character. Kudos!
  2. daniel135

    a question of politics & Ethics

    Of all the solutions proposed, getting another job, offering to handle the website and telling the boss you can't cover his ass are those I prefer. They show more courage than the usual anonymous tip. These can lead to very poisonnous work environments with too much distrust... they have to be...
  3. daniel135

    Strings - Find and Replace

    lol... yeah, still that's exactly the situation I'm in... would really like to use the nice features in 1.4, but can't (using WebLogic). PieterWinter- thanks for this (you get a star!). I knew my version had a bug in it (not at all likely to affect us though), but just haven't had the time to...
  4. daniel135

    java compile option to make an applet signed

    methinks you're looking in the wrong place.. try signing the jar instead
  5. daniel135

    Compile option for Applet to look signed

    What you're looking for is signing a jar: http://www.google.com/search?sourceid=navclient&q=sign+jar
  6. daniel135

    Base64 decoder in ServletOutputStream truncated

    The following code snippet only sends back the first 4 bytes of a .zip file, has an error with .doc but spits out a whole entire text file... import com.oreilly.servlet.Base64Decoder; private void testStream(HttpServletRequest req, HttpServletResponse res) throws ServletException...
  7. daniel135

    Strings - Find and Replace

    sorry, I don't. I would recommend upgrading to Java 1.4 if at all feasible. I can't yet, so I'm sticking with this code, however much of an ugly patch it may be. It is only used for replacement on variables such as $DATE$, where there is no risk of encountering an infinite loop. If you can't...
  8. daniel135

    going from SCJP to SCJD -- tips?

    I just passed the SCJP yesterday, and am thinking about trying to pass the SCJD next... any tips? I've only got about a year's programming experience (6 of them in Java), and no formal CS studies. I used Mughal & Rasmussen's A Programmer's guide to Java Certification. I wonder if I have enough...
  9. daniel135

    Have site launch IE full screen

    try the JavaScript forum... you might have more luck there!
  10. daniel135

    pass null to int field of method

    How about just passing (int, int, Integer)? If you are using a PreparedStatement, remember to use setNull(). (If not, what are you using?)
  11. daniel135

    Uploading???

    How about packaging it as a jar and leting people download it? you could provide screenshots on the website.
  12. daniel135

    How to convert String input to Float ?

    It's in the Javadoc for Float: static float parseFloat(String s) Returns a new float initialized to the value represented by the specified String, as performed by the valueOf method of class Float.
  13. daniel135

    Record Locking in JAVA

    you shouldn't have to keep track of that in the Java part... that's the job of the database.
  14. daniel135

    converting an array of bytes into a (usable) string

    String has a handy constructor just for that: String(byte[] bytes) Constructs a new String by decoding the specified array of bytes using the platform's default charset. For future reference: http://java.sun.com/j2se/1.4/docs/api/index.html
  15. daniel135

    automating routines

    Easiest is probably a batch file... if you want to use Java, pay close attention to the File class. Good on you for being lazy and wanting to automate dumb tasks. Laziness is a programmers' greatest virtue!

Part and Inventory Search

Back
Top