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!
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...
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...
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...
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...
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...
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.
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
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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.