standards

Are there machines, where sizeof(char) != 1 ?

Are there machines (or compilers), where sizeof(char) != 1 ? Does C99 standard says that sizeof(char) on standard compliance implementation MUST be exactly 1? If it does, please, give me section number and citation. Upd: If I have a machine (CPU), which can't address bytes (minimal read is 4 bytes, aligned), but only 4-s of bytes (uint...

Checking for empty arrays: count vs empty

This question on 'How to tell if a PHP array is empty' had me thinking of this question Is there a reason that count should be used instead of empty when determining if an array is empty or not? My personal thought would be if the 2 are equivalent for the case of empty arrays you should use empty because it gives a boolean answer to a ...

If site is looking same in all needed browser. then Is it ok if my CSS is not valid?

If a site is looking the same in all required browsers, is it okay if my CSS is not valid? Specifically, the CSS is not valid because: I'm using vendor specific properties, I'm using IE 6 and 7 hacks, I'm using browser specific hacks What benefits do I get if I make my CSS fully valid? ...

Standards for screen sizes in web design

What is the standard for screen sizes when designing web sites? Is it still 800x600? ...

Which browsers support the <embed> and <object> tags?

I am working on a department website that needs to be standards compliant (xhtml 1.0 transitional), but embedded flash keeps breaking the validation. We use the <embed> tag because we need to support most major browsers. We can't use external tools, since the site is managed through a system and the admins don't like us putting extra to...

Use $_POST["x"] directly or to copy to a local variable and then use?

Consider the following pair of snippets, both do the same essentially. <html> <body> <?php if(isset($_POST["firstName"]) && isset($_POST["lastName"])){ //I'm copying the POST variable to a local one. $firstName = $_POST["firstName"]; $lastName = $_POST["lastName"]; echo "<h1>Thank you for taking the census!<...

.net framework CLI standards hosting organization?

Does anyone know what organization is hosting the .net framework Common Language infrastructure (CLI) standards and where you can I go and read them? ...

Global Portal Web Rules and Accessibility Rules?

A design agency I work for recently contacted me regarding the website development of one of their major (corporate) clients. They said: The HTML must be done according to the many global portal web rules and accessibility rules. ... although they'll provide more information on "global portal" and "accessibility" rules sometime...

"as if" in language standards

What is the exact meaning of the phrase "as if" in standards and how does it work when a user can modify individual parts of the behavior. The question is in regards to the C++ standard when talking about the nothrow version of operator new. 18.4.1.1/7 reads (my emphasis): This nothrow version of operator new returns a pointer obta...

Is no parentheses on a C++ constructor with no arguments a language standard?

I was compiling a C++ program in Cygwin using g++ and I had a class whose constructor had no arguments. I had the lines: MyClass myObj(); myObj.function1(); And when trying to compile it, I got the message: error: request for member 'function1' in 'myObj', which is of non-class type 'MyClass ()()' After a little research, I found th...

How to determine the version of the C++ standard used by the compiler?

How do you determine what version of the C++ standard is implemented by your compiler? As far as I know, below are the standards I've known: C++03 C++98 ...

Does ANSI C support ‘templates?’

I’m taking a C++ class, and my teacher mentioned in passing that the typename keyword existed in C++ (as opposed to using the class keyword in a template declaration), for backwards compatibility with “C templates.” This blew my mind. I’ve never seen or heard tell of anything like C++’s templates (except, perhaps, the preprocessor… and ...

A standard document structure for designing software

I am looking for something like this: http://en.wikipedia.org/wiki/Software_design_document But in more detail and also if something is an actual standard like ieee or iso? For my requirements, I use Volere template. Thanks, Zahid ...

List of popular importable calendar formats?

Say I wanted to write a program that would export calendar data so that it could be imported into another calendar application. What would be some popular formats for that, and where could I find information on the formats of those files? ...

If transactions over REST are unachievable, how can REST ever be really useful?

When looking into REST one of the first things probably anybody will notice is there isn't any transaction semantics defined, some say this is implicitly against what REST is, whilst others say any attempt to do so would result in 'tainting' the REST systems. But lets say for arguments sake that REST did become a popular 'api' choice, a...

Escaping requirements for the input tag's value attribute

What are the requirements for character escaping in the input tag's value attribute in the HTML markup? Is it just double quotes that need to be escaped? HTML special characters as well? I tried looking through the W3C spec, but I couldn't find any specific details on how stuff should be put into the value attribute. I suppose it goe...

C++ ISO standard commented (search a book)

Hello Is there something like "The New C Standard.An Economic and Cultural Commentary" (http://www.knosof.co.uk/cbook/cbook.html) - line-by-line commentary of the standard for C++ (ISO IEC 14882-1998)? I want to deeply learn some extremal examples of C++ and their standard-compliance ...

Why does C# use implicit void Main?

I don't understand why C#'s Main function is void by default (in a console project for example). In C and C++ the standard clearly says main must return int, and using a return value makes sense because we can check that return value from an external program and see if the C/C++ application finished successfully or encountered an error. ...

Is there a way I can tell if IE7 is rendering a page in Standards mode or Quirks mode

I'm having a bit of trouble w/ some CSS on a page. It's valid CSS and Strict HTML. It renders fine in every* browser except for IE (I have only tried 7). Is there a way to tell if it's rendering the page in Quirks or Standard mode? I suspect it may be doing quirks mode, as that's about the only explanation I can think of. *Opera, Chrome...

PHP - Using XML for a config file(s) are elements better than attributes or opposite?

I'm using XML for a config file in PHP (Using SimpleXML), in creating the config file what is more of a standard. Having all values in elements or using the attributes? Elements Example: <database> <user>test-user</user> <pass>test-pass</pass> </database> Attribute Example: <database user="test-user" pass="test-pass"></databa...