- 博客(796)
- 资源 (624)
- 收藏
- 关注
原创 Android给按钮添加单击事件
Button android:id="@+id/btnTakePhoto" android:layout_width="150dp" android:layout_height="50dp" android:text="拍照" android:layout_centerInParent="true" />------------------packa
2016-09-19 22:45:25 971
转载 3389连接超时设置
原文:http://www.cnblogs.com/hubing/p/4302282.html我们在管理服务器操作时,有时候需要长时间操作服务器,有时候稍微离开下倒杯水或接个稍长点的电话,就超时断开了很烦啦!有没有方法解决这个问题类?答案是有的!我只要在组策略里面,稍微修改下超时时间就可以了。可以根据需要适当延长超时时间,或永不超时。具体设置为: 打开电脑选择运行,输入g
2016-09-19 17:57:17 1170
原创 ZwQuerySystemInformation
ZwQuerySystemInformation.h#ifndef ZwQuerySystemInformation_H_#define ZwQuerySystemInformation_H_#include typedef enum _SYSTEM_INFORMATION_CLASS { SystemBasicInformation,
2016-09-11 14:08:36 3170 1
原创 AttributeError: module 'html5lib.treebuilders' has no attribute '_base'
AttributeError: module 'html5lib.treebuilders' has no attribute '_base'出错的原因是我使用的Python版本是:Python36-32解决方法: 将python版本改为:Python35-32
2016-09-05 11:58:13 2978
原创 Privoxy代码下载
官网官网如何下载Privoxy的说明如下:https://sourceforge.net/p/ijbswa/code/?source=navbarAnonymous CVS AccessThis project's SourceForge.net CVS repository can be checked out through anonymous (pserver) CVS wi
2016-09-04 18:38:11 1859
原创 VC提升进程权限
#include #include #include #include #pragma comment(lib, "Dbghelp.lib")#include #include using namespace std;BOOL EnabledDebugPrivilege(){ HANDLE hToken; BOOL fOk=FALSE; if(Ope
2016-09-04 00:47:48 2213
原创 VC判断指定进程是否存在IsExistProcess
#include BOOL IsExistProcess(CONST CHAR* szProcessName){ PROCESSENTRY32 processEntry32; HANDLE toolHelp32Snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if (((int)toolHelp32Sna
2016-09-04 00:44:31 5476
原创 MFC ShowLog(CString strLog)
VOID CShieldDomainDlgDlg::ShowLog(CString strLog){ SYSTEMTIME sysTime; GetLocalTime(&sysTime ); CString strTime; strTime.Format("%04d%02d%02d %02d:%02d:%02d:%03d", sysTime.wYear, sy
2016-09-02 12:59:49 1039
原创 SQL万能密码:' or 1='1
select name,pass from tbAdmin where name='admin' and pass='123456'输入用户名:' or 1='1SQL变成下面这个样子:select name,pass from tbAdmin where name='' or 1='1' and pass='123456'1='1' 永远为真,所以
2016-08-15 23:41:26 63131 3
原创 SQL注入之注释
// 这里以MySQL为例子select name,pass from tbAdmin where name='admin' and pass='123456'输入:admin' or 1=1#SQL变成下面这个样子:select name,pass from tbAdmin where name='admin' or 1=1#' and pass='1234
2016-08-15 23:34:50 7002
原创 C/CPP UTF8编码转成汉字 \u7528\u6237\u4e0d
参考文章:http://www.qingfengju.com/article.asp?id=245现在的网站,经常返回下面这样的字符串:"error":"\u7528\u6237\u4e0d\u5b58\u5728\u6216\u5bc6\u7801\u9519\u8bef"}其中的\u7528等就是汉字的UTF8编码了,如何将其还原成相应的字符呢?代码如下:#
2016-08-14 23:02:47 75414
原创 易语言 取变量地址
取变量地址() 属于特殊功能支持库,新建易语言工程时默认没有导入,所以我们必须手动导入:工具--->支持库配置--->特殊功能支持库
2016-08-13 22:50:04 6080
原创 C# 获取SQL Server所有的数据库名称
参考文章:http://www.cnblogs.com/Abel_cn/archive/2008/12/09/1351425.html// ... /// /// 获取数据库连接对象 /// /// /// public SqlConnection getSqlConnectio
2016-08-11 15:18:34 5476
原创 yii\web\Request::cookieValidationKey must be configured with a secret key.
参考:http://www.yiiframework.com/forum/index.php/topic/56238-cookievalidationkey-must-be-configured-with-a-secret-key/我的yii2模板是:yii-basic-app-2.0.9.tgz解压后执行命令:yii serve --port=8888访问:http://lo
2016-08-09 23:49:28 6411
原创 No new migrations found. Your system is up-to-date.
参考文章:http://www.yiichina.com/doc/guide/2.0/db-migrations敲命令:yii migrate出现以下提示信息:Yii Migration Tool (based on Yii v2.0.9)No new migrations found. Your system is up-to-date.我想要执行某个mi
2016-08-04 23:50:38 4528
原创 Yii2安装
参考文章:http://www.yiichina.com/downloadhttp://www.yiichina.com/tutorial/324我的环境:C:\Users\Administrator>php -vPHP 5.5.30 (cli) (built: Sep 30 2015 13:50:25)Copyright (c) 1997-2015 The PHP
2016-07-19 23:52:41 1295
原创 js点超链接后,禁止跳转
参考文章:http://blog.163.com/huang_qy/blog/static/615601452012101411625600/
2016-07-12 14:27:05 3562
原创 grails在gsp页面显示资源图片
我的环境是:| Grails Version: 3.1.4| Groovy Version: 2.4.6| JVM Version: 1.7.0_80在工程目录src\main\webapp下面新建文件夹:resources,然后把需要的图像文件放到resources目录里面,如:xx.jpg在gsp页面添加以下代码即可显示我们之前添加的图像了:或
2016-07-02 13:32:23 1693
原创 grails调用groovy脚本
参考文章:http://www.poorren.com/java-groovy-dynamic-algorithm/http://www.cnblogs.com/jizha/p/5027695.html?utm_source=tuicool&utm_medium=referralgrails本身就是使用groovy开发的,所以调用groovy脚本也是很方便的。我封装
2016-06-24 13:08:04 1455
原创 java调用javascript文件方法
参考文章:http://www.cnblogs.com/charlexu/p/3424963.htmlimport java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStreamReader;import java.io.Reader;impo
2016-06-23 20:57:19 12632
原创 更改npm全局模块和cache默认安装位置
参考文章:http://xiaoyaojones.blog.163.com/blog/static/28370125201351501113581/1、因为我安装的Node.js自带了npm,所以在nodejs文件夹里面新建以下两个目录:node_globalnode_cache2、启动CMD依次执行以下两条命令npm config set prefix "
2016-06-22 18:13:34 42870 2
原创 grails Deadlock found when trying to get lock; try restarting transaction
参考文章: http://blog.csdn.net/aesop_wubo/article/details/8286215 http://www.aichengxu.com/view/24054 最近碰到在领域类中自关联时产生的死锁问题,被困扰了好几天, 后面解决时发现太简单了,真是始料不及呀。。。 // 我碰到死锁时,领域类的关键代码如下,翻开数据库day
2016-06-22 11:02:23 3473
原创 MySQL清空表数据
参考文章:http://bbs.csdn.net/topics/390083087数据表有外键约束时想要清空数据很是麻烦,原来可以禁用外键,删除后再恢复外键功能即可,如:// 清空表数据SET FOREIGN_KEY_CHECKS = 0;delete from tbXXX;SET FOREIGN_KEY_CHECKS = 1;
2016-06-20 09:43:47 2330
原创 grails org.hibernate.LazyInitializationException: could not initialize proxy - no Session
参考文章:http://stackoverflow.com/questions/1368025/grails-and-hibernates-lazy-initialization-exceptionhttp://piperzero.iteye.com/blog/1660556错误信息:Caused by: org.hibernate.LazyInitializationEx
2016-06-15 15:21:24 1994
原创 解决grails上传文件过大,发生异常的问题
参考文章:http://my.oschina.net/scjelly/blog/523705http://docs.grails.org/latest/guide/spring.htmlhttp://docs.grails.org/latest/guide/theWebLayer.html#uploadingFiles我的环境:| Grails Version: 3.1
2016-06-13 17:06:21 3266
原创 window.onscroll无效问题
我的环境:| Grails Version: 3.1.4| Groovy Version: 2.4.6| JVM Version: 1.7.0_80--------------------------------------------------------------------------------------------------------------------
2016-06-11 00:24:04 17203 4
原创 grails指定端口运行工程
我的环境: | Grails Version: 3.1.4| Groovy Version: 2.4.6| JVM Version: 1.7.0_80根据grails手册,可以通过以下方式指定端口,不过我发现无效哈!grails -Dserver.port=8090 run-app-----------------------------------------
2016-05-31 20:46:52 1687
原创 IntelliJ IDEA 15.0.2运行grails工程不能自动重新加载修改后的类的问题
之前运行grails工程,然后修改控制器类,服务类等,IDEA都能够自动重新加载修改后的类,这样就不用重新启动工程了,很是方便。今天发现竟然不能自动加载修改后的类了,真是郁闷呀。。。-------------------------------------------------------------------------------------------------------
2016-05-30 18:14:31 3088
原创 Error Error occurred running Grails CLI: No profile found for name [web]. (Use --stacktrace to see
我的环境:| Grails Version: 3.1.4| Groovy Version: 2.4.6| JVM Version: 1.7.0_80C:\Users\Administrator>----------------------------------------------------------------------错误信息:D:\Projects\
2016-05-28 22:18:47 6388
原创 Grails在服务类中获取web根目录
参考文章:http://www.oschina.net/code/snippet_1579_2199众所周知在控制器,获取web根目录只要调用以下这行代码就可以了:servletContext.getRealPath("/")然而在服务类中没有servletContext,这下麻烦大了,如何得到servletContext呢?困扰了我好久。。。解法方法:
2016-05-17 09:44:55 2338
原创 java URL根据相对路径获取绝对路径
参考文章:http://jsczxy2.iteye.com/blog/1683516public static String getAbsUrl(String absolutePath, String relativePath){ try { URL absoluteUrl = new URL(absolutePath); URL parseUrl = new URL
2016-05-16 14:25:07 8077
原创 No 'Access-Control-Allow-Origin' header is present on the requested resource.
我的环境:| Grails Version: 3.1.4| Groovy Version: 2.4.6| JVM Version: 1.7.0_80-------------------------------------------------------------------错误信息:XMLHttpRequest cannot load http://xxx. No
2016-05-10 16:22:23 1767
原创 org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
参考文章:http://www.tuicool.com/articles/uuMJbu我的环境:| Grails Version: 3.1.4| Groovy Version: 2.4.6| JVM Version: 1.7.0_80-----------------------------------------------------------------------
2016-05-10 14:40:49 1248
原创 grails在服务类中获取配置文件的值
我的环境:| Grails Version: 3.1.4| Groovy Version: 2.4.6| JVM Version: 1.7.0_80配置文件是:application.yml------------------------------------------------application.yml文件有如下配置内容:topinf
2016-04-27 18:12:54 2089
原创 调用grails领域类save方法没反应,不成功问题
参考文章:http://akunamotata.iteye.com/blog/1742859问题: 今天在调用领域类的save方法时,没有任何反应,数据库没有任何数据,没有任何出错信息,真是奇怪了。。。解决方法:1.在调用领域类的save方法时,判断一下返回值,然后打印错误信息看看是什么原因引起的。if(!xxx.save()){
2016-04-27 18:06:36 1976
原创 html仿今日头条数据列表
例子代码下载:http://download.csdn.net/detail/friendan/9503019效果截图:收获如下:1、使用Respond.js解决了Bootstrap3栅格系统不兼容IE8的问题。2、知道了如何让两个div盒子完美的左右相邻。---------------------------------------------------------
2016-04-26 14:57:41 10586 1
原创 at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
我的环境:| Grails Version: 3.1.3| Groovy Version: 2.4.6| JVM Version: 1.7.0_80--------------------------------------------------------------------------------------------------今天启动grails项目出现如下
2016-04-25 12:49:10 1200
原创 ionic添加自定义xxx.js控制器文件不生效的问题
我的环境:C:\XXX>ionic -v1.7.14问题描述:1.我在ionic工程中添加了一个test.js文件,内容如下:angular.module('XXX.controllers').controller('TestCtrl', function ($scope, $http, $ionicHistory, $ionicLoading) {
2016-04-19 15:59:37 3069
原创 No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
参考文章:https://stackoverflow.com/questions/31032623/java-lang我的环境:| Grails Version: 3.1.3| Groovy Version: 2.4.6| JVM Version: 1.7.0_80今天在gsp页面查询数据库出现如下错误:java.lang.IllegalStateException
2016-04-19 09:00:36 950
UltraCompare v21.00.rar
2021-05-11
SecureCRT_SecureFX_9.0
2021-03-29
IHTMLDocument3HookSrc.rar
2021-01-05
NPSWF32调试版本.rar
2020-04-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人