Saturday 22 February 2014

Color Theory for Coders

Color Theory is key for coders working on graphical user interfaces.

A theory of color puts colors into a logical ordering.

The most basic such is the Primary Colors, Red, Yellow, and Blue, in painting no mixing of colors can create these, they are atomic structures. You can imagine them on a three-part color wheel.

Then you have the Secondary Colors, green, orange and purple, formed by mixing the primary colors.

You can show this on a pie chart of six slices. All this might seem trivial, but even Isaac Newton thought about color wheels in 1666 and he discovered gravity and the laws of motion.

Wednesday 19 February 2014

.NET Transparency Model ("Security Silo" Model) Overrules CAS as of Dot Net 4

Transparency separates code running as part of an application from code running as part of infrastructure. Transaparent code can only "do things" within the bounds of a permission set, and can't do funky things with infrastructure (running critical code etc.). This follows the principle of least privilege.

Unity 3 for .NET 4 and Above

Unity was released in April 2013. The best way to get it is via the msdn location. Downloading the "Application Block" will give you all the DLLs which you probably want to stick into an appropriate lib directory. Unity 3 is now security-transparent. Note: this is a different concept from security policy, which has become obsolete in .Net 4.0.