- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
25 Posted Topics
Re: Java class construct: [CODE] public class Foo { private String datum; private int datum2; private void helperMethod() { ... } public String exposedMethod(int param) { helperMethod(); } public void main(String[] args) { //Special method invoked when java Foo is run; } } [/CODE] You need to study the Java syntax … | |
Re: You should also remove the javascript code because it will be blocked or flagged as a virus by email clients. | |
Re: You can send SMS messages anywhere you can send email. You need to know the user's carrier (e.g. Verizon, Alltell, Sprint, AT&T, etc) and then you can lookup the carrier-specific email suffix to use. For example (PHP, but can be adapted to JSP quickly): [CODE] switch ($cair) { case "1": … | |
Re: I think you asked the wrong question...what CAN'T be built by Java is probably a more answerable question. Here are a few apps I would consider questionable in Java: - High speed graphics rendering - Real-time embedded systems (e.g. medical devices) - Anything you'd run on pre Windows XP machines … | |
Re: +1 for the above. Understand what it is you want from the UI and then you can figure out the behavior in the code. Usually, you respond to single button events--clicked (that's it). If you're getting multiple clicks in a short time, disable the button after the click until your … | |
Re: I'd suggest removing the overloaded operator= and try it again. Why are you overloading it in the first place? | |
Re: Deprecation warnings are telling you that the API you're calling has been marked as unsuitable for long-term use. Generally, the documentation for that class will tell you what should be used instead--consult the Javadoc for the object you're using in your program and it should shed some light on the … | |
Re: Permissions are cumulative and DENY takes precedence. REVOKE removes GRANT and DENY permissions previously assigned. Because all users are members of public, you should DENY permissions to public only when you want to prohibit access by all database users. Hope that helps. | |
Re: IPN with PayPal is not as hard as it sounds...There's a great PHP library out there that supports it with reasonable docs: [URL="http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html"]Micah Carrick's Paypal Class[/URL]. I put this on my site and the IPN code is pretty straightforward, but you may want to read the PayPal documentation about the … | |
Re: Short of compiling and running your program for you, I think there are two things you could do to figure this out yourself: 1) Put in System.out.println() in the loop for drawLine() and see what is happening. And if you don't get it called, I'd put it outside the loop … | |
Re: If you're looking for examples, try Duke's Pet Store. That's a complete JEE solution for SaaS. However, I wouldn't suggest turning that in as your project. Google is your friend. :) | |
Re: There are lots of books available out there. If you were going with Java, I'd suggest Doug Lea's books. Conceptually, you'll need the info there no matter what language you use. But if you're looking for C++ specifically, may I suggest a tutorial on [URL="http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html"]POSIX threads[/URL] as a starting point? | |
Re: You can do that above, but simply adding a quoted space should suffice as well: [code] echo '<p>' . $customer_forename . " " . $customer_surname . [/code] Never use a hammer when a screwdriver will do. | |
Re: [QUOTE=codemaker;1038134] 1- If It's a sendmail problem, would you provide me with the solution? 2- Is the mail function can be used to send a large about of mails to the subscribers? and if It's not, Would you please suggest another way to send a large amount of mails? Thanks … | |
Re: You might also try looking up online cron services: [URL="http://www.google.com/search?q=Free+Cron+Jobs"]http://www.google.com/search?q=Free+Cron+Jobs[/URL]. I know which one I'd pick. ;) | |
Re: In addition to the "break" comment above, which is dead-on, you also can't catch the same exception twice in a try clause...you're catching IOException a second time after the break. | |
Re: You might also try appending "> /tmp/cronout.log" to the job to see if you get any error output from the execution. Could be a problem with the environment that the script is running in, too. | |
Re: Specifically, you should use: [code] Calendar now = Calendar.getInstance(); int year = now.get(Calendar.YEAR); [/code] Alternately, if you need the date formatted in various strings, you should use the java.text.SimpleDateFormat class. Google it and the Javadoc page has lots of details about how to use it... | |
Re: Not sure if the cron environment or the crontab itself will support the use of scp in that shell the way you want to use it. I'd suggest pulling the scp command out into some script file and then running the script, after you explicitly set any required or assumed … | |
Re: It's because of the float casting. Double is the native floating point type in Java and you should try to maintain your calcs in that if you want to maximize accuracy. | |
Re: Can you post the error and code you're using to make the call? | |
Re: Short of storing the old value in a hidden text field, you're out of luck on this one. The user input gets rid of the old value and there's no DHTML event that carries the old value around...only the new one. | |
Re: Arrays are static--once you allocate them, they're pretty much stuck at that size. If you need a dynamic list, use ArrayList instead. Converting to an array is simple, use toArray(<type>) whenever you need to output. | |
Re: Might also help to dump the output of each cron run to a log file in case it is running, but giving you an error by appending "> /tmp/crondaily.out" (one for each). |
The End.