standard

Is Java's applet the only way for the Java SE to work on a website?

Does Java SE (Standard Edition) offer a way to make its programs work online beside the Applets? Or is the applet the only way to do that? ...

What is the standard of coding in PHP in the sense seperating css, phpfles and database

Give me the best standard way of coding in PHP. where to store my css, php, images etc. How to seperate my folders, How many folders and whats the name of that folder? ...

strcmp() and signed / unsigned chars...

I am confused by strcmp(), or rather, how it is defined by the standard. Consider comparing two strings where one contains characters outside the ASCII-7 range (0-127). The C standard defines: int strcmp(const char *s1, const char *s2); The strcmp function compares the string pointed to by s1 to the string pointed to by s2. ...

Webservice development

are there any standards for web service development? ...

Expected Behavior: Sort a Paged Table's Column

When a user is viewing a paged table and requests it to sorted by a particular column, what page is shown? Is there a standard expected behavior for this scenario? I can imagine several possible outcomes, but want to know if there is a standard. ...

Standard Library Containers with additional optional template parameters?

Having read the claim multiple times in articles - I want to add this question to Stackoverflow, and ask the community - is the following code portable? template<template<typename T, typename Alloc> class C> void f() { /* some code goes here ... */ } int main() { f<std::vector>(); } Is the implementation that supplies std::vector...

Declaring fixed-size integer typedef in Standard C

Is there a reliable way to declare typedefs for integer types of fixed 8,16,32, and 64 bit length in ISO Standard C? When I say ISO Standard C, I mean that strictly: ISO C89/C90, not C99. No headers not defined in the ISO standard. No preprocessor symbols not defined in the ISO standard. No type-size assumptions not specified in the ...

How to send programmatically an email from another mail client than outlook or outlook express?

From within your application you can send an email by using MAPI functions ("MAPISendMail"). But if there is another mail client installed like "Thunderbird" or "David InfoCenter" the use of MAPI functions does not work, because "Outlook" or "Outlook Express" is not the standard email client. The use of shell functions to execute "mailt...

Writing Standard Input and waiting for Standard Output

Hi, I'm trying to create a Thread that keeps netsh windows command-line tool open so I can execute netsh commands without open it every single time. The thing is, once I've created the Thread, just the first command call works... the subsequent calls seems to have no effect. Here is my code: public class NetshThread implements Runnabl...

Reusing Process object and IO redirects in C#

I'm using the data ready events of the Process class to get information from the standard output and standard error of a running process. It works great on the first run, but after calling Stop() then Start() to force a restart of the application, I no longer recieve data. I've tried CancelErrorRead() but no luck there. I'm considering...

Web Site Design Allowing XML Upload with Supporting XSD

We are designing a web-site allowing business to upload data via XML. We have the XSD for the XML upload. What's the industry standard in supplying the XSD for the users? Is it provided on the web-site as a download? Thanks-- ...

Windows Dialogs: when to use "OK + Cancel" and when to use "Save+Cancel". Is a Windows standard?

When does one use OK+Cancel in a dialog and when "Save + Cancel". I have seen them used interchangeably. Is there a window standard? ...

subexpressions evaluation order

I've looked at SO/IEC 9899:201x under J.1 Unspecified behavior: "The order in which subexpressions are evaluated and the order in which side effects take place, except as specified for the function-call (), &&, ||, ?:, and comma operators (6.5)." Does this means that in func1() + func2(); func2() may be preformed before func1(), o...

WPF Override Standard Theme in App.xaml

Hi all, I am using the standard WPF theme Aero.NormalColor.xaml. And it works very well. However for the whole application, I would like to override the Foreground color of textboxes to red. My first try is that <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictio...

PHP Mass Email Best Practices? (PHPMailer + Gmail)

Hey everyone, I'm thinking about how to handle sending large amounts of email from my web applications, and whether there are any best practices for doing so. StackOverflow is already labeling this as 'subjective', which it may be to an extent, but I need to know the most successful way to implement this system, or whether any standardi...

Where does C++ standard define the value range of float types?

As far as I know floating point values are of the form n * 2^e, with float range being n = -(2^23-1) - (2^23-1), and e = -126 - 127, double range being n = -(2^52-1) - (2^52-1), and e = -1022 - 1023 I was looking through the C++ standard, but failed to find the place where the standard specifies this, or mandates the association of t...

[C++] Array of char or std::string for a public library?

Hi, my question is simple: Should I use array of char eg: char *buf, buf2[MAX_STRING_LENGTH] etc or should I use std::string in a library that will be used by other programmers where they can use it on any SO and compiler of their choice? Considering performance and portability... from my point of view, std strings are eas...

does c++ standard prohibit the void main() prototype?

In section 3.6.1.2 of both C++ Standard 1998 and 2003 editions, An implementation shall not predefine the main function. This function shall not be overloaded. It shall have a return type of type int, but otherwise its type is implementation-defined. I am not a native English speaker.I do not sure what does"but otherwise" means.W...

C++ Standard: Unexpected const_iterator in multiset

I recently ran into an odd issue where I'd get a const_iterator instead of the expected iterator when iterating through a multiset. It turned out to be a non-issue for MSVC but g++ gave me an error: error: invalid initialization of reference of type 'myPtr&' from expression of type 'const boost::shared_ptr' Relevant code: ty...

choosing licensing statement for an open standard/specification

I've started to write a file format specification for a domain-specific data type. My goal is to improve interoperability between a large number of data providers and search algorithms. I want the result to be available for use, patent-free and without distribution fees. I'm looking for advice on which license to use, both for the speci...