Preprocessor programs provide preprocessors directives which tell the compiler to preprocess the source code before compiling. Examples of some prepro ...
分类:
其他好文 时间:
2020-05-16 00:28:44
阅读次数:
64
Q:今天有人问我lsof是怎么实现的? 然后当时在想要是我应该怎么实现? 通过每个进程的file_table list 出来!!! 实际上怎么出来的呢??strace lsof 结果可知 就是通过读取 /proc/pid/fdinfo 。。。。。。。。。。。。。。平时会用到proc/pid/ 却没有 ...
分类:
其他好文 时间:
2020-05-16 00:22:10
阅读次数:
75
在VS中 --> 项目 --> 项目属性 --> C/C++ --> 命令行 添加编译选项 /d1reportSingleClassLayoutB (B是你要查看的类名) 代码一:测试虚标的存在 /// /// @filename /// @author whao Luo /// @email ha ...
分类:
编程语言 时间:
2020-05-15 22:59:09
阅读次数:
176
首先看看service nfs status 如果没启动 先启动service nfs restart 1、 umount -lf nfs /路径 /挂载的目录 2、mount -t nfs /路径 /挂载的目录 3、df -k 查看挂载的目录 亲测 解决了1个多小时才好简直让人。。。。。。。。 ...
分类:
其他好文 时间:
2020-05-15 20:34:18
阅读次数:
94
文件上传的controller @Autowired private service uploadService; @PostMapping("/image") public ResponseEntity<String> saveImage(@RequestParam("file")Multipar ...
分类:
编程语言 时间:
2020-05-15 20:02:50
阅读次数:
91
前言 使用vscode开发vue项目的时候,为了编码格式的统一化,使用eslint规范进行格式化。此时通过eslint插件可以实现对vue代码的自动格式化。 使用方式 在vscode的插件模块处,搜索eslint。找到下面的插件。 安装完成后,进行配置。 file preferences setti ...
分类:
其他好文 时间:
2020-05-15 20:02:35
阅读次数:
235
0x00:写在前面 这题涉及几个🧀点 escapeshellarg($host);给字符串增加一对单引号,保证shell正常执行。加一对单引号的同时,对字符串内可能存在扰乱执行的符合进行转义e'->'e'\''' escapeshellcmd($host);对字符串中可能会欺骗 shell 命令执 ...
分类:
其他好文 时间:
2020-05-15 18:20:45
阅读次数:
106
input file控件选中文件后,转为image对象就ok了 var file = $(e)[0].files[0]; let url = window.URL || window.webkitURL; console.log(url.createObjectURL(file)); //file ...
分类:
Web程序 时间:
2020-05-15 18:20:10
阅读次数:
162
效果图: 这是在google浏览器下打开的html。 play.py #!/usr/bin/env python # _*_ coding: UTF-8 _*_ """ @Project -> File : Operate_system_ModeView_structure -> play.py @ ...
分类:
其他好文 时间:
2020-05-15 17:50:26
阅读次数:
55
隐藏、显示、切换,滑动,淡入淡出,以及动画,哇哦! 点击 显示/隐藏面板 实例 jQuery hide() 简单的jQuery hide()方法演示。 jQuery hide() 另一个hide()实例。演示如何隐藏文本。 jQuery hide() 和 show() 通过 jQuery,您可以使用 ...
分类:
Web程序 时间:
2020-05-15 16:13:41
阅读次数:
90