-
Replied To a Post in java.security.AccessControlException: access denied ("java.net.SocketPermis
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 … -
Replied To a Post in Performing Arithmetic operations in Generics in Java
Sure, but that defeats the purpose of the generic arithmetic class. Let's suppose I create the above `GenericsArithmetic` class with type parameter as `Byte`. How would you know which conversion … -
Began Watching Performing Arithmetic operations in Generics in Java
Hello all I am using Generics in Java to perform some arithmetic operations, but I am getting some error **The operator + is undefined for the argument type(s) T, T** … -
Replied To a Post in Performing Arithmetic operations in Generics in Java
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 … -
Replied To a Post in An example of a threading background decorator (Python)
> Sorry to say, but the output using Windows 8.1 is not the desired one. All you get is: Are you running this from the command line or some sort … -
Replied To a Post in An example of a threading background decorator (Python)
Multiprocessing on Windows does work, but is a bit crippled when compared to multiprocessing on *nix. For e.g., the following code snippet works fine on Windows: from __future__ import print_function … -
-
Began Watching Is a four year CS degree necessary to become a Java programmer?
Hey there everyone, I have been a computer programming instructor for several years now. I like helping my students, but every year, they are the same age, and have generally … -
Replied To a Post in Is a four year CS degree necessary to become a Java programmer?
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 … -
Began Watching Online Compiler in Java
Hi all ive been thinking of a writing a compiler in java for my final year project. I have started to browse the net for help but to be honest … -
Replied To a Post in Online Compiler in Java
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 … -
Began Watching Why we use Interface
Hi everyone, consider below code: interface i{ void test(); } class A implements i{ void test(){//code goes here} } class B implements i{ void test(){//code goes here} } here,we can … -
Replied To a Post in Why we use Interface
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 … -
Began Watching getting error in generic binary search tree
*getting following error. duplicate found Exception in thread "main" java.lang.NullPointerException at binarysearchtree.main(binarysearchtree.java:185) Java Result: 1 here is my code* public class node<T> { public node<T> root ; public T data; … -
Replied To a Post in getting error in generic binary search tree
> 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 … -
Gave Reputation to jwenting in Java 8 cant do MS Access anymore?
the bridge driver was NEVER a good option for anything except the most basic of experiments. It was NEVER intended to be used in production code or anything beyond a … -
Began Watching Thousand threads write to one text file simultaneously
Hi Dw I have a multi-threaded server that connects thousands of clients. The clients sends in data that the server must write to a text file. As there are a … -
Replied To a Post in Thousand threads write to one text file simultaneously
> 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 … -
Began Watching is it possible to make global key logger in Java?
Please before you answer NOTE , I am not trying to implement a keylogger, this is just a QUESTION. So, It just randomly happened that I started thinking about this … -
Replied To a Post in is it possible to make global key logger in Java?
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 … -
Began Watching Find the most frequently used words across multiple files
Program is to find the most frequently used words across all the input files, where each word must appear at least once in each file. How can this be achieved? … -
Replied To a Post in Find the most frequently used words across multiple files
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 … -
Edited No Ip Duc host in java socket programming
Now am working with java application . I have to connect server and client through No-Ip Duc host.Is it possible or not??? Server side code: ServerSocket ss=new ServerSocket(5223); System.out.println("Waiting for … -
Marked Solved Status for Parsing large text file in Python
Hi all, I have a large txt file (3 Million lines). Like to use python , to parse the file , so it can be managed by excel. I am … -
Replied To a Post in eclipse vs vim
The biggest point is about consistency. I really don't give a damn what someone uses as long as no one on the team is affected by what they use. For … -
Replied To a Post in Difference between JAVA and C++
> This means that there is an extra layer of indirection on top of everything Almost everything; this doesn't apply to method scoped primitives which are allocated on the stack. … -
Replied To a Post in eclipse vs vim
> That's like telling him he can't use his own chair. I disagree; that's more like saying you can't come in denims when the rest of the team comes to … -
Marked Solved Status for Pre-fill webforms in iframes using Requests
I'm trying to prefill webforms in iframes using Requests. If that can't be done, does anyone have a script I can use that works with webbrowser? I like that it … -
Began Watching Pre-fill webforms in iframes using Requests
I'm trying to prefill webforms in iframes using Requests. If that can't be done, does anyone have a script I can use that works with webbrowser? I like that it … -
Replied To a Post in Pre-fill webforms in iframes using Requests
>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 … -
Began Watching eclipse vs vim
I have just started looking into vim, and It seems very cool indeed ! However, I am not sure whether I should use it for everything or if I should … -
Replied To a Post in eclipse vs vim
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 … -
Marked Solved Status for Avoid CPU time limit exceeded (core dumped) or Terminated due to timeout
Hi recently while trying to solve a core Java algorithm question I got trapped into a problem. Let me explain the puzzle. > There is a series of numbers. where … -
Began Watching Avoid CPU time limit exceeded (core dumped) or Terminated due to timeout
Hi recently while trying to solve a core Java algorithm question I got trapped into a problem. Let me explain the puzzle. > There is a series of numbers. where … -
Replied To a Post in Avoid CPU time limit exceeded (core dumped) or Terminated due to timeout
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 … -
Began Watching Daniweb crashed my laptop
Not sure if this is related but my laptop crashed three independant times using daniweb and only daniweb. When I was browsing other sites no issues. It completely froze and … -
Replied To a Post in Daniweb crashed my laptop
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 … -
Edited Java Memory Clarification
Hi All, I need some help with analysing a problem. I have a list of objects that are retreived as part of search results in my webapp page. From the … -
Began Watching Replacing multiple words with Regex
I want to know if I would be able to replace different words all in one regex expression. For example if I wanted to replace the name John with Joe … -
Replied To a Post in Replacing multiple words with Regex
> However, I do get extra points if I can do it one line of code. Just to be clear I would have to replace two different words with two … -
Began Watching log4j cannot instantiate the file named ...
I am trying to write a output for my log in file on the desktop but for somereason, it is not doing that.It says the file cant be instantiated. I … -
Replied To a Post in log4j cannot instantiate the file named ...
Try replacing the backslashes with forward slashes or double backslashes. Also, you need to specify the appender names in the rootlogger. Something like: log4j.rootLogger=DEBUG, default.out, default.file Take a look at … -
Gave Reputation to Dani in Proud of myself
Have been surfing around forums for forum owners tonight, and an ENORMOUS problem seems to be bot spam. I'm feeling pretty proud of myself and all of the custom tools … -
Began Watching Why is processing a sorted array faster than an unsorted array?
Here is a piece of C++ code that seems very peculiar. For some strange reason, sorting the data miraculously makes the code almost six times faster: #include <algorithm> #include <ctime> … -
Replied To a Post in Why is processing a sorted array faster than an unsorted array?
It's branch prediction indeed; read [this](http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array). -
Began Watching Reputation Points
1. What the deal with rep points? 2. How do they increase? Iv got a few upvotes for helping others but I dont seem to be earning any points. -
Replied To a Post in Reputation Points
Also something which others haven't mentioned; you can't earn rep in any sub-forum which falls under the "Community Center" category. -
Gave Reputation to rubberman in Difference between JAVA and C++
1. Java is C++ with training wheels. 2. Java doesn't support multiple inheritance, other than via interface types, which in my opinion are really useless. Every concrete class that inherents … -
Began Watching An example of a threading background decorator (Python)
Run two calls to a function simultaneously with this threading @background decorator. -
Replied To a Post in An example of a threading background decorator (Python)
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 …
The End.