3,892 Posted Topics

Member Avatar for <M/>

I'm think something has broke causing some basic Daniweb functionalities to not work correctly. Hopefully this should be fixed in some time as soon as Dani/Deceptikun are online.

Member Avatar for <M/>
0
251
Member Avatar for sid78669

Minor stuff aside, this snippet has other problems. UUID is *unique* because of *all* the bits it has. Substring of a random number itself isn't random. If you'll read the UUID specification (which I think the UUID class follows), the different range of bits in an UUID stands for different …

Member Avatar for ~s.o.s~
1
467
Member Avatar for <M/>

> does it take time to update? Yes, [Dani said](http://www.daniweb.com/community-center/daniweb-community-feedback/threads/443045/images-on-the-bottom#post1908487) it might take around a day to update the images at the bottom of the forum.

Member Avatar for <M/>
0
122
Member Avatar for ~s.o.s~

Hi folks, Winter 2012/2013 anime season will start in a few days! [Here is a list of the anime](http://atxpieces.files.wordpress.com/2012/12/winter-v3final.jpg) which will air this coming season. As far as initial thoughts go, this season doesn't look *that* exciting. The anime which I'll be definitely following are: * [Chihayafuru S2](http://myanimelist.net/anime/14397/Chihayafuru_2) [unique anime; …

Member Avatar for ~s.o.s~
1
244
Member Avatar for riahc3

> The universal solved is probably the fairest system But is still open to abuse. SO system also has problems since it can award just a single person with the correct answer. I think the way it is done on MSF (Microsoft forums) is the best; you are allowed to …

Member Avatar for diafol
0
220
Member Avatar for riahc3

Look into the [UUID](http://docs.oracle.com/javase/1.5.0/docs/api/java/util/UUID.html#randomUUID()) class offered by Java. Though the probability of collision is not 0%, it's still *very* low. [Read this](http://en.wikipedia.org/wiki/UUID#Random%5FUUID%5Fprobability%5Fof%5Fduplicates).

Member Avatar for jalpesh_007
0
415
Member Avatar for Yzk
Member Avatar for subramanya.vl

Two more ways of doing it: * [Initialization on demand holder idiom](http://en.wikipedia.org/wiki/Initialization-on-demand_holder_idiom) * [Using enums to create singletons](http://en.wikipedia.org/wiki/Singleton_pattern#The_Enum_way) Holder idiom is normally used when you need lazy initialization. Enum approach is used to cut down on the line count and is good if you don't want lazy initialization and error …

Member Avatar for stultuske
0
167
Member Avatar for xbat

> I still think the best approach is to use xbat's account to remove what that idiot did, although i have no idea on how the system on this site works...just seems reasonable. I have a feeling that in the future Daniweb will have an option of allowing the "owner" …

Member Avatar for happygeek
0
237
Member Avatar for Atlanta15Braves

Think about which piece of code (or specifically which method call) in your above snippet is responsible for doing the comparisons. Read up on the Javadocs of the `Comparable.compareTo` method. Anything you see in there which can "reverse" the checks you are making?

Member Avatar for ~s.o.s~
0
755
Member Avatar for almondjoy

Juno has performance and stability issues, at least I faced them. I would recommend grabbing the latest 3.X version of Eclipse with Java 7 for best results unless you are bound by a predetermined version of Eclipse or Java.

Member Avatar for jalpesh_007
0
106
Member Avatar for solomon_13000

> Is it done via socket connection? Yes > Is it using Java sockets or the client browser have it's own socket to establish a connection with the Tomcat server? Or does the client browser uses the socket provided by the operating system to establish a connection to the Tomcat …

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

I'll try to answer the points applicable to me: > What value do you get from helping people? It sucks to be stuck on something when you are trying to learn stuff. This is when books don't help and the online resources are not enough. My aim here is to …

Member Avatar for john.knapp
0
272
Member Avatar for <M/>

> BTW... What is up with those check marks that show around posts? It's a new feature that was introduced recently as explained by Dani [here](http://www.daniweb.com/community-center/daniweb-community-feedback/threads/441241/how-experienced-is-the-community/3#post1898420).

Member Avatar for diafol
0
102
Member Avatar for forjustincase

I'll assume you are using Eclipse here. IIRC, Eclipse "Export JAR" doesn't have the option to collpase the dependency jars into a single JAR. For this to work, just make sure you have a dummy (or necessary) main class in your project. Then click Export -> Runnable JAR. Options 1 …

Member Avatar for JamesCherrill
0
322
Member Avatar for vegaseat

Not much to be explained here except for the thing that this code basically relies on the function [I]mciSendString( ) [/I]. A reference to that can be found [URL="http://msdn2.microsoft.com/en-us/library/ms709492.aspx"]here[/URL]. Here MCI stands for Media control Interface and [I]mmsystem.h [/I]stands for MultiMedia System Header file. BTW these two terms are specific …

Member Avatar for RonalBertogi
1
652
Member Avatar for taylor.mitchell.353

> So this would likely be just as efficient as a non-recursive implementation because it uses tail recursion Not sure if that was intended but the function you posted isn't tail recursive because the state information has to be saved on the stack frame to carry out the multiplication. :) …

Member Avatar for taylor.mitchell.353
0
184
Member Avatar for bibiki

Array is a bad example because arrays in Java receive special treatment. Arrays are objects but you'll never see the source code for array of Object or array of primitives in the source distribution. They are dynamically created. For more gory details, [read this](http://docs.oracle.com/javase/specs/jvms/se5.0/html/Concepts.doc.html#16446) > However, line one does assign …

Member Avatar for bibiki
0
914
Member Avatar for spowel4

That's a valid but logically incorrect JSON representation of the data. Given that JSON objects are "string: value" pairs, having the same "string key" for all items will result in only one item being returned when you try to get all "STORE" elements. For e.g. try pasting the following JSON …

Member Avatar for boobalan006
0
274
Member Avatar for theguitarist

That really shouldn't be happening. For the time being, go to [the profile page](http://www.daniweb.com/members/edit_profile) and check the 'disable ads' checkbox. See if that makes a difference. Hopefully Dani will pick up this bug report when she is online.

Member Avatar for c-tech
0
277
Member Avatar for mbarqadle

> if (play[] == card) This line is invalid Java syntax. If you want to check if an `int` array contains a particular `int` value, you'll either have to loop over the array to check the occurrence of that value or convert the array to something like a `Set` (if …

Member Avatar for ~s.o.s~
0
111
Member Avatar for kedxu

Two problems with your approach. First the major one: As mentioned by James, never use busy loops (i.e. `while(true) {}` in your application code. It will *always* result in CPU spinning at 100%. There is almost always a better way of waiting for some event than to loop over it …

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

Happy Birthday Dani; here's to hoping you take a day off from Daniweb and enjoy!:)

Member Avatar for Mike Askew
6
761
Member Avatar for JamesCherrill

Second version all the way. I'm pretty sure the first version is for those who get paid by lines of code written. ;)

Member Avatar for JamesCherrill
0
379
Member Avatar for crownedzero

You seem to be having multiple threads utilizing multiple instances of the `ProductProducer` class i.e. each thread operates on a separate instance of the `ProductProducer` class which explains each item count occurring twice, once for each queue. If you want different instances to operate on the same queue, either declare …

Member Avatar for ~s.o.s~
0
283
Member Avatar for WDrago

The first piece of advice; catch stuff only if you plan on handling it. And by handling I don't mean printing stuff on the console and carrying on your merry way. One logical use case can be a retry-logic. If you plan on trying to connect to a host with …

Member Avatar for WDrago
0
1K
Member Avatar for Nutster

After the 30 minute cutoff, you can't edit your original post. You now have two options: * Make a new post with the suggested edit * "Flag bad post" your original post and request a moderator to make changes on your behalf I personally feel that the first option makes …

Member Avatar for Dani
0
268
Member Avatar for riahc3

There is also a [WindowsBuilder Pro](https://developers.google.com/java-dev-tools/wbpro/) which was previously a paid product but is now free thanks to Google. Never used it seriously but seems like it handles both SWT and Swing drag-n-drop GUI development and is available as an Eclipse plugin. **EDIT**: Doh, beaten by James.

Member Avatar for ~s.o.s~
0
300
Member Avatar for kristenw17

> loop until end of file, doing nothing. `hasNext` doesn't mutate or change the cursor position. So the `while` loop results in an infinite loop since `hasNext` will always return `true` (for a non-empty file) given no lines are consumed. Basically, the code will only proceed if the file is …

Member Avatar for JamesCherrill
0
348
Member Avatar for deadsolo

> I'm sorry I should said "Pattern pattern = Pattern.compile("^In our tests, downloads on port 6881\D+(\d+)\D+(\d+)");" is NOT working for me. But I think it is close. I just tried "^In our tests, downloads on port 6881\D+\d+\D+(\d+)\D+\d+\D+(\d+)" and that did not work either. It really need not be that complicated. …

Member Avatar for deadsolo
0
183
Member Avatar for Viped

> Anything from plain theory to ready code would be appreciated. Thanks! Not ready code but have you tried looking at the [source code](http://code.google.com/p/jmonkeyengine/source/browse/#svn%2Ftrunk%2Fengine%2Fsrc%2Fcore%2Fcom%2Fjme3) of an existing 3D engine like Jmonkey? Also, you will have more luck with your question in a game engine oriented message board.

Member Avatar for ~s.o.s~
0
440
Member Avatar for mayank.dyl

> or if there is one then where to find it ? Adding to Davey's answer, the technical reason is that if you use a "textarea", the browser pretty much automatically fills in the spell checker's role for you. Unfortunately if you'll notice, the Daniweb answer box is implemented as …

Member Avatar for tech-ultrasonic
0
436
Member Avatar for cmh0114

Read the example provided for [URL="http://java.sun.com/javase/6/docs/api/java/util/concurrent/ScheduledExecutorService.html"]ScheduledExecutorService[/URL].

Member Avatar for JamesCherrill
0
854
Member Avatar for Kerry W

Looks like a nifty feature Dani. Hopefully this can also motivate the posters to at least *read* the similar threads rather than jumping the gun and saying "me too" when the answer is right in front of them. :/

Member Avatar for ~s.o.s~
0
256
Member Avatar for rahul.ch

Let's start with why option 3 doesn't work. Generic types in Java are not covariant i.e. `List<Integer>` is *not* a `List<Number>`. Consider the following example: List<Integer> list = Arrays.asList(1); List<Number> numList = list; // doesn't work actually but assume it does numList.add(Double.valueOf(1.0)); // Double is a Number Integer i = …

Member Avatar for ~s.o.s~
0
250
Member Avatar for abd2

No, this is no bug. Considering that the thread was started way back in 2004 and this is the most common warning message one encounters when using a gcc or g++ compiler, coupled with the fact that Daniweb is highly Search Engine Optimized site, it doesn't come as a surprise …

Member Avatar for kimchong
2
2K
Member Avatar for ~s.o.s~

Howdy folks, Fall 2012 season has started airing! The final draft for the series to be aired can be found at the [Neregate blog](http://neregate.com/blog/2012/07/29/fall-2012-anime/). I'll be absolutely watching the following series: * [Bakuman 3](http://myanimelist.net/anime/12365) (Awesome romance, slice of life) * [Jormungand: Perfect Order](http://myanimelist.net/anime/13331/Jormungand:_Perfect_Order) (Prequel rocked; reminds me a bit of …

Member Avatar for Doogledude123
1
317
Member Avatar for idRATHERgoHUNT

You can try out Ragnarok online. Its for free. You can download the setup files by googling for them. The only thing is that for playing on the actual server you would need to pay but there are many fan sites out there which host Ragnarok for free. If you …

Member Avatar for remixedcat
-2
2K
Member Avatar for Alexandro

Create a new element of type 'script' using document.createElement('script') and set its properties accordingly. Something I found on one of the sites. Write this at the top of the script file in which you plan on including your file. [code=javascript] if (typeof(km_scripts) == 'undefined') var km_scripts = new Object(); km_myclass_import('importedfile.js'); …

Member Avatar for goldentuna
0
695
Member Avatar for persianprez

Hmm.. buddy, just post the kind of error you are getting or the way your program is supposed to work and is not working or atleast some indication which will tell us whta you need to know. You are very vague in your question.

Member Avatar for WaltP
0
261
Member Avatar for broj1

Can you try the steps mentioned in [this post](http://www.daniweb.com/community-center/daniweb-community-feedback/threads/433889/firefox-crashes-when-go-over-ads-in-daniweb#post1861823) and let us know if it helps?

Member Avatar for broj1
0
161
Member Avatar for nitin1

> isn't there any way that you can know who is down-voting or up-voting your posts ? if yes, then how can i know that ? thanks ;) No, there is no way by which a Daniweb member can know who is down/up voting his/her posts. > may be this …

Member Avatar for happygeek
0
534
Member Avatar for vaibhav1983

For some reason your app can't find the `aspectjweaver.jar` file. Are you sure you have that file in your runtime classpath? If you can find it, open up the JAR file and make sure you have the `org/aspectj/lang/Signature` file in it.

Member Avatar for vaibhav1983
0
382
Member Avatar for kovidd

A forum software is almost always a server-side web application which runs on a servlet container (Tomcat, Jetty) and is powered by a view technology like raw JSP's or JSF. As far as suggestions go, it really depends since the web-development landscape is pretty much saturated with a *lot* of …

Member Avatar for ~s.o.s~
0
229
Member Avatar for System Networks

Does that JAR file really have a space in between "System" and "FRONT". If yes, I guess you'll need to enclose the entire thing in quotes. Something like: `java -jar "System FRONT.jar"`.

Member Avatar for ~s.o.s~
0
677
Member Avatar for lewashby

> class Movie(): This defines an old style class. A better way would be to have: class Movie(object): pass This is suggested because old style classes don't play well with `type` and other new Python constructs. E.g. >>> class A(): pass ... >>> type(A()) <type 'instance'> <--- not good enough …

Member Avatar for ~s.o.s~
0
146
Member Avatar for nitin1

> so like admins are working on daniweb, is this a full time job for them ? I mean is it their part time job or complete full time work ? It depends. I'm one of the admins who isn't strictly employed by Daniweb/Dani. I contribute to Daniweb in my …

Member Avatar for nitin1
0
245
Member Avatar for lovetwins01

> but, it works with what lovetwins wants to do, since it will evaluate if package equals to 'a' or || 'A'... No. It evaluates to case 1, so entering 'a' or 'A' would give the message 'Enter only a, b or c for package'.

Member Avatar for krissybhabhie
0
2K
Member Avatar for Doogledude123

> What would you think about having the Mobile Section split up? IMO Daniweb currently has a lot of categories/sub-divisions right now. I mean look at the number of forums and sub-forums. This is one of the reason why tagging was introduced and everyone is pretty much encouraged to use …

Member Avatar for ~s.o.s~
0
253
Member Avatar for nitin1

Nitin, I don't think it's reasonable to coax someone to reply to threads they aren't interested in. Further coaxing/requesting would just make them lose interest in replying to *any* of your threads. Let's just respect each other's preferences, shall we?

Member Avatar for nitin1
0
165

The End.