|
Does anyone known of a a good reference for canonical CS problems?
I'm thinking of things like "the sorting problem", "the bin packing problem", "the travailing salesman problem" and what not.
edit: websites preferred
Started by BCS on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
That said, you can always get some introductory material on canonical algorithm texts contain important combinatorial problems that are, in....
Have you.
On reductions and complexity is probably the "canonical" reference for Hard Problems.
|
|
Storing a telehone number in some kind of canonical format has several advantages from a programmers point of view, but it might confuse the user , if suddenly his entered numbers look a lot different.
What's the way to go?
Started by DR on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Separation of Duties - Content and Rendering ....
I usually like to store the number stripped.
Different countries have different ways in the canonical representation modulus usability.
Numbers is determining the correct canonical format.
|
|
Say the path of your URL is:
/thisisa"quote/helloworld/
Then how do you create the rel=canonical URL?
Is this kosher?
<link rel="canonical" href="/thisisa"/helloworld/" />
UPDATE
To clarify, I'm getting a form submission, I need to convert...
Started by joedevon on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Htmlspecialchars($path.
<link rel="canonical" href='foo.com/thisisa"/helloworld/' />
Do not use HTML remaining special HTML characters:
echo '<link rel="canonical" href="' .
It with single quotes.
|
Ask your Facebook Friends
|
I've added a suggestion on User Voice to consider the possibility of categorizing up to one answer per question as Canonical - i.e. worthy to be considered as the consensus complete and accurate answer. It should include a link to an authoritative source...
Started by le dorfier on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Is it actually possible for the mass to vote on truly canonical answer that's not popular? By definition the canonical answer must come from the authoritative "church."
People wouldn't vote the Copernican (heliocentric....
It should be build...
|
|
I just received a memo (dated Feb 29) from our pals at Mountain View. Apparently they want us to start using another tag to specify canonical urls .
As someone who builds a fair amount of websites, this obviously intrigued me, but I was curious to know...
Started by Tom Wright on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
/foobar?sorby=date with canonical, but using rel=canonical means....
It might also be useful for paged or sorted content, e.g .
Http://en.wikipedia.org/wiki/Python_language has canonical URL /wiki/Python_(programming_language) .
|
|
If I have a string that resolves to a file path in Windows, is there an accepted way to get a canonical form of the file name?
For example, I'd like to know whether
C:\stuff\things\etc\misc\whatever.txt
and
C:\stuff\things\etc\misc\other\..\whatever.txt...
Started by dthrasher on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Local files.
There is no simple way to get the canonical name of a file on Windows.
Answer: not really.
|
|
Iptables, the standard Linux firewall, does not save rules between reboots. You have to take care of this yourself. There are many ways to do this. What is the canonical way to do this? What are best practices?
I'll answer with my own solution, but I'...
Started by amarillion on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at serverfault):
What I want to add:
Please note that current version.
Is surely the most "canonical" way of saving it.
|
|
I've seen so many implementations of sending an http post, and admittedly I don't fully understand the underlying details to know what's required.
What is the succinct/correct/canonical code to send an HTTP POST in C# .NET 3.5?
I want a generic method...
Started by User on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I believe that the simple version of this would be
System.Net.WebClient client = new WebClient(); return client.UploadString(url, data);
The System.Net.WebClient class has other useful methods that let you download or upload strings or a file, or bytes... .
|
|
I know that it's a good idea to make as much of the interface of a class non-member non-friend as possible, and I've just realised that for my 3D vector class, 'Vector3', I can move the +=, -= and so on operators out of the class, leaving just constructors...
Started by Ben Hymers on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Know if you're already aware of this trick, but since you're concerned about canonical ways.
|
|
As the topic depicts, I'm interested in the canonical java way to resend a message if the destination doesn't send an acknowledement message within a specific time frame.
I could come up with a couple of alternatives, but im not sure i like them.
E.g....
Started by Schildmeijer on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If there is a "canonical" way to do reliable messaging in Java, it might be to use a JMS provider.
|