Posts

Windows Server 2016 Enable file downloads in Internet Explorer

If you have just created a cloud server on Microsoft Windows but are having problems downloading files from your server, you might need to enable file downloads in Internet Explorer. Microsoft disabled file downloads by default in some versions of Internet Explorer as part of its security policy. To allow file downloads in Internet Explorer, follow these steps. Open Internet Explorer. From the  Tools  menu, select  Internet Options . In the Internet Options dialog box, click the  Security  tab. Click  Custom Level . In the Security Settings dialog box, scroll to the  Downloads  section. Under  File download , select  Enable , and then click  OK . In the confirmation dialog box, click  Yes . Click  OK > Apply > OK . Now you will be prompted for file downloads.

Download and install TFS 2017 Build Agent

1. Goto your TFS link http://onlinetfsserver.com:8080/tfs  (replace onlinetfsserver with your tfs server link. 2. select the project. 3. GoTo builds. 5. Goto Settings menu option. 6. Select Agents Pools submenu. 7. Click on " Download Agent" Button. 8. Once Agent gets downloaded unzip it and follow the instruction on the download agent page. Create the agent PS C:\> mkdir agent ; cd agent PS C:\agent> Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\vsts-agent-win7-x64-2.112.0.zip", "$PWD") Configure the agent detailed instructions PS C:\agent> .\config.cmd Optionally run the agent interactively If you didn't run as a service above: PS C:\agent> .\run.cmd That's it!

How to allow incoming web traffic to a web server in an Azure VM

In the Azure Portal 1. Select Left Menu => Virtaul Machines a. Select the Virtual Machine. b. In the setting tab of virtual machine go to networking option. c. click on add Inbound port. i. In Name option enter Web or HTTP. ii. Source=>any or Internet iii.Source port ranges=>*(important!). iv.Destination =>Any v. Protocol=>any or TCP vi.Action=>Allow. vii.Destination port range: 80(web server's configured port) viii.leave other option to their default. d.Now use http://VMpublicIP/ in internet browser. (VMPublicIp is actually your Azure VM public IP. )you should be able to access the web site from Azure VM. For more details below microsoft link can be used. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal

Docker unable to pull image due to firewall

1. I was facing issue with firewall blocking docker pull. 2. I tried out but was not able to fix the issue using below logic I used link to read more about it. https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon but basically i used below statement from powershell command to setup environment variable. [Environment]::SetEnvironmentVariable(“HTTP_PROXY”, “http://usernamewithoutdomaintag:passwordwithoutspecialcharacter@proxywithportnumberinnumericformonly”, [EnvironmentVariableTarget]::Machine) [Environment]::SetEnvironmentVariable(“HTTPS_PROXY”, “http://usernamewithoutdomaintag:passwordwithoutdomaintag@proxywithportnumberinnumericformonly”, [EnvironmentVariableTarget]::Machine) you can check Windows Environment variables and you can see these values setup as environment variables. docker pull started working but the issue is my username and password is visible to all the admin users on that machine because it's direct

Steps to run Container on Azure.

Steps to run Container on Azure. 1. Go To Virtual machine option 2. Search for windows container 3. select Windows Server 2016 version 1709 (this server don't have any GUI and we have to select as it's a lot faster then it's GUI brother. 4. Create VM. Make sure select VM option using SSD. 5. Once VM created in Azure click on Connect. 6. Login using the credential provided (while creating VM). 7. Open Powershell using Command Powershell. 8. Run Docker using  command Start-Service Docker 9. see docker images already installed using command => docker images 10.pull new images. 11. run command a) docker pull microsoft/aspnet 12. run command a) docker pull microsoft/mssql-server-windows-developer 13. Install docker Compose on the container using below powershell command.            a) Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.19.0-rc3/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\dock

Interesting Interview Questions asked right now

As you all know that there is a revolution in technology front and if you are a developer who is still stuck in some legacy project and continuing developing you might get a shock If you are applying for a job interview in future. Same thing happened with me. I want to share some of my experience in what new is being asked in technology front. This may help some of you to get through the interview process. 1. Coding test.       a) nearly everybody is asking for coding test now. Asking for complex Questions. What I got surprised are below points.            a.i) Apart from problem-solving using c#. People are asking problem-solving in Javascript as well. currently what companies are looking for is c# as well as javascript expert. So, that developer can handle the movement in technology from .net to node and angular front.            a.ii) The companies are not only looking for c# problem solving they want to see you are taking care of performance when you are solving the probl

How to Practice and Improve your Sql and PLSql Skills

Everybody are you know for preparing for an interview it's very very difficult as we consider ourselves master in technology and feel like we know everything including SQL server. The catch is with the advent of NoSQL and entity framework SQL server is asked rarely in an interview but in case its asked we get a shock because we didn't practice for it. below are good websites I found very useful for practising SQL or PLSQL SQLZoo.net — Provides practice and quizzes to boost your skills SQLTeaching — If you like learn by example introductions to new languages this is the resource for you. SQLCourse — Interactive online SQL training PGExercises — For those who learn by doing, try jumping right in with these exercises SQLFiddle — Completely free-form SQL practice. Build your own schema, run queries, or practice on a sample fiddle. If you like JSFiddle this is a similar tool.