1 bool file_exist(const char *path) 2 { 3 struct stat st; 4 5 return (stat(path, &st) == 0) && (!S_ISDIR(st.st_mode)); 6 } ...
分类:
编程语言 时间:
2021-02-03 10:31:12
阅读次数:
0
1.添加方法 create(doc(s),[callback]) var mongoose=require("mongoose"); mongoose.connect("mongodb://127.0.0.1/mongoose_test",{useMongoClient:true}); //数据库打 ...
分类:
其他好文 时间:
2021-01-30 12:22:30
阅读次数:
0
Gradient Descent and Linear Regression with PyTorch Part 2 of "Deep Learning with Pytorch: Zero to GANs" This tutorial series is a hands-on beginner-f ...
分类:
其他好文 时间:
2021-01-30 12:07:44
阅读次数:
0
杂谈:其实原理并没有很难,本质就是hook Android的框架层中的api将我们想要的key和iv(也可以没有,就打个比方),但是目前的话,很多厂家已经不在直接调用java层的这些加密算法的api了, 很多都是使用自己实现的加密算法,要么就是放在so里面,要么就是java层自己实现一个差不多算法的 ...
分类:
移动开发 时间:
2021-01-30 12:06:25
阅读次数:
0
在Library/Think/Model.class.php 这个基础model类中在添加add,修改save,和删除delete 时各自回调用两个回调函数. 使用这两个回调函数会给开发带来方便. 1 . add()方法回调函数 // 插入数据前的回调方法 protected function _b ...
分类:
Web程序 时间:
2021-01-29 11:44:19
阅读次数:
0
Windows does not really support dual mode applications. To see console output you need to create a console application CONFIG += console However, if y ...
分类:
其他好文 时间:
2021-01-28 12:25:20
阅读次数:
0
安装ES安全认证 进入到skywalking/elasticsearch/elasticsearch-7.6.2/bin路径下, 1、为集群创建认证 文件根目录下,执行 bin/elasticsearch-certutil ca 依次输入回车(文件使用默认名),密码 2、为节点颁发证书 之后执行 b ...
分类:
其他好文 时间:
2021-01-28 11:57:30
阅读次数:
0
1.项目结构如下 2.user类的代码 package com.ximen.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data//生成get和set方 ...
分类:
数据库 时间:
2021-01-28 11:54:05
阅读次数:
0
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Unit2; type TMyProc = procedure of obj ...
分类:
其他好文 时间:
2021-01-27 13:59:43
阅读次数:
0
set hive.mapred.mode=nonstrict; 这是不严格模式,默认如此 对分区表进行查询,若在where子句中没有加分区的话,将禁止提交任务。 把属性值进行设置.默认值是没有开启的。默认是nonstrict 查看hive是否开启严格模式 set hive.mapred.mode 说 ...
分类:
其他好文 时间:
2021-01-26 12:44:54
阅读次数:
0