<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[天边那朵云的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/github_38108899</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; github_38108899]]></copyright><item><title><![CDATA[docker虚拟机ping不通外网]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/109097470</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/109097470</guid><author>github_38108899</author><pubDate>Thu, 15 Oct 2020 15:06:11 +0800</pubDate><description><![CDATA[1. docker-machine ssh default (default 你启动的虚拟机的名字，默认是default)

2. sudo vi resolv.conf 内容更改为 servername10.0.2.3
]]></description><category></category></item><item><title><![CDATA[Flutter  Channel stable, 0.0.0-unknown, on Microsoft Windows [Version 10.0.18362.1016]]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/108355178</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/108355178</guid><author>github_38108899</author><pubDate>Wed, 02 Sep 2020 09:01:21 +0800</pubDate><description><![CDATA[重装以及 到flutter的安装目录执行


git clean -xfd
git stash save --keep-index
git stash drop
git pull
flutter doctor

以上操作都不起作用



最后尝试 flutter upgrade --force 解决问题

参考: https://github.com/flutter/flutter/issues/25220


...]]></description><category></category></item><item><title><![CDATA[Last few GCs  VUE项目编译过程中内存不足]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/106493594</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/106493594</guid><author>github_38108899</author><pubDate>Tue, 02 Jun 2020 14:21:01 +0800</pubDate><description><![CDATA[解决方案：请自行查看npm increase-memory-limit

特殊情况：在使用vue-video-player组件时编译过程中也无缘无故的报内存不足，调整分配的内存大小后依旧崩溃，

   测试后发现 从github vue-video-player上拷贝的代码通过shift+tab缩进 到空格&lt;= 6时编译会崩溃

   

解决方案：1.通过格式化格式文档 2. 删除缩进后重新调整到正常位置


...]]></description><category></category></item><item><title><![CDATA[Unexpected token in JSON at position 0]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/106383038</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/106383038</guid><author>github_38108899</author><pubDate>Wed, 27 May 2020 15:36:50 +0800</pubDate><description><![CDATA[Unexpected token &lt; in JSON at position 0

Vue mode: "hash"模式下 在index.html中导入的部分第三方js会触发 该错误

解决方法 更改为 mode: "history"


]]></description><category></category></item><item><title><![CDATA[THREEJS----修复spotLight.toJSON()后 通过ObjectLoader加载target朝向问题]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/105242233</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/105242233</guid><author>github_38108899</author><pubDate>Wed, 01 Apr 2020 11:46:52 +0800</pubDate><description><![CDATA[37220 Object.toJSON 添加判断 object是否有target属性 如果有 通过direction属性记录 target的位置

38931行 添加根据direction(记录spotLight.target的位置) 修改spotLight.target的朝向
...]]></description><category></category></item><item><title><![CDATA[js超大数字加法运算]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/102785603</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/102785603</guid><author>github_38108899</author><pubDate>Mon, 28 Oct 2019 17:59:51 +0800</pubDate><description><![CDATA[function splitNum(num, segment = 8) {
		num = num.toLocaleString();
		let res = [];
		while (num.length &gt;= segment) {
			res.push(num.slice(-segment))
			num = num.slice(0, num.length - segme...]]></description><category></category></item><item><title><![CDATA[js模板解析]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/102739623</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/102739623</guid><author>github_38108899</author><pubDate>Fri, 25 Oct 2019 11:21:39 +0800</pubDate><description><![CDATA[function template(tpl, data, translation = true) {
	return tpl.replace(/{.*?}/g, function (str) {

		let res = data[str.replace(/[{}]/g, '')];

		if (res !== undefined &amp;&amp; translation) {
			re...]]></description><category></category></item><item><title><![CDATA[electron调用Flash]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/102572077</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/102572077</guid><author>github_38108899</author><pubDate>Tue, 15 Oct 2019 18:19:18 +0800</pubDate><description><![CDATA[首先 按需要下载32位或者64位的pepflashplayer.dll

将pepflashplayer.dll放到项目中

然后在main.js中注册


// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron'...]]></description><category></category></item><item><title><![CDATA[threejs给物体添加选中效果]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/101216248</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/101216248</guid><author>github_38108899</author><pubDate>Mon, 23 Sep 2019 17:47:17 +0800</pubDate><description><![CDATA[const scene = new THREE.Scene(); 
const sceneHelpers = new THREE.Scene();
const helper = new THREE.BoxHelper();

renderer.autoClear = false;


sceneHelpers.add( helper ); //不要将helper直接添加到scene中, 有可能导...]]></description><category></category></item><item><title><![CDATA[threejs 贴图深拷贝]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/100914979</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/100914979</guid><author>github_38108899</author><pubDate>Tue, 17 Sep 2019 08:50:00 +0800</pubDate><description><![CDATA[newObject.material.map = oldObject.material.map.clone();

newObject.material.map.needsUpdate = true;
]]></description><category></category></item><item><title><![CDATA[js+css创建折叠按钮]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/100575315</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/100575315</guid><author>github_38108899</author><pubDate>Fri, 06 Sep 2019 10:57:22 +0800</pubDate><description><![CDATA[&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
	&lt;meta charset="UTF-8"&gt;
	&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
	&lt;meta http-equiv="X-UA-Compat...]]></description><category></category></item><item><title><![CDATA[threejs获取物体的坐标的最大值和最小]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/100562220</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/100562220</guid><author>github_38108899</author><pubDate>Thu, 05 Sep 2019 17:19:29 +0800</pubDate><description><![CDATA[let box = new THREE.Box（）；

box.setObjectFrom( '物体'）途中标红色的方法都是等效的



然后查看 box.max 和box.min属性；

2D的类似


]]></description><category></category></item><item><title><![CDATA[threejs 动画转json和json转动画]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/100143290</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/100143290</guid><author>github_38108899</author><pubDate>Thu, 29 Aug 2019 17:49:21 +0800</pubDate><description><![CDATA[将一个AnimationClip 对象直接通过JSON.stringify( )转换成json对象 后 再用json对象重建AnimationClip是重建不了的

正确做法是 通过THREE.AnimationClip.toJSON( '动画剪辑对象' )生成 json对象;

加载json 再使用 THREE.AnimationClip.parse ( JSON.parse ( json ...]]></description><category></category></item><item><title><![CDATA[threejs深拷贝]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/100135791</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/100135791</guid><author>github_38108899</author><pubDate>Thu, 29 Aug 2019 13:21:58 +0800</pubDate><description><![CDATA[this.deepClone = (object) =&gt;{

			let target = null;
			if(object.type === 'Mesh' || object.type === 'Sprite'){
				target =  new THREE.Mesh(object.geometry.clone(false), object.material.clon...]]></description><category></category></item><item><title><![CDATA[Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/99739034</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/99739034</guid><author>github_38108899</author><pubDate>Mon, 19 Aug 2019 17:15:05 +0800</pubDate><description><![CDATA[有一次虚拟机地址更改过后链接老是被拒绝

因为别的配置都没动过可以确定不是虚拟机的问题

最终发现没指定登录用户 git remote add origin 192.168.1.247:gl.git

默认Administrator用户登录了的，然鹅我的 gl 库是在git用户里





地址改成下就行了 git remote add origin git@192.168.1.247:gl...]]></description><category></category></item><item><title><![CDATA[将videojs 视频绘制到canvas上]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/97243098</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/97243098</guid><author>github_38108899</author><pubDate>Thu, 25 Jul 2019 10:42:33 +0800</pubDate><description><![CDATA[文章转载自嘿嘿嘿https://blog.youkuaiyun.com/qq_37540004/article/details/90750529

原理
1.原理其实很简单，做过全景图的同学都知道，球模型+全景图片贴图。 全景视频/全景直播就是 球模型+全景视频素材 。


2.至于播放器样式，可以自己用Js+Dom自定义，或者更改videojs（别的播放器插件也行）的样式 即便你是用原生video也是可...]]></description><category></category></item><item><title><![CDATA[js字符串可执行语句]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/94564904</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/94564904</guid><author>github_38108899</author><pubDate>Wed, 03 Jul 2019 15:20:39 +0800</pubDate><description><![CDATA[一. let str = '(function(){console.log("test"); } () )';

   let func = new Function(str);

   func();

二.

   setTimeout(str);

三.

   eval(str);








...]]></description><category></category></item><item><title><![CDATA[页面通信]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/93708854</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/93708854</guid><author>github_38108899</author><pubDate>Wed, 26 Jun 2019 08:45:37 +0800</pubDate><description><![CDATA[主页面和子页面都导入 signal.js

在主页面 通过 iframe 或者 open方法打开子页面

在子页面加载完成后开始通信

主页面 const signal = new Signal（）； signal.atob('from a')； 监听来自子页面的信息 signal.onmessage = function(msg){}

子页面 const signal = new S...]]></description><category></category></item><item><title><![CDATA[url 重定向]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/92804367</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/92804367</guid><author>github_38108899</author><pubDate>Wed, 19 Jun 2019 10:04:24 +0800</pubDate><description><![CDATA[假设 目录 public 下有 两个文件 index.html 和sw.js

访问地址为 127.0.0.1：8080/index.html

正常情况下后端收到 的path 为 “/index.html”

现在修改html 在html里 注册Service Worker 导入sw.js

重新访问 index.html html 加载完注册了sw.js 这个时候 后端收到的path ...]]></description><category></category></item><item><title><![CDATA[ssh: connect to host 192.168.1.100 port 22: Connection refused fatal: Could]]></title><link>https://blog.youkuaiyun.com/github_38108899/article/details/92664880</link><guid>https://blog.youkuaiyun.com/github_38108899/article/details/92664880</guid><author>github_38108899</author><pubDate>Mon, 17 Jun 2019 17:57:37 +0800</pubDate><description><![CDATA[下载https://github.com/PowerShell/Win32-OpenSSH/releases
解压放到C:\Program Files\OpenSSH-Win64

进入到C:\Program Files\OpenSSH-Win64

按住shift 和鼠标右键 运行cmd

powershell.exe -ExecutionPolicy Bypass -File install-...]]></description><category></category></item></channel></rss>