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...
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 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?
...
What is the standard for screen sizes when designing web sites? Is it still 800x600?
...
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...
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!<...
Does anyone know what organization is hosting the .net framework Common Language infrastructure (CLI) standards and where you can I go and read them?
...
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...
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...
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 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
...
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 ...
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
...
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?
...
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...
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...
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
...
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.
...
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...
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...