Bill Ward / AdminTome: Big Data Python: 3 Big Data Analytics Tools
In this article, I assume that you are running python in it’s own environment using virtualenv, pyenv, or some other variant. The examples in this article make use of IPython so make sure you have it...
View Article手把手教你发布一个 Python 包
前文 《在python中安装包的几种方法》 学习了安装第三方包的各种方法,是不是很想自己发布一个包到 Pypi 中?如果自己的成果能够让更多人使用,那是多么让人高兴,这篇文章介绍发布包的方法。 本文主题如下: 编写一个包(Python 源代码),但不是本文的重点。 编译包,观察编译后的文件。 发布包,发布的包可以有多种类型。 如何在 Pypi 中查看已发布的包。 再一次申明: 本文编写的包在...
View Article机器学习Python教程:3K近邻分类器
K 近邻分类器 “告诉我你的朋友是谁,我来告诉你你是谁?” k近邻分类器的概念是很难简单描述的。这是一句古老的谚语,可以在许多语言和文化中找到。圣经中也有这句话:“ 与智慧人同行的人是有智慧的,与愚人同行的人是有害的 。”(箴言13:20)...
View ArticlePython Machine Learning Environment Setup 2018
1. python Machine Learning Environment Setup In this tutorial of Python Machine Learning Environment Setup, we will show you the way with setting your machine up for a Machine Learning environment with...
View ArticleEclipse + Pydev will not hold the interpreter setting in the same...
I'm attempting to get eclipse running as something more powerful than a colored text editor so that I can do some Maya scripting. There's literally nothing fancy about this setup, it just doesn't keep...
View ArticlePython - Selenium - implicit wait for several elements
Currently I use implicit wait to locate elements before issuing any action upon them. See example of implicit wait: WebDriverWait(browser,10).until(EC.presence_of_element_located(By.XPATH(('xpath')))...
View ArticleDjango Allauth signal to trigger something
So I am still testing the waters of django and I am still like a baby swimmer with swim tires. I had some trouble in using django allauth signals to do something. Django 2.0 Django allauth All in a...
View ArticleDjango dyanimic url for employees or users
Let us say you are creating a site and you want your users to sign up and you want them to redirected once they log in. Below are some url formats for some well known sites. linkedin...
View ArticleNode Server Crashes while reading file edited by Python
Hi I am writing a simple nodejs push notification server which is basically reading a dynamically edited json file and pushing its content to the client. UPDATE: Its working if I remove the like data =...
View ArticleScout2:一款针对AWS环境的安全审计工具
今天给大家介绍的是一款名叫Scout2的安全审计工具,广大安全研究人员可以用它来对AWS环境的安全性进行检测。 AWS Scout2 Scout2是一款针对AWS环境的安全审计工具,在Scout2的帮助下,AWS管理员能够迅速了解各自AWS环境的安全状态。Scout2能够利用AWS...
View Article创业公司技术进化之路
Sat 04 August 2018 TL;DR 4 年前我有幸加入到现在这家公司,成为了公司早期员工之一,后来在开发上慢慢的得到了一些主动权,然后我就开始凭借着自己的摸索慢慢的完善了一些技术层面相关的东西。 这篇文章主要分享一下这其中的过程,前面的一些文章也有涉及但不全面,这里进行一个总结。其实这篇文章也可以叫作《我在创业公司这 4 年》。 面向招聘的技术选型...
View Article02 - Python 安装
鉴于观看本文的人群可能主力机器系统都各不相同,所以本次课程主要从 windows,Mac,这两个操作系统来讲解。 如果你使用的是 linux 系统,那么可能就需要自己上网去寻找一下“攻略”了。 今日内容如下,约1300+字,阅读完成需 10分钟。 windows python 3.7 密码:egi3 Mac Python 3.7 链接: 密码:u7ke 二、Mac 中 Python 的安装...
View Article03 - Python 基础
本次课程主要来讲一些关于 python 当中一些基础知识的书写。 全文约1500字,阅读需7 ~ 8 分钟。 二、注释 2.1 为什么要有注释 在学习 Python 中的注释之前,我们首先需要知道,我们为什么要去使用注释。 首先先请各位来观察一下这两段代码有什么区别? 我们发现下面的内容当中多了许多的中文文字,并且这些问题标明了当前这段代码的作用。 2.2 为什么要有注释 & 注释的分类...
View Article04 - Python 变量类型 & 运算符
经过我们之前几天的学习,我们应该已经掌握了 python 中相关的基础内容操作。 那么我们今天就正式的开始学习 Python 当中编程相关的知识了。 今天的内容会稍多,约2800+字,阅读完成需 15 分钟。 二、变量 2.1 什么是变量? 所谓变量其实大家可以理解为就是用一个“水杯”倒入不同的饮料,那不管我们倒入哪种饮料,我们的水杯是一直没有发生过改变的。...
View ArticlePython Bytes: #89 A tenasious episode that won't give up
python Bytes 89 Sponsored by Datadog -- pythonbytes.fm/datadog Brian #1: tenacity “Tenacity is a general-purpose retrying library to simplify the task of adding retry behavior to just about anything.”...
View ArticlePython 通过Scipy 的curve_fit 来拟合指数
import pymysqlimport pandas as pdimport matplotlib.pyplot as pltimport numpy as npfrom scipy.optimize import curve_fitdef fund(x, a, b): return b * (a ** x)connect = pymysql.connect( host =...
View ArticleBitly like open-source URL shortener in Python
Pygmy Live version of this project @ https://pygy.co Check link stats by adding + to the URL. Example pygy.co/pygmy+ Table of Contents Pygmy or pygy.co is an open-source, extensible & easy-to-use...
View ArticleVirtualenv with Eclipse (Galileo)
Does anybody have directions for getting Eclipse (Galileo), PyDev, and Virtualenv working together? I'm specifically trying to run Pinax but any instructions are fine. I thought I had it (and even...
View ArticleAdd bits in all possible places
I have a list and I want to make all lists possible by adding x 1s and 0s in all possible places. For example,say x = 2 and l=[0,1] First we just place all possible lists of length 2 at the start...
View ArticlePython user defined functions top ideas to write quickly
In python user defined functions you can use in scripts. These are very different from C/C++/JAVA. I will give you syntax and example for your quick reference and how to start learning quickly. Python...
View Article