Linux库函数之opendir/closedir/readdir

  • Post author:
  • Post category:linux

在Linux环境下,有时候需要编写一些实用的工具,比如检索功能,最近在做病毒查杀应用开发,涉及到批量扫描指定目录下文件, 因为要测试大量病毒文件,该部分功能又是要通过API集成到其他应用软件中,设计时采用单个文件扫描,但是自己测试文件另写工具 文件量太大不可能手动一个一个测试,还厚Linux下有现成的关于目录的库函数,于是就动手添加了关于获取目录文件的代码; 1)打开指定目录opendir得到目录…

继续阅读 Linux库函数之opendir/closedir/readdir

kubernetes创建资源对象yaml文件例子–pod

  • Post author:
  • Post category:其他

kubernetes创建pod的yaml文件,参数说明 apiVersion: v1 #指定api版本,此值必须在kubectl apiversion中 kind: Pod #指定创建资源的角色/类型 metadata: #资源的元数据/属性 name: web04-pod #资源的名字,在同一个namespace中必须唯一 labels: #设定资源的标签,详情请见http://blog.csd…

继续阅读 kubernetes创建资源对象yaml文件例子–pod

mysql20数据_mysql 插入20万条数据

  • Post author:
  • Post category:mysql

1. 用c语言写20万条数据 #include void pro_ID(char * str,inti){if(i%17576==0){++*(str+1);*(str+2)=97;*(str+3)=97;*(str+4)=97;return; }if(i%676==0){++*(str+2);*(str+3)=97;*(str+4)=97;return; }if(i%26==0){++*(str…

继续阅读 mysql20数据_mysql 插入20万条数据

anaconda虚拟环境管理,从此Python版本不用愁

  • Post author:
  • Post category:python

1 引言 在前几篇博文中介绍过 virtualenv、virtualenvwrapper等几个虚拟环境管理工具,本篇要介绍的anaconda也有很强大的虚拟环境管理功能,甚至相比virtualenv、virtualenvwrapper等工具,更加强大。 Anaconda是专注于数据分析的Python发行版本,包含了conda、Python等190多个科学包及其依赖项。我们本篇要介绍的anacond…

继续阅读 anaconda虚拟环境管理,从此Python版本不用愁

css实现炫酷充电动画

  • Post author:
  • Post category:其他

先绘制一个电池,电池头部和电池的身体 这里其实就是两个 div ,使用 z-index 改变层级,电池的身体盖住头部,圆角使用 border-radius 完成 html部分,完整的css部分在最后 <div class="chargerBox"> <div class="chargerHead"></div> <div class="chargerBod…

继续阅读 css实现炫酷充电动画

P2670扫雷

  • Post author:
  • Post category:其他

#include <stdio.h> #include <string.h> int main(){ int n,m; scanf("%d%d",&n,&m); char lei[n][m+1]; char a[105][105]; getchar(); for(int i=1;i<=n;i++){ gets(lei[i-1]); } for(int …

继续阅读 P2670扫雷

Could not resolve host: mirrors.neusoft.edu.cn

  • Post author:
  • Post category:其他

问题来源:yum install -y  gcc gcc-c++ cmake ncurses ncurses-devel biso 错误:下载失败,报标题错误 解决办法:1.修改配置文件vi /etc/sysconfig/network-scripts/ifcfg-ens160 DNS1=本机ip DNS2=8.8.8.8 2.修改配置文件 vi /etc/resolv.conf nameserv…

继续阅读 Could not resolve host: mirrors.neusoft.edu.cn

php warning require_once,解决“Warning: require_once() 的几个方法

  • Post author:
  • Post category:php

今天把论坛转移到了自己的服务器上,服务器是win2003+iis+php+mysql 但访问论坛总是提示以下信息: Warning: require_once() [function.require-once]: Unable to access ./include/common.inc.php in E:\forumcityheb\index.php on line 12 Warning: re…

继续阅读 php warning require_once,解决“Warning: require_once() 的几个方法

mysql in的用法

  • Post author:
  • Post category:mysql

MySQL in 的用法 in常用于where表达式中,其作用是查询某个范围内的数据,而not in与in作用相反 1. in 基本用法 select name,sex,age,grade from student where age in (11,12,13); 2. in 多个字段同时使用 select name,sex,age,grade from student where (age,gr…

继续阅读 mysql in的用法

Spring框架实现定时任务调度

  • Post author:
  • Post category:其他

在Spring配置文件中进行配置基本信息 在xmlns中添加 xmlns:task="http://www.springframework.org/schema/task" 在xsi中添加 http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.2.xsd…

继续阅读 Spring框架实现定时任务调度