Posts

Showing posts from January, 2023

Docker

Image
Docker File for Python: For creating FirstAPI  Dockerfile : FROM   python : 3.9 WORKDIR   /code COPY   ./requirement.txt   /code/requirements.txt RUN   pip   install   --no-cache-dir   --upgrade   -r   /code/requirements.txt COPY   ./app   /code/app CMD   [ "uvicorn" ,   "app.main:app" ,   "--proxy-headers" ,   "--host" ,   "0.0.0.0" ,   "--port" ,   "80" ] FROM:  to declare which package you want to import  ex: FROM package: version WORKDIR:  to declare which location your working. COPY:  copy necessary directory to workspace you created directory   File Structure: app :   it contains all the python project related things and executables. .dockerignore:  it contains all the ignore files while building the docker. requirement.txt:  it contains all the modules to be installed from python through pip. Docker build commands: Go to the app directory for build image and run: รจ   docker build -t getting-started . “. “ =>

Semantic Processing

Image
Semantic Processing - Natural Language Processing Syntactic processing - the study of grammar to understand the meaning of sentences. Semantic Processing - understanding the sentence without the need for grammar, making machines understand the intent of sentences, the meaning of ambiguous words, dealing with synonyms, detecting sarcasm, etc. Introduction to Knowledge Graphs text data is aggregated on the graph-based data structure where  entities  are related in some sense representing  nodes. Edge  represents  Semantic relation.  Different types of Knowledge graphs are as follows: 1.  WordNet:  this is a lexical database of semantic relations between words. it is developed by Princeton University     * Nouns, verbs, adjectives, and adverbs of a particular word are grouped.     * Each sense contains a glossary and example sentences.      http://wordnetweb.princeton.edu/perl/webwn 2.  ConceptNet:  This is a freely available semantic network that is designed to help computers understand

Git

Image
Git   Git is a version control system, used to collaborate on code and keep track of code changes. Pocket cheat book for git and GitHub repo: #configure Download git bash by this  Git link 1. open git bash # to generate an ssh key to secure your git repo only you can have access. enter the below command and generate with or without passPhrase then you will get the location of the stored  .Pub  file. Open the file with a notepad and copy it. 2. ssh-keygen  #paste ssh key to  github  profile. 3.  goto the setting and click SSH and GPG keys and paste. Now you are good to go. 4. goto any repo and click or create new repo going to profile, Then click on file select ssh link to repo. 5. Run the Below commands for configuration: # list configs $ git config --list  # set config $ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com 6. Clone. $ git clone ( copied ssh key)   (foldername to save) # check branch in remote or origin git branch -a #

Domain Check Tool

Image
Domain Check Tool   We all are trying to notice advertisements, messages, and links. Every day Hackers are encouraging us to do simple things and earn money by knowing our secrets by spooking on our data they are knowing our best interests without our notice. We all are eager to press every link and try our luck for the first time and we will leave as bad luck if fraud again falls for the same old mistake so first whenever you see a link, Please check and research whether is it worth or genuine one then if you are desperate only click if it's necessary. Today I'm going to tell about How to know and Research Links. Example:1) If you got a Link like http://xyz.com that means it's an unsecured domain or link be careful. Example:2) If you got a Link like https://xyz.com copy the link before clicking then go to https://www.domaintools.com/ and go to the Research tab as shown below. Now paste the link as shown below and search. You have to verify that you are not a robot then y