Flutter

浏览模式: 标准 | 列表 | 图文
wow, macjournal 又回来了

wow, macjournal 又回来了

Wow。。如题。MacJournal又回来了。这个软件好象是被收购还是啥的。于是乎感觉六、七年没有更新的样子。今天打开官网,居然看到这么一段:
Hello everyone! After a long and productive relationship with Mariner Software, MacJournal is returning home to be distributed here by its original developer. There are a few important details that will have to change as a result. First of all, MacJournal will be distributed exclusively on this website for now. The versions on the various App Stores will be removed as current App Store rules do not allow us to transfer them. Secondly, MacJournal will be distributed for free, just as it was when it got started almost 18 years ago. Third, there is a new version out today! You can see details for version 7 on this site and download the release now. Prior versions running on systems that can support version 7 will see an automatic update later this week. And finally, since support will also be back to a single person, support via email will be constrained. I will try to get back to everyone that writes, but there could be some delays so I thank everyone for their patience in advance. I'm excited about this next chapter of MacJournal and about the new release!
然后看了一下更新记录,平均每两三个月更新一次。快的话一个月更新2次。作者这是要拼命的节奏啊。
说实话,羡慕这些独立开发者,能够支撑得下来。
mac office 365的excel超级卡

mac office 365的excel超级卡

这个问题据说很多人遇到过。你搜索:excel 卡,大部分都应该是mac的。然而查了 下官网,也没有什么好办法,甚至官网的support都只说,你可以试一下重启进入安全模式再看看。。。
然而网上也有说法,说是更新补丁后快了很多。于是这些操作我都做了,却并没有什么改善
这时候我在想是不是因为我是升级上来的原因?我从2016-》2019-》office 365,这样升过来的,会不会有问题?于是到参考 官网资料,将office 卸载了。然后重新下载了1.5G的安装包进行安装
下载时间不长,大约半小时。。安装更快,2分钟。占掉我8G的空间。当时心里就在祈祷,你丫要是再卡,我就不鸟你了。
再次打开那个100多K,800多行,纯文本的excel文件(不含任何计算)。速度飞起来了。(果然这年头还是需要卸载重装才能解决问题)
重装大法就是好!
brew 切换为交大源

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(kettle) 在mac上无法运行

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

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

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/

VNC远程连上MAC后,安全隐私中的"允许"无法点击

VNC远程连上MAC后,安全隐私中的"允许"无法点击

如题。

在远程的mac mini上安装了proxifier,结果启动的时候需要权限,明明点了:ALLOW,但死活无效,查了下资料,好象是苹果的安全策略的问题,v2ex上也有很多人遇到,有人说,可以用键盘来按。(即使用TAB键,将光标移动到allow上,然后按空格,),但我试了。无效
很多人遇到了这个问题,大意是说,苹果为了安全,不允许远程桌面来按这些影响到系统的功能键。不过还是有人有办法,比如这个答案:
For those still struggling with this issue:

IF YOU ARE CONNECTING VIA REMOTE DESKTOP OR SCREEN SHARING or have any other mouse emulation running: It is not possible to actually click the Allow button in this mode!!

So do the following:

1、Run the installer until the location prompt
2、open System Preferences
3、Take a screenshot (CMD+SHIFT+3)
4、Open the screenshot with Preview, and select from top left to the button, and note down the coordinates
5、Then open Script Editor, and run the following line of code:
tell application "System Events" to click at {890, 460}
Use the coordinates from step 4. and make sure you don't move the Preferences window, and that no other window is overlaying the button. (It could be you need to give Script Editor Accessibility permission, but it will prompt you)
Now the button is actually clicked, and you can allow "Oracle America, Inc." to install. You might be prompted for a reboot. Then run the installer again and everything should work as expected!
因为这之前的例子,都是说virtualbox安装不上,但原理其实是一样的。
上面的意思是,你先触发这个窗口。然后利用cmd+shift+3这个系统快捷键截屏。然后用预览软件打开这个图片,在上面进行选择:从左上角往下。最后那个选择框定位点在哪里,那个坐标值就是步骤5要填写的
然后打开script editor(在实用工具里),输入tell application "System Events" to click at {890, 460},这个坐标就是用预览所看到的。
将窗口拖开,让 system preference 在最上层,点击script editor的运行。你会发现 allow已经点掉了。。。(前提是先解开锁,不然还是没有权限点)
mac finder中的cmd+x/cmd+v

