Place a button right aligned

Which alignment technique you use depends on your circumstances but the basic one is float: right;: You’ll probably want to clear your floats though but that can be done with overflow:hidden on the parent container or an explicit <div style=”clear: both;”></div> at the bottom of the container. For example: http://jsfiddle.net/ambiguous/8UvVg/ Floated elements are removed from … Read more

Using .Select and .Where in a single LINQ statement

In order for Enumerable.Distinct to work for your type, you can implement IEquatable<T> and provide suitable definitions for Equals and GetHashCode, otherwise it will use the default implementation: comparing for reference equality (assuming that you are using a reference type). From the manual: The Distinct(IEnumerable) method returns an unordered sequence that contains no duplicate values. … Read more

Alert”Developer tools access needs to take control of another process for debugging to continue.Type your password to allow this.”

The first time you launched XCode, it probably asked you if you wanted to enable Developer Mode on this mac. If you accepted, then it asked you for your password, and you stopped getting this kind of warning. Chances are good that you declined, and now it has to explicitly ask you for permission every … Read more