V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  yazoox  ›  全部回复第 42 页 / 共 58 页
回复总数  1144
1 ... 38  39  40  41  42  43  44  45  46  47 ... 58  
@Aalen 什么是“答辩秘书”?不懂,求解惑......
@DefoliationM 你这个^M 在命令行里面怎么输入的。是 shift+6 和 shift+m 么? vim 能够输入这个特殊字符,在命令行里好像输入不了。
@chzhx 不好意思。是我上面打错了。我输入的是:%s/^M//g 提示找找不到 pattern.
@laike9m 这样的工作怎么找?关键字?
尤其是,五险一金怎么办?还是直接折算成钱?
@shoujiaxin 没有雷电接口,两台电脑,都只有 type-c 的接口。
2020-05-27 17:43:45 +08:00
回复了 llj5935 创建的主题 iPhone iPhone 256G 用完了,直接 DFU 刷成新机,不走 iCloud,现在巨流畅
@paradoxs
@sephinh

为什么你们用 google photo ?没有容量限制么?
@shoujiaxin
@strongcoder

看了一下,是那个 migration assistant 吧。好用可能是好用,可是 old sys 里面的垃圾也全都过来了......
@qoo2019 @Themyth @lurenn @strongcoder
我两台 mac 的 macosx 版本不一样,也可以直接迁移么?
2020-05-25 12:16:31 +08:00
回复了 hysys32 创建的主题 Apple 从开发角度上来讲 感觉 Win 和 Mac 系统差距越来越小了~
@morethansean 触控做的不如 trackpad 只是一方面,不能设定 /没有 三指拖放,是很大的硬伤啊!
2020-05-24 07:22:24 +08:00
回复了 arobota 创建的主题 程序员 作为资深 md 工程师,安利一个高颜值的文档神器
md 工程师?专业写文档?
2020-05-23 19:50:40 +08:00
回复了 clockOS 创建的主题 程序员 《入栈》献给失业季的程序员们
你们太有才了。羡慕啊……
2020-05-23 19:21:37 +08:00
回复了 hysys32 创建的主题 Apple 从开发角度上来讲 感觉 Win 和 Mac 系统差距越来越小了~
但是,win 的本本,没有 macbookpro 的触摸板好用啊!
这个真的是硬伤!
2020-05-23 12:46:29 +08:00
回复了 yazoox 创建的主题 问与答 selenium-standalone 安装时,无法下载 chromedriver,怎么办?
Resolved the issue.

用的 v2xx 的代理,本地有一个 v2xx 客户端,打开 HTTP 代理,全局模式。
去 IE 里面查看网络设置,发现端口不是 v2xx 的 1080,而是 1081 (所以前面一直失败)
于是,windows command line 环境变量设置

set HTTPS_PROXY=http://127.0.0.1:1081
set HTTP_PROXY=http://127.0.0.1:1081

然后,再运行 selenium-standalone install 就能够成功下载安装各个 drivers 了。

打扰大家了。

谢谢!
2020-05-23 12:05:38 +08:00
回复了 yazoox 创建的主题 问与答 selenium-standalone 安装时,无法下载 chromedriver,怎么办?
尝试使用
```
selenium-standalone install --version=3.141 --baseURL=<http>://npm.taobao.org/mirrors/selenium
selenium-standalone install --drivers.chrome.version=2.43 --drivers.chrome.baseURL=<https>://npm.taobao.org/mirrors/chromedriver
```

指定 mirror 安装,可是报错提示,还是
```
Error: Could not download <https>://chromedriver.storage.googleapis.com/2.43/chromedriver_win32.zip: Error: tunneling socket could not be established, cause=write EPROTO 16132:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:
```
2020-05-23 10:27:36 +08:00
回复了 yazoox 创建的主题 问与答 selenium-standalone 安装时,无法下载 chromedriver,怎么办?
@wwqgtxx
试了一下 环境变量

set http_proxy=socks5://127.0.0.1:1080
set https_proxy=socks5://127.0.0.1:1080

或者
.npmrc 设置
http-proxy=socks5://127.0.0.1:1080
https-proxy=socks5://127.0.0.1:1080

均不行。报错类似
```
Error: Could not download chromedriver_win32.zip: Error: tunneling socket could not be established, cause=socket hang up
```

但我使用
```
curl <https:>//chromedriver.storage.googleapis.com/2.43/chromedriver_win32.zip -O
```

能够成功下载(通过代理)

p.s. V2EX 不让我输入外链地址。
2020-05-23 09:50:49 +08:00
回复了 yazoox 创建的主题 问与答 selenium-standalone 安装时,无法下载 chromedriver,怎么办?
@seki 这个手工下载没有用吧。就算手工下载了,拷贝到目标目录,也不能完成 selenium 的安装啊?

@icyluna 我的.npmrc 里面,已经设置了
`registry=https://registry.npm.taobao.org/`

但这个安装,好像和 npm 没有关系吧?是直接调用的 selenium 的 script/cmd

@wwqgtxx 兄弟,我试着按你的方法设置。
```
set http_proxy=http://127.0.0.1:1080
set https_proxy=https://127.0.0.1:1080
```

我本地 v2r**的 client 已经打开,监听的就是 127.0.0.1:1080 。已经用 chrome 确认 v2r**正常工作了。

但是还是不成功呢,报错如下:

```
Error: Could not download https://chromedriver.storage.googleapis.com/2.43/chromedriver_win32.zip: Error: tunneling socket could not be established, cause=Client network socket disconnected before secure TLS connection was established
```
@huiyifyj 你说的这个更强化版的是啥?
@Jrue0011 @xiadong1994 就是大纲 /outline
好吧,一直没有发现,file explorer 下面还有这么多。

不过,这个 outline 只能摆放在这个位置么?能否移动到界面的右侧去啊?
关注一下。
不过,挺好奇的,为什么 js 的 build 速度反而比 ts 要慢?
2020-05-21 09:12:20 +08:00
回复了 yazoox 创建的主题 JavaScript Jest 写 unit test,如何 mock 同一个文件中被调用的函数?
@ufo22940268 兄弟,没有这么简单吧。你这是 test 代码和 prod 代码在同一文件内么?
xxx.js
```javascript
function a() {
//调用了其它 modules/files 里面的类或者函数
}

function b() {
a();
}
```


xxx.test.js
```
import {a, b} from "./xxx.js";


a = jest.fn();
```
这里是会报错的,"can't assign to a because it is not a variable".
1 ... 38  39  40  41  42  43  44  45  46  47 ... 58  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1134 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 18:26 · PVG 02:26 · LAX 11:26 · JFK 14:26
Developed with CodeLauncher
♥ Do have faith in what you're doing.