代码改变世界

将Maven和Plugins的源都改为阿里镜像的Setting.xml

2020-12-08 16:10 by 假面Wilson, 434 阅读, 0 推荐, 收藏, 编辑
摘要:<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the 阅读全文

keystore和truststore

2020-11-17 18:10 by 假面Wilson, 2711 阅读, 0 推荐, 收藏, 编辑
摘要:首先需要理解什么是keystore,keystore是存储密钥(公钥、私钥)的容器。 keystore和truststore其本质都是keystore。只不过二者盛放的密钥所有者不同而已,对于keystore一般存储自己的私钥和公钥,而truststore则用来存储自己信任的对象的公钥。举例说明: 阅读全文

在salesforce中如何获取Security Token

2020-05-04 20:31 by 假面Wilson, 838 阅读, 0 推荐, 收藏, 编辑
摘要:Trailhead练习Soap API使用Soap UI时,需要Security Token才能登录,在Lightning一直找不到,后来切换到Classic才找到。现在提供一个简单粗暴的方式,快速定位到重置Token的位置:“https://[SalesforceDomainHere]/_ui/s 阅读全文

加密与安全:非对称加密算法 RSA 1024 公钥、秘钥、明文和密文长度

2020-02-27 01:24 by 假面Wilson, 5640 阅读, 0 推荐, 收藏, 编辑
摘要:RSA 1024 是指公钥及私钥分别是 1024bit,也就是 1024/8 = 128Bytes。 RSA 原理 RSA 算法密钥长度的选择是安全性和程序性能平衡的结果,密钥长度越长,安全性越好,加密解密所需时间越长。 1、非对称加密算法中 1024bit 密钥的强度相当于对称加密算法 80bit 阅读全文

Android studio:URI is not registered 的解决办法

2019-12-20 11:46 by 假面Wilson, 1274 阅读, 0 推荐, 收藏, 编辑
摘要:今天新导入一个android studio的工程,发现在布局文件中报URI is not registerd的错误,布局文件的命名空间变成红色的了。 解决方案: 进入 File->Settings->Languages&Frameworks->Schemas and DTDs目录下: 点击绿色的加号 阅读全文

解决support包引起的AndroidStudio编译报错

2019-12-20 11:32 by 假面Wilson, 1094 阅读, 0 推荐, 收藏, 编辑
摘要:{"kind":"error","text":"error: resource android:attr/colorError not found." {"kind":"error","text":"error: resource android:attr/font not found." * Wh 阅读全文

解决Invalid Plugin needs a valid package.json

2019-12-19 11:45 by 假面Wilson, 2062 阅读, 0 推荐, 收藏, 编辑
摘要:首先。npm install -g plugman 然后,plugman create --name [插件名字] --plugin_id [插件id] 这样会生成一个除了package.json文件的插件文件夹。 新版直接cordova plugin add 会报错 “Error: Invalid 阅读全文

Android Studio Error:Execution failed for task ':app:compileDebugJavaWithJavac' 根本解决方法

2019-12-17 11:45 by 假面Wilson, 1394 阅读, 0 推荐, 收藏, 编辑
摘要:造成这种异常的原因有很多。具体的还是要去终端编译,查看到底是什么地方出错了,然后具体问题具体分析。 终端进入项目的根目录,然后输入命令 gradlew compileDebugJavaWithJavac --stacktrace 最终定位到错误 阅读全文

Android Studio 3.0——unable to resolve dependency for cordovalib

2019-12-11 18:27 by 假面Wilson, 684 阅读, 0 推荐, 收藏, 编辑
摘要:Android Studio 3.0 更新了gradle后,项目竟然开始报错unable to resolve dependency for cordovalib...打开build.gradle看了后其中dependencies是这样写的 将compile替换成implementation即可完美 阅读全文

Request header field * is not allowed by Access-Control-Allow-Headers in preflight response问题解决

2019-11-15 18:44 by 假面Wilson, 5832 阅读, 0 推荐, 收藏, 编辑
摘要:跨域问题报错信息为:Failed to load http://192.168.30.119: Request header field language is not allowed by Access-Control-Allow-Headers in preflight response. 原因 阅读全文
上一页 1 2 3 4 5 6 7 8 ··· 48 下一页