随笔分类 - 日常问题
解决的一些杂乱问题
摘要:需求: 定期备份mysql 特定的数据库 Pre: mysql socket 路径; # netstat -ln | grep mysql unix 2 [ ACC ] STREAM LISTENING 37194 /tmp/mysql.sock 备份命令,以dbname+日期命名: mysqldu
阅读全文
摘要:... 可以扩展一切可迭代的东东,比如常见的str。 最基础的用法是,直接引用可迭代对象,无需for循环来展开。 另外,对str的处理,可以去重,直接嵌套生成新的去重list即可。 理解异步的性能
阅读全文
摘要:windows下载文件到指定位置 powershell (new-object System.Net.WebClient).DownloadFile('http://durbiox.west.isilon.com/qa/log/powerload/profiles/dryrun/get-pip.py
阅读全文
摘要:pip install "pip<10" --user 想降级安装 pywin32 结果导致了如下bug Traceback (most recent call last): File "c:\python27\lib\runpy.py", line 174, in _run_module_as_m
阅读全文
摘要:上周分享了一坨 😶 总之就是,分享是有必要的,不然我更稀里糊涂 windows真是个渣啊,还是linux香 贼拉香,不过公司网络是怎么了,几十兆的东东,下载了一节课时间。 导致我拿windows demo,尬。 还有那个命令,认真记了好几次,不如同事在旁边指挥敲一遍记得牢固 wc -l netst
阅读全文
摘要:nfsv4 && nfsv3 on macos NFS3ERR_NOENT | NFS4ERR_NOENT 发生在 想lookup时,发现文件已经被remove了 No such file or directory. The file or directory name specified does
阅读全文
摘要:以为是网络问题,特意断了公司网络,换手机热点,依然不行。。 结果 加如下配置即可 "downloader_precedence": { "linux": [ "curl", "urllib", "wget" ], "osx": [ "curl", "urllib" ], "windows": [ "
阅读全文
摘要:self.logger.debug("1111Getting into {0}".format(sys._getframe().f_code.co_name)) 获取当前函数名 但是只得到了setup 如下即可 self.logger.debug("Getting into {0}".format(
阅读全文
摘要:Running on windows platform, give me an error as below: Fix method: add freeze_support
阅读全文
摘要:查ip 时,使用 ip==10.224.37.18 发现无效 使用 ip.dst, 查到了 Actually for some reason wireshark uses two different kind of filter syntax: 1. one on display filter; o
阅读全文
摘要:linux , is “/” , while windows is “\”
阅读全文
摘要:python中unicode, hex, bin之间的转换 背景 在smb中有个feature , 需要改动文件权限dacl,然后确认是否有收到notify。一直得不到这个dacl的formal是什么样子的,于是pdb中打印出原始dacl,是个类似于 的字符串str,然鹅无法用str的方法来操作它。
阅读全文
摘要:😓 常常因为排错耽误进度,其实requests也有问题,不过重点是read_csv的问题 解决办法:Just browse to Applications/Python 3.6 and double-click Install Certificates.command 感谢:https://sta
阅读全文