Python & Pentesting: Signals Exercise
At the Pentester Academy I took a course called Pentesting with python. It’s a great course… if you have an interest in Python and Security, I highly recommend it. Task The instructor (Vivek...
View Article[译]如何使用Flask开发一个增删改查的应用
我们将创建一个简单的数据库驱动的笔记本应用。本教程面向想学习如何使用Flask开发网站或者web应用的初学者。 在学习本教程之前,请先安装好python和SQLite。如果你还没有在电脑上安装,请先安装。如果你安装的Python版本为2.5或者更高,那么你就无需安装SQLite了,Python 2.5之后的版本都已经内置了SQLite。 Python: https://www.python.org/...
View ArticleKaggle入门教程
此为中文翻译版 1:竞赛 我们将学习如何为 Kaggle 竞赛生成一个提交答案( submisson )。Kaggle是一个你通过完成算法和全世界机器学习从业者进行竞赛的网站。如果你的算法精度是给出数据集中最高的,你将赢得比赛。Kaggle也是一个实践你机器学习技能的非常有趣的方式。 Kaggle网站有几种不同类型的比赛。其中的预测一个就是预测在泰坦尼克号沉没的时候哪个乘客会成为幸存者。...
View ArticleThomas Guest: Python Streams vs Unix Pipes
I chanced upon an interesting puzzle: Find the smallest number that can be expressed as the sum of 5, 17, 563, 641 consecutive prime numbers, and is itself a prime number. Infinite series and python...
View ArticleFlask进阶教程Flask Tutorial Pro
Flask Tutorial Pro 是对Flask的一次综合运用,讲解如何使用Flask以及相关的扩展完整的开发一个项目。同时,结合程序运行的原理,讲解Flask应用的部署。所以,本教程主要是帮助Flask初级入门者掌握更多实用的开发技巧。 购买本教程: SelfStore 在阅读本教程之前,请确定你已经了解以下知识: 1. 基本的前端知识(html,css,js) 2. 基本的HTTP知识...
View ArticleHackaday Prize Entry: A Suite Of Lab Instruments
For their Hackaday Prize entry, [Jithin], [Praveen], [Varunbluboy], and [Georges] are working on SEELablet, a device that will equip budding citizen scientists with control and measurement equipment....
View ArticleString Python Comparisons Along
Last time , I talked about python’s boolean operators and and or and what can be confusing about them when “truthy” objects get into the mix. If you haven’t already read it, I would highly recommend...
View Articlegreenlet上下文切换的原理
greenlet是python众多协程实现技术中的一种,eventlet是基于greenlet实现的。而eventlet和libev又是gevent的核心。greenlet的上下文切换清晰易懂,可以结合IO事件循环构建出一些高效的事件处理逻辑。不同于 yield 类型的上下文切换,greenlet的上下文切换从表现形式上看更纯粹,可以直接 switch...
View ArticleIntroduction to Scientific Python
CME 193: Introduction to Scientific python Course description: This short course runs for the first three weeks of the quarter and is offered each quarter during the academic year. It is recommended...
View ArticleImport Python: ImportPython Issue 83
Worthy Read Raymond Hettinger - Thinking about Concurrency (Pycon RU 2016) video Walk through two examples of threading and multiprocessing to illustrate rules and best practices for taking advantage...
View ArticleDownloading Files from URLs in Python
This post is about how to efficiently/correctly download files from URLs using python. I will be using the god-send libraryrequests for it. I will write about methods to correctly download binaries...
View ArticlePython console progress bar (using \b and \r)
One of the things that really fascinated me in console applications is when I see text being changed on the same line without new lines being added. An example would be a progress bar or some...
View ArticleMeet Parsel: the Selector Library behind Scrapy
We eat our own spider food since Scrapy is our go-to workhorse on a daily basis. However, there are certain situations where Scrapy can be overkill and that’s when we use Parsel. Parsel is a python...
View ArticleAutomating OSINT: Dark Web OSINT With Python and OnionScan: Part One
You may have heard of this awesome tool called OnionScan that is used to scan hidden services in the dark web looking for potential data leaks. Recently the project released some cool visualizations...
View ArticleDjango1.8教程――从零开始搭建一个完整django博客(一)
第一个Django项目将是一个完整的博客网站。它和我们博客园使用的博客别无二致,一样有分类、标签、归档、查询等功能。如果你对Django感兴趣的话,这是一个绝好的机会。该教程将和你一起,从零开始,搭建一个属于你自己的Django博客站点。 事不宜迟,让我赶快开始吧! 创建你的第一个Django项目 Django提供了一个命令,可以让你轻松地创建初始Django项目文件结构。从你的终端运行以下命令:...
View ArticlePython正则表达式学习摘要及资料
在正则表达式中,如果直接给出字符,就是精确匹配。 {m,n}? 对于前一个字符重复 m 到 n 次,并且取尽可能少的情况 在字符串 'aaaaaa' 中, a{2,4} 会匹配 4 个 a ,但 a{2,4}? 只匹配 2 个 a 。 ^ 表示行的开头, ^\d 表示必须以数字开头。 $ 表示行的结束, \d$ 表示必须以数字结束。 你可能注意到了, py 也可以匹配 'python' >...
View ArticleSupport for Python on Cloud Dataflow is going beta
Posted by Eric Anderson, Product Manager The universe of people and companies that can easily process data at scale is larger today, thanks to support for python on Google Cloud Dataflow , now open to...
View Articlepython模块psutil获取系统状态
获取操作系统的当前运行状态和负载情况,是一个系统管理员的基本技能,因为这对我们日常排查故障,定位问题有着非常紧密的联系,比如查看当前系统的基本信息,例如cpu,内存,网络接收包情况,磁盘的使用率等就是我们日常系统管理员经常要关注的内容,既然这些信息如此重要,那能否每次登陆系统的时候自动给我们展示出来呢,其实解决这个问题很简单,我们可以写个脚本,这个脚本打印出我们关注的信息,然后把这个脚本放到.bas...
View ArticleHow to Create Django Signals
The Django Signals is a strategy to allow decoupled applications to get notified when certain events occur. Let’s say you want to invalidate a cached page everytime a given model instance is updated,...
View Article[工具资源] HelloGithub 月刊
《HelloGithub月刊》 兴趣是最好的老师,而 《HelloGithub》 就是帮你找到兴趣! 因为我比较熟悉python语言,所以月刊中python语言的项目居多,个人能力有限,其他语言涉及甚少,欢迎各路人士加入,丰富月刊的内容。 当然,如果您有更好的建议或者意见,欢迎 发邮件给我 。 简介...
View Article