- Ubuntu 22.10
- Django 4.1.2
- Gunicorn 20.1.0
- Nginx 1.22.0 (Ubuntu)
- PostgreSQL 14.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Information Retrieval metrics | |
Useful Resources: | |
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt | |
http://www.nii.ac.jp/TechReports/05-014E.pdf | |
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf | |
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf | |
Learning to Rank for Information Retrieval (Tie-Yan Liu) | |
""" | |
import numpy as np |
- CentOS 8
- Django 4.1.2
- PostgreSQL 14.6
- https://techviewleo.com/install-postgresql-on-rocky-linux-almalinux-centos/
- https://computingforgeeks.com/how-to-install-postgresql-14-centos-rhel-7/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTML | |
<input type="text" name="value" class="form-control" placeholder="Enter Value" required="" id="value"> | |
# JQuery | |
$(function () { | |
$('body').on('keyup','input#value',function(){ | |
let current_value = $(this).val().replace(/\D/g, ''); | |
// Add a '.' after every 3 digits from the end of the input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mailer := gomail.NewMessage() | |
dialer := gomail.NewDialer( | |
SmtpHost, | |
SmtpPort, | |
Username, | |
Password, | |
) | |
mailer.SetHeader("From", "Sender Name" + "<" + "Sender Email" + ">") | |
mailer.SetHeader("To", "Reveiver Email") |