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 = ran...

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://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

Javascript Related Links

 1- Solar system https://terminalroot.com/solar-system-made-with-html-css-and-pure-javascript/ https://github.com/kdaimiel/solar-system Practice challenges https://www.jschallenger.com/

Flutter Drawing App Code

Pubspec environment :    sdk :  ">=2.1.0 <3.0.0" dependencies :    flutter :      sdk :  flutter    cupertino_icons :  ^0.1.2 dev_dependencies :    flutter_test :      sdk :  flutter    flutter_colorpicker :  any flutter :    uses-material-design :  true ..........................................................................................   import   'dart:io' ; import   'dart:ui' ; import   'package:flutter/material.dart' ; import   'package:flutter_colorpicker/flutter_colorpicker.dart' ; class   Draw   extends   StatefulWidget  {    @override    _DrawState   createState () =>  _DrawState (); } class   _DrawState   extends   State < Draw > {    Color  selectedColor =  Colors .black;    Color  pick...

Flutter Basic Commands

 To create a project: use  flutter create --org com.webtechnologyworld jeetracker   com.webtechnologyworld ------------------------------this is company name  jeetracker----------------------this is project name This will create an app com.webtechnolgyworld.jeetracker cd jeetracker this command changes directory to jeetracker folder flutter run  this command runs the flutter app

Flutter Chart Links

Image
 https://stackoverflow.com/questions/51879810/how-to-add-a-legend-on-pie-chart-from-flutter-charts-flutter height: 220.0 , width: 220.0 , child:Stack( children: <Widget>[ Positioned( top: 50.0 , right: 10.0 , child: new Container( height: 180 , width: 280 , color:Colors.white, child: new charts.PieChart(seriesList, animate: animate, defaultRenderer: new charts.ArcRendererConfig( arcRendererDecorators: [ new charts.ArcLabelDecorator( //labelPadding:-25, labelPosition: charts.ArcLabelPosition.outside), ], arcWidth: 30 , ) ) ) ), ...