hongyangqin / hynote Goto Github PK
View Code? Open in Web Editor NEWHyNote 个人笔记
HyNote 个人笔记
使用$\text$
\usepackage{amsmath}
$1123123\text{中文}321123$
[没编号]使用titlesec等设置对应标题样式;
[目录项]设置目录深度:\setcounter{tocdepth}{5}。
运行Deep MNIST for Experts的代码,在最后进行测试的时候
print("test accuracy %g"%accuracy.eval(feed_dict={
x: mnist.test.images, y_: mnist.test.labels, keep_prob: 1.0}))
出现以下错误
ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[10000,32,28,28]
[[Node: Conv2D = Conv2D[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/gpu:0"](Reshape, Variable/read)]]
显存不够导致,分批测试
batch_size = 50
batch_num = int(mnist.test.num_examples / batch_size)
test_accuracy = 0
for i in range(batch_num):
batch = mnist.test.next_batch(batch_size)
test_accuracy += accuracy.eval(feed_dict={x: batch[0],
y_: batch[1],
keep_prob: 1.0})
test_accuracy /= batch_num
print("test accuracy %g"%test_accuracy)
导入以下reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cme_here]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cme_here\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\cmd_here]
"Icon"="cmd.exe"
@="在此处打开命令窗口"
[HKEY_CLASSES_ROOT\Directory\shell\cmd_here\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\cmd_here]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\cmd_here\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cme_here]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cme_here\command]
@="cmd.exe /s /k pushd \"%V\""
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,snakes}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[scale=2]
\tikzstyle{ann} = [draw=none,fill=none,right]
\matrix[nodes={draw, ultra thick, fill=blue!20},
row sep=0.3cm,column sep=0.5cm] {
\node[draw=none,fill=none] {Plain node}; &
\node[rectangle] {Rectangle}; &
\node[circle] {Circle};\\
\node[ellipse] {Ellipse};&
\node[circle split] {Circle \nodepart{lower} split};&
\node[forbidden sign,text width=4em, text centered]
{Forbidden sign};\\
\node[diamond] {Diamond};&
\node[cross out] {Cross out};&
\node[strike out] {Strike out};\\
\node[regular polygon,regular polygon sides=5] {$n=5$};&
\node[regular polygon,regular polygon sides=7] {$n=7$};&
\node[regular polygon,regular polygon sides=9] {$n=9$};&
\node[ann]{Regular polygon};\\
\node[star,star points=4] {$p=4$};&
\node[star,star points=7,star point ratio=0.8] {$p=7$};&
\node[star,star points=10] {$p=9$};&
\node[ann]{Star};\\
};
\end{tikzpicture}
\end{document}
excel的加载项搞事情,把界面上的加载项选项那个关掉即可。
电脑能获取到ipv6地址,也能ping通 ipv6地址,但是不能ping ipv6地址,也不能打开ipv6网站
netsh interface ipv6 reset
netsh interface 6to4 set state disable
netsh interface isatap set state disable
netsh interface teredo set state disable
在尝试 fully_connected_feed.py 代码时,提示以下错误
urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>
下载数据集失败,手动下载数据集,并把数据集放在指定目录下即可
数据集存放的目录:
default=os.path.join(os.getenv('TEST_TMPDIR', '.'),
'tensorflow/mnist/input_data'),
数据集文件:
t10k-images-idx3-ubyte.gz
t10k-labels-idx1-ubyte.gz
train-images-idx3-ubyte.gz
train-labels-idx1-ubyte.gz
\bm
与 'hyperref' 冲突在hyperref
宏包后面加
\pdfstringdefDisableCommands{\let\bm\@firstofone}
syms x;
y = taylor(tanh(x), x, 'ExpansionPoint', 0, 'Order', 8)
subs
执行y = taylor(tanh(x));
subs(y, x, '1')
% subs(公式,符号,值)
eval
执行x = 1;%对应变量赋值
ans = eval(y);%执行
javascript:require(["function-widget-1:share/util/service/createLinkShare.js"]).prototype.makePrivatePassword=function(){return prompt("老D的自定义百度网盘提取码","laod")}
windows下直接添加/删除程序那里删除是没用的,因为它会弹出一个窗口,让你选择安装程序。
选择虚拟机的重新安装VMTool,然后安装的过程中,选择删除即可。
开机启动某些程序的时候,总是出现UAC的提示窗口,很是麻烦,希望不提示这个窗口,让程序直接运行
创建计划任务
允许按需运行
如果任务运行超过以下时间则停止运行
如果此任务已经运行
选择并行运行新实例
创建快捷方式,对象位置输入以下命令
schtasks /run /TN "所创建的计划任务的名字"
设置快捷方式属性(右键图标->属性)
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{gbsn}%gbsn是字体
...
\end{CJK}
\end{document}
plot(x ,y,'b.--');hold on;
plot(x , y,'g.--');
legend('line1','line2');
xlabel('x');
ylabel('y');
% plot(横坐标, 纵坐标,点样式);
% hold on;继续在同一个图画
% legend 依次表示每个线
% xlabel/ylabel 横/纵坐标
配置好路由使其能够连接网络,WAN口能够获取全球单播IPv6地址。
ip6tables
和kmod-ipt-nat6
。opkg update
opkg install ip6tables
opkg install kmod-ipt-nat6
tracert ipv6.google.com
tracert结果的第一跳就是你目前的网关,记下后面的IPv6地址,假设是2001:250:3000:3cc2::1
uci set network.lan.ip6addr=fc00:100:100:1::1/64
uci commit
uci set dhcp.lan.dhcpv6=server
uci set dhcp.lan.ra=server
uci set dhcp.lan.ra_management=1
uci set dhcp.lan.ra_default=1
uci commit
echo ip6tables -t nat -A POSTROUTING -o $(uci get network.wan.ifname) -j MASQUERADE>/etc/firewall.user
echo '#!/bin/sh'>/etc/hotplug.d/iface/90-ipv6
echo '[ "$ACTION" = ifup ] || exit 0'>>/etc/hotplug.d/iface/90-ipv6
echo 'route -A inet6 add default gw 2001:250:3000:3cc2::1'>>/etc/hotplug.d/iface/90-ipv6
chmod 777 /etc/hotplug.d/iface/90-ipv6
reboot
\usepackage{ulem}
\emph{text}
\uline{Single underline}
\uuline{Double underline}
\uwave {Wavy underline}
\sout{Line through text}
% 数学公式
% cancel 宏包。置顶 mathmode
注意ulem与一些其他包冲突,如cite,为了同时使用这两个包,可以把\cite命令卸载ulem的命令里面,如\sout{xx \mbox{\cite{Lu2009}}}。
\mbox{普通文本}
\usepackage{amsmath}
\text{普通文本}
windows 设置微软账户之后,电脑开机就需要登录,并且,还不能删除账户。因此不能通过删除账户,变成本地账户的方法来进行免登录,只能通过自动登录的方式。
control userpasswords2
要使用本计算机,用户必须输入用户名和密码(E)
按照官网教程配置完之后,提示以下内容,VS2015运行库,cudnn64_5.dll,以及驱动等等均已经完成,但是还是出现以下错误。
>>> import tensorflow
Traceback (most recent call last):
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 985, in _gcd_import
File "<frozen importlib._bootstrap>", line 968, in _find_and_load
File "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 577, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 938, in create_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 985, in _gcd_import
File "<frozen importlib._bootstrap>", line 968, in _find_and_load
File "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 577, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 938, in create_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\qhy28\AppData\Local\conda\conda\envs\tf\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
提示缺少DLL,而DLL已经都存在了,可能是DLL版本不对,实验发现tensorflow 1.3.0
需要的应该是cudnn64_6.dll
而不是cudnn64_5.dll
;
网上大部分评论都是6改成5就完成,被误导了很久
ImportError: No module named '_pywrap_tensorflow' (MSVCP140.dll is present)
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
下的
System.IsPinnedToNameSpaceTree
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000000
使用minipage
minipage块之间空一行,会变成两列排列
图片的排列顺序
从上到下的输入对应从左到右,从上到下的输出
\usepackage{subfigure,graphicx,float}
\begin{figure}[H]
\centering
\begin{minipage}{0.3\textwidth}
\includegraphics[width = \textwidth]{assets/section4_3ad6f.png}
\end{minipage}
\begin{minipage}{0.3\textwidth}
\includegraphics[width = \textwidth]{assets/section4_cbd44.png}
\end{minipage}
\begin{minipage}{0.3\textwidth}
\includegraphics[width = \textwidth]{assets/section4_ba90e.png}
\end{minipage}
%空一行,表示两列
\begin{minipage}{0.3\textwidth}
\includegraphics[width = \textwidth]{assets/section4_f7744.png}
\end{minipage}
\begin{minipage}{0.3\textwidth}
\includegraphics[width = \textwidth]{assets/section4_5036d.png}
\end{minipage}
\begin{minipage}{0.3\textwidth}
\includegraphics[width = \textwidth]{assets/section4_05910.png}
\end{minipage}
\end{figure}
\usepackage{graphicx,float,subcaption}
\begin{figure}[H]
\centering
\begin{subfigure}[H]{0.3\textwidth}
\includegraphics[width=\textwidth]{assets/DynamicTimeWarping(DTW)_bb83b.png}
\caption{A}
\end{subfigure}
\begin{subfigure}[H]{0.3\textwidth}
\includegraphics[width=\textwidth]{assets/DynamicTimeWarping(DTW)_bb83b.png}
\caption{B}
\end{subfigure}
%空一行表示第二行
\begin{subfigure}[H]{0.3\textwidth}
\includegraphics[width=\textwidth]{assets/DynamicTimeWarping(DTW)_bb83b.png}
\caption{C}
\end{subfigure}
\begin{subfigure}[H]{0.3\textwidth}
\includegraphics[width=\textwidth]{assets/DynamicTimeWarping(DTW)_bb83b.png}
\caption{D}
\end{subfigure}
\begin{subfigure}[H]{0.3\textwidth}
\includegraphics[width=\textwidth]{assets/DynamicTimeWarping(DTW)_bb83b.png}
\caption{E}
\end{subfigure}
\begin{subfigure}[H]{0.3\textwidth}
\includegraphics[width=\textwidth]{assets/DynamicTimeWarping(DTW)_bb83b.png}
\caption{F}
\end{subfigure}
\end{figure}
在尝试 fully_connected_feed.py 的代码时,提示以下错误
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: /tmp\tensorflow
有两个方法
/tmp
改成其他,比如..
或者.
Windows 7 : python mnist_with_summaries.py, having the error
\begin{tikzpicture}[shorten >=1pt,node distance=2cm,>=stealth',thick]
\node[state] (1) {$1$};
\node[state,draw=none] (d1) [left of=1] {};
\draw [->] (1) to[loop above] node[auto] {} (1);
\draw [->] (1) to[bend left] node[auto] {} (d1);
\end{tikzpicture}
空白节点会占用部分空间,使用坐标代替节点
\begin{tikzpicture}[shorten >=1pt,node distance=2cm,>=stealth',thick]
\node[state] (1) {$1$};
\coordinate[left of=1] (d1);
\draw [->] (1) to[loop above] node[auto] {} (1);
\draw [->] (1) to[bend left] node[auto] {} (d1);
\end{tikzpicture}
使用++从上次位置偏移(其实还是确定坐标)
\node[state] (1) {$1$};
\draw [->] (1) to[loop above] node[auto] {} (1);
\draw [->] (1) to[bend left] node[auto] {} ++ (-2,0);
使用Tikz
画
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{automata}
\usetikzlibrary{arrows.meta}
\begin{tikzpicture}
[every initial by arrow/.style={double distance = 3,-Implies}]
% 设置初态的箭头为双杠箭头
\node[state,initial,initial text=] (A0) {0};%隐藏标明初态的文字
\node[state,accepting,double] (A1) [right=of A0] {1};%终态
\path [->] (A0) edge [bend left] node [above] {a,b} (A1)%连边
edge [loop above] node {a} (A0)%自环
(A1) edge [bend left] node [above] {a} (A0);
\end{tikzpicture}
% edge 中括号是edge的属性
% node 中括号是属性设置,大括号是边上的文字内容
% bend 是使得线弯曲(避免重合),其他参数查文档
PGF/TikZ资源汇总
Example: State machine
[求助中] 如何用tikz画出\Longrightarrow 双横杠形状的箭头
TikZ package
文档 pgfmanual_3.0.1a
Windows Registry Editor Version 5.00
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.jpg]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.jpeg]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.gif]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.png]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.bmp]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.tiff]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.ico]
@="PhotoViewer.FileAssoc.Tiff"
\footnotetext[1]{脚注内容} } % 中括号内的1表示脚注的编号
\footnotemark[1]
% \footnotemark[\value{footnote}]
自动编号,类似ref的
\input{}
和\include{}
两个指令\input
相当于C++中的include
语句,直接把索引的内容复制进主源文件,然后编译,可以嵌套\include
这个语句包括的文件可以选择不编译,不能签到
\begin{document}
语句前加入\includeonly{}
选择需要编译的文件.tex
文件的文件名.tex
的内容,可以看成是直接从源文件中拷贝出去,不需要什么特殊的格式管理员 运行以下命令
winsat disk
winsat disk -drive d
第一行:默认检测C盘
第二行:检测d盘
Windos 10 必须以管理员身份运行,否则运行结束之后,窗口会直接关闭。
(非管理员运行命令之后,它不会直接显示结果,而是在一个新的窗口显示结果,运行完窗口关闭)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.