This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Setting up SDK tools | |
> Download the Android Studio http://developer.android.com/sdk/index.html | |
> Configure -> SDK Manager | |
> Make sure following are installed under Tools | |
- Android SDK Tools | |
- Android SDK Platform-tools | |
- Android SDK Build-tools | |
> Make sure required API tools are (21 is the current) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ATOM | |
Pros : | |
Fast - Ok, I've seen people complaning about the slowness of ATOM. But if I were to compare it with Sublime and WebStorm it would be Sublime > ATOM > WebStorm with Sublime being fastest. | |
Looks matter - and ATOM is the best | |
Cons : | |
Less GIT features - can't compare the working version with that of GIT | |
Sublime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
work in a dev branch | |
when done, commit all changes and merge the master to dev (retaining all changes done in dev) | |
> git merge -s ours masater | |
when the merging is success in the branch, swith to master | |
> git checkout master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note to self : Identity configuration is throwing the above error in the RsaEncryptionCookieTransform(e.FederationConfiguration.ServiceCertificate) init process. | |
For some reason, the certificateValidation is to be set to None for it to get pass this error. | |
<system.identityModel> | |
<identityConfiguration> | |
<audienceUris> | |
<add value="spn:b8550cb0-510c-4713-9695-73e6d1280372"/> | |
</audienceUris> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO [DestServer].[DestDB].[dbo].DestTable (column list) | |
SELECT column list | |
FROM [SourceServer].[SourceDB].[dbo].SourceTable | |
WHERE some condition | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ok, here is our scenario. Create a database on an existing server, and 'sometimes' the applications are not able to access the database using the 'default' credentials assigned to the server. Following script can be used to do that manually. | |
CREATE USER theuser without login with default_schema=[dbo] | |
EXEC sp_addrolemember N'db_owner', N'theuser' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dropbox - 100 GB / 99 / year | |
Google drive 100 GB/ 180/ year | |
Skydrive 100GB/ 50 /year | |
https://skydrive.live.com/options/Upgrade | |
http://www.google.com/intx/en_au/enterprise/apps/business/products.html#product-drive-prices | |
https://www.dropbox.com/business/pricing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = getData(); | |
var stringBuilder = new StringBuilder(); | |
stringBuilder.AppendLine("Header"); | |
foreach (var item in data) | |
{ | |
stringBuilder.AppendLine(data.Stuff) | |
} | |
var response = new HttpResponseMessage(HttpStatusCode.OK); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If i do this with code first, | |
var entityA = new EntityA(); | |
entityA.ItemCollection.Add(new Item()); | |
entityA.ItemCollection.Add(new Item()); | |
service.Save(entityA); | |
Everything works fine, until you go and check for the two records that should have been inserted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE MASTER | |
GO | |
declare @restoreSql nvarchar(500); | |
declare @dbName nvarchar(50); | |
declare @dbBackupFile nvarchar(100); | |
set @dbName = 'test'; | |
set @dbBackupFile = 'test.bak'; |