上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: $array = [0,1,2,3,4];foreach ($array as &$val) { var_dump($val); $array[] = 'a';} 这段代码打印出来可不得了,非常可怕。 $array = [0,1,2,3,4];foreach ($array as $val) { v 阅读全文
posted @ 2018-07-09 10:24 qqisnow2021 阅读(79) 评论(0) 推荐(0)
摘要: <?php $memory1 = microtime( TRUE ); $data = array(); for($i=0;$i<1000;$i++) { $data[] = array( 'property1' => md5(microtime()), 'property2' => md5(mic 阅读全文
posted @ 2018-07-09 10:12 qqisnow2021 阅读(125) 评论(0) 推荐(0)
摘要: 1, browser zoom 要设置到100%2, screen resolution要设置到合适的数字3, 最好找到一个参照物-- css里面的pixel, 是按照dpi来的,是基于96dpi来算的的1个inch里面的点数,resolution变了,所以,1px在不同的resolution下其实 阅读全文
posted @ 2018-07-05 10:42 qqisnow2021 阅读(142) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/haochuang/p/5796284.html 阅读全文
posted @ 2018-07-05 07:53 qqisnow2021 阅读(133) 评论(0) 推荐(0)
摘要: https://stackoverflow.com/questions/861995/is-it-possible-for-git-merge-to-ignore-line-ending-differences/14195253#14195253 阅读全文
posted @ 2018-06-27 23:42 qqisnow2021 阅读(191) 评论(0) 推荐(0)
摘要: DNS:分布式ip到domain name的数据库系统,一种服务。 What is a DNS A record?IP address, 一般一个网站就是一个a记录,但访问量大的网站也会有多个a记录 What is a DNS C record?本来域名是doc.example.com但Cname就 阅读全文
posted @ 2018-06-21 10:33 qqisnow2021 阅读(552) 评论(0) 推荐(0)
摘要: windows: \n 换行到新行mac: \r 换行到新行linux: \n\r 换行到新行 阅读全文
posted @ 2018-06-20 17:23 qqisnow2021 阅读(104) 评论(0) 推荐(0)
摘要: session_start();setcookie("a","value");print $_COOKIE['a'];如果没有开头的session_start就不会有有效的cookie值- setcookie — 发送 Cookie 和我们以前想的不一样,这里的 发送时 server吧这个变量随着h 阅读全文
posted @ 2018-06-20 16:57 qqisnow2021 阅读(556) 评论(0) 推荐(0)
摘要: magic quote gpc的来龙去脉 https://ithelp.ithome.com.tw/articles/10113856htmlspeicalchars有很多是选项 http://www.w3school.com.cn/php/func_string_htmlspecialchars. 阅读全文
posted @ 2018-06-20 16:51 qqisnow2021 阅读(77) 评论(0) 推荐(0)
摘要: $int = ((float)0.58*100);$int = (int)$int;echo $int; 57- 结论不要用int去转化float, 不然会出现误差 阅读全文
posted @ 2018-06-20 15:22 qqisnow2021 阅读(126) 评论(0) 推荐(0)
摘要: [git checkout mastergit pull] git loggit reset --hard [sha] | git reset --hard origin/mastergit pull origin [branch] 阅读全文
posted @ 2018-06-13 16:01 qqisnow2021 阅读(197) 评论(0) 推荐(0)
摘要: git pull --rebase What’s happening here? Git will rewind (undo) all of your local commits, pull down the remote commits then replay your local commits 阅读全文
posted @ 2018-06-13 15:03 qqisnow2021 阅读(398) 评论(0) 推荐(0)
摘要: $a = ['a'];$b = ['b'];$c = $a + $b;var_dump($c);$a = ['a'];$b = ['b'];$c = array_merge($a + $b);var_dump($c); +: 不管是数字键还是字母键, 都已前方的为准array_merge: 如果是数 阅读全文
posted @ 2018-06-11 16:28 qqisnow2021 阅读(102) 评论(0) 推荐(0)
摘要: Open Chrome dev tools on any site you know has a source map included, click sources tab and you will immediately see why including source maps on prod 阅读全文
posted @ 2018-06-08 16:42 qqisnow2021 阅读(119) 评论(0) 推荐(0)
摘要: 写书好累 <HTTP抓包实战>终于出版(38/1064) » 还要这样的好书,过段时间,要买来看看,下次看到就买来看看看上次看到有个李智慧的书说什么架构什么分层,但一句实战的都没有,无语了,既想。。又想。。 写代码尽量用已有的方法,不要自己直接去数据库读取,因为公用的方法, 可能会有写接口,有人会从 阅读全文
posted @ 2018-06-08 13:29 qqisnow2021 阅读(119) 评论(0) 推荐(0)
摘要: 首次浏览一个页面是没有cookie名称和值的成功登陆之后出现一个cookie名称和值登出后cookie名称和值任然还在删除这个值然后访问页面 就是匿名用户的状态重新写入刚才的cookie名称和值立马进入登陆成功状态 如果把session表里的值拿出来是没有办法登陆的 阅读全文
posted @ 2018-06-07 15:53 qqisnow2021 阅读(232) 评论(0) 推荐(0)
摘要: 本地存储 storage/localstorage回话存储 windowSession各不相同 阅读全文
posted @ 2018-06-07 14:32 qqisnow2021 阅读(155) 评论(0) 推荐(0)
摘要: 相关的修改一个commit貌似这样比较清晰 阅读全文
posted @ 2018-05-25 09:32 qqisnow2021 阅读(130) 评论(0) 推荐(0)
摘要: char定长,但我们平时定义表的时候char(255)指的是字符数量, 插入的字符串超过这个数字的长度就会报错varchar变长 阅读全文
posted @ 2018-05-23 10:03 qqisnow2021 阅读(118) 评论(0) 推荐(0)
摘要: 在drupal里面 url就是生成URL link才是生成link的 两者区别真的很大呀 阅读全文
posted @ 2018-05-22 15:00 qqisnow2021 阅读(553) 评论(0) 推荐(0)
摘要: If a hunk contains just one line, only its start line number appears. Otherwise its line numbers look like start,count. An empty hunk is considered to 阅读全文
posted @ 2018-05-22 14:55 qqisnow2021 阅读(342) 评论(0) 推荐(0)
摘要: 在merge之前1 clean 本地文件 git status 最好是干净的2 compare / git diff, 最好是把潜在的冲突消灭掉在eclipse中如果有冲突的话是有红色方框显示的且冲突的地方在同一行 现在的问题是我有一个分支 上传了 Git reset -soft 其他人分几次拉代码 阅读全文
posted @ 2018-05-22 13:55 qqisnow2021 阅读(507) 评论(0) 推荐(0)
摘要: 在merge之前1 clean 本地文件 git status 最好是干净的2 compare / git diff, 最好是把潜在的冲突消灭掉 阅读全文
posted @ 2018-05-22 13:54 qqisnow2021 阅读(212) 评论(0) 推荐(0)
摘要: --mixed 是默认的选项Git reset会退回到某个commit 然后文件也untracked了git reset --soft 退回到某个commit 然后文件已经被add了 阅读全文
posted @ 2018-05-22 10:12 qqisnow2021 阅读(201) 评论(0) 推荐(0)
摘要: rebase的意思貌似就是 形成一条直线在以前是说要git pull 这样形成最新的代码到本地,然后 本地在上传的到远程, 不然的话,如果直接git push --force则直接覆盖了别人的代码,那样也太狠了吧Git pull --rebase和git pull 的区别就是形成一个直线,不是菱形。 阅读全文
posted @ 2018-05-21 16:29 qqisnow2021 阅读(323) 评论(0) 推荐(0)
摘要: 只能退到他应该退到的地方。不然其他地方来Merge他就会冲突了 阅读全文
posted @ 2018-05-18 17:30 qqisnow2021 阅读(288) 评论(0) 推荐(0)
摘要: 看涉及到哪些URL清空WATCHDOG记录访问这些URL看后台又没什么变化和提示和Log日志 和MASTER进行比较看代码层面有没什么问题 阅读全文
posted @ 2018-05-18 10:25 qqisnow2021 阅读(145) 评论(0) 推荐(0)
摘要: $form['attched']['js'][] = 'file_path' 这样是行不通的,反正处理不到 但这样就可以了 https://www.drupal.org/forum/support/module-development-and-code-questions/2011-01-13/fa 阅读全文
posted @ 2018-05-17 17:09 qqisnow2021 阅读(191) 评论(0) 推荐(0)
摘要: 没有找到buildpath的设置到preference->php->editor-> 去设置 重新激活一下子也许有时候会因为一些操作删除了某些配置文件或者读取不到 阅读全文
posted @ 2018-05-17 07:50 qqisnow2021 阅读(153) 评论(0) 推荐(0)
摘要: 因为那些文件已经在gitignore之前就加入到了git的缓存系统index.Git rm -rf --cached FILE_NAME 阅读全文
posted @ 2018-05-17 00:25 qqisnow2021 阅读(312) 评论(0) 推荐(0)
摘要: //session_start();$sid = session_id();如果没有session_start则返回''如果有session_start则返回一个字符串且这个字符串是cookie的值不是name session这个是怎么生成的1 当用户访问一个网址,浏览器会在请求头中生成一个sess 阅读全文
posted @ 2018-05-15 17:28 qqisnow2021 阅读(345) 评论(0) 推荐(0)
摘要: When dealing with multiple requests, the non master request comes from internal requests. Usually from twig in the form of When the second request is 阅读全文
posted @ 2018-05-15 16:13 qqisnow2021 阅读(253) 评论(0) 推荐(0)
摘要: 记住一个教训:环境一定要刷完整,否则,浪费大量的时间,不值得 记住一个教训:环境一定要刷完整,否则,浪费大量的时间,不值得 这次花了不少时间,问题出在password上面 这次花了不少时间,问题出在password上面 阅读全文
posted @ 2018-05-14 17:36 qqisnow2021 阅读(112) 评论(0) 推荐(0)
摘要: 什么时候都要想能不能再进一步呢 早就听说我不够仔细真的不搞清楚就发话真的是不好呢。 阅读全文
posted @ 2018-05-10 16:38 qqisnow2021 阅读(139) 评论(0) 推荐(0)
摘要: 我吧密码记到记事本上了但任然很多时候忘了因为密码很多时候要改动改了之后自己记得但没有及时的更新到记事本上请问这是为什么这是心态不好这是思路不清楚造成的一件事做好再做另一件事小心细致方可以 阅读全文
posted @ 2018-05-10 13:53 qqisnow2021 阅读(170) 评论(0) 推荐(0)
摘要: 网站分2个,www和publish, 两个网站不一样的在Publish上的数据库和www上的数据库不一样。在publish上也许没有跳转但www上也许就有。 现在的问题是代码太多不可能什么都去弄关键在什么地方开始什么地方打断点什么地方然后恰巧的找到问题的所在。 阅读全文
posted @ 2018-05-10 10:45 qqisnow2021 阅读(225) 评论(0) 推荐(0)
摘要: 从bootstrap/FeatureContext.php的命令入手,可以var_dump或者使用PrintMessage之类的命令,今天发现一个好大的坑啊,一个类没有定义property $sites,然后在方法里用到了$this->sites,然后在其他地方竟然娶不到$this->sites,请 阅读全文
posted @ 2018-05-09 17:08 qqisnow2021 阅读(114) 评论(0) 推荐(0)
摘要: 1 到status report搜索more information可以查到phpinfo,搜索log/php.ini/error 等可以看到log的具体位置2 开启database log模块【dblog】, 可以看到recent log message 到里面去看具体的Log3 acquia也有 阅读全文
posted @ 2018-05-04 15:42 qqisnow2021 阅读(205) 评论(0) 推荐(0)
摘要: 这样的话会把本地的xx分支和远程的master分支建立一个match会在git push origin xx之后git status仍会显示ahead of origin/master by 1 commit 所以我觉得还是到master分支下更新然后新建一个分支然后push 阅读全文
posted @ 2018-05-04 09:37 qqisnow2021 阅读(2949) 评论(0) 推荐(0)
摘要: git clone ssh://87081@vs-ssh.visualstudio.com:22/87081/_ssh/Behatgit clone ssh也可以 是要清楚ssh是干什么的 阅读全文
posted @ 2018-05-03 16:28 qqisnow2021 阅读(134) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页