Java代码 @Path("/file") public class FileService { private static final String FILE_PATH = "c:\\file.log"; @GET @Path("/get") @Produces("text/plain") pu ...
分类:
其他好文 时间:
2019-08-30 23:26:53
阅读次数:
135
使用pod install安装第三方插件时,可能会出现如下异常: Installing SDWebImage (3.7.3) [!] Error installing SDWebImage[!] /usr/bin/git clone https://github.com/rs/SDWebImage. ...
分类:
其他好文 时间:
2019-08-30 14:26:45
阅读次数:
399
//按照条件检测数据是否存在public sttaic int isdata(Connection conn,String sql){ PreparedStatement ps =null; ResultSet rs =null; try{ ps =conn.perpareStatement(sql ...
分类:
数据库 时间:
2019-08-26 22:42:00
阅读次数:
99
线段树还需要模板的菜鸡 cpp include using namespace std; typedef long long ll; define lt ls, l, m define rt rs, m + 1, r define ls (o 1; st[ls] += lazy[o] (m l + ...
分类:
其他好文 时间:
2019-08-24 13:38:13
阅读次数:
92
鉴于水平有限,可能会有问题。 cpp include using namespace std; typedef long long ll; define ls ch[id][0] define rs ch[id][1] const int INF = 1e9; const int MAXN = 10 ...
分类:
其他好文 时间:
2019-08-24 09:54:30
阅读次数:
66
int tree[4*N]; void build(int o,int l,int r) { if(l==r) {cin>>tree[o];return;} build(ls,l,mid); build(rs,mid+1,r); tree[o] = max(tree[ls],tree[rs]); }... ...
分类:
其他好文 时间:
2019-08-23 22:44:26
阅读次数:
198
日常工作中有很多的备份工作,rsync是一个很不错的工具,尝试使用基于ssh免密登陆的方式进行备份,测试成功,是可行且方便的方法,撰文记之,以备后用: 1.A主机root用户对B主机root用户做ssh免密登陆,此过程不再赘述,请自行百度。 2.A主机安装rsync命令:yum install rs ...
分类:
其他好文 时间:
2019-08-16 18:40:39
阅读次数:
114
```cpp include using namespace std; typedef long long ll; define ls(p) ch[p][0] define rs(p) ch[p][1] const int MAXN = 100005; int a[MAXN]; ll sum[MAX ...
分类:
其他好文 时间:
2019-08-10 09:31:46
阅读次数:
76
[root@rsync-server-1 /]# lsof -i tcp:873 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME rsync 10309 root 4u IPv4 94045 0t0 TCP *:rsync (LISTEN) rs ...
分类:
系统相关 时间:
2019-08-09 15:51:20
阅读次数:
398