5月24马上就要网工考试从一名菜鸟到现在学习网络有一年半时间,感觉网络很神奇,要学的东西,要搞透的东东还有好多。今天开始准备网工考试,到现在准备三个月左右,其实现在还挺紧张的,扎西德勒,加油,必过。
分类:
其他好文 时间:
2014-05-13 03:55:43
阅读次数:
226
一个应用的开始一般我们使用的是动画的欢迎界面,这样的欢迎界面给用户的印象是最深刻的,用户喜不喜欢一下子就关系到对应用的好与坏。做应用,这点就要很注意,那么这个里面虽然用到的技术比不难,但是却是很关键的东西。所以要仔细的做好。那么我们来说说技术吧,一般我们看..
分类:
其他好文 时间:
2014-05-13 03:34:07
阅读次数:
232
一、分布式文件系统1.简介分布式文件系统(DistributedFileSystem)是指文件系统管理的物理存储资源不一定直接连接在本地节点上,而是通过计算机网络与节点相连。分布式文件系统的设计基于客户机/服务器模式。一个典型的网络可能包括多个供多用户访问的服务器。另外,对等特性..
分类:
其他好文 时间:
2014-05-13 01:52:38
阅读次数:
501
上班了快两年了,想想自己有什么收获呢?似乎都没有,因为单位工作环境的关系,自己也是慢慢的都放弃了学习,开始过上了上一天班,撞一天钟的日子,可是我还是很年轻的啊(也许),在网上看到那些技术大牛们自己的心里也是有冲动的埃所以现在虽然会慢,但是我也要慢慢一点一点..
分类:
其他好文 时间:
2014-05-13 04:56:19
阅读次数:
232
侧滑功能需要用到开源项目,通过开源项目的使用,就能做到了。这个开源项目可以到githut网站中去查找到,有了这个,你就可以在项目中使用这个控件,munudraw,然后可以通过这个空间可以点出attch这个方法,然后运行,就可以看到,侧滑菜单。侧滑菜单,其实没有什么难的,只要你..
分类:
其他好文 时间:
2014-05-13 03:56:46
阅读次数:
253
#!/usr/bin/envpython#coding:utf8importos,sys,glob,time,MySQLdb,reDIRNAME=os.path.dirname(__file__)OPSTOOLS_DIR=os.path.abspath(os.path.join(DIRNAME,‘..‘))sys.path.append(OPSTOOLS_DIR)fromlibrary.mysqlconfigimportMySQLDConfig,getMyVariablesfromoptparseimport..
分类:
数据库 时间:
2014-05-13 02:46:59
阅读次数:
809
Linux优化基础优化--Centos5.864bit 1.添加一个普通用户 注:平时操作时尽量不用root useraddcysky passwdcysky<enter> newUnixpassword:20142014<enter> 或者:echo“12345..
分类:
其他好文 时间:
2014-05-13 04:35:40
阅读次数:
394
#!/usr/bin/envpythonimportthreadingimporttimeimportparamikoimportos,sysfromipimportip_list,web_server,ip_msgfromoptparseimportOptionParserfromssh_co.cfg.configimporthost_msgdefopts():parser=OptionParser(usage="usage%progoptions")parser.add_option("-i","--it..
分类:
编程语言 时间:
2014-05-13 03:32:03
阅读次数:
537
#!/usr/bin/envpythonimportsys,timefromsocketimportsocketdefread_interface(in_file):withfile(in_file)asf:returnf.readlines()[2:]defset_interface(inter_msg):dic={}foriinxrange(len(inter_msg)):dic[inter_msg[i].split(":")[0].strip()]={"in":inter_msg[i].split(":..
分类:
编程语言 时间:
2014-05-13 04:01:55
阅读次数:
432
母亲节礼物太强大了,老妈很高兴。她说:贺卡上的话写的真好,平时亲人都很难说出口。在这里感谢软件学院,感谢物联网研究院。平时工作很忙,确实很少陪老人,今天下午还去单位加了半天班。把最近的工作进展跟老爸聊了聊,他听了很高兴。最近虽然很累,但是这一切都值了。
分类:
其他好文 时间:
2014-05-13 01:46:28
阅读次数:
249
#!/usr/bin/envpython#coding:utf8#随机生成自定义长度密码fromrandomimportchoiceimportstring,pickledefGenPassword(length=8,chars=string.ascii_letters+string.digits):return‘‘.join([choice(chars)foriinrange(length)])defpasslist(r_user,c_user,ip_list,web_list):di..
分类:
编程语言 时间:
2014-05-13 01:25:56
阅读次数:
505
ThisisourongoingLinuxcommandserieswherewearegoingtoreviewhowwecanusechkconfigcommandefficientlywithit’savailableparameters.TheChkconfigcommandtoolallowstoconfigureservicesstartandstopautomaticallyinthe/etc/rd.d/init.dscriptsthroughcommandline.Let’sseesome..
分类:
系统相关 时间:
2014-05-13 04:26:32
阅读次数:
469
#!/usr/bin/envpython#coding:utf8importos,sysimportmd5,tabfrommysql_co.my_dbimportset_mysqlfromssh_co.ssh_connectimportsshdfromssh_co.cfg.configimportssh_message,item_pathfromfileimportfindfiledefmy_mysql():db_file={}my_connect=set_mysql()f_file=findfile.mai..
分类:
编程语言 时间:
2014-05-13 01:44:22
阅读次数:
449
Fromtimetotime,peoplewantmetocreateLINUXinitscriptsforthem.Iusuallyjusttakeanexistingoneforanotherserviceandchangeituptoworkformynewapplication,butmostofthemhavebecomesolongthesedaysthatIenduphavingtohackoutatonofcodejusttoreducethemdowntotheverybasicscript..
分类:
系统相关 时间:
2014-05-13 03:59:53
阅读次数:
306
#!/usr/bin/envpython#coding:utf8fromoptparseimportOptionParserimportsys,os#parser=OptionParser()defset():parser=OptionParser("Usage:%prog[file1][file2]...")parser.add_option("-c","--chars",dest="characters",action="store_true",default=False,help="onlycountc..
分类:
编程语言 时间:
2014-05-13 04:31:41
阅读次数:
488
#!/usr/bin/envpython#coding:utf8importos,sysimportdatetime,shutil,subprocessfromconfig.configimportslow_configclasscut_mysql(object):mysql_user,mysql_pass,date_day,slow_log_name,slow_log_path,mysqlsla_log_name,mysqldumpslow_log_name,new_log_path,new_log_nam..
分类:
数据库 时间:
2014-05-13 02:39:47
阅读次数:
482
OneofthefilesthattheaverageUnixsysadminrarelylooksat,almostneverchangesandyetdependsoneverytimeheorsherebootsasystemisthe/etc/inittabfile.Thismodestlittlefilecontrolswhathappenswheneverasystemisrebootedorforcedtochangerunlevels.Let‘stakealookattheconfigurat..
分类:
系统相关 时间:
2014-05-13 04:47:00
阅读次数:
612
#!/usr/bin/envpython#coding:utf8#此脚本为查找递归目录下所有文件匹配的内容importos,sys,tabdefpaths(path):list_path=os.walk(path)all_file=[]forp,d,flinlist_path:forfinfl:pfile=os.path.join(p,f)ifos.path.isdir(pfile):paths(pfile)all_file.append(pfile)returnall..
分类:
编程语言 时间:
2014-05-13 03:49:34
阅读次数:
426
#!/usr/bin/envpython#coding:utf8importsmtplib,sysfromemail.mime.textimportMIMETextfromconfig.mailssimportmail_list,contentdefsend_mail():mail_host,mail_user,mail_pass,mail_postfix,sub,me,mailto_list=mail_listme=mail_user+"<"+mail_user+"@"+mail_postfix+"&..
分类:
编程语言 时间:
2014-05-13 02:40:50
阅读次数:
503
最近的项目开发中,遇到了一个多文件上传的问题,即在不刷新页面的情况下,上传多个文件至服务器。现总结分享如下:本文主要采用了基于jsp的ajax,jquery,servlet等技术。1.upload.jsp点击上传时,调用对应的fileupload函数,通过ajax将文件异步传送到servlet中处理。注意在文..
分类:
Web程序 时间:
2014-05-13 03:22:52
阅读次数:
429