`
7wolfs
  • 浏览: 177540 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论
文章列表
1、安装 tensorflow Pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple 安装时,为了加快下载资源速度,使用 i 参数,选择了国内镜像站点。 2、用helloworld代码tensorflow是否安装成功 import tensorflow as tf tf.compat.v1.disable_eager_execution() hello = tf.constant('Hello, TensorFlow!') sess = tf.compat.v1.Session() print(sess ...

Flink 初探

一、前言 随着新兴的大数据处理框架不断推陈出新,storm已经逐渐淡出了人们的视野,storm的社区已经有近3年无人维护。storm已经被Flink替代,接下来,我们就以Flink框架作为大数据处理的核心框架进行研究,并把storm中的代码移植到Flink中。 先分析一下Flink的优势,了解一下选用Flink的优势和必要性。 具体的Flink优势和特点,可以从网上进行搜索去查看。具体内容,参考以下几个链接: https://www.infoq.cn/article/fRt1RF1pxu_ZtmeObOoJ 本文主要以实战为主,先构建Flink的运行环境,通过实际运行代码来感受和分析Flin ...
1、忘记用户密码无法登陆操作系统 1)使用一个windows 安装盘,通过安装盘进入操作系统安装第一步 2)在安装第一步中,选择‘修复电脑’, 再选择 ‘命令行’ ,进入 cmd 窗口 3)在cmd窗口中,跳转到系统所在的分区。比如 c盘.   cd \d c: 4)在cmd窗口中,cd Windows\System32       接下来依次输入下列命令:       copy sethc.exe sethc_bk.exe       copy /y cmd.exe sethc.exe 5)  重启电脑。出现登陆界面后,连按 Shift 键 5次,执行这个动作后,会打开命令 ...

实时推送

 
初探和实现websocket心跳重连 http://www.cnblogs.com/1wen/p/5808276.html

Resin 维护

<!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]--> 1、因为resin 的war部署的特点,当resin重启时,会使用最近一次war部署的内容,war部署后产生的内容不会恢复。   2、如果war文件过大,需要修改 ‘/mnt/resin/doc/admin/WEB-INF/resin-web.xml’ 里的 ‘php-ini ...

Kibana

 kibana i18n 项目 https://github.com/tchenData/kibana   1、kibana-5.1.1\src\core_plugins下的内容的访问访问kibana-5.1.1\src\core_plugins下 public的文件夹里的内容时,要忽略该文件夹名,跳过该文件夹名。比如:访问如下 kibana-5.1.1\src\core_plugins\kibana\public\management\sections\indices内容,访问路径写法如下:$translatePartialLoader.addPart('../plugins/kib ...

Storm集群部署

JStorm集群部署ZooKeeper高可用集群的安装及配置http://wosyingjun.iteye.com/blog/23129601、下载并上传zookeeper-3.4.6.tar.gz到各个服务器的/usr/local/目录$ cd /usr/local/$ wget http://apache.fayea.com/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz2、在各个服务器上解压zookeeper安装包,并按节点号对zookeeper目录重命名(可以不对目录重命名)$ tar -zxvf zookeeper-3.4.6.ta ...

自动化测试

  1、linux下 执行JMeter测试脚本 在机器的 /usr/local/jmeter/apache-jmeter-2.13/bin目录里执行 java -jar ApacheJMeter.jar -n -t /home/software/test.jmx -l test.jtl/home/software/ips.txt这个文件修改ip,一行一个ip

python QA

<!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]--> <!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> ...

python 开发

解决 Eclipse+pydev安装配置找不到pydev的问题 http://blog.csdn.net/zhang431705/article/details/16860129/ 默认显示的最新的插件版本(我的显示的是2.8.x),但是系统自带的是python2.7.3。 pydev for eclipse插件版本不对就会出现安装完成,却在eclipse-》window-》perference中找到不pydev选项的问题。 这个版本对了就不会出什么问题。如果后面pydev安装过程中出现问题,可以反复执行这个步骤,已经安装的包不会重新安装,会接着上次的继续下载安装的。 关于Python报错 ...

Spark 记录

1、java.lang.StackOverflowError when calling count() http://apache-spark-user-list.1001560.n3.nabble.com/java-lang-StackOverflowError-when-calling-count-td5649.html http://www.iteblog.com/archives/1140 We were getting the same problem also. Funny thing our code worked with larger data set and faile ...

Linux 操作

1、单引号的使用 发现变量在单引号里是不传递的,这时想到要用两个单引号才行。 [root@test] a=55 [root@test] echo $a 55 [root@test] echo '$a' $a [root@test] echo ''$a'' #注意此处是两个单引不是一个双引 55 双引号是不会屏蔽对变量和某 ...
4、ajax请求自动带cookie 1、在前端http请求中增加 withCredentials 属性 $http({ method: 'post', url: url, data: paras ,withCredentials: _withCredentials }).success(function (data, status, headers, config) { //var ret = angular.isString(data) ? ...
cent-os下AES加解密算法会动态变化。 导致解密使用的算法与加密使用的算法不一致。 解决:加解密获取SecureRandom时,指定具体类型。 SecureRandom random = SecureRandom.getInstance("SHA1PRNG"); random.setSeed(password.getBytes()); kgen.init(128, random);

angular 笔记

angular有些指令在最新版中已经改变了名字。 如: datepicker改成了uibDatepicker pagination改成了uibPagination angular指令命名规范 在定义时,如果使用驼峰方式,如 uibDatepicker,则在使用时需要用 - 符号隔开单词,字母都改成小写,如 uib-datepicker
Global site tag (gtag.js) - Google Analytics