My first TDD approach in C# , yay …..
Next up will learn how to use BDD in C# project. My eyes on http://www.specflow.org/ for that. But may be not now, after tomorrow may be!
C++
sqlcmd usefull command
UncategorizedTo open sqlexpress
sqlcmd -S .\SQLEXPRESS
To show all databases
EXP sp_databases go
IKVM.NET Home Page
UncategorizedIKVM.NET is an implementation of Java for Mono and the Microsoft .NET Framework. It includes the following components:
- A Java Virtual Machine implemented in .NET
- A .NET implementation of the Java class libraries
- Tools that enable Java and .NET interoperability
executing a Dos command in C#
Uncategorizedthe following forum post has a nice discussion about this. in general, the solution will be
System.Diagnostics.Process.Start(@”C:\MyScript.bat”);
or
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo = @”C:\MyScript.bat”;
myProcess.Start();
myProcess.Close();
creating a timer in a Moblet
Uncategorized#include <MAUtil/Moblet.h> #include <conprint.h> #include <matime.h> #include <MAUtil/Environment.h> using namespace MAUtil; class MyTimer : public MAUtil::TimerListener { public: void runTimerEvent () { lprintfln("Timer expired"); } }; MyTimer timer; /** * A Moblet is a high-level class that defines the * behaviour of a MoSync program. */ class MyMoblet : public Moblet { public: /** * Initialize the application in the constructor. */ MyMoblet() { printf("Press zero or back to exit\n"); printf("%d",maLocalTime()); MAUtil::Environment::getEnvironment().addTimer(&timer, 1000,0); } /** * Called when a key is pressed. */ void keyPressEvent(int keyCode, int nativeCode) { if (MAK_BACK == keyCode || MAK_0 == keyCode) { // Call close to exit the application. close(); } // Print the key character. printf("You typed: %c\n", keyCode); } /** * Called when a key is released. */ void keyReleaseEvent(int keyCode, int nativeCode) { } /** * Called when the screen is touched. */ void pointerPressEvent(MAPoint2d point) { // Print the x and y coordinate. printf("You touched: %i %i\n", point.x, point.y); printf("%d",maLocalTime()); } }; /** * Entry point of the program. The MAMain function * needs to be declared as extern "C". */ extern "C" int MAMain() { Moblet::run(new MyMoblet()); return 0; }
source: http://www.mosync.com/content/looking-timercountdown-timer
Objective C tutorial
UncategorizedA good Object C tutorial for beginners can be found here : http://rypress.com/tutorials/objective-c/index.html
Mono for Android – Create amazing Android apps with C# and .NET
UncategorizedCreate amazing Android apps with C# and .NET
Bringing joy to Android development.
via Mono for Android – Create amazing Android apps with C# and .NET.
Stroustrup reveals whats new in C++ 11 | Application Development – InfoWorld
UncategorizedBjarne Stroustrup first started developing the the C++ language in 1979 at Bell Labs. Back then, it was called “C with Classes,” and it was created as part of an experiment in distributed computing. In the 30-plus years since, the language has taken off, becoming one of the most popular programming languages in use today.
via Stroustrup reveals whats new in C++ 11 | Application Development – InfoWorld.