- 博客(54)
- 收藏
- 关注
原创 去掉Win7快捷方式小箭头
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,196" /t reg_sz /ftaskkill /f /im explorer.exeattrib -s -r -h ...
2014-01-26 14:47:25
191
原创 DOS命令下使用sqlite3 命令中文乱码的解决办法
1、退出dos 或者重新开启在CMD窗口,输下:chcp 65001 然后回车确定 注意 65001 是Unicode (UTF-8) 65001 的编码设置,Chinese Simplified (GB2312) 的设置为936 ,可以从EditPlus 工具的菜单【文档】--》【文档类型】查看 3、在命令行标题栏上点击右键,选择【属性】 -【字体】,将字体修改为【Lucida Console...
2013-12-18 14:46:38
212
原创 sqlite3 命令无法执行出现cannot locate 'sqlite3_enable_load_extension'... CANNOT LINK
使用的sqlite版本是旧的,从4.1的虚拟机里面导出一个新的就可以了。或者从这里下载http://pan.baidu.com/share/link?shareid=534077&uk=839950715或如附件
2013-12-16 22:43:19
786
原创 js中apply方法的使用
1、对象的继承,一般的做法是复制:Object.extendprototype.js的实现方式是: Object.extend = function(destination, source) { for (property in source) { destination[property] = source[property]; } re...
2013-09-25 10:20:50
131
原创 log4j:WARN No appenders could be found for logger (org.springframework.context.s
Spring 使用LOG4J 这个开源框架时输出如下信息:log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).log4j:WARN Please initialize the log4j system ...
2013-08-30 14:09:27
525
原创 在MyEclipse下修改部署工程名,运行Tomcat后工程名字改变的方法
虽然是转载,可是亲自测试过第一种方法,行之有效;第二种没有测试过,有兴趣可以尝试! 我们所要达到的目标是,在myEclipse中看到的是一种工程名,而在tomcat中运行时看到的是另外的工程名MyEclipse下如果修改部署工程名,按照平常右键refactor-->rename是不行的,实际发布的工程名仍然是原来的。 正确的做法: (1)右键点击【Pro...
2013-08-30 09:12:05
176
原创 CSS3 水平垂直居中
Center the child elements of a div box by using the box-align and box-pack properties together:div{width:350px;height:100px;border:1px solid black;/* Internet Explorer 10 */display:...
2013-07-22 13:30:01
123
原创 命令行查看端口号被哪个进程占用(转)
在网络程序的调试过程中,经常发生一些出乎意料的事情,比如创建一个TCP服务失败,这时候往往需要查看系统的网络情况,最常用的网络抓包当然非WireShark模式。但往往很多时候只需要查看某个端口的使用情况,它到底被那个进程(对应PID)占用了,或者你还需要把它Kill掉。如果你在Windows操作系统,你可以使用netstat命令来查询PID,然后可以打开任务管理器,查看这个PID对应的进程名;如...
2013-07-16 11:08:36
131
原创 JS 去除字符串的换行符
var str = $('#textarea').val();str = str .replace(/\\n/g,'');
2013-07-03 16:26:14
6211
原创 jQuery Chosen 赋值问题
源自:http://stackoverflow.com/questions/15005608/reselect-the-chosen-option-with-chosen-plugin-jquery jQuery("#combooptions").val(saveseleted);//update the value first jQuery("#combooptions")...
2013-06-26 16:52:42
925
原创 Difference between jQuery wrap and wrapAll
Notice the difference in the descriptions:.wrap(): Wrap an HTML structure around each element in the set of matched elements. .wrapAll(): Wrap an HTML structure around all elements in the set of...
2013-04-16 20:15:36
117
原创 JavaScript 或(||)运算符的妙用
var Book = function(author, title){ this.author = author || 'no author'; this.title = title || 'no title';}
2013-03-21 15:42:23
187
原创 JavaScript The random() and other Methods of the Math object
The random() Method The Math.random() method returns a random number between the 0 and the 1, not including either 0 or 1. This is a favorite tool of web sites that are trying to display r...
2013-03-18 18:13:31
118
原创 JavaScript Rounding Methods of the Math object
The next group of methods has to do with rounding decimal values into integers. Three methods — Math.ceil(), Math.floor(), and Math.round() — handle rounding in different ways as described her...
2013-03-18 17:59:39
116
原创 设置<img>在表格<table>中的单元格<td>中水平垂直居中
<td align="center" valign="middle"> <img src="images/checkBox.png"/></td> 其中 align="center" 为水平居中 ; valign="middle" 为垂直居中,这个属性有时不见得好用。
2013-03-16 08:42:09
599
原创 win7 去除快捷方式小箭头
运行cmd /k reg delete "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /f & taskkill /f /im explorer.exe & start explorer.exe Ok!
2013-03-06 14:53:18
97
原创 Java 自定义异常类
public class ExceptionTest { public static void main(String [] args){ int result; Test test = new Test(); try{ //result = test.devide(10, 0); result = test.devide(10, -2); //r...
2013-02-22 10:58:52
218
原创 Java趣味短码
原文:http://www.ituring.com.cn/article/27186#jtss-tqq 今天跟公司的童鞋聊天的时候,谈到了关于短码和代码的精简的方式,所以整理出来。需求很简单。首先定义一个类classItem{publicint key;publicint l;publicint r;};然后主函数的场景大概是这样publicstaticvoid m...
2013-01-24 21:45:46
202
原创 Android 4.x 去除输入框的蓝色边框
var ua = navigator.userAgent.toLowerCase(); if(ua.match(/android/i)=="android"){ var android = ua.split(/android/i)[1]; var version = trim(android.split("\.")[0]...
2013-01-24 21:04:06
237
原创 禁止IOS 上的web应用全屏显示滚动
if(ua.match(/ipad/i)=="ipad" || ua.match(/iphone/i)=="iphone"){ //禁止web应用全屏显示时页面可以滚动 document.ontouchmove = function(e){ if (document.body.scrollHeight == docume...
2013-01-24 20:58:24
425
原创 Android Sqlite数据库中判断某个表是否存在的SQL语句
select count(*) as isExsit from sqlite_master where type="table" and name=表名; 例如: select count(*) as isExsit from sqlite_master where type="table" and name="categories";
2012-12-15 14:38:08
417
原创 解决Foxit Reader 中文乱码问题
有些pdf,用Adobe PDF Reader打开正常,用Foxit Reader打开就乱码。解决办法:下载并解压附件fpdfcjk.zip,把fpdfcjk.bin复制到Fox Reader安装目录即可。经过试验,此方法有效。...
2012-12-11 15:40:31
3003
原创 JavaScript中substring和substr区别
1.substring 方法 定义和用法 substring 方法用于提取字符串中介于两个指定下标之间的字符。 语法 stringObject.substring(start,stop) 参数 描述 start 必需。一个非负的整数,规定要提取的子串的第一个字符在 stringObject 中的位置。 stop 可选。一个非负的整数,比要提取的子串的最后一个字符在 st...
2012-12-11 15:03:03
94
原创 linux 常用命令之删除 rm
rm [必要参数][选择性参数][目录或者文件]rm指令用来删除文件或者目录,如果使用rm来删除文件,通常仍可以将文件恢复。如果想保证该文件的内容无法复原,可以考虑使用shred指令。必要参数具体说明如下:参数 功能-d 删除可能仍有数据的目录-f 强制删除-i 交互模式-r 同时删除该目录下的所有目录层-v 运行时显示详细的信息...
2012-11-30 20:29:26
182
原创 android 命令行 sqlite3 not found 解决方案
电脑连接i9100后在电脑命令行中输入sqlite3, 显示sqlite3:not found 解决方案 解决方法:1)挂载 /system目录为可读写>adb shell# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system2)把附件中的 sqlite3 push 到设备中> adb pu...
2012-11-30 20:25:14
174
原创 安卓Android系统超级终端命令行大全
free1.作用free命令用来显示内存的使用情况,使用权限是所有用户。2.格式free [-b|-k|-m] [-o] [-s delay] [-t] [-V]3.主要参数-b -k -m:分别以字节(KB、MB)为单位显示内存使用情况。-s delay:显示每隔多少秒数来显示一次内存使用情况。-t:显示内存总和列。-o:不显示缓冲区调节列。4.应用实例free命令是用来查看内存使用情况的主...
2012-11-26 14:35:02
1390
原创 电脑 右键菜单中加入“记事本”项目的方法
在右键菜单中加入“记事本”项目的方法如下:开始------运行-------输入 Regedit.exe ----确定,打开[HKEY_CLASSES_ROOT\*\shell]子键,在“shell”下新建一个“记事本”项,在“记事本”下新建一个“COMMAND”项,选定“COMMAND”,双击右部窗口中的“默认”,在弹出对话框的“键值”文本框中输入“notepad.exe %1...
2012-11-21 16:01:26
544
原创 HTML 去除 li 前面的小黑点及 ul、li 部分属性介绍
li 默认显示时前面总是会有一个小黑点,可以用以下方法来清除。1、在CSS中写入代码ul li{list-style-type:none;} 2、在相关的页面找到head部分写入下面的代码<styletype="text/css">list-style:none;</style> 3、在li,ul内加入list-st...
2012-11-08 17:49:53
1833
原创 JavaScript for...in循环语句
for(变量in 集合或对象) { 执行语句块} <scriptlanguage="javascript"> varas= [1,4,5,6], output=""; for(varx in as){ output += " x= " + ...
2012-11-07 14:50:04
113
原创 Android 工程混淆后无法找到自定义控件类的解决方案
Android 工程混淆后报出如下错误: 10-1913:26:19.750: E/AndroidRuntime(13654): Caused by:android.view.InflateException: Binary XML file line #193: Error inflating … …E/AndroidRuntime(13480):Caused ...
2012-10-30 18:07:40
632
原创 JavaScript 性能优化之 for 语句
在开发时,很多开发者都会用到for语句与数组做循环来做查询;但手机的性能对循环数据一旦超过5000条数据(例如I9008手机)将会很吃力,所以建议开发者用for语句来做循环查询时,最好用以下的方法来做查询:把 for(var i = 0, len = array.length; i < len; i++){ if(array[i] == key){ ...
2012-10-30 17:45:35
109
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人