3,892 Posted Topics

Member Avatar for ndeniche

> I just thought that, given the fact that not everyone tags their posts, a specialized forum might help on keeping those threads organized in the database general forum. Well, the idea is to encourage everyone to start tagging their posts. If the users/posters don't themselves tag it, you can …

Member Avatar for Reverend Jim
0
361
Member Avatar for ndeniche

> Maybe endorsements should be limited to only those members who have made XXX number of posts in a forum I would say make that "X number of up-votes" in a particular forum. That would be a more balanced stat since it's really easy to have a good number of …

Member Avatar for ndeniche
1
270
Member Avatar for Sturm

Graphics as in GUI libraries ? If so then [URL="http://www.wxwidgets.org/"]this[/URL] and [URL="http://www.gtkmm.org/"]this[/URL] are worth checking out.

Member Avatar for kristiangd
0
1K
Member Avatar for G_S

> if one of the attributes of my class is a String, would that be an object inside my class???? Teacher says it's simply a variable... There is no String *inside* your object. Keeping aside primitives for the time being, if a class is composed of multiple fields having different …

Member Avatar for G_S
0
196
Member Avatar for jalpesh_007

I no longer program in Spring but IIRC, `id` names in Spring follow the Java variable naming conventions and hence ids can't be just numbers (which is what the exception message is trying to convey here). Change `id="1"` to `id="one"` and see how it goes.

Member Avatar for jalpesh_007
0
1K
Member Avatar for Dani

This news is a great step ahead I think. I'll take a look at this API when I reach home. In the meantime: > Not right now. (Gosh, should I say that in public?) You can implement a rate-limiting feature similar to something used by Github I think. Each user …

Member Avatar for Dani
6
3K
Member Avatar for nova4005

A few more if you are game: * Use camel casing when naming methods/classes/variables etc. as opposed to snake case (e.g. MP3Player as opposed to MP3_Player) * Don't blindly provide getters and setters for every field in your class. For e.g. you already have `addSong` and `removeSong` methods in your …

Member Avatar for nova4005
1
468
Member Avatar for somjit{}

A bit late to the party but... > so i thought id ask if there are other people who love cartoons/anime too? Yup, I'm an avid anime viewer with around 150 days of anime viewing time, which IMO is quite a significant number (maybe pales in comparison to deceptikun's?). If …

Member Avatar for alyssa.wilkins.77
0
397
Member Avatar for ~s.o.s~

Howdy folks, Apologies for posting this a bit late than usual; normally I post this thread a few days before a new season starts so this technically isn't a preview, but oh well. Anyways, the chart showing the different anime which airs this season can be found at [Neregate](http://i7.minus.com/izBFCsZnDqjZE.jpg). Unfortunately, …

Member Avatar for deceptikon
0
272
Member Avatar for riahc3

I don't know *how* to do this but I can help you out with the *where* to look question. You need to look into the concept of CID's also known as content ids. Basically, you create a multipart message and assign a content ID to the image attachment/data which will …

Member Avatar for riahc3
0
2K
Member Avatar for deltascrow

You need to be either a sponsor, team colleague or part of the Daniweb team to be able to set custom titles.

Member Avatar for deceptikon
0
305
Member Avatar for mferarri

> logfile url is wrong There is nothing wrong with the URL. > I've just tried to install eclipse on my linux laptop. I have oracle java 7 installed, but I am getting an error (see below). Can anyone point me in the right direction to get Eclipse installed? I …

Member Avatar for ~s.o.s~
0
128
Member Avatar for spowel4

`StoreReporter.class.getResourceAsStream` doesn't do what you expect it to do. It tries to load a resource and return the corresponding stream relative to the class. Replace it with a `new File(yourpath)` and let us know how it goes.

Member Avatar for spowel4
0
9K
Member Avatar for bops

