weixin_39567013的博客

私信 关注
weixin_39567013
码龄4年
  • 3,406
    被访问量
  • 121
    原创文章
  • 1,398,001
    作者排名
  • 4
    粉丝数量
  • 于 2017-07-20 加入CSDN
获得成就
  • 获得3次点赞
  • 内容获得0次评论
  • 获得2次收藏
荣誉勋章
  • 最近
  • 文章
  • 资源
  • 问答
  • 课程
  • 帖子
  • 收藏
  • 关注/订阅

java invokevirtual_java7(1)——反编译深入理解增强的switch

【本文介绍】本文主要讲java_7 的改进switch的底层实现。反编译一个使用带String的switch的demo并一步步解析反编译出来的字节码,从编译的角度解读switch的底层实现。【正文】在java7中,switch()可以放进去String 类型了,这无非是一大便利。底层JVM的swtich并没有真正的改进,只是在编译阶段,编译器把关于String的switch拆分成if语句而已。我们...
原创
0阅读
0评论
0点赞
发布博客于 13 天前

java ee无法安装_安装后,我无法使Java EE SDK在我的项目中包含它

Java EE SDK文件在哪里?!?!Windows上的默认位置是c:\ glassfish4。为何选择GlassFish?见下文。为什么我被迫使用GlassFish?GlassFish 4.0是Java EE 7.0的“参考实现”。那是什么意思?这意味着它是衡量兼容Java EE 7.0服务器的基准。它构成了其他Java EE服务器(如JBoss或TomEE)必须通过的Java EE测试套件的...
原创
0阅读
0评论
0点赞
发布博客于 13 天前

三路快速排序 java_快速排序 java实现 (原理-优化) 三路快排

