What can the French avant-garde teach us about search?
Alfred Jarry cycling. (Image from Wikimedia Commons) “What can the French avant-garde teach us about search?”. I spent the winter of 2015 through 2016 investigating this very question. From England to...
View Article正确查找使用exp的姿势
第一个searchsploit 这是著名exploit网站Exploit Database官方Git仓库。Exploit Database存储了大量的漏洞利用程序,可以帮助安全研究者和渗透测试工程师更好的进行安全测试工作。 该仓库每天都会更新,保证数据最全最新。 kali已经集成了 使用方法 root@kali:~# searchsploit -hUsage : searchsploit...
View Article我的代码要如何处理NULL
在运行代码的时候,最烦的就是看见Null了,而程序经常遇到的错误也是NullPointException(空指针异常)。就算是写代码处理Null,也烦的要死,因为要在各处重复的写: if (xxx == null){ ... }else{ ... } 然而很多时候你可能就忘写了。...
View Articlepython 三层架构说明
三层架构(3-tier architecture) 通常意义上的三层架构就是将整个业务应用划分为: 表现层(Presentation layer)、业务逻辑层(Business Logic Layer)、数据访问层(Data access layer)。 区分层次的目的即为了"高内聚低耦合"的思想。...
View ArticleRuby on rails安装后去掉DL is deprecated,please use Fiddle警告信息的方法【测试可用】
本文实例讲述了Ruby on rails安装后去掉DL is deprecated,please use Fiddle警告信息的方法。分享给大家供大家参考,具体如下:问题:搭建完完ruby on rails环境之后发现每次运行命令总会有这样一个Warning:DL is deprecated, please use...
View Article在Mac OS X下安装Ruby运行环境的详细步骤
前言Ruby是一种功能强大的面向对象的脚本语言,它综合了Perl,python,Java等语言的特点写成,有强大的文字处理能力,简单的语法,并且完全的面向对象。同时,Ruby是解释型语言,不需编译即可快捷地编程。对于新入门的开发者,如何安装 Ruby和Ruby Gems 的运行环境可能会是个问题,本页主要介绍如何用一条靠谱的路子快速安装 Ruby...
View Articlepython 获取网页编码方式实现代码
python 获取网页编码方式实现代码<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"> </span><span style="font-family: Arial, Helvetica, sans-serif;...
View ArticlePython如何读取MySQL数据库表数据
本文实例为大家分享了python读取mysql数据库表数据的具体代码,供大家参考,具体内容如下环境:Python 3.6 ,Window 64bit目的:从MySQL数据库读取目标表数据,并处理代码:# -*- coding: utf-8 -*- import pandas as pdimport pymysql ## 加上字符集参数,防止中文乱码dbconn=pymysql.connect(...
View Articlepython3.5 + PyQt5 +Eric6 实现的一个计算器代码
目前可以实现简单的计算。计算前请重置,设计的时候默认数字是0,学了半天就做出来个这么个结果,bug不少。 python3.5 + PyQt5 +Eric6 在windows7 32位系统可以完美运行 计算器,简单学了半天就画个图实现的存在bug,部分按钮还未实现,后续优化。代码结构如图: jisuan.pyimport...
View ArticlePython shutil 模块学习笔记
学于 https://automatetheboringstuff.com shutil 名字来源于 shell utilities,有学习或了解过linux的人应该都对 shell 不陌生,可以借此来记忆模块的名称。该模块拥有许多文件(夹)操作的功能,包括复制、移动、重命名、删除等等 chutil.copy(source, destination) shutil.copy()...
View ArticlePyBites: Code Challenge 10 - Build a Hangman Game
This week, each one of you has a homework assignment ... - Tyler Durden (Fight club) Hi pythonistas, a new week, a new 'bite' of Python coding! This week we are going to code the well-known Hangman...
View ArticleThe tensorflow python module - part 002.
Today I will show you how to install tensorflow python module on windows OS with pip tool. I used python version 3.5.3. C:\Python35>cd Scripts C:\Python35\Scripts>pip3 install --upgrade...
View ArticleHandy Bit of Python Detective Kit
I'm working on (yet another) Django upgrade for a client and the project is old enough that it's affected by the structure changes in DJango 1.4, compounded by some seriously custom structure of its...
View ArticleIntroduction to SciPy Programming for C# Developers
I wrote an article titled “Introduction to SciPy Programming for C# Developers” in the March 2016 issue of Microsoft’s MSDN Magazine. See https://msdn.microsoft.com/en-us/magazine/mt683799.aspx . I...
View ArticleLinux系统下格式化字符串利用研究
格式化字符串漏洞现在网上有很多相关的文章,原理啥的随便搜搜都是,这篇文章就对格式化字符串漏洞如何利用进行研究 格式化字符串危害最大的就两点, 一点是leak memory, 一点就是可以在内存中写入数据, 简单来说就是格式化字符串可以进行内存地址的读写. Leak Memory 先来对一个简单的Demo进行研究: # fmt_test.c int main(int argc, char *...
View ArticleHow to Create Infinite Scroll With Django
In this tutorial I will show you how to implement a very simple infinite scrolling with Django. Basically we will take advantage of Django’s pagination API and a jQuery plug-in. You will find examples...
View Articlepython redis使用
1,安装 pip install redis 2,基本使用 使用: import redis r = redis.Redis(host=’localhost’, port=6379, db=0) r['test'] = ‘test’ #或者可以r.set(‘test’, ‘test’) 设置key r.get(‘test’) #获取test的值 r.delete(‘test’) #删除这个key...
View ArticlePython 高级编程:完全理解生成器
生成器是 python 初级开发者最难理解的概念之一,虽被认为是 Python 编程中的高级技能,但在各种项目中可以随处见到生成器的身影,你得不得去理解它、使用它、甚至爱上它。 提到生成器,总不可避免地要把迭代器拉出来对比着讲,生成器就是一个在行为上和迭代器非常类似的对象,如果把迭代器比作 Android 系统,那么生成器就是 iOS,二者功能上差不多,但是生成器更优雅。 什么是迭代器...
View Article记录Uwsgi与Django成功勾搭的始末
先说明一下本人的环境: Uwsgi版本:2.0.14(yum install安装) django版本:1.10.6(pip install安装) python版本:2.7.5(阿里云 centos 7自带) nginx版本:1.10.2(yum install安装)...
View Article