The Hottest Porn Videos Online mecum.porn Quality porns videos Free indian porn tube videos indiansexmovies.mobi hot indian women watch online

Category: Notes

28 Posts

概率论期末总结
随机事件的概率 判断题: 两个事件的独立性 填空题 古典概率的计算 事件关系的表述 全概率、贝叶斯公式的运用
Matlab Notes
Data Type 在Matlab中,单精度浮点类型不能与整数类型进行算术运算 a=uint32(120);b=single(22.809);c=73.226; //错误使用 .*,整数只能与相同类的整数或标量双精度值组合使用 ab=a*b;
thumbnail
AiiDA及aiida-quantumespresso基本介绍及使用
作者:PorYoung 原始文档:https://static.poryoung.cn/aiida/ 发布时间:2020年10月 Basic Tutorial and Simple Examples for Aiida Official Websites Aiida Miniconda aiida-quantumespresso docs Aiida installation MiniConda Installation Download Miniconda Miniconda installation pakage https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/ Install conda # the `xxx` is version code bash ./Miniconda-[xxx].sh Reboot shell Conda usage 配置清华(其他)源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes 创建虚拟环境 conda create -n [env_name] python=[python version] 激活/进入虚拟环境 conda activate [env_name] 退出虚拟环境 conda deactivate Install Aiida Use conda to install Aiida(Optional)(见aiida文档) conda create -n aiida -c conda-forge python=3.7 aiida-core aiida-core.services pip conda activate aiida conda deactivate Use conda to create Python vitrual env,and use pipto install aiida(Optional) # for example conda create -n aiida python=3.8 conda activate aiida pip install aiida-core Prerequisites Installation # you may try `apt update` in advance # if generate `update error message`, try change a open source mirror sudo apt-get install postgresql postgresql-server-dev-all postgresql-client sudo apt-get install rabbitmq-server sudo rabbitmqctl status Setting up the installation # For maximum customizability, one can use verdi setup verdi quicksetup success info like this Success: created new profile `a`. Info: migrating the database.…
VSCode配置Fortran环境
VsCode Fortran Settings Modern Fortran [Miguel Carvajal] Fortran highlight plugin. C/C++ for Visual Studio Code [Microsoft] C/C++ debug plugin also supports fortran. Toggle debug and modify the example launch.json and tasks.json files. Makefile Tools [Microsoft, optional] You can set make command in tasks.json or use this plugin to compile make project. // vscode settings { "makefile.launchConfigurations": [ { "cwd": "/home/user/project", "binaryPath": "/home/user/project/bin/program", "binaryArgs": [] } ] } Here is a example for C/C++ make project. Directory tree - bin -- main - src -- main.cpp -- module.cpp -- header.h - Makefile Makefile LINK = @echo linking $@ && g++ GCC = @echo compiling $@ && g++ GC = @echo compiling $@ && gcc AR = @echo generating static library $@ && ar crv FLAGS = -g -DDEBUG -W -Wall -fPIC GCCFLAGS = DEFINES = HEADER = -I./ LIBS = LINKFLAGS = BIN_PATH = bin SRC = $(wildcard src/*.cpp) INCLUDES = include TARGET = main OBJECT = $(SRC:%.cpp=%.o) .SUFFIXES: .cpp .c .cpp.o: $(GCC) -c $(HEADER) $(FLAGS) $(GCCFLAGS) -fpermissive -o $@ #html#lt; .c.o: $(GC) -c $(HEADER) $(FLAGS)…
FRP内网穿透 + Nginx代理 + 获取Real IP
FRP内网穿透 + Nginx代理 + 获取真实IP 以下仅列出关键配置 外网服务端配置 如果指定反代ip,frp会无法获取host,导致502错误,采用以下方案可以解决,但需要开放fprs https端口,并指定解析$host的DNS服务器 Nginx server { listen 443 ssl; server_name your.domain; ssl_certificate ./your.domain.cer; ssl_certificate_key ./your.domain.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; server_tokens off; location / { resolver 223.5.5.5; # dns resolver server proxy_ssl_server_name on; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass https://$host:6443; # frps https port, set $host insead of ip error_page 502 http://$host:6080/$request_uri; } } 参考issue #888: nginx https反向代理到frp https 报 502错误 参考frpc+frps+nginx反代+解析后端真实IP+双向https自动跳转+https证书配置的纯享版配置文件及操作指导 FRP Server # [common] is integral section [common] # A literal address or host name for IPv6 must be enclosed # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80" bind_addr = 0.0.0.0 bind_port = 5443 # udp port used for kcp protocol, it can be same with 'bind_port' # if not set, kcp is disabled in frps kcp_bind_port = 5443 # if you want to configure or reload frps by dashboard, dashboard_port must be set dashboard_port = 8090 # dashboard assets directory(only for debug mode) dashboard_user = admin dashboard_pwd = admin # assets_dir = ./static vhost_http_port = 6080 vhost_https_port =…
thumbnail
如何给阿里云ecs开启ipv6访问
原文地址 阿里云centos镜像默认是把ipv6给注释掉的,如果要开启的话需要使用IPv4 和 IPv6 双栈网络,这需要申请公测资格,不是很方便,这里我们使用tunnelbroker提供的ipv6隧道来使其支持ipv6访问。而学校电信是可以直接获取ipv6地址的,如果阿里云服务器可以ipv6访问的话就可以免费上网了。 1.开启ipv6访问 vi /etc/sysctl.conf 把下面这3行内容注释去掉,把1替换成0,变成下图 然后使用 sysctl -p 重新载入,就可以支持ipv6了。 2.通过tunnelbroker获得ipv6地址 进入https://tunnelbroker.net 注册账号,密码要复杂的不然通不过。 登陆后选择左下角的create regular tunnel, 输入自己ecs的ip地址 注意ecs不能禁ping,否则tunnelbroker拒绝建立隧道。 最下方点击create tunnel就建好了。 进入tunnel配置页面 注意:此处地址必须改为阿里云的内网地址,否则外网无法连接,我的内网是172.19开头的 复制在bash下直接运行就可以了。 使用ifconfig查看网络配置,可以看到ipv6地址已经有了 此时应该已经配置成功了,可以使用 wget -6 www.bobobk.com 测试下,如果成功返回内容那么就是ipv6配置成功了 3.修改nginx配置文件使网站可通过ipv6访问 注:如果使用cloudflare cdn的话是默认可以ipv6访问的 打开nginx配置文件,监听ipv6是[::]:80,[::]:443,修改后如下图 至此,所有配置都完成了。 总结 本文从注册tunnelbroker开启ipv6开始,一步一步设置阿里云ecs 的centos7服务器,最终实现linux网系统对ipv6网站的访问。
thumbnail
MySql分类统计
表1记录物品信息,表2记录物品收藏信息,通过联表查询获取物品信息和物品收藏数。 ...
SSE:服务器发送事件
传统的网页都是浏览器向服务器“查询”数据,但是很多场合,最有效的方式是服务器向浏览器“发送”数据。比如,每当收到新的电子邮件,服务器就向浏览器发送一个“通知”,这要比浏览器按时向服务器查询(polling)更有效率,服务器发送事件(Server-Sent Events,简称SSE)就是为了解决这个问题,而提出的一种新API,部署在EventSource对象上。目前,除了IE,其他主流浏览器都支持。 转:SSE:服务器发送事件,使用长链接进行通讯
Ofiice中输入LaTeX公式
Ofiice已经支持直接输入LaTex公式,相应的设置方法可以参考官方文档。 同时介绍一个LaTex公式工具:识别手写和图片中的公式,转换成LaTex代码的神器Mathpix。 ...