Microsoft launches Cognitive Toolkit 2.0 beta with Python support
Microsoft today is announcing the beta launch of version 2.0 of its open-source deep learning framework. Until now the software has been called Computational Network Toolkit, or CNTK for short, but...
View Article使用python分析access日志
最近在自学python,光看不练嘴把式,还是要多实操的。这就是一个写给自己的小小工具。 主要功能是,便利日志文件夹下的文件,根据设定的关键字查找是否有web攻击行为。 0X01 背景 WAF上线之后,处理最多的是误报消除。 产生误报有多种原因,比如web应用源码编写时允许客户端提交过多的cookie;比如单个参数提交的数值太大。...
View ArticleTalkin’ ‘Bout Trucks, Beer, and Love in Country Songs ― Analyzing Genius Lyri...
Trucks, beer, and love, all things that make country music go round.I’ve said before that country music is just pop music with a slide, and thenlyrics about slightly different topics than what you’ll...
View ArticleIntroducing Python sysdig tracers
Today we are opensourcing a python library to easy emit sysdig tracers. This allows you to quickly instrument python code and keep an eye on what your code does and how it performs. Sysdig Tracers...
View ArticleHow To Implement Simple Linear Regression From Scratch With Python
Linear regression is a prediction method that is more than 200 years old. Simple linear regression is a great first machine learning algorithm to implement as it requires you to estimate properties...
View ArticlePython mmap的使用-文件内存映射
mmap是一种虚拟内存映射文件的方法,即将一个文件或者其它对象映射到进程的地址空间,实现文件磁盘地址和进程虚拟地址空间中一段虚拟地址的一一对映关系。 优点: 普通文件被映射到虚拟地址空间后,程序可以向访问普通内存一样对文件进行访问,在有些情况下可以提高IO效率 它占用物理内存空间少,可以解决内存空间不足的问题,适合处理超大文件...
View ArticlePython开发【第一篇】Python基础之字符串格式化
字符串格式化 python的字符串格式化有两种方式:百分号方式、format方式 百分号的方式相对来说比较老,而format方式则是比较先进的方式,企图替换古老的方式,目前两者并存。[ PEP-3101 ] This PEP proposes a new system for built-in string formatting operations, intended as a...
View Article微软发布Cognitive Toolkit 2.0 beta 支持Python
网易科技讯10月26日消息 据外媒(venturebeat)报道,微软于今日发布其开源深度学习工具包2.0 beta版。此前这一软件被叫做Computational Network Toolkit(CNTK),此次更新中,微软将之更名为Cognitive Toolkit。 新的工具包在C++ 之外新增对 python语言的支持(Python 3已经支持;Python...
View Article[原]使用GVM管理Go版本
以前用python开发,习惯了virtualenv,现在在看Go,就想是不是也有类似的东东,搜了一下,果然,有。这就是今天要说的GVM。 安装GVM $ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)...
View ArticleVasudev Ram: Read from CSV with D, write to PDF with Python
By Vasudev Ram CSV => PDF Here is another in myseries of applications of xtopdf , my PDF creation toolkit for python ( xtopdf source here ). This xtopdf application is actually a pipeline (nothing...
View ArticlePython开发【第一篇】Python基础之生成器和迭代器
生成器和迭代器 1、生成器 一个函数调用时返回一个迭代器,那这个函数就叫做生成器(generator);如果函数中包含yield语法,那这个函数就会变成生成器; def func(): yield 1 yield 2 yield 3 ret = func() for i in ret: print(i) 进入函数找到yield,将yield后面的数据返回 def myrange(arg):...
View ArticlePython/PHP/C/Go/Java运行时效率测试报告
前言 关于编程语言执行效率上经常会有纷争,尤其在一些技术社区上,新手或某一编程语言教的“信徒”吵得不可开交,即便是游走于多种编程语言的老手也很少会对不同的编程语言做效率方面的测试。 在这篇文章中,我们使用linux著名的性能调查工具perf来对目前流行的几大编程语言(python/php/C/Go/Java)做一次粗略的测试。网络上多数测试偏重于代码执行时间,例如使用time命令或...
View ArticleDjango test optimization with no-op PIL engine
The Air Mozilla project is a regular Django webapp. It's reasonably big for a more or less one man project. It's ~200K lines of python and ~100K lines of javascript . There are 816 "unit tests" at the...
View ArticleHow to Implement Linear Regression With Stochastic Gradient Descent From...
The core of many machine learning algorithms is optimization. Optimization algorithms are used by machine learning algorithms to find a good set of model parameters given a training dataset. The most...
View ArticlePyCharm 2016.3 Public Preview
Great news: Today we’ve released PyCharm 2016.3 Public Preview , marking the feature freeze for the next major release planned for this fall. Everyone is very welcome todownload and try its new...
View Articlezabbix自动发现的python方式数据生成
一、前言 zabbix里面有个功能是自动发现,比如文件系统和网卡的获取的时候,因为预先无法知道这个网卡的名称,所以就有了这个自动发现的功能,这里我是因为要用到存储池的自动发现,所以需要对数据进行生成 二、实现 我们看下原生的接口的数据类型: [root@lab8106 ~]# zabbix_get -s 127.0.0.1 -k...
View ArticlePython性能提升小技巧
版权声明:此文章转载自_infocool 原文链接:http://www.infocool.net/kb/python/201610/205856.html 如需转载请联系听云College团队成员小尹 邮箱:yinhy#tingyun.com 1. Python性能提升小技巧 1.1 使用局部变量替换模块变量 使用os.linesep这样的名字需要解释器做两次查询: 查找os以确认它是一个模块...
View ArticleWebHook 自动化部署和运维工具 git-webhook
Git WebHook 一个使用 python Flask + SQLAchemy + Celery + Redis + React 开发的用于迅速搭建并使用 WebHook 进行自动化部署和运维系统,支持:Github / GitLab / GitOsc。 技术栈简单,部署容易; 代码简洁易懂,二次开发毫无压力; 支持 Github / GitLab / GitOsc; 使用 SSH...
View ArticlePyCharm 2016.3 公开预览版发布
PyCharm 2016.3公开预览版发布了,PyCharm是一种python IDE,带有一整套可以帮助用户在使用Python语言开发时提高其效率的工具,比如调试、语法高亮、Project管理、代码跳转、智能提示、自动完成、单元测试、版本控制。此外,该IDE提供了一些高级功能,以用于支持Django框架下的专业Web开发。 PyCharm 2016.3 公开预览版的发布表明PyCharm...
View Article上云连载5:使用 Nginx + uWSGI 部署 Flask 应用
本文是「上云连载」系列第五篇,将以编程派网站为例,介绍如何在 腾讯云 CVM 上部署 Flask 应用。具体来说,是如何在 Debian 8 系统下使用 uWSGI 和 Nginx 部署一个 Flask 应用,其中 Nginx 的作用是前端反向代理。 我在这里列出的是部署编程派网站时的大致操作步骤,仅供大家参考。 准备工作 在开始之前,你应该已经 创建了一个腾讯云 CVM 实例 (Debian 8...
View Article