Questions tagged [canonicalization]

is a process for converting data that has more than one possible representation into a "standard", "normal", or canonical form.

As per Wikipedia:

In computer science, canonicalization (abbreviated c14n, where 14 represents the number of letters between the C and the N; also sometimes standardization or normalization) is a process for converting data that has more than one possible representation into a "standard", "normal", or canonical form. This can be done to compare different representations for equivalence, to count the number of distinct data structures, to improve the efficiency of various algorithms by eliminating repeated calculations, or to make it possible to impose a meaningful sorting order.

197 questions
0
votes
0 answers

With SurveyMonkey is it possible to give questions canonical names?

I a writing a web hook that captures data from a SurveyMonkey survey and exports it to a CMS in a more structured format. The data I get from Survey Monkey is very wordy. Instead of something nice like { "dateCreated":…
Dave Sag
  • 13,266
  • 14
  • 86
  • 134
0
votes
1 answer

Correct use of hreflang / canonical tags on regional shopify stores

I'm setting up 2 regional shopify sites. Should I consider canonical tags or/and use hreflang to ensure that search engines will send my users towards the right site. The first store covers the Europe region. The second (and default) covers the…
0
votes
1 answer

What is the longest UTF8 representation of an NFC-form string of a given length?

Context. I'm writing C to the iCal (RFC 5545) spec. It specifies the maximum length of a delimited line to be 75 octets excluding the delimiter. Both the robustness principle and the W3C character model incline me to canonicalize input strings…
0
votes
1 answer

Assign XML Signature to a child node of your XMLDocument in .net

Is it possible to assign the enveloped Signature as a subchild that is in a different namespace than the document you've signed of you XML Document? For example:
0
votes
1 answer

Creating canonical search result URLs with mod-rewrite

I have a search engine on my site with two search parameters, location and query. I want to show the results on a page with the canonical URL of /search/location/query. I tried aiming the search at a non-existant PHP file which I could then rewrite…
MarathonStudios
  • 3,983
  • 10
  • 40
  • 46
0
votes
1 answer

How to canonicalize xml on iOS?

I need to canonicalize an xml file (using c14n standard) in my iOS app for signature validation but I cannot find an API in the iOS SDK which will help me do this. The XML Canonicalization API canonicalXMLStringPreservingComments is available only…
rkk817
  • 117
  • 1
  • 13
0
votes
1 answer

In which page the "Canonical URL" meta tag should be placed when there are 2 pages called a.html and b.html which holds the same content?

In which page the "Canonical URL" meta tag should be placed (and how to write it on the right page?) when there are 2 pages called a.html and b.html which holds the same content?
0
votes
1 answer

How to diff XAML files

Is there a way to diff two xaml files that differ in non functional white space i.e. new lines after attributes or the order of attributes? I would like the following two xaml snippets to be recognized as the same Snippet 1
0
votes
0 answers

Htaccess How to resolve to the same URL

I have a dynamic site PhotographyAttic with the following code in my htaccess file RewriteEngine on RewriteBase / #Make dynamic url neater RewriteRule ^category-(.*) category.php?catid=$1 RewriteRule ^manufacturer-(.*) …
Peter23
  • 97
  • 2
  • 8
0
votes
0 answers

Masstransit change the message in the middleware

I want to check some constraints on messages and "canonicalize" them accordingly on the way to the final consumer. I need to listen to any event of any type , load the rules (based on the type of the message) from IoC apply changes to the messages…
Mohsen
  • 4,000
  • 8
  • 42
  • 73
0
votes
1 answer

Redirecting urls in IIS 8.5

I'm using IIS 8.5 now and need to redirect from http://mydomain.de/produkte.asp?produkt=someID to http://mydomain.de/produkte/someID.html Thanks!
DerHelm
  • 37
  • 6
0
votes
1 answer

Non-www Post URL on Jekyll leading to 404

Dear Stack Overflow community, I'm hosting a blog on Github Pages which is running on Jekyll. Canonicalization works fine on the index page (usabilityreport.de -> www.usabilityreport.de) whereas it doesn't on subpages.…
0
votes
1 answer

JSON elements with numbering as part of element name

I have a sample JSON as follows. I have to map this object to another JSON format which is canonical to the UI (getting different orders from different vendors and aggregating them to a common UI format). If I generate POJOs, it will create Order_1,…
0
votes
1 answer

Canonicalization XML in Java 1.8

I'm trying to do the canonicalization part of XML. However, I don't know how to connect to Apache. I have download the package: http://www.apache.org/dyn/closer.lua/santuario/java-library/2_0_8/xmlsec-2.0.8-source-release.zip But adding it to the…
Mafika
  • 21
  • 1
  • 7
0
votes
2 answers

nginx www shall redirect permanently with 301 under https

I try to redirect www.example.com to https://example.com by adding the first serverblock. But it doesn't redirect. And it has to be redirected permanently to avoid SEO issues and security warnings for the user. Here is my complete NGINX config…
Gabriel
  • 111
  • 1
  • 1
  • 12