mac finder中的cmd+x/cmd+v

如果直接在finder中cmd+x/cmd+v,是没有任何作用的。原来一直以为只有cmd+c/cmd+v,然后再去删除原来的。或者。。。。拖动文件

其实,cmd+c/cmd+option+v,就相当于剪切了!
这个快捷键,从Lion版开始就有了,只是之前真心不知道。
Error: Calling needs :cxx11 is disabled! There is no replacement.

Error: Calling needs :cxx11 is disabled! There is no replacement.

brew 安装个软件,没装成功却开始报这个错了:

Already up-to-date.

Error: Calling needs :cxx11 is disabled! There is no replacement.

Please report this to the chrisdeeming/legacyphp

tap: /usr/local/Homebrew/Library/Taps/chrisdeeming/homebrew-legacyphp/Formula/php@7.0.rb:41

我晕。现在都7.2了,这个源还报错?看了下官网。原来这个源不再需要:needcxx11了。OK,官网说重新brew update一下就好了。

重新brew update。恢复正常

1、https://github.com/chrisdeeming/homebrew-legacyphp/pull/4

2、https://github.com/chrisdeeming/homebrew-legacyphp/issues/2

简易重启mac 下的mamp pro

简易重启mac 下的mamp pro

简单的弄一下。因为有时候要改配置,然后打开mamp,点击重启会耗时特别长。。。。所以简单的弄了一下

#!/bin/bash

function start(){
/Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/httpd.conf" -k start
}

function stop(){
/Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/httpd.conf" -k stop
}

function restart(){
(stop)
(start)
}

function status(){
ps aux|grep httpd
}

echo "which do you want to?input the number."
echo "1. start"
echo "2. stop"
echo "3. restart"
echo "4. status"
read num

case "$num" in
[1] ) (start);;
[2] ) (stop);;
[3] ) (restart);;
[4] ) (status);;
*) echo "exit";;
esac
其实没啥难度就是这么几行代码。连路径都没有定义变量。但一般情况下够用了,复制不成功的,可以直接打开://neatstudio.com/mamp.txt
Q: Problems upgrading to macOS Mojave on MacBook Pro 2018

Q: Problems upgrading to macOS Mojave on MacBook Pro 2018

有人说重置SMC可以解决这个问题,然而我没有试。最后看LOG,居然一堆连网错误,难道要校验checksum?

再到苹果官网上看到这个:
Hi,

Had the same problem, but for me it worked by

removing all DNS search domains
untick the automatic proxy configuration


for the Wifi adapter.

good luck.
果然尝试。果然有效(最终发现还是有问题,终于。。重置NVRAM,安装完成)
节选
Next, let’s try out the basic NVRAM reset (or PRAM for older Macs) on your computer.
Follow these steps if you are not sure about how to do the NVRAM reset
Shut down your Mac
Turn it on and immediately press and hold these four keys together: Option, Command, P, and R macOS Could Not Be Installed, How-To Fix
Release the keys after about 20 seconds, during which your Mac might appear to restart
Open System Preferences and check (and adjust, if necessary) any settings that reset, like volume, display resolution, startup disk selection, or time zone
说白了,就是启动的时候 cmd+option+P+R,等20秒。放开,再重启
一切都清静 了。只是感觉这一版,没什么变动的
invalid command code ., despite escaping periods, using sed

invalid command code ., despite escaping periods, using sed

linux上面,如果替换文件中的内容,其实还是比较方便的。比如:sed -i 's/xxx/yyy/g' xxx.txt

然而同样的命令,如果放到mac下面,就会报:sed: 1: "xxx.txt": invalid command code o
到stackoverflow.com就会发现已经有人回复了:https://stackoverflow.com/questions/19456518/invalid-command-code-despite-escaping-periods-using-sed
If you are on a OS X, this probably has nothing to do with the sed command. On the OSX version of sed, the -i option expects an extension argument so your command is actually parsed as the extension argument and the file path is interpreted as the command code.

Try adding the -e argument explicitly and giving '' as argument to -i:

find ./ -type f -exec sed -i '' -e "s/192.168.20.1/new.domain.com/" {} \;
See this.
所以上面的代码就改为:sed -i '' -e 's/xxx/yyy/g' xxx.txt ,搞定
参考:
1、https://stackoverflow.com/questions/19456518/invalid-command-code-despite-escaping-periods-using-sed
2、https://stackoverflow.com/questions/7573368/in-place-edits-with-sed-on-os-x