identity

Python: Why is ("hello" is "hello")?

Why is "hello" is "hello" == True in Python? I read the following here: "If two string literals are equal, they have been put to same memory location. A string is an immutable entity. No harm can be done." So there is one and only one place in memory for every Python string? Sounds pretty strange. What's going on here? ...

Getting the app onto the phone... certificate signing and identities

The error I received on build attempt was: Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain Anyone know how to resolve this? Thanks // :) ...

Enterprise SSO & Identity management / recommendations

Hello Friends, We've discussed SSO before. I would like to re-enhance the conversation with defined requirements, taking into consideration recent new developments. In the past week I've been doing market research looking for answers to the following key issues: The project should should be: Requirements SSO solution for web applic...

Workaround for LINQ to SQL Entity Identity Caching and Compiled Query Bug?

I've come across what appears to be a bug in linq to sql where identity caching does not work when performing primary key queries inside of a compiled query. I wrote the following sample to demonstrate the usage of identity caching. It only executes one call to the database the first time it's hit, every time after that it retrieves the...

Using XSL to sort attributes

I'm trying to canonicalize the representation of some XML data by sorting each element's attributes by name (not value). The idea is to keep textual differences minimal when attributes are added or removed and to prevent different editors from introducing equivalent variants. These XML files are under source control and developers are wa...

Identifying the same user across multiple browsers/ISP connections

I run a film festival website which accepts ratings on films and I'm concerned with stopping people cheating the system (i.e. submitting multiple ratings to fix the top ten list). I've used techniques like IP address and browser stamp checking but I'm aware some people are trying to cheat the system by changing ISP connection or browse...

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'? ...

Using identity fields in a switch statement

Hi I have a SQL lookup table like this: CREATE TABLE Product(Id INT IDENTITY PRIMARY KEY, Name VARCHAR(255)) I've databound a ASP.NET DropDownList to a LLBLGen entity. User selects a product, and the Id get saved. Now I need to display some product specific details later on. Should I use the Product's ID, and hope the ID is always th...

What should be used to check identity in C++?

I have two pointers to objects and I want to test if they are the exact same object in the most robust manner. I explicitly do not want to invoke any operator == overloads and I want it to work no matter what base classes, virtual base classes and multiple inheritance is used. My current code is this: ((void*)a) == ((void*)b) And for...

.NET Membership: Best way to Implement "I know you but you're not logged in"

Sites like ebay and amazon.com Know who you are with a message like Hello, Bob. Please log in. ... but they also know you haven't authenticated yet for this session. What is the best way to implement this in an ASP.NET application using the Membership API/Framework? I can think of a few ways to go here, but my primary concern is to no...

newid() vs newsequentialid() What are the differences/pros and cons?

In a database where all of your primary keys are GUIDs, what are the differences/implications and/or pros and cons using newid() versus newsequentialid() as the "default value or binding". The only difference that I know of is that newid() creates a new random GUID as opposed to newsequentialid() creates a new GUID based on the last one...

SQL Server - Get Inserted Record Identity Value when Using a View's Instead Of Trigger

For several tables that have identity fields, we are implementing a Row Level Security scheme using Views and Instead Of triggers on those views. Here is a simplified example structure: -- Table CREATE TABLE tblItem ( ItemId int identity(1,1) primary key, Name varchar(20) ) go -- View CREATE VIEW vwItem AS SELECT * F...

Seam: login using external SSO application

I have a Seam application that have to use an external one to login. The logic is as follows: My app sends user to external SSO URL User does what it takes to authenticate there On success, the external app redirects user back to my app with a random token My code should contact the external app via HTTP with the passed token and get...

Why does WCF complain over identity check failure?

I'm creating a WCF application where I'll be using certificates to encrypt the communication between the client and server. In my development environment, I want to use a test certificate / self signed certificate which I've created using makecert. (Only the server will have a certificate, the client won't). I've installed the certifica...

SQL Server 2005 Identity Specification not respecting seed value

I am in the process of converting an Access database to SQL Server 2005. I have successfully migrated the data and original schema using SSMA and am now in the process of normalizing the database, which requires me to add a few unique identifiers. Some of the columns we had were previously created using an AutoNumber data type, which is...

tableadapter VB.net 2008 - retrieve identity

Hello, I am inserting a record to a MSSQL table using a tableadapter using something like: Dim da_mytable As New t_mytableTableAdapter da_mytable.Insert(xxxx,xxxx,xxxx) The SQL table has an identity field which is also the PK for the table. The insert works fine, but my question is how to return the ID that was used on the insert. Th...

SQL Server 2005 - Working with IDENTITY column

Hi, I am working on SQL Server 2005 tables. Here I need to add a column named ‘ID’ as ‘IDENTITY’ column (With starting and incrementing values as 1, 1). Now my problem is that these tables already have thousands of records. So could you please suggest the best and easy way to perform this job? Many Thanks, Regards. Anusha. ...

Object Identity Maps and webapps

In a recent discussion on ORMs for webapps someone mentioned that there are times you don't want to have IdentityMaps for webapps. I don't understand this, because it seems as though in the context of a singular request to the app, you would want all work on records to be consistent. This means if I "look" at an object A which references...

Passing user's identity across tiers with ASP.NET and WCF

I'm new to WCF. Let's say I have two asp.net apps, one that uses windows authentication (an intranet app), and one that uses forms authentication (an internet app). I want both of these applications to have a service reference to a physically separate machine where all my business logic will live (in WCF). So, the app is like this: Brow...

is it good to have primary keys as Identity field

Hi , I have read a lot of articles about whether we should have primary keys that are identity columns, but I'm still confused. There are advantages of making columns are identity as it would give better performance in joins and provides data consistency. But there is a major drawback associated with identity ,i.e.When INSERT statement ...