standards

ISO 9660 Level 1 compliant directory names

I am confused about the exact limitations on folder names in an ISO 9660 (Level 1) compliant filesystem. I read through the wikipedia page and it says: File names are limited to eight characters with a three-character extension, using upper case letters, numbers and underscore only. - wikipedia When it says 'File Names' does it re...

Meaningful diagnostic messages

Hi, Looking at several posts, I get a feel that many of the questions arise because compilers/implemenetation do not emit a very meaningful message many times (but not always). This is especially true in the case of templates where error messages could be at the least very daunting. A case in point could be the discussion topic Therefo...

C tail call optimization

I often hear people say that C doesn't perform tail call elimination. Even though it's not guaranteed by the standard, isn't it performed in practice by any decent implementation anyhow? Assuming you're only targeting mature, well implemented compilers and don't care about absolute maximum portability to primitive compilers written for...

Is there a RPM File naming convention in LSB?

RPM is the package format in LSB but does LSB force any naming standard for RPMs similarly to this: http://www.rpm.org/max-rpm/ch-rpm-file-format.html Thank you in advance ...

Will a C conditional always return 1 or 0?

Do C conditional statements always return [1 or 0], or do they return [0 or 'something other than zero']. I ask because: pseudo code - foo(address, shouldSend): register >>= 1 register <<= 1 // to clear bit in first position register |= shouldSend // to signal whether it should send or not the problem occurs if somebody ...

Does .Net MailMessage auto fold header fields longer than RFC2822 max length?

See RFC 2822, section 2.1.1 and 2.2.3 to start Does System.Net.Mail.MailMessage auto fold its header fields if their content exceeds the maximum length restrictions? RFC2822 states that a header field must not exceed 998 characters per line. To get around that, CRLF may be inserted to have a header field take up more than one line. T...

We hear so much about "semantic html". Where/what are the algorithms reading our semantic html?

I keep making attempts at properly using HTML5 but I feel like it's still not even close to anything semantically valuable. My attempts: HTML5 Article node Architecture HTML5 Blog Page Architecture But there's such subtleties in every single tag! My question is, what specific software out there on the web is actually doing things l...

Use RecursiveDirectoryIterator to list directories and files into array?

I'm having a directory with this structure : main/ |- images/ |-- file1.jpg |-- file2.jpg |-- file3.jpg |- documents/ |-- private/ |--- blahblahblah.docx |-- test.doc |-- test.xls |-- test.txt I can create a function to complete the work but the RecursiveDirectoryIterator class is much faster and less memory usage this time. How ...

i=i-- -- does gcc document, which will be done

Hello Once again, our best loved "i=i--" -like issues. In C99 we have: 6.5 Expressions #2: Between the previous and next sequence point an object shall have its stored value modified at most once 70) This paragraph renders !!undefined!! statement expressions such as i = ++i + 1; But for undefinded behavior there ca...

Validation naming conventions? C#

Hey, Very simple question, but I want to start using a consistent naming convention for validation methods and I can't think of the best way! Do people tend to use IsDataValid() style? or are there any others that are more descriptive and meaningful? Cheers ...

Does new[] call default constructor in C++?

When I use new[] to create an array of my classes: int count = 10; A *arr = new A[count]; I see that it calls a default constructor of A count times. As a result arr has count initialized objects of type A. But if I use the same thing to construct an int array: int *arr2 = new int[count]; it is not initialized. All values are somet...

How does Informix deal with temporary tables when an iSQL session is dropped?

I'm curious as to how Informix (7.3) deals with temporary tables created with no log when a session is terminated without dropping those tables. I connect using iSQL: cat |isql db Then, for example, I create one or more temporary tables with no log: select first 10 * from table into temp t0 with no log; If I don't drop this table wi...

Who framed the org.osgi.framework.* interfaces?

I understand that OSGI is just a specification and they don't event mandate that implementation be in Java. Then who/which guys have framed the "org.osgi.framework.x" packages. For e.g. where does the BundleContext.java class come from? Has this API provided by OSGIALliance itself? Note that I understand that the implementation of thes...

Are the Internet Explorer Web Controls IE only?

Recently, I came across a set of Internet Explorer Web Controls from Microsoft. These look to me to be older controls from the pre-standards era of Microsoft's asp.net development. I'm curious as to whether or not these controls work well with modern browsers, or if they're basically IE only. I know it says it will render to "downleve...

What's stopping me from using arbitrary tags in HTML?

Even the new HTML5 tags aren't enough to describe structures without falling back to divs. What's stopping me from changing: <div class="post"> <div class="userinfo"> <span class="name">Casey</span> <img class="avatar" src="..." /> </div> <div class="body"> <p>blah blah blah</p> <p>blah blah b...

g++ standards support

I am a bit puzzled reading this: Gcc 4.5 online manual --- Standards section. They explain this The original ISO C++ standard was published as the ISO standard (ISO/IEC 14882:1998) and amended by a Technical Corrigenda published in 2003 (ISO/IEC 14882:2003). These standards are referred to as C++98 and C++03, respectively. GCC imple...

Why do Java webapps use .do extension? Where did it come from?

I have always wondered why so many Java developers use ".do" as the extension for their web controller (MVC) resources. Example: http://mysite.com/register.do It doesn't even seem to be framework specific as I have seen it in Spring MVC and Struts projects. Where did this ".do" extension practice come from. Why was this done instead of ...

Implementation recommendations (tutorial) for implementing a linq interface

Developing a .net library based on an industry standard. The standard includes data structures and an api for interacting with a server. I am considering adding a Linq friendly implementation, and to try to either implment or emulate Linq to Entities. The obvious difference is the API is used for CRUD operations, instead of a database ...

Database Engines and ANSI SQL Compliance

I've been searching for half an hour and can't find any resources stating what level of the SQL ANSI standard is supported on various database engines. It looks like some level of support is provided by most engines, but I'd like to know exactly what level is officially supported. I'm primarily interested in MySQL, PostgreSQL, SQL Serv...

How should the C++ standard be used

Hi, I have this classic question of how should the C++ Standard (I mean the actual official document of the finalized ones) e.g. C++98, C++03 be used to learn and teach C++. My idea is only from the point of view of an average C++ user and not from the point of view of the language lawyers or someone who wishes to be in the Standards c...