standards

Should I use the C or C++ implementation for returning a maximum size of a variable type?

From a standards standpoint, should I use the following from the C++ <limits> header? UCHAR_MAX which is the c implementation or std::numeric_limits<unsigned char>::max() which is the C++ implementation. The result is equivalent between the two versions but should I choose an implementation based on some standard or on readability and ...

What is the point of span, ul, li, h1 etc elements (and others) when styled divs can mimic their functionalities?

I'm creating user customizable HTML templates and deciding on what elements types to use. On the one hand I could use the most appropriate HTML element type for each type of content - ul's/li's for lists, h1's, h2's (etc) for headings and so on. On the other hand, I could just use div's with class attributes. In fact, I'd have to use cla...

Clean way to launch the web browser from shell script ?

In a bash script, I need to launch the user web browser. There seems to be many ways of doing this: $BROWSER xdg-open gnome-open on GNOME www-browser x-www-browser ... Is there a more-standard-than-the-others way to do this that would work on most platforms, or should I just go with something like this: #/usr/bin/env bash if [ -n $...

Library of ISO standards

Is there any library that covers ISO standards of international abbreviations, formats and other, or everybody uses his version of CountryCodes like: public enum CountryCode { AL, // Albania AD, // Andorra AM, // Armenia AT, // Austria ... } Want to have country codes, currency and f...

To use or not to use C++0x features

Possible Duplicate: How are you using C++0x today? I'm working with a team on a fairly new system. We're talking about migrating to MSVC 2010 and we've already migrated to GCC 4.5. These are the only compilers we're using and we have no plans to port our code to different compilers any time soon. I suggested that after we do ...

MIME-type conventions, standards or limitations?

Given a new, proprietary file format that cannot currently be handled by any known application, I assume you can just invent a new MIME type value as follows: Content-Type: application/my-arbitrary-format Assuming this is the way to go, are there any limitations (format, syntax, length, reserved words, or otherwise), standards (IETF, ...

Is there any open source ISO 11703 java implementation?

Hey, I'm looking for an java implementation of the ISO 11073 standard (Health informatics - Point of care medical device communication), especially the Medical package of it. ...

Healthcare communication standards for web based applications?

hello i am going to develop a web based application that is Electronic Health records one of the constraints is the my system should follow a communication standard that is complied by most of such type of applications. i go for a standard known as HL7 health level 7 but i am bit confused! problem is i can't differentiate between the t...

Is there an industry standard for error messages?

Is there an industry standard for error messages? I'm hoping that it would be from a technology standard organization like w3c or an industry organization like ARTS (association of retail technology standards). ...

Is the C programming language object-oriented?

I was talking with a co-worker about C and C++ and he claimed that C is object-oriented, but I claimed that it was not. I know that you can do object-oriented-like things in C, but C++ is a true object-oriented language. What are your thoughts? Also, it triggered discussion on who decides what it means to be object-oriented and that i...

Is it legal/well-defined C++ to call a non-static method that doesn't access members through a null pointer?

I came across the following code recently: class Foo { public: void bar(); // .. other stuff }; void Foo::bar() { if(!this) { // .. do some stuff without accessing any data members return; } // .. do normal actions using data members } The code compiles because in C++ methods are just functions th...

Why isn't regular expressions part of ISO C99

Everyone knows how awesome C language is and how much it sucks in text processing tasks. Given these facts. Regex definitely must be part of ISO C. But it isn't. I don't understand why? Are there people who think its not essential? ...

Is there something similar to JLS for Ruby

Is there a definitive specification for Ruby, akin to the Java Language Specification for Java. Googling ruby language specification provides http://ruby-std.netlab.jp/ as a result, but the site is down and i am not sure whether it is current ...

How to get involved in C standardization process?

Hello, Lately I've been getting interest in C standardization. I want to participate in development of C1X. I want to put forward my ideas (irrespective of they being accepted/rejected). I want to know the procedure. WG14 documents shows various documents sorted by mailing list. Where can I join one such mailing list? How to submit a p...

IE Standards modes

Hi I just have a quick question about IE8 Standards mode vs Quirks mode. The page displays fine if you load its first page then log in. I have searched for the doc type which i think is right for changing the page to IE8 Standards Mode and i think it works because IE's built in debugger says it's in that mode. Also if you start on anot...

Do I need to define `operator==` to use my class with standard containers?

I'd like clarification on the C++ standard, specifically where it says (my interpretation) in section 20.1.3 that "for class T and an instance of class T called x, T(x) must be equivalent to x" for the class to work with standard containers. I couldn't find a definition of 'equivalent'. Does this mean that I have to define operator== a...

ie8_getElementById()

Whats the difference between document.getElementById() and document.ie8_getElementById(). Thanks in adv. ...

clientHeight returns defferent values depending on the mode IE8 is in

In a javascript function i use document.body.clientHeight to get the height of the body. Now depending on the mode IE8 is in i.e quirks or standard, the value is different. Example In quirks, document.body.clientHeight = 800px In standars, document.body.clientHeight = 650px Hope i've made sense. Please help. ...

Is the HTML 5 Spec already complete?

I'm was looking for an HTML 5 and CSS 3 framework, I found 52Framework but I've noticed that a lot of HTML 5 elements are still missing, even at the most basic level (reset.css). I though of making my own framework but I need to know if the HTML 5 standard is already complete or if it's still subject to changes, I Googled a bit but coul...

Keeping up with standards, new releases and deprecations

Hi, I want to know how programmers keep up with changes in a package or library. I usually go over the release notes. How to keep up with the standards and maintain good coding practices? Thanks Edit By "maintaining good coding practices" I mean is how to keep code efficient and optimized based on changes in the standard/release? For...