一、基本的快速排序在数组中选取一个元素为基点,然后想办法把这个基点元素移动到它在排好序后的最终位置,使得新数组中在这个基点之前的元素都小于这个基点,而之后的元素都大于这个基点,然后再对前后两部分数组快速排序,直到数组排序完成。 代码实现:public void quickSorted ( intarr[] ) {int n = arr.length - 1; //闭区间 [0...
原创
0阅读
0评论
0点赞
发布博客于 16 天前

java 做计算器 百度云_急!!高分求JAVA做一个计算器

展开全部package cn.quad.window;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Counter extends Frame {/****/private static final long serialVersionUID = 1L;// 声明三个面板的布局636f7079...
原创
1阅读
0评论
0点赞
发布博客于 16 天前

node 调用java_Node调用Java的示例代码分享

Java 端作为服务提供者,基于Dubbo 实现服务并通过 Dubbo Hessian 扩展暴露服务;Node 端作为服务消费者,通过node-hessian 调用 Java 端的服务。本文主要和大家介绍了Node调用Java的示例代码,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧,希望能帮助到大家。Java 端服务接口package com.yuanxin.paas...
原创
0阅读
0评论
0点赞
发布博客于 17 天前

丑数2 python_Ugly Number(丑数)系列题 Python解法

Leetcode 263. Ugly Numberclass Solution(object):def isUgly(self, num):""":type num: int:rtype: bool"""if num <= 0:return Falsefor i in [2,3,5]:while num % i == 0:num = num / iif num == 1:return Tru...
原创
0阅读
0评论
0点赞
发布博客于 17 天前

python项目代码管理_管理C++项目的Python脚本

对于我来说,将Python脚本用于这些任务是否是一个很好的解决方案似乎是非常具体的项目,并且试图回答这样一个问题可能还不够。不过,让我试着分类一下。发射装置发射测试制造编译文档你应该问问自己为什么要调用make,make test和make docs还不够。中间的python层对我来说似乎是一个过分的杀伤力,因为我想不出哪种情况会增加这么多的便利性。如果制作调用太复杂(例如,由于必须指定许多参数)...
原创
0阅读
0评论
0点赞
发布博客于 18 天前

linux 自动安装mysql数据库_Linux环境安装Mysql数据库(手工+自动两种 详细版)

第一种安装方式:安装MySQL后,需要初始化 授权表、启动服务器,并确保服务器工作正常。你还要让服务器随系统的启动和停止自动启动和停止。应当为授权表中的账户指定密码。在某些安装中,该程序自动运行。1、添加mysql用户组以及用户groupadd mysqluseradd -g mysql mysql2、解压mysql 并制定安装目录cd /root/software/tar xvzf mysql-...
原创
0阅读
0评论
0点赞
发布博客于 22 天前

layui使用ueditor全屏_layui表单引入ueditor遇坑记

1. 错误示例:表单容器是div标签则无法获取ueditor的内容注:对于普通的表单元素表单容器是div也都能获取layui ueditor.box {width: 60%;margin: 60px auto;}标题内容立即提交重置layui.use(‘form‘, function(){var form = layui.form;// 实例化编辑器var ue = UE.getEditor(‘c...
原创
1阅读
0评论
0点赞
发布博客于 22 天前

mysql8.0递归_mysql8.0版本递归查询

1.先在mysql数据库添加数据DROP TABLE IF EXISTS `dept`;CREATE TABLE `dept` (`id` int(11) NOT NULL,`pid` int(11) DEFAULT NULL,`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,`date` da...
原创
2阅读
0评论
0点赞
发布博客于 23 天前

tomcat realm mysql resource_Tomcat7.0.40 基于DataSourceRealm的和JDBCRealm的资源用户访问控制...

软件版本:Tomcat 7.0.40Mysql: 5.1Host: CentOS 6.3 64bit使用JDBCRealm (Tomcat 会使用所给的JDBC Connecter 自己去连MySQL 数据库并进行用户验证):1) 下载MySQL-JDBC connector 如mysql-connector-java-5.1.24-bin.jar放到$CATALINA_HOME/lib目录下;2...
原创
1阅读
0评论
0点赞
发布博客于 24 天前

连接docker mysql2003_navicat连接docker lamp容器中的mysql报错,错误码2003

我使用docker hub里面的mattrayner/lamp运行了一个容器,暴露了3306和8081端口用作外部使用。在使用navicat尝试连接mysql时报错:2003 - cant't connect to mysql server on ip (10061 "unknown error“)下面是我的dockerfile和docker-compose.yml// dockerfileFRO...
原创
8阅读
0评论
0点赞
发布博客于 25 天前

python oss批量上传_python上传文件到oss

基础环境# +++++ 阿里云OSS开发指南里都有详细的步骤,在这里整理了一下自己需要的东西# 确定开发环境,centOS默认安装了python2.7# python -V# 安装python开发包# yum install -y python-devel# 安装OSS的sdk# yum install -y python-pip# pip2.7 install oss2# 验证oss2是否安装正...
原创
7阅读
0评论
0点赞
发布博客于 26 天前

mysql8.0.19怎么用_MySQL8.0.19安装教程

官网下载安装包:mysql-8.0.19-Linux-glibc2.12-x86_64.tar.xz安装环境:CentOS Linux release 7.5.1804 (Core)解压安装包: xz -d mysql-8.0.19-linux-glibc2.12-x86_64.tar.xztar -xvf mysql-8.0.19-linux-glibc2.12-x86_64.tar环境变量: ...
原创
3阅读
0评论
0点赞
发布博客于 27 天前

mac mysql安装错误日志_(转)Mac下MySql安装经历(含安装错误排查、卸载多种折腾)...

在安装mysql的时候,活活折腾我两天。结果终于被我折腾成功了……一开始我就放了个错误:我下了32位版本的mysql:mysql-5.5.8-osx10.6-x86.dmg须知在mac下装的是64位的python,所以后面我安装mysql的python驱动Mysql-python,一直出错:importError dlopen(…./…./_mysql.so,2)注:安装mysql-python的...
原创
7阅读
0评论
0点赞
发布博客于 28 天前

bootstrap 获取表格修改的结果_BootStrap table动态增删改表格内数据

1:添加一个【操作】列{title: "操作",align: 'center',valign: 'middle',width: 160, // 定义列的宽度,单位为像素pxformatter: function (value, row, index) { //传入数据return '删除';}}2:创建删除方法function del(id) {//yzh// debugger;var ...
原创
28阅读
0评论
0点赞
发布博客于 28 天前

java性能分析工具_java性能采集工具

概述java性能采集工具。可采集进度内部的内存(堆,非堆,直接),cpu,句柄数,gc,日志(logback日志,分等级采集),也支持采集自定义指标,并提供http方法访问数据。http服务/ runtime:运行时参数/ metrics:prometheus采集数据/ threads:线程线程/ logs / recent:最近日志/ logs / error:最近的错误日志通话方式约...
原创
1阅读
0评论
0点赞
发布博客于 29 天前

python oserror win10_win10上 安装python环境遭遇OSError: raw write()

win10上 安装python环境遭遇OSError: raw write()发布时间:2020-07-03 16:31:16来源:51CTO阅读:1266作者:袄淋披壳_sh前文提到在python代码中发现总是执行出错,确又不是自己代码问题的bug,原来是win10的问题,windows搞开发真的需要很大的耐心,有兴趣的可以参考这个来处理:python3遇上win10的坑这次又遇到pip安装包报...
原创
6阅读
0评论
0点赞
发布博客于 2 月前

pcb沉金甩金_PCB板上为什么要沉金和镀金

PCB板上为什么要沉金和镀金发布时间:2017-10-18点击数:载入中...一、什么是镀金:整板镀金。一般是指【电镀金】【电镀镍金板】,【电解金】,【电金】,【电镍金板】,有软金和硬金(一般用作金手指)的区分。其原理是将镍和金 (俗称金盐)溶于化学药水中,将电路板浸于电镀缸中并通上电流而在电路板的铜箔面上生成镍金镀层,电镍金因其镀层硬度高,耐磨损,不易氧化的特点在电子产品名得到广泛的应用。什么是...
原创
20阅读
0评论
0点赞
发布博客于 2 月前

mysql 2008降序排列_server sql 2008 排序规则有哪些

方法/步骤1安装包解压2解压后,打开setup.exe文件,选择安装,显示如图:3选择全新安装或向现有安装添加功能4点确定5输入 企业版序列号:R88PF-GMCFT-KM2KR-4R7GB-43K4B6我接受许可条款,点下一步7点安装,如果操作系统没有安装.net framet3.5 sp1 ,将会自动安装。8必备环境全部通过后,点下一步9选择SQLSERVER功能安装,点下一步10全选,下一步...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

dram和nand哪个难生产_DRAM/NAND都是啥? 科普内存和硬盘的区别

手机/电脑的内存和存储现如今随着手机的不断推广和普及,已掩盖电脑时代的辉煌,很多新生代的用户都与手机的存储就陷入了茫然,于是我们经常会遇到“Q:你的手机内存多大?A:128GB”这样的笑话,实际上我们也相信提问者就是想知道手机存储容量的大小,而回答者也已经按照约定俗成的方式回答了问题。于计算机组成原理来分析:手机和电脑并没有本质的区别,主体结构依然为输入设备、存储器、运算器、控制器和输出设备,至于...
原创
21阅读
0评论
0点赞
发布博客于 2 月前

代码自动检查工具_使用基于Roslyn的代码检查工具提升代码质量

随着特来电充电业务的快速增长和运营需求的增多,研发团队越来越庞大,需求更迭也越来越快,每天有数百次代码的Check In,数十个补丁的提交,这也带来以下几个痛点:代码审查的质量与代码审查规范的严格执行、投入的时间、代码审查人的经验强相关,很多代码问题可能审查不出来,影响产品交付质量代码审查的时间、资源投入很大:2019年到现在累计838次代码审查,全是人工审查各个团队代码审查规范和标...
原创
9阅读
0评论
0点赞
发布博客于 2 月前

python 满足条件推出函数_Python专题 | (四)输入、基本运算符和语句结构

小伙伴们,大家好啊,欢迎回到我们的Python专题。今天我们的主要讲述内容为语句结构。程序是对一段逻辑的体现,而逻辑可以分为三种结构,这三种结构就对应着编程中的语句结构,他们分别是:顺序结构选择结构循环结构一、输入在进行今天的讲述之前,我们先了解一下输入。上一篇文章我们讲述了输出函数print(),今天先对这个方面进行一下收尾,讲一下输入函数input()。input()函数使用格式如下...
原创
2阅读
0评论
0点赞
发布博客于 2 月前

jdbc 书城后台管理系统_JSP+Servlet+JDBC+Mysql实现的天才会议管理系统

项目简介项目来源于:https://github.com/hegexunmeng/meeting-system这次分享一个会议管理系统,前端后端几乎没有使用任何框架,适合新手入门,相应的,界面略丑。本系统基于JSP+Servlet+Mysql+JDBC。涉及技术少,易于理解,适合JavaWeb初学者学习使用。难度等级:简单技术栈编辑器Eclipse Version: 2019-12 (4.14.0...
原创
2阅读
0评论
0点赞
发布博客于 2 月前

nodejs与mysql交互_NodeJS与Mysql的交互

把Mysql Module装到 NodeJS中 Js代码 ? $npm?install?Mysql??? JS脚本 mysqlTest.js Js代码 ? // mysqlTest.js ? //加载mysql Module ? var Client = require(mysql).Client, ? ?? ?client = new Client(), ? ? //要创建的数据库名 ? ?? ...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

c++ 序列化通信_第八章(第4节):序列化

当程序运行起来时(也就是进程),所有的变量都保存在内存中, 当进程结束后,该进程申请的内存都要被操作系统回收,我们在内存中的数据就会丢失, 如果想使数据持久化,我们可以把数据存储在磁盘上。 但是文件对象只能处理字符流,如果我们要存储的数据类型为其它类型(int,float,bool,list,tuple,dict等等)应该怎么办呢。不但读写磁盘需要通过文件对象,网络传输数据也需要通过文件对象,因为...
原创
2阅读
0评论
0点赞
发布博客于 2 月前

php mysql防注入字符串过滤_php 过滤特殊字符及sql防注入代码

//方法一//过滤',",sql语名addslashes();//方法二,去除所有html标签strip_tags();//方法三过滤可能产生代码function php_sava($str){$farr = array("/s /","/]*?)>/isU","/(]*)on[a-zA-Z] s*=([^>]*>)/isU",);$tarr = array(" ","<\1\2...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

mysql事务高级_MySQL数据库高级(七)——事务和锁

MySQL数据库高级(七)——事务和锁一、事务简介1、事务简介事务(Transaction) 是指作为单个逻辑工作单元执行的一系列操作。2、事务的特性A、原子性(Atomicity)表示组成一个事务的多个数据库操作是一个不可分隔的原子单元,只有所有的操作执行成功,整个事务才提交,事务中任何一个数据库操作失败,已经执行的任何操作都必须撤销,让数据库返回到初始状态。B、一致性(Consistency)...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

spring数据库配置 mysql_spring中的数据库配置

spring中的数据库配置1.使用org.springframework.jdbc.datasource.DriveManagerDataSource1 2 3 ${jdbc.driverClassName}4 5 6 ${jdbc.url}7 8 9 ${jdbc.username}10 11 12 ${jdbc.password}13 14 说明:Driv...
原创
10阅读
0评论
0点赞
发布博客于 2 月前

如何使用Mysql子查询_MySQL必知必会--使用子查询

子查询版本要求 MySQL 4.1引入了对子查询的支持,所以要想使用本章描述的SQL,必须使用MySQL 4.1或更高级的版本。SELECT语句 是SQL的查询。迄今为止我们所看到的所有 SELECT 语句都是简单查询,即从单个数据库表中检索数据的单条语句。查询(query) 任何SQL语句都是查询。但此术语一般指 SELECT语句。SQL还允许创建子查询(subquery),即嵌套在其他查询中的...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

mysql utf8 汉字转拼音_php mysql中utf8编码汉字转换成拼音

$db = mysql_connect("127.0.0.1:3307", "root","123");if(!$db) {// Show error if we cannot connect.echo 'ERROR: Could not connect to the database.';} else {// Is there a posted query string?if(isset($_P...
原创
5阅读
0评论
0点赞
发布博客于 2 月前

mysql 集群 同步_MySQL同步集群

MySQL-Cluster7.2.5安装和配置查看文章索引请通过http://www.cnblogs.com/seesea125/archive/2012/04/17/2453256.html下面介绍一下MySQL-Cluster7.2.5安装和配置,按照此步骤本人已配置成功,如有疑问请联系我环境:一台10.32.33.120 做一个数据节点,SQL节点,管理节点一台 10.32.34.116 做...
原创
6阅读
0评论
0点赞
发布博客于 2 月前

mysql 条件判断_mysql数据库sql查询语句:多条件判断

展开全部1、创建测试表,create table test_person(id int, RMB int);2、插入测试数据insert into test_person values(1,180);insert into test_person values(2,170);insert into test_person values(3,290);insert into test_person ...
原创
7阅读
0评论
0点赞
发布博客于 2 月前

python每隔一段时间保存网页内容_如何将Python程序中的数据每隔一段时间插入MySQL数据库...

我已经创建了一个温度传感器(使用DS18B20温度传感器),并编写了python程序来读取和显示每10秒的温度。它工作得很好。后来,我修改了代码,将每10秒的记录保存到MySQL数据库中。现在,问题是它第一次读取数据时会将数据记录并上传到数据库。然后,我收到一条错误消息。所以基本上,程序只读取并上传到数据库一次,然后在错误发生后退出。请告诉我怎么解决这个问题!谢谢!代码如下:import osim...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

arima 公式_时间序列预测之--ARIMA模型

什么是 ARIMA模型ARIMA模型的全称叫做自回归移动平均模型,全称是(ARIMA, Autoregressive Integrated Moving Average Model)。也记作ARIMA(p,d,q),是统计模型(statistic model)中最常见的一种用来进行时间序列 预测的模型。1. ARIMA的优缺点优点: 模型十分简单,只需要内生变量而不需要借助其他外生变量。缺点:1....
原创
39阅读
0评论
0点赞
发布博客于 2 月前

ubuntu19 安装git_ubuntu 19 git安装与入门

1 安装安装方式主要有两种,即通过Apt和source:1.1 通过Apt安装:官网上提供的命令是:$ sudo add-apt-repository ppa:git-core/ppa1中间暂停时,按回车键Enter继续安装。$ sudo apt-get update$ sudo apt-get install git12安装下载完成后,可以使用下面的命令行,确认git的版本:$ git --ve...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

ext form验证tip_验证特效:Validform

## 特效介绍:一行代码搞定整站的表单验证Validform就是一款开源的第三方验证js的控件,通过添加相应的js以及css能够有效的验证表单,维护起来也很方便。## 使用说明:**头部插入js和css:**~~~~~~~~~* 昵称:昵称为6~18个字符* 密码:密码范围在6~16位之间* 确认密码:两次输入密码需一致~~~~~~$(function(){$(".registerform").V...
原创
5阅读
0评论
0点赞
发布博客于 2 月前

什么软件画er图方便_如何画好ER图

快速阅读了解ER图的基本组成,以及如何在viso中画ER图。什么是ER图是实体关系图,用矩形表示实体,用椭圆形表示属性,用棱形表示两实体之间的联系。相互用直接联接起来,是一种数据建模工具。用来描述现实世界的概念模型 。怎么画,用什么工具画最常见是用VISIO来画,也可以在线网站Processon里画。实体矩形表示 。内写明实名名属性用椭圆形表示,用直接与实体连接联系用菱形表示,里面写两个实体之间是...
原创
9阅读
0评论
0点赞
发布博客于 2 月前

idea2020配置jetty启动_solr-7.7.2安装配置-hxgd2014的博客

一、介绍Apache Solr 是基于 Apache Lucene构建的流行,快速,开源的企业搜索平台。Solr 具有高可靠性,可扩展性和容错性,可提供分布式索引,复制和负载均衡查询,自动故障转移和恢复以及集中配置等特性。 Solr 为世界上许多大型互联网站点提供搜索和导航功能。Solr 是用 Java 编写、运行在 Servlet 容器(如 Apache Tomcat 或Jetty)的一个独立的...
原创
8阅读
0评论
0点赞
发布博客于 2 月前

python按照号段生成手机号_python生成随机手机号

"""电信号段:133/149/153/173/177/180/181/189/199;联通号段:130/131/132/145/155/156/166/171/175/176/185/186/166;移动号段:134/135/136/137/138/139/150/151/152/157/158/159/182/183/184/187/188/147/178;第一位:1;第二位:3,4,5,7,...
原创
5阅读
0评论
0点赞
发布博客于 2 月前

大小写 数据库 达梦_国产数据库-达梦数据库-redhat6.5下达梦8.1安装

1.创建用户组:groupadd dinstall2.创建用户:useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba3.修改密码:passwd dmdba4.修改用户资源限制:vi /etc/security/limits.confdmdba soft nproc 2047dmdba ...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

python123m与n的数学运算_# Python语言程序设计基础

Python语言程序设计基础第5章 函数和代码复用函数的基本使用函数的定义函数是一段具有特定功能的、可重用的语句组,用函数名表示并通过函数名进行功能调用。使用函数主要有两个目的:降低编程难度和代码重用。Python使用def定义一个函数,语法形式:def ():return 函数调用和执行的一般形式()lambda函数lambda用于定义一种特殊的函数——匿名函数,又称为lambda函数。匿名函...
原创
13阅读
0评论
0点赞
发布博客于 2 月前

是arm还是amd_K12 再现?AMD 重启 ARM 计划:将对标苹果 M1

点击右上角关注我们,每天给您带来最新最潮的科技资讯,让您足不出户也知道科技圈大事!ARM 早在 2014 年就公布了 K12 核心,它基于 64 位 ARMv8 架构,而且表示计划在两年后推出相关处理器。这款产品定位高密度服务器、嵌入式、半定制和超低功耗等领域,不过并没有正式推出。转眼来到 2020 年,除了英特尔的超低功耗 Y 以及 Lakefield 系列,高通和苹果也分别发布了 8cx 以及...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

This happens one time per few runs. This exception is thrown concurrently to exception from Agrona's AgentRunner - which is also fatal.

Code is here: https://github.com/lech-glowiak/Aeron/blob/master/aeron-system-tests/src/test/java/uk/co/real_logic/aeron/FailExample.java

That is output on specific run at Windows 7, i3 processor, JDK8.


WARNING: aeron directory already exists: C:\Users\kot\AppData\Local\Temp\aeron
Closing driver: 2197
calling addSubscription: 2275
java.lang.IllegalArgumentException: timeout value is negative: 12290
java.lang.IllegalArgumentException: timeout value is negative
    at java.lang.Object.wait(Native Method)
    at uk.co.real_logic.agrona.concurrent.Signal.await(Signal.java:53)
    at uk.co.real_logic.aeron.ClientConductor.await(ClientConductor.java:288)
    at uk.co.real_logic.aeron.ClientConductor.awaitOperationSucceeded(ClientConductor.java:298)
    at uk.co.real_logic.aeron.ClientConductor.addSubscription(ClientConductor.java:164)
    at uk.co.real_logic.aeron.Aeron.addSubscription(Aeron.java:187)
    at FailExample.main(FailExample.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
uk.co.real_logic.aeron.exceptions.DriverTimeoutException: Driver has been inactive for over 10000ms
    at uk.co.real_logic.aeron.ClientConductor.checkDriverHeartbeat(ClientConductor.java:353)
    at uk.co.real_logic.aeron.ClientConductor.onKeepalive(ClientConductor.java:338)
    at uk.co.real_logic.aeron.ClientConductor$$Lambda$49/1971489295.run(Unknown Source)
    at uk.co.real_logic.agrona.TimerWheel.expireTimers(TimerWheel.java:234)
    at uk.co.real_logic.aeron.ClientConductor.processTimers(ClientConductor.java:329)
    at uk.co.real_logic.aeron.ClientConductor.doWork(ClientConductor.java:103)
    at uk.co.real_logic.agrona.concurrent.AgentRunner.run(AgentRunner.java:83)
    at java.lang.Thread.run(Thread.java:745)

***
*** Timeout from the Media Driver - is it currently running? Exiting.
***
回答的问题 #IllegalArgumentException when Aeron.addSubscription timeouts
回答了问题于 2 月前

IllegalArgumentException when Aeron.addSubscription timeouts

ClientConductor uses Agrona's Signal to await for subscription addition. Signal in turn throws IllegalArgumentException when it calls with negative argument (that is after timeout duration).

Also private void ClientConductorTest.willSignalTimeOut() should throw new IllegalArgumentException("timeout cannot be negative"); instead of returning null. Maybe this should be fixed in Agrona: other 'await' method that checks if timeout has passed and returns boolean?

该提问来源于开源项目:real-logic/aeron

4回答
发布问题于 2 月前

dnf时装预览怎么打开_dnf时装预览怎么打开_dnf怎么查找各职业时装代码

类型:游戏辅助大小:898KB语言:中文 评分:6.5标签:立即下载DNF Extractor这个软件的出现让很多不想花钱或是觉得官方时装或界面不好看的玩家能自己定制自己的游戏风格,各论坛网站上有很多模型补丁的下载,不过别人做的不一定是自己喜欢的,于是也有部分玩家开始自己学习ex修改补丁了。对于初学者估计找时装代码是个麻烦事,光一个角色一个部位的npk文件就得有一长列的img,这要从哪找起呢?西西...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

I have found out that the error is cause by the BindingExpression.TryConvert method.

The method contains the following call value = Convert.ChangeType(value, convertTo, CultureInfo.InvariantCulture); I tested this on german culture so value = "1,5", convertTo = decimal Type. When I change the CultureInfo.InvariantCulture to CultureInfo.CurrentUICulture the conversion is made correctly.

BUT i can not enter 1,5 easily. When i write the ',' nothing will happen, because from 1, will get to a 1.

This is cause, because the Decimal Seperator is set to '.'

I will try to create a pull request soon.

回答的问题 #[Bug] Xamarin.Forms.Entry does not enter decimal when binding a float/double and decimal to it
回答了问题于 2 月前

Android 9 pie getting this ANError.

2019-06-07 12:00:44.793 17196-17196/com.app.company D/---FAIL-1--: 0 2019-06-07 12:00:44.794 17196-17196/com.app.company D/---FAIL-2--: null 2019-06-07 12:00:44.794 17196-17196/com.app.company D/---FAIL-3--: connectionError 2019-06-07 12:01:06.969 17196-17215/com.app.company D/EGL_emulation: eglMakeCurrent: 0xe5189440: ver 2 0 (tinfo 0xe51b1a30)

回答的问题 #connectionError(ErrorCode=0) on Android 4.X devices
回答了问题于 2 月前

Sorry to bring this up long after your answer, but I'm unsure where to include your MessagePreviewComponent so that it injects the script on the iFrame. Will this work with a cross-domain iframe?

回答的问题 #Guidelines for consuming this library in angular 2
回答了问题于 2 月前

Can you actually download anything though? I can search but I cant download.

回答的问题 #[torrentleech] Found no results while trying to browse this tracker (Test)
回答了问题于 2 月前

I would probably use https://v4.torrentleech.org/ instead of the non-SSL equivalent posted above.

回答的问题 #[torrentleech] Found no results while trying to browse this tracker (Test)
回答了问题于 2 月前

I have a reproduction case for this issue: A ListView containing items that have a gesture recognizer as well as a context action. In this case, the ItemTapped event is never called: https://gist.github.com/vividos/d2819d8e3890413593c04e9d622ceee8 Add this file to the Xamarin.Forms.Controls.Issues.Shared project and start the Xamarin.Forms.ControlGallery.Android project. I hope this helps to find and fix the issue.

回答的问题 #ItemSelected/ItemTapped is not called in listview if an item view has TapGestureRecognizer (Android)
回答了问题于 2 月前

哎哟喂~

回答的问题 #Gitalk Demo
回答了问题于 2 月前

It'd be awesome if it could be fully automated like WordPress. Click and update. :D (if that's possible)

回答的问题 #How to update
回答了问题于 2 月前

Could you add a notification inside so whenever there's a new version - we know from the dashboard inside that there's a new version

From: Mike Cao Sent: Tuesday, September 1, 2020 9:17:24 PM To: mikecao/umami Cc: Saif Hassan ; Comment Subject: Re: [mikecao/umami] How to update (#88)

The proper way to update is to pull, install any new dependencies, and rebuild

git pull npm install npm run build

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/mikecao/umami/issues/88#issuecomment-684931336, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AETXPGW3F6AN3W5AI2OUTETSDUGAJANCNFSM4QRQG7QA.

回答的问题 #How to update
回答了问题于 2 月前

Same question

回答的问题 #How to update
回答了问题于 2 月前

I get the same error when using tensorflow.python.keras.callbacks.TensorBoard from Tensorflow 1.12.0 and TensorBoard 1.12.2

回答的问题 #'TensorBoard' object has no attribute 'sess'
回答了问题于 2 月前

So whats the status on this PR?

回答的问题 #Fix input for decimal/float/double and nullable
回答了问题于 2 月前

I have made an update to the UI Test.

回答的问题 #Fix input for decimal/float/double and nullable
回答了问题于 2 月前

Hello ,

may this caused by this line CultureInfo.CurrentUICulture = culture; of the Unit Test?

EDIT: This is caused, because the Decimal Separator in this culture is a ',' and not a '.'

But the test tries to set to "0.5" instead of "0,5".

回答的问题 #Fix input for decimal/float/double and nullable
回答了问题于 2 月前

Fix input for decimal/float/double and nullable

Description of Change

The input for floating numbers had some errors in different cultures. When using german for example, the decimal seperator is a ',' and not a dot.

You can also use Nullable Types now. Before the Decimal Seperator would be cut off for Nullables.

Issues Resolved ###

  • fixes #7996

API Changes

None

Platforms Affected ###

  • Core/XAML (all platforms)

Behavioral/Visual Changes

The user of an app can now use the correct decimal sperator for his language.

Before/After Screenshots ###

Not applicable

Testing Procedure

I have tested this on android. I added a UI Test to the Gallery (G7996). Unfortunately i cant test this on other platforms right now. I also added a new Unit Test to prove the behaviour.

PR Checklist

  • [ ] Targets the correct branch
  • [ ] Tests are passing (or failures are unrelated)

该提问来源于开源项目:xamarin/Xamarin.Forms

6回答
发布问题于 2 月前

判断release模式_AbstractQueuedSynchronizer (AQS)以及模板设计模式1

如果内容有错误或者您有不同的见解,请关注我。想要思维导图的小伙伴们记得留言哦。/** * Provides a framework for implementing blocking locks and related * synchronizers (semaphores, events, etc) that rely on * first-in-first-out (FIFO) wa...
原创
8阅读
0评论
0点赞
发布博客于 2 月前

Very sorry about this. Apparently I have this ancient version on my local dev environment and was under the impression that it was latest (ran a pip install but it was already there it seems and I didn't notice). A fresh install on the server shows that this case has been accounted for. Sorry for the noise and thanks for looking.

回答的问题 #unable to push to AWS ECR
回答了问题于 2 月前

I get the following output:


curl -v https://123456789012.dkr.ecr.eu-west-1.amazonaws.com/v2/                                                                                                          +4282 9:04
*   Trying 54.77.217.207...
* Connected to 123456789012.dkr.ecr.eu-west-1.amazonaws.com (54.77.217.207) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.dkr.ecr.eu-west-1.amazonaws.com
* Server certificate: Symantec Class 3 Secure Server CA - G4
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
> GET /v2/ HTTP/1.1
> Host: 123456789012.dkr.ecr.eu-west-1.amazonaws.com
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Content-Type: text/plain; charset=utf-8
< Date: Thu, 06 Oct 2016 07:04:41 GMT
< Docker-Distribution-Api-Version: registry/2.0
< Www-Authenticate: Basic realm="https://123456789012.dkr.ecr.eu-west-1.amazonaws.com/",service="ecr.amazonaws.com"
< Content-Length: 16
< Connection: keep-alive
<
Not Authorizied
* Connection #0 to host 123456789012.dkr.ecr.eu-west-1.amazonaws.com left intact

I've put a workaround in the library to not ping if it starts with my URL id and then it works no problem. The distribution allows non-authorized requests to that endpoint, Amazon ECR does not. The docker-py version 1.2.3. Thanks for looking!

回答的问题 #unable to push to AWS ECR
回答了问题于 2 月前

unable to push to AWS ECR

I'm trying to push an image to ECR but it fails with:


docker.errors.DockerException: HTTPS endpoint unresponsive and insecure mode isn't enabled.

I believe this is because it tries to ping the registry and gets an unauthorized response from ECR. It's basically not sending any auth information with the request even though I logged in successfully. Regular Docker registry works because it doesn't require auth for a valid response. Can it be taken into account that ECR does not allow unauthorized requests to its v1/v2 ping endpoints? Thanks.

该提问来源于开源项目:docker/docker-py

4回答
发布问题于 2 月前

thanks for your response! The AWS ECR registry is definitely not running on http (I tried that and it don't want to use it over http anyway) so setting that daemon option is not going to fix it I think. Also, I believe the response (HTTP error 40x) is actually coming from the registry (maybe proxied through the daemon). AWS might be using a custom implementation. I hope you can take another look at this. Thanks!

回答的问题 #unable to push to AWS ECR
回答了问题于 2 月前

DeleteMessageBatch Issue - Top level element may not be treated as a list

I'm currently migrating a small application using the AWS SDK for PHP from v2 to v3. The transition has been smooth, but the DeleteMessageBatch is throwing and exception with the following message:


Error executing "DeleteMessageBatch" on "<url remooved>"; 
    AWS HTTP error: 
    Client error: 
    400 MalformedInput (client): 
    Top level element may not be treated as a list
</url>
 xml
<?xml version="1.0"?>
<errorresponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/">
    <error>
        <type>Sender</type>
        <code>MalformedInput
        Top level element may not be treated as a list
        
    
    [request id removed]

parameters are set just like the docs.

Similar issues have been logged here: - SQS DeleteMessageBatch Errors #161 - SQS DeleteMessageBatch Errors #630

Please let me know if there is any additional information.

该提问来源于开源项目:aws/aws-sdk-php

4回答
发布问题于 2 月前

I think this was fixed by PR #5633; the error goes away for my UWP project when I update to the latest Xamarin.Forms 3.6.0 NuGet package (tested with 3.6.0.344457).

回答的问题 #[UWP]XF3.6 Exception with Switch on StackLayout with IsVisible="false"
回答了问题于 2 月前

In Xamarin.Forms v3.4.0.1008975 it completly ignores the order. IsEnabled is always true, when using a Command!

grafik

grafik

grafik

When is this likely to be fixed? The only workaround is to set the CanExecute of the ICommand right know.

回答的问题 #The order of 'IsEnabled' and 'Command' should not matter
回答了问题于 2 月前

Like I wrote the latest working XF Version was 2.5.1.444934. I targetet Android 8.1, but I used a device with API-Level 19. I updated the device to API-Level 21 and it worked fine. Now I am using XF Version 3.1 with API-Level device 21 and it working fine as expected, even if the shadow now looks different. I hope that can help.

回答的问题 #Frame HasShadow Property has no effect
回答了问题于 2 月前

Well then: a. You could use a device with an other API Version (i dont know if you are forced to use explicit this version) or b. You could try by writting your own renderer

回答的问题 #Frame HasShadow Property has no effect
回答了问题于 2 月前

Try to target an other android api version. I am targetting API 27 and it works fine

回答的问题 #Frame HasShadow Property has no effect
回答了问题于 2 月前

Now i got the same bug on earlier versions of Xamarin.Forms and on different OS versions. Unfortunately I cant share the project.

回答的问题 #Frame HasShadow Property has no effect
回答了问题于 2 月前

Here I have an example project. As expected: If you run it on a newer Android OS it just works fine, but on KitKat the bug is noticeable.

Here the example project: Bug-2423.zip

回答的问题 #Frame HasShadow Property has no effect
回答了问题于 2 月前

Hello , i didint have time to test it on other devices. The bug occurred on a Zebra TC70 Scanner Device with KitKat API 19 . But in the project I had select 8.1 as Target Framework, if I may find some time I can provide a example project.

Maybe it's a bug for this API Level or lower?

回答的问题 #Frame HasShadow Property has no effect
回答了问题于 2 月前

Frame HasShadow Property has no effect

Bug report best practices: https://github.com/xamarin/Xamarin.Forms/wiki/Submitting-Issues

Description

I installed the stable Version of Xamarin.Forms 2.5.1.444934 where the Frame Shadow is working. In the Preview of Xamarin.Forms 3.0.0.354232-pre3 the HasShadow Property of the frame has no function. Only Tested in Android.

Steps to Reproduce

  1. Create a frame
  2. Set the HasShadow Property to true

Expected Behavior

A shadow around the control should appear.

Actual Behavior

No shadow is apearing.

Basic Information

  • Version with issue: 3.0.0.354232-pre3
  • Last known good version: 2.5.1.444934
  • IDE: Visual Studio 2017
  • Platform Target Frameworks:
  • Android: 8.1

该提问来源于开源项目:xamarin/Xamarin.Forms

41回答
发布问题于 2 月前

Here's a link with a workaround (not reusing MSBuild processes in automated builds) that may help some of you with this problem: https://nftb.saturdaymp.com/fixing-msbuild-not-exiting/

回答的问题 #[Bug] Mixed Xamarin.Forms versions causes error MSB4064: The "ValidateOnly" parameter is not supported by the "XamlCTask" task
回答了问题于 2 月前

After some more testing I get the impression that this error also appears when building two separate solutions, one with an older Xamarin.Forms NuGet package and one with 4.5.0.617. My guess is that there are MSBuild processes still active from a 4.2.0 build that has the Xamarin.Forms.Build.Tasks.dll loaded, and then a build with Forms 4.5.0 reuses this MSBuild process but can't find the ValidateOnly property, since the 4.2.0 .dll is still loaded. Worth checking your processes with Process Explorer which one of the .dlls is loaded. I don't know yet how to force the MSBuild tasks to either unload the .dll or to exit.

回答的问题 #[Bug] Mixed Xamarin.Forms versions causes error MSB4064: The "ValidateOnly" parameter is not supported by the "XamlCTask" task
回答了问题于 2 月前

For your information, this error also occurs for me at work. We're using Xamarin.Forms 4.5.0.617, all packages are on the same version number. Only the incremental builds fail sporadically (done with /t:Build); full rebuilds work without problems. Maybe this info is helpful for finding the error.

回答的问题 #[Bug] Mixed Xamarin.Forms versions causes error MSB4064: The "ValidateOnly" parameter is not supported by the "XamlCTask" task
回答了问题于 2 月前

Well another way could be a parameter for the ContainsKey method, that indicates, that a recursive search should be performed.

回答的问题 #[Bug] ResourceDictionary.ContainsKey doesnt search MergedDictionaries
回答了问题于 2 月前

[Bug] ResourceDictionary.ContainsKey doesnt search MergedDictionaries

Description

The ResourceDictionary.ContainsKey(..) method does not search in MergedDictionaries. But if you use the indexer (ResourceDictionary[..]) it will search the merged ones.

Steps to Reproduce

  1. Add a merged Dictionary to the Application one.
  2. Add a KeyValuePair to the Dictionary that is merged.
  3. Check if the Key exists.

Expected Behavior

The ContainsKey method should return true.

Actual Behavior

The ContainsKey method return false.

该提问来源于开源项目:xamarin/Xamarin.Forms

4回答
发布问题于 2 月前

Hello , I provided you the requested repro project. Take a look at the MainPage .OnAppearing method.

csharp
protected async override void OnAppearing()
{
    var dict = new ResourceDictionary();
    dict.Add("MyKey", Color.Red);

    App.Current.Resources.Add(dict);


    if (App.Current.Resources.ContainsKey("MyKey"))
    {
        await DisplayAlert("", "ContainsKey", null);
    }

    if(App.Current.Resources["MyKey"] != null)
    {
        await DisplayAlert("", "Indexer found", "OK");
    }
}

My current workaround for this, is a extension methods. This method looks up all merged dictionaries recursively.

EDIT: Oh I see i made a mistake :)... If the ContainsKey method would be true, the app would crash^^.

Issue11036.zip

回答的问题 #[Bug] ResourceDictionary.ContainsKey doesnt search MergedDictionaries
回答了问题于 2 月前

I was searching for an Android implementation of a translucent NavigationPage toolbar and found this PR: #1287 It seems to handle the Android side of things. Looking forward to having this in Xamarin.Forms 3.0 :-)

回答的问题 #[F100] Translucent Nav Bar
回答了问题于 2 月前

No , I didnt find a solution

回答的问题 #[Android] Adding both TapGestureRecognizer and ContextActions to ViewCell will result in ContextActions not responding
回答了问题于 2 月前

Does anybody has found an workaround or has a idea for one?

回答的问题 #[Android] Adding both TapGestureRecognizer and ContextActions to ViewCell will result in ContextActions not responding
回答了问题于 2 月前

you could see some steps to reproduce the behavior in my issue #10688

回答的问题 #[Bug] Web View Navigated Event does not work
回答了问题于 2 月前

This may be the same bug as my issue #10688 (which got closed due to being a duplicate of #10350).

回答的问题 #[Bug] Web View Navigated Event does not work
回答了问题于 2 月前

Hallo , do you have any suggestion on how do update the expanded state? Maybe in the view, when the item leaves the screen?

回答的问题 #[Bug] CollectionView + Expander: Expanding one item makes every other X item expand too
回答了问题于 2 月前

Hello , this behaviour is cause by the CellControl.SetCell(object newContext) method.

 csharp
// A TableView cell should already have its parent,
// but we need to set the parent for a ListView cell.
cell.Parent = lv;

// Set inherited BindingContext after setting the Parent so it won't be wiped out
BindableObject.SetInheritedBindingContext(cell, bindingContext);

The cells parent is set to the listview, which causes the BindingContext of the children to set to the BindingContext of the ListView.

We could extract the logic from the Parents Property setter into a method which takes in a parameter wether BindingContext should be updated or not.

It would look like this:

 csharp
public Element Parent
{
    get { return _parentOverride ?? RealParent; }
    set
    {
        SetParent(value);
    }
}

[EditorBrowsable(EditorBrowsableState.Never)]
public void SetParent(Element value, bool inheritBindingContext = true)
{
    if (RealParent == value)
        return;

    OnPropertyChanging();

    if (RealParent != null)
    {
        ((IElement)RealParent).RemoveResourcesChangedListener(OnParentResourcesChanged);

        if (value != null && (RealParent is Layout || RealParent is IControlTemplated))
            Log.Warning("Element", $"{this} is already a child of {RealParent}. Remove {this} from {RealParent} before adding to {value}.");
    }

    RealParent = value;
    if (RealParent != null)
    {
        OnParentResourcesChanged(RealParent.GetMergedResources());
        ((IElement)RealParent).AddResourcesChangedListener(OnParentResourcesChanged);
    }

    if (inheritBindingContext)
    { 
        object context = value?.BindingContext;
        if (context != null)
        {
            value.SetChildInheritedBindingContext(this, context);
        }
        else
        {
            SetInheritedBindingContext(this, null);
        }
    }

    VisualDiagnostics.SendVisualTreeChanged(this, value);

    OnParentSet();

    OnPropertyChanged();
}
 csharp
// A TableView cell should already have its parent,
// but we need to set the parent for a ListView cell.
cell.SetParent(lv, false);

// Set inherited BindingContext after setting the Parent so it won't be wiped out
BindableObject.SetInheritedBindingContext(cell, bindingContext);
回答的问题 #[Bug] UWP ListView, ItemTemplate with a Label.IsVisible bound to ".", property converter receives the wrong model
回答了问题于 2 月前

SyncNativeCookies() can be found in Android, UWP and iOS renderer classes; maybe it's not called on iOS for some other reason.

回答的问题 #[Bug] WebView.Eval crashes on Android
回答了问题于 2 月前

It's not the same exception type and not the same stack trace, so I guess no.

回答的问题 #[Bug] WebView.Eval crashes on Android
回答了问题于 2 月前

[Bug] WebView.Eval crashes on Android

Description

I upgraded Xamarin.Forms from 4.6.0.726 to 4.6.0.772, and my app starts to crash. I'm using WebView.Eval() to transfer lengthy JavaScript data calls to the WebView. This is the exception and stack trace from AppCenter:

System.UriFormatException: Invalid URI: The Uri string is too long.


Uri.CreateThis (System.String uri, System.Boolean dontEscape, System.UriKind uriKind)
System.Uri..ctor (System.String uriString) [0x00014] in <40f246d3e6214581a540496b6a7456a6>:0
WebViewRenderer.SyncNativeCookies (System.String url)
WebViewRenderer.SendNavigatingCanceled (System.String url)
WebViewRenderer.LoadUrl (System.String url)
WebViewRenderer.OnEvalRequested (System.Object sender, Xamarin.Forms.Internals.EvalRequested eventArg)
WebView.Eval (System.String script)
...

Steps to Reproduce

  1. Create a new Mobile App project with a WebView
  2. Use WebView.Eval() to call JavaScript code, prefixed with javascript:
  3. It may help to send a long JavaScript script, e.g. with a long data array

Expected Behavior

Should not crash. I think the fix is to not use new Uri()here, but instead Uri.TryParse(): https://github.com/xamarin/Xamarin.Forms/blob/9b9db3383077f479243f84f09ffb3e9da22914f7/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs#L271 I think SyncNativeCookies() should just return when a non-parseable URL or one that starts with javascript: is encountered.

Actual Behavior

See above.

Basic Information

  • Version with issue: 4.6.0.726
  • Last known good version: 4.6.0.772
  • IDE: VS 2019 version 16.5.5
  • Platform Target Frameworks:
  • Android 10
  • Android Support Library Version: N/A
  • Nuget Packages:
  • Affected Devices: Google Nexus 5X

Workaround

Downgrade to Forms 4.6.0.726

该提问来源于开源项目:xamarin/Xamarin.Forms

2回答
发布问题于 2 月前

Issue still reproducable in the latest Xamarin.Forms Version. Until now a solution is to create a IValueConverter to handle this.

回答的问题 #Bound DateTimes Display in en-US Format Not Local Format
回答了问题于 2 月前

Cool …it works now …Thank you very much for the quick support.

From: Loren West > Reply-To: lorenwest/node-config > Date: Thursday, March 7, 2013 1:59 AM To: lorenwest/node-config > Cc: schokkal > Subject: Re: [node-config] runtime json file modification ( User updating manually through txt editor ) is not gitting notified on the running node application (#50)

Looks like you've stumbled upon an edge case. I wrote a test program to make sure modifying runtime.json still triggers the watch function, and sure enough it does. Then I re-read your title: "through a text editor" was the clue.

I did a little googling and found this article that helps explain: http://stackoverflow.com/questions/10762630/nodejs-fs-watch-on-directory-only-fires-when-changed-by-editor-but-not-shell-or

Essentially, when you write a file using a text editor, it creates a new file, then renames it to the original file. I'm not triggering on 'rename' events, only 'change' events.

And since I couldn't think of a good reason not to trigger on rename events, and editing with a text editor is a common way to change a file, I've changed node-config to trigger a change on the rename event. I've pushed a new version out to NPM, which should be available by the time you read this.

Give it a try and let me know how it works for you.

— Reply to this email directly or view it on GitHubhttps://github.com/lorenwest/node-config/issues/50#issuecomment-14547143.

回答的问题 #runtime json file modification ( User updating manually through txt editor ) is not gitting notified on the running node application
回答了问题于 2 月前

I tried this option and also retried null also, but bad luck ..not working. At the same time, if I update the Emptybody_Ecode in the applications code like conf.CONFIG.Emptybody_Ecode = "3333" , this it is getting updated in the runtime.json file successfully. Also, runtime.json parameters successfully overrides the other deployment options like development, productions etc … I was sharing this information to clarify some of the features are working as expected.

Please let me know if need any other informations…

From: schokkal > Date: Wednesday, March 6, 2013 11:38 PM To: lorenwest/node-config >, lorenwest/node-config > Subject: Re: [node-config] runtime json file modification ( User updating manually through txt editor ) is not gitting notified on the running node application (#50)

Thanks for quick response, I will try. But initially I was trying with null, since it was not working, went for different combinations. Thanks Sudhakar

From: Loren West > Reply-To: lorenwest/node-config > Date: Wednesday, March 6, 2013 11:35 PM To: lorenwest/node-config > Cc: schokkal > Subject: Re: [node-config] runtime json file modification ( User updating manually through txt editor ) is not gitting notified on the running node application (#50)

At first glance it looks like the problem is the 2nd argument to watch(). According to the docs (http://lorenwest.github.com/node-config/latest/Config.html#method_watch) it should be either a string (representing the property name within the object), or null (to watch all properties of the object). You're passing a variable that isn't likely to contain the property name.

Try changing line 21 from:

conf.CONFIG.watch(conf.CONFIG, conf.CONFIG.Emptybody_Ecode, function(...

to:

conf.CONFIG.watch(conf.CONFIG, 'Emptybody_Ecode', function(...

and see if that does the trick.

— Reply to this email directly or view it on GitHubhttps://github.com/lorenwest/node-config/issues/50#issuecomment-14543792.

回答的问题 #runtime json file modification ( User updating manually through txt editor ) is not gitting notified on the running node application
回答了问题于 2 月前

Thanks for quick response, I will try. But initially I was trying with null, since it was not working, went for different combinations. Thanks Sudhakar

From: Loren West > Reply-To: lorenwest/node-config > Date: Wednesday, March 6, 2013 11:35 PM To: lorenwest/node-config > Cc: schokkal > Subject: Re: [node-config] runtime json file modification ( User updating manually through txt editor ) is not gitting notified on the running node application (#50)

At first glance it looks like the problem is the 2nd argument to watch(). According to the docs (http://lorenwest.github.com/node-config/latest/Config.html#method_watch) it should be either a string (representing the property name within the object), or null (to watch all properties of the object). You're passing a variable that isn't likely to contain the property name.

Try changing line 21 from:

conf.CONFIG.watch(conf.CONFIG, conf.CONFIG.Emptybody_Ecode, function(...

to:

conf.CONFIG.watch(conf.CONFIG, 'Emptybody_Ecode', function(...

and see if that does the trick.

— Reply to this email directly or view it on GitHubhttps://github.com/lorenwest/node-config/issues/50#issuecomment-14543792.

回答的问题 #runtime json file modification ( User updating manually through txt editor ) is not gitting notified on the running node application
回答了问题于 2 月前

runtime json file modification ( User updating manually through txt editor ) is not gitting notified on the running node application

Hi, I was looking for a mode module to maintain the config files for our node application, where i got your node-config module. one of the nice feature which i was looking is run time update. but when i tried as mentioned in your documentation, the manual change is not getting notified, i mean the call back method is not getting called.

snippet of my code:

// Watch for any changes to the customer configuration 21 conf.CONFIG.watch(conf.CONFIG, conf.CONFIG.Emptybody_Ecode, function(object, propertyName, priorValue, newValue) { 22 console.log("Configuration " + propertyName + " changed from " + priorValue + " to " + newValue); 23 console.log(conf.CONFIG.Emptybody_Ecode, conf.CONFIG.Emptybody_message) 24 console.log(conf.CONFIG.Emptybody_Ecode, conf.CONFIG.Emptybody_message) 25 });

Emptybody_Ecode - is a parameter in runtime.json file in default config folder. CONFIG - is the object returned by the node-config module. when i modify the Emptybody_Ecode in runtime.json file, the call back is not getting called. hope this helps to understand my issue. if not please let me know you questions.

please let me know what is wrong in the use-age.

该提问来源于开源项目:lorenwest/node-config

2回答
发布问题于 2 月前

Is reflashing the only option to re-pair a CC2530 router to the coordinator again after the database.db was deleted?

same question. i have paired the router to a different zigbee network and need to repair

回答的问题 #Pair CC2530 Router to a Coordinator
回答了问题于 2 月前

any news here? facing similar issues. I have some devices that become "invisible" after some time. Meaning they don't report back anything anymore. Even with debug log enabled, nothing. Is there any way I can check the connection state/error messages?

回答的问题 #Coverage and devices not always responding
回答了问题于 2 月前

Alrighty guys... Any news regarding Zoom functionality? -2020

回答的问题 #How to zoom the view with 1.0.0-beta1
回答了问题于 2 月前