3,892 Posted Topics

Member Avatar for happygeek

I would recommend http://www.daniweb.com/members/377908/Gribouillis He is a moderator but still not featured?! Also the following good chaps in no particular order because of their good contributions, active participation and helpful nature: 1. http://www.daniweb.com/members/432133/ddanbe 2. http://www.daniweb.com/members/838005/Schol-R-LEA 3. http://www.daniweb.com/members/137377/woooee

Member Avatar for XP78USER
0
612
Member Avatar for scheppy

I see that you are using OpenJDK. Would it be possible for you to try out Oracle JDK and see if the same thing happens?

Member Avatar for scheppy
0
981
Member Avatar for dendenny01

`ResultSet` is not serializable. You can only send across things which can be serialized across the wire e.g. `List`, `Set` etc. Any reason why you want to send the result set to the user instead of the data inside it?

Member Avatar for dendenny01
0
422
Member Avatar for Pobunjenik

Two minor points: 1. You are ignoring the return value of the `delete` method; this is important if you are absolutely sure you want to have the file deleted since files opened up in other apps block deletion. Also it makes the logging statement incorrect in case the delete fails. …

Member Avatar for Pobunjenik
0
391
Member Avatar for Roger_2

I believe it should be fairly easy to figure this one out. When is the `NullPointerException` thrown? From the stack trace can you locate the line which throws this exception? (`InfixToPostfix.<init>(InfixToPostfix.java:22)`). What piece of code on that line could possibly be `null`? **Hint**: Java initializes class members to their default …

Member Avatar for Roger_2
0
548
Member Avatar for Doogledude123

> I thought about XML or JSON but after some research I figured out that a binary file exported to my own file extension would be the way to go because apparently it's much faster. I agree about the text v/s binary part. But any reason you are rolling out …

Member Avatar for JamesCherrill
0
853
Member Avatar for 0xff

If you plan on chasing around a lot of parent-child links, RDBMS get's a bit cluky due to the impedance mismatch between the relational model and the inherent hierarchical nature of the file system entries. I would personally go with Neo4J.

Member Avatar for diafol
0
206
Member Avatar for Doogledude123

"Real" game maps are almost always stored as binary to reduce load time and to prevent easy editing using a text editor (some sort of obfuscation). http://gamedev.stackexchange.com/questions/35893/custom-extensible-file-format-for-2d-tiled-maps Also, if you have got simplistic sort of data you can use existing binary formats like protocol buffer for encoding your data. https://github.com/bjorn/tiled/wiki/TMX-Map-Format …

Member Avatar for ~s.o.s~
0
327
Member Avatar for RobertHDD
Member Avatar for <M/>
1
277
Member Avatar for pritaeas

I really don't mind it as long as it's just one size bigger than the actual answer text. I think the bigger problem is identifying what's the question/who is asking it etc. Daniweb is one of the few forums I have seen that has a lot of "stuff" between the …

Member Avatar for diafol
4
852
Member Avatar for happygeek

When I joined Daniweb, my main interest was in helping and learning C/C++ which meant a lot of interactions with the forum regulars which included Dave. I learnt a lot from him: not just about programming but also about how to help beginners push their boundaries and think about problems …

Member Avatar for Dani
0
449
Member Avatar for castajiz_2

You have got nothing to be ashamed of. Like mentioned elswhere, it's just your preference. If you have seen my posts on the subject of other Q/A sites, you will know that I am a big fan of the SO concept. It is indeed a revolutionary thing which has happened …

Member Avatar for diafol
3
684
Member Avatar for happygeek

I would like to recommend Ene Uran who has been with Daniweb for a long time now and has contributed to Python/Geek's Lounge forums.

Member Avatar for happygeek
0
448
Member Avatar for 00Gambit

Start hacking on websites like https://www.hackerrank.com/ which give you opportunities to solve problems using your favorite programming language. Trying to work towards a problem will teach you a lot about the different data structures and algorithms. You gain points and improve in rank as you keep solving problems so that …

Member Avatar for ~s.o.s~
0
409
Member Avatar for Mr.M

> Because I'm also not too familiar with java the only thing that forced me to change from VB.NET to Java was the ability to support multi-threading [Not sure why you say that...](http://msdn.microsoft.com/en-us/library/eed6swsx(v=vs.90).aspx)The CLR (on which VB.NET runs) is perfectly capable of creating threads. But I agree, since you are …

Member Avatar for JamesCherrill
0
11K
Member Avatar for ~s.o.s~

***Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this.*** **» Introduction to Java «** To start off, [Java](http://en.wikipedia.org/wiki/Java_(programming_language)) …

Member Avatar for ~s.o.s~
46
6K
Member Avatar for LocoBird

Good game for a beginner, carry on. Have u ever considered writing the game using a external game library. Seeing your enthusiasm for making games and your game, i would very much recommed you to move out to core C++ and start making games. If you ever need any help …

Member Avatar for Tihami12
0
1K
Member Avatar for Chem_1
Re: IDE

My personal vote would go to [WinPython](http://winpython.sourceforge.net/) because: 1. It provides debugging support 2. Build in linter 3. Good autocompletion 4. A complete bundle which includes an IDE (Spyder) and libraries like numpy, scipy and matplotlib

Member Avatar for sneekula
0
679
Member Avatar for Dani

Also, consider cases where the OP is wishy-washy. Let's say the OP selects some answer which gets the bounty but later realizes that it's not the complete solution. Should the OP expect the follow-up solution from the bounty-winner. You might want to shown an alert box saying that once the …

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

All, We have some unfortunate news which was confirmed by Dani and Prit. Our good old friend, Melvin aka Ancient Dragon passed away on Aug 21, 2014. :`( His obituary can be found [here](http://obits.dignitymemorial.com/dignity-memorial/obituary.aspx?n=Melvin-Stober&lc=4243&pid=172212890&mid=6094698) (link courtesy of Prit). Those who have been here for a long time and those who …

Member Avatar for CodyOebel
2
792
Member Avatar for Dani

I can confirm Suzie's issue; I don't see any threads but just profiles. https://www.daniweb.com/search/query/8/threads?q=cold+site%3A%2A%2Fthreads+inurl%3Asoftware-development+inurl%3Acpp#gsc.tab=0&gsc.q=cold%20site%3A*%2Fthreads%20inurl%3Asoftware-development%20inurl%3Acpp&gsc.page=1 [Imgur](http://i.imgur.com/e8qzSuw.png)

Member Avatar for Reverend Jim
1
865
Member Avatar for AJones

Rewrite your program in this way : [code] #include <iostream> using namespace std; int main (int argc, char *argv[]) { char quit = '\0'; while (quit != 'q') { cout << "Hello ! This is a console app." << endl; cout << "To create a console, go to Project Options …

Member Avatar for Wajid sardar
0
2K
Member Avatar for kazek

[QUOTE=verruckt24;746253]One risk that this procedure runs is that you are basically shipping all your class files which can be potentially decompiled and your source code be exposed to other parties. So if you have the concern of keeping your source code closed you can use the second method mentioned here. …

Member Avatar for stultuske
0
5K
Member Avatar for Ralphael

In it's simplest form, a RMI load balancer would be a just another RMI server which would have references/handles to other RMI servers providing a service. As an example, let's say you have an adder service: public interface Adder { int add(int a, int b); } Along with having RMI …

Member Avatar for ~s.o.s~
0
961
Member Avatar for Slavi

That might be the reason; you can simply use a static block in the class to load/call stuff at the time class is loaded. Though I think setting this in code is the wrong approach and the correct way would be to handle these things when deploying your code (for …

Member Avatar for Slavi
0
594
Member Avatar for Slavi

Since you need to start and stop the server, you might actually need two servers -- an admin server and a print server. The admin-server manages the print server and the client only sees the "admin" server which acts on the admin commands and passes on the rest of the …

Member Avatar for Slavi
0
318
Member Avatar for mike_2000_17

> obviously there was a bug I didn't catch and now I'm trying to figure out a way to fix the situation. Dry run mode; always!

Member Avatar for Dani
0
319
Member Avatar for temp_1

You are using Derby in server-mode (as evident from the host/port in the connection URL). You need to use it in embedded mode. Read: http://db.apache.org/derby/integrate/plugin_help/derby_app.html and http://www.codejava.net/java-se/jdbc/connect-to-apache-derby-java-db-via-jdbc

Member Avatar for ~s.o.s~
0
201
Member Avatar for moaz.amin.37

That's the thread group name. Always consult the sources when in doubt. [Thread#toString](http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8-b132/java/lang/Thread.java#Thread.toString%28%29)

Member Avatar for moaz.amin.37
0
293
Member Avatar for moaz.amin.37

Even if the processor has a single core, newer Operating systems (not DOS for sure) employ preemptive scheduling which gives the "illusion" of threads running in parallel. Also, even if there is just a single core, the preemptive scheduling means that threads would run in "random" order as scheduled by …

Member Avatar for moaz.amin.37
0
259
Member Avatar for vegaseat

Just for the clarification of the readers; the output posted using the `background` decorator is not always guaranteed and depends on how your OS schedules the Python threads. So another possible output can be: Frank counts 1 Doris counts 1 Frank counts 2 Doris counts 2 Doris counts 3 Frank …

Member Avatar for Lardmeister
5
3K
Member Avatar for diafol

Not sure why you are restricting yourself to ASCII by putting in `validate` calls? Can't PHP deal with unicode chars (e.g. German, Russian passwords)?

Member Avatar for diafol
8
1,000
Member Avatar for Shibbir Khan

AFAIK you can attach rules to Test suites. So all you would need to do is "group" your tests logically into suites based on whether they need a timeout or not and then apply a timeout rule to the suite. Or you can create a parent class for performance sensitive …

Member Avatar for ~s.o.s~
0
157
Member Avatar for moaz.amin.37

> but there is a problem read() return -1 and we assign it to char c Because you need a value to denote EOF/EOS which is *not* a valid `char`. Since `-1` is not acceptable for a `char` (char is unsigned after all), `read()` returns an `int`.

Member Avatar for JamesCherrill
0
268
Member Avatar for thewalrus

> Can I choose my own IP and any non-dedicated port number such as 88888 and 88889? You can't have 88888 as your port number. Quoting wikipedia: > A port number is a 16-bit unsigned integer, thus ranging from 1 to 65535 (for TCP, port number 0 is reserved and …

Member Avatar for TylerD75
0
371
Member Avatar for fatalaccidents

I believe your problem is more suited to a "job queue" library rather than trying to implement monitoring, scheduling etc. on top of a raw process pool. Take a look at Celery which implements a job queue + provides monitoring facilities. http://www.celeryproject.org/

Member Avatar for ~s.o.s~
0
5K
Member Avatar for Varunkrishna

This really isn't possible given that the `Number` interface doesn't expose arithmetic methods so even though you can write a `GenericArithmetic` class which takes only instance of numbers, you can't do implement the operations without casting based on the types passed in.

Member Avatar for ~s.o.s~
0
10K
Member Avatar for DawnofanewEra

RMI applications are not as simple as standalone Java applications since they require specific steps to be followed (specifying the policy file etc.). You have provided absolutely no details as to the command line used to invoke the client, the client code and so on. I would recommend starting with …

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

Maybe reading the GSVideoBar reference can help you in properly customizing your video bar. As for your problem, you can decrease the size of thumbnails or increase the dimensions of your DIV to get more than 4 videos per strip. For further tweaking please refer the official documentation and in …

Member Avatar for Mostarac
0
552
Member Avatar for Pablo149

As someone who has interviewed for financial organizations and has been involved with setting up an entire team, I really don't care about the degree as long as the candidate has: 1. The right skillset 2. Humility 3. Desire to learn a bit more As an example, is there any …

Member Avatar for Hiroshe
1
233
Member Avatar for m4mukulgarg

OP, are you talking about creating something like [IDEOne](http://ideone.com/) which is an "online compiler" and allows executing code remotely (or in the "cloud" as you put it)? If yes, that should be a doable project wherein you provide a web interface to your users for putting in code and submitting …

Member Avatar for Schol-R-LEA
0
557
Member Avatar for surya55

In language-agnostic terms, an interfaces determines "what" and the implementers determine "how". For e.g. if you have an interface `Moveable` with a method `move`, it tells you "what" is to expected from something which is a moveable viz. the ability to move. As to "how" that can be done, it …

Member Avatar for ~s.o.s~
1
230
Member Avatar for ali11

> From my understanding, generic class is for handling a range of types of incoming object class. So comparison part will be very tricky because one needs to determine the domain and range of the data and how to compare them. If the domain and range are narrow (and specific), …

Member Avatar for Taywin
0
421
Member Avatar for Slavi

No, because with Java you can create keyloggers for "Java applications". You would need to implement some sort of Windows API hooks if you want to intercept keystrokes across all applications (at the OS level), which is what keyloggers which we all know of are supposed to do.

Member Avatar for Slavi
0
295
Member Avatar for Anamika15

This is a typical map-reduce problem. You map the files you read and create intermediate data structures (dicts in this case). And after all the files have been read, you "reduce" the intermediate data structures to create a final data structure. Why do you think anything has to be read …

Member Avatar for JamesCherrill
0
758
Member Avatar for pwolf

I would personally use something like Eclipse/IntelliJ because it "just works" out of the box and makes it easy to navigate complicated projects. Sure, you can use your Vim'fu to do all the same stuff I'm not a big fan of carefully tweaking each and every aspect of an "editor" …

Member Avatar for jwenting
0
715
Member Avatar for thegreymatter

There are two main problems with your above approach: 1. Using the wrong datastructure 2. Needless repeated computationss burning the CPU Contains check on a `List` data structure is expensive due to its `O(n)` nature and should be avoided; prefer using a `Set` variant like `HashSet`. The needless computation aspect …

Member Avatar for JeffGrigg
1
1K
Member Avatar for nancy10001

> C++ uses pointers and have memory leaks Just because C++ uses pointers doesn't mean it *has* to leak memory. It's just that you have to be careful with allocations, sharing and ownership. Modern pointer types like `unique_ptr` and `shared_ptr` provide a limited form of garbage collection if used correctly. …

Member Avatar for ~s.o.s~
-1
385
Member Avatar for ben.juarez.773

>but it only opens the browser--firefox only--for a second, fills out the iframe, and then automatically closes. I believe this is because the context manager in this case destroys the browser instance the moment it goes out of scope (i.e. as soon as you exit the with block). You can …

Member Avatar for ben.juarez.773
0
318
Member Avatar for iamthwee

Very strange for you to bring this up; I had the same thing happen to me on Friday when I navigated to the watched article page. I thought "no way Daniweb could have caused this" but now I'm curious. ;)

Member Avatar for Dani
0
289

The End.