domain

What's a good example domain for an NHibernate presentation?

I'm trying to put together a presentation for my local .NET user group on NHibernate. I want to demonstrate how one might convert an existing application's data access layer to use NHibernate, but first I need an application to convert. What would be a good example domain that would allow me to demonstrate the main features of the ORM...

What is the best practice for retrieving an item in a collection from a domain model?

What is the best practice for retrieving an object from a collection within a domain object with a specified property? For example, we have a car insurance application which has two classes: a Person with a list of Cars. If I always needed to retrieve a Car from a Person with the specified VIN, what is the best way to implement the met...

Domain search tool

I am looking for a domain search tool that checks domain availability and integrate such tool with my website, how is this done programmatically? ...

Convert a tree of interconnected object in "table" domain

I have to create a domain for the energy transmission field, so I have Breaker, Transformer, Line, Cubible, Busbar, Source. I'm trying to search for a domain implementation that conform to this specification: Cubicle contains Breaker and Transformer Breaker and Transformer and Source have to be connected each other with Line Cubicle ...

Domain to point to a single page

Hi, I'm trying to point a domain name to a single page, and keep the domain the same (no redirect). So if a user types: www.domain1.com.au --> original site is shown If a user types: www.domain2.com.au --> they are shown www.domain1.com.au/second.php, but the URL still says www.domain2.com.au. Can this be done using .htaccess? Snippe...

Change domain when authenticating with IE8

When I try to login to our WSS demo site the authentication popup forces me to use the domain I'm currently using on my local computer. The WSS site does not have the same domain. I'm running IE8 on Windows 7. How do I change the domain!? ...

Get root DNS entry from php server; get domain name without www, ect...

How would one get the root DNS entry from $_SERVER['HTTP_HOST']? Input: example.co.uk www.example.com blog.example.com forum.example.co.uk Output: example.co.uk example.com example.com example.co.uk EDIT: Lookup list is very long ...

Rules Validation on Data or Domain layer?

Hello, I've been reading Pro ASP.NET MVC Framework, Steven Sanderson, and in chapter 11 it discusses data validation. On page 390 we see the section Moving Validation Logic into Your Model Layer. In this section we see, in page 392, some code showing how to implement validation. The code implements a GetRuleViolations() method and the ...

What is the best technique for (seo-friendly) forwarding muliple domains to one web server?

The setup is: www.domainA.com www.domainB.com both actually hosted on one web server (Apache) 123.123.123.123/domainA 123.123.123.123/domainB I have setup a hidden forward from the domains to the web server directories which works fine, however, produces duplicate content (since it is also available by addressing the web server d...

Retrieving dependent/parent from within domain entity method

How would one go about retrieving a dependent/parent object from an entity. $person->getAddress(); This should retrieve the Address object for that person from the database and return it as an object. Is this a good way to do it and how should the code look like if this is ok to do. Doing this would mean that the object itself should...

Is it feasible to point many domains/subdomains to the same web site with the purpose or running multiple sites off one code base?

Is it possible or feasible to run a bunch off web sites off of only 1 code base? For example I have 1 site that bases it's connection string off of the domain name or subdomain name. So, depending on what domain/subdomain is hitting the site the site returns content that is stored in a database specifically for that site. What types o...

Are there any pitfalls of using .net as the extension for your primary site?

Just wondering if there are any pitfalls using .net as the extension for a primary website. If you have some idea for a domain and the .com extension is already taken. I know it may take some traffic away possibly if people try to use the standard .com extension. In regards to SEO or any other basic effects this may have, are they any...

I want to learn how to make a blog and skin it to fit into my website design theme. Any suggestions on how to get started?

I have never made a blog before. I am proficient with html and css. I know there are many blog services like "blogger" and "word press" etc where you can make a blog and even pick from skins. Can anyone suggestions on where I can find information for a total beginner on how to use one of these services as the back end for updating my...

DDD Modeling question

Hi, I have these two structures in my domain: Exercise (with subjects, solution, difficulty ext.) and Subject which has a name and a father subject. Subject is defined by its attributes so in that sense it's a value object, However even if my current data store has nothing associated with a particular subject, that subject existence sti...

Postgresql in Active Directory Machine

Hi u all, I have a server in wich is installed Postgresql. In this server i want to install theMicrosoft Active Directory. Can i do this without a problems? Can i change the user that run the Postgresql service without a problem? When i installa the AD all the machine users will be deleted so i need to create domain users to run that s...

Getting the display name from a domain \ alias combo

Apologies for not knowing the right way to phrase this question. Given a domain name and an alias, for example CONTOSO\steveh how can I get the friendly display name for that alias? For example, in Outlook email sent to CONTOSO\steveh appears as 'Steve Holt'? ...

Python: Grab the A record of any URI?

I basically want to implement something where you can type in any URI ( I probably will only deal with http ) and I want to return the A record of the domain in the URI, I want the server's IP address. I know there's the ping command which most people use to look an ip address up, but I also know there's 'host' and 'dig' which are more...

$_SERVER["SERVER_NAME"] not showing www.example.com

Why does $_SERVER["SERVER_NAME"] not echo the www in www.example.com but it does work when I echo it from a sub domain like test.example.com? ...

Database modelling or database design: Which comes first?

I would like to know which is the common practice for a domain implementation. Designing the business objects first, that need persistence or the database schema first, generating it from an entity relationship diagram (and afterwards the ORM poco*'s)? I am going to start a solution, but I would like to know which is the most preferabl...

Using structs in C# for simple domain values

I am writing a financial application where the concept of 'Price' is used a lot. It's currently represented by the C# decimal type. I would like to make it more explicit and be able to change it to maybe double in the future, so I was thinking of creating a 'Price' struct that would basically act exactly the same as the decimal type (may...