3,892 Posted Topics
Re: IMO, the replies to the query posted by 'kaninelupus' have been a bit too harsh. After all it is the very purpose of the 'Daniweb Community Feedback' to help out the forum members regarding any sort of forum queries. Though I agree that the way the question was phrased seemed … | |
Re: A few observations: [LIST] [*]It seems that you are using an IDE for developing this project. It would be nice if you would format the code so its easy on the eyes. If using Ecilpse, use CTRL + A to select the code and then press CTRL + SHIFT + … | |
Re: Hi there, welcome to Daniweb. :-) In case you need help with any topic, consider posting in the concerned forum rather than hijacking other threads. You can ask questions related to the XHTML markup in the [URL="http://www.daniweb.com/forums/forum143.html"]HTML and CSS[/URL] forum. Consider asking specific questions, something like, I've done XXX in … | |
Re: >Does everything need to be Twitified?? Maybe; who knows. >Isn't that info available to any regular user of the site? Not exactly; Daniweb hasn't exactly got a specialized forum for publishing daily alerts or notifications. So, if you end up subscribing to a general purpose forum like "Daniweb Community Feedback", … | |
Re: Sad to see you leave Mel; hope you would take a good amount of rest and spend some quality time with Miss AD. :-) | |
Re: >Would Ruby be a good choice? Yes, given that it's not just another scripting language but a fun language which *has* an enterprise standing. Ruby seems to be living up to its name of a "fun programming language". So IMO, Ruby and Clojure if you are going for dynamic programming … | |
Re: Pure Java solutions / libraries for converting videos to different formats might be a bit hard to get by. There are a lot of open source / free converters out there [like ffmpeg] which you can use in conjunction with your application to achieve the desired task since re-writing the … | |
Re: >that some couple getting married Agree; marriage is surely a crazy thing! :-) | |
Re: >I'm having a problem adding the sockets correctly to the list because >its passing the thread to the list by value... In Java, object references are passed by value or in simple terms, Java has pass by reference when it comes to objects. Posting a bit of code to highlight … | |
Re: Thank you all; I really appreciate the trust Daniweb members have placed in me. Looking forward to a better Daniweb with your help and support. :-) Oh and btw, the green color doesn't look that good; would have preferred something dark like black with red outline. ;-) | |
Re: >any help to understand how/why the above works would be much >appreciated. The problem you are facing could be very well because of a broken library implementation. From what I can make out of the stacktrace, the implementation blows up when trying to convert the value of your object field … | |
Re: [quote=WoBinator;294984]ive written and comiled the "hello world" thing using Dev-C++ when i run the exe, a dos-like window pops up for half sec and dissapears...wtf? ive read and reread over what i am meant to do...?!?!?! is that whats meant to hpn?[/quote] The program is doing exactly what it is … | |
Re: >The Java platform supports a simple, deterministic scheduling >algorithm called fixed-priority scheduling Any official links? AFAIK, the JVM specification makes no such claim and leaves the details entirely to the implementation. I personally would be rather cautious in accepting anything which isn't stated in the official docs/ vm specification. | |
Re: With the configuration given, I don't think there should be any problems with using IDE's like Netbeans or Eclipse. Are you using Windows as your primary OS? That might explain a lot of things. :-) If your OS ends up eating a lot of memory by running a lot of … | |
Re: >oh oh i just did that cuz eclipse wants me to for some reason. If your class implements Serializable, you ought to provide it a unique identifier; the java compiler raises a warning if you don't do so. By using [icode]@SuppressWarnings("Serial")[/icode] you basically suppress that warning; not a good thing … | |
Re: [QUOTE=Evil_genius82;929679]I tried Collections.sort but i get this error: Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: assignment2009.studentClass cannot be cast to java.lang.Comparable The arraylist i want to sort (studTranArray) contains a string and an integer. While the example only shows a string being sorted... is there a way to select the variable type … | |
Re: If memory serves me right, this is a known bug wherein if the dimensions of the image exceed certain pixels, the uploading fails and the upload window goes blank. Edit: Aha, I think I found the [URL="http://www.daniweb.com/forums/post920099-1.html"]link[/URL]. Read the sixth paragraph. | |
Re: > How can I get certain html text input fields to appear disabled, and the text that's inside > un-editable or unchange-able? You have got to realize that 'disabled' doesn't mean or equate to 'readonly'. Both these properties disallow the user from editing the entered text but the real difference … | |
Re: Specify your classpath using backslashes and not forward slashes. Also, it would be better if you first tried this thing out by creating a new folder test and placing your class file along with the JAR file in that directory.[code] c:\Test>java -cp your-oracle-jar-name.jar YourClassName[/code] | |
Re: Read the Javadocs of the classes [icode]ResultSetMetaData[/icode] and [icode]DatabaseMetaData[/icode] for more details regarding your database/table etc. A simple web search for these classes might give you sample snippets on how to go about using them. | |
Re: @hajjo Try the Spring download [URL="http://www.springsource.com/download/community"]here[/URL]. Download 2.5.6 which is the current production release for Spring. Also, give the Spring [URL="http://static.springsource.org/spring/docs/2.5.x/reference/"]official documentation[/URL] a shot along with the myriad of books available on Google Books for preview. It must be enough to get you started. | |
Re: You might want to look into the Java XML API, W3C DOM API and its implementations like Xerces. The Xerces XML parsing library comes bundled with your Java runtime. A simple Xerces program:[code] public class Test { public static void main(final String[] args) throws Exception { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); … | |
Re: >Would it make sense to add a new forum to separate it? No, seriously. Been there, done that; it causes more problems than solving any. | |
Re: >how do u create a 3d model in java? You normally don't *create* 3D models in Java; you use a 3D modeling tool like Maya[commercial], 3DS Max[commercial] or Blender[free]. This model is then loaded and rendered in your application using a rendering API like [URL="https://jogl.dev.java.net/"]JOGL [/URL]or a game engine like … | |
Re: This thread has gone *way* off-topic. If all you guys want to do is chat about how expensive the standard of living in country XXX create a new thread; this one's dead until some higher-up feels that there is a reason this thread should continue to exist. | |
Re: >I was thinking that i would have to store each line in a array and >just calling it by the number in that array. Storing the data/lines which won't be used has little meaning; you can just read lines and keep skipping them until you read the line you require … | |
Re: [quote=cscgal;301828]Two questions rolled into one ... what is the difference between Virtual Memory and a Page File[/quote] You are getting confused -- Paging is a mechanism used to implement the concept of virtual memory. Paging is a mechanism in which the entire virtual memory is divided into pages -- pages … | |
Re: > instead of accessing the images as collection items, use document.getElementById('imageID') Actually it's the other way round. Instead of traversing the DOM tree it's better to use the images collection which holds a reference to all the images object in the document. | |
Re: They are called '[URL="http://onestepback.org/index.cgi/Tech/Ruby/SymbolsAreNotImmutableStrings.red"]symbols[/URL]' in Ruby. | |
Re: You can use the [icode]URLConnection[/icode] class or the Apache Commons HttpClient library to retrieve the HTML generated by your JSP; pushing it into a StringBuffer/StringBuilder is just a matter of reading the HTTP response stream. | |
Re: > I fixed that for you. You shouldn't, really. You just proved his point. :-) | |
Re: Something like [URL="http://blog.arc90.com/2006/07/introducing_link_thumbnail.php"]this?[/URL] | |
Re: > I'm calling shenanigans. Maybe a time will come in the near future when you would have better things to do than worrying 'bout rep, and yeah, of course calling shenanigans. :-) | |
Re: Try [icode]writeTo[/icode] method of the SOAPMessage abstract class: [icode]message.writeTo(System.out);[/icode] | |
The 2009 Summer Anime Preview is [URL="http://www.animevice.com/news/the-long-hot-anime-summer-2009-summer-anime-preview/1586/"]here[/URL]! Sadly, not many of these look promising to me except: - Umi Monogatari ~Anata ga Itekureta Koto~ - Tokyo Magnitude 8.0 - Spice and Wolf II - Princess Lover! From the ones mentioned, I've seen the first episode of Princess Lover and it … | |
Re: The most simple approach would be to put logging statements in your setter methods of your value objects i.e. Employee, Company, Address etc. However if all you need to do is log the old and new values i.e. the same thing for each value object, you might consider looking into … | |
Re: What is the output of [icode]rst.getString("imagePath")[/icode] and [icode]rst.getString("imgName")[/icode] ? BTW, you shouldn't store absolute paths in a database table; consider the problems you would face when migrating your application. Use relative paths like:[code] image-path: shadbaz/mygallery/myfolder/ image-name: Eyes.jpg[/code] and arrange so that your parent folder is stored as a configuration in … | |
Re: Though I'm not exactly the 'powers that be' let me hazard a reply. One of the reasons pics in snippets are not allowed since they are not present in any of the online code snippet repositories out there. Take a look at [URL="http://snippets.dzone.com/"]DZone snippets[/URL]. Another reason that I can think … | |
Re: > Because I cannot subsequently open a FileReader connected to > that file. You might consider using getResourceAsStream() if all you want is to create a FileReader instance. | |
Re: > ok so i want to read a .txt file line by line. Since you are reading textual data, consider using a BufferedReader wrapper up in [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/io/LineNumberReader.html"]LineNumberReader[/URL] to ease your task. | |
Re: > Garbage collection happens only when there are exactly zero > remaining references Not exactly; circular references are also garbage collected. More specifically, objects are eligible for garbage collection if there exists no reference from a live thread to that object. | |
Re: If you can afford eager loading, a better way would be to declare your singleton instance as:[code] public class MySingleton { private static final MySingleton instance = new MySingleton(); private MySingleton() { // initialization code goes here } public static MySingleton getInstance() { return instance; } public void doSomething() { … | |
Re: You need the mail.jar in your classpath; you need to download the JavaMail jars if you already don't have them. You would also be needing the Java Activation Framework libraries [activation.jar] if you are not using Java 6. | |
Re: Also, no need to do [icode]calendar.setTime(time)[/icode] ; the new instance of the calendar has the current time. BTW, if you find yourself fiddling around a lot with time related methods in your application, take a look at [URL="http://joda-time.sourceforge.net/"]JodaTime[/URL]. | |
Re: > 0-5 : 4 bits I wonder how you came up with 4. ;-) @llemes4011 Coming up with your own serialization mechanism is hard; continue if you are doing this for fun but do remember that there are many other good binary serialization formats out there which can lessen your … | |
Re: > 90% of it is deleting spam. ...with the remaining 910% being dealing with issues unknown to mere mortals. ;-) | |
Re: That code is a big mess; just to confirm whether this is a problem with your code or responseText on IE strip all the fluff and create a bare minimum snippet which just sends a single parameter and receives some random response in responseText. If it still doesn't work, post … | |
Re: Wish all you Americans out here a `Happy Independence Day'. ;-) I am sure there must a lot of fireworks in the sky tonight. Have a nice time. | |
Re: @narendrachandu Please read the forum announcements regarding asking code without any effort whatsoever. And continue with your other thread in case you decide to mend your ways. Closed. |
The End.