3,892 Posted Topics

Member Avatar for cortiknee

[quote=WaltP;326307]Don't new people bother looking at dates? This thread is only 3 years old... :eek:[/quote] [B]Only[/B]... ? ;)

Member Avatar for dverex
2
15K
Member Avatar for shmay

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

Member Avatar for randomjokar
0
703
Member Avatar for Dani

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.

Member Avatar for Dani
1
226
Member Avatar for Lucrezia

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

Member Avatar for EricGeerts
0
2K
Member Avatar for aasi007onfire

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.

Member Avatar for Ancient Dragon
0
193
Member Avatar for GrimJack

...when almost every ongoing discussion on 'teh' internet makes you *sigh*. :-)

Member Avatar for vinnitro
1
3K
Member Avatar for sear899

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?

Member Avatar for NormR1
0
216
Member Avatar for johnvitc

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 …

Member Avatar for Dani
1
525
Member Avatar for OurNation
Member Avatar for vinnitro
1
16K
Member Avatar for Stuugie

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

Member Avatar for Mike Askew
0
468
Member Avatar for sillyboy

[URL="http://www.youtube.com/watch?v=nLd6h5td8G4"]As I Lay Dying - Parallels[/URL]

Member Avatar for Helianthus
0
5K
Member Avatar for esy928

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 …

Member Avatar for esy928
0
145
Member Avatar for riahc3

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for diafol

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

Member Avatar for ~s.o.s~
0
194
Member Avatar for elkowalski

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

Member Avatar for ~s.o.s~
0
161
Member Avatar for DarkMonarch

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

Member Avatar for Florinmoc
0
425
Member Avatar for coroll

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

Member Avatar for coroll
0
373
Member Avatar for DannyW

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 …

Member Avatar for DannyW
0
724
Member Avatar for venus87

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 …

Member Avatar for 9894443485
0
8K
Member Avatar for godzab

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 …

Member Avatar for ~s.o.s~
0
417
Member Avatar for bloodbender

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 …

Member Avatar for bloodbender
0
225
Member Avatar for DarkMonarch

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 …

Member Avatar for ~s.o.s~
0
133
Member Avatar for karoke

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 …

Member Avatar for JamesCherrill
0
5K
Member Avatar for mydreamgirl

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?

Member Avatar for mydreamgirl
0
368
Member Avatar for lulug76
Member Avatar for Bladtman242

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.

Member Avatar for Bladtman242
0
217
Member Avatar for happygeek

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 …

Member Avatar for happygeek
0
310
Member Avatar for Dani

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 …

Member Avatar for Ancient Dragon
2
243
Member Avatar for Dani
Member Avatar for happygeek
0
34
Member Avatar for c.pentasuglia

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.

Member Avatar for ~s.o.s~
0
119
Member Avatar for Dani
Member Avatar for sneekula

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

Member Avatar for Sanchixx
0
482
Member Avatar for apanimesh061

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

Member Avatar for ~s.o.s~
0
113
Member Avatar for Krokcy

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

Member Avatar for Krokcy
0
4K
Member Avatar for Lius

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?

Member Avatar for Lius
0
346
Member Avatar for deepthianns

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 …

Member Avatar for alleen
0
3K
Member Avatar for VernonDozier

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

Member Avatar for JamesCherrill
0
2K
Member Avatar for GeekTool

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

Member Avatar for ~s.o.s~
0
3K
Member Avatar for velr

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

Member Avatar for JamesCherrill
0
2K
Member Avatar for Dani

IIRC, you also need a script blocker for complete blocking because these things are Javascript based.

Member Avatar for Sahil89
0
843
Member Avatar for happygeek
Member Avatar for Ezzaral
0
189
Member Avatar for sciwizeh

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 …

Member Avatar for ~s.o.s~
0
175
Member Avatar for dan2see

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 …

Member Avatar for edwest
0
376
Member Avatar for Nick Evan

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 …

Member Avatar for deceptikon
0
233
Member Avatar for srinivasdama

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

Member Avatar for nullptr
2
365
Member Avatar for prem2

If you need predictable iteration order, use a hashtable implementation which supports the same. Drop HashTable in favour of LinkedHashMap.

Member Avatar for JamesCherrill
0
173
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
2K
Member Avatar for ~s.o.s~

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

Member Avatar for ~s.o.s~
1
270
Member Avatar for falcon221

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)?

Member Avatar for ~s.o.s~
0
137
Member Avatar for reaper1395

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?

Member Avatar for reaper1395
0
143

The End.