|
azazel00 wrote: There's no need to be hostile about it.
Perhaps. But the fact is, he is a thief. I wanted to highlight that this is as true if he downloads a pdf as if he steals a paper book.
azazel00 wrote: I do think that not everyone has the resources to buy every book that comes out just because one chapter will be of use to them.
That's true. Those people should look into subscribing to Safari or something, or making do without.
azazel00 wrote: Should they be denied the oportunity to learn?
No. I guarentee you that the book in question teaches nothing that cannot be learned online.
azazel00 wrote: That problem could be solved to some extent if publishers allowed customers to buy excerpts from the book instead of forcing you to buy a whole book for a single useful chapter or two.
Sort of an iTunes model ? That could work, and I'm sure it will come into being. I'm also pretty sure that the web has hurt book sales a lot.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have to agree with Christian. This guy has been openly and blatantly asking for a pyrated copy of this book for days. Its even worse if he has been emailing Christian trying to justify his position. People who don't even try to do it underhandedly are scumbags, in the truest sense of the word. They apparently have no qualms about steeling, despite the fact that it is WRONG. The proliferation of steeling only serves to keep the poor poor, and make those who work hard for their money have to work harder. Plain and simple, yes, this guy is a theif, and if he doesn't realize that (which seems doubtful in light if is attempts at justification), a sharp wakeup call is certainly acceptable.
|
|
|
|
|
Ah yes, the "it's okay to steal if you are poor argument" followed by the "it's okay to steal if the product isn't offered in the style you'd like" (or is that, "really, I would pay for it if it were packaged differently").
There are people with integrity and very little money -- they won't steal.
Then there are with very little integrity, rich and poor alike -- they'll steal left and right and they'll always have lots of "reasons" why it is okay or why in this case it isn't really stealing.
Matt Gerrans
|
|
|
|
|
I never said it was ok to steal if you are poor. I said that I've seen people who dont have the resources and I have no problem sharing/lending the stuff I've bought so that they can get the information they need. Nothing wrong with that, IMHO. If I want to trash, lend, or give my book as a gift to a fellow student, it's my book and my spent money. Hell, I could even make my apartment a public library if i wanted to and allow anyone to come here and read from my collection of reference books.
I never said that I condone stealing it if it not packaged or styled int he way I like, either. I said that publishers could avoid losses if they were more flexible in providing options to the consumers. For example, pay on a what-you-read basis.
"There are people with integrity and very little money -- they won't steal." <--- True, but totally off the point.
I'd suggest actually reading what I said again.
Wonder if there's a direct relationship between "programmers" and not being able to extract non-technical data from verbose text.
azazel
|
|
|
|
|
somebady can tell me how to do a Qeue in c#
thank you
Mi nombre es Renier Jorge Telles
Soy estudiantes de informatica y estoy interaso en compartir con ustedes conocimientos y dudas de esta rama.
|
|
|
|
|
A queue of int:
System.Collections.Generic.Queue<int>
or the old way
System.Collections.Queue.
Or do you mean you want to write your own ? This is a terrible idea, unless it's for learning purposes only, in which case, you should use google, it's not a C# question, but a general computer science one, and there's plenty of info to be had. This forum is more for answering questions when you get stuck than for giving a complete solution to a question like that one.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Somebady cant send me a simple example of a template in c#?
in c++ for example is :
template <type>
class example
{
//fields------------
private:
type element;
public:
void SetElement(type _element);
};
Now ,How i can do it in c#.
thank you.
Mi nombre es Renier Jorge Telles
Soy estudiantes de informatica y estoy interaso en compartir con ustedes conocimientos y dudas de esta rama.
|
|
|
|
|
First, check 'Ignore HTML tags in this message (good for code snippets)' below so we can see your template.
In C#, it's something like:
public class example<type>
{
//fields------------
private type element;
public void SetElement(type _element)
{
element = _element;
}
};
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Your example in C# 2.0
public class Example<T>
{
private <T> element;
public void SetElement(<T> element)
{
}
}
This feature is not available in 1.0 and 1.1
Does this help?
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
I just realised you'd asked this twice. I assumed that you knew that you need VS2005 to have generics in C#, but given that you asked the same question again, perhaps you don't ? If you have VS2002 or 2003, there are no generics.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How do I add a reference to an assembly that is in the GAC (C:\Windows\Assembly) folder? The problem is that I use a third party dll that is register in GAC but not available elsewhere in my hard drive. So I have to use the copy in the GAC folder.
Any suggestions would be appreciated.
Thanks,
Sandeep.
|
|
|
|
|
If it's registered in the GAC, I believe you have to use that assembly. Trying to use a non-GAC registered copy caused an error.
|
|
|
|
|
Yes but the problem is how to add the reference to that assembly??
|
|
|
|
|
In Visual Studio you mean?
Right click the references folder in the Solution. Click Add Reference... in the .NET* Tab you will find the assembly.
* I think... I don't have visual studio open right now.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
Yes, but the assembly is in GAC and I cannot browse to the dlls in GAC folder (C:\windows\assembly). I do not have any copy of the dll in my drive..
Hope you understood my problem.
|
|
|
|
|
[EDIT]
Sorry... My bad.
It seems I am mistaken and this is not the answer to your question.
[/EDIT]
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
-- modified at 17:01 Monday 7th November, 2005
|
|
|
|
|
I have an assembly in the GAC folder which I cannot see in Visual Studio .Net tab for Add Reference.
If you observe, the path of the assemblies in the .Net tab will never be the GAC folder. For system assemblies, it is C:\Windows\Micorsoft.Net\Framework\v1.4.3222\System.dll.
That means there are two copies. One is a copy of the assembly in windows directory which is being referenced and the other is one in the GAC folder. Now I do not have such copy in my drive other than the one in the GAC folder. All i have is the dll in the GAC folder.
Is there an alternative or a procedure that can show all the assemblies in .Net tab from the GAC folder?
I have a third party dll that is installed in GAC and i need it for my application. I do not have access to the dlls directly at all.
|
|
|
|
|
gacutil /l will tell you what is registered in the GAC. You can also reinstall assemblies using this utility.
|
|
|
|
|
|
I am worked previously in c++ and you not to make a template in c #.
Mi nombre es Renier Jorge Telles
Soy estudiantes de informatica y estoy interaso en compartir con ustedes conocimientos y dudas de esta rama.
|
|
|
|
|
Generics are the c# equivilant. they're only available in .net2.0 (VS05).
|
|
|
|
|
Is there any way to get the problem filename from this exception without catching it in the original calling function and wrapping it in a custom exception with the filename provided? It's lack seems really odd since System.Xml.Schema.XmlScemaException does provide the filename in the error text.
|
|
|
|
|
can 2 different types of exception be caught by the same block, or do I need to do something like this:
catch (System.Xml.XmlException e)
{
//half dozen lines of code
}
catch (System.Xml.Schema.XmlSchemaException e)
{
//Same code as above
}
|
|
|
|
|
AFAIK, After the first Catch block catches the Exception, it returns focus to Finally ( If Exists ), and then to the next statment.
So, this code will :
catch(System.DivideByZeroException ee)
{
}
catch(System.Exception ee)
{
}
IF a DivideByZeroException occurs, the first catch block will be executed and then returns, otherwise there was any other excpetions it will be cought in the general catch block.
"I am a lair" Is this statement true or false ?
|
|
|
|
|
If you can, refactor those lines of code into a method and call the method.
catch (System.Xml.XmlException xmlException)
{
HandleException(e);
}
catch (System.Xml.Schema.XmlSchemaException xmlSchemaException)
{
HandleException(xmlSchemaException);
}
private void HandleException(Exception e)
{
}
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|