-
How to Create secure relational databases in SQL
The first step to a secure DB, is a well structured DB and the application layers that access it. Take the following example of a table containing factories and the robots they produce. FACTORYNAME ROBOTNAME FACTORY1 Ron FACTORY1 John FACTORY2 Bob FACOTRY2 Bill This serves a good purpose by itself, and allows for easy manipulation…
-
C# Nested Repeaters ASP .Net
Nested repeaters are a very common topic in ASP .Net so I thought it would be a good subject to write on, especially considering the number of solutions that exist when you Google “nested repeaters” that offer plug-and-play answers, but don’t actually explain why one approach may be more optimal than another. The Solution XML/HTML…
-
View PDF in Objective-C Cocoa on Mac OS X using PDFKit
The code below has been tested and works clean on the latest version of Mac OS X 10.5 Leopard. Since it applies to native Mac OS X, and not iOS, porting this to work on iPhone/iPad is a bit different, however, it is overall very easy once you have the base concept and the main…
-
C++ concatenate strings with stream or sprint
There are many different ways to achieve this, but in my opinion the best method for something this commonly used is a solution that does not require additional external dependencies.. However, see reference at the bottom of this post for some other good solutions which are optimized for speed and brevity. Stackoverflow (forum), http://stackoverflow.com/questions/191757/c-concatenate-string-and-int
