码迷,mamicode.com
首页 > 其他好文
复制或保存结果时包括列标题
在SSMS(SQLServerManagementStudio)中,在复制或保存结果时可以包括列标题。在查询结果的网格窗口,在右键菜单中选择“连同标题一起复制”,即可在复制时包括列标题。但是,在右键菜单中选择“将结果另存为”时,输出结果时默认不包括列标题。解决方案:打开“工具”-“选项..
分类:其他好文   时间:2015-01-04 19:44:40    阅读次数:272
[LeetCode]71 Simplify Path
https://oj.leetcode.com/problems/simplify-path/http://blog.csdn.net/linhuanmars/article/details/23972563publicclassSolution{ publicStringsimplifyPath(Stringpath){ if(path==null) returnnull; String[]paths=path.split("/"); Stack<String>stack=newStack&..
分类:其他好文   时间:2015-01-04 19:43:47    阅读次数:182
Vsftpd安装、系统用户及虚拟用户配置详解
一.安装与启动vsftpdyum-yinstallvsftpd/usr/sbin/vsftpd或servicevsftpdstartnetstat-ntlpchkconfig--level35vsftpdon二.FTP相关配置文件说明1.vsftpd.conf文件说明anonymous_enable=YES是否允许匿名ftp,如否则选择NOlocal_enable=YES是否允许本地用户登录write_enable=YES允..
分类:其他好文   时间:2015-01-04 19:42:05    阅读次数:215
ansible学习总结
1:安装安装依赖库yuminstall-yzlibzlib-develyuminstall-yopensslopenssl-devel源代码编译安装py #编译安装python2.7mkdir-p/usr/local/src/python_srccd/usr/local/src/python_srcwgethttp://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2tar-xfPython-2.7.5.tar.bz..
分类:其他好文   时间:2015-01-04 19:43:08    阅读次数:257
CentOS之Phabricator的安装配置必须成功版!
https://secure.phabricator.com/book/phabricator/article/installation_guide/#installation-requirement以上是官方文档把centos版的phabricator安装脚本下载到opt目录并安装#cd/opt#wgethttp://www.phabricator.com/rsrc/install/install_rhel-derivs.sh#chmod777install_rh..
分类:其他好文   时间:2015-01-04 19:41:50    阅读次数:180
ansible 一些简单的使用
[root@ha~]#lsanaconda-ks.cfgansiblehar1.shhar.shinstall.loginstall.log.syslogpurge_relay_logs.shshell[root@ha~]#cdansible/[root@haansible]#lsbookhost[root@haansible]#pwd/root/ansible[root@haansible]#lsbookhost[root@haansible]#我的host主机和play-book是在单独..
分类:其他好文   时间:2015-01-04 19:43:47    阅读次数:238
2015年,让自己不再有遗憾
不知不觉,2014带着许多遗憾走了,就像自己的程序,总不够完美,总有这一些那一些的Bugs,总有很多想法未能加入,然后被催促着上线,当然,这也与患有严重拖延症的我,有相当大的关系。新技术层出不穷,新领域也越来越多,今天这个大会,明天那个高峰会,已让我们这些啃老族不..
分类:其他好文   时间:2015-01-04 19:41:18    阅读次数:195
ansible 模块学习
Ansible通过模块的方式来完成一些远程的管理工作。可以通过ansible-doc-l查看所有模块,可以使用ansible-doc-smodule来查看某个模块的参数,也可以使用ansible-dochelpmodule来查看该模块更详细的信息。默认的模块位置在/usr/share/ansible。下面列出一些常用的模块:1.setup可..
分类:其他好文   时间:2015-01-04 19:41:25    阅读次数:353
十二个UML工具
1.StarUMLStarUML是一个开源UML项目,可以开发快速,灵活,可扩展,多功能并且免费的UML/MDA平台。此项目运行在Win32平台之上。StarUML项目的目标是成为RationalRose、Together等商业UML工具的替代者。2.NetbeansUMLPluginNetBeansUML插件目前支持以下UML图:活动图,类图,序..
分类:其他好文   时间:2015-01-04 19:41:53    阅读次数:290
忘记CentOS 7.0 root密码后,更改密码的方法如下
1、启动画面出来时,选择第一项,并按下e字母键。如下图2、移动光标键,找到linux16这一行。如下图3、如图,将ro改成成为rwinit=sysroot/bin/sh,并执行ctrl-x4、执行以下命令,如下图5、最后重启,进入系统
分类:其他好文   时间:2015-01-04 19:41:32    阅读次数:204
before和:after伪元素
before和after都是前端常用到的伪元素,在中文的直接翻译里,before代表着之前after代表着之后在css中,也大概是这样子;如下代码:HTML代码<pclass="box">thisiselement</p>css代码//before中文翻译为在前 //after中文翻译为在后 p.box{ width:500px; border:soli..
分类:其他好文   时间:2015-01-04 19:40:00    阅读次数:189
CentOS7 修改网卡的名字为eth0
vi/etc/sysconfig/network-scripts/ifcfg-enp0s3name="eth0"mv/etc/sysconfig/network-scripts/ifcfg-enp0s3/etc/sysconfig/network-scripts/ifcfg-eth0vi/etc/default/grunGRUB_DISTRIBUTOR="$(sed‘s,release.*$,,g‘/etc/system-release)"GRUB_DEFAULT=savedGRUB_DISABLE_SUBM..
分类:其他好文   时间:2015-01-04 19:40:39    阅读次数:175
[LeetCode]72 Edit Distance
https://oj.leetcode.com/problems/edit-distance/http://blog.csdn.net/linhuanmars/article/details/24213795publicclassSolution{ publicintminDistance(Stringword1,Stringword2) { if(word1==null||word2==null) return-1; if(word1.isEmpty()) returnword2.length();//I..
分类:其他好文   时间:2015-01-04 19:40:46    阅读次数:148
[LeetCode]73 Set Matrix Zeroes
https://oj.leetcode.com/problems/set-matrix-zeroes/http://blog.csdn.net/linhuanmars/article/details/24066199publicclassSolution{ publicvoidsetZeroes(int[][]matrix) { //SolutionA: //setZeroes_NoExtraSpace(matrix); //SolutionB: setZeroes_ExtraRowAndCol(matri..
分类:其他好文   时间:2015-01-04 19:40:25    阅读次数:194
[LeetCode]74 Search a 2D Matrix
https://oj.leetcode.com/problems/search-a-2d-matrix/http://blog.csdn.net/linhuanmars/article/details/24216235publicclassSolution{ publicbooleansearchMatrix(int[][]matrix,inttarget){ //Searchfromrightcorner intn=matrix.length;//howmanyrows. intm=matrix[0].le..
分类:其他好文   时间:2015-01-04 19:37:46    阅读次数:131
[LeetCode]75 Sort Colors
https://oj.leetcode.com/problems/sort-colors/http://blog.csdn.net/linhuanmars/article/details/24286349publicclassSolution{ publicvoidsortColors(int[]A) { //SolutionA: sortColors_CountColor(A); //SolutionB: //sortColors_MergeSort(A,0,A.length-1); } ///////..
分类:其他好文   时间:2015-01-04 19:37:46    阅读次数:167
Scala环境搭建
下载JDK:http://www.oracle.com/technetwork/java/javase/downloads/index.html我的电脑是win764位,选择jdk-8u25-windows-x64.exe下载ScalaAPI:http://www.scala-lang.org/download/下载ScalaIDE(Eclipse版本):http://scala-ide.org/download/sdk.html环境变量设置:CLASSPAT..
分类:其他好文   时间:2015-01-04 19:38:42    阅读次数:183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!