Automatic file uploads
Uploading files in web applications iw nowadays a common feature. Being able to automate this steps using Burp , Curl , python & Co. doesn't seem to be an easy task. Basically the automation...
View ArticleWesley Chun: Google APIs: migrating from tools.run() to tools.run_flow
Got AttributeError ? Rename run() to run_flow() , and you'll be good-to-go. TL;DR: This mini-tutorial slash migration guide slash PSA (public service announcement) is aimed at python developers using...
View ArticleContributing os.scandir() to Python
August 2016 This article describes my experience contributing a medium-sized feature to python. In short: I wrote PEP 471 and contributed os.scandir() to the Python standard library and the CPython...
View ArticleRPM Query on multiple servers with Python & Fabric
I’ve been playing a bit with fabric to make some of my system administration and deployment tasks easier. As the number of servers I manage increases I need to get smarter at managing them. Fabric...
View Article使用python绘制简单的图表
本文介绍如果使用python汇总常用的图表,与Excel的点选操作相比,用python绘制图表显得比较比较繁琐,尤其提现在对原始数据的处理上。但两者在绘制图表过程中的思路大致相同,Excel中能完成的工作python大多也能做到。为了更清晰的说明使用python绘制图表的过程,我们在汇总图表的代码中进行注解,说明每一行代码的具体作用。并在文章的最后给出了自定义字体和图表配色的对应表。 准备工作...
View ArticleSlaying Rogue Access Points with Python and Cheap Hardware
The Need for Open Source Rogue AP Protection With the exception of cellular attacks that make use of SDR, rogue access point attacks are the most effective wireless attacks in practice today. Despite...
View ArticleText to Image Synthesis Using Thought Vectors
Text To Image Synthesis Using Thought Vectors This is an experimental tensorflow implementation of synthesizing images from captions using Skip Thought Vectors . The images are synthesized using the...
View ArticlePython Web Applications: The basics of WSGI
Beneath Django , Flask , Bottle , and every other python web framework, lies the Web Server Gateway Interface, or WSGI for short. WSGI is to Python what Servlets are to Java ― a common specification...
View ArticleC++17 写法上已经很接近 Python 了
C++17 写法上已经很接近 python 了 35分钟前来源:开发者头条 本节例子选自: 对 python 这样的动态语言最直观的感受就是 list/map 两种数据结构打天下。 php 和 lua 甚至把这两个都合并成一种数据结构了。 毋庸置疑,学会如何使用 list 和 map 是基础中的基础。for 循环Python 版本 import unittest class...
View ArticlePython attrs library; stackoverflow documentation
Article: The One python Library Everyone Needs: attrs Some people are excited about eventually being able to program in Python 3 everywhere. What I’m looking forward to is being able to program in...
View ArticleBuilding a recommendation engine with AWS Data Pipeline + EMR + Spark
Hubba’s Product Recommendations Data Pipeline Building a recommendation engine with AWS Data Pipeline, Elastic MapReduce and Spark From Google’s advertisements to Amazon’s product suggestions,...
View ArticlePython Driver for ArangoDB, a NoSQL Graph Database
Welcome to the GitHub page for python-arango , a Python driver for ArangoDB . Features Clean, Pythonic interface Lightweight 95%+ ArangoDB REST API coverage Compatibility Python versions 2.7.x, 3.4.x...
View ArticleD-TECT Pentesting the Modern Web
D-TECTis an All-In-One Tool for Penetration Testing. This is specially programmed for Penetration Testers and Security Researchers to make their job easier, instead of launching different tools for...
View ArticlePython操作 RabbitMQ、Redis、Memcache、SQLAlchemy
Memcached Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。Memcached基于一个存储键/值对的 hashmap 。其 守护进程 (daemon )是用 C 写的,但是客户端可以用任何语言来编写,并通过memcached协议与守护进程通信。...
View ArticlePython 爬虫入门(requests)
相信最开始接触python爬虫学习的同学最初大多使用的是urllib,urllib2。在那之后接触到了第三方库requests,requests完全能满足各种http功能,真的是好用爆了 :D 他们是这样说的: “Requests 唯一的一个非转基因的 Python HTTP 库,人类可以安全享用。Requests 允许你发送纯天然,植物饲养的 HTTP/1.1 请求,无需手工劳动。你不需要手动为...
View Articlepython 调用第三方库压缩png或者转换成webp
因为工作需要去研究了下png的压缩,发现转换成webp可以小很多,但是webp在手机上的解码速度比png的解码速度慢很多。出于进几年手机设备的处理器的性能也不错了,所以准备两套方案。 在网上搜索了一些资料发现了http://www.linuxfromscratch.org/blfs/view/svn/general/libwebp.html这个和https://pngquant.org/这个。...
View ArticleBook Review: Python Machine Learning by Sebastian Raschka
Machine learning and AI seem to be the way of the future. These techniques can help software developers create powerful applications that crunch data, analyze trends, and offer solutions that a...
View Articlepython学习笔记――列表生成式与生成器
1.列表生成式(List Comprehensions) python中,列表生成式是用来创建列表的,相较于用循环实现更为简洁。举个例子,生成[1*1, 2*2, ... , 10*10],循环用三行: 1 L = []2 for i in range(1,11):3 L.append(i*i)列表生成式只用一行,前面是生成规则,后面是初始元素,最后还可以加上判断条件: 1 [i*i for i...
View ArticleSelect Sort
select sort 闲着没事,就想起写写排序的算法,因为从来没用python写过算法,依据算法的原理很快 就撸了个选择排序: def select_sort(ary): for i in range(len(ary)): tmp = ary[i] index = ary.index(min(ary[i:])) ary[i] = ary[index] ary[index] = tmp return...
View Article