|
Not sure what you mean.
This is what I understood from it:
You deployed a program to a client's pc.
Now a month has passed and you want to stop the program from working.
You don't want / can't install a new version of the program.
The program uses a database that is common for all your clients.
If the above is correct then I don't think you can stop the program from working.
You could deny the clients IP from accessing your db (depending on your setup), that would render the program useless I guess.
If the above is incorrect then please explain more clearly.
|
|
|
|
|
Sometimes the dross questions are really awful that you just feel like chewing off a finger or two!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: chewing off a finger or two
Don't do that (to much) or you'll be unable to answer the non-dross questions
But have to agree the level of the questions has gone down dramatically. I was just in a good mood so figured I'd give him the benefit of the doubt sort of speak.
Good mood is over now unfortunately, a elusive bug will do that
|
|
|
|
|
Disabling his access to the database server would be a first step to stop him from storing / reading information, that is if he doesn't have access to the database configuration string.
Even if he does he'd need the database structure to recreate the database on another server so that's a good step. Hold out on the database information until he fronts his bill.
|
|
|
|
|
Set up an access control list on your router to deny the customer's IP address.
|
|
|
|
|
Hi Guys,
Is it possible to pass multiple machine names to the ServiceController[]?
I'm basically trying to develop an application that will pull out a list of machines / IPs and windows service names from a SQL query so multiple services can be stopped / started at once. As there is a large number of services across multiple servers try to improve the control.
Now I tried passing the resultset into the "ServiceController.GetServices(IPs)" but the argument only returns the first machine name. I'm not sure if this can be done using an arraylist perhaps? (Quite new to C# so just trying to find my feet)
Is it also possible to limit the services shown i.e not all services on the machine?
Many thanks in Advance...
|
|
|
|
|
The ServiceController will only work with one machine. If you want to do multiple machines as the same time, you'll have to create a new ServiceController for each one of them.
Kunal Pandya wrote: Is it also possible to limit the services shown i.e not all services on the machine?
It will retrieve the entire list of services from the target machine. Which ones you show the user is entirely up to you. You don't have to list every service in your UI if you don't want to.
|
|
|
|
|
I have a Dotnet(C#) windows application
I have to access peoplesoft api from dotnet application ?
Please repond to this message
|
|
|
|
|
I'm afraid you'll have to read the manual that came with Peoplesoft API.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hello,
I have datagridview and a cellmouseenter event.
When the event accures it opens a tooltip and shows the cell value.
When the cell value is long it shows the toop tip in one line (long text). How can i split this text to some rows (according the number of strings in the cell value- i mean the cell has sentence and i want to split in to some rows in the tooptip)
|
|
|
|
|
I think a newline should do it, try \n or Environment.Newline.
|
|
|
|
|
Ok,
But how can i count the number of strings in the cell and determine if to do the new line?
|
|
|
|
|
Don't break it up by number of words, rather break it up by number of characters, give it a try and tell me if you get stuck.
|
|
|
|
|
I have a big ogg file that contains words in a foreign language one after another with a small but noticeable gap between them. I want to be able to detect this gap and record the time in which it occurs. Is there a way to do this in c#?
or could this data be somehow stored in the ogg file itself?
|
|
|
|
|
Tricky but entirely possible. First thing I'd do is convert from Vorbis to a good old fasioned PCM wav file (get some third party thing to do this for you). You then need to interpret that, its in RIFF format which is pretty straight forward.
The quiet bits between words will be represented by a series of smaller numbers. Large numbers represent loud noises. So you need to pass the file looking for periods of lower value samples. Set a threshold and minimum duration. By knowing where you are in the file and the sample rate you can work out the times of the quiet bits.
You might need to potentially create some sort of low pass filter to remove any artifacts which could confuse the procedure. Sounds grim but its easy enough.
Sort of vague, but hope that helps a bit.
Regards,
Rob Philpott.
|
|
|
|
|
Hi.
In the following snippet code :
static void func(ref string bits)
{
for (int i = 0; i < bits.Length; i++)
{
if (RANDOM_NUM < MUTATION_RATE)
{
if (bits[i] == '1')
bits[i] = '0';
else
bits[i] = '1';
}
}
}
I receive this error :
Property or indexer 'string.this[int]' cannot be assigned to -- it is read only
What's wrong ?
|
|
|
|
|
Mohammad Dayyan wrote: I receive this error :
Property or indexer 'string.this[int]' cannot be assigned to -- it is read only
What's wrong ?
Nothing. Strings in C# are immutable.
From the MSDN on string:
A String object is called immutable (read-only) because its value cannot be modified
once it has been created. Methods that appear to modify a String object actually return a
new String object that contains the modification. If it is necessary to modify the actual
contents of a string-like object, use the System.Text.StringBuilder class.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Thanks a lot.
I didn't know it !
|
|
|
|
|
I had a question about StringBuilder
What's the equel of Substring method in StringBuilder ?
|
|
|
|
|
Don't think there is one. But try calling the ToString() method and then the SubString() method on the returned string object.
StringBuilder s = new StringBuilder();
s.Append("foo");
string a = s.ToString().SubString(0,1);
|
|
|
|
|
Wouldn't use it if there was one (which there isn't, I don't think)!
Try this, if you are most comfortable with strings.
static void func(ref string bits)
{
StringBuilder sb = new StringBuilder();
char Out;
foreach (char c in bits)
{
if (RANDOM_NUM < MUTATION_RATE)
{
if (c == '1')
Out = '0';
else
Out = '1';
}
else
{
Out = c;
}
sb.Append(Out);
}
bits = sb.ToString();
}
You could use a System.Collections.BitArray, but it may be a little heavy-duty for what you are trying to do. Probably the proper way to do it though!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Strings are immutable. This means you can't change them once they have been created.
You can access the individual characters like you are doing, but you can't set them to new values. (Don't be fooled into thinking you can modify strings by doing concatenation and stuff like that. Every string operation that looks like it is making a change is actually creating a new string object so if you do it a lot it can get quite slow)
Take a look at the System.Collections.BitArray[^] class instead, it might be better suited to what you are doing.
Simon
|
|
|
|
|
While strings are meant to be immutable, you can cheat with pointers. It's dangerous though, with interned strings etc. So just don't. But that doesn't mean it's impossible.
|
|
|
|
|
Howdy,
I'm using this.Refresh() method in the Button_Click event to refresh the machine, but this only works for the form in particular. It doesn't seem to refresh the system, rather it seems like as if the form is getting refreshed up.
Any way through which I can refresh the machine from two to three times, on a single button click? And is it possible to send the F5 key in oder to refresh?
plz help!
i_w32_app.
|
|
|
|
|
What are you trying to achieve?
this.Refresh() just invalidates the object (in this case the form your button is on) and issues paint messages for it and child controls.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|