Quantcast
Channel: BlogoSfera » need
Browsing all 40 articles
Browse latest View live

SQLiDataReader C# to Java ResultSet

Lots of people will said me it’s stupid or impossible but i need to do it. So i have a Server in C# who communicate with SQLite database. This server share some function with WCF and SOAP. I have a...

View Article


How to store iv, salt and cipher text?

From this on how to achieve password based encryption it is clear that i need to save salt, IV and cipher text in order to decrypt it later. From this iv and salt can be stored along with cipher text I...

View Article


JAVA saving file to csv format .txt

hey guys so i got a assignment where i need to create a employee management system. i created all the basics like login system, employee registration form which saves it to a txt file. The Problem is i...

View Article

Do i need to create of DocumentBuilderFactory everytime in this case?

I need to update the news feeds for every 5 minutes from a rss feed . For this i have written a TimerTask as shown below public class TimerTaskForAllNews { public static void main( String[] args ) {...

View Article

need help in weka stable 3.6.10 set up [on hold]

I am trying to build weka-stable-3.6.10 source code in Eclipse Helios with Java 1.6. I’m not able to generate a build. I followed steps in the mailing list archive...

View Article


Replace defective JDK class

The class BasicLabelUI in javax/swing/plaf/basic is affected by a confirmed bug. In my application I need functionality provided by the fixed version (filed for v9). Due to both legal and technical...

View Article

what are the frameworks need to know to make an IDE for workflow using java?

I want to drag and drop contents in the editor. Say like, square, circles, decision makers. Its the visual editor. There should be a code view.It should generate the code I need. I want to implement...

View Article

How to swap two numbers in Java without using temp by passing the values in...

How to swap two numbers in Java without using temp by passing the values in command line. Need a sample program as I am a novice in the Java Programming. The post How to swap two numbers in Java...

View Article


JDBC parameter verifyServerCertificate=false connects without the need for a...

I am attempting to use the following setup to create an ssl connection to a MYSQL server. I noticed that when I specify verifyServerCertificate=false in the jdbc url, Java seems to ignore the keystore...

View Article


HttpClient with Selenium?

Alright, so I’m in a small pickle. I’m running into issues with JSoup since the page needs Javascript to to finish loading some of the page. Fortunately, I’ve worked around it in the past (parsed the...

View Article

Formula causing .xlsx to need repair on open

I’m generating an .xlsx file using the EPPlus library. I create several worksheets, each with multiple rows. Some rows have a cell reference in column J which I am inserting using the following: for...

View Article

Java: Does mutation of an non-thread-safe collection in a constructor need to...

If I decide to use a non-thread-safe collection and synchronize its access, do I need to synchronize any mutation in the constructor? For example in the following code, I understand the reference to...

View Article

Im trying to sort an Array Alphabetically. When i run the program it never...

This is my constructor of the user importing a list of their choosing of the amount of names and then it is supposed to sort the names alphabetically, but it doesn’t. import java.util.ArrayList; import...

View Article


Apache HTTPClient using TLS

Sorry guys, i’m searching in all the internet for this but i need someone to help me. I’ve written a client for a particular server and i’m using apache http client to communicate with it.Now i’ve put...

View Article

need regular expression from 1 to 20 with 2 floating point number

I need some help for an regular expression for numbers between 1 and 20 with 2 floating point number in c# ? examples : 5 , 6.5 , 7.75 , 10 , 12.3 , 19.99 far i got to this...

View Article


How to load the HSQL DB once before running all junit in Java project

My project is not Spring based .Its a java with Hibernate.Building tool – Maven. I am loading data from one database to HSQL DB before running junits. My DB util class: public class DatabaseUtil {...

View Article

Spring JMX – registering classes in a package as MBeans

I’m setting up JMX support in my application using Spring JMX. It seems relatively easy to do, but I’m wondering about one thing regarding MBean registration. I know that there are (at least two)...

View Article


approximate comparisons in Java application

Have you ever came across such situation: In java, you need to compare two objects, which is usually done by overloading the ‘compareTo’ method in the interface of Comparable. Sometimes, this...

View Article

Do i need to add objects dynamically in this case?

So i’ve been asked to create a simple solar system simulator for my coursework. Our lecturer has set out very specific guidelines in terms of the structure of constructors and methods of our classes....

View Article

AsyncTask onPostExecute listener

Activity.java //Activity stuff MyClass mc = new MyClass(); mc.getText(); public void dosomething() { textview.setText(mc.getText()); } MyClass.java class MyClass { String text; public void setText() {...

View Article
Browsing all 40 articles
Browse latest View live