手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表2025年02月的文章

brew 切换为交大源

 之前用中科大的,但好象中科大有缺失源,或者有时候在update的时候会卡。所以换到了 上海交大的源

一句话的命令:
 
cd "$(brew --repo)" && git remote set-url origin https://mirrors.sjtug.sjtu.edu.cn/git/brew.git && cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" && git remote set-url origin https://mirrors.sjtug.sjtu.edu.cn/git/homebrew-core.git && cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask && git remote set-url origin https://mirrors.sjtug.sjtu.edu.cn/git/homebrew-cask.git && echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.sjtug.sjtu.edu.cn/homebrew-bottles' >> ~/.bash_profile
 
说白了,就是改了:brew,brew-core,brew-cask,和brew-bottles的信息其他没啥
速度是真快了很多。
 
当然话说回来。中科大的源,说明文件是最详细的。。。。交大的,就一句话。

Pentaho data integration(kettle) 在mac上无法运行

Pentaho data integration ,从官方下载下来最新的安装包,解压之后,双击Data Integration,报安全问题,询问是否打开,同意并输入自己的开机密码。然后,等了几秒,发现没有任何反应,再次双击Data Integration,依然没有任何相应。

以为程序不兼容。但想想不应该,搜了一下,发现可能是权限的问题,说是直接运行 spoon.sh 可以运行。试了一下,确实OK。但不可能一直这样执行。继续找解决方案,最后居然是这么简单,运行一下:

XML/HTML代码
  1. sudo xattr -dr com.apple.quarantine ~/Downloads/data-integration/Data\ Integration.app  

这个问题在2017年就有人遇到了,看这里:https://edpflager.com/?p=3571,参考 一下即可。

现在,程序终于可以运行了

最后附上一堆教程:

1、https://www.staroon.dev/2018/07/18/KettleDoc-1/

 

 

我可能错怪layerstack了

 上一篇博客说了。我用vsc的ssh-remote的时候,30秒或者1分钟必断。错误信息一直就类似:

[04:30:38.608] "install" terminal command done
[04:30:38.609] Install terminal quit with output:
[04:31:18.258] SSH Resolver called for "ssh-remote+neatstudio.com", attempt 2
[04:31:18.258] SSH Resolver called for host: neatstudio.com
[04:31:18.259] Setting up SSH remote "neatstudio.com"
[04:31:18.259] Using commit id "f06011ac164ae4dc8e753a3fe7f9549844d15e35" and quality "stable" for server
[04:31:18.263] Running script with connection command: ssh -o ClearAllForwardings=true -o ConnectTimeout=15 neatstudio.com bash
[04:31:18.263] Install and start server if needed
[04:31:35.269] Connecting with SSH timed out
[04:31:35.269] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"Timeout"},"measures":{"resolveAttempts":2,"retries":1}}
[04:31:35.269] ------

重连后也是

[04:37:06.477] SSH Resolver called for "ssh-remote+neatstudio.com", attempt 12
[04:37:06.477] SSH Resolver called for host: neatstudio.com
[04:37:06.477] Setting up SSH remote "neatstudio.com"
[04:37:06.478] Using commit id "f06011ac164ae4dc8e753a3fe7f9549844d15e35" and quality "stable" for server
[04:37:06.479] Running script with connection command: ssh -o ClearAllForwardings=true -o ConnectTimeout=15 neatstudio.com bash
[04:37:06.480] Install and start server if needed
[04:37:21.515] > ssh: connect to host 123.176.103.247 port 22: Operation timed out
[04:37:21.515] Got some output, clearing connection timeout
[04:37:21.776] "install" terminal command done
[04:37:21.776] Install terminal quit with output: ssh: connect to host 123.176.103.247 port 22: Operation timed out
[04:37:21.776] Received install output: ssh: connect to host 123.176.103.247 port 22: Operation timed out
[04:37:21.777] The operation timed out
[04:37:21.777] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"OfflineError"},"measures":{"resolveAttempts":12,"retries":1}}
[04:37:21.777] ------

