- 博客(17)
- 收藏
- 关注
转载 MacOS 禁用 ReportCrash
经常在 Activity Monitor 里发现 ReportCrash 进程占用了大量的 CPU禁用 ReportCrashlaunchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plistsudo launchctl unload -w /System/Library/Lau...
2017-04-24 09:20:00
523
转载 SCE 个人备份
@import url(/css/cuteeditor.css);@import url(http://i.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);Makefile---------------------------------...
2017-04-05 20:16:00
125
转载 [个人备份]mpi.py: 将文件分发到各机器执行
#!/usr/bin/env python3# e.g. : mpirun -ppn 4 -f hostfile mpi.py -t iimportmpi4py.MPIasmpiimporttimeimportsysimportgetoptimportdatetimeimportsubprocessimportos...
2017-02-27 14:51:00
155
转载 Python GUI - tkinter
#!/usr/bin/env python3fromtkinterimport*defshow(): globalb1 b1['text'] ="Hello World!"root = Tk()root.title('Hello')frame = Frame(root, width=200, height=150)...
2017-02-27 14:49:00
108
转载 LaTeX插入图片 - 后缀名问题
如果图片名称中有空格或者多个点号,需要使用grffile包usepackage{grffile}@import url(http://i.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);转载于:https://www.cnblogs.co...
2017-02-27 14:48:00
385
转载 在Macbook Pro中打开多个Mathematica
在终端中执行:open -n /Applications/Mathematica.app或者open -n -a Mathematica@import url(http://i.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);...
2017-02-27 14:47:00
230
转载 Macbook 投影仪连接问题
参考https://support.apple.com/zh-cn/HT5019 适用于视频控件的快速按键命令: 按 Command-F1 可在视频镜像和扩展桌面间切换 按 Command-F2 可检测显示器 ...
2017-02-27 14:47:00
381
转载 获取 NIntegrate 中的误差
f[x_] := 1 + Sin[x];exact = Integrate[f[x], {x, 0, 2 Pi}];res = NIntegrate[f[x], {x, 0, 2 Pi}, IntegrationMonitor :> ((error = Through[#1@"Error"]) &)]@import url(http://i.cn...
2017-02-27 14:46:00
181
转载 Python使用Chilkat -- Password included
importurllib2importurllibimportsysimportreimportmathimportosimporttimeimportstringimportdatetimeimportioimportlxmlimportxmlrpclibimportPILimportmimetypes...
2017-02-27 14:45:00
218
转载 Mathematica: Still Run After Quit[]
全局修改:SetOptions[$FrontEnd,"ClearEvaluationQueueOnKernelQuit"->False]只修改当前会话:SetOptions[$FrontEndSession,"ClearEvaluationQueueOnKernelQuit"->False]@import url(http://i.cnblogs.com/...
2017-02-27 14:45:00
136
转载 Qgraf + MaTeX + tikz-feynman 自动生产Feynman图
以前一直是用FeynArts来生成Feynman图,后来接触到Qgraf,也曾试图在Mathematica中调用GraphPlot来输出Feynman图,但都不是很理想,最近发现了两个Package:MaTex 和 tikz-feynman,尝试发现自动生成出来的Feynman图还可以!MaTex:https://github.com/szhorvat/MaTeXti...
2017-02-27 14:44:00
850
转载 mpi4py busy idle 问题 + 变通方法
在测试mpi4py发现,对于一些已经执行完所有代码的process,其CPU的占用仍为100%,比如测试代码(文件test.py):#!/usr/bin/env python3importmpi4py.MPIasmpiimporttimecomm = mpi.COMM_WORLDrank = comm.Get_rank()if...
2017-02-27 14:42:00
186
转载 MPI Launch Manually
在Master主机上,执行命令:mpirun -disable-hostname-propagation -launcher manual -np 3 -host a,b,c /bin/hostnameMaster主机进入等待,并输出以下信息:HYDRA_LAUNCH: /usr/bin/hydra_pmi_proxy --control-port [hostname]:...
2017-02-27 14:41:00
172
转载 mutex lock in bash
在PBS提交任务的时候,经常遇到多个process在同一个节点上运行的情况,此时可能会遇到一些问题,比如同时多次拷贝同一文件等,此时希望能在bash用使用mutex来解决,在bash FAQ里面有如下解决方法:#!/bin/bashlockdir=/tmp/myscript.lockwhiletrue;do ifmkdir"$lockdir" then...
2017-02-27 14:40:00
85
转载 macOS Sierra 注册机无法运行的解决方法
转载自:http://www.sdifenzhou.com/archives/8136/?replytocom=20471&jdfwkey=vx8k731.右键注册机(这里以“Keygen.app”)显示包内容-Contents-MacOS;2.打开应用程序-实用工具-终端;3.将第一步文件夹内的“patcher”拖入第二步的终端中,再将应用程序中需要破解的程序继续拖...
2017-02-27 14:40:00
1252
转载 ParInt 修改 MPI max node数目
文件 src/main/mpi-misc.h#define PI_MAX_WORKERS 64改成#define PI_MAX_WORKERS 1024@import url(http://i.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cute...
2017-02-27 14:36:00
132
转载 Handle Error in Makefile
转载自:http://www2.ipp.mpg.de/~dpc/gmake/make_47.htmlErrors in CommandsAfter each shell command returns,makelooks at its exit status. If the command completed successfully, the next comma...
2017-02-27 14:20:00
108
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人