Code Monkey home page Code Monkey logo

hynote's People

Contributors

hongyangqin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hynote's Issues

Tensorflow-ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[10000,32,28,28]

问题描述

运行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)

参考

ResourceExhaustedError in CNN/MNIST example (with GPU)

windows添加右键->在此处打开命令窗口

解决办法

导入以下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\""

参考

Win10小技巧:如何将在此处打开命令改为CMD或Powershell?

[Latex][Tikz]节点形状

\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}

image

Tensorflow-<urlopen error [WinError 10060]

问题描述

在尝试 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

参考

mnist_softmax.py has "TimeoutError: [WinError 10060]" ...

[Matlab]Taylor 展开并求值

解决办法

taylor 展开

syms x;
y = taylor(tanh(x), x, 'ExpansionPoint', 0, 'Order', 8)

方法1:subs执行

y = taylor(tanh(x));
subs(y, x, '1')
% subs(公式,符号,值)

方法2:eval执行

x = 1;%对应变量赋值
ans = eval(y);%执行

自定义百度网盘分享密码 提取码

步骤

  1. 在浏览器中打开百度云盘,选中需要分享的文件,然后点击分享按钮;
  2. 点击分享按钮后会弹出一个模态框,先不管它,按 F12 打开开发者工具,切换至控制台(Console),将以下代码复制粘贴到控制台,然后回车;
javascript:require(["function-widget-1:share/util/service/createLinkShare.js"]).prototype.makePrivatePassword=function(){return prompt("老D的自定义百度网盘提取码","laod")}
  1. 然后点击创建私密链接,会弹出输入框,这时输入你想自定义的密码即可!

参考

LAOD-自定义百度网盘分享密码 提取码

VMWare虚拟机卸载VMTools

问题描述

windows下直接添加/删除程序那里删除是没用的,因为它会弹出一个窗口,让你选择安装程序。

解决办法

选择虚拟机的重新安装VMTool,然后安装的过程中,选择删除即可。

Run UAC restricted programs without the UAC prompt

问题描述

开机启动某些程序的时候,总是出现UAC的提示窗口,很是麻烦,希望不提示这个窗口,让程序直接运行

解决办法

  1. 创建计划任务

    1. 常规选项卡->使用最高权限运行
    2. 操作选项卡->选择需要执行的文件
    3. 设置选项卡
      • 勾选允许按需运行
      • 不勾选如果任务运行超过以下时间则停止运行
      • 如果此任务已经运行选择并行运行新实例
  2. 创建快捷方式,对象位置输入以下命令

    schtasks /run /TN "所创建的计划任务的名字"
    
  3. 设置快捷方式属性(右键图标->属性)

    1. 常规选项卡->设置快捷方式的名字
    2. 快捷方式选项卡
      • 运行方式->最小化(这样启动的时候就不会闪过一个窗口)
      • 更改图标->选择被启动的程序

参考

Run UAC restricted programs without the UAC prompt

EZPad 6 Pro

提升性能

解锁第4核心

  1. 外接键盘
  2. 开机按delete进入BIOS
  3. Advanced->Thermal->Enter->Generic Device->ENTER->Disabled

改显存大小

  1. 外接键盘
  2. 开机按delete进入BIOS
  3. Chipset->Uncore Configuration
    1. DVMT Pre-Allocated->512M
    2. DVMT Total Gfx Mem->MAX

虚拟内存

参考

image

[Latex]设置背景色,文本高亮

解决办法

\usepackage{xcolor}
\newcommand\hl{\bgroup\markoverwith
  {\textcolor[rgb]{0.9, 0.99, 0.9}{\rule[-.5ex]{2pt}{2.5ex}}}\ULon}

123\hl{高亮???}321

image

[matlab]画图 plot

解决办法

plot(x ,y,'b.--');hold on;
plot(x , y,'g.--');
legend('line1','line2');    
xlabel('x');
ylabel('y');
% plot(横坐标, 纵坐标,点样式);
% hold on;继续在同一个图画
% legend 依次表示每个线
% xlabel/ylabel 横/纵坐标

参考

Matlab绘图-很详细,很全面

在OpenWrt上配置原生IPv6 NAT

准备

配置好路由使其能够连接网络,WAN口能够获取全球单播IPv6地址。

步骤

  1. 安装ip6tableskmod-ipt-nat6
opkg update
opkg install ip6tables
opkg install kmod-ipt-nat6
  1. 获取网关
    使用网线直接连接电脑,确定能使用ipv6后,CMD窗口运行以下命令:
tracert ipv6.google.com

tracert结果的第一跳就是你目前的网关,记下后面的IPv6地址,假设是2001:250:3000:3cc2::1

  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

参考

在OpenWrt上配置原生IPv6 NAT

[Latex] 下划线,双下划线,波浪线,删除线,斜删除线

解决办法

\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}}}。

