|
As Pete has suggested look at SignalR its a great library, have a look at this article Streaming live results to a web site using MSMQ/Duplex WCF/SignalR/jQuery[^] by Sacha Barber and Richard E King.
might be overkill for your needs but it shows you what you could potentially achieve.
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
I am looking for Fuzzy Set Class such as fuzzification.cs,Defuzzification.cs,Fuzzy-Inference(Mamdani).cs in C#.net for developing an web_ based expert system. Could somebody help me please?
|
|
|
|
|
I am getting fairly fed up with you posting the same request, getting told the same thing, and deleting your questions because you don't like the answer.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Hi,
I did not delete anything.But I received an email from the site manager that my question had been deleted.
So I repeated it again.
Sorry if I bothered you, unintentionally.
|
|
|
|
|
1. Do not cross post.
2. What exactly do you need? No one will give you all the code you want. We'll gladly help with specific questions though.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I read somewhere that these codes are open source and everybody can access.
|
|
|
|
|
sudabeh3 wrote: codes are open source and everybody can access. I guess you can just google for them then. I'm not familiar with them.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I already asked you in your Q&A question: Where did you get these file names from?
How much sense would it make to you if I asked you "where do I get the files SchemaReader.cs and BaseRecordSchema.cs from" ? No sense at all. That's how we see your question. If you didn't just make those file names up you should ask that question where you learned about those files.
|
|
|
|
|
|
Just a bit unnerved. I googled those filenames. Your questions show up as first results. Do you know what this probably means?
|
|
|
|
|
Sorry; that is advanced technology that we are prohibited from exporting.
|
|
|
|
|
|
Hi I want to replace only 5 digit (not less than or not more than) to “xxxxx” with Regex
I tried -
InputString = "sample1: 12345 – sample2 : 123456789"
Dim regExp As Regex = New Regex("(\d{5})")
regExp.Replace(InputString, "xxxxx")
output - "sample1: xxxxx – sample2 : xxxxx6789"
But i want as "sample1: xxxxx – sample2 : 123456789"
if more than 5 digit , it must not replace.
|
|
|
|
|
Add a whitespace and an "end-of-line" indicator:
Dim regExp As Regex = New Regex("\s(\d{5})$") And include the whitespace back in your replacement string.
And in future: post VB in the VB forum, and C# in the C# forum?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
It was exactly a C# question and not VB. I wonder why this simple question have made all nervous! it was related to Fuzzy Logic and Fuzzy Expert Systems.
Anyway, thanks a lot for your all answers.
|
|
|
|
|
You have replied to someone else's question. The question that was asked here was written in VB.
|
|
|
|
|
If you look at the question I answered, you will see it is written in VB, not C#...
Dim regExp As Regex = New Regex("(\d{5})")
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
how can we convert a code written in c# into matlab??
any idea?
|
|
|
|
|
Already answered in the .NET forum. Crossposting is discouraged.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
can any help..
in this code the first letter of any string in the problem SEND + MORE = MONEY should not be 0. but its showing showing zero..
how to do this???
please help....
namespace CryptArithmetic
{
public partial class Form1 : Form
{
char[] s1 = new char[10];
char[] s2 = new char[10];
char[] s3 = new char[10];
int[] assinged = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
char[] c = new char[11];
int[] val = new int[11];
int topc = 0;
public Form1()
{
InitializeComponent();
}
private void btn_ok_Click(object sender, EventArgs e)
{
label4.Text = "";
s1 = textBox1.Text.ToCharArray();
s2 = textBox2.Text.ToCharArray();
s3 = textBox3.Text.ToCharArray();
int flag=0;
//to check if no letter is repeated and store unique letters in array c[] from s arrays
for(int i=0;i<s1.length;i++)
{
="" for(int="" j="0;j<=topc;j++)
" if="" (s1[i]="" !="c[j])
" (i="=" 0)=""
="" i++;="" flag="1;
" }
="" else
="" break;
="" if(flag="=1)
" c[topc++]="s1[i];" i="0;i<s2.Length;i++)
" if(s2[i]!="c[j])
" if(s3[i]!="c[j])
" }
="" (solve(0,="" assinged)="=1)
" label4.text="" +="\n" c[i]+"---="">"+val[i].ToString() + "\n";
}
else
label4.Text = "Sorry";
}
//-------------------end of getdata-----------------
int solve(int ind,int []temp1)
{
int [] temp2 = new int[10];
int flag=0;
for(int i=0;i<10;i++)
{
if(temp1[i]==0)
{
for(int j=0;j<10;j++)
temp2[j]=temp1[j];
temp2[i]=1;
val[ind]=i;
if(ind==(topc-1))
{
if(verify()==1)
{
flag=1;
goto exit;
}
}
else{
if(solve(ind+1,temp2)==1){
flag=1;
goto exit;
}
}
}
}
exit :
if(flag!=0)
return 1;
else
return 0;
}
int verify()
{
long n1=0,n2=0,n3=0;
long power=1;
char ch;
int i=s1.Length-1;
int in1;
while(i>=0)
{
ch=s1[i];
in1=0;
while(in1!=topc)
{
if(c[in1]==ch)
break;
else
in1++;
}
n1+=power*val[in1];
power *=10;
i--;
}
power=1;
i=s2.Length-1;
while(i>=0)
{
ch=s2[i];
in1=0;
while(in1!=topc)
{
if(c[in1]==ch)
break;
else
in1++;
}
n2+=power*val[in1];
power *=10;
i--;
}
power=1;
i=s3.Length-1;
while(i>=0)
{
ch=s3[i];
in1=0;
while(in1!=topc)
{
if(c[in1]==ch)
break;
else
in1++;
}
n3+=power*val[in1];
power *=10;
i--;
}
if(n1+n2==n3)
return 1;
else
return 0;
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void btn_cancel_Click(object sender, EventArgs e)
{
textBox1.Text = " ";
textBox2.Text = " ";
textBox3.Text = " ";
label4.Text = "";
}
}
}
|
|
|
|
|
Try the built-in encryption routines, they'll be a bit safer than shuffling some values. If you want help with this specific algo, you'll probably have to explain some more; which encryption-algo are you trying to implement?
Also, you'd like to edit your post and put the code between "pre" tags to improve readability.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I didn't read your code, but just in case, in C# (and almost every C base language) when counting an array/index, the very first position of the array will be 0/zero, it is common to see something like this in a for
for (i = 0:i<=Array.Lenght -1;i++){
}
where you substract 1 to the Lenght of the array because even though the array length is 10 you start counting at 0 (0,1,2,3,4,5,6,7,8,9)
I want to die like my grandfather- asleep, not like the passengers in his car, screaming!
|
|
|
|
|
I have 2 text box in form 1 and 4 button + 1 text box in form 2
how I can show the form 1 text box in form 2 and use from their
value.(this is a calculator)
|
|
|
|
|
You can pass it to the form via a setter method, or use a delegate to communicate between them. It rather depends on the structure of your application.
|
|
|
|
|
how can i use from setter method ?
|
|
|
|