草庐IT

D_GNU_SOURCE

全部标签

Server-Sent Events(以下简称 SSE)及event-source-polyfill使用

SSE与WebSocket作用相似,都是建立浏览器与服务器之间的通信渠道,然后服务器向浏览器推送信息SSE是单向通道,只能服务器向浏览器发送,因为流信息本质上就是下载。如果浏览器向服务器发送信息,就变成了另一次HTTP请求使用方法 Server-SentEvents教程-阮一峰的网络日志https://www.ruanyifeng.com/blog/2017/05/server-sent_events.html缺点:不可以比如请求头中加token等getSSE(){returnnewPromise((resolve,reject)=>{letbase=process.env.VUE_APP_S

bug处理记录:com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 9)): has to be escaped using backslash to be included in string value at [Source:

1.报错:com.fasterxml.jackson.core.JsonParseException:Illegalunquotedcharacter((CTRL-CHAR,code9)):hastobeescapedusingbackslashtobeincludedinstringvalueat[Source:(PushbackInputStream);line:2,column:21]2.导致原因:测试时是使用swagger测试接口的,下面的bin字段的值是复制过来的,bin的值表面上看是有空格的存在,其实是一些特殊字符,删除掉特殊字符就可以解决报错了。向接口中传递json如下{"bin

bug处理记录:com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 9)): has to be escaped using backslash to be included in string value at [Source:

1.报错:com.fasterxml.jackson.core.JsonParseException:Illegalunquotedcharacter((CTRL-CHAR,code9)):hastobeescapedusingbackslashtobeincludedinstringvalueat[Source:(PushbackInputStream);line:2,column:21]2.导致原因:测试时是使用swagger测试接口的,下面的bin字段的值是复制过来的,bin的值表面上看是有空格的存在,其实是一些特殊字符,删除掉特殊字符就可以解决报错了。向接口中传递json如下{"bin

使用IDEA进行javaDoc时报错:javadoc: 错误 - 无效的标记: --source-path

可能是因为idea版本太高其javadoc生成工具不能使用java8版本了,亦或是需要做一些设置 idea生成javadoc文件使用java8版本时报错  在这里修改一下java版本 我这里换的是17 然后再去生成javadoc文件就可以了 

使用IDEA进行javaDoc时报错:javadoc: 错误 - 无效的标记: --source-path

可能是因为idea版本太高其javadoc生成工具不能使用java8版本了,亦或是需要做一些设置 idea生成javadoc文件使用java8版本时报错  在这里修改一下java版本 我这里换的是17 然后再去生成javadoc文件就可以了 

【LTspice】004 Voltage Source 参数配置

目录1.DCValue2.PULSE3.SINE4.EXP5.SFFM6.PWL7. bv-函数式电压源1.DCValueLTspice的Voltagesource是我们必须了解的一个器件,任何一个仿真都会用到。下面详细介绍这个器件的设置。首先,设置一个直流电压,如下,直接输入DCvalue即可,serialResistance代表内阻,我们一般不指定。当点击【Advanced】,我们可以设置更多高级功能。如下,每一个功能后面括号里是实现这个功能需要编辑的参数。2.PULSEVinitial:初始电压;Von:高电平电压;Tdelay:延时时间,指仿真开始的0时刻到出现第一个波形的延时;Tri

【LTspice】004 Voltage Source 参数配置

目录1.DCValue2.PULSE3.SINE4.EXP5.SFFM6.PWL7. bv-函数式电压源1.DCValueLTspice的Voltagesource是我们必须了解的一个器件,任何一个仿真都会用到。下面详细介绍这个器件的设置。首先,设置一个直流电压,如下,直接输入DCvalue即可,serialResistance代表内阻,我们一般不指定。当点击【Advanced】,我们可以设置更多高级功能。如下,每一个功能后面括号里是实现这个功能需要编辑的参数。2.PULSEVinitial:初始电压;Von:高电平电压;Tdelay:延时时间,指仿真开始的0时刻到出现第一个波形的延时;Tri

Open Source: A Help or a Hindrance for Developers?

Chinahassteadilyembracedopensourceoverthelastfewyears.Onthestrategicfront,thecountry'sOutlineofthe14thFive-YearPlan(2021-2025)forNationalEconomicandSocialDevelopmentandtheLong-RangeObjectivesThroughtheYear2035forNationalEconomicandSocialDevelopmentincludeopen-sourceprojectsforthefirsttime.Chinesegia

Open Source: A Help or a Hindrance for Developers?

Chinahassteadilyembracedopensourceoverthelastfewyears.Onthestrategicfront,thecountry'sOutlineofthe14thFive-YearPlan(2021-2025)forNationalEconomicandSocialDevelopmentandtheLong-RangeObjectivesThroughtheYear2035forNationalEconomicandSocialDevelopmentincludeopen-sourceprojectsforthefirsttime.Chinesegia

Interview with Li Jiansheng: How Did I Choose to Become an Open Source Evangelist?

LiJiansheng,alsoknownbyhispennameKuoSi,isanopen-sourceevangelist,creatoroftheOpenSourceWaycommunity,andauthorof"TheMythsofOpenSource",atrilogyaboutopen-sourceachievements.AchanceencounterwithaRedHatLinux7.3CDchangedLiJiansheng'slifeandledhimheadlongintotheopen-sourcecommunity.Overnearlytwodecades,he