|
GriffinPeter wrote: brain != null
Shouldn't that be
if (!brain.IsNullOrEmpty())
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
|
|
|
|
|
write this...
"About the project"
The project is going to be the most complex application that I can find full source code on the internet.
"Overview of the project"
The project will involve me doing $&!£ ALL and most likely still getting a pass which will enable me to carry on with a career I am extremely unqualified to pursue.
But, seriously...
Where are you currently studying your computer science degree? I can get most grading schemes for most education authorities which you could use to help you know exactly what to write to get a good grade.
Life goes very fast. Tomorrow, today is already yesterday.
modified on Wednesday, June 17, 2009 8:17 AM
|
|
|
|
|
if(Student != "Reseach own your own")
{
Response.write(<script>alert('Final year Results:Fails,You are Retarded lol');</script>);
}
else
{
Response.write(<script>alert('Good Stundent Well Done, You worked hard');</script>);
}
i think am about to because of this type of posts
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
vinithakizhussery wrote: "Overview of the project"
The first stage of my project is to ask the customer if they want fries with that.
The next stage involves standing around with a vacant expression. (For extra credit, I let a little bit of drool dangle from the side of my mouth).
The final stage is to get the order wrong.
vinithakizhussery wrote: "About the project"
This project is about what I will be doing when I fail my course because I have deprived my village of an idiot.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Pete O'Hanlon wrote: This project is about what I will be doing when I fail my course because I have deprived my village of an idiot 20 pages too short for a pass mark.
FTFY
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
|
|
|
|
|
Hi. Is there any ways/ APIs to determine how many references of a certain object/ class a C# program creates/ uses during it's life cycle?
Suppose there's a class Person and in my program several references to Person objects are made. How to determine the number of Person references in my program?
Thanks.
[Kayes]
|
|
|
|
|
Not sure about APIs etc., but the obvious one is to maintain a static int as part of your class and increment it for each constructor. This doesn't "uncount" them when they are GCed though, so it is a total count, rather than a shapshot.
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
|
|
|
|
|
Yeah, instance counting is easy. BTW: you could decrement the counter in a finalizer.
However reference counting is basically impossible, a reference can be copied without the class or object being aware of that.
Person person1=new Person();
Person person2=person1;
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Yeah, that's my point.
[Kayes]
|
|
|
|
|
That's a way. But consider the following. One object is constructed, but two references.
Person p = new Person();
Person q = p;
How to track this?
[Kayes]
|
|
|
|
|
you can't, there is nothing to support that in .NET
The GC is based on (a slightly conservative) reachability or "life" analysis, not on reference counting.
why would you need a reference count?
if only for one or a few classes of your own, you could try and implement it yourself, including an override for the = operator. Not sure you can get it all tight though.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Helloo Experts!!
I want to calculate difference between two dates(Day) and display that differnce date like 12\02\09,
In short,
current date:12\02\09
Dispaly date;11\02\09
help me!!
|
|
|
|
|
See Timespan 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
|
|
|
|
|
you can try this,
DateTime d1 = DateTime.Today;
DateTime d2 = DateTime.Today.AddDays(1);
TimeSpan ans = d2.Subtract(d1);
If I didn't get your problem plz explain it.
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
|
public new static object GetIPictureDispFromPicture(System.Drawing.Image image)
{
System.Drawing.ImageConverter converter2 = new System.Drawing.ImageConverter();
byte[] arraybyt2 = (byte[])converter2.ConvertTo(image, typeof(byte[]));
System.Drawing.Image imageToConvert = System.Windows.Forms.AxHost.GetPictureFromIPicture(System.Windows.Forms.AxHost.GetIPictureFromPicture(image));
System.Drawing.ImageConverter converter = new System.Drawing.ImageConverter();
byte[] arraybyt = (byte[])converter.ConvertTo(imageToConvert, typeof(byte[]));
return System.Windows.Forms.AxHost.GetIPictureFromPicture(image);
}
The function receives a Image that needs to be converted to an ipicture. I found out that during change the image to a ipicture and back to image the size of the array of bytes are different. How come the size of the arraybyt1 and arraybyt2 are different. I'm creating a checksum of the array from bytes and therefor the checksum is also different?
|
|
|
|
|
I am not familiar with IPicture, and therefore this is very much a guess.
Perhaps Image stores data that IPicture doesn't, or vice versa. For example, different sized headers or one stores palette information and one doesn't.
Most image formats have their specifications out on the web somewhere, have a play with google.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I need to create a method that accepts a string as a parameter and checks whether this parameter is a valid SQL Server datatype or not. Can someone help please?
thanks
|
|
|
|
|
Hi,
Change the method parameter from String to SqlDbType.
himanshu
|
|
|
|
|
How about System.Enum.Parse ( typeof(System.Data.SqlDbType) , "datetime" , true ) ?
|
|
|
|
|
thanks it worked fine for my application
|
|
|
|
|
|
How can i load in a XmlDocument an xml file (from text file) that in the tag contain any type of char ? How can encode this ?
If my file contain char as "&" or "°" there is an exception (Xml.XmlException Errore durante l'analisi di EntityName).
I try with this but don't work:
Encoding enc = Encoding.ASCII;
FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.None);
StreamReader sr = new StreamReader(fs,enc);
string response = sr.ReadToEnd();
XmlDocument xml = new XmlDocument();
xml.LoadXml(response);
fs.Close();
sr.Close();
The exception is Xml.XmlException Errore durante l'analisi di EntityName.
|
|
|
|
|
Well as far as I know it is not allowed to use all chars in entity-names. There is a strict rule for tag-names. Maybe you could post a bit of your xml-file, so that we can identify the problem.
Regards
Sebastian
|
|
|
|
|
The problem isn't the tag-names but their content.
The exception occur when in the content of a tag (<tag> abc & avc n° ) there are particular char as & or °
|
|
|
|