Tuesday, January 8, 2019

Decision tree for Azure compute services

The following flowchart will help you to choose a compute service for your application. The flowchart guides you through a set of key decision criteria to reach a recommendation. 


Thursday, March 22, 2018

VS Code Angular Stop Automatic Rebuilds

VS Code Angular Stop Automatic Rebuilds :

ng serve --watch=false


Reference
https://github.com/angular/angular-cli/wiki/serve

Running VS Code In Mac Terminal


1- Open VS Code 
2- Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.
3- Restart the terminal. 
4- Type 'code .' in any folder to start editing files in that folder Using VS Code.

Reference :
https://code.visualstudio.com/docs/setup/mac 



Thursday, November 16, 2017

SQL Server, Add New Login as sysadmin without Management Studio (SSMS)

How to Control MS SQL Server  without Management Studio (SSMS) :
For E.g:
We need to create new user account and we do not have SSMS installed on the server, for a quick Solution we did the following :

1- Prepare our SQL script in txt file :
--------------- Script.txt --------------------
USE [master]
GO
CREATE LOGIN [nady] WITH PASSWORD=N'123', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO
EXEC master..sp_addsrvrolemember @loginame = N'nady', @rolename = N'sysadmin'
GO
------------------------------------------------

2- Prepare Command :
--------------- CMD.txt --------------------
sqlcmd -S dpqdevecom01 -i C:\nady\Script.txt -o C:\nady\Exec_Output.txt
------------------------------------------------

3- Open Windows command line, CMD ( Windows + R) then Paste your Command Script :) .




Tuesday, October 10, 2017

.net Core HTTP Error 405.0 - Method Not Allowed

When you try to do PUT and DELETE request using .net Core you get  "HTTP Error 405.0 - Method Not Allowed",

The solution is :
The WebDAVModule set PUT and DELETE request methods disabled by default. so you should disable it.

inside your Web.config :

  <system.webServer>   
    <modules runAllManagedModulesForAllRequests="false">
          <remove name="WebDAVModule" />
    </modules>
  </system.webServer>

Thursday, October 5, 2017

.Net Core 2 How to Send an Email using HTML Physical File System as a Template & SmtpClient.

.Net Core 2 How to Send an Email using HTML Physical File System as a Template & SmtpClient.

From .NET Core V2.0 you can use your old famous friend "SmtpClient", However, this example will Show you: How to send an email using HTML physical file system as a template.

You can find the project Github rep here: https://github.com/naadydev/Dotnet_Core_HTML_File_EMail_Template 

hope you find it useful for you (: naadydev@gmail.com