python单元测试
最近看了 Axb的自我修养 写的关于好代码,烂代码和单元测试的一些文章,挺受启发的,结合python讲一下自己对单元测试的理解和操作。 单元测试是什么 单元测试(又称为模块测试, Unit...
View Articlepython获取操作系统信息
获取操作系统信息应该是运维的基础工作了,我认为作为一个运维人员,对自己所管理的机器配置应该是很清楚的,因为这对我们快速处理问题很有帮助,比如随着业务增长,突然某些机器负载上涨的厉害,这时候要排查原因,除了从应用程序、架构上分析外,当前硬件性能的分析应该是必不可少的一环,之前我写过一篇用第三方模块psutil来获得系统信息,但有个问题就是每台就机器都要安装这个模块,否则运行会报错,那今天我们就来个清爽...
View ArticlePython中编码二三事
在审计的时候比较喜欢注意对字符串操作的编码、解码和截这些操作,因为这里有可能导致对抗SQLi和XSS等安全函数失效。 前两天改一个自己刚入学的时候写的python小工具,发现编码解码真是一个头疼却有不得不面对的问题。一个小工具如果是自己用,写的很粗犷能达到预期目的就行。但是如果给别人用甚至更多人用,就不得不考虑代码的健壮性了,不仅仅要预想运行的不同环境,也要考虑不符合预期的输入应该怎么处理。...
View ArticleAsk HN: Who needs contributors? (September 2016)
SatNOGS http://satnogs.org SatNOGS is an open source ground station and network, optimized for modularity, built from readily available and affordable tools and resources Monthly goals: We are...
View ArticlePolished Python Implementation of Neural Style Transfer with Deep Learning
Neural Style Transfer Implementation of Neural Style Transfer from the paper A Neural Algorithm of Artistic Style in Keras 1.0.8. INetwork implements and focuses on certain improvements suggested in...
View ArticleEnvFile PyCharm plugin to set environment variables from files
Introduction Env Fileis a plugin for PyCharm that allows you to set environment variables from files for python-based run configurations. Works with all Python-based run configuration in PyCharm....
View ArticleSASM:多汇编语言的跨平台 IDE (Python)
SASM:多汇编语言的跨平台 IDE (python) 一点号开源派昨天 SASM 是 NASM, MASM, GAS 和 FASM 汇编语言的跨平台 IDE,简单并且开源。SASM 支持语法高亮和调试器,开箱即用,适合汇编语言的初学者。SASM(SimpleASM) 当前支持俄语和英语,遵循 GNU GPL v3.0 开源授权协议,基于 Qt。 2013 年发布了 1.0 版本,使用 Python...
View ArticleContinuum Analytics News: What’s Old and New with Conda Build
Conda build 2.0 has just been released. This marks an important evolution towards much greater test coverage and a stable API. With this release, it’s a great time to revisit some of conda-build’s...
View ArticleTake it Easy, and Say Hi to This New Python Ransomware
A new ransomware variant, named “Fsociety Locker” (“Fsociety ALpha 1.0”), showed up recently seeking a place in the threat marketplace. The authors of this malware must be “Mr. Robot” fans, as the name...
View ArticleShotgun Street Smarts: Our Favorite Features
One of the best parts of working on the Street Team is getting into the nitty and gritty of Shotgun every day. We know all the best tips and tricks to help you simplify your workflow, and add a little...
View ArticleAvoid Overfitting By Early Stopping With XGBoost In Python
Overfitting is a problem with sophisticated non-linear learning algorithms like gradient boosting. In this post you will discover how you can use early stopping to limit overfitting with XGBoost in...
View ArticlePython做机器学习|Python书籍
Introduction to Machine Learning with python|Python书籍 导读:一本通俗易懂的书籍,一本深入浅出的书籍,作者分享了如何用Python语言做机器学习的知识和技能。 书籍描述: Many Python developers are curious about what machine learning is and how it can be...
View ArticleFlow Free redux: eating SAT-flavored crow
Turns out, sometimes a hammer is not the best tool for the job. Overview So in mylast post, I haughtily dismissed SAT as burdensome and opaque formulation for solving puzzles like Flow Free. Since...
View ArticlePython Generator 使用场景思考
python Generator 使用场景思考 1小时前来源:开发者头条 Python generator的基本能力如何?以generator方式实现了一个斐波那契数列生成函数, def fib(n): if n <= 0: raise StopIteration i = 0 a = 1 b = 1 while i < n: if i < 2: yield 1 else: v =...
View ArticlePython Web 框架 Django 1.10.1 发布,bug修复
Django 1.10.1 发布了, Django 是 python 编程语言驱动的一个开源模型-视图-控制器(MVC)风格的 Web 应用程序框架。使用 Django,我们在几分钟之内就可以创建高品质、易维护、数据库驱动的应用程序。 该版本主要是修复1.10中的bug。 Bug修复: Fixed a crash in mysql connections where SELECT...
View Article利用Fabric+Capistrano实现Python自动化部署
Fabric是一个用于应用(批量)部署和系统(批量)管理的python库和命令行工具,关于Fabric的介绍请参考: http://www.fabfile.org/ 。 Capistrano是一个用Ruby语言编写的远程服务器自动化和部署工具,关于Capistrano的介绍请参考: http://capistranorb.com/ 。...
View Article原来Python可以做这么多好玩的事情
笔者最近在学习python,学与练同时进行才是最快最佳的学习方式。 因此笔者寻找了很多有趣的Python项目,一边理解,一边自己也尝试着做,才发现 强大的Python原来可以做这么多好玩的事情! 1.Python Python 图片转字符画 https://www.shiyanlou.com/courses/370 50 行 Python 代码完成图片转字符画小工具。 2.Python...
View ArticleIntroducting Introspection in QTK
Provides an example of the concept of introspection in QTK Last couple of months, I have been working on the infrastructure of QTK . I annouced the first point release a couple of weeks back after I...
View ArticleSICP Python 描述 2.5 面向对象编程
2.5 面向对象编程 来源: 2.5 Object-Oriented Programming 译者:飞龙 协议: CC BY-NC-SA 4.0...
View ArticleBaidu Open-Sources Python-Driven Machine Learning Framework
Many of the latest machine learning and data science tools purport to be easy to work with compared to previous generations of such frameworks and libraries. Chinese search engine giant Baidu now has...
View Article