摘要:
计算相关进程数: tasklist|find /i "cmd.exe" 安装git的可以 tasklist|find /i "cmd.exe" | wc -l
阅读全文
posted @ 2017-11-02 17:34
bug_x
阅读(139)
推荐(0)
摘要:
计算高度: var a = document.body.clientHeight/2;console.log(a) window.scrollTo(0, document.body.clientHeight/2); scrollTop=document.documentElement.scrollT
阅读全文
posted @ 2017-11-02 17:32
bug_x
阅读(116)
推荐(0)
摘要:
以前使用mysql不是很多,对mysql的函数也不是很熟悉,遇到这个问题第一时间百度搜索,搜索到这两种方法,这两种方法是排在百度第一条的博客。 方法一 SELECT DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(birthday)), '%Y')+0 AS
阅读全文
posted @ 2017-10-12 14:36
bug_x
阅读(249)
推荐(0)
摘要:
https://www.drupal.org/docs/8/api/database-api/dynamic-queries/count-queries https://www.drupal.org/docs/7/api/database-api/dynamic-queries/joins http
阅读全文
posted @ 2017-09-14 15:28
bug_x
阅读(148)
推荐(0)
摘要:
执行mysql update,或者delete的时候会遇到: You can't specify target table for update in FROM clause 相关的原因自不必说:下面有stackoverflow中的帖子: https://stackoverflow.com/ques
阅读全文
posted @ 2017-09-13 17:02
bug_x
阅读(1146)
推荐(0)
摘要:
1、shell.openItem(fullPath) shell.showItemInFolder(fullPath) //如果fullPath 是一个文件夹则打开,如果是一个文件,则打开其所在文件夹 https://electron.atom.io/docs/api/shell/ 2\截图: ht
阅读全文
posted @ 2017-07-27 10:55
bug_x
阅读(718)
推荐(0)
摘要:
nodeJs读取文件(readfile) j json 处理:
阅读全文
posted @ 2017-07-17 09:50
bug_x
阅读(219)
推荐(0)
摘要:
query.inc 文件: sql语句:
阅读全文
posted @ 2017-06-15 11:17
bug_x
阅读(242)
推荐(0)
摘要:
ERROR app.wsutils 419 INCRON: Error: ('HY000', '[HY000] [MySQL][ODBC 5.2(w) Driver][mysqld-5.7.7-rc-log]Index column size too large. The maximum colum
阅读全文
posted @ 2017-05-22 09:15
bug_x
阅读(3239)
推荐(0)
摘要:
function filter_emoji_string($str){ $str = trim($str); $str = preg_replace_callback('/./u',function (array $match) {return strlen($match[0]) >= 4 ? ''
阅读全文
posted @ 2017-05-17 19:32
bug_x
阅读(240)
推荐(0)