首页 > 2015年11月02日 > 全部分享
linux系统安全
在系统优化之前先简单的说一下优化的原则,要做到最小化:1、根据需求安装系统最小化;2、开启程序最小化;3、操作最小化;4、登录最小化;5、权限最小化,就是使用普通用户登录。6、配置参数合理化,不要最大化。#修改配置文件的时候注意备份。系统安装之前包的选择如下图(ce..
分类:系统服务   时间:2015-11-02 06:45:38    收藏:0  评论:0  赞:0  阅读:408
打印100~200 之间的素数,两种方法
解:方法1用c语言编程:#include<stdio.h>#include<math.h>intmain(){inti=0;intcount=0;for(i=101;i<=199;i+=2){intj=0;for(j=3;j<=0.5*sqrt(i);j+=2){if(i%j==0){break;}}if(j>0.5*sqrt(i)){count++;printf("%d",i);}}printf("count=%d\n",count);retur..
分类:其他   时间:2015-11-02 06:45:27    收藏:0  评论:0  赞:0  阅读:177
输出乘法口诀表
#include<stdio.h>intmain(){inti=0;intj=0;for(i=1;i<=9;i++){for(j=1;j<=i;j++){printf("%d*%d=%2d",i,j,i*j);//其中%2d中的2表示输出两格,数向后靠齐,即右对齐;若改为%-2d,则表示数左对齐}printf("\n");}return0;}输出结果:1*1=12*1=22*2=43*1=33*2=63*3=9..
分类:其他   时间:2015-11-02 06:45:07    收藏:0  评论:0  赞:0  阅读:173
判断1000年---2000年之间的闰年
用c语言编辑程序://四年一闰,百年不闰,四百年再闰#include<stdio.h>intmain(){intcount=0;intyear=0;for(year=1000;year<=2000;year++){if(year%4==0){if(year%100!=0){printf("%d",year);count++;}}if(year%400==0){printf("%d",year);count++;}}printf("\ncount=%d..
分类:其他   时间:2015-11-02 06:44:57    收藏:0  评论:0  赞:0  阅读:343
bash学习
bash编程学习mkdir-pcd~ls-atail-f/var/log/httpd/accessgrep-i-E同时过滤多个字符alias别名which查看文件所在路径。tree-L查看文件目录seq-s打印数字序列echo{1,5}whoamiw当前登录的用户sudo让普通用户可以有root权限lsof-i:port列表打开的文件(初级)chkconfignetstatchattr..
分类:其他   时间:2015-11-02 06:44:47    收藏:0  评论:0  赞:0  阅读:328
Oracle存储过程和函数
创建一个存储过程:CREATEORREPLACEprocedureproc_trade( v_tradeidintt_b.number%TYPE,--交易id v_third_ipintt_b.varchar2%TYPE,--第三方ip v_third_timeintt_b.date%TYPE,--第三方完成时间 v_thire_stateintt_b.number%TYPE,--第三方状态 o_resultouttt_b.number%TYPE,--返..
分类:数据库技术   时间:2015-11-02 06:44:17    收藏:0  评论:0  赞:0  阅读:193
Mariadb InnoDB存储引擎
Mariadb存储引擎:Mariadb中的数据用各种不同的技术存储在文件(或者内存)中。这些技术中的每一种技术都使用不同的存储机制、索引技巧、锁定水平并且最终提供广泛的不同的功能和能力。通过选择不同的技术,你能够获得额外的速度或者功能,从而改善你的应用的整体功能。显式请..
分类:数据库技术   时间:2015-11-02 06:44:07    收藏:0  评论:0  赞:0  阅读:312
正则表达式
grep:根据模式搜索文本,将符合模式的文本显示出来-i:不计大小写-v:匹配与找到的相反的-o:只显示匹配到的那个字符--colour:显示颜色-E:扩展正则表达式-A#:显示匹配到的及其后n行-B#:显示匹配到的及其前n行-C#:显示匹配到的及其前后各n行正则表达式元字符.:匹配任意单..
分类:其他   时间:2015-11-02 06:43:57    收藏:0  评论:0  赞:0  阅读:204
Leetcode 100: Same Tree
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:其他   时间:2015-11-02 06:41:56    收藏:0  评论:0  赞:0  阅读:198
Leetcode 66: Plus One
Question:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant di...
分类:其他   时间:2015-11-02 06:41:46    收藏:0  评论:0  赞:0  阅读:155
Leetcode 283:Move Zeroes
Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, givenn...
分类:其他   时间:2015-11-02 06:41:36    收藏:0  评论:0  赞:0  阅读:238
[LeetCode] Bulls and Cows 公母牛游戏
You are playing the followingBulls and Cowsgame with your friend: You write a 4-digit secret number and ask your friend to guess it, each time your fr...
分类:其他   时间:2015-11-02 06:41:26    收藏:0  评论:0  赞:0  阅读:249
SDWebImage的使用
分类:Web开发   时间:2015-11-02 06:41:16    收藏:0  评论:0  赞:0  阅读:145
单例(二)
在数据工具类.h文件中在数据工具类的.m文件中在其他文件中调用与上述一样的方法
分类:其他   时间:2015-11-02 06:40:56    收藏:0  评论:0  赞:0  阅读:257
单例(四)
分类:其他   时间:2015-11-02 06:40:46    收藏:0  评论:0  赞:0  阅读:130
单例模式(一)
在音乐播放器.m文件中在音乐播放器.h文件中在其他控制器中调用这个单例,导入头文件
分类:其他   时间:2015-11-02 06:40:36    收藏:0  评论:0  赞:0  阅读:242
单例(三)
在MRC与ARC下的单例 前两种都是ARC下的单例,下面这个是MRC下的单例在数据工具类.h文件中在数据工具类.m文件中
分类:其他   时间:2015-11-02 06:40:16    收藏:0  评论:0  赞:0  阅读:210
Objective-C之@class的使用
@class本小节知识点:【掌握】@class基本概念【掌握】@class其它应用场景【掌握】@class和#import1.@class基本概念作用可以简单地引用一个类简单使用@class Dog;仅仅是告诉编译器:Dog是一个类;并不会包含Dog这个类的所有内容具体使用在.h文件中使用@clas...
分类:其他   时间:2015-11-02 06:40:06    收藏:0  评论:0  赞:0  阅读:270
Missing Number
Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0, 1, 3]retur...
分类:其他   时间:2015-11-02 06:39:56    收藏:0  评论:0  赞:0  阅读:165
Word Break II 解答
QuestionGiven a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such...
分类:其他   时间:2015-11-02 06:39:46    收藏:0  评论:0  赞:0  阅读:205
1728条   上一页 1 ... 76 77 78 79 80 ... 87 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!