首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年1月19日

摘要: 转:这个是拆机后断了电源,导致时间不对,也就是说现在电脑的时间比U盘制作的时间还早,所以有这样的错误提示。在终端里面修改时间请参考下面的代码,按回车键确认:date 062614102014.3006是月,26是日,14是时,10是分,2014是年,30是秒注意:一定要修改为现在的时间,误差不超过1... 阅读全文

posted @ 2016-01-19 16:15 达奇 阅读(365) 评论(0) 推荐(1) 编辑

2014年11月19日

摘要: 作者:金家藩爱徒(刘玉村) 我已经看了好多遍了,每一遍都感动,索性收藏.----------------------------------------------------------向作者致敬传奇的优秀设计——弱势玩家有多种途径报复社会现在的网游经常是开服后很快变鬼服,一个重要的原因是完全不... 阅读全文

posted @ 2014-11-19 16:11 达奇 阅读(817) 评论(0) 推荐(1) 编辑

2014年10月10日

摘要: function hasWebp () { // 查看Cookie,如果没有则进行以下逻辑 var img = new Image(); img.onload = handleSupport; img.onerror = handleNotSupport; img.sr... 阅读全文

posted @ 2014-10-10 16:00 达奇 阅读(1829) 评论(0) 推荐(1) 编辑

2014年10月9日

摘要: 搞IT的,我想提啊,刚才我那个,后来那个也有知友也有给我看。。。。那个我想啊引申一下这个IT从业者问题。我有这个、这、这、这,我想这事儿、也不是绕开你们。我想侧重讲这么一个。就是说现在这个搞IT的,现在我们国家的这个谈到IT业界,这个程序员队伍,我觉得,有一个很重要一个部分叫做码农。就是,码农嘛,这... 阅读全文

posted @ 2014-10-09 10:53 达奇 阅读(288) 评论(0) 推荐(0) 编辑

2014年9月28日

摘要: 将 “phpMyAdmin/libraries”文件夹下的config.default.php文件中的$cfg['Servers'][$i]['host'] ='localhost';修改为$cfg['Servers'][$i]['host'] ='127.0.0.1'; 阅读全文

posted @ 2014-09-28 15:46 达奇 阅读(715) 评论(0) 推荐(0) 编辑

2014年8月7日

摘要: html5 带进度上传function fileSelected() { var file = document.getElementById('fileToUpload').files[0]; if (file) { var fileSize = 0;... 阅读全文

posted @ 2014-08-07 17:48 达奇 阅读(1919) 评论(0) 推荐(0) 编辑

2014年8月4日

摘要: http://docs.webplatform.org/wiki/css/properties/shape-outside 阅读全文

posted @ 2014-08-04 12:21 达奇 阅读(423) 评论(0) 推荐(0) 编辑

2014年6月21日

摘要: 百度和淘宝并没有正式的提供一个公开API给我们用,但是经过分析他们的源代码,还是找到了解决方法。/*baidu&taobao callback*/function dachie(d) { if (d.s) return d.s else { return d.result.... 阅读全文

posted @ 2014-06-21 23:45 达奇 阅读(5596) 评论(2) 推荐(2) 编辑

2014年5月22日

摘要: 用Sublime Text 2自己打开自己的二进制文件:Sublime Text 2/Contents/MacOS/Sublime Text 2搜索所有3342 3032都替换成3242 3032保存后退出重新运行,输入任意注册码注册即可注册码样本:—–BEGIN LICENSE—–hiwanzUn... 阅读全文

posted @ 2014-05-22 09:45 达奇 阅读(2627) 评论(0) 推荐(0) 编辑

2014年4月15日

摘要: function parseURL(url) { var a = document.createElement('a'); a.href = url; return { source: url, protocol: a.protocol.replace... 阅读全文

posted @ 2014-04-15 13:32 达奇 阅读(609) 评论(0) 推荐(0) 编辑

2014年3月21日

摘要: function rc4(data, key) { var seq = Array(256); var das = Array(data.length); for (var i = 0; i < 256; i++) { seq[i] = i; var j = (j + seq[i] + key.charCodeAt(i % key.length)) % 256; var temp = seq[i]; seq[i] = seq[j]; seq[j] = temp } for (var i = 0;... 阅读全文

posted @ 2014-03-21 17:29 达奇 阅读(585) 评论(0) 推荐(0) 编辑

2013年7月12日

摘要: Arale - http://aralejs.org/Como(盛大) - http://www.comsome.comEdoJs - http://www.edojs.com/DWZ - http://j-ui.com/JX(腾讯) - http://alloyteam.github.com/JXJSI - http://code.google.com/p/jsi/KISSY(淘宝) - http://www.kissyui.comKindEditor - https://github.com/kindsoft/kindeditorNJF - http://code.google.com/p 阅读全文

posted @ 2013-07-12 10:31 达奇 阅读(393) 评论(0) 推荐(0) 编辑

2013年7月3日

摘要: http://lite-ext.googlecode.com/svn/trunk/lite-ext/playground/vertical-center/image-center.html 阅读全文

posted @ 2013-07-03 13:08 达奇 阅读(344) 评论(2) 推荐(0) 编辑

2013年5月31日

摘要: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" /> 阅读全文

posted @ 2013-05-31 13:54 达奇 阅读(2430) 评论(0) 推荐(0) 编辑

2013年5月23日

摘要: /*fix array map*/ if ( ! Array.prototype.map ) { Array.prototype.map = function ( callback ) { var len = this.length; if ( typeof callback != 'function' ) throw new TypeError ( ); var res = new Array ( len ); var thisArg = arguments [ 1 ]; for ( var i = 0 ; i < len ; i ++ ) { if ( i in th 阅读全文

posted @ 2013-05-23 17:11 达奇 阅读(290) 评论(0) 推荐(0) 编辑

2013年4月23日

摘要: 原因是返回时 的response.setContentType("application/json; charset=UTF-8");json的mime为:application/json ie一解析认为是文件,所已提示下载解决办法 是 返回时 content-type 设置为 text/html 阅读全文

posted @ 2013-04-23 14:06 达奇 阅读(328) 评论(0) 推荐(0) 编辑

2013年4月21日

摘要: var arr = [];var arr1 = ["1"];var arr2 = ["2"];arr = arr.concat(arr1,arr2);console.log(arr); 阅读全文

posted @ 2013-04-21 18:50 达奇 阅读(221) 评论(0) 推荐(0) 编辑

2013年4月18日

摘要: $('selector').autocomplete ({ minLength: 0, source: function (t, r) { // get list here } }) .focus ( function() { if (this.value == "") { $(this).autocomplete('search', ''); } } );感谢:http://www.sikosoft.com/item/activate_jquery_autocomplete_on_focus 阅读全文

posted @ 2013-04-18 15:49 达奇 阅读(360) 评论(0) 推荐(0) 编辑

2013年4月7日

摘要: Teleport Ultra 下载的源代码会增加很多无用的属性或信息,用以下两条正则可以清除.----------------------------------------------------------------------------------tppabs="[^\>\ ]+ 替换 为 空javascript\:if\(confirm\(\'http[^"]+ 替换为 # 或者 javascript:; 根据自己需要 阅读全文

posted @ 2013-04-07 10:53 达奇 阅读(944) 评论(0) 推荐(0) 编辑

2013年4月2日

摘要: //返回页面的高度 function pageHeight() { if (window.innerHeight && window.scrollMaxY) { yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight) { yScroll = document.body.scrollHeight; } else { yScroll = document.body.offse... 阅读全文

posted @ 2013-04-02 14:14 达奇 阅读(260) 评论(0) 推荐(0) 编辑