js人脸检测
家······是抵御一切可怕东西的庇护所;阴影,黑夜,恐怖,不可知的一切都给挡住了。——罗曼·罗兰 分享一个js人脸检测用例: https://codepen.io/mediapipe-preview/pen/OJByWQr 使用框架: https://github.com/google/mediapipe
gmail绑定apache邮箱
回顾得越远,可能前瞻得越远。——丘吉尔 操作参考: Committer Email - Apache Infrastructure Website 记录一下操作流程,默认收信是用提名committer时填的邮箱,后面也可以去 Use the Selfserve app. Use Whimsy. Double-click the green “Email forwarded to” label. 进行修改 此处添加 里面的内容是 1Server: mail-relay.apache.org Port: 587 (STARTTLS), 465 (SSL) User/Pass: {Your LDAP credentials} 对应填写 以及 即可
纯css实现炫酷头像效果
官僚作风是一门使可能变成不可能的艺术。——萨尔塞多 分享一个炫酷头像效果: 从b站渡一教育的一个视频看到的(不是推广,只是注明出处) 123456789101112131415161718192021222324252627282930313233343536373839<style> img { --s: 280px; --c1: #c02942; --c2: #ecd078; --b: 5px; --f: 1; --bgOption: content-box no-repeat center/ calc(100% / var(--f)) 100%; --shrink: calc((var(--s) / var(--f) - var(--s)) / 2 - var(--b)); width: var(--s); height: var(--s); cursor: pointer; transition: 0.5s; padding-top: 100px; outline: ...
chakra-ui
对人生命最大的威胁是以车代步,而不是交通事故。——怀特 分享一个很好看的react的UI组件库chakra-ui: https://chakra-ui.com/ https://github.com/chakra-ui/chakra-ui
AtomicReference新jdk特性
对人生命最大的威胁是以车代步,而不是交通事故。——怀特 对应的单元测试: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818...
promisesaplus.com
产生巨大后果的思想常常是朴素的。——列夫·托尔斯泰 今天刷到一个网站: https://promisesaplus.com/ 对应的组织: https://github.com/promises-aplus/ 对应有一个开源库用来检验是否符合Promise/A+规范: https://github.com/promises-aplus/promises-tests/ 安装: 1npm install promises-aplus-tests -g 然后添加CI脚本 12345678{ "devDependencies": { "promises-aplus-tests": "*" }, "scripts": { "test": "run-my-own-tests && promises-aplus-tests test/my-adapter" ...
ClassPathResource踩坑
不要对一切人都以不信任的眼光看待,但要谨慎而坚定。——德谟克里特 今天看到一个问题 12345678910111213static { try { ClassPathResource resource = new ClassPathResource("ip2region.xdb"); //获取真实文件路径 String path = resource.getURL().getPath(); byte[] cBuff = Searcher.loadContentFromFile(path); SEARCHER = Searcher.newWithBuffer(cBuff); log.info("加载了ip2region.xdb文件,Searcher初始化完成!"); } catch (Exception e) { log.error("初始化ip2region.xdb文件失败,报错...
ip解析ip2region
做人要正直无欺,真实无伪,又要温厚和平,勿太棱角峭历。——陆陇其 https://github.com/lionsoul2014/ip2region 今天分享一个ip解析库ip2region 这里相关的java实现: https://github.com/lionsoul2014/ip2region/tree/master/binding/java maven依赖: 12345<dependency> <groupId>org.lionsoul</groupId> <artifactId>ip2region</artifactId> <version>2.7.0</version></dependency> 然后是完全基于文件的查询 123456789101112131415161718192021222324252627282930313233import org.lionsoul.ip2region.xdb.Searcher;import java.io.*...
webclient负载均衡踩坑
一个人总免不了称为别人的对立面。——乔治·克列孟俊 今天踩坑 123456789101112131415161718192021222324252627282930313233import cn.dev33.satoken.same.SaSameUtil;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;import org.springframework.web.reactive.function.client.WebClient;import reactor.core.publisher.Mono;/** * UserClient * * @author VampireAchao<achao @ hutool.cn> */@Servicepublic class UserClient { private final WebClient webClient; @Autowire...
tianai-captcha
笑长命,哭生病。——佚名 分享一个验证码库 在线体验http://captcha.tianai.cloud 使用方式http://doc.captcha.tianai.cloud 源码地址https://gitee.com/dromara/tianai-captcha https://github.com/dromara/tianai-captcha tianai-captcha简称tac,是一款集成滑动类、点选类的一款行为验证码,以使用简单、安全性强、界面美观、接入方便而,是为集好看、功能多、安全性强的一款开源行为验证码工具。 今天tianai-captcha加入dromara,热烈欢迎
