3,892 Posted Topics
Re: 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 | |
Re: 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? | |
Re: `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? | |
Re: 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. … | |
Re: 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 … | |
Re: > 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 … | |
Re: 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. ![]() | |
Re: "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 … | |
Re: Given that I'm a programmer by profession, easily around 10 hours. | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: 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. | |
Re: 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 … | |
Re: > 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 … | |
***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)) … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
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 … | |
Re: 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) | |
Re: 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 … | |
Re: [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. … | |
![]() | Re: 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 … |
Re: 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 … | |
Re: 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 … | |
Re: > 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! | |
Re: 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 | |
Re: 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) | |
Re: 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 … | |
Re: 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 … | |
![]() | Re: 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)? ![]() |
Re: 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 … | |
Re: > 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`. | |
Re: > 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 … | |
Re: 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/ | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: > 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), … | |
Re: 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. | |
Re: 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 … | |
Re: 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" … | |
Re: 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 … | |
Re: > 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. … | |
Re: >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 … | |
![]() | Re: 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. ;) |
The End.