Baran Topal

Categories


Technology

Unit Test and Load Test in VS2010

While I was digging my old backups, I found this article and I am putting as it is. I couldn’t find the author and if the authoer contacts me, I will give his/her credits. Visual Studio .NET 2010 Unit Testing Visual Studio provides a template for creating unit test projects.  The projects can have the following types of tests: [...]

baranbaran

looper in MSSQL

Following this looper case, http://www.barantopal.com/technology/looper-in-c/ Now, out of curiosity, I tried to solve this in MSSQL. ID ColX 1 3 2 3 3 6 4 5 5 2 6 2 7 9 9 11 10 1 11 13 13 14 14 12 15 19 17 18 19 20 20 16 21 22 22 21 23 23 24 23 The following SQL snippet is not the solution but it is too late here and I need to sleep 🙂 I [...]

baranbaran

size of time_t out of the blue

The output of the following program heavily depends on your architecture: # include <stdio.h> # include <iostream> # include <time.h> using namespace std; size_t getPtrSize( char *ptr ) { return sizeof( ptr ); } int main() { time_t lt; lt = time(NULL); cout << "Date: " << ctime(&lt) << endl; cout [...]

baranbaran