Useful Git Command
GitSimple useIn this note I will summarize the simple use of Git. How can we create new repository and upload the local folders to remote? Or after we changes or add new files, how can we update the changes?
1. Create new repositoryWe should create new repository in the remote. Then we clone the remote repository into local folder. We can make changes on the folder and update the changes via
123git add .git commmit -m "changes"git push -u origin master
”-u“ is for the first update.
2. Update ch ...
inkscape安装插件textext出错的解决办法
Inkscape #Darw问题解决:是因为自己的插件版本于inkscape版本不一致造成的。
具体过程近几日要画一些带公式的矢量图,发现inkscape非常好用,尝试安装插件textext时,却出了问题,我直接在该网站下载了最新版,根据官方教程安装了inkscape0.92.4以及推荐的pdf2svg)
安装好后,开始运行该软件的依赖测试文件 ,接下来就是一连串错误。
No module named elements or inkex.elements
当我运行 “setup_win.bat”时,出现以下信息
1234567891011121314151617181920Trying to find Inkscape...Trying registry root HKLM...Trying registry root HKCU...Inkscape found as C:\Program Files\Inkscape\inkscape.exeTrying to detect Python interpreter in Inkscape installation directory.. ...
Linux服务器常见命令
Ubuntu基本命令首先是一些基本的命令,这些命令是最常用到的。
切换文件夹123cd <folder name> # 移动到某一文件夹cd <./folder name> # 移动到当前某一文件夹cd <../folder name> # 移动到上一层目录的某一文件夹
显示文件夹信息12345ls # 列出当前文件夹下所有文件、文件夹ll # 列出当前文件夹下的文件、文件夹以及权限信息ls -lrth # 按时间顺序列出当前文件夹下的所有文件、文件夹的大小、可执行权限ls <folder name> #列出某一文件夹下的文件信息pwd #显示当前文件夹
复制、删除、重命名文件1234567rm <file name> #删除某一文件rm -r <foler name> # 删除某一文件夹rm ./* #删除当前文件夹下所有文件rm ./*.sh #删除当前文件夹下以 .sh结尾的所有文件,这是一种模糊匹配的方式,非常高效cp <current file> <destination folder& ...
Windows系统MATLAB远程桌面使用时报错的问题
MATLAB #RemoteDesktopwindows自带的远程桌面系统非常好用,比一些第三方的软件比如team viewer 要好用一些,因为其实现方式不同,导致也会有一些新的问题。今天要解决的就是MATLAB远程桌面不能使用报错的问题,这是由于MATLAB激活时选择的license文件时stand alone版本,不是服务器版本。在网络上搜索之后,知道如下解决方案:
https://blog.csdn.net/wcx1293296315/article/details/88738119
需要手动修改“C:\Program Files\MATLAB\R2018b\licenses\license*.lic”文件的内容(实际位置和文件需要根据自己的MATLAB版本和位置修改),在该文件的每一行最后都加上一个“TS_OK”, 前两行如下
123456INCREMENT Aerospace_Blockset MLM 369 permanent uncounted \ VENDOR_STRING=vi=0:at=200:ae=1:lu=300:lo=IN:ei=6257193:lr=1: ...
用shadowsocks搭建自己的代理服务教程
ScientificSurf服务器的购买关于购买何种服务器,有比较多的人讨论,因为最近很多服务器涨价,以及很多服务器的ip被封,曾经大家非常推崇的搬瓦工目前已经不太能用了,我是在看了该介绍之后,按照该方法购买了hostwinds一个服务器,选择的是最便宜的版本,安装了ubuntu 16.04. 选择hostwind而不是搬瓦工等其他的,是基于
(1) 并且hostwind有24小时在线的客服,有啥问题可以直接问
(2) hostwind有针对ip被封的解决办法,我最开始填的地址在美国,导致分配的ip地址中国ping不了,在和客服说了以后更改了位置并且重启网络部署之后,ip就可以访问了。
shadowsocks的安装有了一台国外的远程服务器,接下来就可以用其作为代理了。需要下载并且安装shadowsocks,我是根据该教程,下载并且安装部署好了shadowsocks,一切都比较顺利~
本地登录本地登录需要首先有一个shadowsocks客户端,自己去github搜索下载即可,虽然原本的shadowsocks已经被删除了,但其实还有很多的备份,比如这个,下载安装windows版本之后,就可 ...
Useful python web and sources
Collection #PythonUseful package and corresponding web page
Solveset Solve the equations better than solve
scipy.interpolate.griddata interpolate the data with ununiform grid
scipy.interpolate.interp interpolate the 1d data
scipy.interpolate.interp2d interpolate the 1d data
odeintw provides a wrapper of “scipy.integrate.odeint” that allows it to handle complex and matrix differential equations. That is, it can solve equations of the form.
animatplot could let the animated plot easier and provi ...
How to uninstall ubuntu with windows/ubuntu dual system
Ubuntu #Windows https://www.jianshu.com/p/66a092caaa36?tdsourcetag=s_pctim_aiomsg
This is original from above blog.
On a dual-system computer, if you use Ubuntu’s built-in grub program as boot to boot, you cannot directly format the disk on windows where Ubuntu is located, otherwise the MBR contents on the hard disk will be wiped out and the boot will not succeed.
To uninstall Ubuntu, you need to first delete its MBR content and then format its hard disk. For different computers, there are di ...
PythonPlot (2) ThreeOrthogonalVectors
Python #PlotAll the python study code can be found in my own repository.
PurposeWhen we describe the angle of an vector in 3d space, we will use three vectors to describe them. When We have three orthogonal vectors, how can be describe them and show them via plot? This is the purpose of this note.
To plot three orthogonal vectors in a 3d space. We will use three parameters to describe them.
: the polar angle, angle between the c axis and the z axis
: the azimuthal angle
Ratio_xy : to rotate ...
Python Plot (1) A small ball on a smooth semicircle (Animated)
Python #PlotAll the python study code can be found in my own repository.
PurposeIn high school we learned how to use the energy conservation law to get the velocity for a ball slides down a 1/4 circle. However, the time needed in this process is still unknown. The period for a pendulum also uses a approximated expression. In this note, I will try to solve the time evolution for a ball slide down from a smooth semi-circle numerically via python. I will compare the oscillator approximation and ac ...
How to use COMSOL, MATLAB and COMSOL livelink with MATLAB on Server
MATLAB #COMSOL #Livelink #Server[TOC]
This note is to show the way of using MATLAB, COMSOL,COMSOL Livelink With MATLAB on our server (ubuntu). We hope that we can run them with bash code in background and after we logout or exit the server the simulations will continue. We also need to know the simulation progress from a log file. These needs can all be satisfied only if you write proper bash code.
Run COMSOL on serverIf you want to run COMSOL on server, you can use the command of the followin ...