Download failed for onlyoffice in mattermost

Problem: After installing onlyoffice (docker) and onlyoffice-plugin in mattermost. It shows Download failed when open files in mattermost. Reason: JWT_HEADER must be set to a value...

Ext4硬盘空间系统占用

在 Ubuntu 中挂载硬盘后,如果发现硬盘的部分空间显示为“系统占用”或不可用,可能是由于: Ext4 默认会预留 5% 的空间给root,以便在磁盘空间耗尽时仍可进行系统操作。这部分空间通常也会显示为“系统占用”。 解决方法 : 如果这是数据盘而非系统盘,可以使用 sudo tune2fs -m 0 /dev/sdX1

nextcloud配置smtp邮件服务器

问题描述 smtp服务器已配置ssl,支持465端口并且在其它软件中均可正常配置。但是使用nextcloud-aio-nextcloud docker,在Nextcloud中配置自建smtp服务器时总是遇到报错: “A problem occurred while sending the email. Please revise your settings....

手动创建swapfile文件以配置swap

free -h sudo swapoff /swapfile sudo rm /swapfile df -h sudo fallocate -l 64G /swapfile ls -lh /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo sw...

Build Sunshine on Ubuntu without monitor

-------------------------- ---- Prerequisites: ---- -------------------------- * The steps here only need to be performed once on your computer; after these are done than you only ...

Netatalk在Linux上面搭建时间机器备份

安装 Nettalk sudo apt install netatalk -y sudo apt install avahi-daemon -y Netatlk 3.x 只使用一个配置文件 /etc/netatalk/afp.conf : [Global] mimic model = TimeCapsule6,106 log level = default:...

ubuntu 18.04 升级至 glibc_2.28

近期在ubuntu 18.04上开发PyQt6前段时发现问题: ubuntu 18.04.6 默认的 glibc 版本位 2.27, 在运行最新的 Qt Creator 6.0.2 时会报错 $ /opt/Qt/Tools/QtCreator/bin/qtcreator 报错 /opt/Qt/Tools/QtCreator/bin/qtcreator: /l...

How to Install and Configure VNC on Ubuntu 20.04

Introduction Virtual Network Computing , or VNC, is a connection system that allows you to use your keyboard and mouse to interact with a graphical desktop environment on a remote ...

生物信息领域牛刊修仙版

在知乎上看到生物信息学领域的牛刊投稿顺序,发现一个很有趣的回答,于是转载一下作为参考: 凡人期 :这是修仙之路的起点,指的是还未开始修炼或刚刚接触修炼之道的普通研究生。 arXiv,bioRxiv 练气期 :这是修仙的基础阶段,研究生修行者开始吸收天地灵气,将其转化为体内的元力。 BMC genomics,BMC bioinformatics,BMC bio...

docker拉取镜像修改打包教程

近期因为工作需求和提高用户友好度的考量需要对软件进行Docker打包,于是总结以下简易流程。 拉取镜像,如果需要预先配置好CUDA等,可以搜索对应镜像: docker pull nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04 进入镜像,修改软件配置环境等: docker run --gpus all -it nvidi...

全新Ubuntu18.04配置DL环境,保姆级教程

获取IP地址 shell sudo apt install net-tools ifconfig 安装openssh,这样可以远程ssh连接服务器 shell sudo apt install openssh-server 安装gcc sudo apt install gcc g++ make 安装NVIDIA驱动 在https://www.nvidia.c...

chrome 解决在http协议下无法调用摄像头和麦克风的问题

问题描述: 近期在Gradio开发的时候,发现自己服务器搭建的http无法在Chrome下开启麦克风和摄像头 解决方案: 在浏览器地址栏中输入“chrome://flags/#unsafely-treat-insecure-origin-as-secure”,回车 该选项置为Enabled 在输入框中输入需要访问的地址,多个地址使用“,”隔开 然后点击右下角...

Mac更新后无法连接Apple所有服务

