|
Indeed, Norton.
A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.
I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.
|
|
|
|
|
Muahaha! I so knew it!
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
When running our program as a single-threaded application, the AV was not able to to terminate it. It only shot down separate threads. What kind of security is this? Why is a single-threaded application less of a threat than a multi-threaded one? And why is this thing still active when the whole protection has been deactivated explicitly?
I guess all AV products can get on one's nerves once in a while. And also I can understand that an automated detection of potentially harmful activities may make a mistake here and there. Receiving mails, reading and writing XML and sending faxes, all in one thread may be interpreted as potentially harmful. But still I would at least have appreciated a message about what the AV protection intends to do or had done.
A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.
I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.
modified on Wednesday, May 28, 2008 4:25 AM
|
|
|
|
|
I haven't had a real problem with any other AV software (apart from a false positive from Avira once) except Norton.
At a customer's I was installing .NET Framework 1.1 a while ago. Hundreds of times this went without troubles, but on this computer, the setup would simply hang without any notification whatsoever. Then I discovered that the customer had Norton InSecure Internet Security installed. Only wiping this crap from the disk completely allowed us to install .NET.
Seems as if Norton didn't get any better since then...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
I am querying like below
SELECT XMLData.query('"title"') FROM XMLTable
on an sql server database's xmlTable's XMLData of xmltype field.
But it alway returning the string "title" for all the records in the table.
Is it not possible to query like the above ?
Please suggest something.
|
|
|
|
|
i've never used sql server xml functionality, but it looks like you're using wrong syntax.
execution the xpath "'title'" will always return "title", so you may need to modify your xpath expression.
what's a sample content of your xmltype field?
|
|
|
|
|
Actually i want to search the string "title" at any location through out the complete xml data. what is the way to frame the query?
Plese help.
|
|
|
|
|
so there is some xml data with 0, 1 or more occurances of "title" anywhere? okay..but what do you expect your query to return?
|
|
|
|
|
Hi all,
I am trying to use logging application block to log messages. I have to specify a user defined category on which events have to be logged. By default it's coming in the category "none" irrespective of the category we supplied. How to correct this?
Isn't there any relation between the category of the eventviewer and the category property of the logentry.
Should we have to play with registry for doing this?
Thanks in advance.
modified on Monday, May 26, 2008 10:24 AM
|
|
|
|
|
|
This should be in ASP.NET message board.
Also, if you dont explain what Authentication method you are using, no one will be able to answer you.
|
|
|
|
|
Thanks for the tip
Waddatah
|
|
|
|
|
In Excel worskheet how to find out that a particulat cell is selected or not ?
|
|
|
|
|
You posted the same question 2 hours ago. Once is enough. I think you should supply some more information in your other thread. How are you trying to access the Excel file etc?
|
|
|
|
|
In the Excel worksheet, WHen user selects cells randomly with CTRL key pressed , I need to get those cell inormation like row/column position and data in those cells.
I am able to do this when the user selects the cells sequentially like index 0,1,2 ..etc with the help of Worksheet range object.
But If I do the same selection of cells randomly using CTRL key, there is no range is available and I need to get the info of these cells.
Hope I am clear now..
Thanks,
Rajan
|
|
|
|
|
Since morning I am not able to access my database. It is marked as Suspect. The server was down in the morning and when it was on , I tried to access my database. However, now I am not able to access it. I even tried searching for the .mdf file. But, I am not able to find it. I've no latest backup of my database. Now, if I dettach the database from the server or run sp_resetStatus commnad then, the database might not get recovered. So, please help. I need to fix it asap so that I could start my work.
|
|
|
|
|
This does not seem to be a C# question. You have the wrong forum!
|
|
|
|
|
Hi,
I want to disply each row of datasource as a column of gridview control in C# windows form.
I'n new to this. can anyone help me?
thanks in advance
regards
sri
|
|
|
|
|
Hello everyone,
Here is my simple bonus assignment program. The issue I met with is, the ResultTotalReceived is larger then ResultTotalSent, which violates corporation policy and exception is thrown.
The program works in this way,
1. At source side, calculate and assign the bonus according to each worker's factor (100F for worker1 and 300F for worker2 in my sample). All figures are float type.
2. Convert the float type to string and sent to another destination to store the bonus into storage;
3. The detination side will perform basic checking rules before storing the data, e.g. the total bonus assigned should not exceed the total bonus available at source side.
In my code below,
The value of ResultTotalSent is 199.321, and the value of ResultTotalReceived is 199.321045, which is larger than ResultTotalSent.
My questions is,
1. If I want to solve this issue at source side, what is the elegant way to solve this issue? Currently, my temp solution is using ToString("F2"). Any issues with this solution?
2. Why there is such issue? It is the issue of ToString of Float class -- I have this suspecision is because ResultTotalSent is precise but after ToString conversion the result and conversion back at detination side, it is not precise?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestFloat
{
class Program
{
static void Main(string[] args)
{
float TotalBonus = 199.321F;
float Worker1 = 100F;
float Worker2 = 300F;
float Result1 = TotalBonus * Worker1 / (Worker1 + Worker2);
float Result2 = TotalBonus * Worker2 / (Worker1 + Worker2);
float ResultTotalSent = Result1 + Result2;
string Result1String = Result1.ToString();
string Result2String = Result2.ToString();
string ReceivedString1 = Result1String;
string ReceivedString2 = Result2String;
float Received1 = float.Parse(ReceivedString1);
float Received2 = float.Parse(ReceivedString2);
float ResultTotalReceived = Received1 + Received2;
return;
}
}
}
thanks in advance,
George
|
|
|
|
|
The reason this issue exists is because computer processors use binary for arithmetic calculations with a floating decimal point - new chips are being created which do arithmetic calculations in decimal and with these chips there is no rounding error.
You could use decimal instead of float as it has a greater precision but a smaller range(this should not cause a problem unless you are calculating M$ executive bonuses).
The issue is basically to do with how chips are constructed - with decimal arithmetic chips in the pipeline this issue will hopefully soon be history.
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
Thanks GuyThiebaut,
Why decimal will not have rounding errors? Interested to learn.
I understand how float is represented in memory and I have read the article about float, but no knowledge about how decimal is represented.
http://docs.sun.com/source/806-3568/ncg_goldberg.html[^]
regards,
George
|
|
|
|
|
Hi,
I don't understand how it works, it's more that I have faith that it works based on a super brainy colleague's assertions.
I did find a link clickety that may illuminate the matter for you.
Regards
Guy
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
Thanks Guy!
1.
I have made some further test. I want to use float.Epsilon to check whether the result is the same -- if the differences between two float numbers are smaller than float.Epsilon, I will treat they are the same. But my code is not working. Any ideas?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestFloat
{
class Program
{
static void Main(string[] args)
{
float TotalBonus = 199.321F;
float Worker1 = 100F;
float Worker2 = 300F;
float Result1 = TotalBonus * Worker1 / (Worker1 + Worker2);
float Result2 = TotalBonus * Worker2 / (Worker1 + Worker2);
float ResultTotalSent = Result1 + Result2;
string Result1String = Result1.ToString();
string Result2String = Result2.ToString();
string ReceivedString1 = Result1String;
string ReceivedString2 = Result2String;
float Received1 = float.Parse(ReceivedString1);
float Received2 = float.Parse(ReceivedString2);
float ResultTotalReceived = Received1 + Received2;
if ((ResultTotalReceived - ResultTotalSent) < float.Epsilon)
{
Console.WriteLine ("Treated the same. ");
}
return;
}
}
}
2.
Your referred link is great! But it is about float calculation. My question is about Decimal. Any comments?
regards,
George
|
|
|
|
|
Hi,
All I can say is that when I googled C# decimal and float I came across an article saying always use decimal for financial calculations due to the issue you are coming up against.
Sorry I can't be of more help - busy at the moment...
Regards
Guy
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
Thanks all the same, Guy!
regards,
George
|
|
|
|