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

文件和目录之文件访问权限

st_mode值也包含了针对文件的访问权限位。所有文件类型(目录文件、字符特殊文件等)都有访问权限(accesspermission)。每个文件有9个访问权限位,可将它们分成三类,见表4-5:表4-59个访问权限位,取自st_mode屏蔽意义S_IRUSR用户-读S_IWUSR用户-写S_IXUSR用户-执行S_IRGRP组-读S_IWGRP组-写S_IXGRP组-执行S_IROTH其他-读S_IWOTH其他-写S_IXOTH其他-

系统 2019-08-12 09:26:44 2475

Linux

linux下启动oracle服务和监听程序

linux下启动oracle服务和监听程序oracle数据库是重量级的,其管理非常复杂,将其在linux平台上的启动和关闭步骤整理一下。安装完毕oracle以后,需要创建oracle系统用户,并在/home/oracle下面的.bash_profile添加几个环境变量:ORACLE_SID,ORACLE_BASE,ORACLE_HOME。比如:exportORACLE_SID=testexportORACLE_BASE=oracle_install_dir

系统 2019-08-12 01:53:34 2475

C#

C#3.0入门系列(十一)-之In, Like操作

有这么一个例子,寻找一个表中的某个字段介于某个给定的集合该怎么办?Sql写起来很简单,比如:Select*fromtablewhereidin(2,3,4,5)。就是寻找id字段为这个给定的集合(2,3,4,5)内的值。那LinqtoSql该怎么做呢?一个字,简单。InOperator比如,我们想要查找,"AROUT","BOLID"和"FISSA"这三个客户的订单。该如何做呢?LinqtoSql是这么做的。string[]customerID_Set=n

系统 2019-08-12 01:52:46 2475

C#

C# 导入导出excel文件案例

个人总结导出excel报表的案例://导出报表protectedvoidbtnExport_Click(objectsender,EventArgse){Listlist=GetDataTableFromIList();if(list==null||(list!=null&&list.Count==0)){Messabox.ShowError(this,"无记录导出");return;}stringname="~/File/

系统 2019-08-12 01:33:43 2475

操作系统

Information centric network (icn) node based

Thepresentinventionrelatestoanapparatusforsupportinginformationcentricnetworking.Aninformationcentricnetwork(ICN)nodebasedonaswitchaccordingtothepresentinventionincludesanICNprocessconfiguredtorequestinformationforprovidingcontent

系统 2019-08-12 01:32:18 2475

Python

Python3+PyInstall+Sciter解决报错缺少dll、html

1调试过程用Python3.6+Sciter+PyCharm写了一个py测试脚本helloworld.py,该脚本中只含有一条语句“importsciter”。在PyCharm中运行之,未报错。#helloworld.pyimportsciter然后将该脚本用PyInstaller打包成exe文件,打包程序pack.py如下:#pack.pyfromPyInstaller.__main__importrunif__name__=='__main__':op

系统 2019-09-27 17:52:27 2474

编程技术

设计模式之Memento(注释状态?)

Memento备望录模式定义:memento是一个保存另外一个对象内部状态拷贝的对象.这样以后就可以将该对象恢复到原先保存的状态.Memento模式相对也比较好理解,我们看下列代码:publicclassOriginator{publicintnumber;publicFilefile=null;publicOriginator(){}//创建一个MementopublicMementogetMemento(){returnnewMemento(this)

系统 2019-08-29 23:37:41 2474

编程技术

J2ME:颜色渐变

1:importjavax.microedition.lcdui.Graphics;2:3:publicclassCrystalRGB{4:5:publicfinalstaticvoiddrawRGBVRect(Graphicsg,intcolor,intx,inty,6:intwidth,intheight){7:int[]rgb=getRGBVColor(color,height);8:for(inti=0;i9:intnTemp=x+width-(i

系统 2019-08-29 23:27:50 2474

编程技术

magento 创建结构产品 Creating a Configurable

Rightoutofthebox,Magentoprovidesseveralbuilt-inproducttypeswhichallowsittoaccommodatemanyofthemostcommonproductsforsaleonthewebtodaywithoutadditionalcustomization.SimpleproducttypesinMagentoincludeSimple,VirtualandDownloadable.Com

系统 2019-08-29 23:12:54 2474