💻 Have you tried turning it off and on again?
I am a backend engineer, currently based in Shanghai.
An easy imouto.host updater
把backup流程单独提取出来
现在的local_checker只能return version, 把文件存在判断也加进去, 直接对预设的global对象操作.
因为主要是给自己用的,所以需求从简就好:
以下,是移动至Milestone: Improve Version的原基本需求
多平台使用
多源监测
多源复合生成HOSTS
projecth都挂了太久了,需要增加从别的源获取hosts的方式
现在是根据id把正则规则硬编码在程序里的, 因为源上的文件发布规则统一, 所以只要更改关键字部分, 正则规则就能通用.
本地测试的时候进行过多次的无文件→新建,旧文件→新文件的测试,没有发生编码问题,在更新了V2.22.0519后,本地检测会有编码错误,需要检查一下。
附注:
r模式。
也许是新增的记录里有哪里有问题。(以后ignore掉?)
或许是我存取的方法不规范。
也许只是我的系统有问题。
无论使用Requests还是urllib2都连不上projecth.us, 一定有阴谋 ⊂彡☆))д´)
试过其他的https都能简单的获取到内容QAQ
改过UA什么的也不可以QAQ
毕竟同属于backup流程, 同时避免可选参数.
现在实现方式是写入新hosts, 写入换行符, 写入自定义hosts. file object 建立3次, 虽然性能影响微乎其微, 但是为符合规范还是要建一个buff组合数据一次性写入.
都说不要在Windows下用Python了…结果现在有编码问题…明明读写都是UTF8了…然后过一段时间去看编码就会变掉然后中文会全部乱码,然后就会报错啊有木有。
小渣渣随便写的辣鸡代码被菊苣们Star了感觉压力炒·鸡·大啊有木有!!!
哪位菊苣告诉我怎么把处理不了的字符干掉啊QAQ
不想用ignore因为有强迫症啊啊啊啊啊啊啊QAQ
真的快哭死了啊QAQ
再这样下去我要写C#了QAQ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.