A common solution to this problem is to pass around the array size along with the array. That way, it would work for all types of arrays, not just C style strings (char arrays with terminating null character). [code=c] void doSomething(int* arr, int size) { //get ready to add some …

Member Avatar for NathanOliver
0
5K
Member Avatar for tricket_7

That's a pretty strange binary tree. Normally, insertion criteria is based on the "value" attribute of each node which helps you determine where to insert a node into a tree and at the same time, how to "search" for a node inside the given tree. With the number of nodes …

Member Avatar for tricket_7
0
9K
Member Avatar for mdfaisalamin

The specification explicitly talks about little endian data and `NUL` (`\0`) terminated strings (like C programming language). You are better off using `FileInputStream` which reads raw bytes and handle them explicitly in your application. Java uses big endian so default method calls (`readInt` etc.) won't get you anywhere.

Member Avatar for ~s.o.s~
0
244
Member Avatar for bibiki

That's a good question! JUnit and Servlets (basically your web apps) are *frameworks*. What a framework does is it runs the code you write which adheres to some common guidelines (e.g. in the case of a JUnit test, you either extend the class with some JUnit class or decorate the …

Member Avatar for bibiki
1
127
Member Avatar for solomon_13000

Looks good though there is a small issue. Normally the factory method/classes used for the flyweight pattern have the same signature as the constructor of the object which you want to cache. Your solution looks more like a static cache since there is no capability of creating new chemicals on …

Member Avatar for ~s.o.s~
0
190
Member Avatar for game06

It's OK as long as you are consistent within a given code base though generally *not recommended* if it is meant to be consumed (used and read) by a wider audience (i.e. other Java developers). Also, in your case, you are better off with naming the variable as `dead` and …

Member Avatar for jwenting
0
213
Member Avatar for paku_dnj

It isn't really that complicated IMO; just use [jLine](http://jline.sourceforge.net/downloads.html); it works out of the box on Windows (and I believe *nix too) Try out this simple snippet after adding the JAR to classpath: public class Test { public static void main(final String[] args) throws Exception { ConsoleReader reader = new …

Member Avatar for ~s.o.s~
1
10K
Member Avatar for tformed

[URL="http://www.rism.com/Trig/square.htm"]Different methods of finding the square root.[/URL] > Try it with a few others as well where one is the square root of the other. Yes, logarithmic method seems to be a good choice.

Member Avatar for vmanes
0
3K
Member Avatar for harinath_2007

Harinath, though I can see that your intention was to "lighten" up the Java forum with your humour, this really isn't the best place for it; next time for programming related humour try the Geek's Lounge. Also, let's refrain from personal attacks here. I'm closing this thread now.

Member Avatar for ~s.o.s~
-1
268
Member Avatar for Nagarajan M

> Please provide me the solutions to bundle jre inside jar and how to run a jar? Without unpacking the zip file and setting the appropriate paths? I doubt. There is a free tool called [launch4j ](http://launch4j.sourceforge.net/)which supports creation of launchers for JAR files and embedding a JRE (as mentioned …

Member Avatar for Nagarajan M
0
3K
Member Avatar for JamesCherrill

I was faced with a similar situation in the past and decided to adopt a completely different approach. Since you really don't care about the key, I'm assuming this is some sort of a default case and no custom mapping has been added. In that case, something like this worked …

Member Avatar for JamesCherrill
2
344
Member Avatar for stultuske

I think you can get the best of your endorsement system by looking at the endorsements of those who you think are trustworthy/endorseworthy since there is a high chance they will endorse folks with some merit. But I agree, it's more of a personalized benchmark; you might disagree with what …

Member Avatar for <M/>
0
276
Member Avatar for iciaguevara

Folks, let's not turn this thread into a warzone. I'll close the thread by saying this: IMO no one in this thread is copying other solutions or posting ready-to-use entire solutions; neither James nor IIM. I can't control personal opinions (manifested via means of up/down-votes) but let's just admit that …

Member Avatar for ~s.o.s~
0
246
Member Avatar for Octet

> Moral of the story: Don't trust parseInt() to work the same in Firefox as it does in Chrome. I'm really interested now, details please. And while we are at it, were you passing in the second argument to `parseInt`? If not, bad Dani. :)

Member Avatar for Octet
0
252
Member Avatar for Nakeo

Consider using `enum`s for Suit and Rank instead of raw strings, much safer and saner approach IMO.

Member Avatar for tux4life
0
442
Member Avatar for linux
Member Avatar for wallet123

This normally happens when the download is incomplete. Can you check the size of the file on your HDD and compare it with the expected size? Also, try using a download manager like Flashget if the browser download manager isn't working out for you.

Member Avatar for jalpesh_007
0
100
Member Avatar for Mike Askew

It's not a typo, it's a [slang term](http://www.catb.org/jargon/html/A/automagically.html).

Member Avatar for Dani
0
214
Member Avatar for zdneth

> what are some basic things or steps you can advice..thanks Start small and start quick with a rough design sketch in your head/paper. Don't be bogged down by the big picture. Always try to divide stuff into small bits and pieces. The first and foremost focus should be to …

Member Avatar for ~s.o.s~
0
185
Member Avatar for chriswelborn

> I was wondering if a microcontroller or arduino section could have a home here. Or would that be best classified under "Software Development\C", or other various languages that can be used for more than 1 type of hardware? Or Raspberry Pi, would that be a "Linux and Unix" thing, …

Member Avatar for chriswelborn
0
318
Member Avatar for bguild

I agree with AD here. Plus, since Markdown (the markup format used by this site) doesn't support any of this natively, we'll have to hack up the Markdown specification to our custom needs. Doable, but not really favored since the target audience percentage is *very* small plus it requires maintaining …

Member Avatar for Ancient Dragon
0
449
Member Avatar for The Dude

Those are great, esp the 'expand' and the 'find x' one. Keep up the good work and keep them coming Arjun since 'we need to laugh'. :-)

Member Avatar for Ene Uran
9
4K
Member Avatar for cwarn23

[quote]All I need to know is if the input username and password is valid and if it is valid then how many posts the user has and how many posts per day the user has. I'm not sure if daniweb already has such an api in existence so I thought …

Member Avatar for riahc3
1
757
Member Avatar for tux4life

The problem is with closing parentheses. Just escape the closing parentheses by leading it with backslash character and it should work out fine. For e.g. http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...) [without backslash] v/s http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...\) [with backslash before the )] **EDIT**: It seems like there is a bug in the MD renderer. The preview shows …

