3,892 Posted Topics

Member Avatar for kaninelupus

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 …

Member Avatar for kaninelupus
-1
336
Member Avatar for llemes4011

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 + …

Member Avatar for llemes4011
0
207
Member Avatar for Totaal

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 …

Member Avatar for ~s.o.s~
0
35
Member Avatar for peter_budo

>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", …

Member Avatar for kaninelupus
0
160
Member Avatar for Ancient Dragon

Sad to see you leave Mel; hope you would take a good amount of rest and spend some quality time with Miss AD. :-)

Member Avatar for crunchie
0
189
Member Avatar for PatMcC

>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 …

Member Avatar for xeolabs
0
235
Member Avatar for alrevolver

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 …

Member Avatar for test
0
161
Member Avatar for Salem

>that some couple getting married Agree; marriage is surely a crazy thing! :-)

Member Avatar for red_gal_2005
0
212
Member Avatar for TheWhite

>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 …

Member Avatar for TheWhite
0
198
Member Avatar for happygeek

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. ;-)

Member Avatar for ddanbe
0
186
Member Avatar for cesarnz

>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 …

Member Avatar for cesarnz
0
117
Member Avatar for WoBinator

[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 …

Member Avatar for Zacadx15
0
502
Member Avatar for rje7

>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.

Member Avatar for JamesCherrill
0
1K
Member Avatar for .11

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 …

Member Avatar for ~s.o.s~
0
165
Member Avatar for smoore

>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 …

Member Avatar for VernonDozier
0
312
Member Avatar for Evil_genius82

[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 …

Member Avatar for Evil_genius82
0
260
Member Avatar for crunchie

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.

Member Avatar for sknake
0
303
Member Avatar for LOVE4CODE

> 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 …

Member Avatar for benjiei
-1
3K
Member Avatar for hims4u

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]

Member Avatar for ~s.o.s~
0
513
Member Avatar for choybutchoy

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.

Member Avatar for choybutchoy
0
144
Member Avatar for hajjo

@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.

Member Avatar for BestJewSinceJC
0
118
Member Avatar for knowledgelover

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(); …

Member Avatar for knowledgelover
0
139
Member Avatar for daviddoria

>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.

Member Avatar for NicAx64
0
203
Member Avatar for jdfskitz

>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 …

Member Avatar for ~s.o.s~
0
104
Member Avatar for serkan sendur

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.

Member Avatar for ~s.o.s~
0
383
Member Avatar for guyod

>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 …

Member Avatar for ~s.o.s~
0
115
Member Avatar for Dani

[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 …

Member Avatar for insaniakq
0
129
Member Avatar for aparnesh

> 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.

Member Avatar for Nine of Hearts
0
518
Member Avatar for drjay1627

They are called '[URL="http://onestepback.org/index.cgi/Tech/Ruby/SymbolsAreNotImmutableStrings.red"]symbols[/URL]' in Ruby.

Member Avatar for Kevin_poison
0
112
Member Avatar for mimsc

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.

Member Avatar for ~s.o.s~
0
127
Member Avatar for jephthah
Member Avatar for scru

> I fixed that for you. You shouldn't, really. You just proved his point. :-)

Member Avatar for ~s.o.s~
1
527
Member Avatar for sbhalla15

Something like [URL="http://blog.arc90.com/2006/07/introducing_link_thumbnail.php"]this?[/URL]

Member Avatar for sowjanya.gutla
0
274
Member Avatar for jephthah

> 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. :-)

Member Avatar for ~s.o.s~
0
576
Member Avatar for kinger29

Try [icode]writeTo[/icode] method of the SOAPMessage abstract class: [icode]message.writeTo(System.out);[/icode]

Member Avatar for ~s.o.s~
0
347
Member Avatar for ~s.o.s~

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 …

Member Avatar for Narue
1
172
Member Avatar for baftjar

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 …

Member Avatar for ~s.o.s~
0
97
Member Avatar for shahbaz5144842

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 …

Member Avatar for ~s.o.s~
0
181
Member Avatar for Nick Evan

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 …

Member Avatar for Dani
0
168
Member Avatar for BestJewSinceJC

> 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.

Member Avatar for ~s.o.s~
0
134
Member Avatar for gotm

> 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.

Member Avatar for oliver_lundag
0
361
Member Avatar for kakakon

> 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.

Member Avatar for JamesCherrill
0
2K
Member Avatar for purijatin

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() { …

Member Avatar for JamesCherrill
0
2K
Member Avatar for hardik.rajani

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.

Member Avatar for hardik.rajani
0
3K
Member Avatar for BestJewSinceJC

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].

Member Avatar for BestJewSinceJC
0
106
Member Avatar for llemes4011

> 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 …

Member Avatar for llemes4011
0
481
Member Avatar for Ancient Dragon

> 90% of it is deleting spam. ...with the remaining 910% being dealing with issues unknown to mere mortals. ;-)

Member Avatar for WaltP
0
153
Member Avatar for melektaus55

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 …

Member Avatar for crokusek
0
257
Member Avatar for UrbanKhoja

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.

Member Avatar for Ene Uran
2
478
Member Avatar for narendrachandu

@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.

Member Avatar for ~s.o.s~
0
207

The End.