Library/Application\ Support/Google/AndroidStudio4.1

mac上Android Studio重装了新版之后提示/Users/mengfanyong/Library/Application\ Support/Google/AndroidStudio4.1无法访问。

那就是没权限呗。有两种解决方案:

(1)sudo /Applications/Android\ Studio.app/Contents/MacOS/studio

用以上命令直接用管理员身份启动,但这样很麻烦。

(2)另一种是直接解决这个文件夹权限的问题:

cd /Users/mengfanyong/Library/Application\ Support/Google 
mkdir AndroidStudio4.1
sudo chmod -R 775 /Users/mengfanyong/Library/Application\ Support/Google/AndroidStudio4.1

很奇怪Android Studio为什么不调起管理员权限请求,把这个目录创建一下。希望下个版本能修复。

vue中使用fingerprintjs生成终端id

安装组件:

npm i @fingerprintjs/fingerprintjs -S
# or
yarn add @fingerprintjs/fingerprintjs -S

创建一个async的methord:

async asyncCall() {
      // We recommend to call `load` at application startup.
      const fp = await FingerprintJS.load()

      // The FingerprintJS agent is ready.
      // Get a visitor identifier when you'd like to.
      const result = await fp.get()

      // This is the visitor identifier:
      const visitorId = result.visitorId

      console.log(visitorId)
      return visitorId
    }

在业务代码中使用:

this.asyncCall().then(res => {
            const terminalId = res
            that.$api
              .Login({
                employeeNumber: that.formLogin.employeeNumber,
                password: that.formLogin.password,
                terminalId: terminalId,
                terminalType: that.formLogin.terminalType
              })
              .then(() => {
              // 登录成功后的操作
               
              })
          })

弃坑墨刀,转用Pencil Project

用了两年的企业版墨刀,今年决定不续费了,太贵了,不好意思让公司掏钱买。

看了下,在墨刀上也攒了不少项目了。这算是这两年的钱没有白掏,至少比之前见不到任何项目痕迹要好得多。

但是如何留存项目过程的设计文档,如何更好地进行版本管理,如何更好地同步团队的开发进度,多模块交叉开发,始终是一个问题,不希望过多的精力放在需求管理上,但放得太粗了,没有一个特别紧密配合默契的团队是很难进行的好的。

暂时用Pencil Project,然后基于它想办法来实现在线同步。

给银行刷单

某著名咖啡刷单伪造业绩,至今也没有倒闭,正如某大银行几年前在农村给人开设pos机,刷单,一个转账记录一块钱,一个月能刷200,这笔零花钱在农村不算少了。

我知道这是银行为了伪造业绩,尽管这样的几块钱的连续转入转出是很容易识别的,但没有谁去做这样的事情。

看了富国银行的纪录片,这家银行大量的虚假帐户,和对客户超收的各种费用,可以用无所不用其极来说。

某银行显然还没到这个地步,另一个银行也只是刚刚开始劝说用户为了配额开设一个没啥用的外币帐户。

这个故事还在继续。