TranslateName() function doesn’t work on win10

my working computer is win10, and I am using vs2015, now I’ve met a weird issue. I can get the NameSamCompatible name by the following source code: the Username would be “PROD\wwu2”, but I would get failed if I run: then I get the error code by GetLastError(); it is 1317(user doesn’t exist). but the … Read more

EOFException – how to handle?

While reading from the file, your are not terminating your loop. So its read all the values and correctly throws EOFException on the next iteration of the read at line below: If you read the documentation, it says: Throws: EOFException – if this input stream reaches the end before reading eight bytes. IOException – the stream has … Read more

How to get started with svn:externals?

Here are some sections about it in the svnbook / TortoiseSVN manual: This is the svnbook page on svn:externals. It is the most useful resource on the subject. This one explains four ways to include sub-projects in the workflow (and in the process misses a fifth one: symlinks). And this last one is a TortoiseSVN-specific page on how to … Read more

how does Request.QueryString work?

The HttpRequest class represents the request made to the server and has various properties associated with it, such as QueryString. The ASP.NET run-time parses a request to the server and populates this information for you. Read HttpRequest Properties for a list of all the potential properties that get populated on you behalf by ASP.NET. Note: not all properties will be … Read more

What does jQuery.fn mean?

In jQuery, the fn property is just an alias to the prototype property. The jQuery identifier (or $) is just a constructor function, and all instances created with it, inherit from the constructor’s prototype. A simple constructor function: A simple structure that resembles the architecture of jQuery: