This site uses cookies to deliver our services. By using this site, you acknowledge that you have read and understand our Cookie and Privacy policy. Your use of Kontext website is subject to this policy. Allow Cookies and Dismiss

Tag - lite-log

lite-log

Set AttachDbFilename as Relative Path in .NET Core

149 views   0 comments last modified about 3 months ago

.NET Framework, you can use |DataDirectory| to configure connection string when connecting to SQL Server database file via attach mode: AttachDbFilename=|DataDirectory|\dbname.mdf In .NET Core, you cannot directly set SQL Server Express connec...

View detail
lite-log

Instantiate a Service in ConfigureServices Method in .NET Core

31 views   0 comments last modified about 3 months ago

.NET Core is built in with dependency injection. Usually method ConfigureServices in Startup class is used to register services in the container. The signature of the method looks like the following: public void ConfigureServices(IServiceC...

View detail
lite-log

ASP.NET Core 2.1 Error - 'Cyrillic' is not a supported encoding name

143 views   0 comments last modified about 3 months ago

After upgrading to ASP.NET Core 2.1 (.NET Core SDK 2.1.301), you may encounter the following error about encoding: System.ArgumentException    HResult=0x80070057    Message='Cyrillic' is not a supported encoding name. For information on defining a custo...

View detail
lite-log

Data Analysis Expressions to Create Static Tables in PowerBI

74 views   0 comments last modified about 4 months ago

DATATABLE StaticTable1 = DATATABLE("IntCol",INTEGER,"StringCol",STRING,{{1,"User1"},{2,"User2"}}) The above expression generates a table with two columns IntCol and StringCol : ...

View detail
lite-log

Script to Start Multiple Virtual Machines

153 views   0 comments last modified about 5 months ago

The following is a PowerShell code snippet to start multiple VMs through vmplayer.exe: # Navigate to the folder where vmplayer.exe file exists cd "D:\Program Files (x86)\VM Player" # Start the VMs by using vmplayer...

View detail
lite-log

Resolve Hadoop RemoteException - Name node is in safe mode

93 views   0 comments last modified about 5 months ago

In Safe Mode, the HDFS cluster is read-only. After completion of block replication maintenance activity, the name node leaves safe mode automatically. If you try to delete files in safe mode, the following exception may raise: org.apache.hadoop.ipc.RemoteException(org.apac...

View detail
lite-log

A New SQL Server Client Tool - SQL Operations Studio

70 views   0 comments last modified about 5 months ago

If you have used Visual Studio Code, you probably will also enjoy a new client tool SQL Operations Studio. Currently it is available as preview version and not formally released yet. What is SQL Operations Studio SQL Operations Studio is a data management tool that enables working w...

View detail
lite-log

Install Big Data Tools (Spark, Zeppelin, Hadoop) in Windows for Learning and Practice

575 views   2 comments last modified about 5 months ago

Are you a Windows/.NET developer and willing to learn big data concepts and tools in your Windows? If yes, you can follow the links below to install them in your PC. The installations are usually easier to do in Linux/UNIX but they are not difficult to implement in Windows either since the...

View detail
lite-log

Mount Windows Shared Folder in SUSE or other Linux VMware Guest

82 views   0 comments last modified about 6 months ago

This page summarizes the steps to mount a windows shared folder in a Linux VMware guest machine, i.e. SUSE. Setup shared folder In Virtual Machine Settings windows, add shared folder. ...

View detail
lite-log

Calculate Time Difference between Dates in PowerShell

253 views   0 comments last modified about 7 months ago

PowerShell provides a number of cmdlets to retrieve current date time and to create time span object. Calculate time difference - CmdLets $current = Get-Date $end= Get-Date $diff= New-TimeSpan -Start $current -End $end Write-Output "Time difference is: $di...

View detail