c/php/javascript/java/python/bash linux/freebsd

  • Just wanted to share a solution I came up with recently for getting a laptop display to turn back on properly after the lid has been closed/reopened.  I've seen the issue on Dell Latitude D600, D610, D420, and D
    1 发起了话题 category: Freebsd 2017-03-09 12:46:07
  • ecshop支持php7  ecshop升级php7cls_template.php第 300 行# return preg_replace("/{([^\}\{\n]*)}/e", "\$this->select('\\1');", $source); return preg_replace_callback("/{([^\}\{\n]*)}/", function($r){
    1 发起了话题 category: 第一阶段PHP 2016-05-30 20:54:17
  • 安装 MySQL:wget http://downloads.mysql.com/archives/mysql-5.6/mysql-5.6.10-linux-glibc2.5-x86_64.tar.gztar zxvf mysql-5.6.10-linux-glibc2.5-x86_64.tar.gzmv mysql-5.6.10-linux-glibc2.5-x86_64 /Data/apps/mysql/usr/sbin/group
    1 发起了话题 category: linux 2016-05-14 11:24:46
  • git 初始化一个Git仓库,使用git init命令。添加文件到Git仓库,分两步:第一步,使用命令git add <file>,注意,可反复多次使用,添加多个文件;第二步,使用命令git commit,完成如果git status告诉你有文件被修改过,用git diff可以查看修改内容。HEAD指向的版本就是当前版本,因此,Git允许我们在版本的历史之间穿梭,使用命令git reset --hard commit_id。
    1 发起了话题 category: 程序员 2016-02-23 17:58:48
  • 在使用源代码版本控制工具时,最佳实践是一直保持一个主干版本。但是为了应付实际开发中的各种情况,适时的开辟一些分支也是很有必要的。比如在持续开发新功能的同时,需要发布一个新版本,那么就需要从开发主干中建立一个用于发布的分支,在分支上进行bug fix,维护版本的稳定,并适时的将一些改动合并回主干。目前大红大紫的源代码版本控制工具git很受大家推崇,原因之一就是其在这方面的功能相当强大。其实老牌的SVN也是有这样的功能的,接下来就给大家讲解
    1 发起了话题 category: 程序员 2016-02-22 20:35:53
  • 我们在一些著名开源项目的版本库中,通常可以看到trunk, branches, tags等三个目录。由于SVN固有的特点,目录在SVN中并没有特别的意义,但是这三个目录却在大多数开源项目中存在,这是因为这三个目录反映了软件开发的通常模式。trunk是主分支,是日常开发进行的地方。branches是分支。一些阶段性的release版本,这些版本是可以继续进行开发和维护的,则放在branches目录中。又比如为不同用户客制化的版本,也可以放
    1 发起了话题 category: 程序员 2016-02-22 20:32:29
  • visual studio code vim模式visual studio code vim 插件InstallWithin Visual Studio Code, open the command palette (Ctrl-Shift-P / Cmd-Shift-P)Select Install Extension and search for 'vim' or run ext install vimhttps:/
    1 发起了话题 category: 程序员 2016-01-01 09:54:05
  • 一、安装首先,安装PostgreSQL客户端。sudo apt-get install postgresql-client然后,安装PostgreSQL服务器。sudo apt-get install postgresql正常情况下,安装完成后,PostgreSQL服务器会自动在本机的5432端口开启。如果还想安装图形管理界面,可以运行下面命令,但是本文不涉及这方面内容。sudo apt-get install pgadmin3二、添加
    1 发起了话题 category: 程序员 2015-06-20 11:38:12
  • 合并指定文件git checkout branchname -- file1 file2 etc #合并分支 指定的文件 git checkout php_com -- file.1 file.2 #将当前分支的file1 file2 与分支名为php_com下的file1 file2文件合并
    1 发起了话题 category: 程序员 2015-06-17 14:44:39
  • 简单来说,git-flow 就是在 git branch git tag基础上封装出来的代码分支管理模型,把实际开发模拟成master develop feature release hotfix support 几种场景,其中 master 对应发布上线,develop 对应开发,其他几个在不同的情况下出现。通过封装,git-flow 屏蔽了 git branch 等相对来说比较复杂生硬的命令(git branch 还是比较复杂的,尤
    1 发起了话题 category: 程序员 2015-06-15 11:27:51
  • 忽略目录其实有些像建立一个文件夹,但却不放入版本控制。如果不加入版本控制又会在svn status命令中显示出来,很不方便,所以可以设置本文件夹属性,让它既加入版本控制,又忽略其变化未加入控制的文件夹svn propset svn:ignore 'test' svn updatesvn commit -m "add a ignore dir"已经加入版本控制的文件夹svn export test te
    1 发起了话题 category: 第一阶段PHP 2016-02-23 18:02:41
  • ecshop 开启了GZIP产生 net::ERR_CONTENT_DECODING_FAILED  错误需要到 网站根目录下执行 find *.php -type f -exec sed -i 's/\xEF\xBB\xBF//' {} \删除 BOM此错误是由BOM引起的
    1 发起了话题 category: linux 2015-02-28 14:00:19
  • 首先,我分享了2015年的5个新开源项目管理工具。总体来说,这篇文章将会让你好好看下11个顶级的开源项目管理工具。基于以下几个标准:软件是否提供开源许可证?是否有一个活跃的社区?是否有可用的最新文档?源代码是否可用?是否有新的或最近的东西发布?2015年五款新工具1. Tuleap Open ALMTuleap Open ALM 不仅仅是一个项目管理工具,它还是一个应用生命周期管理工具,包括敏捷开发和项目管理支持。2013年 Tulea
    1 发起了话题 category: 程序员 2015-02-02 09:16:49
  • 在CentOS 6.5 x64系统上装了个Virtualbox,这里记录下整个安装过程。1、去官网下载Virtualbox及其扩展包,同时还要下载dkms,具体如下:Virtualbox:https://www.virtualbox.org/wiki/Downloadsdkms:http://linux.dell.com/dkms/[cason@casonchan Downloads]$ lltotal 84424 -rw-rw-r-
    1 发起了话题 category: linux 2015-01-10 09:46:13
  • background yescpu_avg_samples 2net_avg_samples 2out_to_console nouse_xft yesxftfont monospace:size=10own_window_transparent noxftalpha 0.8update_interval 1own_window yesown_window_transparent yesown_window_hints undecora
    1 发起了话题 category: linux 2014-11-25 21:10:50
  • 1. Install Compiz, the main Compiz plugins, CompizConfig Settings Manager and Metacity:sudo apt-get install compiz compiz-plugins compizconfig-settings-manager metacity2. You'll also need a tool to change the window
    1 发起了话题 category: linux 2014-11-23 08:53:41
  • function ppi() { var x = document.getElementById('x').value; var y = document.getElementById('y').value; var z = document.getElementById('z').value; var p= (Math.sqrt(x*x + y*y)) / z; var pv = document.getEle
    1 发起了话题 category: 程序员 2014-08-30 15:45:59
  •   php websocket 在线 demo      php websocket 下载
    1 发起了话题 category: 第一阶段PHP 2014-08-04 00:15:11
  • Warning: DOMDocument::loadHTML(): input conversion failed due to input error, bytes 0xAD 0xE6 0x88 0x8F in C:\Userstest.img.dom.php on line 7错误解决方案 :$html=new DOMDocument(); $html_source = get_html(); $htm
    1 发起了话题 category: PHP记事本 2014-07-13 11:15:53
  • #!/bin/bash username="xianziuser" cp -a /bin/bash /bin/rbash useradd -c "A Restricted User" -g users -d /home/$username -s /bin/rbasusername rm -rf /home/$username; mkdir -m 555 /home/$username m
    1 发起了话题 category: linux 2014-06-10 17:04:13
  • Showing 1-20 of 119 items.