Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.
0
votes
0answers
6 views
web scrapping on pages with javascripts
I have been doing web scraping for a few months now and always get stuck on pages which load data using javascript.
I have a certain degree of success on such pages using HTMLunit but sometimes ...
0
votes
0answers
9 views
JDBC Connection Pooling vs Dependency Injection
I'm quite new to Java EE and Connection Pooling. I've already tried few pools and every single one of them had the following issue:
ConnectionPoolDataSource source = new ConnectionPoolDataSource(); ...
0
votes
2answers
19 views
Rethrow checked exception from Runnable
I execute multiple tasks from my main class:
ExecutorService executor = Executors.newFixedThreadPool(N);
for (int i = 0; i < M; i++) {
executor.execute(task);
}
executor .shutdown();
while ...
-1
votes
1answer
10 views
How would you clean up URL from tracking query string variables?
I have some 1000s of URLs and the task is to count their occurrences and print top frequent. The problem occurs when single article has multiple URLs. Example below:
...
-1
votes
4answers
51 views
diff between boolean res=a==b and boolean res=(a==b)
can any one explain ?
String a=new String("srihari");
String b=new String("srihari");
boolean res1=(a==b); // reference check
System.out.println(r); // true
boolean res2=a==b; // object check ...
0
votes
0answers
23 views
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update. Why am I getting it?
While trying to write a file into the database, I am getting the following exception :
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
The following code,generates ...
0
votes
0answers
7 views
how to rescale binary character image?
http://cafefiles.naver.net/20130606_179/rise1925_1370463189365uKV60_PNG/%C1%A6%B8%F1_%BE%F8%C0%BD.png
I tried to resize character images by bicubic algorithm in Java.
but as you can see it linked , ...
-3
votes
1answer
18 views
Running Swing application in Unix Server
I have developed a Java Swing application. It works only in Windows OS. How can I run the same in Unix OS?
0
votes
3answers
18 views
BorderLayout.CENTER doesn't center
I can't get my JLabel to center in my JPanel after adding a ChartPanel to it:
JPanel panel = new JPanel(new BorderLayout());
panel.add(visualiser(ternaire), ...
0
votes
0answers
14 views
Java and shadow copy databases/datasources
I trying to search in Google, Hibernate documentation, Spring Documentation some information:
How I can configure my data sources in Spring Framework for create additional shadow copy of my MySQL db?
...
0
votes
1answer
12 views
Loading icon (progress) while logging into FTP in Android application
How can I get a loading icon (like a small circle running rund) while I am logging into a FTP server in an Android application? I know that there is a progress bar in the AsyncTask, but want to grey ...
1
vote
4answers
45 views
What is the best (performance + memory) between String and HashSet for checking duplicates
I want to do a simple implementation to do some operations based on a distinct Codes (aCode) among the bigCodeList contains duplicates.
Below I have mentioned two approaches what i want to know is ...
-2
votes
0answers
10 views
How to find xpath for all element presence on webpage using JAVA?
Requirement is to get the list of all object Name, object Type and object path presence on any web page and create in list form.
2
votes
2answers
39 views
Memory management for Immutable Objects
I have a conceptual doubt regarding the memory management of Immutable objects such as String Objects in java and other languages. For example, if I have a String object "str" holding the value ...
1
vote
0answers
5 views
How to provide in-place autocorrection in Solr?
Is possible in Solr to provide an in-place auto-correction? Like Goggle:
If yes, then please tell me how?
Is it a Solr configuration? or some extra hand-coded logic after I get Solr's ...