domain

How to handle session domains in a cname forward supporting rails saas software

Hi, I have read http://stackoverflow.com/questions/975877/how-to-give-cname-forward-support-to-saas- http://stackoverflow.com/questions/377137/rails-multiple-top-level-domains-and-a-single-session-cookie But I am unable to get a solution for the following setup: A SaaS Webapp in Rails is running under example.com All users have a ...

Send domain credentials when connected locally

When you use a PPTP VPN connection there is an option to send/impersonate the domain user you are logging into. That means when I am VPN'ed in I don't need to specify my domain credentials even if I'm not part of the domain, since it uses the VPN credentials. So it acts like I'm part of the domain. Is there a way to emulate that when I...

Authenticate sites with different domain names using the Facebook API

We have a CMS that supports multiple sites, one of our features allows our users (The site admin) to connect to the site facebook account to allow status updates, create events and upload pictures to FB from with in the CMS. The authentication needs to occur once since each site may have multiple site admins that do not have access to t...

python regular expression for domain names

I am trying use the following regular expression to extract domain name from a text, but it just produce nothing, what's wrong with it? I don't know if this is suitable to ask this "fix code" question, maybe I should read more. I just want to save some time. Thanks pat_url = re.compile(r''' (?:https?://)* (?:[...

get all domain names on network

i need to get the list of domain names on my network... but i am only getting the domain name with which i log into... so for example there are 2 domains "xyz" and "xyz2" but i get only the domain with which i log into.... here is my code: if (!IsPostBack) { StringCollection adDomains = this.GetDomainList(); ...

Order by Domain Extension Name using CodeIgniter Active Record Class

$extension = “SUBSTRING_INDEX(domain_name, ‘.’, -1)”; $this->db->order_by($extension, “asc”); It says: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘asc LIMIT 50’ at line 44 But its working when I didn’t used the $this->db->order_by Active Record...

*Best* way to forward/redirect a commonly mis-typed domain name

You own thecheesecakefactory.com and your site lives there. You know that many of your visitors will simply type cheesecakefactory.com into their browser, so you purchase that domain as well. What is the cleanest way of handling the redirection. I know GoDaddy offers a "domain forwarding" service but I am not sure if this is the "prope...

Grails - Need to restrict fetched rows based on condition on join table

Hi guys, I have these two domains Car and Driver which have many-to-many relationship. This association is defined in table tblCarsDrivers which has, not surprisingly, primary keys of both the tables BUT additionally also has another boolean field deleted. Herein lies the problem. When I find/get query on domain Car, I am fetched all re...

Glassfish v21 - is there a way to customize admin console login page per domain?

I have two to three domains under a single glassfish installation. Is there a known way to customize admin console login page based on the domain I am trying to administrator? (host/port) ...

PHP OOP: Providing Domain Entities with "Identity"

Bit of an abstract problem here. I'm experimenting with the Domain Model pattern, and barring my other tussles with dependencies - I need some advice on generating Identity for use in an Identity Map. In most examples for the Data Mapper pattern I've seen (including the one outlined in this book: http://apress.com/book/view/97815905990...

DTO or Domain Model Object in the View Layer?

I know this is probably an age-old question, but what is the better practice? Using a domain model object throughout all layers of your application, and even binding values directly to them on the JSP (I'm using JSF). Or convert a domain model object into a DTO in the DAO or Service layer and send a lightweight DTO to the presentation ...

setup a different site root for different domain via .htaccess

I have a website, I want to set up a folder within that sit called second_site and I want to get a new domain and point it to my website, then with .htaccess check which domain it is, if the main domain keep it the same, if the new domain make second_site the site-root. Is this possible? ...

Drupal: how to set up multilanguage Drupal on several domains?

Hi. I need to set up Drupal 6 as a multilanguage site. 1 installation, several language versions = several domains, i.e. English at englishsite.com French at frenchsite.com German at germansite.com. I've found a Tutorial that suggest that you need access to server's http.conf - this is quite unlikely on shared hosting. Is it really ...

How can I use Ruby to check if a domain exists?

Something along the lines of: def domain_exists?(domain) # perform check # return true|false end puts "valid!" if domain_exists?("example.com") ...

Problem restoring a SQL Server backup

I have a SQL Server 2008, which is part of a domain. Now I make a backup of a database of this server and restore it on a SQL Server, which is not part of a domain. I have an C# application, which uses this database. On the NON-Domain machine I get now exceptions like this: "Cannot execute as the database prinzipal because the principia...

PHP OOP: Avoid Singleton/Static Methods in Domain Model Pattern

I understand the importance of Dependency Injection and its role in Unit testing, which is why the following issue is giving me pause: One area where I struggle not to use the Singleton is the Identity Map/Unit of Work pattern (Which keeps tabs on Domain Object state). //Not actual code, but it should demonstrate the point class M...

Pointing a domain to a subscription based web-app?

Hello everyone, I'm about to start building a subscription based website that will function much like 37signals offerings in terms of users paying a monthly fee to use the site. But in my case I would like for them to be able to use their own hosted domain names and have them point to my server. Is this possible? How do i link up the...

PHP Shared Sessions across Domain

Hi, I have seen a few answers to this on SOF but most of these are concerned with the use of subdomains, of which none have worked for me. The common one being that the use of session.cookie_domain, which from my understanding will only work with subdomains. I am interested in a solution that deals with deals with entirely different d...

Write a GreaseMonkey script that reacts to domain strings (for I18N, e.g. cn,en,fr,etc.)

Hello. Suppose there is a website that supports multiple languages: cn.mydomain.com or mydomain.com/cn or mydomain.cn en.mydomain.com or mydomain.com/en or mydomain.com fr.mydomain.com or mydomain.com/fr or mydomain.fr I want to write a GreaseMonkey script that has variables assigned different strings/values according to the address ...

How to count ocurrences in 1 to many relationship in gorm - grails

Hi, I have 2 domain classes class A { .... static hasMany = [bs:B] } class B { int code .... } How can I list the number of ocurrences of all codes in B in all the A table? Something like b.each { thisb -> int ocurrences = A.bs.findAll{it == thisb}.size() ... } Thanks ...