|
|
hello guys, i'm new in java language but what am thinking is about is it possible to get the ip address of the email sender machine?
if it is, how do the one can perform it in java?
|
|
|
|
|
|
Looking at the headers is the only way to do this.
However, bear in mind that the headers can easily be spoofed. Each server in the chain adds it's own Received header to indicate which computer it received the message from, but it has no way to verify the previous Received headers. As you trace the path back from your server to the sender, once you get beyond the servers that you trust, the headers could be entirely fictitious.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello everyone:
May I ask Java Web questions in there??
Thank you very much.
|
|
|
|
|
|
OK
Thank you very much!!!
|
|
|
|
|
I have the same question and thank you for the answer.
|
|
|
|
|
I have a jsp page with one browse button and one submit button.After selecting any excel file(.xlsx) when I click submit button, I want to store all the value of excel page to postgresql database
|
|
|
|
|
And what is your question?
|
|
|
|
|
|
i have created jar file ,and .exe file file but when i run on another desktop .....shows error sql server exception
|
|
|
|
|
Sorry but that does not really tell us anything. What is the exception and where doews it occur?
|
|
|
|
|
what is the step of create setup file which can run client machine ...and i have created jar file through clean and build tool..but he is don,t run on client machine
|
|
|
|
|
i hava created an application program with sql server database as backend
and i have created an executable jar file with netbeans "clean and build tool"
now a have moved this jar with dist folder to another system but it can not access the database
Plz tell me where we will put database to run application properly
|
|
|
|
|
Since you have still not provided any useful information I cannot possibly make any suggestions.
|
|
|
|
|
Hi;
I would release an application in java that allows an offline recognition of old arabic handwritten using neural networks(PMC, back propagation, activation function sigmoide).
so I have extracted with hand the characters from an old scanned handwritten picture and applicate for each of them the pretraitement step, in result it generates a matrix of 8*8 that gives the percentage of black pixels in the character.
Next I have to release the learning step using neural networks, so I have normalized each the values of each matrix between 0 and 1(to use the sigmoide function) and transforme this matrix for a line vector so that it correnpends like input for the neural network(so now I have a line vector of 64 elements like input data for the neural network).
like output I have the same vector correspending for the good written character of each character.
I save the results(the error of each epoch, and the error activation of the neural output for each input) in a wampserver database for esch character.
Now I would go to the step of recognition, but I have no idea of how starting implementing it using the results of the learning step.
please can you help me?
|
|
|
|
|
This is not a matter of a few simple lines of code; image and character recognition is more complex. You should do some research (via Google) into both subjects to see some of the algorithms and processes that are commonly used.
|
|
|
|
|
Thank you for answring, Yes this is true, and I'm searching in google since months. But as I have understood about what I have read of neural networks documents, the recognition is integrated in the learning step(I don't know if what I have understood is true or false). Do you have websites or links to suggest for me?
|
|
|
|
|
Member 12540619 wrote: Do you have websites or links to suggest for me? Sorry, no. Why would I have more links than Google knows about?
|
|
|
|
|
Guys I was thinking to learn Spring but have few questions:
--- is it say more difficult to learn than .NET?
I am asking this because I want to evaluate: I learned C# and .NET (desktop side and BCL) very easily because of background in C. So if Spring and .NET are more or less similar in terms of programming style and complexity, I could know that I will be fine also with spring.
Can you please give me some guide in this direction?
|
|
|
|
|
Member 12061600 wrote: is it say more difficult That is impossible to answer objectively, because much depends on the individual. The only way to find out is to read some of the overview materials: Java Spring - Google Search[^]
|
|
|
|
|
Basically Spring is a framework for dependency-injection which is a pattern that allows to build very decoupled systems.
For example, suppose you need to list the users of the system and thus declare an interface called UserLister:
public interface UserLister {
List<User> getUsers();
}
And maybe an implementation accessing a database to get all the users:
public class UserListerDB implements UserLister {
public List<User> getUsers() {
}
}
In your view you'll need to access an instance (just an example, remember):
public class SomeView {
private UserLister userLister;
public void render() {
List<User> users = userLister.getUsers();
view.render(users);
}
}
Spring (Dependency Injection) approach
What Spring does is to wire the classes up by using a XML file, this way all the objects are instantiated and initialized by Spring and injected in the right places (Servlets, Web Frameworks, Business classes, DAOs, etc, etc, etc...).
Going back to the example in Spring we just need to have a setter for the userLister field and have an XML like this:
<bean id="userLister" class="UserListerDB" />
<bean class="SomeView">
<property name="userLister" ref="userLister" />
</bean>
It is great, isn't it? 
|
|
|
|
|
What is the good use-case example for Java generics besides collection framework?
It is extremelly hard to create good design using Java generics, mainly because of type erasure and no generic type information at runtime.
I'm pretty new to Java, however it looks like that the only "real-world" purpose for Java generics - is collection framework.
I was curious what are the other good "real-world" examples for generics in Java.
Can anyone give a hint?
|
|
|
|
|