- 博客(50)
- 收藏
- 关注
原创 SSH登录慢的解决方案(例如等待很久才提示输入密码)
1. 现象参考以下文章:https://blog.youkuaiyun.com/wxlbrxhb/article/details/84703762安装linux系统后我们经常会遇到的一个情况是telnet到server速度很快,但是ssh连接的时候却很慢,大概要等半分钟甚至更久。ping的速度也非常好,让人误以为是ssh连接不上。本人在得到公司分配的服务器A后就遇到了这样的问题,具体现象如下:...
2019-12-17 10:02:28
670
原创 linux shell 中 按文件修改时间保存文件名
因为需要将日志文件发送到ftp中保存,但是同一个日志文件可能存了2-3天的内容,为减少后期“因为每天存一个日志,而内容有重复”这一工作量,在发送到ftp时,检测其“修改时间差”来命名文件。后来发现,同一天内该日志也可能被覆盖多次,故需要多次执行脚本。改为“用文件修改日期存文件名”currentDate=`date +%s`modifyDate=$(stat -c %Y ...
2019-12-16 17:05:58
1073
转载 Linux操作提示:“Can't open file for writing”或“operation not permitted”的解决办法
在Linux上使用vi命令修改一个文件内容的时候,发现无法保存,每次写完使用“:q!”命令可以正常退出但是使用":wq!"命令保存文件并退出时出现一下信息提示:E212: Can't open file for writing Press ENTER or type command to continue出现这个错误的原因可能有两个:1.当前用户的权限不足2.此文件可能正被其他程序...
2019-12-03 16:28:34
1455
转载 Linux释放内存空间
方法1:sync; sysctl -w vm.drop_caches=3或方法2:[root@testserver ~]# sync[root@testserver ~]# cat /proc/sys/vm/drop_caches0[root@testserver ~]# echo 3 > /proc/sys/vm/drop_caches[root@testserver...
2019-05-13 10:31:05
1016
原创 Linux中日期的加减运算
因为需要将日志文件发送到ftp中保存,但是同一个日志文件可能存了2-3天的内容,为减少后期“因为每天存一个日志,而内容有重复”这一工作量,在发送到ftp时,检测其“修改时间差”来命名文件。1. 脚本语句中if判断内不支持ftp的打开/关闭,所以不能用if+“修改时间差”来判断是否打开ftp保存文件。2.所以,依旧是每天保存一份,只是如果文件没修改,则保存为上一次(即修改当日的)文件名...
2019-04-22 17:14:18
1951
原创 linux 定时执行脚本 cronfile
1. 新建要运行的文件,vi bibtempback2. 给文件加上可执行权限,chmod a+x bibtempback3.在cronfile中加上文件的执行安排,如0 0 * * 路径名等4. 将cronfile提交给crontab:crontab cronfilehttps://zhaolicric.iteye.com/blog/1533498使用方法:用VI编...
2019-04-18 11:08:49
834
转载 linux下禁止root远程登录和添加新用户
https://www.cnblogs.com/jianz/p/7979250.html一、添加和root权限一样的用户 1、 adduser admin passwd admin (修改密码) 然后输入密码 (密码简单了通不过)系统提示输入确认密码后再输入一次。OK添加成功。2、修改 /etc/sudoers 文件,找到下面一行,在ro...
2019-03-06 10:39:00
275
翻译 pgsql SQL复杂查询示例
https://www.cnblogs.com/scode2/p/9044201.htmlWITH tmp AS(SELECT sum(sessioncount) as visitCount, appid from t_stat_visit where stattype = '1' GROUP BY appid)SELECTt1.*, t2.visitCountFROMt_e_o...
2019-02-25 14:35:08
1477
转载 python安装提示No module named setuptools,wget提示ERROR 403: SSL is required
http://www.04007.cn/article/451.html 在下载安装一个python工具时提示报错No module named setuptools[root@kermit supervisor-3.3.0]$ sudo python setup.py installTraceback (most recent call last): File "set
2018-02-27 09:59:45
12690
转载 深度学习指南:在iOS平台上使用TensorFlow
http://www.infoq.com/cn/articles/getting-started-with-tensorflow-on-ios深度学习利器:如何在智能终端中应用TensorFlow?https://mp.weixin.qq.com/s?__biz=MzU1NDA4NjU2MA==&mid=2247486131&idx=1&sn=d35b78f15c4af8e
2017-12-27 14:29:47
284
原创 cmd
1. to get the graph's input and output, ~/code/source/tensorflow$ bazel build --config=opt tensorflow/tools/graph_transforms:summarize_graphthenbazel-bin/tensorflow/tools/graph_transforms/summ
2017-12-26 09:32:54
576
转载 Neural Networks API
https://developer.android.com/ndk/guides/neuralnetworks/index.htmlNeural Networks APIIn this documentSHOW MOREUnderstanding the Neural Networks API RuntimeNeural Networks
2017-12-20 14:27:38
1347
转载 Introduction to TensorFlow Lite
TensorFlow Lite is TensorFlow’s lightweight solution for mobile and embedded devices. It enables on-device machine learning inference with low latency and a small binary size. TensorFlow Lite also sup
2017-12-20 14:25:15
439
转载 CoreML尝鲜:将自己训练的 caffe 模型移植到 IOS 上
https://cloud.tencent.com/community/article/259144?fromSource=gwzcw.632219.632219.632219
2017-12-11 14:06:36
711
转载 图片数据集太少?看我七十二变,Keras Image Data Augmentation 各参数详解
https://zhuanlan.zhihu.com/p/30197320
2017-12-08 11:12:17
693
转载 tensorflow object detection API安装
http://blog.youkuaiyun.com/u010122972/article/details/77385793终端进入models根目录 ==>> models/researchobject_detection 能够对ssd_mobilenets进行训练,为了体验效果,对object_detection 进行了安装1.安装依赖项我的是ubuntu 14.04
2017-12-01 10:45:04
2260
原创 TensorFlow Lite相关
谷歌移动端深度学习框架TensorFlow Lite正式发布 https://zhuanlan.zhihu.com/p/31063235https://github.com/tensorflow/tensorflow/labels/comp%3Alitehttps://github.com/tensorflow/tensorflow/issues/15387
2017-11-30 15:38:55
1317
转载 Android Studio手动配置Gradle的方法
http://blog.youkuaiyun.com/fuchaosz/article/details/51567808 问题(1) android sutdio第一次打开一个工程巨慢怎么办? (2) 手动配置Gradle Home为什么总是无效? (3) 明明已经下载了Gradle,配置了gradle home,为什么打开工程还是去自动下载Gradle?2 简
2017-11-15 15:43:28
324
转载 tensorflow 下载模型
六、下载模型 (可选)andriod demo源码是不包含训练好的tensorflow模型的,但是在编译时需要模型。模型一共有三个,分别对应物体识别、行人检测和图像风格迁移。在Bazel编译时,可以不用手动下载模型,因为在文件//tensorflow/examples/android/BUILD中设定了自动下载模型的操作。但是如果使用Android Studio等其他方式编
2017-11-15 14:48:06
3630
转载 phonegap与H5中的接口对比
http://www.cnblogs.com/lydialee/p/5418353.html接口HTML5phonegap差异地理定位geolocation单次定位:navigator.geolocation.getCurrentPosition(Succ
2017-10-24 15:23:03
343
转载 tensorflow源码安装过程记录(ubuntu16、基于CPU)
http://blog.youkuaiyun.com/ryoyi/article/details/54428555作者的话:这是一个安装记录,还不敢称为教程。之前安装tensorflow饶了很多弯子,所以在结合了很多教程之后,慢慢试错和结合自己理解猜测才安装成功。因此可能一些术语或者步骤原因解释不清或者不正确,希望多多包涵以及欢迎指正。ubuntu16.04.1 LTS \
2017-09-27 11:27:44
271
原创 0000000
cordova-plugin-tensorfolwhttps://github.com/heigeo/cordova-plugin-tensorflowhow to use the pluginhttps://github.com/smddzcy/hackathon-techsummit-2017
2017-09-06 09:40:10
790
转载 TensorFlow on Android
https://www.oreilly.com/learning/tensorflow-on-android啊To learn how to build and train your first TensorFlow graph from the ground up, check outAaron Schumacher's Oriole Tutorial: "H
2017-08-22 11:52:49
549
原创 PhoneGap中自创插件使用第三方.so文件
1. 在Android project中,用eclipse生成.so文件/jni头文件,并调用。 参考系列文章:http://blog.youkuaiyun.com/jiuyueguang/article/details/9447尤其1.2。遇到的问题见http://blog.youkuaiyun.com/jiaoshengha/article/details/768819252
2017-08-21 14:24:40
1360
原创 生成.so库
参考:http://blog.sina.com.cn/s/blog_475aaa7c0101kr9n.html1. 新建一个文件夹,将以下文件放一起test.h:#inludeusing namespace std;void hello();test.cpp#include"test.h"void hello(){ cout
2017-08-11 15:09:26
1254
原创 android相关错误
1. Emulator: emulator: ERROR: GPU emulation is disabled.http://blog.youkuaiyun.com/computerheart/article/details/73739577这时需要检查一下 虚拟设备的设置,编辑设置时,将Graphics 修改为 Hardware-GLES2.0 后,保存设置,重新开启虚拟机即可正常打开。
2017-08-08 10:16:08
439
原创 cordova 及插件相关命令
安装phonegap和cordova,直接使用nodejs的npm下载安装: npm install -g phonegap npm install -g cordova 检验语句: phonegap -version cordova -version 如果上面安装成功,就可以使用phonegap创建混合开发应用了: phonegap create my-app c
2017-08-07 11:51:29
609
原创 TOOLS
Axure注册码用户名:axureuser注册码:8wFfIX7a8hHq6yAy6T8zCz5R0NBKeVxo9IKu+kgKh79FL6IyPD6lK7G6+tqEV4LGUbuntu-安装-cuda7.0-单显卡-超详细教程https://www.zhihu.com/question/35249192/answer/108564240http://blog.youkuaiyun.com/xuezhis...
2017-07-05 16:00:14
610
原创 git
GitYou can reference ‘\Docs\Git\Git_Gerrit_Windows.doc’ to setup git on windows environment.Standard submission procedure with git.git pullgit statusCommit modified files: ○ git add
2017-01-04 15:30:49
295
原创 透视投影
深度插值http://blog.youkuaiyun.com/lysc_forever/article/details/17767645透视投影,很详细,各种变换http://www.doc88.com/p-372483160734.html透视投影http://www.360doc.com/content/14/0403/13/10724725_36607
2015-07-22 19:04:27
414
原创 关于Wireshark "The NPF driver isn’t running……"解决办法
转自http://blog.youkuaiyun.com/zhangkaihang/article/details/7470239今天安装Wireshark软件时出现了如下图所示的错误,就搜索了一下解决方法,特总结如下: 这个错误是因为没有开启NPF服务造成的。简要说一下NPF吧。 NPF即网络数据包过滤器(Netgroup Packet F
2014-08-20 15:50:57
3909
转载 NS-2.35在ubuntu 11.04下的安装
http://blog.sina.com.cn/s/blog_732f8e8a01011k4i.html参考书目:《NS-2网络模拟基础与应用》,作者为方路平等人,国防工业出版社。切入正题啦:1.首先到官网下载NS-2软件,网址:http://www.isi.edu/nsnam/ns/ns-build.html注意下载的是ns-allin
2014-05-29 17:11:14
676
转载 VMWare里安装64位Linux 的方法
一、64位http://hi.baidu.com/amber_like/item/eb8ecf495ac249156dc2f080
2014-05-14 20:52:57
784
转载 采用Latex的moderncv制作简历
采用Latex的moderncv制作简历原文地址:采用Latex的moderncv制作简历作者:飞飞1. 获取 moderncv 模板下载地址:http://tug.ctan.org/tex-archive/macros/latex/contrib/moderncv/下载模板:http://tug.ctan.org
2014-02-25 17:49:03
1163
原创 白云新年明信片抢楼
中奖楼层算法:http://byhh.net/f/BYHHSHOP/1387792561/2014.doc文档密码:byhhbbs*18*2014文档内容:====================================================================此次抢楼活动获奖楼层计算公式为: luckynumber = floor(C*P)
2013-12-25 10:22:19
865
原创 Spell Check
http://programarcadegames.com/index.php?chapter=lab_spell_checkRequirementsWrite a single program in Python that checks the spelling of the first chapter of “Alice In Wonderland.” First us
2013-11-18 21:48:13
1024
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人