Posts

hosting local domain

 C:\Windows\System32\drivers\etc\hosts open hosts file in notepad change like below # 127.0.0.1 brijesh.com ::1 brijesh.com 0.0.0.0 apps.corel.com 0.0.0.0 mc.corel.com 0.0.0.0 origin-mc.corel.com 0.0.0.0 iws.corel.com 127.0.0.1 www.mindjet.com 127.0.0.1 ipm.corel.com 127.0.0.1 www.r2rdownload.com 127.0.0.1 www.elephantafiles.com127.0.0.1 widgetcast.reallusion.com 127.0.0.1 da.reallusion.com 127.0.0.1 ctifiles2.reallusion.com 127.0.0.1 localhost 127.0.0.1 dotnetcoremvc.com ::1 localhost

Dotnet Core related commands

 $ dotnet --version  to check version of Dotnet SDK $ dotnet new --list  for available options with new $ dotnet new mvc creates an mvc app in the current folder $ dotnet new mvc -o  <projectname> creates mvc project under the projectname folder $ dotnet add package npgsql add the package npgsql is .NET package for PostgresSQL. $ dotnet run This command run the debug instance can be seen loacallly $ dotnet publish --configuration Release this command creates publishable folder in projectname\bin\Release\net6.0\publish\ just copy the contents of this folder to server root folder

Flutter API Calls

 Step 1: first add http package in pubspec.yaml file  Two Methods:  1-      Manually type or  2-      Command     $flutter pub add http ---------------------------------------------------------------------------------- Step 2: Import package into required dart file import 'package:http/http.dart' as http ;                       ----------------------------------------------------------        Step 3: create a function   API Response Two Types: 1-Map Type 2- List Type { "data":   {"id":2,             "email":"janet.weaver@reqres.in", "first_name":"Janet",           "last_name":"Weaver",           "avatar":"https://reqres.in/img/faces/2-image.jpg"           }, "support":{"url":"https://reqre...

PostgreSql Commands

 ---to enter from command line terminal $sudo -u postgres psql --asks for password Link: https://www.microfocus.com/documentation/idol/IDOL_12_0/MediaServer/Guides/html/English/Content/Getting_Started/Configure/_TRN_Set_up_PostgreSQL.htm https://gist.github.com/Kartones/dd3ff5ec5ea238d4c546 ---Importing databasefile.sql to created database databasename $psql -h localhost -U databaseuser -d databasename -f D:\Backup\databasefile.sql reference: https://sqlserverguides.com/postgresql-import-sql-file/ ---Export database in windows $pg_dump -U databaseuser databasename > testdbbackup.sql reference: https://www.prisma.io/dataguide/postgresql/inserting-and-modifying-data/importing-and-exporting-data-in-postgresql

Flutter related Links

 https://app.quicktype.io/

Installation of WAMP or LAMP

 Installation of WAMP is easy one click solution. Just download the  https://www.wampserver.com/en/ Installation of LAMP (Linux, Apache, MySQL, PHP) Step 1: Install Apache Apache is a free open source software which runs over 50% of the world’s web servers. To install apache, open terminal and type in these commands: sudo apt-get update sudo apt-get install apache2 1- https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu Removing Mysql 1-    dpkg -S `which mysql`  Above command shows the path of mysql command. Generally all command resides at /usr/bin/ bin is also known as binary files binary files. 1- sudo apt-get remove --purge mysql* 2- sudo apt-get autoremove 2- sudo apt-get autoclean References: https://askubuntu.com/questions/446203/is-mysql-still-running-after-uninstall-it#:~:text=Yes%2C%20it%20is%20still%20running.

CSS Related Links

 1- Tailwind CSS Blocks https://tailblocks.cc/ https://github.com/mertJF/tailblocks