canonicalization Questions

3

Solved

script.php $filename = realpath(sprintf("%s/%s", getcwd(), $argv[1])); var_dump($filename); Let's try some things [/foo/bar/bof] $ php script.php ../foo.txt string(16) "/foo/bar/foo...
Symbolics asked 11/5, 2014 at 4:41

9

Solved

The following question is more complex than it may first seem. Assume that I've got an arbitrary JSON object, one that may contain any amount of data including other nested JSON objects. What I w...
Torrent asked 12/1, 2011 at 15:25

5

Solved

What's the best way to go about hashing an XML document in C#? I'd like to hash an XML document so that I can tell if it was manually changed from when it was generated. I'm not using this for secu...
Technology asked 5/10, 2009 at 17:4

2

I am trying to canonicalize an html text node by com/sun/org/apache/xml/internal/security/c14n/Canonicalizer.java class. My input file has carriage return and a line feed at the end. Upon canonical...
Dariusdarjeeling asked 10/8, 2010 at 13:5

2

I understand canonicalization and normalization to mean removing any non-meaningful or ambiguous parts of of a data's presentation, turning effectively identical data into actually identical data. ...
Tetrahedral asked 21/3, 2019 at 17:29

5

Solved

So, an absolute path is a way to get to a certain file or location describing the full route to it, the full path, and it's OS dependent (the absolute paths for Windows and Linux, for example, are ...

1

Solved

I am trying to understand the Nauty algorithm. Following this article: http://www.math.unl.edu/~aradcliffe1/Papers/Canonical.pdf In this algorithm the vertices are distinguished based on their degr...
Tragedian asked 14/3, 2017 at 20:41

1

Solved

I'm working on a personal project that I was trying to solve via canonicalizing a relative path in Rust. However, whenever I do so, the new path gets prefixed with a strange \\?\ sequence. For exam...
Grozny asked 20/12, 2016 at 1:41

2

Solved

What is the simplest way to reduce a Java BigDecimal containing an arbitrary value to a canonical form so that two BigDecimal's representing the same number will compare equal using the equals() me...
Limbate asked 13/10, 2014 at 20:51

2

Solved

What's the easiest way to make a canonical form of a XML file in Java? Do you have some done code for that? I've found several links on the net, like this, this, and this, but I can't make it to wo...
Hegira asked 25/2, 2011 at 13:9

6

Solved

realpath does what I need, but only works if the files in the path actually exist. I need a function which returns a normalized path from a string (e.g. ../some/./directory/a/b/c/../d to some/dire...
Prindle asked 22/2, 2015 at 15:5

2

I am writing a Huffman file where I am storing the code lengths of the canonical codes in the header of the file. And during decoding, I am able to regenerate the canonical codes and store them int...
Opportune asked 11/4, 2015 at 7:30

1

I am running into the problem with validating the signature for the SAML 2.0 Assertion XML. I am using the SAML2 library from simpleSAMLphp project, which in turn is using the PHP xmlseclibs librar...
Amphitropous asked 26/1, 2015 at 6:44

6

Solved

I have a collection of 15M (Million) DAGs (directed acyclic graphs - directed hypercubes actually) that I would like to remove isomorphisms from. What is the common algorithm for this? Each graph i...
Disfeature asked 12/11, 2014 at 17:50

4

Solved

I searched on google for a meaning of canonical representation and turned up documents that are entirely too cryptic. Can anyone provide a quick explanation of canonical representation and also wha...
Clydesdale asked 22/7, 2009 at 18:49

1

Many websites can be accessed with a FQDN (i.e., appending a dot to the TLD): https://www.ebay.com./ https://www.google.com./ https://www.reddit.com./ https://stackoverflow.com./ https://en.wikip...

1

Solved

I am currently rolling my own little ORM, and find myself faced with the task of creating a canonicalizing mapping in order to prevent loading the same entity from the database more than once. My ...
Officialism asked 15/9, 2011 at 19:58

2

Solved

Off and on for the past few weeks I've been trying to find my ideal cache implementation using guava's MapMaker. See my previous two questions here and here to follow my thought process. Taking wh...
Baccy asked 21/7, 2011 at 15:37

4

Solved

Would the following 2 canonical link tags be viewed by spiders as pointing to the same URL? <link rel="canonical" href="http://www.example.com/ŷ" /> - encoded <link rel="canonica...
Sharlenesharline asked 24/11, 2010 at 11:11

4

Solved

I am trying to canonicalize an xml node by using System.Security.Cryptography.Xml.XMLDsigC14nTransform class of c# .net Framework 2.0. The instance expects three different input types, NodeList, S...
Indemnification asked 29/7, 2010 at 12:33

2

Solved

i want to to persist some filenames for the user (e.g. recent files). Let's use six example files: c:\Documents & Settings\Ian\My Documents\Budget.xls c:\Documents & Settings\Ian\My Docume...
1

© 2022 - 2025 — McMap. All rights reserved.