whatwg (153)


algorithm - Graph serialization

algorithm - Graph serialization

I'm looking for a simple algorithm to 'serialize' a directed graph. In particular I've got a set of files with interdependencies on their execution order, and I want to find the correct order at compi…


xml - Can XPath return only nodes that have a child of X?

Is it possible to use XPath to select only the nodes that have a particular child elements? For example, from this XML I only want the elements in pets that have a child of 'bar'. So the resulting d…


html - Why do Chrome, Firefox and IE all render fixed-width SELECT controls differently?

I am losing hair on this one... it seems that when I fix width an HTML SELECT control it renders its width differently depending on the browser. Any idea how to to standardize this without having…


algorithm - Meta-composition during music performances

A couple of weeks ago, my piano teacher and I were bouncing ideas off of each other concerning meta-composing music software. The idea was this: There is a system taking midi input from a bunch of in…


XPath vs DeSerialization: which one is better in performance for read operations

I'm passing small(2-10 KB)XML documents as input to a WCF service. now I've two option to read data values from incoming XML Deserialize to a strongly typed object and use object properties to acce…


Can I add an attribute to a function to prevent reentry?

At the moment, I have some functions which look like this: private bool inFunction1=false; public void function1(){if(inFunction1) return; inFunction1=true;// do stuff which migh…



How to compare two elements of the same but unconstrained generic type for equality?

Possible Duplicate: Can’t operator== be applied to generic types in C#? I've got the following generic class and the compiler complains that "Operator '!=' cannot be applied to operands of type '…


Adding event handlers by using reflection

I am adding dynamically controls to page by using LoadControl and Controls.Add. I need somehow to wrap Init and Load event handlers of this loaded controls into my code. So it should be such order of…


python - How do I get the UTC time of “midnight” for a given timezone?

The best I can come up with for now is this monstrosity:>>> datetime.utcnow() \....replace(tzinfo=pytz.UTC) \....astimezone(pytz.timezone("Australia/Melbourne")) \....replace(hour=0,minut…


Getting setting cookies on different domains, with javascript or other

Haven't been able to find anything particular to this situation online so here i go... I need to set/get the cookies stored at "first.com" while browsing "second.com", I have full access of "first.com…




html pdf html5 specification standard what the w3c standards for