standards

What should be the valid characters in a username?

Most web based user authentication systems don't like usernames that contain characters other than letters, numbers and underscores. Is there any particular reason for that? ...

Rails: How to handle data when there's an error on create

So I have a subscription form where a user is simultaneously creating a new account plus subscribing to a monthly plan. So they're entering username, email, password, and all the usual credit card/billing info. But the problem I'm having is say they accidentally enter an incorrect credit card number...what's the best way to handle that...

Laying out graphics in RTF

I'm interested how to construct certain kinds of layout in RTF documents, ideally using techniques that do not depend only on the most recent RTF standards, and that are "native", i.e., they do not involve embedding other representations, like picture files. In particular: In Postscript and DVI, I can specify a coordinate at any time ...

What could C/C++ "lose" if they defined a standard ABI?

The title says everything. I am talking about C/C++ specifically, because both consider this as "implementation issue". I think, defining a standard interface can ease building a module system on top of it, and many other good things. What could C/C++ "lose" if they defined a standard ABI? ...

Container tag that can go in HEAD?

In a section in the <head> tags of my document I have code that lets me use the Id of my asp.net control from JavaScript like this: <script language="javascript" type="text/javascript"> var customerId = '<%= Me.CustomerTextbox.ClientID %>'; </script> However, if I want to modify the page structure in later stages of the page life cycl...

Windows standard for mnemonics

Are there any mnemonic standards for Windows? For example -- the menu bar, actions on the menu bar (e.g. Alt+f to file menu but ctrl+s to do the save under the file menu), and controls. I'm asking because we have a search screen with many controls and we're trying to decide shortcut keys to get to fields and such described above. Is t...

XML Standard for Real Estate property

Is there a standard XML format for property listings? I've found a couple: reaxml1 reaxml.realestate.com.au/docs/reaxml1-xml-format.html RELML www.xml.com/98/08/real/relml-dtd.html but which is best / most used? Has anyone created xml property listings using these? ...

Is there any tools for check html quality?

I know about html, css validation and some rules in pagespeed about css performance. Is there any all in one tool for checking? May be it can check some best practice for html markup. ...

Are there any Timekeeping standards or specifications?

Hi, I'm currently thinking about a timekeeping application which can store and process information about the times and durations somebody is working. There is national law about working times (at least in Germany), which should be considered. But what about more technical standards? Are there any standards or spezification of models ...

Where can I find information about the Eclipse Architecture Standard?

I basically need the full description of the standard as well as any document that touches the subject (its applicability, problems, quality attributes promoted and not promoted by the standard). Any reference will help. ...

Functions should start with "Get"?

Hi, I'm trying to look at the C# Coding Standards to make my code more beautiful and standard, and I have a question: Does functions (methods that are not voids), according to the C# coding standards, should start with "Get"? For example: "GetSongOrder()", "GetNextLine()" etc? Thanks. ...

const pointers in overload resolution

GCC treats these two function declarations as equivalent: void F(int* a) { } void F(int* const a) { } test.cpp: In function 'void F(int*)': test.cpp:235: error: redefinition of 'void F(int*)' test.cpp:234: error: 'void F(int*)' previously defined here This makes some sense because a caller will always ignore the const i...

Naming Practice for domain object named class

I'm using a ORM and ran across a database table named Class. I've been naming the domain objects the same as their table name. So is Class a valid name for this object? I know it will compile but it doesn't seem like a good practice. The table is refering to a versioned C# class. ...

web services standards in SOA

Web services are becoming heart of SOA. The term Web services describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for describing the services available and UDDI ...

Is this ambiguous or is it perfectly fine?

Is this code ambiguous or is it perfectly fine (approved by standards/has consistent behavior for any compilers in existence)? struct SCustomData { int nCode; int nSum; int nIndex; SCustomData(int nCode, int nSum, int nIndex) : nCode(nCode) , nSum(nSum) , nIndex(nIndex) {} }; edit: yes, I am...

STL-Like range, What could go wrong if I did this?

I am writing (as a self-teaching exercise) a simple STL-Like range. It is an Immutable-Random-Access "container". My range, keeps only the its start element, the the number of elements and the step size(the difference between two consecutive elements): struct range { ... private: value_type m_first_element, m_element_count, m_step; };...

Are compilers allowed to eliminate infinite loops?

Can optimizing compiler delete infinite loops, which does not changes any data, like while(1) /* noop */; From analyzing a data flow graph compiler can derive, that such loop is "dead code" without any side effects. Is deleting of infinite loops prohibited by C90/C99 standards? Does C90 or C99 standards permit compiler to deletin...

Can someone have a subdomain with an underscore "_" in it?

Can subdomains have underscore "_" in them? ...

Normalizing Human Skin Colors for User Interaction

A while ago I came across this answer that introduced me to the obscure (at least for me) ISO 5218: a standard for representing human sexes (or is it genders? - thanks @Paul). For a pet project I'm working on I need my database schema to store the skin color of a person, and I'm wondering if a similar standard exists. All my life I've h...

sizeof(void*) and sizeof(function_type_ptr*) equality

sizeof(void*) and sizeof(function_type_ptr*) equality Must sizeof(void*) and sizeof(function_type_ptr*) be equal? Is it required by C (C90, C99) standard? function_type_ptr is pointer to function. This question is about standard requirements, not your own opinion. Please, give links, section numbers and quotations from standards ...