问题描述 Mac更新后无法使用任何Apple服务,比如无法退出Apple ID,无法进入Apple Store,但是其它网络连接均正常。 解决方案 打开/Library/Preferences/SystemConfiguration 这个文件夹 删除 除了com.apple.Boot.plist 之外 的其他文件,然后重新启动

macOS上使用Openconnect代替Cisco Anyconnect

今天Cisco Anyconnect莫名奇妙用不了,重新安装却提示安装器错误,于是找到了Openconnect这个替代品 下面说下Openconnect安装方法: 命令行模式: brew install openconnect GUI模式: brew install openconnect-gui --cask 安装完之后, 发现GUI打不开, 提示来自不被...

macos cmake-gui

之前使用命令行安装: brew install cmake 安装的是最新版,安装速度也很快,但是这个cmake是不带 GUI的,用着不习惯,就又一个命令行给卸载了。 brew uninstall cmake 然后手动安装cmake,去官网下载。 网址:https://cmake.org/download/ 下载框线这个,可能因为时间段问题,晚上下载只有几kb...

pycharm增加运行时内存

1,Help -> Find Action -> (输入 “VM”) -> (点击)“Edit Custom VM options” 2,Pycharm会在编辑器中打开适当的vmoptions文件(pycharm.vmoptions或pycharm64.options)。 3,将 -Xms 属性的值修改为你想要的结果,然后保存 -Xmx75...

python安装blender包bpy

conda create -n p37 python==3.7 wget https://github.com/TylerGubala/blenderpy/releases/download/v2.91a0/bpy-2.91a0-cp37-cp37m-manylinux2014_x86_64.whl pip install bpy-2.91a0-cp37-c...

jupyter in pycharm

When setting jupyter interpreter in pycharm, it may throw the error: jupyter URL is invalid Solution: Even without a token, use the url: http://url:port?token= Then it works

[转载] 谷歌开源计算框架JAX”

相信大家对numpy, Tensorflow, Pytorch已经极其熟悉,不过,你知道JAX吗? JAX发布之后,有网友进行了测试,发现,使用JAX,Numpy运算可以快三十多倍! 下面是使用Numpy的运行情况: import numpy as np # 使用标准numpy,运算将在CPU上执行。 x = np.random.random([5000, ...

Homomorphic Encryption

Outsourcing computation, privately Homomorphic evaluation function: Eval: f, Enc(x) -> Enc(f(x)) Fully homomorphic encryption Fully homomorphic = correctness for any efficient f...

[转载] 同态加密:实现数据的“可算不可见”

同态加密是密码学领域自1978年以来的经典难题,也是实现数据隐私计算的关键技术,在云计算、区块链、隐私计算等领域均存在着广泛的应用需求和一些可行的应用方案。 本文首先介绍同态加密的基本概念、研究进展以及标准化进展,然后对主流的乘法/加法半同态加密算法和全同态加密算法及其工程实现情况进行概述,最后对同态加密在各领域的应用场景进行分析。 一、同态加密概述 1、基...

SEAL

Microsoft SEAL Ref https://www.youtube.com/watch?v=XaYEHnaAg8M

CKKS

What’s is CKKS Plain Computation Encrypted Computation bool, int (uint 64), modulo p BGV, BFV, TFHE double (float) CKKS Approximate arithmetic For floating-point arithmetic, we kee...

Fully homomorphic encryption (FHE)

全同态加密 Fully homomorphic encryption (FHE) What’s is FHE 第一种形式:同时使用secret key加密和解密,public key用于第三方加密进行同态计算 第二种形式:asymmetric FHE,只使用public key进行加密,secret key用于解密 Efficient FHE is a gi...

libc10_cuda.so error for installing pyG

After installing PyG, here is the error: libc10_cuda.so: cannot open shared object file: No such file or directory Solution conda install pytorch==1.11.0 cudatoolkit=11.3 -c pytorc...

linux删除百万级别文件

在运行任务时,往linux的同一个文件夹中写入超过500万个文件,导致在硬盘还有空间的情况下,在该文件夹下无法继续写入文件,也无法使用ls、rm等命令。记录处理过程。 Background: physical server, about two years old, 7200-RPM SATA drives connected to a 3Ware RAID...