参考

LaTex中输入下划线,双下划线,波浪线,删除线,斜删除线的方法

windows 10 自动登录而不用输入密码

问题描述

windows 设置微软账户之后,电脑开机就需要登录,并且,还不能删除账户。因此不能通过删除账户,变成本地账户的方法来进行免登录,只能通过自动登录的方式。

步骤

  1. 命令行或运行control userpasswords2

  1. 取消勾选要使用本计算机,用户必须输入用户名和密码(E)

  1. 设置自动登录的用户

参考

易宝典: 如何实现 Windows 7/Vista 开机自动登录而不用输入密码

Tensorflow-ImportError: No module named '_pywrap_tensorflow_internal'

问题描述

按照官网教程配置完之后,提示以下内容,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.

环境

  • Anaconda3-4.4.0-Windows-x86_64
  • Python 3.5.4
  • tensorflow 1.3.0

解决办法

提示缺少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)

[Latex]修改array的行间距

解决办法

\renewcommand{\arraystretch}{0.5}

例子

修改前:

\begin{equation}
      S \begin{array}{c} + \\ \Rightarrow \end{array} \alpha
\end{equation}

snipaste_2017-09-09_13-10-31

修改后:

\begin{equation}
      \renewcommand{\arraystretch}{0.5}
      S \begin{array}{c} + \\ \Rightarrow \end{array} \alpha
    \end{equation}

snipaste_2017-09-09_13-10-32

文本去重复行

notepad++正则表达式+替换 实现重复行替换功能

  1. notepad++ 替换处勾选正则表达式和匹配新行

  2. 去重复

(^.+?$)(.*)^\1$
\1\2

如何删除此电脑中的onedrive图标?win10删除onedrive导航栏图标的方法!

解决办法

  1. 修改以下位置的注册表的值为0
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
下的
System.IsPinnedToNameSpaceTree
  1. 重启
  • 对应.reg文件
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000000

参考

如何删除此电脑中的onedrive图标?win10删除onedrive导航栏图标的方法!

Todo

  • Google App Script 往github上传图片

Latex-6张图片,3行2列排放

解决办法

  • 使用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}

参考

latex学习技巧:四张图片两两并列排放

Tensorflow-tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: /tmp\tensorflow

问题描述

在尝试 fully_connected_feed.py 的代码时,提示以下错误

tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: /tmp\tensorflow

解决办法

有两个方法

  1. 手动创建 C:/tmp 文件夹
  2. 把代码中的/tmp改成其他,比如..或者.
    • '.'表示当前目录
    • '..'表示当前父目录

参考

Windows 7 : python mnist_with_summaries.py, having the error

Windows10 扩展屏幕

把手机、平板等当作扩展屏幕来使用。

使用Windows自带的投影功能

以两台电脑为例

步骤

  1. 接收端打开接收
    1. 点击屏幕右下角->所有设置

2. 系统->投影到这台电脑

3. 当你同意时,Windows 电脑和手机可以投影到这台电脑,这一项不要选择始终关闭

  1. 发送端连接
    1. 右下角->连接

2. 选择连接

3. 接收端同意

[Latex][Tikz] 隐藏节点, 坐标

解决办法

\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}

image

空白节点会占用部分空间,使用坐标代替节点

\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}

image

使用++从上次位置偏移(其实还是确定坐标)

\node[state] (1) {$1$};
        \draw [->] (1) to[loop above] node[auto] {} (1);
        \draw [->] (1) to[bend left] node[auto] {} ++ (-2,0);

image

参考

TikZ Automata Make An Arrow To Nowhere

[Latex]画有限状态机

解决办法

使用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]找回传统Windows照片查看器

解决办法

  1. 导入一下reg
  2. 设置默认看图软件
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"

参考

不会看图了?找回传统Windows照片查看器

Latex-多源文件

解决办法

  • 使用\input{}\include{}两个指令
  • \input 相当于C++中的include语句,直接把索引的内容复制进主源文件,然后编译,可以嵌套
  • \include 这个语句包括的文件可以选择不编译,不能签到
    • 通过在\begin{document} 语句前加入\includeonly{}选择需要编译的文件
  • 花括号内为对应的.tex文件的文件名
  • 被包含的.tex的内容,可以看成是直接从源文件中拷贝出去,不需要什么特殊的格式

[Latex]\left \{ 只要左半边,右半边不要

问题描述

只要左括号,右边不需要

解决办法

使用\right .

 \begin{equation}
    g(i,j) = \min  \left \{
    ...
    \right .
  \end{equation}
  \begin{equation}
    g(i,j) = \min  \left \{
    \begin{array}{l}
      g(i - 1,j) + d(i,j)\\
      g(i - 1, j - 1) + d(i , j)\\
      g(i.j - 1) + d(i , j)
    \end{array}
    \right .
  \end{equation}

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.