There is a performance issue where that I have stuck with my application which is based on PHP & MySql. The application is for Data Migration where data has to be uploaded and after various processes (Cleaning from foreign characters, duplicate check, id generation) it has to be inserted into one central table and then to 5 different tables.…
I have very simple named query on JPA (toplink ):
UPDATE Server s SET s.isECM = 0
I don't carry about cache or validity of already preloaded entities. But database connection is performed from restricted account (only INSERT/UPDATE/DELETE). It is appeared that toplink on this query executes (and failed since TL_Server is not exists) very…
Hi,
I have created one application in c#.net.Using this application we can update datagridview,now i need to implement undo in it plz give me some ideas.
private void button29_Click(object sender, EventArgs e)
{
Datatable dt;
dt.RejectChanges();
}
using above code i can do undo before updating.
but i…
Hi all...
I'm having the following two tables...
Table : room_type
type_id type_name no_of_rooms max_guests rate
1 Type 1 15 2 1254
2 Type 2 10 1 3025
Table : reservation
reservation_id start_date end_date…
I wrote the following query, I think it's correct but I have a "missing operator" error.
SELECT * FROM results,Types WHERE results.a=Types.b
INTERSECT SELECT * FROM results,Types WHERE results.c=Types.b
Could somebody help me please?
Thanks a lot.
Hello i have two columns: duration (int) and dateCol (date) in a table.
How should i proceed if i want to know when CURDATE() - dateCol will iqual to duration.
ie: CURDATE() - dateCol (2010-05-08) = duration (14 days), and then send an e-amil?
In axis2 on Java it's possible to run operations in the browser by the way you send the url
for example
localhost:8080/axis2/services/SimpleService?wsdl
could have operations implemented by writing urls like so
localhost:8080/axis2/services/SimpleService/hello?param0=xxx
My Question is can you do the…
We shave this code which result in timeout when downlaoding the file programatically:
System.Net.WebClient Client = new System.Net.WebClient();
if (!File.Exists(fileName))
{
Client.DownloadFile(downloadLink, fileName);
HtFilesSuccessfullyDownloaded[fileName] = fileName;
string…
Assume we have trillions of sets stored somewhere. The domain for each of these sets is the same. It is also finite and discrete. So each set may be stored as a bit field (eg: 0000100111...) of a relatively short length (eg: 1024). That is, bit X in the bitfield indicates whether item X…
My application reads a user selected file which contains addresses and then displays on mapview when done geocoding. To avoid hanging app the importing and geocoding is done in AsyncTask.
public class LoadOverlayAsync extends AsyncTask<Uri, Integer, StopsOverlay> {
Context…
Hello,
I want to learn the operating system. How it works. I dont want to make my own operating system. I just want to learn how it works. As i can find out source code of any open source OS. But how to start.
Like stating from the first elementary kernal(what ever it is). Some body…
here is the input data:
% @param Landmarks:
% Landmarks should be 1*m struct.
% m is the number of training set.
% Landmark(i).data is a n*2 matrix
old function:
function Landmarks=CenterOfGravity(Landmarks)
% align center of gravity
…
I know I missasked the question, and that's probably the reason I can't find the solution myself:
How do I take a result in a stored procedure and and change the data such as
if column1 = AAA then
column1=Hello
else if column1 = BBB then
…
Hi All,
I have a select box that gets cloned. I want to remove the user's previous selection from each cloned select box. Here is the method that does the clone() :
function addselect(s){
$('#product_categories > .category_block:last').after(
$('#product_categories…
Hi Guys,
For one of my course project I started implementing "Naive Bayesian classifier" in C. My project is to implement a document classifier application (especially Spam) using huge training data.
Now I have problem implementing the algorithm because of the limitations…
I tried to make the title as specific as possible. Basically what I have running inside a backgroundworker thread now is some code that looks like:
SqlConnection conn = new SqlConnection(connstring);
SqlCommand cmd = new SqlCommand(query, conn);
…
Is there anyway another process monitoring for files created using XMLDocument.Save() could encounter a partial file? Does it make any difference if Save() is overwriting an existing file?
When I do the following in Java:
System.out.println(2.2-2.0);
It unexpectedly prints the following:
0.20000000000000018
What is this and how can I avoid this?
Background:
I am building a website in Drupal that links together a wide variety of social service providers for the purposes of discovery, collaboration, and all that good stuff. The goal is to make a website that is simple to browse for consumers of these services and…
Hi Guys,
For one of my course project I started implementing "Naive Bayesian classifier" in C. My project is to implement a document classifier application (especially Spam) using huge training data.
Now I have problem implementing the algorithm because of the…
In WPF I want to change default close behaviour of some window, so that when user clics red close button the window does not close, it merely hides (and call some method as well). How can I do that?
Kindly tell me why the original image is not coming with this code. The resulting image receive is yellowish in color,instead of being similar to the image Img_new
Img=imread(‘lena_color.tif’);
Img_new=rgb2gray(img);
Send=zeroes(size(Img_new);
Receive=…
I need to have the following : (name1 + "a") + (name2 + "a") + ...
Dim separator() As String = {"|"}
myString.Split(separator, StringSplitOptions.None).SomeLinq(...)
I don't know what to add at the end to add an "a" to each element...