Access Docker MSSQL Container from Parallel (Mac Mini M2)

How to access Docker Contained DB from Parallel.


Docker not working with Windows 11 in Parallels. Is there any way to use MSSQL with Parallel ? Yes.

Using the Mac Network IP and container exposed port number, we can access the server (Docker) within MSQL Management Studio or in a connection strings, separated by a single comma

Where Did I get the IP ?

In System Settings – Network- Find the IP.

connectionString="Data Source=192.168.20.100,1433;Password=mssql1Ipw;User Id=sa;Initial Catalog=dolphinedb;Integrated Security=False" />

The above code is sample sql connection string. Thanks for Docker.

Mac Mini M2 for Windows Developers

Moving from Windows to Mac


I got Mac Mini M2 last Saturday, wow. I love the Machine it saved my Desk. It is the base Model , with 8GB ,250 GB SSD.

I would like to share some of my experiences With M2. It is incredibly fast.

Running Windows 11 with Parallel VM

I’am using Parallels 8.0.1 , successfully configured windows 11 and installed Microsoft Visual Studio and it work without any trouble. Parallels allow me switch between Windows Apps and Mac Apps with ease and peace.

I did find some kinda of hanging and black out while the Mac went to sleep and wake from sleep.

Following Not working for me – Parallels

MSSQL Server

Docker

Above mentioned Apps can’t run on VM. So I decided to run it from Docker container which is on the Mac.

Apple Silicon and Docker

Some of the Docker Images not working with M2, it could be designed for Intel chip. So we need Rosetta for using such Docker images.

Installing Rosetta

Rosetta is referred as translater for Intel Mac Apps. You need not worry about any thing at all. Just install and move on.

 softwareupdate --install-rosetta

For more guides on Rosetta please visit MacHow

If you are a developer looking for Work Station with Multiple Display capabilities. Don’t wait to grab the deal today.

Windows 11: Quickly open folder in command prompt (cmd)

How to quickly open a folder in terminal from the explorer in Windows 11


Sometimes we need to open a folder on terminal, and we used to do is jump to terminal and cd into it.

c:/> cd my-project 

But in Windows 11 there is special command which replaces the Windows 10’s open with terminal.

Navigate the folder in the explorer 📂 and on the top you can see the address bar. Click and type cmd and press enter, and it will open the terminal.

cool, 😎

How to solve gcc error in Golang -Windows

How to solve gcc compiler error in Golang on windows machine


On windows you may got the gcc compiler error while trying to add packages like “gorm.io/driver/sqlite” in Golang. The cause for the error is that, underlying package require the gcc C compiler which is not installed on Windows PC by default.

How to solve

We need to install the C compiler on Windows machine and also need to add the path to environment variable.

The easiest way to install the mingw package from tmd-gcc repository.

Also add the path to the bin folder as follows in environment variables.

C:\TDM-GCC-64\bin

Windows 11 VirtualBox(LDPlayer) Upgrade error

How to solve the LDPlayer error in Windows 11 upgrade


While I trying to upgrade my licensed version of Windows 10 to 11 , stuck with VirtualBox uninstall (Manually) error.

I have been using Oracle Virtual box for a while to run Fedora and other Linux distros. After I got the error I uninstall the program completely. Even though the error keep seeing on my upgrade window.

How to solve

To solve I followed these steps

  • Go to the Windows installed drive (usually C:\)
  • Find VirtualBox (usually in /Program Files)
  • Cut / Move the folder to a different location

You may need Admin permission to move the folder from OS drive

After the upgrade passed , you can put back the folder in the same location.