3,892 Posted Topics
Re: [quote=WaltP;326307]Don't new people bother looking at dates? This thread is only 3 years old... :eek:[/quote] [B]Only[/B]... ? ;) | |
Re: [code]if (temp_each_day [COLOR=Red]=[/COLOR] NULL) printf("Error opening input file. \n");[/code] The = in the above code should be replaced by == if what you want to do is comparision. | |
Re: Nice work folks! Also one more thing which bugs me: any way you can refresh the page after marking forums as read? The lack of prominent visual feedback sometimes makes me want to double check. Not frightfully necessary, just something I miss from the vBulletin days. | |
Re: > Hello, and congratulations for this beautiful and meticulous forum. Hello and welcome. :-) Now to your problem. 'display' property of CSS decides how an element would be displayed. Since you already have a table, it doesn't make sense to set the display property to table. Normally this property is … | |
Re: It doesn't return anything, the comparison just uses the value of *s to control the loop. The moment it equals to [INLINECODE]'\0'[/INLINECODE] i.e. the moment the null terminator character is copied from the destination string, the condition [INLINECODE]*s != '\0'[/INLINECODE] becomes false and the loop breaks. | |
Re: ...when almost every ongoing discussion on 'teh' internet makes you *sigh*. :-) | |
Re: I can't help you with Minecraft specific issues but this error normally comes up when there is a mismatch between the name of the class and the constructor. Is the ItemChain class your own class? | |
Re: The name has changed; you can now find the new button at the bottom left on the screen just below the last post. [Here is a screenie](http://i.imgur.com/nA6Fd.png) showing it. Also, just for the record, only the "thread creator" or the moderator/admin team can mark threads as solved. It seems that … | |
Re: You get a huge electricity bill. I put in Intel Duo Core 2. | |
Re: @kovidd: I have received your PM which brings this scammer to light. Unfortunately, you didn't include the member profile link or member name for me to take appropriate action. If possible, please include the same in your report PM's so that we can take prompt action. :) | |
Re: [URL="http://www.youtube.com/watch?v=nLd6h5td8G4"]As I Lay Dying - Parallels[/URL] | |
Re: These functions are called one-way hashes (as opposed to encryption-decryption which are often confused with hashing). There are multiple solutions to your problem. If you are reading the entire file in-memory as a single string, the simplest solution would be to just call `hashCode` method on that string. This is … | |
Re: Not enough details. When you say web service, what does your current service do? "Official" web services fall under two categories: SOAP and REST with SOAP IMO being the more complicated one. These typically run in a web container which automatically helps you take advantage of the servlet specification and … | |
![]() | Re: The problem is that once the member is taken to an "old" thread via the "related article" link, the reply box doesn't show "how" old the original question is. It is kind of given that new members will think that it is OK to respond to the thread. For e.g. … |
Re: `+` character has a special meaning when it comes to HTTP POST contents/URL etc. It is decoded to a "space". If you want a literal "plus" sign, you need to encode to something the server side encoder understands. This is where the URLEncoder class comes in. Make sure all the … | |
Re: Your situation sounds a bit similar to what I've been through in the past so I'll try to put my 2 cents here. The wall of text presented below assumes that you want to land up in a good company *and* become a better programmer, not just the former. > … | |
Re: Some general advice. Don't use `StringTokenizer`; the Javadocs clearly state that it's a legacy class. Use the `split` method of the `String` class instead. Never catch exceptions only to print out something. Make sure you either propagate them, log them to a file/console or at least print the stack trace. … | |
Re: AFAIK, writing number crunching algorithms in pure Java never was a viable solution. Scientific Java applications typically use third party libraries tuned towards doing fast math operations. Though I haven't personally worked with it, take a look at [JBlas](http://jblas.org/). R performs better because I think it is a language specifically … | |
Re: Pass a folder name (relative or absolute) to your application using the command line arguments/some other means, create a file object for that folder, invoke the "listFiles" method on that File object which returns a list of all the files (and directories) in that directory, traverse these files and do … | |
Re: Important details are missing from your post. Which OS (Win 7 64 or 32 bit)? Which Java version (32 or 64 bit JVM; try doing java -version at the command line)? If you are using a 32 bit JVM, you need to install 32 bit SWT. Likewise, for convinience, make … | |
Re: No, it's not a security issue. The code doesn't behave as expected because the way HTTP protocol works. @bloodblender: HTTP protocol deals with resources, not files. Plus, it defines VERBS as part of its specification. When you issue a file read request, what happens under the hood is that the … | |
Re: The actual differences can be found [here](http://glassfish.java.net/downloads/3.0.1-final.html). And yes, Glassfish as an application container provides many more features when compared to a servlet container like Tomcat. Also, depending on the complexity of your application to be ported, you should look into other lightweight alternatives like the [Spring stack](http://www.springsource.org/) in case … | |
Re: In a layman's terms: J2SE stands for Java 2 standard edition and is normally for developing desktop applications, forms the core/base API. J2EE stands for Java 2 enterprise edition for applications which run on servers, for example web sites. J2ME stands for Java 2 micro edition for applications which run … | |
Re: This is not an error but just a warning message that the parameter `-nonaming` is not supported by the `Bootstrap` class as you can see from the [source code](http://grepcode.com/file/repo1.maven.org/maven2/org.apache.tomcat/tomcat-catalina/7.0.14/org/apache/catalina/startup/Bootstrap.java#441). Any problems you are facing because of this? | |
Re: Please dont resurrect dead threads like a shaman. Thread closed. | |
Re: IIRC, the `Scanner` class is notorious for consuming insane amount of memory due to it's regex based implementation and other implementation details. Try replacing it with a simple `BufferedReader` when reading the file contents. | |
Re: Not directly related to the content but I'll "get if off my chest" anyways. We need an easy way to access past newsletters and a pretty visible link at the top so that new members can click and read some old stuff, interviews etc. I think that this feature has … | |
Re: Sorry to be a party-pooper but the changes don't look good enough. Not sure how it looks on your computer, but on mine, the profile looks pretty bland. There is no visual difference between the item (e.g. Join Date) and its corresponding value (e.g. 6 years ago). Maybe have the … | |
Re: You need to post the entire self-contained code which can be used to re-produce the issue. I really see no reason why nested elements wouldn't work. | |
Re: > BTW, on the Python feud, people respond differently to a new language like python. Personally, I think I got put off from python by the drastically different syntax, but mostly by the lack of clarity in type specifications, scoping rules, abstract memory model, etc. I don't think kids or … | |
Re: > Suppose I want retrieve values froma table that are greater than 10, should I first store all the values in a list and then check condition of ">10" using any language or should I just just retrieve all values directly from databse using query : Almost always the latter. … | |
Re: > At the moment i'm not using buffered streams. I have never worked with them before. Should i use buffered streams for the network streams as well or just the file I/O? > I havn't been able to find another way to load the file than the `Files.readAllBytes(Path)` which doesnt … | |
Re: Too little information to actually help you out: * Which Java version? * Which database and what version? * Which database driver are you using? * Is it possible for you to post the exact stack trace? | |
Re: This a a cross browser compatible script for finding out the mouse coordinates using Javascript. Referred from this [URL="http://www.quirksmode.org/resources.html"]site.[/URL] [code=javascript] function doSomething(e) { var posx = 0; var posy = 0; if (!e) var e = window.event; if (e.pageX || e.pageY) { posx = e.pageX; posy = e.pageY; } else … | |
Re: > And it worked. Although the file saved in my file system has extension .gif ?? The file name doesn't matter; its content does. I could have very well named it 'image.exe' and it still wouldn't have mattered. Maybe you overlooked the declaration [icode]File saveFile = new File("SemiTransparentSquare.gif");[/icode] in which … | |
Re: > When i write my code, in the if statement the compiler gives me an error. It says that initialize enum Whenever you declare a method scoped variable, you need to assign a value to it at least once before using it. In your code, the variable `myStatus` is not … | |
Re: > The sql looks something like this [...] AFAICT, the problem isn't the semicolon but the JDBC driver which refuses to consider the two parts as a single statement hence the exception. Also, the query doesn't look like standards compliant SQL (the SET part). You have two options: wrap the … | |
Re: IIRC, you also need a script blocker for complete blocking because these things are Javascript based. | |
| |
Re: Unfortunately, not enough information. For e.g. you missed out the most important part as to how do you plan on using it? How does the code which interacts with Operation and the other classes posted above look like or is supposed to look like? Also, the usage of `Buffer` class … | |
Re: At least Ad Blocker Plus doesn't load the page before blocking it, that would be a bad way of "disabling ads" I think. From the Adblock Plus FAQ: > *How does Adblock Plus block addresses?* > > The hard work here is actually done by Gecko, the engine on top … | |
Re: Depends on what you plan on "escaping" but pre-pending something with backslash (`\`) usually does the trick given that we are dealing with a Markdown variant here. For e.g. \`my_var\` => `my_var` but \\\`my_var\\\` => \`my_var` **EDIT:** Highlighting is a bit broken when it comes to escaping stuff as you … | |
Re: [quote=srinivasdama;250199]please answer the code for string to double and string to long in c bye[/quote] To perform these tasks there are in built functions in C namely. [inlinecode]atol (yourString)[/inlinecode] : string to long [inlinecode]atof (yourString)[/inlinecode] : string to double And asking directly for a code is not the way to … | |
Re: If you need predictable iteration order, use a hashtable implementation which supports the same. Drop HashTable in favour of LinkedHashMap. | |
Re: I don't know exactly how you propose to use the given interfaces or how they fit in the big picture of your application so take this as a generic observation/food for thought about the way current code stands. :) IMHO you are facing problems here with structuring code since the … | |
Hi folks, Spring 2012 anime is just around the corner! The chart stating the names of the anime to be aired along with their tentative dates can be found at: http://atxpieces.wordpress.com/2012/03/01/spring-v3/ I would definitely be watching the below: 1. Zetman 2. Accel World 3. Eureka 7 : Astral Ocean 4. … | |
Re: Post the entire stacktrace. Also, which tutorial are you referencing when writing your RMI programs? Do you have sufficient permissions to bind to the port 1099 (default `rmiregistry` port)? | |
Re: How are you invoking the `java` executable and how are you passing it the JAR file? Are you using the `-jar` switch? Do you have a `Main-Class` entry in the manifest file? |
The End.