- 博客(47)
- 资源 (19)
- 收藏
- 关注
原创 抓取百度关键词排名、标题、连接、描述
抓取百度关键词排名、标题、连接、描述转载请标明出处最近在做百度关键词排名的功能,发现网上资源比较这里写代码片少,于是自己琢磨了一下,写一下笔记; 本文重点在于提供思路,请不要过分依赖,本文主要靠抓取页面标签来完成,如果百度官网将页面标签修改了,请自行修改,如果遇到问题或需要修改的地方请私信我。 鸣谢:本公司SEO提供思路package cc.test.core;import org.htmlp
2016-11-03 12:00:44 722
原创 抓取百度关键词排名
最近在做百度关键词排名的功能,发现网上资源比较少,于是自己琢磨了一下,写一下笔记;本文重点在于提供思路,请不要过分依赖,本文主要靠抓取页面标签来完成,如果百度官网将页面标签修改了,请自行修改,如果遇到问题或需要修改的地方请私信我。鸣谢:本公司SEO提供思路package cc.test.core;import org.htmlparser.NodeFilter;impo
2016-11-03 11:42:32 178
原创 获取当前访问的路径
String returl = request.getRequestURL() + (request.getQueryString() == null ? "" : "?" + request.getQueryString());
2015-09-28 15:13:27 545
原创 美版iPhone 4s未激活解决方案
进入设置-蜂窝移动网络-漫游,把语音漫游数据漫游和CDMA国际漫游全部打开。然后关机重启 开机以后会提示正在等待激活,点确定,再过一小会儿提示还会提示一个iphone尚未激活,直接点忽略 然后在进入设置 - 蜂窝移动网络 - 漫游把国际漫游关掉 关掉以后 就等他重新搜索信号 搜索到了就会显示中国联通了 这样就基本正常了
2015-09-19 21:51:00 940
转载 安装mysql服务
在完成安装Mysql5.6后,使用mysql时,打开cmd,输入net start mysql,提示服务名无效,查看服务列表,也结果找不到mysql相关的服务,可以用下面方法去解决。解决方案:1、打开cmd,切换到mysql的bin目录下 (这个需要根据自己电脑mysql安装位置查找,下面是我的电脑上mysql安装目录)2、 C:\Program Files(x86)\MySQL5.6\bin
2015-09-12 21:23:02 101
转载 用Maven整合SpringMVC+Spring+Hibernate 框架,实现简单的插入数据库数据功能
一、搭建开始前的准备1、我用的MyEclipse2014版,大家也可以用IDEA。2、下载Tomcat(免安装解压包)、MySQL(zip包下载地址 免安装解压包,好处就是双击启动,最后我会把bat的启动发给大家)、用的Navicat for MySQL的MySQL的图形界面工具。3、配置环境变量CATALINA_HOME(path中添加%CATALINA_HOME%\lib;%CATALINA_H
2015-08-16 12:48:14 1598
转载 PLSQL Developer连接Oracle11g 64位数据库配置详解
PLSQL Developer连接Oracle11g 64位数据库配置详解 最近换了台64bit的电脑,所以oracle数据库也跟着换成了64bit的,不过问题也随之产生,由于plsql developer暂时没有64bit版本的,所以无法连接到64bit的oracle上,经过一番折腾,终于成功连接到数据库上,现记录下配置过程,以便查看。 1
2015-08-11 20:32:20 509
转载 eclipse maven plugin 插件 安装 和 配置
离线插件点击下载离线安装包:eclipse-maven-plugin.zip ( for eclipse helios or higher ) 。解压缩到任意目录(如这里的plugins目录):目录路径最好不要含有中文或空格。以下用 %maven-plugin% 表示插件解压缩的根目录。如这里的 E:/setup/dev/eclipse/plugins/maven插件安
2015-07-06 15:37:02 687
转载 优化Myeclipse10 Building Workspace速度慢等问题
优化Myeclipse10 Building Workspace速度慢等问题如题,Building Workspace速度慢的很大一部分原因是在没必要地validate那些JS文件。而:关掉Preference -> General -> Workspace中的Build automatically,或者:将Preference -> MyEclipse -> Validation
2015-06-06 10:27:33 382
转载 eclipse+webservice开发实例
转载出处:http://blog.csdn.net/xw13106209/article/details/7049614/(原文有问题,现已修改)1.参考文献:1.利用Java编写简单的WebService实例 http://nopainnogain.iteye.com/blog/7915252.Axis2与Eclipse整合开发Web Service ht
2015-04-08 17:41:53 312
转载 Eclipse环境下配置spket中ExtJS提示
出处:http://www.cnblogs.com/maowang1991/archive/2013/02/05/2893142.html使用eclipse编写extjs时,一定会用到spket这个插件,spket可以单独当作ide使用,也可以当作eclipse插件使用,我这里是当作eclipse的插件使用的,下面来一步步图解说明如何配置spket插件。第一步:下载spket插
2015-02-11 11:44:43 363
转载 如何解决Reporting Services目录数据库文件存在的问题
出处:http://blog.sina.com.cn/s/blog_6bace3cc0101jlxv.html错误提示:自检时提示“Reporting Services目录数据库文件存在”失败,“Reporting Services目录临时数据库文件存在”失败。错误原因:这是因为Reporting Services数据库目录下已存在ReportServer.mdf、ReportSe
2015-02-10 15:26:29 2914
转载 JS、JQuery和ExtJs动态创建DOM对象
出处:http://www.cnblogs.com/SanMaoSpace/p/3174644.html做了个简单使用JavaScript、JQuery、ExtJs进行DOM对象创建的测试,主要是使用JavaScript、JQuery、ExtJs动态创建Table对象、动态Table数据填充、多选控制。1.简单前台数据处理界面有点丑了,没美化界面,主要是JavaScript动态创建Ta
2015-02-10 12:51:21 1069
转载 tomcat无法下载ipa,apk等的解决及下载乱码
1、当web容器使用tomcat时有些文件是无法下载的,目前在pc版的浏览器还没发现这个问题,主要是在手机版的浏览器上。 问题是: 当用手机浏览器下载一个ipa文件时,出现乱码页面,经查看发现其实是手机浏览器不知道要下载ipa文件是一个什么类型的文件,所以浏览器把他当作了一个文本文件来处理,所以出现了该问题。 解决方法: 修改
2014-09-01 23:50:49 946
转载 checkbox多选删除
效果如下 提交页:test.jsprequest.setCharacterEncoding("gb2312");%>//int totalRecord = 0; String sql = "select * from news order by id ASC";ResultSet rs = temp.query(sql);//t
2014-05-31 11:39:12 591
转载 修改系统默认shell为bash
从 ubuntu 6.10 开始,ubuntu 就将先前默认的bash shell 更换成了dash shell;其表现为 /bin/sh 链接倒了/bin/dash而不是传统的/bin/bash。ubuntu edgy是第一个将dash作为默认shell来发行的版本,这似乎是受了debian的影响。wiki 里面有官方的解释,https://wiki.ubuntu.com/Das
2014-05-15 08:59:49 2653
转载 VMware下Ubuntu与宿主Windows共享文件夹
转载地址:http://blog.csdn.net/zz962/article/details/7706755概述1、安装VMware Tool2、设置共享步骤开始安装VMware Tool显示如下画面(如果宿主无法访问外网,可能会出现一个更新失败,可以无视之)通过下列命令解压、执行,分别是下面的tar和sudo的两行(下面是已有vm
2014-05-13 10:08:43 557
转载 arm-linux-gcc的安装
瞎忙了一下午,把arm-linux-gcc安装成功,以下是操作步骤:(基本是网上找的资料,自己没那本事)一: 网上下载个压缩包,我下载的是arm-linux-gcc-4.4.3-20100728.tar.gz,地址:http://arm9.net/download.asp二: Fedora 17 平台 解
2014-05-12 13:24:40 864
原创 C语言 sprintf 函数的使用
原型 sprintf( char *buffer, const char *format, [ argument] … ); 参数列表buffer:char型指针,指向将要写入的字符串的缓冲区。format:格式化字符串。[argument]...:可选参数,可以是任何类型的数据。返回值:字符串长度(strlen) 举例:sprintf(temp[4],"%
2014-03-28 11:01:37 768
转载 Windows 64 bit ADODB.Connection 错误"800a0ea9"
64位 Windows IIS 运行32bit程序,不完全兼容就出现: “Windows 64 bit ADODB.Connection 错误 '800a0ea9' 未指定提供程序” 解决方法:进CMD命令窗口:依次运行: 1. cd /d %systemdrive%\Inetpub\AdminScripts 2. cscript.exe adsu
2014-03-12 11:09:59 1509
原创 Tomcat 在win7/win8 系统下tomcat-users.xml.new(拒绝访问)解决方法
今天在运行项目时,Tomcat报出C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml.new (拒绝访问。) 我绞尽脑汁,没想出来什么原因,然后上网百度了一下,找到了解决方法, 原来tomcat 安装在Win7 系统C盘下是不允许 完全修改 、读取和写入的! 解决方法: 把
2014-01-22 15:37:54 2312
原创 SQL语句去掉重复记录,获取重复记录
SQL语句去掉重复记录,获取重复记录 --查询一个表中有效去掉重复的记录,UserID为自增长主键,RoleID为重复字段 SELECT MIN(UserID) AS UserID, RoleID FROM tmpTable GROUP BY RoleID SELECT RoleID FROM tmpTable GROUP BY RoleID HAVING (COUNT(
2013-12-16 13:53:07 624
原创 fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
终极解决方案:VS2010在经历一些更新后,建立Win32 Console Project时会出“error LNK1123” 错误,解决方案为将 项目|项目属性|配置属性|清单工具|输入和输出|嵌入清单 “是”改为“否”即可,但是没新建一个项目都要这样设置一次。在建立VS2010 Win32 Project项目时,按照上面解决方案依然发生了“error LNK1123”错误,经过
2013-12-14 10:08:41 559
原创 下标越界
现象:asp在win7或win server 2008情况下,将日期格式进行分解报出“Microsoft VBScript 运行时错误: 下标越界: '[number: 1]'”错误。解决方法:进入注册表(win+R键)->regedit->HKEY_USERS\.DEFAULT\Control Panel\International,在右边的窗口中有一项sShortDate,将yyyy/M/
2013-12-11 21:52:30 970
原创 C语言十进制转二进制
void main(){ int ival, n = 0; char bin[32]; scanf("%d", &ival); while(ival > 0) { bin[n++] = ival & 0x01; ival /= 2; } for(n--; n >= 0; n--)
2013-12-06 13:24:55 687
转载 MFC文件操作大全
OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT|OFN_ALLOWMULTISELECT, "All Files (*.*)|*.*||",AfxGetMainWnd()); CString str(" ",10000); mFileDlg.m_ofn.lpstrFile=str.GetBuffer(10000); str.ReleaseB
2013-12-05 19:20:02 82
原创 sql server 2008 不允许保存更改,您所做的更改要求删除并重新创建以下表 的解决办法
启动SQL Server 2008 Management Studio工具菜单----选项----Designers(设计器)----阻止保存要求重新创建表的更改 取消勾选即可。
2013-11-07 10:04:17 616
原创 激活sa用户
用T-SQL语句即可解决:用WINDOWS账户登录查询分析器,输入一下语句并执行:ALTER LOGIN sa ENABLE ;GOALTER LOGIN sa WITH PASSWORD = '' unlock, check_policy = off, check_expiration = off ;GO完成后,重新启动SQL SERVER服务,即可正常使用sa账户了。
2013-11-06 12:15:19 712
转载 _RecordsetPtr函数
_variant_t vUsername,vID,vname; //变量声明_RecordsetPtr m_pRecordset; //记录集CString strid;_ConnectionPtr connection;m_pRecordset.CreateInstance(__uuidof( Recordset )); //创建实例m_pRecordset->Ope
2013-11-02 14:09:24 1536
原创 mysql odbc 无效指针问题
作者在此说明,此方法不适用于所有人,这是在我搞了两天之后弄出来的,可以说只适用于我自己,如果您用的上就借鉴一下吧。 问题起因:是由于开发环境与软件最终运行的环境不同(兼容性问题)。开发环境:windows7_64bit,运行环境:windows 2003_32bit,我在开发环境中将软件发布之后,运行一切正常,当我把软件拷到运行环境中时,就出现“无效指针”,我找过很多方法都没用,
2013-07-03 09:07:34 757
原创 背景图片随网页的变化而变化(指大小)
Test#bg { position: absolute; z-index: -100; left: 0px; top: 0px; right: 0px; bottom: 0px; margin: 0px; padding: 0px;}#bgimg { width: 100%; height: 100%; margin: 0px; border-style: non
2013-04-25 14:39:38 1478 1
原创 C++创建线程
//在.h文件中static UINT ThreadBenAn(PVOID pPvoid);//申明线程函数//在.CPP文件中实现UINT CCenterServerDlg::ThreadBenAn(PVOID pPvoid){AfxMessageBox(_T("线程已启动!"));return 0;}//最后启动AfxBeginThrea
2013-04-20 14:12:34 612
转载 C++连接MySQL的两种方法
转载http://developer.51cto.com/art/201104/257338.htm注:第一种方法我没试,我用的是第二种方法!!!现在正做一个接口,通过不同的连接字符串操作不同的数据库。要用到mysql数据库,以前没用过这个数据库,用access和sql server比较多。通过网上的一些资料和自己的摸索,大致清楚了C++连接mysql的方法。可以通过2种方法实现。
2013-04-19 15:29:54 674
原创 将字符串转换为十六进制数
#include "stdio.h"#include int gsmString2Bytes(const char* pSrc, unsigned char* pDst, int nSrcLength){for (int i = 0; i {// 输出高4位if ((*pSrc >= '0') && (*pSrc {*pDst = (*pSrc - '0')
2013-04-17 10:34:06 1003
转载 一个建库和建表以及插入数据的实例
转载:http://blog.sina.com.cn/s/blog_571ae3fa0100mwk9.htmldrop database if exists school; //如果存在SCHOOL则删除 create databaseschool; //建立库SCHOOL use school; //打开库SCHOOL create tableteacher
2013-03-22 17:17:06 858
原创 MySQL基本命令集
1:使用SHOW语句找出在服务器上当前存在什么数据库:mysql> SHOW DATABASES;2:2、创建一个数据库MYSQLDATAmysql> CREATE DATABASE MYSQLDATA;3:选择你所创建的数据库mysql> USE MYSQLDATA; (按回车键出现Database changed 时说明操作成功!)4
2013-03-22 17:02:24 743
原创 Windows Server 2003+tomcat6.0+jdk1.6+mysql5.0部署WEB项目
准备工作:下载tomcat6.0(点击官网下载32bit or 64bit); jdk1.6(点击下载); MySQL5.0(点击下载); myeclipse8.5(将项目打包时来用,点击下载);各软件的安装过程我就不细说了,我这里的操作系统是server 2003,在这里多一句嘴,XP系统装到C盘下即可,如果是win7或者win8,
2013-03-22 13:43:36 1182
转载 java读写xml
java读写xmljava操作xml用的最多的应该是jdom开源包了,它是document模式的(虽然它用到了SAX模式),主要的API如下:1:SAXBuilder.build(FileInputStream("*.xml");获取xml文件,返回Document实例(读xml文件)2:Element.getChildren();获取该节点的所有字节点,返回List3:Ele
2013-03-14 14:04:52 549
原创 java中字符"\"和"/"的正则表达式问题
在java中我想把字符串中所有的"\"使用replaceAll转换成"/",解决方法如下:String aa = "a\\a\\a\\";String bb = aa.replaceAll("\\\\", "/");System.out.println(bb);
2013-03-14 10:28:26 552
Spring Cloud 中文文档 参考手册 中文版.pdf
2017-05-19
Spring Cloud 中文文档 参考手册 中文版
2017-05-19
jsoup 1.8.3(能通过代理访问)
2016-11-04
阿里云官网sdk
2016-11-03
最新全国省市县mysql表(2015)+百度地图定位
2016-05-16
用Maven整合SpringMVC+Spring+Hibernate 案例
2015-08-16
MFC文件操作
2013-12-05
win7下MySQL的ODBC驱动程序
2013-04-21
mysql-connector-java-5.1.20-bin.jar
2013-01-08
C语言游戏附代码(完整版)
2011-08-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人