15,897,169 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Coder93 (Top 48 by date)
Coder93
31-Oct-14 13:57pm
View
thanks for your suggestion, I know that, but I want to implement some encryption/decryption using RSA.
Coder93
31-Oct-14 13:50pm
View
Deleted
thanks for your suggestion, I know that, but I want to implement some encryption/decryption using RSA.
Coder93
12-Aug-14 11:12am
View
I know that I can generate random double number with following code, my problem is how to fix it to generate double number in an city boundry!
double start;
double end;
double random = new Random().nextDouble();
double result = start + (random * (end - start));
Coder93
6-Aug-14 5:04am
View
I find yhe problem with js code, it should load some picture( src/images/pic.png ), but I don't know how to set its path in my html.html file so thak it could find it!
Coder93
6-Aug-14 5:01am
View
I don't want to clear listmodel element when new element is added. I want to add each element in its rigth place!
Coder93
28-Jul-14 10:20am
View
yes
Coder93
28-Jul-14 10:20am
View
Deleted
yes
Coder93
15-Jul-14 5:20am
View
It is internal js, also I separate html and js file, and include js source but it didn't work!
Coder93
11-Jul-14 7:31am
View
It seems to be for android, web and ios, but I need some for my desktop app
Coder93
2-Jul-14 10:15am
View
I already read this link, but I want to know can I implement pidgin plugin using java?
Coder93
6-May-14 12:42pm
View
when I comment the "postInfo[5] = xml;" I dont get an exception! so other element of an array don't have problem. I think the exception is because of stringify of DOM structure!
Coder93
6-May-14 11:18am
View
The problem is because of storing DOM in post array which i stringyfy with JSON.
so how can i cache DOM ?
Coder93
6-May-14 10:57am
View
I load an xml file as follow :
xml = loadXMLDoc(load_link);
function loadXMLDoc(dname){
if (window.ActiveXObject)
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP.3.0");
else
xmlhttp=new XMLHttpRequest();
xmlhttp.open("GET",dname,false);
xmlhttp.send("");
return xmlhttp.responseXML;
}
...
postInfo[5] = xml;
post[id] = postInfo;
localStorage["blogInfo"] = JSON.stringify(post); --> in this line i get an exeption
Coder93
3-May-14 14:21pm
View
for example we have following in xml, (body have to cdata child)
<body>
<![CDATA[
Quae eum provident cumque. Expedita non labore. Expedita tenetur voluptatem rerum necessitatibus est laboriosam velit. Ab eaque eligendi distinctio aut rerum excepturi. Est eum dolor. Ipsam consequuntur unde. Occaecati quis ex esse. Fugiat aut excepturi laborum et qui. Sint blanditiis at quia veritatis. Est dolores fugit minus officia. Mollitia laboriosam quia. Neque aut et quidem sunt atque similique ut.
]]>
<![CDATA[
Quae eum provident cumque. Expedita non labore. Expedita tenetur voluptatem rerum necessitatibus est laboriosam velit. Ab eaque eligendi distinctio aut rerum excepturi. Est eum dolor. Ipsam consequuntur unde. Occaecati quis ex esse. Fugiat aut excepturi laborum et qui. Sint blanditiis at quia veritatis. Est dolores fugit minus officia. Mollitia laboriosam quia. Neque aut et quidem sunt atque similique ut.
]]>
</body>
i want to show each of them in separate paragragh!
Coder93
2-May-14 14:57pm
View
I update my question.
Coder93
1-May-14 2:07am
View
I write my code in notepad++
Coder93
30-Apr-14 17:07pm
View
the errors are:
XMLHttpRequest cannot load file://.... Cross origin requests are only supported for HTTP.
Uncaught ReferenceError: xmlhttp is not defined.
Uncaught NetworkError: A network error occurred.
Coder93
30-Apr-14 15:25pm
View
yes, same folder!
Coder93
30-Apr-14 13:26pm
View
they are in the same file as the source code!
Coder93
30-Apr-14 13:18pm
View
they are some JS file:
msg1 : window.alert("Hi, I am a window.alert Message");
msg2 :
var newp = document.createElement("p");
newp.innerHTML="I am a HTML message";
b = document.getElementsByTagName("body")[0];
b.appendChild(newp);
Coder93
30-Apr-14 12:36pm
View
I do this, nothing happend!
Coder93
30-Apr-14 12:17pm
View
I replace the else part with "window.alert(" "+ this.status);", the status is : undefined.
Coder93
30-Apr-14 12:17pm
View
Deleted
I replace the else part with "window.alert(" "+ this.status);", the status is : undefined.
Coder93
30-Apr-14 12:15pm
View
I replace the else part with "window.alert(" "+ xmlhttp.statusText);", when I run it and click on the button, nothing happen!
Coder93
30-Apr-14 11:57am
View
It doesn't have any status!
Coder93
30-Apr-14 11:51am
View
it always run "window.alert("Error "+ xmlhttp.statusText);"
Coder93
30-Apr-14 10:36am
View
I have added my code to my question.
Coder93
30-Apr-14 10:17am
View
Deleted
this is my code:
<pre lang="HTML">
<html>
<head>
<script type="text/javascript">
function runJsAsynch(url){
var xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange = process;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
function process(){
if(this.readyState == 4){
if(this.status == 200){
eval(this.responseText);
}
else{
window.alert("Error "+ xmlhttp.statusText);
}
}
}
</script>
</head>
<body>
<button type="button" onclick="runJsAsynch('msg1.js')">Alert Message</button>
<button type="button" onclick="runJsAsynch('msg2.js')">HTML Message</button>
</body>
</html>
</pre>
Coder93
6-Jun-13 17:01pm
View
which component i should to use?
i want to select number of item so i can't use jradiobutton, wich component i can use?
Coder93
6-Jun-13 16:13pm
View
thank's.
so how do you assing? the solution you have said is'nt best assignment.
i have toled all the detail nothing is left.
Coder93
6-Jun-13 16:04pm
View
in this solution , it isn't the best assignment.
Coder93
6-Jun-13 16:01pm
View
it is some project that i had read it , i want to do it for myself!
in that project, said that use max flow!
Coder93
6-Jun-13 15:58pm
View
we want to assign jobs so that max people involved!
Coder93
6-Jun-13 15:51pm
View
i can't underestand what do you mean !!
Coder93
6-Jun-13 15:44pm
View
i want to implement it according to max flow algorithm & using ford_fulkerson.
Coder93
6-Jun-13 15:37pm
View
oh sorry, i don't say something :
I want to assing jobs to person so that max number of people get jobs.
input of problem :
jobs & their capacity
person & jobs they can do & max number of jobs that can do Simultaneously
out put :
the list of assingments
Coder93
6-Jun-13 15:17pm
View
i read the max flow algorithm , it use a gragh(some nodes, and edges have the max capacity that can flow on it), but i don't know that in my question what is the node & flow?
Coder93
6-Jun-13 15:06pm
View
it isn't homework !
I know that I can do it with code ,
But my problem is the defenition of node & flowin this question ?
Coder93
23-Mar-13 16:36pm
View
i found one of my problem :
how can i chane the imageicon size ?(if the size is'nt an integer number)
Coder93
23-Mar-13 16:05pm
View
its my code :
BufferedImage bi = new BufferedImage( 100 ,100 , BufferedImage.TYPE_INT_ARGB);
Graphics2D g = bi.createGraphics();
ImageIcon ur = new ImageIcon(getClass().getResource("/images/UR.png"));
ImageIcon ul = new ImageIcon(getClass().getResource("/images/UL.png"));
ImageIcon dr = new ImageIcon(getClass().getResource("/images/DR.png"));
ImageIcon dl = new ImageIcon(getClass().getResource("/images/DL.png"));
g.drawImage(ur.getImage(), 0, 0, this);
g.drawImage(ul.getImage(), k/2,0,this);
g.drawImage(dr.getImage(), 0,k/2 ,this);
g.drawImage(dl.getImage(), k/2,k/2 ,this);
g.drawImage(ul.getImage(), x, y, this);
imageicon ret = new ImageIcon(bi);
Coder93
17-Mar-13 18:57pm
View
I had searched about it, but i want to know is there any book or article or ... that gathered some of these algorithms !
Coder93
17-Mar-13 18:56pm
View
I have searched about it, but i want to know is there any book or article or ... that gathered some of these algorithms !
Coder93
30-Jan-13 4:47am
View
thank you ,
it work correctly.
Coder93
27-Jan-13 14:05pm
View
It is part of my code :
public class myclass {
private ……;
private Random random;
…….
public copkmeans (double [][] dataSet , int [][] constraint , int k, int i, int j , int l) throws IOException {
…….
random = new Random(i);
}
private void makeCluster (){
int randomNum;
int range = k;
while(range > 0){
randomNum = random.nextInt(i)+1;
System.out.println("random"+randomNum);
for(int m = 1; m < l ;m++){
if(constraint[m][1] == randomNum )
if(constraint[m][3] == 1)
if(clusters.contains(constraint[m][2])){
break;
}
if(constraint[m][2] == randomNum )
if(constraint[m][3] == 1)
if(clusters.contains(constraint[m][1])){
break;
}
clusters.add(randomNum);
used.add(randomNum);
myItem temp = new myItem(m, dataset , j);
temp.setHole();
clusterCenter.add(temp);
range--;
break;
}
}
int v = 1;
for (int a = 0 ; a < clusters.size() ; a++) {
partition[clusters.get(a)] = v;
v++;
}
}
Coder93
25-Jan-13 5:53am
View
I run the code after 20 min but, it generate the random number like before!!!
Coder93
25-Jan-13 5:53am
View
Deleted
I run the code after 20 min but, it generate the random number like before!!!
Coder93
25-Jan-13 5:36am
View
i use your solution , but it always generate same random number, what should i do ?
Coder93
14-Jan-13 14:41pm
View
If sometime I want to write at the end of the file and sometime i want to delete the
previous file and create a new one with same name what should i do?
Show More