- 博客(284)
- 资源 (2)
- 收藏
- 关注
原创 windows Python3.5.4 环境安装sqlalchemy出现no attribute ‘sort‘
修改 文件c:\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py。
2022-09-05 20:45:18 422 1
原创 doccano [target:=label for label in labels if...] invalid syntax
将labels = [target := label for label in labels if not label.overlap_with(target)]修改为:labels = [label for label in labels if not label.overlap_with(target)]参考链接:1、https://github.com/doccano/doccano/issues/1221
2021-10-26 10:06:43 206
原创 centos 8 安装google-chrome 导致死机问题
缘起:戴尔PowerEdge R740安装了Centos 8 的桌面操作系统,下载google-chrome安装文件,并安装后,重启后无法进入登录界面,按ctrl+alt+F2进入命令行界面仍处于死机状态解决方法: 1)在启动项中的kernel 的quiet之前添加数字 1,可进入操作系统命令行操作 2)卸载google-chrome 3)升级GUI和kernel后,可进入操作系统;或者使用yum update 直接全部升级 4)使...
2021-10-26 09:51:32 398
翻译 解决ES分片未分配的问题
1、定位问题分片:使用ES的cat API可以分析出未分配的分片信息及未分配的原因curl -XGETlocalhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grepUNASSIGNED命令返回信息包括索引名称、分片编号、是主分片还是副本分片、未分配原因等hole 0 P UNASSIGNED C...
2018-02-26 17:11:17 31345 6
原创 Maven更新
项目上右键,点击Maven->Update Project,在弹出的对话框中勾上“Force Update of Snapshots/Releases”
2017-11-06 11:16:57 573
转载 How to generate Hibernate mapping files & annotation with Hibernate Tools
转自:https://www.mkyong.com/hibernate/how-to-generate-code-with-hibernate-tools/In this article, we show you how to use Hibernate / JBoss Tools to generate Hibernate mapping files (hbm) and annota
2016-08-24 09:20:08 721
原创 SpringMVC整合Quartz
Spring 提供了两种方法使用org.quartz.JobDetail:MethodInvokingJobDetailFactoryBean和JobDetailFactoryBean。1)MethodInvokingJobDetailFactoryBean方法:在创建Job类时,不需要继承quartz的Job接口,但是需要在JavaConfig中配置Job的执行方法。MethodIn
2016-08-10 11:01:11 1356
原创 Spring +slf4j logger
添加slf4j-api和slf4j-log4j12 两个jar包: org.slf4j slf4j-api 1.7.21 org.slf4j slf4j-log4j12 1.7.21 在src/main/resources目录下添加配置文件log4j.properties:# Root lo
2016-07-29 09:31:27 946
原创 Spring 注册用户(使用Spring Validator 验证输入)
使用Spring MVC实现简单的用户注册,用户注册输入使用Spring Validator方式进行验证。A、实现注册界面registration.jsp:使用Spring jsp标签库:<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1
2016-07-28 10:44:40 857
原创 Spring security +Hibernate+UserDetailsService认证
定义数据库表:users和user_roles:CREATE TABLE `users` ( `username` varchar(45) NOT NULL, `password` varchar(60) NOT NULL,//如果使用BCryptPasswordEncoder加密,必须使长度大于60 `enabled` tinyint(1) NOT NULL, PRIMARY K
2016-07-26 17:26:29 2125 1
原创 Spring 消息本地化实现(使用注释实现)/使用自定义消息
配置ResourceBundleMessageSource的Bean,在AppConfig中添加messageSource方法:import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.ComponentScan;import org.springfram
2016-07-26 09:17:07 1421
原创 Spring security使用自定义登录界面且显示登录异常信息的例子
eclipse中的工程结构:1、配置Maven的pom文件:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 htt
2016-07-25 16:09:03 14323
原创 SpringMVC+Jasperreports出现的java.lang.NoSuchMethodError问题
在SpringMVC和Jasperreports整合过程中,出现 类似找不到方法的问题如:nested exception is java.lang.NoSuchMethodError: net.sf.jasperreports.engine.util.JRLoader.loadObjectFromFile(Ljava/lang/String;)Ljava/lang/Object;看到这种
2016-07-10 11:43:54 1241
转载 Working with JasperReports for easy report generation
转自:http://www.jcombat.com/spring/working-with-jasperreports-for-easy-report-generationJasperReports is a Java based open source report generating engine. It has great dynamic report generating
2016-06-17 16:14:07 668
转载 关于iReport-5.6.0之前版本 “无法启动”或者“一开就关闭”的 某些原因
转自:http://www.cnblogs.com/shortboy/p/3858201.html在经过Google搜索后。外国的大神说:We don't support Java 8 right now. Support will be added in next versions.大概意思就说。暂时iReport-5.6.0不支持java8的环境。下一个版本支持吧!所以
2016-06-06 09:03:03 1876
转载 PYTHON-基础-时间日期处理小结
转自:http://www.wklken.me/posts/2015/03/03/python-base-datetime.htmlPython-基础-时间日期处理小结涉及对象1. datetime2. timestamp3. time tuple4. string5. datedatetime基本操作1. 获取当前datet
2016-05-16 15:02:35 489
原创 mysql 导出数据库部分字段或部分数据
搜了挺长时间,都说mysqldump只能导出全部字段,可根据条件导出部分数据的全部字段,网搜了下发现一个导出部分字段的方法,使用select concat('insert into table_name(column1,column2...) values(\"',column_1,'\",\"',column_2,'\"') into outfile 'file_name' from table
2016-05-05 14:08:22 6230
转载 解决js输出汉字乱码问题
转自:http://cssteach.com/webmake/js/2.html当我们需要使用js输出汉字时,偶然会出现输出的中文汉字乱码的情况,在网上收了很多解决方案 1、在mata中加2、引入js时制定编码3、这2种方案完全无任何效果,检查js文件是否和自己网站的编码不一致,这个情况导致的机率最大了如果有Dreamweaver的朋友,使用Dreamwea
2016-05-03 13:50:14 25325 1
转载 IIS7 请求筛选模块被配置为拒绝超过请求内容长度的请求
转自:http://www.cnblogs.com/LCX/archive/2010/07/10/1774978.html把以下内容加在web.config的节点 security> requestFiltering > requestLimits maxAllowedContentLength="1024000000" >requestLimits>
2016-03-22 10:48:51 3261
转载 System.Web.HttpException: 超过了最大请求长度!解决办法[转帖]
转自:http://www.cnblogs.com/liangwei389/archive/2008/05/01/1178785.htmlasp.net默认最大上传文件大小为4096如果是单个项目修改web.config文件可以改变这个默认值 多个项目通常修改 c:\winnt
2016-03-22 10:06:34 9844
转载 SpringMVC - 页面form表单绑定对象
转自:http://www.jianshu.com/p/a30db138e8b3由于最近有一个项目需要修改权限管理的action层,由于以前是用Struts2写的,现在需要修改成Spring MVC,由于之前没有使用过Spring MVC,自己虽然私下用了一下,但是并没有使用太多高级特性。这次开始进一步的了解Spring的强大。废话不多说直接上代码...../rpi
2016-03-11 16:52:25 3241
原创 springMVC+hibernate+maven整合开发
1、Causedby:java.lang.ClassNotFoundException:org.hibernate.service.jta.platform.spi.JtaPlatform异常,由Spring和Hibernate的版本不协调导致,参见:http://www.cnblogs.com/leiOOlei/p/3668229.html2、JSTL不能正常执行,servlet版本低于
2016-02-29 22:04:45 447
转载 解决Eclipse建立Maven项目后无法建立src/main/java资源文件夹的办法
转自:http://www.cnblogs.com/xiaona/p/4837b46b68d3f33642d0f470cad05101.html 建立好一个Maven项目后,如果Java Resources资源文件下没有src/main/java文件夹,并且在手动创建这个文件时提示“已存在文件”。这说明,在这个项目配置中已经有了src/main/java这个文件夹,至于为什么不显示,
2016-02-28 18:39:21 571
转载 How to solve “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse
转自:http://crunchify.com/how-to-solve-dynamic-web-module-3-1-requires-java-1-7-or-newer-in-eclipse/Have you noticed above type of error in your Eclipse? When you’re creating a project with Dy
2016-02-12 16:02:38 754
转载 Mysql设置允许外网访问(图文)
转自:http://www.cnblogs.com/yuejin/archive/2013/11/12/3419467.html 1、打开mysql.exe(MySQL Command Line Client),输入密码2、输入:use mysql;3、查询host输入: select user,host from user;4、创建host(如
2015-07-30 08:50:13 609
转载 HOW TO INSTALL PHANTOMJS ON A CENTOS SERVER
转自:http://www.sameerhalai.com/blog/how-to-install-phantomjs-on-a-centos-server/I was playing around with using a server to run end to end scenario testing using PhantomJs(new to it, check out so
2015-07-24 16:48:28 712
转载 MS access sql injection cheat sheet -version 0.2
转自:http://nibblesec.org/files/MSAccessSQLi/MSAccessSQLi.html
2015-07-23 10:31:05 455
转载 国内各类 WebShell 密码大全 爆破、社工用 webshell-password
转自:http://www.zbeol.com/blog/post/1856.html!@#123*******000110011C12010510111112123123!@#12332112345123456123654123654789123654789!123654789.123go1314520133
2015-07-13 17:44:24 7811
转载 Linux下暴力破解工具Hydra详解
转自:http://www.cnblogs.com/mchina/archive/2013/01/01/2840815.html一、简介Number one of the biggest security holes are passwords, as every password security study shows. Hydra is a parallized
2015-07-10 09:57:27 648
转载 Detecting Web Application Firewalls
转自:https://pentestlab.wordpress.com/2013/01/13/detecting-web-application-firewalls/Web application firewalls play an important role in the security of websites as they can mitigate risks and the
2015-07-09 10:11:31 636
转载 Guide to understanding XSS – XSS payloads, attack vectors, BeEF hooking, MiTM with Shank and some hi
转自:http://www.securesolutions.no/xss-explained/Cross site scripting is vulnerabilities in web applications that involves injecting valid HTML or scripts in some form or way.XSS is a very wid
2015-07-07 16:00:00 1452
转载 The Browser Exploitation Framework (BeEF) – Part 1
转自:http://resources.infosecinstitute.com/beef-part-1/1. IntroductionWe can categorize the BeEF social engineering framework as shown in the picture below:We can read more about t
2015-07-07 10:19:07 1408
转载 爬虫采集-基于webkit核心的客户端Ghost.py [爬虫实例]
转自:http://rfyiamcool.blog.51cto.com/1030776/1287810对与要时不时要抓取页面的我们来说,是痛苦的~由于目前的Web开发中AJAX、Javascript、CSS的大量使用,一些网站上的重要数据是由Ajax或Javascript动态生成的,并不能直接通过解析html页面内容就能获得(例如采用urllib2,mechanize、lxml
2015-05-25 15:31:39 2086
转载 ConfigParser – Work with configuration files
引自:http://pymotw.com/2/ConfigParser/Use the ConfigParser module to manage user-editable configuration files for an application. The configuration files are organized into sections, and each se
2015-05-14 14:33:00 519
转载 CentOS Linux上的phantomjs安装教程
转自:http://www.oicqzone.com/pc/2014092319826.htmlsudo apt-get update sudo apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev libxft-dev git clone git://github.co
2015-05-11 16:31:30 6936
转载 使用Selenium和PhantomJS解析带JS的网页
转自:http://smilejay.com/2013/12/try-phantomjs-with-selenium/有的网页,不能直接通过wget/curl等命令、或者直接使用Python中的liburl这样的函数库来直接获取其真正展现给用户的信息,因为里面包含有JavaScript脚本(而该JS和页面数据的生成相关),需要通过Firefox、Chrome等浏览器渲染后才能得到想要看
2015-05-06 15:32:50 2511
转载 Web Scraping Ajax and Javascript Sites
转自:http://blog.databigbang.com/web-scraping-ajax-and-javascript-sites/IntroductionMost crawling frameworks used for scraping cannot be used for Javascript or Ajax. Their scope is limited t
2015-05-06 10:09:45 1082
转载 Scrapy: Run Using TOR and Multiple Agents
转自:http://pkmishra.github.io/blog/2013/03/18/how-to-run-scrapy-with-TOR-and-multiple-browser-agents-part-1-mac/Scrapy is a brilliant and well documented crawler written in python. Though it is n
2015-05-04 16:38:05 859
转载 Tor隐身大法 —— 用Tor来帮助我们进行渗透测试
转自:http://drops.wooyun.org/tips/12260x00 背景(编者:在这篇文章里,Chris Crowley提供了一些利用Tor来进行渗透测试的方法,他提供的一些细节和脚本配置非常有用,尤其是他对Privoxy 的讨论部分,谢谢!)By Chris Crowley我认为渗透测试的真正价值是能模拟现实世界的真实攻击行为,所以渗透测试人员应该尽量将
2015-04-27 09:27:13 14660
转载 Build a web app fast: Python, HTML & JavaScript resources
转自:http://www.pixelmonkey.org/2012/06/14/web-appWanna build a web app fast? Know a little bit about programming but want to build a modern web app using two well-supported, well-documented, and
2015-04-24 09:37:01 2242
驱动开发资料
2012-07-06
PE文件格式详解
2012-07-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人