domain

domain vs. controller vs service - Grails: querying for property

Hi, folllowing scenario to query for list of items from domain: class A { SortedSet items } Second line is code to be used in GSP A1) domain and namedQuery static namedQueries = { filteredListItems { params -> ... } } A.filteredListItems(params) A2) domain methode def filteredListItems = { params -> ...

My domain PageRank shows as unavailable, why is that?

My domain, http://www.anovaordemmundial.com , has been snatched by some opportunist when I failed to renew the domain. I know, it's all my fault :/ . After I have being ripped off and bought my domain back, and everything is configured and working, the pagerank for that domain shows as unavailable. Also searches for "nova ordem mundial"...

Script to change webpage header based on domain name

Is there an easy way to swap a file url based on domain name? I've acme.com & acme.co.uk site domains which require different header graphic but are otherwise identical content. Rather than managing two sets of files and CMS, is there a JS/php script or other method to change the header graphic url dynamically based on which domin name...

ASP.NET sessions over multiple domains

Is there a proper .NET solution for providing persistent server sessions over multiple domains? i.e. If a user of the site logs in under www.site1.com, they will also then be logged in under www.site2.com Security is an issue with the program we are working on... Thanks! ...

How to register a .eu domain?

I want register a domain under the .eu TLD, but I don't live in Europe [which is a requiriment to that]. I'd like to know if there is any website which register the domain on its name or any other solution. ...

Simple script to find "lowest" available domain name

I need a script to find out what is the lowest available domain name with a give TLD (say .com, .info, or .net). For example, 1000423.com is free but 1000.com is taken. Probably my spammiest question so far. NOTE I mean "lowest" domain name numerically (i.e. 1.com, 2.com, 3.com, ..., n.com, n+1.com, ...) and not shortest as in String...

how to handle javascript redirect correctly?

Hi all, When a user goes to the base domain http://www.domain.com/ or http://domain.com/, the page has to be redirected to http://www.domain.com/#!/news.html I mean something like this: if (window.location.href("http://www.domain.com/") || window.location.href("http://domain.com/")) { window.location.replace("http://domain.com/#!...

Is it possible to create root domains with MAMP?

Currently, my workflow is to develop locally, and then place on remote server as key intervals. This has worked fine for a while, but since starting to do more AJAX work, I am finding it difficult to work with roots and hosts dynamically, and am having to write redundant code into my JS in order to make the same file work both locally an...

How to create sub-links for user on sign up?

I am looking to create vanity url for my users. How can i do it? I want something like username.domain.com My second question is, can i also customize this upon client requests? Like let's say, Client says add a feature to my account, will I be able to do it since it's almost like a separate site within my site? ...

redirect all pages (website) to a folder within the same domain..

Hi guys, can anyone of you tell me whatever should I use so that I can redirect all of my pages (entire website) from root/folder1/* to root/folder1/folder2/* Also along with this I would like to redirect all the pages from root/folder3/* to root/folder1/folder2/* please give the code(s) to be written in .htaccess and also also where t...

iframe across domain get value

How can I get the some value from other domain page? for example two page from different domain test.html: code: <!DOCTYPE html> <html> <head> </head> <body> <div> <span id="data"></span> <iframe name="dd" src="http://otherdomain.com/innerpage.html" style="width:600px;height:500px;"></iframe> </div> </body> </html> innerpage.htm...

How do I identify a webmail service from an email address?

If I have an email address, such as [email protected] I can identify that it belongs to the gmail webmail service from the gmail.com domain name. There are also googlemail.com addresses which belong to the same service. Is there a known list of domains belonging to popular email services? E.g. Hotmail (hotmail.com, live.com..) G...

Whcms domain whois API doesn't work

So here is my code: <?php $url = "http://www.site.com/whcms/includes/api.php"; # This is not the original url, just an exapmle $username = "user"; # Admin username goes here $password = "pass"; # Admin password goes here $postfields["username"] = $username; $postfields["password"] = md5($password); $postfields["action"] = "domainwhois...

CNAME for top level domain?

Is it possible to set a CNAME record for a toplevel domain like example.com? My ISP says that it's only possible to use CNAME's for subdomains but I've read somewhere else that is should be possible even if not recommended. ...

What am I missing out? (An entity with the same identity already exists in this EntitySet.)

I am using DTOs and converters in an entity framwork scenario. I want to update an entity. So I put this statement: databasecontext.Tablename(s).Attach(entityobj); Whenever it gets here the program ends with this error: An entity with the same identity already exists in this EntitySet. I felt i could get around this by saying:databaseco...

What is the difference between an MVC Model object, a domain object and a DTO

Hello, What is the difference between a MVC Model object, a domain object and a DTO? My understanding is: MVC Model object: Models the data to be displayed by a corresponding view. As such may not map directly on to a domain object, i.e. may include data from one or more domain objects. Client side May contain business logic, e.g. ...

How can I create a subdomain mask that is an alias of another domain?

I want to create a subdomain that is an alias of another domain. Example: google.mysite.com -> www.google.com but I want to display the taget domain content without a redirect, so it looks like content is being serve from my subdomain instead of the target (google in this example) ...

How to Create an Internal DSL in Scala?

I have been looking at a couple of books and resources on domain specific languages. I think I want to build an internal DSL in Scala. def instrument = new FXInstrument { provider = "EuroBase" instrumentOrders = List( new FXOrder { baseCcy = "GBP" termCcy = "EUR" legs = List( ...

Problems with .htaccess & domains.

Hi, How can I fix .htaccess to work properly on this: http://www.cargoways.com.pl ? It's redirected from this domain to companies server address (www.mbbm.nazwa.pl/cargoways), but the source is put as iframe. What the hell? What's more, the address bar doesn't change on link-clicks. It stays the same: "http://www.cargoways.com" all the...

Permission denied for ajax request inside an iFrame

Hello, For many various reasons my web page consist of the following, a ruby page from www.example.com that calls an iFrame from another PHP server (subdomain.example.com), in both parent and child there is this javascript instruction : document.domain="example.com"; Parent page can access elements in child page, I needed that to make ...