- 军军小站|张军博客
搜索到与相关的文章
各行各业

getconf命令【一天一个命令】

我们时常需要查询系统相关的信息,比如页面大小,整数大小之类,如果编写程序去计算会比较繁琐,这里有一个很有用的命令,可以用来获取系统相关信息。它就是getconf。$getconfPAGE_SIZE4096$getconfINT_MAX2147483647查看Ubuntu操作系统位数Fromhttp://wiki.ubuntu.org.cn/UbuntuSkills#.E6.9F.A5.E7.9C.8B.E7.B3.BB.E7.BB.9F.E6.98.AF3

系统 2019-08-12 09:27:27 2429

MySql

mysql数据库的导入导出

MySQL命令行导出数据库:1.导出数据库:mysqldump-u用户名-p数据库名>导出的文件名mysqldump-uroot-pMovie>Movie.sql(输入后会让你输入进入MySQL的密码)(如果导出单张表的话在数据库名后面输入表名即可)mysqldump-uroot-pMoviemovies>tab_movies.sql2.会看到文件Movie.sql自动生成到var/lib/mysql数据库存储目录下,如下所示:root@landen-Le

系统 2019-08-12 01:55:13 2429

数据库相关

更新租约和检测数据完整性脚本

#!/bin/sha=$(cat/home/cap-list.txt|wc-l)c=`date`echo$afor((i=1;i<=a;i++))dob=$(head-$i/home/cap-list.txt|tail-1)echo$b>>/home/checktime.txtecho"starttime:">>/home/checktime.txtecho`date`>>/home/checktime.txttahoedeep-check--add-le

系统 2019-08-12 01:55:00 2429

数据库相关

HDU1056:HangOver

ProblemDescriptionHowfarcanyoumakeastackofcardsoverhangatable?Ifyouhaveonecard,youcancreateamaximumoverhangofhalfacardlength.(We'reassumingthatthecardsmustbeperpendiculartothetable.)Withtwocardsyoucanmakethetopcardoverhangthebotto

系统 2019-08-12 01:54:43 2429

数据库相关

SQL For XML

在SQL中运用ForXML将数据集以XML形式展现,以下是备用数据CREATETABLE#tab(IDINT,NameNVARCHAR(20))INSERTINTO#tab(ID,Name)SELECT1,N'chris'UNIONSELECT2,N'mark'UNIONSELECT3,N'andy'1、AUTO模式,将查询结果的每一行转为元素,元素名以表名命名,每一列(非NULL)转换成row元素的属性。SELECT*FROM#tabFORXMLAUTO

系统 2019-08-12 01:53:04 2429

数据库相关

POJ 2533 Longest Ordered Subsequence

大致题意:求最长升子序列。f[i]:前i+1个元素中包括第i+1个的最长升子序列。//Time32ms;Memory224K#includeusingnamespacestd;intmain(){inti,j,n,a[1010],f[1010],max;cin>>n;for(i=0;i>a[i];f[0]=1;for(i=1;ia[j]&

系统 2019-08-12 01:52:35 2429

数据库相关

Non-inclusive cache method using pipelined s

Anon-inclusivecachesystemincludesanexternalcacheandapluralityofon-chipcacheseachhavingasetoftagsassociatedtherewith,withatleastoneoftheon-chipcachesincludingdatawhichisabsentfromtheexternalcache.Apipelinedsnoopbusisportedtoeachoft

系统 2019-08-12 01:52:15 2429

数据库相关

1552. Brainfuck

http://acm.timus.ru/problem.aspx?space=1&num=1552“Youmayassumethatoptimalprogramwillnothavetomodifymorethanfourmemorycells.”刚开始没有注意到这句话一直想不到怎么解。后来才发现直观的解法就是dp[50][27][27][27][27][4]可以用滚动数组优化内存但是记录路径的部分没有优化会超内存后来看了大牛的提示原来只需要用dp[50]

系统 2019-08-12 01:51:51 2429

SqlServer

SQL Server Execpt和not in 性能区别

网上有很多except和notin的返回结果区别这里就就提了。主要讲except和notin的性能上的区别。CREATETABLEtb1(IDint)CREATETABLEtb2(IDint)BEGINTRANDECLARE@iINT=500WHILE@i>0beginINSERTINTOdbo.tb1VALUES(@i--v-int)SET@i=@i-1endCOMMIT我测试的时候tb1是1000,tb2是500DBCCFREESYSTEMCACHE(

系统 2019-08-12 01:33:59 2429

Linux

linux0.12 复制页目录项和页表

复制页目录项和页表的函数是1intcopy_page_tables(unsignedlongfrom,unsignedlongto,longsize)2{3unsignedlong*from_page_table;4unsignedlong*to_page_table;5unsignedlongthis_page;6unsignedlong*from_dir,*to_dir;7unsignedlongnew_page;8unsignedlongnr;910

系统 2019-08-12 01:33:41 2429