Automatically Sort Data in Google Sheets

Automatically Sort Data in Google Sheets Extension -> Apps script function autoSort(e) { const ss = SpreadsheetApp.getActiveSpreadsheet() const ws = ss.getSheetByName("Shee...

Check SWAP

Check SWAP used by differnt PID for i in $(cd /proc;ls | grep "^[0-9]" | awk '$0>100'); do awk '/Swap:/{a=a+$2}END{print '"$i"',a/1024"M"}' /proc/$...

xcode-select

显示“未能找到金属编译器安装的Xcode。请安装Xcode并运行Xcode.app来接受协议,或确保激活的开发者目录设为当前的Xcode安装(使用xcode-select) 解决方案: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

lc1570. Dot Product of Two Sparse Vectors

给定两个稀疏向量,计算它们的点积(数量积)。 实现类 SparseVector: SparseVector(nums) 以向量 nums 初始化对象。 dotProduct(vec) 计算此向量与 vec 的点积。 稀疏向量 是指绝大多数分量为 0 的向量。你需要 高效 地存储这个向量,并计算两个稀疏向量的点积。 进阶:当其中只有一个向量是稀疏向量时,你该如...

lc50. Pow(x, n)

Implement pow(x, n) , which calculates x raised to the power n (i.e., xn ). Example 1: Input: x = 2.00000, n = 10 Output: 1024.00000 Example 2: Input: x = 2.10000, n = 3 Output: 9....

lc76. Minimum Window Substring

Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is included in the window....

lc88. Merge Sorted Array

You are given two integer arrays nums1 and nums2 , sorted in non-decreasing order , and two integers m and n , representing the number of elements in nums1 and nums2 respectively. ...

lc621. Task Scheduler

Given a characters array tasks , representing the tasks a CPU needs to do, where each letter represents a different task. Tasks could be done in any order. Each task is done in one...

lc15. 3Sum

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j , i != k , and j != k , and nums[i] + nums[j] + nums[k] == 0 . Notice that the sol...

lc297. Serialize and Deserialize Binary Tree

Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network c...

lc314. Binary Tree Vertical Order Traversal

Given the root of a binary tree, return the vertical order traversal of its nodes' values. (i.e., from top to bottom, column by column). If two nodes are in the same row and column...

SCI高频词汇

并列递进 moreover, in addition, furthermore, besides, likewise, also, then, additionally 转折 not, yet, however, nevertheless, nonetheless, meanwhile, on the other hand, on the contrary,...

lc253. 会议室 II

给你一个会议时间安排的数组 intervals ,每个会议时间都会包括开始和结束的时间 intervals[i] = [starti, endi] ,返回 所需会议室的最小数量 。 示例 1: 输入:intervals = [[0,30],[5,10],[15,20]] 输出:2 示例 2: 输入:intervals = [[7,10],[2,4]] 输出:...

lc938. Range Sum of BST

Given the root node of a binary search tree and two integers low and high , return the sum of values of all nodes with a value in the inclusive range [low, high] . Example 1: Input...

搭建Time Machine 服务器 (转载)

本文转载自:https://zhuanlan.zhihu.com/p/31088141 本文的内容分为: Time Machine 是什么? 自建Time Machine 服务器的理由 硬件的选择 软件的部署 Mac 备份到Time Machine 服务器 从Time Machine 服务器恢复Mac Time Machine 是什么? Time Machi...

lc10. Regular Expression Matching

Given an input string s and a pattern p , implement regular expression matching with support for '.' and '*' where: '.' Matches any single character. '*' Matches zero or more of th...

lc31. Next Permutation

A permutation of an array of integers is an arrangement of its members into a sequence or linear order. For example, for arr = [1,2,3] , the following are considered permutations o...

lc56. Merge Intervals

Given an array of intervals where intervals[i] = [starti, endi] , merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals...

lc125. Valid Palindrome

A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alp...

lc238. Product of Array Except Self

Given an integer array nums , return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i] . The product of any prefix or suffix of...

lc415. Add Strings

Given two non-negative integers, num1 and num2 represented as string, return the sum of num1 and num2 as a string . You must solve the problem without using any built-in library fo...

lc560. Subarray Sum Equals K

Given an array of integers nums and an integer k , return the total number of continuous subarrays whose sum equals to k . Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Example...

lc301. Remove Invalid Parentheses

Given a string s that contains parentheses and letters, remove the minimum number of invalid parentheses to make the input string valid. Return all the possible results . You may r...

lc67. Add Binary

Given two binary strings a and b , return their sum as a binary string . Example 1: Input: a = "11", b = "1" Output: "100" Example 2: Input: a = "...

lc273. Integer to English Words

Convert a non-negative integer num to its English words representation. Example 1: Input: num = 123 Output: "One Hundred Twenty Three" Example 2: Input: num = 12345 Outpu...

lc973. K Closest Points to Origin

Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k , return the k closest points to the origin (0, 0) . The distance between t...

lc680. Valid Palindrome II

Given a string s , return true if the s can be palindrome after deleting at most one character from it . Example 1: Input: s = "aba" Output: true Example 2: Input: s = &q...

lc953. Verifying an Alien Dictionary

In an alien language, surprisingly, they also use English lowercase letters, but possibly in a different order . The order of the alphabet is some permutation of lowercase letters....

lc1249. Minimum Remove to Make Valid Parentheses

Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')' , in any positions ) so that the resulting par...

