I was wondering whether using POSIX.pm would make my Perl code less cross platform. From reading the documentation it's not very clear how well it's supported on Win32/64 Perl implementations.
Is it wise to rely use POSIX.pm if one cares about portable code?
...
Hi all,
I'm working on a large ites re-write that has now come to included a redesign. I have been reading up on HTML 5 and wanted to know what cons are out there to have me avoid adopting it for this design implmentation? The design needs to work in A-grade browsers (yes including IE6 :( ), so I'm wondering how / etc will be rendered...
I’m curious if there is standard or guideline for determining what types of things should be attributes vs elements within the xml file.
I’m also curious about creating xmlarray and xmlarrayitem lists using XMLSerializer. For example if I have the following:
<SomeBaseTag>
<Item1 Attr11=”one” Attr12=”two” />
<Item1 Attr11=”one” A...
I need to know how to implement URL Routing in PHP. Im a Amateur PHP Developer. Guide me. Any Help would be greatly appreciated
...
Given the following program
#include <iostream>
using namespace std;
void foo( char a[100] )
{
cout << "foo() " << sizeof( a ) << endl;
}
int main()
{
char bar[100] = { 0 };
cout << "main() " << sizeof( bar ) << endl;
foo( bar );
return 0;
}
outputs
main() 100
foo() 4
The questions:
Why is the array passed as a point...
The GNU C++ (g++ -pedantic -Wall) accepts this:
typedef int MyInt;
class Test
{
public:
MyInt foo();
void bar(MyInt baz);
};
int Test::foo()
{
return 10;
}
void Test::bar(int baz)
{
}
int main(void)
{
Test t;
t.bar(t.foo());
return 0;
}
Is it legal C++? Are other compilers likely to accept it?
...
Is there a reasonable way to search standards for programming and markup languages (specifically, C, C++, Java, JavaScript, (X)HTML)? Standard libraries tend to be well-documented and easy to access, but when looking for information on the basics of a language I always have trouble, and end up getting most of my information second-hand ...
This is strictly an opinion/experience question for research purposes.
I was wondering what coding standards companies have in place now for Web Developers? (Document formats, coding standards, file structures, etc.)
Obviously they all can't be listed, but some major ones would give me an idea.
...
So I have 2 questions about HashMaps in Java:
(1) What is the correct way to initialize a HashMap? I think it might be best in my situation to use:
HashMap x = new HashMap();
But Eclipse keeps suggesting that I use:
HashMap<something, something> map = new HashMap();
which is better?
(2) Can a HashMap hold different types of objec...
It doesn't seem like it would be too hard to implement in assembly.
gcc also has a flag (-fnested-functions) to enable their use.
thanks
...
Consider:
int a[2] = {0,1};
int *address_of_second = (&a[1]);
I assume this works because it's translated to &*(a+1) and then the & and * cancel each other out, but can I count on it, or is it compiler-specific? That is, does the C standard have anything to say about this?
Is this a decent way to write?
Personally I think that writi...
I was wondering what it requires to write a standard which targets programmers (e.g. JSON) and where to get started?
Does anyone has hands-on experience on that?
...
If I have a collection of static constants that I want to declare centrally so that they can be shared among various projects should they be put in a class or interface (Java).
In the past I have seen them mostly put in a class but I started thinking that since the class will not and should not be instantiated maybe they would be better...
While discussing how to process AT commands with a colleague,
we discovered that contrary to our belief the command
AT&W (store user profile) is not specified in V.250
(it only specifies ATZ and AT&F, which are related),
leaving us wondering - where is it specified then?
Update: Yes, we expected the command to have its origin in the
Hay...
<div id="spacer">
</div>
+
#spacer {
height: 4px;
}
Firefox and Safari do it right, the space on screen is small. IE8 makes it bigger than 4px. WTF.
If I set it to 200 pixels or whatever, the space is huge. It decreases until I get to around 15 px, at which point IE continues to draw a 15ish px space despite the css saying 4...
I am trying to convince some senior people at my company of the advantages of transmitting data in a structured format between two of our systems.
Currently one system outputs flat text files and complicated parsers have to be written to extract the data on the other side. Every time the data is changed, the 'positions' have to be adjus...
I've read the TIFF file specification provided by Adobe, but I couldn't find any standards related to:
If it's better/more accepted to put IFDs immediately following the image data they describe/immediately preceding the image data they describe/all together at the top with image data below/etc.
How many rows to put in each strip. Is t...
Hi,
I'm building a client-server application and I am looking at adding failover to the client so that when a server is down it will try to connect to another available server. Are there any standards or specifications covering server failover? I'd rather adopt an existing standard than implement my own mechanism.
...
When an event, such as onclick, is declared in a col element for an HTML table does that event impact the cells referenced by the col element? Is the event ignored? Does something else happen?
...
Hi Guys,
Is there a good advisory / best practice manual etc. out there which outlines methods to make a page layout fluid in the following two ways:
a) The layout should be robust under window resize
b) The layout should seamlessly handle font resizes committed by the user
Every time I design a page layout I end up using different, ...