Member Avatar for Dani
0
228
Member Avatar for MIGSoft

What would you achieve by serializing a window handle which is valid only as long as the window exists?

Member Avatar for ankurg11
0
3K
Member Avatar for mrnutty

> I have mixed emotions about it. What if I don't want the same avatar on all web sites that I visit? Then maybe provide an option to override the gravatar image? But IMO this seems too much effort for something not too significant, especially when there are more important …

Member Avatar for mrnutty
0
231
Member Avatar for vij123

Is the connection in [ICODE]autoCommit [/ICODE]mode? If not, then you need to explicitly commit the transaction. Check the return value of the [ICODE]executeUpdate[/ICODE]; is it 1? Does a standalone program which inserts some sample data in the table works?

Member Avatar for mahe33
0
1K
Member Avatar for varun51
Member Avatar for Amangpt01
0
2K
Member Avatar for Reverend Jim

I get 477 results using Daniweb internal search and around 620 results using the actual Google search filtered down for daniweb. I'm using Google Chrome version 22 on Win XP.

Member Avatar for Reverend Jim
0
166
Member Avatar for ndeniche
Member Avatar for cgogte

> Since not all the links have been updated yet: > here's a good one, too: http://docs.oracle.com/javase/tutorial/ I have now updated the links to remove references of sun.com. Let me know if there are still any broken/sun links in there. :)

Member Avatar for ~s.o.s~
-1
155
Member Avatar for christiangirl

> int generator1 = generator.nextInt(20)+1/2; Operator precedence anyone? > /* > * To change this template, choose Tools | Templates > * and open the template in the editor. > */ I am surprised how someone can churn out such an unformatted code even after using an IDE / advanced …

Member Avatar for stultuske
0
815
Member Avatar for <M/>

> When you upload an avatar, we resize it internally to ensure that it's 80x80, and the method we use to do that only returns the first frame of an animated image. And what happens if the original image is 80x80? You still resize it? If not, we now have …

Member Avatar for Reverend Jim
0
336
Member Avatar for Violet_82

> So the advantage of using a constructor over a setter is that a constructor can initialize more than a variable, which is what a setter does? Not really, the main advantage of using a constructor to initialize all member fields is to ensure one-shot initialization of objects which when …

Member Avatar for Violet_82
0
235
Member Avatar for mKorbel

There are some site wide issues going on (as already highlighted by other ongoing threads in the feedback forum). Hopefully it should be fixed in some time when Dani/Deceptikun are online.

Member Avatar for happygeek
0
200
Member Avatar for Octet

A lot of Daniweb functionality like editing post for moderators, moving threads etc. doesn't seem to be working at the moment. I'll sure Dani/Deceptikun will look into it when they are online. Please bear with us. :)

Member Avatar for Octet
0
228
Member Avatar for Ancient Dragon

Yup, things don't seem to be working as expected and this is happening to almost everyone. Hopefully Dani/Deceptikun should be able to solve these issues as soon as they are online. :)

Member Avatar for deceptikon
0
232

The End.