发了ticket给layerstack。他们测试也来没有这个问题。我开始以为是什么openfiles limit的问题。也打开到最大了。

期间调整了一下这个:echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p,因为开始有报inotify max error

直到他们给我发了一个ticket:

Thank you for your patience in this matter.

We have investigated the issue in detail and we are not able to recreate the issue from our end. We have checked the same from multiple locations and find out its working fine.

The reported issue seems to be related to your local ISP, so we suggest you to change the standard port (22) of SSH to some other non standard port like 2222 or 2244, in server and recheck the issue.

Please do have a check on our above suggestion and let us know if you still face any issues in accessing.

所以我就想了一下,直接把PORT改成了2222,2223,2244,然而仍然 失败,最后我用了一个超大端口,居然正常了

layerstack好象不支持VSC的远程编辑

如题。之前还OK的。最近是只要一使用virtual studio code的远程编辑功能。1分钟内就会被拒绝连接。

怀疑可能是被对方的网络当成UDP攻击而自动产生的屏蔽。因为之前在使用v2ray的时候,用了KCP协议,结果就被断开了,所以只能使用TCP。象这个vsc的远程编辑,理论上也是UDP的(如果是TCP这样一直握手连接着,流量会飞起来吧?)
而UDP又容易 被攻击,所以 layerstack 才会有自动屏蔽机制 ?但这个对 VSC remote太不友好了。
 
如果是这个问题,那就只能不用喽(不过我已经发了ticket,希望他们能够针对VSC的协议有调整吧)

有意思的悟饭游戏厅

这两天在闲逛的时候,突然看到有人提及了《寄生前夜》,说是今天史克威尔突然注册了什么寄生前夜吧啦吧啦 的。然后我就想起来,好象20年前,我的寄生前夜还没有打完。

寄生前夜我是在98还是99年玩的?那时候的游戏机房,PS每小时要4元(比网吧贵多了),然而我仍然坚持了一把。之所以说没打完,这个就比较尴尬了,因为BOSS在给别人存档的时候,把我的记录给清了。那个年代,PS的记录存储卡容量有限,只能存有限的几个。如果过多了就需要删除其中一个。而我的记录就是那不幸的一个。

之后过了N年,随着模拟器的发展,其实我中间有玩过一次,在PSP1000上,用PS模拟器玩了一下。但最后卡在“换第二张盘”这个问题上。这个问题,网上很多人都遇到过,后面实在玩不下去就只能放弃。

最近在听到寄生前夜后,又搜了一下。发现NS上也有模拟器了:RetroArch,居然跨平台。但mac装了还是需要外接蓝牙手柄(没有看到有keyboard的设置)。最后找到了安卓上有模拟器,网上有人推荐了两个:小鸡模拟器和悟饭游戏厅。我都装了,但刚装完,google play说,小鸡里可能有损害系统的软件,于是我在没有测试的情况就将删除了小鸡。

打开悟饭,搜索寄生前夜,直接下载包然后就能够运行了。虚拟按钮一直在屏幕上,存档也是随时,感觉又回到了20年前。玩了一会感觉这样操作还是不太爽,突然想起来5年前买小米电视的时候,还买了两个蓝牙手柄,轻松的连接上去后,完全不用设置就直接能够玩了。

最后。。。晚上测试一下,mac是不是能够连接小米的手柄,如果OK,就不需要在手机上玩了。毕竟手机分辨率好象有点糊,当然最关键的是,屏幕太小了,毕竟20年也是在大电视上玩的,现在不能到退啊。

-----

悟饭的菜单点了好几下,发现有不少游戏都支持,还有DC的,看来现在手机的机能都不错啊,至少在玩大部分游戏的时候都没有感觉到卡顿。如果念旧的,可以试一下,因为我发现上面居然还有:重装机兵。或者你也可以玩玩当年FC的金庸群侠传。也是一个经典的游戏