Code Monkey home page Code Monkey logo

draft's People

Contributors

tobemaster56 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

draft's Issues

Emotion 报不安全的 css 伪类

原因已查明

报错的位置 line 174
stylis-plugins.js

简述一下,大概的原因,因为 emotion SSR的实现,导致在服务端,可能会插入 style Tag,这样服务端渲染的 DOM 结构,和客户端渲染的 DOM 结构不一致。所以,和 DOM 顺序相关的一些 CSS 样式规则就会受到影响。比如 :first-child

但是 emotion 的 DevWarning,有一定的误导性。

下一步:梳理完整的过程,并且给 emotion 提个 PR。

tuck crash 被隐藏的 窗口 怎么重新看到

from 官方文档

How do I retrieve a window which Tuck has left off screen? #
If you restart your Mac or if Tuck has crashed, you might be left with windows hiding under the screen edges. These windows can be hard to “grab” with the mouse, but here’s a trick. Hide the app, then show it again, and all those windows should now be fully on screen.

内部 gitlab wiki 无法上传截图

gitlab 的 wiki,上传图片,或者截图,paste 有问题,我找到了对应的 Adding or Pasting images into wiki content is not working on GitLab CE,大概梳理一下这个过程

  1. 一开始有人报告这个问题
  2. 开发者发现是代码问题,修复了,关闭 issue
  3. 又有人遇到了这个问题,跑到这个 issue 下面留言,开发者说,这是另外一个原因,建议 重新创建一个 issue
  4. 不只一个人遭遇这个问题,维护者,只好 reopen 这个 issue,结果,拖了两年都没啥回应
  5. 两年后,又有人在下面留言,发言的这位用户有点不太高兴,2 年了,这个 issue 竟然没有分配给任何人处理
  6. 之前 reopen 的人,说这个应该由另外一个团队处理
  7. 新的人,说了,经过测试没问题啊,一切正常
  8. 那位不太高兴的用户贴出了截图,可以清晰的看见报错的原因了(和我们现在的情况一模一样)https 和 http 混用, mix-content
  9. 开发团队貌似难以复现问题
  10. 用户开始怀疑,是不是 不同的 gitlab 版本问题(社区版,企业版)
  11. 维护者说应该不是代码的原因,可能是配置文件有问题,让别人排查
  12. 别人说,这个优先级不高,别耽误我们的 OKR
  13. 后面开发团队的不同的人发表了不同的看法,总之,问题难以复现
  14. 开发团队让用户贴出 gitlab 的配置文件,瞅瞅
  15. 用户使用的 docker 镜像,这个镜像貌似默认配置有点问题
    16.开发者更新镜像
  16. 好像还是有点问题
  17. 不知道,新的镜像有没有彻底解决问题
  18. 用户找到了一个办法,解决了问题
  19. 最后,开发团队,说,这不是代码问题,关闭 issue。

Mac 关闭快速备忘录

打开 系统设置>调度中心,点按左下角 ‘触发角’,关闭右下角的‘快速备忘录’

grammarly 自我诊断让人印象深刻

grammarly 是个辅助英文写作的工具,但是我在使用 grammarly 的过程中,遇到了一些问题,它的检测机制让我印象深刻

TestId: aek9j40cx8n5787
Summary: failed
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Browser: Supported
Login: [[email protected]](mailto:[email protected]) (1006 ms)
Subscription: Success (1113 ms)
WebSockets (test): Failed - socket Error
WebSockets (open): Success (2985 ms)
WebSockets (send): Failed - socket Error
WebSockets (receive): Failed - socket Error

Oh no! It looks like something is indeed wrong with your connection.

Please review [this article](https://support.grammarly.com/hc/en-us/articles/115000090271-Network-configuration-blocks-Grammarly-services) to troubleshoot the issue.

Untitled

npm依赖管理之peerDependencies

感觉需要对 npm 的 peerDependencies 来一次完整深入的研究

组件库的 Emotion CacheProvider 没有彻底用 peerDependencies 解决。

下一步:需要进一步探查

iPhone 小技巧

输入法快速移动光标,老手机有3d touch的,任意位置长按压,移动光标非常丝滑,没有3d touch的,长按空格

node-sass 的坑

在**,前端程序员可能最不喜欢的一个 npm 包,就是 node-sass 了。

坦白的说,遇到 node-sass 的问题也不是一次两次了,为什么总是被它伤。

下一步,彻底梳理一下 node-sass。

what- why- how

完美避坑。

xmind 图片查看增强

有时候会截图贴在思维导图里,现在的图片查看非常难受,需要不停的调整大小

系统进程研究

Mac查看和杀死进程

查看指定端口(例如8080)的进程: sudo lsof -i :8080
image

根据PID杀进程:sudo kill -9 #进程号#
这个就是:sudo kill -9 25561
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.