首页 > 2014年10月20日 > 全部分享
常见笔试题(二)
6、用obj-c写一个冒泡排序-(void)mySort:(NSMutableArray*)mutArray { idtmpObj=nil; unsignedlongflag=mutArray.count-1;//flag:最大脚标 while(flag>0){ intk=flag; flag=0; for(intj=0;j<k;j++){ intorder=NSOrderedAscending;//或NSOrderedDescending if([[mutArray[..
分类:其他   时间:2014-10-20 02:16:59    收藏:0  评论:0  赞:0  阅读:534
整合apache和tomcat构建Web服务器
一、apache与tomcat整合的必要性Apache是最流行的Web服务器,开放源代码,支持跨平台的应用(可以运行在几乎所有的Linux、Unix、Windows系统平台上),尤其对Linux的支持相当完美。apache的优点有:1、功能强大,apache自带了很多功能模块,可根据需求编译自己需要的模块。2、..
分类:Web开发   时间:2014-10-20 02:16:49    收藏:0  评论:0  赞:0  阅读:504
简单工厂模式
业务逻辑.h#pragmaonce classOperation { protected: doublenumberA; doublenumberB; doubleresult; public: voidsetValue(doublenumberA,doublenumberB) { this->numberA=numberA; this->numberB=numberB; } virtualdoublegetValue()=0; }; classOperationAdd:publicOpe..
分类:其他   时间:2014-10-20 02:16:39    收藏:0  评论:0  赞:0  阅读:174
工厂模式
业务逻辑.h#pragmaonce classOperation { protected: doublenumberA; doublenumberB; doubleresult; public: voidsetValue(doublenumberA,doublenumberB) { this->numberA=numberA; this->numberB=numberB; } virtualdoublegetValue()=0; }; classOperationAdd:publicOpe..
分类:其他   时间:2014-10-20 02:16:29    收藏:0  评论:0  赞:0  阅读:276
常见笔试题(三)
11、面向对象的三大特征,并作简单的介绍。 面向对象的三个基本特征是:封装、继承、多态。封装是面向对象的特征之一,是对象和类概念的主要特性。封装,也就是把客观事物封装成抽象的类,并且类可以把自己的 数据和方法只让可信的类或者对象操作,对不可信的进..
分类:其他   时间:2014-10-20 02:16:19    收藏:0  评论:0  赞:1  阅读:687
Time synchro
ntpdateasia.pool.ntp.orgyum-yinstallntpntpdatetime.nist.gov
分类:其他   时间:2014-10-20 02:16:09    收藏:0  评论:0  赞:0  阅读:254
My impression towards Xinjiang.
Hi,MynameisKhanittafromPhuket,Thailand.MynicknameisMui(Thaisalwaysuseanicknametocallafriend/relative.I‘dtraveledinXinjiangfromSeptember28toOctober06,2014.Itwasveryimpressiveandexciting.
分类:其他   时间:2014-10-20 02:15:59    收藏:0  评论:0  赞:0  阅读:390
如何监控linux服务器上所用用户账号 历史
监控端工具ansible计划任务*/10****/dev/shm/history_log.sh构建脚本vim/dev/shm/history_log.sh#!/bin/bashfunctionhistory_log(){ localtime time=`date-d"-10min""+%F%H:%M"` tim=${time%[0-9]} remote_ab-htest-c"tail-300/tmp/all_history"|grep"$tim">>/tmp/All_hi..
分类:系统服务   时间:2014-10-20 02:15:49    收藏:0  评论:0  赞:0  阅读:349
linux下firefox安装flash插件
下载firefoxflash插件包get.adobe.com/cn/flashplayer/选择tar包下载。解压tar包tar-zxvfinstall_flash_player_11_linux.x86_64.tar.gz拷贝至firefox插件目录mvlibflashplayer.so/usr/lib/mozilla/plugins/cp-rusr/*/usr操作系统为ubuntu14.04,firefox版本为32.0.3
分类:系统服务   时间:2014-10-20 02:15:39    收藏:0  评论:0  赞:0  阅读:350
Win 7 mysql安装错误(the security settings could not be applied to the database (error 1045 MySQL)
安装MYSQL最后一步“Applysecuritysetting”出现如下错误:Thesecuritysettingscouldnotbeappliedtothedatabasebecausetheconnectionhasfailedwiththefollowingerror.ErrorNr.1045Accessdeniedforuser‘root‘@‘localhost‘(usingpassword:YES)Ifapersonal firewallisrunningonyou..
分类:移动平台   时间:2014-10-20 02:15:09    收藏:0  评论:0  赞:0  阅读:770
zabbix简介以及利用proxy和agent模式监控
Zabbix介绍:zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供柔软的通知机制以让系统管理员快速定位/解决存在的各种问题。zabbix由2部分构成,zabbixserver与可选组件zabbix..
分类:其他   时间:2014-10-20 02:14:59    收藏:0  评论:0  赞:0  阅读:541
hadoop 原生MapReduce 实现数据连接
业务逻辑其实很简单,输入两个文件,一个作为基础数据(学生信息文件),一个是分数信息文件。学生信息文件:存放学生数据:包括学号,学生名称分数信息数据:存放学生的分数信息:包括学号,学科,分数。我们将通过M/R实现根据学号,进行数据关联,最终结果为:学生名称,学科,..
分类:其他   时间:2014-10-20 02:14:49    收藏:0  评论:0  赞:0  阅读:304
关于struts2中ActionContext的实现原理
北京,雾霾天气阻止了今天的马拉松之行,蜗居一天。为一个问题“struts2如何保证ActionContext每次取的都是本次请求所对应的实例?”,给一个网友解释了半天。首先,我们知道,struts2和struts1的一个重要区别就是它进行了Action类和Servlet的解耦。而又提供了获取ServletAPI的..
分类:其他   时间:2014-10-20 02:14:39    收藏:0  评论:0  赞:0  阅读:228
Unity3d中水无法显示波纹等动态效果的解决
这个问题是Unity4.5版本的一个bug,导入的"Water(Basic)"中的水显示出来没有波浪等动态效果解决办法:一:导入完整的4.3版本的Water(Basic)二:修改Water(Basic)->Sources->Shade->FX-WaterSimple.shader//unity4.3.0 //line45 temp.xyzw=v.vertex.xzxz*_WaveScale/un..
分类:编程语言   时间:2014-10-20 02:14:09    收藏:0  评论:0  赞:0  阅读:510
MinGW+CMake编译Opencv2.4.10
MinGW+CMake编译Opencv2.4.10安装MinGW下载地址:http://www.mingw.org安装:运行mingw-get-setup.exe选择安装mingw32-basemingw32-gcc-g++将mingw的bin目录添加到环境变量安装CMake下载地址:http://www.cmake.org安装:双击cmake-3.0.2-win32-x86.exe进行安装安装OpenCV2.4.1..
分类:其他   时间:2014-10-20 02:13:59    收藏:0  评论:0  赞:0  阅读:1793
查找一个view所在的控制器
navigation同理:-(UIViewController*)viewController{for(UIView*next=[selfsuperview];next;next=next.superview){UIResponder*nextResponder=[nextnextResponder];if([nextResponderisKindOfClass:[UIViewControllerclass]]){return(UIViewController*)nextResponder;}}retur..
分类:其他   时间:2014-10-20 02:13:49    收藏:0  评论:0  赞:0  阅读:250
pushViewController自定义动画
CATransition*transition=[CATransitionanimation]; transition.duration=1.0f; transition.timingFunction=[CAMediaTimingFunctionfunctionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type=@"cube"; transition.subtype=kCATransitionFromRight; transition...
分类:其他   时间:2014-10-20 02:13:39    收藏:0  评论:0  赞:0  阅读:297
phalcon设置数据库表名getSource方法
<?php use\Phalcon\Mvc\Model\Message; classAreaextends\Phalcon\Mvc\Model{ //设置返回的表名 publicfunctiongetSource(){ return"jz_area"; } } ?>
分类:数据库技术   时间:2014-10-20 02:13:29    收藏:0  评论:0  赞:0  阅读:555
javascript学习--innerHTML
<!DOCTYPEhtml><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><title></title><styletype="text/css">#divQQ{width:500px;height:350px;border:2pxdotted#00..
分类:编程语言   时间:2014-10-20 02:13:19    收藏:0  评论:0  赞:0  阅读:326
cookie禁用后session id传值的问题
上一篇说道session和cookie的关系,一般情况下session是借助于cookie传值的,那么cookie被禁用了,session怎么传id的值,下面介绍两种方法经常被使用的一种技术叫做URL重写,就是把sessionid直接附加在URL路径的后面。附加的方式也有两种,一种是作为URL路径的附加信息,另一种..
分类:其他   时间:2014-10-20 02:12:59    收藏:0  评论:0  赞:0  阅读:247
1982条   上一页 1 ... 89 90 91 92 93 ... 100 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!