Questions tagged [canonical-name]

14 questions
32
votes
1 answer

Host Name Vs Canonical Host Name

Can anyone please explain me the difference between Host Name and Canonical Host Name? I am currently using InetAddress class to fetch host name using the IP Address. I came across these 2 APIs. So I am just wondering, which one I should opt for?
Aryan
  • 1,467
  • 2
  • 19
  • 34
15
votes
8 answers

How to redirect with "www" URL's to without "www" URL's or vice-versa?

I am using ASP.NET 2.0 C#. I want to redirect all request for my web app with "www" to without "www" www.example.com to example.com Or example.com to www.example.com Stackoverflow.com is already doing this, I know there is a premade mechanism in PHP…
Prashant
  • 25,398
  • 62
  • 159
  • 219
14
votes
1 answer

What's the difference between Name and CanonicalName?

What is the difference between Java's Class.getName() and Class.getCanonicalName()?
durron597
  • 30,764
  • 16
  • 92
  • 150
4
votes
2 answers

Python: import and change canonical names in the current module

In a Python package directory of my own creation, I have an __init__.py file that says: from _foo import * In the same directory there is a _foomodule.so which is loaded by the above. The shared library is implemented in C++ (using Boost Python). …
John Zwinck
  • 207,363
  • 31
  • 261
  • 371
2
votes
6 answers

redirecting w., ww., wwww. to -> www

I'm trying to redirect site.com w.site.com ww.site.com and wwww.site.com to www.site.com. My boss wants to ensure typos make it to the site as well. They redirect fine. I'm using ASP.Net and throw a 301 redirect back using a regular expression,…
Armstrongest
  • 14,284
  • 13
  • 61
  • 102
2
votes
2 answers

How to change computer's canonical/displayed name in Active Directory?

I have an AD with 71 computers. However, there are actually less than 50 physical computers, so I'm doing some cleanup. But, up until now when renaming PC's, I've only renamed them at the workstation through Control Panel->System. So, the displayed…
user3761043
  • 21
  • 1
  • 2
1
vote
1 answer

what is the linux file location where the cloud-init user-data is passed to?

what is the linux file location where the cloud-init user-data is passed to? And how does cloud init use that, is it passed as kernel parameter for proc commandline? Can explain in atleast level 2? How cloudinit works on bare eSXI?
1
vote
0 answers

What is the canonical name for a function that ensures that an asynchronous task takes at least x time to resolve?

Say we have an asynchronous function that may resolve within any duration. However fast it may be, we want to ensure it never resolves before t time as passed. To achieve this in a reusable way, we create a function (here in JavaScript): async…
0
votes
1 answer

301 redirect for www and non-www canonical problems

i have a web site on a Microsoft IIS Web Server and my web site consists of simple static HTML pages. I need to solve my canonical problems as the following are all valid for my page: http://www.nurcanaral.com http://nurcanaral.com I want all of…
nessel
  • 1
0
votes
0 answers

"Encoding historical names" vs canonical names, say as charsetName argument of InputStreamReader/OutputStreamWriter

Canonical names of encodings is clear - here is the official list: we have Canonical Names for java.nio API and Canonical Names for java.io API and java.lang API. 1) But what is the list of historical encoding names? OuputStreamWriter Javadoc for…
Code Complete
  • 2,664
  • 1
  • 10
  • 28
0
votes
1 answer

How do I set a canonical uri on jetty and redirect www users to non www address?

This has been bugging me for some time now, I will greatly appreciate the solution. I am currently using jetty (jetty-7.3.0.v20110202) to host a static site. I intend to host applications written using JRuby there in the future. I picked Jetty in…
bluekeys
  • 2,117
  • 1
  • 20
  • 28
0
votes
0 answers

www or non-www google preference, cname, .htaccess and html canonical tag

This all seems to be like a bunch of contradictions! Firstly, Google recommends that both the www and non www entities of my website are listed as properties in webmaster tools. Done. In doing this Google then asks you to select your preferred…
RobbieP14383
  • 135
  • 3
  • 15
0
votes
2 answers

Redirect Non-WWW to WWW (except one spesific subdomain)

On my Windows 2012 server I have installed the URL Rewrite module in IIS. I have followed this guide to redirect non-www to www in web.config: http://www.surfingsuccess.com/asp/iis-url-rewrite.html#.VF6GBid0yAU So far, so good! The only problem is…
0
votes
1 answer

how do i get canonical names of packages of deafult apps in Android

I need to know the canonical names of a few Default Android applications like Email, Contacts & others. I want to be able to start them using their canonical names. Like Intent i = new Intent("com.pacakge.canonicalname"); So any ideas where i could…
Adnan Mulla
  • 2,814
  • 3
  • 19
  • 34