- 浏览: 147855 次
- 来自: 北京
-
最新评论
文章列表
MAC 下 Homebrew 默认的源是:
https://github.com/Homebrew/brew
执行以下命令 ,查看更新的详细过程:
$ brew update -verboseChecking if we need to fetch /usr/local/Homebrew...Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...Checking if we need to fetch /usr/local/Homebrew/Library ...
NSLocalizedDescription=The resource could not be loaded because the App Transpor
- 博客分类:
- SwiftUI & Kotlin
Transport security is provided in iOS 9.0 or later, and in OS X v10.11 and later. by default only https calls only allowed in apps. To turn off App Transport Security add following lines in info.plist file.
adding some key in info.plist:
Open Project target's info.plist file
my mongodb server had stoped working on my mac:
ISSUE:
Failed to unlink socket file /tmp/mongodb-27017.sock Permission denied
check the log file and found the error:
view /usr/local/var/log/mongodb/mongod.log
Check the /tmp/mongodb-27017.sock permission, owner is root?
ls -ls / ...
使用 node.js 的 express 生成器的时候,终端 express 命令无法使用,显示找不到命令:
-bash: express: command not found
原因与解决方法:
1.先确认 NPM 的安装路径(path)
npm bin -g
it show me the information : /root/node-v12.16.1-linux-x64/bin
2.设置用户变量(env)
$ vim ~/.bash_profile
add the blow info to the end o ...
install remote debugging & programming plugin "Remote Development " on local vscode editor, you can directly modify and debug the code on the server instead of vim. it has code highlighting and completion functions, just like using VScode locally.
1.install ssh-server on remote ...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Someone could be eavesdropping on you right now (man-in-the-middle attack) ...
capped collections 固定集合
支持高吞吐量操作:根据插入顺序插入和检索文档。
工作方式类似循环缓冲区:当分配给集合的空间用完,新插入的数据就会覆盖最旧的数据。
可使用 MongoDB 的 TTL 索引(生存时间)替代固定 ...
----------------------install Node.js (from AliYun)-----------------------------------
//下载Node.js安装包
>wget https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-x64.tar.xz
//解压文件
>tar xvf node-v6.9.5-linux-x64.tar.xz
//创建软链接,您就可以在任意目录下直接使用node和npm命令
>ln -s /root/node-v6.9.5-linux-x64/ ...
在 notepad++ 中进行 java 代码格式化的时候,需要安装 NppAStylec 插件,大部分只提供了 32 bits 的版本,以下附件提供了 32位, 64w位,source code。
An Artistic Style plugin for Notepad++ to Format C, C++, C++/CLI, Objective-C, C#, and Java Source Code.
How to Use NppAStyle
1, Copy NppAStyle.dll to <Notepad++ installation directory> ...
ERROR
CodeSign /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-euxtniuyxqtiroepntbfmgeupxfs/Build/Products/Debug-iphonesimulator/XXX.app (in target 'XXX' from project 'XXX') cd /Users/XXX/Documents/workspace/xcode.proj/XXX export CODESIGN_ALLOCATE=/Applications/Xcode-beta.app/Contents/Deve ...
HASH 算法 (哈希函数 / 散列函数 / 杂凑函数)
Hash 能将明文映射为较短固定长度的二进制 hash 值(原消息的“散列值 [Hash Value]”或“消息摘要 [Message Digest]”),并且不同的明文很难映射为相同的 hash 值。一个优秀的 hash 算法能够实现:
正向快速:给定明文和 hash 算法,在有限时间和有限资源内能计算出 hash 值。
逆向困难:给定 hash 值,在有限时间内很难逆推出明文。
输入敏感:原始输入信息修改一点信息,产生的 hash 值看起来应该有很大不同。
冲突避免(抗碰撞性):很难找到两端内容不同的明文, ...
I am trying to randomly spawn around the edge of a circle and not in the center of the circle? I am currently spawning with the following: Random X spawn 100 to -100 Random Y spawn 100 to -100 How do I eliminate the center red area from the equation?
That sounds more like a square than a ci ...
what is the maximum number of players UE4 can handle? I am hoping to start aims to support 24 players in UE4. My client transport messages several M per seconds per client which is syn to server. another application broadcast the udp message to every client at the same rate of tramission.
Som ...
作为Epic的角色探索的一部分,Epic从照片真实感的角色(Photorealistic Character )半身像开始开发数字人类,已经进行了许多渲染改进,以开发逼真可信的角色。
在开发这些角色的同时,对皮肤、眼睛、照明和次表面散射(Subsurface Scattering)进行了以下渲染改进。
使用双贝克曼双瓣法(Double Beckman Dual Lobe method)添加了一个新的镜面反射模型(Specular model )。
利用背散射(Backscatter )进行地下剖面的光传输(Light Transmission)。
使用边界出血颜色(Bo ...
Travelling in multoplayer Seamless and non-seamless travel
seamless travel is a non-blocking operation, while non-seamless will be a blocking call.
When a client executes a non-seamless travel, the client will disconnect from the server and then re-connect to the same server, which will have ...