Posts

Beautiful Soup implementation

 import pandas as pd import requests from bs4 import BeautifulSoup import random import mysql.connector #url = "http://somewebsite?page=1" # Create a list in a range of 10-20 mydb = mysql.connector.connect(     host="localhost",     user="root",     password="password",     database="dbname" ) my_list = [*range(1, 4, 1)] for iurl in my_list:   #  ("Enabling special output mode (% s)") % (currentValue)     url = "http://somewebsite?page={}".format(iurl) # Create a list in a range of 10-20 #my_list = [*range(1, 300, 1)] # Print the list  #   print(url)     user_agents = [       "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0",       "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0",       "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"       ]     random_user_agent = random.choice(user_agents)     headers = {         'User-A

integrating bootstrap 5 in laravel

 1- download and paste dist folder inside public folder of laravel project

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://reqres.in/#support-heading",                "text":"To keep ReqRes free, contributions towards server costs are appreciated!"          

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/