Posts

Showing posts from March, 2021

Create Root

If you would like to use root instead of the none superuser account kali, here are the instructions to do so: Issue command “sudo su” <Enter the password for kali user account> Issue command “passwd root” <Enter new password and retype that password> At this point you can log-off and re log-in or you can just switch the user and log in as root.   Let me know if this helped you.

kali blutooth problem solve

  #systemctl enable bluetooth.service #systemctl start bluetooth.service #apt install blueman

apt-chace search

 https://linuxhint.com/apt_cache_search_packages/

View Direct Image in admin panel

  from django . db import models from . ctagory_model import Catagory from django . utils . safestring import mark_safe class Product ( models . Model ) : catagory = models . ForeignKey ( Catagory , on_delete = models . CASCADE ) title = models . CharField ( max_length = 50 ) selling_price = models . FloatField () discount_price = models . FloatField () discription = models . TextField () brand = models . CharField ( max_length = 100 ) product_image = models . ImageField ( upload_to = 'Files/productimg' ) def admin_photo ( self ) : return mark_safe ( '<img src="{}" width="100" />' . format ( self . product_image . url )) admin_photo . short_description = "Image" admin_photo . allow_tags =True def __str__ ( self ) : return self . title @admin.register ( Product ) class ProductModelAdmin ( admin . ModelAdmin ) : list_display = [ 'admin_photo' , 'id' , 'c...

vs json setup for react

  HERE is the CODE : "emmet.includeLanguages": {"javascript": "javascriptreact"}, put that inside settings .json in django

WOO COMMERCE

  https://preview.themeforest.net/item/electro-electronics-store-woocommerce-theme/full_screen_preview/15720624?_ga=2.125616783.44418007.1615987611-1994616390.1615987552

quart-2

  from  django.shortcuts  import  render from  django.views  import  View from  student.models.studentmodel  import  Studentmodel class   StudentView ( View ):      def   get ( self ,  request , * args , ** kwargs ):         student_object=Studentmodel.getmethod()          # student_object=Studentmodel.objects.first()          # student_object=Studentmodel.objects.order_by('name').last()          # student_object=Studentmodel.objects.latest('pass_date')          # student_object = Studentmodel.objects.earliest('pass_date')          print (student_object)          print ()   ...

quary -1

  from  django.db  import  models # Create your models here. class   Studentmodel ( models . Model ):     name=models.CharField( max_length = 50 )     roll=models.IntegerField( unique = True , null = False , verbose_name = 'Roll Number' , help_text = 'This is roll' )     city=models.CharField( max_length = 50 )     pass_date=models.DateTimeField( auto_now_add = True )      @ staticmethod      def   find_by_city ():          return   Studentmodel.objects.filter( city = 'pabna' )      @ staticmethod      def   notfind_by_city ():          return   Studentmodel.objects.exclude( city = 'pabna' )      @ staticmethod      def ...

domain bd

 https://my.exonhost.com/assets/images/logo.png

D WEB LINK

  Torrent: http://galaxy2gchufcb3z.onion/   duck duck go:  http://3g2upl4pq6kufc4m.onion/ https://darkwebmagazine.com/dark-web-links/dark-web-sites-links-list-2021/ https://www.thedarkweblinks.com/

class practice

  <! DOCTYPE   html > < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < title > Document </ title > </ head > < body >             < div   style = "left: 30%;top: 20%; position: absolute; font-size: xx-large;" >            < label   for = "input" > Enter number or string </ label >          < input   type = "text"   name = "input"   id = "entervalue" >          < ...

fibonacchi

  let   number = 10 let   n1 = 0 let   n2 = 1 let   nextturm let   arr =[] for  ( let   index  =  0 ;  index  <  number ;  index ++) {       nextturm = n1 + n2       n1 = n2       n2 = nextturm       arr . push ( n1 ) } console . log ( arr );

accending sorting

  let   str = 'ZYXWVUTSRQPONMLKJIHGFEDCBA' let   arr = str . split ( '' ) for  ( i = 0 ; i < arr . length ; i ++){      for  ( j = 0 ; j < arr . length ; j ++){          if ( arr [ i ]< arr [ j ]){              let   temp = arr [ i ]              arr [ i ]= arr [ j ]              arr [ j ]= temp         }            }     } str = arr . join ( '' ) console . log ( str );

CHEAT SHEET###(https://hackerthemes.com/bootstrap-cheatsheet/)

https://hackerthemes.com/bootstrap-cheatsheet/ Alerts Badges badge badge-pill badge-primary badge-secondary badge-success badge-info badge-warning badge-danger badge-light badge-dark Breadcrumbs breadcrumb Buttons btn-primary btn-secondary btn-success btn-info btn-warning btn-danger btn-light btn-dark btn-link btn-outline-primary btn-outline-secondary btn-outline-success btn-outline-info btn-outline-warning btn-outline-danger btn-outline-light btn-outline-dark Button Groups btn-group btn-group-lg btn-group-sm btn-group-vertical btn-group (nested) btn-toolbar Button Modifiers btn-lg btn-sm btn-block active button disabled button checkbox as button radio as button Cards card card-body card-title card-subtitle card-text card-link card-img-top middle image card-img-bottom card-img-overlay list-group card-header h*.card-header card-footer card-group card-deck card-columns card bg-... text-... Carousel carousel slide carousel-fade carousel-indicators carousel-caption Collapse collapse accord...