- Strength to Increase Rep
- +17
- Strength to Decrease Rep
- -4
- Upvotes Received
- 1K
- Posts with Upvotes
- 872
- Upvoting Members
- 376
- Downvotes Received
- 47
- Posts with Downvotes
- 39
- Downvoting Members
- 35
A simple man with simple needs.
- Interests
- Daydreaming, contemplating, sulking, anime and programming; in that order.
Re: Few points: [LIST=1] [*]close() calls should always go in the "finally" blocks [*]Never use System.exit() to duck out in case of failure. If your code is used in a large/big setting, exitting the JVM in case something fails isn't pleasant. Boolean returns are your friend. [*]Always check the return status … | |
Re: [quote=jd_1604;285142]District cricket is a good excuse to have a drink[/quote] Drink all the booze you want to. | |
Re: 264 Huh, what's this all about? ;-) | |
| |
Re: > i want to trace these button events. You can't trap this event. | |
Re: > b = (one)a; `b` and `a` are of reference type ArrayList but you are trying to cast them to type `one` and hence the error. BTW, instead of posting large code snippets it would be better if you explained "what" you wanted to do and a small code snippet … | |
Re: Have a look at [URL="http://www.daniweb.com/community-center/daniweb-community-feedback/threads/300989"]this topic[/URL] which talks about something similar. AFAICT, ignore list is the closest you can get when it comes to "blacklist". | |
Re: FLCL Naruto Samurai Champloo Innocent Venus Black Lagoon Death Note Ouran High School Host club Air Gear D Gray Man Black Blood brothers and many more.... :D | |
Re: Considering you have no programming expericence, any advice we give you would go for waste as you would have having no clue as to how to realize the idea. Learn a programming language of your choice. Maybe then you would be in a position to actually achieve something. | |
Re: Instead of directly pointing out the answer, I would like to help you understand the technique for tackling these sort of issues (which are very common when programming anything). So basically you have a problem statement and the code written to solve it. But, like code written by most programmers, … | |
Re: > for some reason the file doesn't start with a eof character does it? EOF isn't a character, this is one of the reasons why the [ICODE]read [/ICODE]method in Java and the [ICODE]getchar[/ICODE]/[ICODE]fgetc [/ICODE]function in C returns an [ICODE]int [/ICODE]instead of a [ICODE]char[/ICODE] [hint: since char is unsigned, there would … | |
Re: You cant as such check for such conditions in case of a simple sort like bubble sort. Take for eg. this array. 1 2 3 4 5 6 8 7 During the first seven passes no swap is performed since the next number is always greater than the current but … | |
Re: > Write an image editor. Java has an extensive image manipulation API. You have got to be [URL="http://paulbuchheit.blogspot.com/2007/05/amazingly-bad-apis.html"]joking.[/URL] ;-) | |
Re: > Should I use simple ArrayList or HashMap as I need to pass selected > checkbox values... Just ensure that all your checkbox elements have the same name and then use the [icode]HttpServletRequest.getParamterValues('elementName')[/icode] to retrieve a String array containing the list of item id's. | |
Re: I would say extremely quiet... BTW Dani the link to Daniweb API in your signature is broken. | |
Re: If you are on MS Windows, save yourself the trouble and install the Anaconda python distribution which comes with a native package manager called `conda`. Things which are extremely difficult to install on windows (e.g. Numpy, Scipy, Intel MKL dependencies) become a breeze without having to deal with weird dependency … | |
Re: > Interesting. I would have imagined it was much, much higher. I believe that most of the folks "landing" on Daniweb are looking for a solution to some technical problem. Given that most of the programming happens on a laptop/desktop, we have too few mobile users. There is a high … | |
Re: Rather than a mass email (which can easily get lost due to folks not correctly configuring their mail account with old Daniweb), I believe there should be a sticky post/blog post accessible from the login page *before* someone has logged in. I'm surprised you haven't got a active blog given … | |
Re: > , the other is a scripting language, which can only run front-end in a webbrowser. This isn't true; look at [Node.js](http://nodejs.org/). It provides all the API calls required to do I/O (network connections, read/write files etc.), integrate with other C/C++ API's out there (by writing node.js libraries which wrap … | |
Re: Try using the RandomAccessFile in read mode.[code] public class MainTest { public static void main(String args[]) throws Exception { RandomAccessFile in = new RandomAccessFile("file.txt", "r"); String line; while(true) { if((line = in.readLine()) != null) { System.out.println(line); } else { Thread.sleep(2000); // poll the file every 2 seconds } } } … | |
Re: > Is there a way to display the source of the iframe or the html file > that is being displayed in the iframe in the web browsers address > bar? AFAIK, no. It seems pretty logical that the URL in the address bar doesn't change given that the user … | |
Re: Except that don't use == operator for comparing strings; use the equals/equalsIgnoreCase method instead. | |
Re: It is worth noting that though those two things ( <typename T> and <class T> ) are interchangeable in most of the cases there are some senarios where you must use [I]<typename T>. [/I]Eg. Suppose you want to create a templated class with something like this: [code=cplusplus] template < class … | |
Re: Apache POI is a pretty well known library for creating `.doc` and `.docx` files. If you do a search for "doc to pdf java" you'll come across few open source libraries (not well known) which can do this. Assuming you are not doing any fancy coloring/formatting, I would recommend writing … | |
Re: There is no authorative site which lists all projects in need of help. One option would be to visit https://github.com/trending?l=java , look at projects which catch your fancy, drop a mail to the owner if he/she is interested in your contributings and fire away. The "github" way of contributing has … | |
Re: I switch between projects and I find keeping a note of the current state of things helps. I use the Microsoft OneNote for this but I think any basic text editor should do the job. As far as working with code is concerned, in case I need to drop off … | |
Re: > One thing is for certain. Daniweb was bleeding users with the old forum based interface I think this was because the old forum based interface was still very different from the traditional forum based interface offered by many other web sites. The new interface shares the same problem. I … | |
Re: I see the same; probably a bug. |