码迷,mamicode.com
首页 > 其他好文
Glusterfs hacker guide说明
Glusterfshackerguide内容摘自如下网页,这些网页已经无法访问,故整理提供一个副本,供大家参考学习,欢迎交流。转载资料:[1]Translator101Lesson1:SettingtheStage,http://hekafs.org/index.php/2011/11/translator-101-class-1-setting-the-stage/[2]Translator101Lesson2:..
分类:其他好文   时间:2015-01-07 19:10:12    阅读次数:200
详解iptables
Firewalls(防火墙):工作在网络边缘(主机边缘),对进出网络数据包基于一定的规则检查,并在匹配某规则时由规则定义的处理进行处理的一组功能的组件。防火墙类型:根据工作的层次的不同来划分,常见的防火墙工作在OSI第三层,即网络层防火墙,工作在OSI第七层的称为应用层防..
分类:其他好文   时间:2015-01-07 19:08:12    阅读次数:219
Cloned virtualized domain controller(克隆虚拟化部署的域控制器)
Clonedvirtualizeddomaincontroller(克隆虚拟化部署的域控制器)在WindowsServer2012之前的版本中,在域控制器升级的过程中,添加额外的虚拟域控制器涉及到的数据复制方法有两种,分别是"复制"网络、使用IFM媒体。但如果数据库(NTDS.DIT)本身比较大,这两种方法都需要大量时间..
分类:其他好文   时间:2015-01-07 19:08:40    阅读次数:312
[LeetCode]127 Word Ladder
https://oj.leetcode.com/problems/word-ladder/http://blog.csdn.net/linhuanmars/article/category/1918893/2publicclassSolution{ publicintladderLength(Stringstart,Stringend,Set<String>dict) { //Putendintodict Set<String>dictionary=newHashSet<>..
分类:其他好文   时间:2015-01-07 19:08:18    阅读次数:91
ScrollView嵌套Viewpager和ListView的整合
1、ScrollView嵌套Viewpager解决滑动冲突:(1)重新ScrollView(法一)/***能够兼容ViewPager的ScrollView*@Description:解决了ViewPager在ScrollView中的滑动反弹问题*/publicclassScrollViewExtendextendsScrollView{//滑动距离及坐标privatefloatxDistance,yDistance,xLast..
分类:其他好文   时间:2015-01-07 19:09:43    阅读次数:147
switch学习笔记
classTestSwitch3 { publicstaticvoidmain(String[]args) { Stringseason="SPRING"; switch(season){ case"SPRING": System.out.println("春天"); break; case"SUMMER": System.out.println("夏天"); break; case"AUTUMN": System.out.println("..
分类:其他好文   时间:2015-01-07 19:06:25    阅读次数:151
批处理自动配置Outlook账户
公司新员工入职需要逐个配置Outlook客户端,并且修改收发时间,设置签名,繁琐枯燥,Office自定义工具只支持批量增加账户,不能实现该功能,outlook.exe命令行接口也不提供此功能,所以使用批处理+VBS脚本自动完成,程序大致思路:映射共享服务器,复制邮件签名模板到桌面。程..
分类:其他好文   时间:2015-01-07 19:05:32    阅读次数:252
[LeetCode]126 Word Ladder II
https://oj.leetcode.com/problems/word-ladder-ii/http://blog.csdn.net/linhuanmars/article/details/23071455publicclassSolution{ publicList<List<String>>findLadders(Stringstart,Stringend,Set<String>dict) { List<List<String>>toRetu..
分类:其他好文   时间:2015-01-07 19:05:33    阅读次数:201
nginx+uwsgi部署django项目
操作可参考http://www.linuxyw.com/353.html(nginx+uwsgi+django+python环境部署文档)这里只说明几点我的配置环境:Nginx版本:1.7.9Django版本:1.6.8Python版本:2.7.5Uwsgi版本:2.0.9安装MySQL-python:最好源码安装,yuminstall-yMySQL-python可能因为路径问题importMySQLd..
分类:其他好文   时间:2015-01-07 19:08:01    阅读次数:364
Cloned virtualized domain controller(克隆虚拟化部署的域控制器)续……
Clonedvirtualizeddomaincontroller(克隆虚拟化部署的域控制器)续……步骤5创建DCCloneConfig.xml克隆域控制器需要DcCloneConfig.xml文件。其内容允许你指定唯一的详细信息,如新的计算机名和IP地址。除非你在源域控制器上安装应用程序或可能不兼容的Windows服务,否则Custom..
分类:其他好文   时间:2015-01-07 19:05:30    阅读次数:237
switch 学习笔记
}classTestSwitch5 { publicstaticvoidmain(String[]args) { intscore=57; if(score>=60){ System.out.println("及格"); }else{ System.out.println("不及格"); } switch(score/10){ case10: System.out.println("及格"); break; cas..
分类:其他好文   时间:2015-01-07 19:06:04    阅读次数:133
ssh私钥登录putty篇
1、安装openssh、openssh-server2、启动sshd:servicesshdstart3、设置开机自动启动sshd:chkconfig--level35sshdon4、建立私钥公钥:ssh-keygen-trsa[user@centos64~]$ssh-keygen-trsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/home/wspjing/.ssh/id..
分类:其他好文   时间:2015-01-07 19:07:04    阅读次数:141
django error
错误信息:You‘reusingtheDjango"sitesframework"withouthavingsettheSITE_IDsetting.CreateasiteinyourdatabaseandsettheSITE_IDsettingtofixthiserror.原因:settings.py里#Applicationdefinition中添加了‘django.contrib.sites‘模块后需要设置SITE_ID处理:在settings.py里..
分类:其他好文   时间:2015-01-07 19:06:53    阅读次数:180
switch判断季节 学习笔记
classTestSwitch6 { publicstaticvoidmain(String[]args) { intseason=7; switch(season){ case1: case2: case3: System.out.println("春季"); break; case4: case5: case6: System.out.println("夏季"); break; case7: case8: ..
分类:其他好文   时间:2015-01-07 19:06:00    阅读次数:158
[LeetCode]128 Longest Consecutive Sequence
https://oj.leetcode.com/problems/longest-consecutive-sequence/http://blog.csdn.net/linhuanmars/article/details/22964467publicclassSolution{ publicintlongestConsecutive(int[]num){ //SolutionA: //returnlongestConsecutive_Sort(num); //SolutionB: returnlonges..
分类:其他好文   时间:2015-01-07 19:03:11    阅读次数:165
Rsync实现服务器间文件数据同步配置实例
>os:ubuntu12.04server>server:192.168.33.201>client:192.168.33.202##什么是rsync?>rsync是Unix下的一款应用软件,它能同步更新两处计算机的文件与目录,并适当利用差分编码以减少数据传输。rsync中一项与其他大部分类似程序或协议中所未见的重要特性是镜像对每..
分类:其他好文   时间:2015-01-07 19:05:17    阅读次数:164
[LeetCode]129 Sum Root to Leaf Numbers
https://oj.leetcode.com/problems/sum-root-to-leaf-numbers/http://blog.csdn.net/linhuanmars/article/details/22913699/** *Definitionforbinarytree *publicclassTreeNode{ *intval; *TreeNodeleft; *TreeNoderight; *TreeNode(intx){val=x;} *} */ publicclassSolution{ ..
分类:其他好文   时间:2015-01-07 19:01:24    阅读次数:112
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!