Monday, 28 November 2016

Migrating Mercurial (Hg) repository to GIT

Here a just a few random notes to get you starting with the migration of existing Mercurial Hg repository to GIT without loosing history.
Read:
Install:

Tuesday, 5 May 2015

How to use Visual Studio’s 2015 Android Emulator in Android Studio or Eclipse

Microsoft introduced Android Emulator in Visual Studio 2015, which is currently available as Release Candidate, this emulator uses Hyper-V with virtual machines running on Android x86 platform. So emulator is super fast and has a lot of nice features previously known just to Windows Phone emulators, like zooming, easy location mocking, simulating camera with real images, drag and drop APK files etc, ...

But the best part is, that this great emulator with all its nice features can be also used when developing Android applications with Android Studio or Eclipse. Just with two additional steps:

1.) Prepare and run desired VS Android emulator in Visual Studio, for detail read this article

2.) Check IP address of Android emulator device Settings \ WiFi \ Advanced\ Ip Address

Getting current IP address of Android device

3.) Run Command "ADB connect ipaddress"


4.) Now VS Android emulator should be available for running and debugging Android applications in either Eclipse or Android Studio.


Enjoy!

Thursday, 5 March 2015

How can SQL code behave differently in or outside procedure and about poor error handling

During refactoring of very old code, I found a ancient/ugly and in the end even totally wrong error handling script. Interesting is that the developer probably tested it outside of procedure and it did "kind a work" for him, ... :)

I'll add details later (or much later).

Tuesday, 3 March 2015

How can I query remote Microsoft SQL Server using integrated security

How can I query remote Microsoft SQL Server without setting up linked server and not using hardcoded username and password of course! :)


Thursday, 15 January 2015

tSQLt FakeTable fails with error "cannot be renamed because the object participates in enforced dependencies"

Table is probably included as part of some "schema binded" view. Use attached script to temporary remove schema binding.

Error:
"[Test] failed: (Error) A .NET Framework error occurred during execution of user-defined routine or aggregate "SuppressOutput":
System.Data.SqlClient.SqlException: Object '[dbo].[SomeTable]' cannot be renamed because the object participates in enforced dependencies."


Source on GIT

Wednesday, 14 May 2014

How to use Ionic framework with Ripple web browser based emulator

http://ripple.incubator.apache.org/
droid gang
droid gang (Photo credit: valanzola.t)
First prepare Android platform:

ionic platform add android ionic build android 

Install Ripple emulator with node.js NPM.

npm install -g ripple-emulator 

and run it:

ripple emulate --path platforms/android/assets/www


Last step can be also used in ordinary PhoneGap / Cordova project.

Links:
- Ionic Framework


Enhanced by Zemanta

Thursday, 1 May 2014

Backbone model sample (javascript)

Following sample script demonstrates all Backbone.js libraray model related functions:
  • attributes
    • setting default values
    • getting list of attributes
  • constructor
  • validation 
  • methods
  • converting to JSON


Additional resources: