我有两台电脑,一台台式电脑和一台笔记本电脑.现在我已经设置了我的ENV以在Dropbox链接的帮助下同步.
有没有办法在这两台计算机之间同步我的Sublime Text 3设置,包括我的所有插件,首选项文件等...如果是这样,我如何设置正确的同步?
settings synchronization package-managers sublimetext sublimetext3
我正在尝试使用flexbox将两个图像放在一列中.在这种情况下,width
div容器的小于width
图像的容器.在Chrome中,图像完全适合div容器,但它不在IE中,我不知道为什么.
div.outer {
width: 400px;
display: flex;
flex-direction: column;
justify-content: space-around;
}
div.inner {
width: 100%;
border: 1px solid red;
}
img {
width: 100%;
height: auto;
}
Run Code Online (Sandbox Code Playgroud)
<div class="outer">
<div class="inner">
<img src="http://placehold.it/480x360">
</div>
<div class="inner">
<img src="http://placehold.it/480x360">
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
https://jsfiddle.net/Yifei/16cpckqk/
这就是我在IE 11中得到的:
我正在尝试运行此代码,最后2个点产品显示错误,如标题中所示.我检查了矩阵的大小,两者都是(3,1),那么为什么在做dot产品时它会显示错误?
coordinate1 = [-7.173, -2.314, 2.811]
coordinate2 = [-5.204, -3.598, 3.323]
coordinate3 = [-3.922, -3.881, 4.044]
coordinate4 = [-2.734, -3.794, 3.085]
import numpy as np
from numpy import matrix
coordinate1i=matrix(coordinate1)
coordinate2i=matrix(coordinate2)
coordinate3i=matrix(coordinate3)
coordinate4i=matrix(coordinate4)
b0 = coordinate1i - coordinate2i
b1 = coordinate3i - coordinate2i
b2 = coordinate4i - coordinate3i
n1 = np.cross(b0, b1)
n2 = np.cross(b2, b1)
n12cross = np.cross(n1,n2)
x1= np.cross(n1,b1)/np.linalg.norm(b1)
print np.shape(x1)
print np.shape(n2)
np.asarray(x1)
np.asarray(n2)
y = np.dot(x1,n2)
x = np.dot(n1,n2)
return np.degrees(np.arctan2(y, x))
Run Code Online (Sandbox Code Playgroud) 我使用Jonathon Fernyhough的PPA 在Ubuntu 16.04上安装了Python 3.6:
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
Run Code Online (Sandbox Code Playgroud)
我使用新的文字字符串插值创建了一个字符串,但是我提供了一个无效的格式说明符.我不仅得到了预期ValueError: Invalid format specifier
,而且出乎意料ModuleNotFoundError: No module named 'apt_pkg'
.
$ python3.6
Python 3.6.0 (default, Dec 29 2016, 21:40:36)
[GCC 5.4.1 20161202] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> value = 4 * 20
>>> f'the value is {value:%A}'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Invalid format specifier
Error in …
Run Code Online (Sandbox Code Playgroud) 所以,在我的HTML中,我正在放置3个middots(垂直居中的点)
· · ·
Run Code Online (Sandbox Code Playgroud)
我想要他们的风格.我想让它们更大.我还想让第一个点变成白色并在其周围放一个蓝色圆形轮廓,同时使另外两个点变成灰色.
任何想法是否可能,如果是,如何去做?
我目前有很多这样的输入:
<input type="number" id="milliseconds">
Run Code Online (Sandbox Code Playgroud)
此输入字段用于表示以毫秒为单位的值.但是,我确实有多个数字输入,其值为dB或百分比.
<input type="number" id="decibel">
<input type="number" id="percentages">
Run Code Online (Sandbox Code Playgroud)
我想要做的是在输入字段中添加一个类型后缀,让用户知道输入代表什么样的值.像这样的东西:
(编辑此图像以显示我想要的结果,我也隐藏了输入类型的向上和向下箭头).
我试过谷歌这个,但我似乎无法找到任何关于它.有谁知道这是否可行,以及你如何能够完成这样的事情?
我已经为Red Hat linux下载并解压缩了Sublime 3软件包.我的/ downloads/sublime_text_3中有sublime_text.
当我打开./sublime_text时,我收到以下错误
Package Control
Your system's locale is set to a value that can not handle non-ASCII characters. Package Control can not properly work unless this is fixed.
On Linux, please reference your distribution's docs for information on properly setting the LANG environmental variable. As a temporary work-around, you can launch Sublime Text from the terminal with:
LANG=en_US.UTF-8 sublime_text
Run Code Online (Sandbox Code Playgroud)
我尝试更改setenv LANG en_US.UTF-8而没有任何正面效果.有没有人解决过同样的问题.
谢谢
最近我一直在使用日文文本,我发现了一个相当恼人的财产.在日语中,与英语不同,字形不会延伸到文本基线以下.这个例子应该表明我的意思:
div {
font-size: 72pt;
display: inline-block;
text-decoration: underline;
border: 1px solid red;
margin: 10px;
text-align: center;
}
Run Code Online (Sandbox Code Playgroud)
<div lang="ja">???</div>
<div lang="en">English</div>
Run Code Online (Sandbox Code Playgroud)
请注意"英语"中的"g"如何延伸到下划线之下,但日本语中的所有字符都没有.这是典型的日文文本.尽管如此,空格仍保留在下划线下方,实际上在我的屏幕上,日文文本比英文文本保留更多空间.我的问题是:
有没有办法用CSS删除这个空间,这对于更改字体和字体大小是否可靠?我可以看到至少两种可能的方法:
css ×5
html ×4
css3 ×3
sublimetext ×2
sublimetext3 ×2
arrays ×1
cjk ×1
css-shapes ×1
flexbox ×1
fonts ×1
html5 ×1
input ×1
numpy ×1
python ×1
python-3.6 ×1
python-3.x ×1
settings ×1
suffix ×1
symbols ×1
text ×1
wordpress ×1