剑指 Offer 09. 用两个栈实现队列

用两个栈实现一个队列。队列的声明如下,请实现它的两个函数 appendTail 和 deleteHead ,分别完成在队列尾部插入整数和在队列头部删除整数的功能。(若队列中没有元素,deleteHead 操作返回 -1 ) 示例 1: 输入: ["CQueue","appendTail","deleteHea...

lc155.Min Stack

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() initializes the stack object. void push(i...

ER Diagram Notation

ER diagram Notation: Chen Notation Crow’s Foot Notation UML Class Diagram Notation

Install kernel for jupyter notebook

Avticate your environment,check for package ipykernel python -m ipykernel --version If it’s not installed: python -m pip install ipykernel Add kernel to Jupyter notebook python -m ...

Install Slurm in Ubuntu

Install sudo apt install slurm-wlm slurm-wlm-doc -y Modify config rm /etc/slurm-llnl/slurm.conf vi /etc/slurm-llnl/slurm.conf Example of config # slurm.conf file generated by confi...

i4.genetic algorithm and evolutionary algorithm

Q. What are genetic algorithm and evolutionary algorithm? Genetic algorithm (GA) is a sub-class of evolutionary algorithm (EA). There are 3 implementation of EAs: GA, evolution str...

安装Python导致VNC黑屏解决方案

问题在于VNCServer使用Python编写,所以受到系统Python版本影响。 解决方案: $ cd $HOME $ vim .bashrc 找到如下语句: export PATH="/home/user/anaconda2/bin:$PATH" 并修改为,并保存退出。 export PATH="$PATH:/home/us...

i3.different types of machine learning

Q. What Are the Different Types of Machine Learning? Supervised learning A model makes predictions or decisions based on past or labeled data. Labeled data refers to sets of data t...

lc2.Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order , and each of their nodes contains a single digit. Add the t...

How to set autocomplete in Ubuntu

Mofidy bash.bashrc sudo vi /etc/bash.bashrc Find those code in the file #enable bash completion in interactive shells #if ! shopt -oq posix; then # if [-f /usr/share/bash-completio...

Miniserve, an elegant file server

Install You can find it at here: https://github.com/svenstaro/miniserve/releases Usage miniserve --help miniserve 0.4.1 Sven-Hendrik Haase <svenstaro@gmail.com>, Boastful Squ...

Publish python package on Anaconda

Install Conda Packaging Tool conda install conda-build anaconda-client File Structure - home/ - my_package/ - my_package/ - package_lib/ - setup.py - README.md - run_test.py - buil...