standards

H1 tags, SEO and semantics

Hi guys, I'm using the H1 tag in my document as the main title, as you do. The text in the H1 is the title of the company, which needs to be shown on every page. I'm using the H2 tag for the title of the main content on each page. So the H1 is the same on every page, and the H2 changes. I know that a lot of sites use the H1 to do wha...

How do ISO standards work (particularly ISO 9126)

I'm taking a course in software project management and right now I'm writting a "quality plan"... We've discussed ISOs in class, and I would particularly like my fake company to say the project complies with ISO norm 9126. The thing is I don't really know what that means. Is it just something you say to your client, does your company ne...

C++ coding standards

Possible Duplicates: C And C++ Coding Standards What existing style and coding standard documents should be used on a C++ project? How to acheive coding standards in C++? Any reference books? ...

How would I create a technology standards document for my company?

I'm a Director of Product Engineering for my company. My CEO has asked me to create a technology standards document, explaining things like the technology we use, our policy on adapting to new technology, and design standards like percent of code covered by unit tests. I've never had to do something like this, and I've spent a significan...

Is there a Standard or Best Practice for Perl Programs, as opposed to Perl Modules?

I've written any number of perl modules in the past, and more than a few stand-alone perl programs, but I've never released a multi-file perl program into the wild before. I have a perl program that is almost at the beta stage and is going to be released open source. It requires a number of data files, as well as some external perl modu...

What are the default style property values in HTML?

Related: How can I locate the default style sheet for a browser? Most HTML elements have style properties associated with them such a "color", "font-size" and "padding". These style properties have default values. For example the "color" style property associated with the "a" (anchor) element seems to have a default value of "#00006...

iphone @property(retain), init(), and standards

I'm new to the memory management of the iphone and had a question about standards/correctness. My header file declares: IBOutlet UITabBarController *tabBarController; @property (nonatomic, retain) UITabBarController *tabBarController; In my init() code I was doing something like the following: self.tabBarController = [[UITabBarCon...

What does "char (*a)[12]" mean ?

Is this from the C standard? ...

Forcing IE8 Standards Mode with FEATURE_BROWSER_EMULATION

I'm doing this: http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx But it's not working. I have "iexplore.exe" set to 8888 (decimal mode) under MACHINE, but it's still coming up documentMode = 5. I thought 8888 was suppose to force IE8 Standards Mode whether you have a doctype or not. What is goin...

Libraries for developing NCPDP SCRIPT based systems (a standard for e-prescribing)

What are (based on experiences) best (commercial or open source) libraries for developing NCPDP-based systems? Background: NCPDP (National Council for Prescription Drug Programs) is a not-for-profit, ANSI-accredited, standards development organization. One of it's standards is the SCRIPT Standard for Electronic Prescribing, which allows...

What is the purpose of the const_cast<> on a volatile?

I saw it was possible to do it but I do not understand the interest. ...

What do I name classes whose only purpose is to act as a structure?

For example, take my Actor class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace FreeIMDB { class Actor { public string Name { get; set; } public Image Portrait { get; set; } public DateTime DateOfBirth { get; set; } public Li...

Are there any code libraries or languages with built-in support for Metric Time?

Metric time is documented here. I'm looking for any implementations of Metric time to Anglo-Babylonian Time (see article link) either as a library or built-into a programming language. With all the "joke" programming languages out there, it's possible that someone has done this. P.S. I realize that it is trivial. This question is for ...

Coding Conventions - Naming Enums

Hi all, Is there a document describing how to name enumerations? My preference is that an enum is a type. So, for instance, you have an enum Fruit{Apple,Orange,Banana,Pear, ... } NetworkConnectionType{LAN,Data_3g,Data_4g, ... } I am opposed to naming it: FruitEnum NetworkConnectionTypeEnum I understand it is easy to pick off w...

Why do compilers allow string literals not to be const?

And where are literals in memory exactly? (see examples below) I cannot modify a literal, so it would supposedly be a const char*, although the compiler let me use a char* for it, I have no warnings even with most of the compiler flags. Whereas an implicit cast of a const char* type to a char* type gives me a warning, see below (tested...

Are "Statement and Declarations in Expressions" specific to GNU C ?

Are Statement and Declarations in Expressions specific to GNU C ? Or this feature is also included in C99 standard ? ...

Malloc & Init - MACRO

Is it possible to rewrite the following code, so that it would be ISO C compliant ? The following macros are doing a malloc & init for a given type and value. The current code works with the gcc compilers (uses a gcc extension), but it's not standard. If I use -pedantic, I receive warnings. #ifdef __GNUC__ #define NM_CVPTR(type, valu...

Should you format operator<< for classes?

As in, should the operator>> match the operator<< ? Database Example: If the operator>> reads in something of the following format: 2 Joe 500 20 1 Bob 250 30 0 should the operator<< output that? Or something like this: Record: 1/2 Name: Joe Balance: 500 Transactions: 20 Premium Account: Yes And then have a separate writeFile() fu...

New lines in tab delimited or comma delimtted output

I am looking for some best practices as far as handling csv and tab delimited files. For CSV files I am already doing some formatting if a value contains a comma or double quote but what if the value contains a new line character? Should I leave the new line intact and encase the value in double quotes + escape any double quotes within ...

Why doesn't strerror return a const-qualified pointer?

I was just skimming the C99 standard, looking for something that I don't remeber now, when I noticed that the pointer returned from the strerror function (section 7.12.6.2) isn't const-qualified, even though the standard says: The strerror function returns a pointer to the string, the contents of which are locale-specific. The arra...