text:
fix(plugins/split-chunks-plugin/shpitChunks.minCHunks): correct a mis…

…translation
Summary

(Webpack kr) :https://webpack.kr/plugins/split-chunks-plugin/#splitchunksminchunks

리뷰 참고 사항

Webpack kr 페이지 주소는 "https://webpack.kr/plugins/split-chunks-plugin" 입니다.
Webpack en 페이지 주소는 "https://webpack.js.org/plugins/split-chunks-plugin/#splitchunksminchunks" 입니다.
해당 페이지 내 섹션 헤더 이름은 "splitChunks.minChunks" 입니다.
kr 버전의 splitChunks.minChunks 섹션의 설명이 "모듈이 분할 전에 청크간에 공유되어야 하는 최소 시간입니다."로 번역 되어 있습니다..
영어 버전에서는 "The minimum times must a module be shared among chunks before splitting."로 표기되어 있습니다.
개인적으로, "The minimum times"에 대한 번역이 "최소 시간"으로 번역되어 있습니다.
"최소 시간"으로 번역된 부분은 문맥상 잘못된 표현이라고 생각합니다.
결론으로 "모듈이 분할 전에 청크 간에 공유되어야 하는 최소 개수입니다."로 변경 하였습니다.
추가로 맞춤법 검사로 "청크간"을 "청크 간"으로 수정도 했습니다.

Glossary
해당 사항 없음
첫 기여입니다. 잘못된 부분이 있으면 피드백 부탁드립니다. 감사합니다. 이상입니다.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


text:
敏捷五问（二）：为什么我们要做主干开发

基于主干分支开发与基于分支开发，应该是使用 Git 做 VCS 最常见的两种开发模型了。我一直是支持主干开发的，过去的一年在推广的过程中，我得以了解到拥护分支开发同事的观点。借助这种对比，我们可以清楚了解，什么项目上适合推 TBD（Trunk Based Development，基于主干开发），什么项目适合使用分支开发。
我们可以把 TBD 和分支的优缺点拿出来做一个表格比较。并且在这个表格中，我的观点是，我们看重左边「持续集成」的优点，多于看重右边「隔离开发」的优点，但并不认为「隔离开发」不重要。

主干开发
分支开发

优点
持续集成团队代码
隔离开发

对重构友好
合并代码前有 PR 保证代码质量的机会

最早暴露冲突减少修复风险与成本
PR 允许更透彻的讨论

缺点（成本）
需要开发者做原子提交，也就需要任务分解的能力
对「语义重构」不友好

需要将测试随产品代码一并提交做到质量内置
合并代码时可能有大冲突的风险

周期变长（比如同时修文档，写脚本），需要频繁切换分支，并且需要等待它们被 merge

在推动主干分支的过程中，依次遇到以下的疑虑、担忧和挑战：

持续往主干上合并代码，不会使得提交历史非常琐碎、非常混乱吗？我希望提交历史是完整的，看提交信息就能知道做了哪个卡，实现了什么功能

这是最初的疑虑，特别是对于习惯了分支开发的同学而言。持续往主干上提交，会不会使提交历史粒度变细？会；会不会使提交历史琐碎？不会；会不会使提交历史混乱？不会。提交信息的完整性，相反，当你的提交粒度很大时，提交信息除了写「实现了新闻快讯功能」以外，没法更细，看提交信息确实清楚，但看具体提交内容时，则不容易看出大量提交中某些代码所解决的问题，回滚起来除了整个提交回滚也没法进行更细粒度的操作。一旦该提交使主干挂掉，调试、回滚起来响应力往往不快。不敏捷。
这里其实提出了「提交历史」这个价值。但我认为，放在「持续集成」这个角度下去看，提交历史的价值在于「提供上下文」以及「快速回滚」。相对于「经常回去看提交信息并希望看到一个完整的提交信息」这个场景，经实践认为它发生得并不如「主干发现了问题需要快速定位、回滚某个提交」频繁。

那么什么是持续集成？持续集成的价值在哪里？

这是第二个常见的问题。当我们谈「持续集成」时，团队对于「持续集成」是什么、有啥用，是模糊的、不可感的。
那么持续集成是啥意思呢？是指 团队成员每人每天至少向仓库（主干）提交一次代码。
那么持续集成有啥用呢？为啥要每人每天至少集成一次呢？好处多多，我认为关键有二：尽早集成、尽早暴露冲突，核心就是减少集成带来的项目风险和修复成本。

但我们因为集成带来的冲突场景多吗？就算持续集成了，部署还是每月一次，依然没法做到持续交付给用户，持续集成了又有啥意义呢？

如果集成冲突并不多，部署频率由于流程无法提升，那么没有做持续集成的动力，是可以理解的。但这只是回答说要不要的问题，没有回答对不对这个问题。就好比你说，我 20 几岁身体健康无病无灾，所以随意饮食、不锻炼身体也没毛病。当然没毛病，你自个负责就好。没有动力、也没有迫切需求做持续集成的团队，这个负责的人基本上就是 TL。他要负责评估、推动、担责。
集成冲突不多，可能是因为客观上没有工作在交叉的代码上，可能是因为没有经常重构。前者团队并没有决定权，要看客观上业务有没有交叉；后者…

对啊，我们基本都不做重构的。代码一旦提交，一般就不会再动，否则又要 QA 再测一遍，浪费人力物力。

所以说这有问题啊。不持续重构，怎么持续清理代码呢？代码质量靠一次弄对来保证么？持续改进从何谈起呢？
不做重构的团队，可能有很多原因，除了意识没跟上以外，也有可能是自动化测试体系不合理、落地不到位，也可能根本就没测试；有可能没有团队代码所有制意识怕背锅，也可能团队成员编制部门不同怕背锅；可能是自动化测试不属于项目愿景/要求/验收标准的一部分所以无人关心，可能公司流程部门墙所导致…不一而足。但这都是应该要去解决、至少尝试解决的问题，不经常重构是不合理的。由 TL 来回答这个问题。

好，我已经认可「持续集成」有价值了，但我还是习惯手动测试、在分支上一口气搞完后再合并。而且现在也没有频繁上线、频繁部署、重构的需求，我觉得维持现状就挺好，学原子提交学写测试优先级不高。

优先级不高就是不想做嘛，这不是个技术问题。

直接向主干上提代码，可能造成新人或没经验的同事代码质量低，怎么解决？

分情况。我觉得可行的做法是：

对于有经验的团队新人，可以通过 pair 的方式使其快速上手
对于没有（敏捷）工作经验的新人，除了 pair 的方式外，还可以让他在分支上先开发一段时间，再切回主干上来

原则是，确实需要用分支来保证质量，那就用；当团队能力达到比较高的水准后，依靠能力来做「持续集成」带来的好处就大于依靠流程来保证「代码质量」。还是那句话，做正确的事情。

我们用了一些其他的工作模型，比如 git submodule，使得保证提交原子性变得更加困难了，怎么办？

使用了 submodule，对团队进行原子性提交的要求确实高得多的多，并且它也要求团队不仅基于主干来开发，还需要频繁 pull/push 更新。一旦在本地积累过多提交，对 submodule 的引用更新就会使得保证中间提交的引用正确性非常困难。在我们上个项目中，虽然做了主干开发，但 submodule 引用的原子性就是牺牲掉了的。也没出大问题。因为，我们也是一个月上线一次，本质上做了持续集成也不会体现在持续交付上。
怎么办呢，如果团队能力一般，项目又有了 submodule，那么尝试推广时要做更多的工作；如果团队能力还行，对主干开发也接受，那解决起来也简单，习惯就好。
问题及解决
做不到原子提交，导致别人一拉代码跑不起来，或者经常挂 CI
多注意几次就好了。特别是在 submodule 模型下，对原子性要求很高，有时忘了更新 submodule 的引用，就会被 CI 检测出来。但有时检测不出来。
rebase 有时在同时新增同一份代码或同时删除同一份代码的场景下不够智能
暂时没法。这是 git rebase 本身的问题。解决方法：提升集成频率、提高 git rebase 技术。
code review/refactor 可能在 QA 测试之后发生，引起重新回归
几个问题：

流程问题。把尽可能多的 refactor 在验卡的时候一并交付
测试问题。建立合适的自动化测试体系，减少回归成本，不惧重构

只要有人不基于主干去开发，还是有不小的冲突风险，因为他个人没有与团队进行集成
个人确实有自主决定是否拉取主干代码、是否更新代码到主干的权利。这不是纯粹的技术问题。由 TL 解决。
rebase master 有时确实会打断开发流程，并不能经常进行无缝 rebase
有时没法直接 git checkout master，因为有冲突时就必须修。而有可能你只是想看一下 master 的代码。那这种情况的话，是否可以 git fetch 而不 git pull？显然可以。
总之一句话，要想保证主干分支的优势，需要开发者保证 commit 级别的原子性和代码质量，需要开发者保证 commit 级别的原子性和代码质量，需要开发者保证 commit 级别的原子性和代码质量。就这一点。这个东西和其他实践是相辅相成的，一起跟进效果更好，它不是一个单点的问题。

https://blog.linesh.tw/#/post/2018-08-20-agile-series-2-why-we-do-trunk-based-development
有了博客就是好。

source: gharchive/issue

license: mit

license_type: permissive

license_source: bigquery


text:
Support for eslint v9

Hello, are there plans to update the plugin to support ESLint v9? Thanks!
https://eslint.org/blog/2024/04/eslint-v9.0.0-released/

Related - #31

repo: lingui/eslint-plugin

license: MIT

license_source: github-api


text:
Fixing a bug that causes collections to not update other rows when inserting/updating other rows

This fixes #15

Current coverage is 90.36% (diff: 96.80%)

Merging #16 into master will increase coverage by 0.38%

@@             master        #16   diff @@
==========================================
  Files            41         41
  Lines          4111       4295   +184
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           3699       3881   +182
- Misses          412        414     +2
  Partials          0          0

Powered by Codecov. Last update 81089eb...1927e85

@nicksnyder other thoughts on the change? Also, could discuss in person?

source: gharchive/pull-request

authors: codecov-io plivesey

repo: linkedin/RocketData


text:
Dr Elephand is not starting

Hi Guys, we have been trying to install Dr. Elephant and after a lot of troubleshooting we are stuck in this part:
[root@ip-172-31-37-252 bin]# ./start.sh
Using config dir: /usr/dr-elephant/app-conf
Using config file: /usr/dr-elephant/app-conf/elephant.conf
Reading from config file...
db_url:  localhost
db_name:  drelephant
db_user:  root
http port:  8081
This is hadoop2.x grid. Add Java library path: /lib/native
Starting Dr. Elephant ....
Dr. Elephant started.
but the process never start and looking in the logs we found this:
2016-04-22 20:34:50,374 - [ERROR] - from com.jolbox.bonecp.hooks.AbstractConnectionHook in main
Failed to obtain initial connection Sleeping for 0ms and trying again. Attempts left: 0. Exception: java.net.ConnectException: Conn
ection refused.Message:Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
/hadoop/dr-elephant-2.0.3-SNAPSHOT/logs
please let us know if somebody has been experience this issue or have any idea.

@alanheli92
there're something to be sure : mysql version 5.6.4+ which declared in Administrator Guide ;  env.  all set ;  elephant.conf is ready.

@canghaiyisu666, the mysql requirement has been changed to 5.5+. I had updated this in the developer docs but forgot to do so in the Administrator guide.
@alanheli92, there is a thread open in the mailing list on the same issue reported by Gabriel García. You might want to follow it up there.

The root cause of this problem is conflicting akka dependencies. If you have spark 1.5.0 or above, you need to exclude the akka dependencies.

Thanks, finally I could start the server but when I tried to connect with the web browser the dr.log displays this error message:
tail: dr.log: file truncated
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Play server process ID is 9122
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/hadoop/dr-elephant-2.0.3-SNAPSHOT/lib/ch.qos.logback.logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/hadoop/dr-elephant-2.0.3-SNAPSHOT/lib/org.slf4j.slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
[info] play - database [default] connected at jdbc:mysql://localhost/drelephant?characterEncoding=UTF-8
[info] application - Starting Application...
[info] play - Application started (Prod)
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:8082
[error] play - Cannot invoke the action, eventually got an error: javax.persistence.PersistenceException: Query threw SQLException:Table 'drelephant.yarn_app_result' doesn't exist
Bind values:[Tue Apr 26 15:35:05 UTC 2016]
Query was:
select count(*) from yarn_app_result t0 where t0.finish_time > ?
[error] application -
! @6ppoc7dnn - Internal server error, for (GET) [/] ->
play.api.Application$$anon$1: Execution exception[[PersistenceException: Query threw SQLException:Table 'drelephant.yarn_app_result' doesn't exist
Bind values:[Tue Apr 26 15:35:05 UTC 2016]
Query was:
select count(*) from yarn_app_result t0 where t0.finish_time > ?
]]
at play.api.Application$class.handleError(Application.scala:293) ~[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2]
at play.api.DefaultApplication.handleError(Application.scala:399) [com.typesafe.play.play_2.10-2.2.2.jar:2.2.2]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261) [com.typesafe.play.play_2.10-2.2.2.jar:2.2.2]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261) [com.typesafe.play.play_2.10-2.2.2.jar:2.2.2]
at scala.Option.map(Option.scala:145) [org.scala-lang.scala-library-2.10.4.jar:na]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2.applyOrElse(PlayDefaultUpstreamHandler.scala:261) [com.typesafe.play.play_2.10-2.2.2.jar:2.2.2]
Caused by: javax.persistence.PersistenceException: Query threw SQLException:Table 'drelephant.yarn_app_result' doesn't exist
Bind values:[Tue Apr 26 15:35:05 UTC 2016]
Query was:
select count(*) from yarn_app_result t0 where t0.finish_time > ?
    at com.avaje.ebeaninternal.server.query.CQuery.createPersistenceException(CQuery.java:790) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na]
    at com.avaje.ebeaninternal.server.query.CQueryEngine.findRowCount(CQueryEngine.java:110) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na]
    at com.avaje.ebeaninternal.server.query.DefaultOrmQueryEngine.findRowCount(DefaultOrmQueryEngine.java:36) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na]
    at com.avaje.ebeaninternal.server.core.OrmQueryRequest.findRowCount(OrmQueryRequest.java:235) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na]
    at com.avaje.ebeaninternal.server.core.DefaultServer.findRowCountWithCopy(DefaultServer.java:1301) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na]
    at com.avaje.ebeaninternal.server.core.DefaultServer.findRowCount(DefaultServer.java:1293) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na]

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'drelephant.yarn_app_result' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_60]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_60]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_60]
at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[na:1.8.0_60]
at com.mysql.jdbc.Util.handleNewInstance(Util.java:400) ~[mysql.mysql-connector-java-5.1.36.jar:5.1.36]
at com.mysql.jdbc.Util.getInstance(Util.java:383) ~[mysql.mysql-connector-java-5.1.36.jar:5.1.36]
Any help would be appreciated

And the web browser displays:
Oops, an error occured
This exception has been logged with id 6ppof9ljo.
The id error changes when I reload the page

you need to configure your mysql. Make the table drelephant as specified in the docs.

repo: linkedin/dr-elephant


text:
using with(obj) is forbidden in strict mode

hopscotch.js is stating a 'use strict'; but is still using width(...) which is forbidden in strict mode.
Any chance to get that fixed soon?

kudos for raising this issue, it also causes issues with deployment/release when passing it through google closure compiler

also having problems because of "with", please fix

After closer look at the code it turned out that the whole lib is not using strict mode, "use strict"  refers only to "function(context, factory) " function (first 20 lines of code).
When using closure compiler, it enables strict mode for the whole code resulting in errors (there are also some variable asignments without declaration)

Yes I realized that, too. Most compilers (e.g. ES6 to ES5) add a global strict mode. However - using width should be avoided and can be avoided here

Browserify is not allowing me to compile it because of this error.

This appears to be an artifact of writing the templates in JST and the resulting output from the JST compiler. Agree that using with is not ideal, so the decision to write bubble HTML in JST may require a revisit.

I'm attempting to package this with grunt and uglify-contrib to no avail; that use strict and with collision is breaking tons of stuff.  I see that it's been added to your ES6 refresh milestone, but can't seem to find a timeline on your release schedule...  Anyone care to comment?

+1 Quite frustrating not being able to just slot this into my Babel build.

I made an ES6 template literal version of the bubble_default template, which you all are free to use as well. The obvious bonus here is that you can now more easily modify. Here's the complete code to inject it yourself (assuming you're using ES6):
const template = (data) => {
  const { buttons, i18n, step, tour } = data;
  const optEscape = (str, unsafe) => unsafe ? _.escape(str) : str;
  return `

  ${ tour.isTour ? `<span class="hopscotch-bubble-number">${i18n.stepNum}</span>` : '' }

    ${ step.title !== '' ? `<h3 class="hopscotch-title">${optEscape(step.title, tour.unsafe)}</h3>` : ''}
    ${ step.content !== '' ? `<div class="hopscotch-content">${optEscape(step.content, tour.unsafe)}</div>` : ''}

    ${ buttons.showPrev ? `<button class="hopscotch-nav-button prev hopscotch-prev">${i18n.prevBtn}</button>` : '' }
    ${ buttons.showCTA ? `<button class="hopscotch-nav-button next hopscotch-cta">${buttons.ctaLabel}</button>` : '' }
    ${ buttons.showNext ? `<button class="hopscotch-nav-button next hopscotch-next">${i18n.nextBtn}</button>` : '' }

  ${ buttons.showClose ? `<button class="hopscotch-bubble-close hopscotch-close">${i18n.closeTooltip}</button>` : '' }

`;
  };
  hopscotch.setRenderer(template);

Managed to fix this in a fork of @Benjamin-Dobell's fork:
https://github.com/Benjamin-Dobell/hopscotch/pull/1
If you want a quick fix:
npm install https://github.com/bobby-brennan/hopscotch#strict-compatible

Fix merged to master.

Thanks a tonne!

Can I trouble you for a release as well?

Hopefully in the next day or two - need to find some time to create the release and publish it to NPM. Tracking release on #319.

Ahh excellent thanks :)

Version 0.2.7 has been pushed to master and published to NPM.

authors: Fuzzyma arsssen bobby-brennan ebelliveau jared-christensen rek tmaclean-LV vgrigory zimmi88

repo: linkedin/hopscotch


text:
Cache the serialized payload of the Struct object

This PR has the following changes:

New implementation of Send called StructSend which can send Structs.
AbstractRequest and AbstractResponse will be using StructSend (that is, the struct send will be applicable to all types of requests).
The caching of the serialized payload is only done for UpdateMetadataRequest which is causing Kafka controller scalability issue.

Closing this PR as an alternative solution has been merged at https://github.com/linkedin/kafka/pull/75

authors: gitlw viswamy

repo: linkedin/kafka


text:
A  big problem about inverted index creation

SegmentColumnarIndexCreator.java
if (config.createInvertedIndexEnabled()) {
invertedIndexCreatorMap.put(
column,
new BitmapInvertedIndexCreator(file, indexCreationInfo.getSortedUniqueElementsArray().length, schema
.getFieldSpecFor(column)));
}
config.createInvertedIndexEnabled() method which comes from SegmentGeneratorConfig.java will decide inverted index creation.
It has a problem because we need depend on table config info(invertedIndexColumns) to decide that a column should create inverted index or not.
And config.setCreateInvertedIndex method don't call in the code.So config.createInvertedIndexEnabled() always be false.Table config info(invertedIndexColumns) can't take effect.
Table Config
{
"tableIndexConfig": {
"invertedIndexColumns":["numberOfGamesAsBatter"],
"loadMode":"HEAP",
"lazyLoad":"false"
},
"tenants":{"server":"","broker":""},
"tableType":"OFFLINE","metadata":{"customConfigs":{"d2Name":"xlntBetaPinot"}},
"segmentsConfig":{
"retentionTimeUnit":"DAYS",
"segmentPushFrequency":"daily",
"replication":1,
"timeColumnName":"",
"retentionTimeValue":"700",
"timeType":"",
"segmentPushType":"APPEND",
"schemaName":"baseball",
"segmentAssignmentStrategy":"BalanceNumSegmentAssignmentStrategy"
},
"tableName":"baseballStats"
}

config.createInvertedIndexEnabled() 。
createInvertedIndexEnabled is not set;

createInvertedIndexEnabled  is always false.
so Inverted index file can't produce.

hey @dongyanfeng  we fixed this, now during segment generation you can pick columns that you want to create inverted index on.
Also if inverted index is not created during segment generation and there are columns configured to have inverted indexes, then inverted index will be created over the fly when we load the segment on the server.

Tried, and it works for offline table. But looks like it doesn't work for real time table, whatever the index segments are in memory or are flushed to disk.

authors: dhaval2025 dongyanfeng flyyoung izzizz

repo: linkedin/pinot


text:
添加统计销售金额功能

希望大佬可以在后台管理界面，显示统计的销售金额。

统计功能是在业务开发规划中，技术上不难，只是业务上细节不明白。
是总的销售金额，还是不同月或者今日销售金额。
如果你能给出详细的效果或说明文档，这样开发的优先级会更高一些：）

实现了三个简单的统计页面。
你可以参考开发自己的统计页面。

authors: iamguofeng linlinjava

repo: linlinjava/litemall


text:
Remove clone to existing linode and disable lower-storage plans

Purpose
removes the ability to clone to an existing Linode
also disables plan selections if they're a cheaper/lower storage plan that the source Linode's
Please note: the disable functionality is dependent on #3339

looks like everything is working post-label/plan fix. Lower storage plans are disabled after selecting source Linode in the clone flow
The next blocker is what we want to do regarding Linodes with upgrades pending? Do we want to be able to clone from them and create from one of their backups? If not, do we want to disable them or just hide the option altogether.
Waiting on confirmation before continuing.

repo: linode/manager


text:
Add: Select Stats Generator

Description
Adds a select component that takes a request and lastUpdated time that will generate children function which will provide both the stats that resolve from the request and the error, if any.
Things to Keep in Mind

This component doesn't do any error handling - it's up to the child to figure out what to do with the errors

The selectedTimeRange state is equal to the option labels because it's a lot harder to keep Date.now() in sync with what the actual state is. The labels are static information that isn't changing, so it just made more sense to do it that way.

There isn't any loading state - this can obviously be changed, but the Linode and NodeBalancer graphs don't have any loading state, so I figured it might be arbitrary

This doesn't do any timezone conversion - this is intentional. The child is responsible for this

Please read the usage docs
pls do 😭
To Test
I created a quick little gist for convenience sake. Just replace the entirety of Installation.tsx with what's in that gist and navigate to the installation tab.
Please play around with the data, requests and stuff.
Type of Change

Non breaking change ('update', 'change')

In Progress

[x] Unit Tests

I haven't given this a full review yet, but I have a general question: how will we handle layouts? This component renders the <Select /> for you, followed by the children. That's not always what we'll want though, like in the design below:

It seems like we could just expose the props needed for the Select component to the consumer, which could handle the component. It might be better as a hook, for that matter.

@johnwcallahan should work fine. The component doesn't nest the children under the Select
      <Select
        {...restOfSelectProps}
        onChange={handleChange}
        isClearable={false}
        isSearchable={false}
        value={options.find(o => o.label === selectedTimeRange) || options[0]}
        options={options}
      />
      {children(stats, fetchError)}
    </React.Fragment>

I may be missing something here. How would you create a layout like this?
<Grid>
  <Grid>
    <Header />
    <SideBar>
      <Select /> {/* TimeRangeSelect */}
    </SideBar>
  </Grid>
  <Grid>
    <SecondaryHeader />
    <Graph /> {/* Needs props from TimeRangeSelect  */}
  </Grid>
</Grid>

The <Select /> and <Graph /> are on different levels of nesting. But the <TimeRangeSelect /> component forces the Select to be at the highest level.

@johnwcallahan deleted my comment after re-reading. I'd push back against making it a hook - the idea here was to avoid having to deal with any markup at all.
What might be easier is to just expose a handleStatsChange and handleError callbacks that get fired in the promise, so that the consumer can decide what it wants to do with those new values.

That seems like it'd work. Then you could do something like:
const [stats, setStats] = React.useState();

return (
  <>
    <TimeRangeSelect request={...} handleStatsChange={stats => setStats(stats)} />
    <Graph stats={stats} />
  </>
);

@johnwcallahan updated all the code, readme, and testing gist.

authors: johnwcallahan martinmckenna


text:
@reply_to with list as the trigger

I have the slackbot up and running and I'm trying to make a plugin that responds to a list of keywords then gives out a random response, but I can't get the reply_to command to recognize the list of keywords as the trigger. I can use one keyword and have it respond with the random RESPONSES, but I would rather not use 11 functions when I could use a list. Anybody have any ideas on what I am doing wrong or how I could get this to work?
import re
from slackbot.bot import respond_to
from slackbot.bot import listen_to
import random
KEYWORDS = ("what", "hi", "greetings", "sup", "what's up",)
RESPONSES = ["This aggression will not stand, man.", "hey man ", "Mind if I do a J?"]
@respond_to(KEYWORDS, re.IGNORECASE)
def check_for_greeting(message):
    response = random.choice(RESPONSES)
    message.reply(response)```

Solved it by using:
import re
from slackbot.bot import respond_to
from slackbot.bot import listen_to
import random
KEYWORDS = ("what", "hi", "greetings", "sup", "what's up",)
RESPONSES = ["This aggression will not stand, man.", "hey man ", "Mind if I do a J?"]
@respond_to('(.*)', re.IGNORECASE)
def check_for_greeting(message, KEYWORDS):
    response = random.choice(RESPONSES)
    message.reply(response)```


text:
ModuleNotFoundError: No module named 'rpi_backlight'

Pasting our email conversation. Will backfill/improve if missing critical information.

Allen
I'm instalilng rpi-backlight on an RPI 3B+ w/ the Buster release and experiencing problems.  Have others reported problems, too?
After installation and update to the $SUBSYSTEM variable, I receive the follwing error message:
pi@piconsole:~/.local/lib/python3.7/site-packages/rpi_backlight $ sudo rpi-backlight -n 50
Traceback (most recent call last):
  File "/bin/rpi-backlight", line 6, in <module>
    from rpi_backlight.cli import main
ModuleNotFoundError: No module named 'rpi_backlight'

Please advise.

Linus

Have others reported problems, too?

I'm afraid not. I'll need more info what exactly have you done prior execution, please open an issue on GitHub: https://github.com/linusg/rpi-backlight/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
For example I'm not sure what the file /bin/rpi-backlight does.

Allen
I can explain the /bin/rpi-backlight.  The .profile $PATH didn't (seemingly) recognize/follow the  $HOME/.local/bin path (I don't have .bash_login or .bash_profile config files in ~), so I copied rpi-backlight to the /bin directory.
The installation was conducted per the instructions on the github website, i.e., "pip3 install rpi-backlight" (or similar).  The SD is new with a fresh, full Raspian install.

I believe running rpi-backlight as root requires a slightly different installation process - and isn't recommended nor necessary after creating the udev rule.
Please try running without sudo.
Btw, -n is not a valid option in either v1 or v2 - see https://rpi-backlight.readthedocs.io/en/latest/usage.html#command-line-interface

Linus,
You are correct, on both fronts.  (sudo, -n)
Last night, I used sudo as a fallback when initially receiving errors (not shown above).  Since then, I've rebooted the system several times and the CLI and GUI now work flawleslly.
Thank you ... Allen.

I'm glad the issue could be resolved @allendevans! Feel free to get in touch if you have further questions.

authors: allendevans linusg

repo: linusg/rpi-backlight


text:
Using /skip during TTS does not work

The bot responds with the usual successful skip message, but it does not skip the song when TTS is talking.

will be fixed in 3.0. closing

authors: linusromland superfroggman

repo: linusromland/Velody


text:
Do not merge: Test RHEL 9 in CI

Get results for RHEL-9 in upstream CI.

[citest]

[citest]

It passed for RHEL-X.

repo: linux-system-roles/mssql


text:
Get all tweets from user

I want to get all tweets from an user but it always return max 200. How can I do that?
var userTimelineParameters = new UserTimelineParameters();
userTimelineParameters.MaximumNumberOfTweetsToRetrieve = 1000;
var tweets = Timeline.GetUserTimeline("evleaks", userTimelineParameters);

OK I solved it by set MaxId of parameter when send get timeline request
var userId = new UserIdentifier("evleaks");
                    var param = new UserTimelineParameters {  MaximumNumberOfTweetsToRetrieve = 200 };
                    if (maxId > 0)
                        param.MaxId = maxId;
                    var tweets = await TimelineAsync.GetUserTimeline(userId, param);
                    maxId = tweets.Last().Id;

Here's how I got this working today:
 twitterClient.Config.RateLimitTrackerMode = RateLimitTrackerMode.TrackAndAwait;

            var lastTweets = await twitterClient.Timelines.GetUserTimelineAsync(GetParms());

            var allTweets = new List<ITweet>(lastTweets);
            var beforeLast = allTweets;

            while (lastTweets.Length > 0 && allTweets.Count <= 3200)
            {
                var idOfOldestTweet = lastTweets.Select(x => x.Id).Min();

                lastTweets = await twitterClient.Timelines.GetUserTimelineAsync(GetParms(idOfOldestTweet - 1));
                allTweets.AddRange(lastTweets);
            }

       private static GetUserTimelineParameters GetParms(long? maxId = null)
        {
            var timelineParms = new GetUserTimelineParameters("userName")
            {
                ExcludeReplies = true,
                TrimUser = true,
                MaxId = maxId
            };

            return timelineParms;
        }

@aherrick i try to use your solution but doesn't works for me. I'm trying to display 5 last tweets from my friend.
You have any idea why it don't works? Can you try help?
` List allTweets = new List();
public async Task wyswietlani_tweetAsync()
{
var client = new TwitterClient("CONSUMER_KEY", "CONSUMER_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET")
var user = client.Users.GetAuthenticatedUserAsync().Result;
        Console.WriteLine("You are now authenticated as" + user);
        client.Config.RateLimitTrackerMode = RateLimitTrackerMode.TrackAndAwait;

        var lastTweets = await client.Timelines.GetUserTimelineAsync("Adam28382782");  // tweeter username

        allTweets = new List<ITweet>(lastTweets);
        var beforeLast = allTweets;

        while (lastTweets.Length > 0 && allTweets.Count <= 5)
        {
            var idOfOldestTweet = lastTweets.Select(x => x.Id).Min();

            lastTweets = await client.Timelines.GetUserTimelineAsync(GetParms(idOfOldestTweet - 1));
            allTweets.AddRange(lastTweets);

        }
    }

    private void button15_Click(object sender, EventArgs e)
    {
        wyswietlani_tweetAsync();
        Thread.Sleep(5000);
        foreach (var element in allTweets)
        {
            Console.WriteLine(element.Text);
        }

    }`

authors: Adamszsz HelloWindowsPhone aherrick uponatime2019

repo: linvi/tweetinvi


text:
Geostore CLI nice-to-haves

This is a bit of a free-for-all for features. We'll have to clean up and split into manageable stories once we have more time.
User Story
So that the Geostore CLI is as useful as possible, as a dataset maintainer, I want to it to have standard bells and whistles.
Acceptance Criteria

[ ] Given [a pre-condition], when [an event happens], then [an expected outcome occurs]
[ ] Given [a pre-condition], when [an event happens], then [an expected outcome occurs]

Additional context

Tasks

From @billgeo testing on v0.1.6, in order of priority:

[ ] Improve schema validation messages inversion create. It is very verbose and unreadable and the actual validation error is buried right in the middle and really difficult to find.
[ ] it would be great to get a status update (or some kind of progress info) when the version create command is run. Similar to the status --watch suggestion below, but without having to chain the commands together, it just does it for you.
[ ] Dataset list seems to sort by some random order? Default to alphabetical or oldest to newest? Additionally could add a sort option?
[ ] Would be good to add more info to dataset list, potentially name, description, id, s3 path. Could be an optional thing maybe?
[ ] Improve message if $AWS_PROFILE isn't set. It says something cryptic like, 'have you logged into AWS?'. I had via aws-azure-login but I hadn't set that variable so had to figure that out myself.
[ ] At geostore --help, remove install-completion and show-completion options? Or explain what they mean?

@l0b0 idea's

[ ] Implement --version flag to print package version
[ ] Implement --color=never|auto|always flag to override default behaviour?
[ ] Implement --verbose flag to print more human readable but non-programmable output?
[ ] Implement --json for JSON output?
[ ] Implement --debug for raw output?
[ ] Implement --full-help (or something equivalent, like a man page) to be able to learn the full CLI synopsis in one go.
[ ] Automate release of CLI whenever we bump the version ID.
[ ] Implement a geostore version status --watch or similar flag. It should call the API once and print the status as it does right now. If it sees that the job is done it should terminate, otherwise it should wait for a few seconds (configurable?) and retry.

Definition of Ready

[ ] This story is ready to work on, according to the team's definition

Definition of Done

[ ] This story is done, according to the team's definition

Added some ideas to this @l0b0. Let's discuss these though and come up with an order of priority.

repo: linz/geostore


text:
Easily update collection metadata

User Story

So that I can update my metadata frequently and easily, as a Data Maintainer (Historic Imagery), I want to update the metadata by only supplying the metadata I want to update and not supplying the assets.

Acceptance Criteria

[ ] Given an existing dataset, when I request to update my dataset metadata, then I am only required to supply the metadata I want updated.
[ ] Given an existing dataset, when I update my dataset metadata and don't update any assets or file, then a new version is not created.
[ ] Given an existing dataset, when I request to update dataset and only dataset metadata is supplied, then I am asked if I only wanted to update the metadata.
[ ] Given an existing dataset, when I request to update dataset and only dataset metadata is supplied, then useful information is provided on how to update only metadata.

Additional context

Tasks

[ ] ...
[ ] ...

Definition of Ready

[ ] This story is ready to work on, according to the
team's definition

Definition of Done

[ ] This story is done, according to the
team's definition

How would "only dataset metadata is supplied" be implemented? Rather than trying to second guess what the user is trying to do, I would suggest we document how to update the metadata and leave it to the user to use the right approach.

I assume you mean "assets" and not "assets or file", since the only other files are metadata.

"[W]hen I update my dataset metadata and don't update any assets or file, then a new version is not created" is risky:

Reverting to an earlier version would be harder, because we would have two different notions of "version" - actual dataset versions and metadata file versions.
We would have to do some different validation of the new metadata to ensure that it has been as thoroughly validated as the original metadata. We'd at least have to assert that the asset URLs and checksums are all the same as in the original.

No longer needed. This is covereed by #559


text:
-D command line option doesn't override parameters in properties file

Environment
Liquibase Version: Liquibase Community 4.3.0
Liquibase Integration & Version: CLI
Liquibase Extension(s) & Version: version 4.3.0
Database Vendor & Version: PostgreSQL 11
Operating System Type & Version: Windows 10
Description
If you have a param value in the properties file, using the -D switch on the command line does not override that value
Steps To Reproduce
Create a changeSet, such as
<changeSet>
	<createTable catalogName="myTable" schemaName="public" tableName="templates" tablespace="${tableSpaceParam}">
		<column name="id" type="UUID">
			<constraints nullable="false" primaryKey="true" primaryKeyName="templates_pkey" />
		</column>
	</createTable>
</changeSet>

Have the following entry in the liquibase.properties file
parameter.tableSpaceParam: pg_default
Use the command line (with appropriate user names etc)
liquibase update -DtableSpaceParam=ts_myapp
Actual Behavior
The table is created using the tablespace pg_default, rather than the command line value
Expected/Desired Behavior
The command line value should be used, creating the table in ts_myapp tablespace

Hi @RogueJay Thanks for writing up this issue.  We will most likely have to clarify what is meant by a command line parameter.  liquibase --username is considered a command line parameter.  -D is indeed a command line parameter to the jvm that is used to call liquibase but need to look at the code to see where that falls in the priority list of overrides.

Looks like it got fixed for liquibase 4.17.0.
<changeSet id="1-createTable" author="fburguer">
	<createTable catalogName="myTable" schemaName="${param123}" tableName="templates" >
		<column name="id" type="UUID">
			<constraints nullable="false" primaryKey="true" primaryKeyName="templates_pkey" />
		</column>
	</createTable>
</changeSet>

I tried executing this changeset on Postgres, added parameter.param123:public in my properties file and used liquibase update  -Dparam123=test. The table was created on the test schema.

authors: FBurguer RogueJay molivasdat

repo: liquibase/liquibase


text:
CVE-2022-45868

Search first

[X] I searched and no similar issues were found

Description
/liquibase/internal/lib/h2.jar
Installed Resource
h2 2.1.214
is it safe to delete the jar? what is it used for?
Steps To Reproduce
download latest version and scan
Expected/Desired Behavior
no high CVE
Liquibase Version
latest
Database Vendor & Version
No response
Liquibase Integration
No response
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR (Thank you!)

H2 itself seems to consider it as "not a real CVE" and not looking to change their behavior h2database/h2database#3686
We'll keep an eye on how the reporting of the CVE continues over the next few weeks


text:
Updates installer JVM version.

Impact

[ ] Bug fix (non-breaking change which fixes expected existing functionality)
[X] Enhancement/New feature (adds functionality without impacting existing logic)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description
Update version of JVM installer - it can be merged/reviewed after 4.22.0 release.

Building test installers for manual test of upgrade. Build is here: https://github.com/liquibase/liquibase/actions/runs/5003406734

authors: XDelphiGrl filipelautert


text:
First draft of changes to allow smooth checksum upgrade.

Impact

[X] Bug fix (non-breaking change which fixes expected existing functionality)
[X] Enhancement/New feature (adds functionality without impacting existing logic)
[X] Breaking change (fix or feature that would cause existing functionality to change)

Description
Requires a version to calculate checksum.

I had this thought when looking at the code. Maybe instead of an int for version, we should create an enum.

I like this idea! I believe that just having a static method like "EnumVersionFromInt" would keep things simple.


text:
关于api

在提交前，请确保您已经检查了以下内容!

[ ] 您可以在浏览器中登陆微信账号，但不能使用itchat登陆
[x] 我已经阅读并按文档 中的指引进行了操作
[x] 您的问题没有在issues报告，否则请在原有issue下报告
[x] 本问题确实关于itchat, 而不是其他项目.
[ ] 如果你的问题关于稳定性，建议尝试对网络稳定性要求极低的itchatmp项目

请使用itchat.run(debug=True)运行，并将输出粘贴在下面:
[在这里粘贴完整日志]

您的itchat版本为：[在这里填写版本号]。（可通过python -c "import itchat;print(itchat.__version__)"获取）
其他的内容或者问题更详细的描述都可以添加在下面：

[您的内容]
1.在https://www.pythonanywhere.com上托管一段代码，想用itchat发消息，报错，打开debug，依旧
2.觉得不是代码问题，联系管理员
3.Does the site you're trying to access have a public API? If it does, then post a link to the documentation and we'll consider it for inclusion into the whitelist.
4.public API ？？？
查了https://www.pythonanywhere.com/whitelist/
有api.weixin.qq.com
为什么这个不管用？？？哪个又是对的？？

13:52 ~ $ python itchatdebug.py
Start auto replying.
Traceback (most recent call last):
  File "/home/hwt9520/itchat/utils.py", line 130, in test_connect
    r = requests.get(config.BASE_URL)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 71, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 57, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 585, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 465, in send
    raise ProxyError(e, request=request)
ProxyError: HTTPSConnectionPool(host='login.weixin.qq.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot conn
ect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))
You can't get access to internet or wechat domain, so exit.

ssl问题，参考：https://github.com/littlecodersh/ItChat/issues/265

repo: littlecodersh/ItChat


text:
国外账号不能登录

可不可以解决这个问题？

同问

同问

authors: RuochenFu21 guocity leo-usa


text:
What is the minimum I can set metadata_max to?

My block size is 4K. What is the minimum I can set metadata_max to? I want to disable the inline-file, which I set to 1 before, and it runs assertions.

Hi @Johnxjj, this depends on the size of your file's metadata and is unfortunately not easy to answer.
A file's metadata includes any inlined data, as you mentioned, but also its filename, any custom attributes, a possible skip-list (2 words), a possible move state (2 words), a possible tail pointer (2 words) and some overhead to manage metadata (1 tag per attribute, both custom and filesystem-level, a revision count, a checksum+tag, an erased-state checksum+tag).
It may be more useful to create a test file, and look at the file's metadata log on disk (file's mdir, mdir's blocks) and see how much of the block was written. The mdir's off field also points to the end of the metadata log after a commit. With some safety margin, this should be a good indicator of the minimum possible metadata_max for a given file. Though I realize this is a rough workaround.

As a part of some larger changes I'm working on littlefs should keep track of these sort of metadata limits a bit better, so it will at least error earlier if a metadata limit is exceeded rather than fail asserts. This is a work-in-progress though.
Also from this and other feedback I think we should bring back the inline_size config option. It seems more useful than I originally thought for controlling littlefs's behavior.

EDIT: move state needs 3 words, not 2

EDIT: EDIT: erased-state checksums (FCRCs) are not written when an mdir is full, so you don't need to account for those.

I've created a PR to add an inline_max config, so you should be able to disable inlined files directly soon: https://github.com/littlefs-project/littlefs/pull/914

authors: Johnxjj geky

repo: littlefs-project/littlefs


text:
🛑 LUG GitLab is down

In ba39603, LUG GitLab (https://git.lug.ustc.edu.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: LUG GitLab is back up in 7b5b7af.

repo: littlekud/sites-status


text:
how to set tabview's label height

how to set tabview's label height?
The automatic label is too high. I want to change it to a smaller size.

You can set it int the LV_TABVIEW_STYLE_BTN_REL, LV_TABVIEW_STYLE_BTN_PR etc styles.
style.text.font = &my_small_font;
lv_tabview_set_style(tabview, LV_TABVIEW_STYLE_BTN_REL, &style);

thank you!

Here is a full example:

    static lv_style_t style_tv_btn_rel;
    lv_style_copy(&style_tv_btn_rel, &lv_style_btn_rel);
    style_tv_btn_rel.text.font = &lv_font_dejavu_10;
    style_tv_btn_rel.body.padding.ver = 5;                  /*The vertical padding of the released button is applied to all buttons*/

    lv_obj_t * tv = lv_tabview_create(lv_scr_act(), NULL);
    lv_tabview_set_style(tv, LV_TABVIEW_STYLE_BTN_REL, &style_tv_btn_rel);
    lv_tabview_add_tab(tv, "First");
    lv_tabview_add_tab(tv, "Second");

Here is a full example:
    static lv_style_t style_tv_btn_rel;
    lv_style_copy(&style_tv_btn_rel, &lv_style_btn_rel);
    style_tv_btn_rel.text.font = &lv_font_dejavu_10;
    /*The vertical padding of the released button is applied to all buttons*/
    style_tv_btn_rel.body.padding.ver = 5;

    lv_obj_t * tv = lv_tabview_create(lv_scr_act(), NULL);
    lv_tabview_set_style(tv, LV_TABVIEW_STYLE_BTN_REL, &style_tv_btn_rel);
    lv_tabview_add_tab(tv, "First");
    lv_tabview_add_tab(tv, "Second");

thank you .I tested it. It worked.

Great!

if I do not want the label, How can I do it?

You can use void lv_tabview_set_btns_hidden(lv_obj_t *tabview, bool en).

We just started a Forum for LittlevGL. Please use it to ask questions.
The GitHub issues should be about development related things.
See: https://github.com/littlevgl/lvgl/issues/906

authors: 3038922 kisvegabor zhangshengping

repo: littlevgl/lvgl


text:
Ability to change pass type from attendee info page

Can we get a dropdown on that page that allows you to switch from that pass to any other pass?

The attendee information is attached to the pass. I'm not convinced that it would make sense to switch which pass it's attached to. Although since we have separate pages for each user, the cost of copy-pasting is much higher....

This was resolved as a side effect of #507 (removing item categories).

authors: melinath nmorduch

repo: littleweaver/django-brambling


text:
Ubuntu  服务端启动失败，大佬救命

skynet编译 ，数据库导入没什么问题，./run.sh  也没啥提示， 看log 貌似是失败了，刚开始学unity，瞻仰一下大佬的工程

跑了几次 stop.sh  ,再跑run.sh还是提示 这个

晓得了，原来那个debug只是测试代码， 需要去掉

repo: liuhaopen/UnityMMO


text:
Bazel or Swift command with "input parameters"

Liuliu, if I want to do Bazel command but wanting to add parameters such as --prompt "a cat who lives a million times" --steps 30 etc how do actually do this? Can you help me to lead to the right direction?
So far I have been modifying the main.swift file using textpad.

It requires to write some code in examples/txt2img/main.swift to support arguments, this is the Swift code thing, not Bazel thing (Bazel is used to build the binary and then run it, since it detects which file changed and how, it can recompile source code if needed, thus the bazel run turns the use of a compiled language such as Swift like a scripting language such as Python).
This is pretty low on the list of my things to do, probably will not in examples/txt2img, but create a new CLI tool to do this, as batching processing is a valid use case.
FYI, the thing on my list of the highest priority is the iOS app, which will be another week before beta testing, and then iPad app. Before macOS app, I probably should work on the CLI tool since it is a natural extension (and the CLI tool should be done in this repo).
That's why I am very interested in fix any crashes / nan bugs. Thanks for these reports so far!

Ok thanks for the useful info. I have very basic coding knowledge, but this is interesting. I remember  python has something similar.

repo: liuliu/swift-diffusion


text:
opencv 3.0 没有opencv2\legacy和opencv2/nonfree/

opencv3.0没有这两个模块，请fix头文件问题；
否则，无法编译通过
EasyPR/src/include/prep.h:7:42: fatal error: opencv2/nonfree/features2d.hpp: No such file or directory

OpenCV 3.0对模块的封装都做了调整, 不单是修改头文件能解决的
单我看到就有ML模块的变化, 需要重新修改对SVM和神经网络的使用

authors: berli vrqin

repo: liuruoze/EasyPR


text:
预训练模型vocab.txt 里面怎么有两个UNK

1 UNK
100 [UNK]
能否合并

我们预训练语料加入了UNK这个符号，建议同时保留。

authors: ShadowTeamCN liushulinle

repo: liushulinle/PLOME


text:
二维码探测图形自定义

支持二维码探测图形的自定义

tagV0.002 支持探测点自定义

repo: liuyueyi/quick-media


text:
🛑 worldofwarships.eu is down

In c97fab0, worldofwarships.eu (https://worldofwarships.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: worldofwarships.eu is back up in 9c28ce4 after 6 minutes.


text:
🛑 lesta.ru/shop is down

In 3b73374, lesta.ru/shop (https://lesta.ru/shop) was down:

HTTP code: 0
Response time: 0 ms

Resolved: lesta.ru/shop is back up in b302a70 after 6 minutes.


text:
Automatic image detection

We can look at a binary and if it looks like an image, we can automatically show it as said image.

@josevalim, could you elaborate?

In a nutshell, if you do a File.read!("some.png"), we should automatically show it as an image! Does that make a bit more sense? :)

In a nutshell, if you do a File.read!("some.png"), we should automatically show it as an image!

I got that, but how do we show it as an image? Do we have some sort of icon hovering near the cell output saying so or what?

We would use Kino.Image behind the scenes. There is already some code in Kino that customizes how data structures are formatted, and we would add special logic for binaries.

@Benjamin-Philip we have the Kino.Render protocol that determines how a value is transformed to an output, so we need to implement it for BitString where we check if the binary is one of a few common image encodings. This is kinda similar to what we do for ETS where we detect if a reference is a table.

The only issue I can think is that we would need a way to opt out in case of false positives.

@Benjamin-Philip we have the Kino.Render protocol that determines how a value is transformed to an output, so we need to implement it for BitString where we check if the binary is one of a few common image encodings. This is kinda similar to what we do for ETS where we detect if a reference is a table.

So rather than making the user call Kino.Image, we would like to render it automatically?

Yes.

Ah, now I undestand...

The only issue I can think is that we would need a way to opt out in case of false positives.

True, someone may want to deal with the binary itself. I think we could a part of Kino configuration, so the user could do Kino.configure(format_built_ins: false). I don't think we need a separate option for every conversion, since it's not going to be common anyway?

So rather than making the user call Kino.Image, we would like to render it automatically?

Yeah, the primary purpose of Kino.Image is so that we can wrap arbitrary binary in it and implement the protocol, so that's not necessary :D

In this case, wouldn't we want to make rendering Binaries it's own protocol on top of Kino.Render?
The reason being is that people might have binaries other that images that might need rendering (videos for example). We then would build rendering Images on top of this new protocol.

That already exists for images. We could add one for video. We need to add the dynamic inference nowz

Now that we have tabbed outputs, we can perform the inference and show a tabbed output between image and raw (probably image by default if it does have a low false negative rate).

authors: Benjamin-Philip jonatanklosko josevalim

repo: livebook-dev/kino


text:
Pull runner images

This will automatically pull the most recent runner images during the deployment.

fixes -> https://github.com/livepeer/ai-worker/pull/374

authors: leszko pwilczynskiclearcode

repo: livepeer/ai-worker


text:
L2Migrator finalize migrate function logic

What does this pull request do? Explain your changes. (required)

Specific updates (required)

How did you test each of these updates (required)

Does this pull request close any open issues?

Checklist:

[ ] README and other documentation updated
[ ] All tests using yarn test pass

Pull Request Test Coverage Report for Build 1609093617

25 of 25 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 1608348688:
0.0%

Covered Lines:
154

Relevant Lines:
154

💛  - Coveralls

authors: coveralls yondonfu

repo: livepeer/arbitrum-lpt-bridge


text:
Documentation: SwiftUI -> Layout Containers -> Layout transitions: ZStackLayout

As a PO I'd like to have documentation for the ZStackLayout

We won't support this one

repo: liveview-native/liveview-client-swiftui


text:
Update README.md

Minor update of Header 2 in Read Me. Also merge to main please.

Done

repo: livingstonic/testprs


text:
🛑 Movie is down

In e4f94bd, Movie (http://h.liyaodong.com:8096) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Movie is back up in 62241b4.

repo: liyaodong/uptime


text:
🛑 이마트24 www.emart24.co.kr is down

In ccc1050, 이마트24 www.emart24.co.kr (https://www.emart24.co.kr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 이마트24 www.emart24.co.kr is back up in 070fe9a after 7 minutes.

repo: lksjames/monitoring


text:
🛑 까사미아 www.guud.com is down

In 8b96549, 까사미아 www.guud.com (http://www.guud.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 까사미아 www.guud.com is back up in c4bf829 after 16 minutes.


text:
🛑 까사미아 www.guud.com is down

In ee9d639, 까사미아 www.guud.com (http://www.guud.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 까사미아 www.guud.com is back up in 0c5c0b8 after 12 minutes.


text:
🛑 Goodmd total.good-md.com:5280 is down

In 309841b, Goodmd total.good-md.com:5280 (https://total.good-md.com:5280) was down:

HTTP code: 503
Response time: 1401 ms

Resolved: Goodmd total.good-md.com:5280 is back up in 1559629 after 2 hours, 37 minutes.


text:
./dist is empty

Getting an error trying to import any of the classes. Simplest example:
import { LLMApplicationBuilder } from '@llm-tools/embedjs';

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../embedJsDemo/node_modules/@llm-tools/embedjs/dist/core/llm-application.js' imported from ...embedJsDemo/node_modules/@llm-tools/embedjs/dist/index.js
Likely related, starting with version 0.0.44, @llm-tools/embedjs/dist is missing everything but index.js and the package only contains 4 files.
https://www.npmjs.com/package/@llmembed/embedjs/v/0.0.44?activeTab=code
0.0.32 looks closer to expectation, with 75 files:
https://www.npmjs.com/package/@llmembed/embedjs/v/0.0.32?activeTab=code

Thanks @vgkids for bringing this to my attention. I am looking into this.

I have published a new version 0.0.48 that addresses the issue. I have tested this with the example slack bot.
The issue was two fold -

NPM uses .gitignore if .npmignore is absent. dist folder was added to .gitignore and that caused issues.
Using the format dist/**/* in files was also not working correctly. Switched to the simpler dist string fixes that issue.

Will leave the issue open for now. If it works for you, please go ahead and close the issue.

Looks good, I'm able to import the builder now and contents of ./dist look plausible.

authors: adhityan vgkids

repo: llm-tools/embedJs


text:
added notebook

Example 5

@ajiang024 - nice job!  👍

repo: llmware-ai/llmware


text:
Unable to complete basic fit_transform() : numba.core.errors.TypingError

Hello,
For the reccord, I wanted to share the error for passing floats to UMAP int arguments such as n_components. or n_neighbors. After painfull research over numba, found that input parameters type were the issue., which now seems obvious when reading the error...
Thanks for your great work
Reproducible example
from umap import UMAP
import numpy as np

data = np.random.rand(500, 8)

ClusterEstimator = UMAP(min_dist= 0.01, n_components= 8.0, n_neighbors= 4.0)
ClusterEstimator.fit_transform(data)

Error
Traceback (most recent call last):
  File "debug_umap2.py", line 10, in <module>
    a = ClusterEstimator.fit_transform(df)
  File "/home/raphrecovery/envs/datastack37/lib/python3.7/site-packages/umap/umap_.py", line 2635, in fit_transform
    self.fit(X, y)
  File "/home/raphrecovery/envs/datastack37/lib/python3.7/site-packages/umap/umap_.py", line 2350, in fit
    self.densmap or self.output_dens,
  File "/home/raphrecovery/envs/datastack37/lib/python3.7/site-packages/umap/umap_.py", line 558, in fuzzy_simplicial_set
    X, n_neighbors, metric, metric_kwds, angular, random_state, verbose=verbose,
  File "/home/raphrecovery/envs/datastack37/lib/python3.7/site-packages/umap/umap_.py", line 313, in nearest_neighbors
    knn_indices = fast_knn_indices(X, n_neighbors)
  File "/home/raphrecovery/envs/datastack37/lib/python3.7/site-packages/numba/core/dispatcher.py", line 414, in _compile_for_args
    error_rewrite(e, 'typing')
  File "/home/raphrecovery/envs/datastack37/lib/python3.7/site-packages/numba/core/dispatcher.py", line 357, in error_rewrite
    raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function(<built-in function empty>) found for signature:

 >>> empty(Tuple(int64, float64), dtype=class(int32))

There are 2 candidate implementations:
  - Of which 2 did not match due to:
  Overload of function 'empty': File: numba/core/typing/npydecl.py: Line 507.
    With argument(s): '(Tuple(int64, float64), dtype=class(int32))':
   No match.

During: resolving callee type: Function(<built-in function empty>)
During: typing of call at /home/raphrecovery/envs/datastack37/lib/python3.7/site-packages/umap/utils.py (30)

File "../../../../envs/datastack37/lib/python3.7/site-packages/umap/utils.py", line 30:
def fast_knn_indices(X, n_neighbors):
    <source elided>
    """
    knn_indices = np.empty((X.shape[0], n_neighbors), dtype=np.int32)
    ^

Thanks for documenting this. I'm sure it will be helpful for others. I'll see if there is a way to get more sensible errors.

Thanks for documenting this. I'm sure it will be helpful for others. I'll see if there is a way to get more sensible errors.

authors: carsteen lmcinnes

repo: lmcinnes/umap


text:
link to closed pullrequest

just to not loose the context i link the old PR here.
https://github.com/lnbits/lnbits/pull/461

We're making progress @MaxHillebrand and @arcbtc. I dare say we're almost there:

The UX will be fine-tuned but the functionality is almost all there:

Hi @MaxHillebrand,
I wanted to give you an update of the work that's going on as well as the most recent updates, and to thank you for the generous bounty.
You can use the following addresses to send me sats:
bc1qluptrwfg6xy0eugr8gt090kcyk2qac8rfh2etn

I've just submitted a PR (https://github.com/lnbits/jitsi/pull/2) to this repo to fix things that broke when changes to Jitsi and LNBits were made recently. @dni will give me access to push to the extension's repo soon. In the meantime, if you'd like to test, you can add this to the repo section of a manifest you use in an LNBits test instance:
{
    "id": "jitsi",
    "organisation": "nochiel",
    "repository": "lnbits-jitsi-extension"
}

This only contains the chatbot functionality for interacting with LNBits.

The current roadmap for a full wallet UX is as follows:

The screenshots I posted (https://github.com/lnbits/jitsi/issues/1#issuecomment-1656982366) are for prototype wallet functionality that I'm trying to get included in Jitsi.

The wallet functionality will allow us to have a nice UX for LNBits (or other Lightning Wallets) within Jitsi.

I'm optimistic that this will be done by the end of summer but a lot of the work is in getting the PR into a condition that Jitsi will accept it into their codebase. As you can imagine, that's a significant amount of work involving a lot of back and forth, code reviews and so on.

Right now I have my own version of Jitsi that I test with. In order to use this version that integrates with LNBits, it would also be necessary for you (or whomever wants to test it) to deploy their own Jitsi backend servers.
(This would be the way to use a version of Jitsi with wallet functionality if it turns out that Jitsi don't want to include a wallet in their main product functionality on principle.)

Fantastic, thank you very much! The bounty is paid.

Fantastic, thank you very much! The bounty is paid.

🙇🏾♂ Thank you, @MaxHillebrand. Do DM me a txhash on npub1f3plgr8hr7xqf22jwzgrvdghahqlp98jklzwrjrmvrzpnfvq25js4xzznz or nochiel at gmail.
Have an awesome weekend. And, when the Jitsi PR is in review, I might need you to jump in the comments section to help me promote it a bit and convince them that it's worth having.

Sorry I took so long to reply to this. Difficulties with my health delayed my progress and meant I had to prioritise other projects.

Just found about about this extension, this is great!
@nochiel Any link to the Jitsi PR? I can't find it at https://github.com/lnbits/jitsi/pulls

I'm going to clean up and complete what I have then get a pull request ready over the next 2 weeks. I'll post a link here to ping you as soon as it's up.

@nochiel Are the patches to Jitsi that should (ideally) be upstreamed available somewhere? If not, would you please be able to publish them somewhere? That would be another step towards the Jitsi PR. Thank you!

I'll have an patched Docker image available for testing when the PR is ready.
Thanks again for your interest and encouragement. 🤗

authors: MaxHillebrand dni nochiel

repo: lnbits/jitsi


text:
[Feature request] Search and filter

I would love to see a search function and the ability to filter for keywords. E.g. if i want to eat something with potatoes in can filter for this keyword and see all recipes with the keyword potatoe.

UX proposal:
Add Button open up dropdown to the top and select the search button or add button.
Screenshot follows.

Seems good to me. This way the UI will not be cluttered too much.

repo: lneugebauer/nextcloud-cookbook


text:
clarified docs, errors, and warnings

Small change to make the config easier to understand.
Signed-off-by: Sienna Lloyd sienna@linux.com

Thanks for the PR, but the change seems to be incorrect -
when RTTMillisecond is 100 milliseconds and the election interval is expected to be 1 second, ElectionRTT should be 10.

Is ElectionRTT a multiplier or a length of time? I can make the change, I just want to make sure I understand it.

@lni would you be able to provide clarification on my previous question?

Even though I am not @lni I think I can answer your question: ElectionRTT and HeartbeatRTT are both multipliers of RTTMillisecond.

@coufalja is correct.
@mxplusb I had a quick look at the godoc in config/config.go, there are concrete examples on the definitions of both ElectionRTT and HeartbeatRTT. Would you like to have a look and provide feedback on whether it is still a little bit difficult to understand. Thanks.

authors: coufalja lni mxplusb

repo: lni/dragonboat


text:
port has already been declared when complied by iverilog

iverilog -o compiled_counter120bitx5 ./SRC/counter120bitx5_include_netlists.v -s counter120bitx5_autocheck_top_tb
lizeju@amax:/data/lizeju/OpenFPGA/openfpga_flow/tasks/quicklogic_tests/counter_5clock_test/run008/k4_N4_tileable_GlobalTile8Clk_40nm/counter120bitx5/MIN_ROUTE_CHAN_WIDTH$ iverilog -o compiled_counter120bitx5 ./SRC/counter120bitx5_include_netlists.v -s counter120bitx5_autocheck_top_tb
././SRC/counter120bitx5_autocheck_top_tb.v:71: error: 'reset' has already been declared in this scope.
././SRC/counter120bitx5_autocheck_top_tb.v:18:      : It was declared here as a net.
Many auto generated tb files has this common error when they are complied by iverilog, such as fifo
How do solve this problem.

@Mistal1999 Sorry a late reply. This is indeed a bug. Currently, the reset is a reserved signal in openfpga's testbench generator. Can you modify the testbench file to avoid the problem?

I'm facing with same issue

When I try to generate a counter testbench with generate_testbench task, it gives me same errors:
The configuration and log files attached
config.txt
:
log.txt

Thank you for your responses, they are helpful.

@msaideroglu Sorry for late reply. The problem comes from the reset net is both a pin of FPGA global ports and a input of the reference benchmark. As a result, openfpga added two ports (wire/register) to the full testbench
// Global port
wire reset;
// Shared inputs
reg reset;
```

The above syntax is o.k. to icarus Verilog but complained by commercial tools, such as Modelsim.
I have created PR #528
It should address the issue.

authors: Mistal1999 msaideroglu tangxifan

repo: lnis-uofu/OpenFPGA


text:
Config file

Where is config.py

Why need config file ?


text:
[Bug] 添加插件配置后，面板没有更新数据，聊天也没有触发插件效果

💻 系统环境 | Operating System
macOS
🌐 浏览器 | Browser
Chrome
🐛 问题描述 | Bug Description
根据文档说明，添加manifest配置后，面板数据没有更新

回到聊天窗口，发送指令没有调用插件

🚦 期望结果 | Expected Behavior
正确调用插件
📷 复现步骤 | Recurrence Steps
No response
📝 补充信息 | Additional Information
lobe-chat版本：0.89.6
插件模版版本：1.1.0

https://chat-plugin-sdk.lobehub.com/guides/get-start
这边漏掉了一步，manifest-dev.json要先修改identifier

理论上不修改 identifier 应该也能跑的

repo: lobehub/chat-plugin-sdk


text:
Failing CI

CI is currently failing.
https://travis-ci.org/local-npm/local-npm
Detailed Description

CI is failing due to API changes.

working on it https://github.com/local-npm/local-npm/projects/1

authors: DanielRuf gabrielcsapo

repo: local-npm/local-npm


text:
Sometimes it is not required to accept the files, they are accepted automatically

Describe the bug
I have used this app many times, and I have noticed that sometimes I do not have to accept the files, transfer starts immediately. Is this a bug or a feature?
To reproduce

Pick files to transfer
Start the app on the receiver side
Send the files to the newly appeared computer
Transfer may or may not start without accepting

Expected behavior
require accepting
Screenshots
No response
Desktop (please complete the following information)
Windows 10
App 1.8.0
Smartphone (please complete the following information)
Pixel 6
Android
App 1.8.0
Additional context
No response

Hello, there is a "Quick Save" button on the receive tab. You might accidentally enabled this.

Usually I start the app on the receiver side [win button] + type "localsend" + [enter]
This is in my attic so I do notice if I have to go up again to accept the files.
I do not think I enabled that feature, I just tried it now and it even has a popup I have never seen before.
However, next time I will check if it was enabled.

Probably "Quick Save" was the reason. I cannot reproduce it now.
Will reopen in case I can reproduce.

authors: Tienisto szabolcsdombi

repo: localsend/localsend


text:
Readme

The link for Localstack points to the dead repository. Would be nice if it pointed to currently maintained fork.

Thanks @tmonck , that's fixed now.

authors: tmonck whummer

repo: localstack/awscli-local


text:
GEOMESA-2242 Add filtered conf to dist

Signed-off-by: Andrew Hulbert ahulbert@ccri.com

I went with a new directory so we don't have to add each individual filtered conf file in the future...we could just filter the whole conf dir if we think that's better?

repo: locationtech/geomesa


text:
GEOMESA-2752 Fix before/after date queries against Z3 index for 2.2 or before

Signed-off-by: Emilio Lahr-Vivaz elahrvivaz@ccri.com

Is this the same as an issue with dtg > abc? Wondering if we need to backport.

I think the bug was only introduced in 2.3, so we should probably backport to 2.3.x. @jahhulbert Are you seeing an issue with dtg > abc?

authors: elahrvivaz jahhulbert


text:
Add a new module, shop cart!

Only css used!
I add a new Icon(cart) and update fonts files.
This module was created to use on Corp panel.

testing...

Questions: When there is a very long text what happens?

I did a print using the ellipsis class, it is worth thinking about the solution of this scenario.

@deividmarques I like this solution, but I don't know if UX team also like, because this hide part of text of product. I talk with team on slack channel.

@deividmarques :+1:

:+1:

:+1:

authors: deividmarques flaviomuniz itumoraes

repo: locaweb/locawebstyle


text:
Error in running battery_storage files.

Hello I am trying to run the main.py file of battery_storage  and I am getting size issue as attached below.
C:\Users\AppData\Local\Programs\Python\Python37\Scripts\battery_storage>main.py --save   C:\Users\AppData\Local\Programs\Python\Python37\Scripts\battery_storage  --nRuns 1  --paramSet 1 C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\loss.py:445: UserWarning: Using a target size (torch.Size([500, 24])) that is different to the input size (torch.Size([500, 24])). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size.   return F.mse_loss(input, target, reduction=self.reduction) Traceback (most recent call last):   File "C:\Users\AppData\Local\Programs\Python\Python37\Scripts\battery_storage\main.py", line 234, in <module>     main()   File "C:\Users\AppData\Local\Programs\Python\Python37\Scripts\battery_storage\main.py", line 73, in main     model_rmse = nets.run_rmse_net(model_rmse, loaders_task, params, tensors_task)   File "C:\Users\AppData\Local\Programs\Python\Python37\Scripts\battery_storage\nets.py", line 55, in run_rmse_net     total_train_loss += train_loss.data[0] * X_train_.size(0) IndexError: invalid index of a 0-dim tensor. Use tensor.item()in Python ortensor.item() in C++ to convert a 0-dim tensor to a number

I have updated the code to use the newest version of PyTorch (76d19e49c145f1d8721d58e7bf74719b59a38480), which should hopefully resolve this issue.


text:
Schema

Should we use an existing schema? Shortbread and protomaps come to mind. Shortbread is CC0. What is protomaps, @bdon?
https://github.com/protomaps/protomaps-themes#readme

Sounds good, @bdon. I think we can already start putting some basic stuff together. We can always adjust the layers and style...

Thanks @bdon for open-sourcing the protomaps tiles at https://github.com/protomaps/basemaps/tree/main/tiles
I did a first run of planetiler and the tiles look great. Here is Monaco:

@maxammann I think we should just build on top of the protomaps tiles. They are CC0. What do you think?

Absolutely! I think we can try to stay compatible but not force ourselves too much.
It is definitely a good starting point.

authors: maxammann wipfli

repo: loeli-style/loeli-style


text:
[Feature]公司想用的话如何收费

Describe the feature you'd like to request
公司想用的话如何收费

@beefbg 邮件联系 lloggerhead@gmail.com

authors: beefbg loggerhead


text:
Azure OpenAI setup with Langflow 0.4.0

Hey team, Incredible app. Could anyone please let me know if Langflow 0.4.0 supports the use of Azure OpenAI? I attempted to set the environment variables for Azure OPENAI_API_TYPE=azure, but unfortunately, it didn't work out.
If anyone has detailed instructions on how to make it work, I'd greatly appreciate it! Thanks a bunch in advance! 😄

I use the v0.4.19, and I was able to make it work as follows:
I used the component ChatOpenAI, and added the following json to the `model_kwargs1 attribute:
{
    "engine": "<YOUR AZURE DEPLOYMENT NAME>",
    "api_version": "2023-05-15",
    "api_type": "azure"
}

In addition, I set the openai_api_base attribute as https://YOUR_AZURE_RESOURCE_NAME.openai.azure.com/.

authors: aidin-zadeh yassineselmi

repo: logspace-ai/langflow


text:
inefficiency caused by double event creation and extra field lookup

the current codec implementation leverages the lines codec for doing the line parsing. The problem is that the line codec decode method is called which produces and event and then a new event is created using the json deserialization of the previous event message field.
This means that for each input line, and extra and superfluous event is created and an extra event field lookup is done.
Since the line parsing logic is so simple, we just should directly use the buffered tokenizer here and not rely on the line codec.

+1 your proposal.
On Friday, January 29, 2016, Colin Surprenant notifications@github.com
wrote:

the current codec implementation leverages the lines codec for doing
the line parsing. The problem is that the line codec decode method is
called
https://github.com/logstash-plugins/logstash-codec-json_lines/blob/1eb838d12321a05f291c3836dce51c230605f915/lib/logstash/codecs/json_lines.rb#L40
which produces and event and then a new event is created using the json
deserialization of the previous event message field
https://github.com/logstash-plugins/logstash-codec-json_lines/blob/1eb838d12321a05f291c3836dce51c230605f915/lib/logstash/codecs/json_lines.rb#L55
.
This means that for each input line, and extra and superfluous event is
created and an extra event field lookup is done.
Since the line parsing logic is so simple, we just should directly using
the buffered tokenizer here and not rely on the line codec.
—
Reply to this email directly or view it on GitHub
https://github.com/logstash-plugins/logstash-codec-json_lines/issues/17.

Are we handling remainder flushing on close at all - in the current impl?

I made some arguments against this through another channel on the overall choice of buftok vs line codec:
implementation-wise I dont know if using the line codec makes the code more complex, which is my only concern on my suggestion.

That aside I see multiple benefits:
* reusing code
* one less place we have to maintain the contract of an external dependency
* using the codec this way helps us reinforce what one day might become the line tokenizer

Also, the performance gain is unknown and, for me, doesn't justify hardwiring buftok in json_lines (and multiline).
That said, for coherence sake and dismissing the performance argument, I'm +1 on going with this proposal if https://github.com/logstash-plugins/logstash-codec-multiline/issues/26 is accepted

given the simplicity of this implementation (without the boilerplate, literally 1 line @buffer.extract(data).each do |line| ) I think DRYness is not really a concern and I'd rather opt for performance.

+1 to use buftok and to fix the "flush if remainder" problem.

+1 to improve performance too.

Here too is a flavour mismatch if json_lines is used with the file input, and because there is no flush one gets absolutely no events generated at all, not even incorrect ones.

@guyboertje codec flush is meant as a final flush, why events are not generated when used with file input?

Fixed in #18

@colinsurprenant

codec flush is meant as a final flush, why events are not generated when used with file input?

Because json_lines does not implement a flush method!

@guyboertje but you said «if json_lines is used with the file input, and because there is no flush one gets absolutely no events generated at all»
So are «absolutely no events generated at all» or is there potentially a missing last event because there is no final flush?
It is important that this be clarified because if no events at all are generated by a lacking flush when used with the new file input, we do have a serious problem and need to update all/most codecs?

after discussions, we agree a flush method is required for the shutdown case where an incomplete line was buffered. It is pretty obvious this incomplete line will end up generating a json parser error but at least there will be a log trace for it.

followup issue in #20

authors: colinsurprenant guyboertje jordansissel jsvd suyograo


text:
Option to turn off logging for invalid IP message

What do you all think of having the "IP Field contained invalid IP address or hostname" message be able to turn off?
Like, I know it's going to happen in my IIS logs, as it will put a - field in there if the event doesn't have an IP.
The reason I ask, is because my logstash logs are at 25gb in just a week, mostly because of this log entry.
grep "IP Field contained invalid IP address or hostname" * | wc -l
375898

And that count doesn't even count the number of log lines associated with each of those entries! :(
I'm thinking that it should default to true, so that anyone trying it out for the first time would get the error message like today. Then allow it to be turned off in the config.
geoip {
  source => "ip"
  invalid_ip_logging => false
}

This error also happens if the logstash instance is running in an environment where there is no possibility to resolve the external hostnames.

Hello,
I'm having the same problem, but my server has connection to the internet so I can resolve the hostnames on the apache logs.
I have some IP/hostnames on the apache logs that look like this:
115031194-171.lexues.net
213-195-147-170.static.ip.netia.com.pl´
ul.cs-cart.com
When passing trough the geoip filter on the logstash.log I can see the error "IP Field contained invalid IP address or hostname".
Checking on the machine I can't resolve the hostname 115031194-171.lexues.net into an IP address and to a location, but using only lexues.net the call is valid and I get an IP address. The same applies to the other examples.
My question is if there is any way of trying to resolve those names, or at least using the domain name instead. All this without having to try to identify the correct dns name from a long string, for example lexues.net.
Thanks for the help

I am facing the similar issue. Any help?

As you can see on sources:
https://github.com/logstash-plugins/logstash-filter-geoip/blob/91d35650f6defe80b9d1f9a53edb34db6868dcd2/lib/logstash/filters/geoip.rb#L160
It's using logstash logger, 2 solutions:

Comment this line ^^
Disable logstash logging

Another option would be to only call the geoip filter if the field value matches an IP regular expression:
if [my-ip-field] =~ "[0-9]*.[0-9]*.[0-9]*.[0-9]*" {     geoip {         source => "my-ip-field"     } }

This feels a bit odd. The intent of this plugin is to act on IP addresses, so it's up to the user to only send IP addresses. We could change this behavior, though none of the proposed solutions (comment it out, add a new setting) feel like the right solution.
We could move this log from error level to info level, which would make it not logged by default. THoughts?

The intent of this plugin is to act on IP addresses, so it's up to the user to only send IP addresses.

This works great if you have direct control over the data flowing into your Logstash cluster. I don't, and I suspect others don't as well.
That being said, a new config param that allows you to set the logging level of this message could be appropriate. In our case, we don't particularly care if we get the occasionally bad value in the field we're passing to the filter, so the if statement approach works just fine for us.

It would be nice to be able to tell the filter to ignore/drop invalid IP addresses.   I ended up putting this mutate filter right before my geoip {}

        mutate {
            gsub => [
                "client_ip", "-", "127.0.0.1"
            ]
        }

Tin

:+1:

+1

In my case, it's less about invalid IPs and more about them being IPv6, which doesn't seem to be supported.  So it'd be nice to have a way to disable logging of this error.

👍

:+1: to add an option to disable log.
I've the same problem when they are multiple IP in the field :
"IP"=>"192.168.10.15, 81.248.104.152"

👍  to disable log.
I'm using GeoIp in X-Forwarded-For field because my servers are placed behind Amazon Cloud Front and ELB. As you know, what X-Forwarded-For header may contain does not guarantee to be a right IP address: you could get '-', 'unknown' or any kind of bad formatted string.
So currently, the two available options are:

Using mutate filter to replace strings by the local IP.
Check if the field is a correct IP (using regex, what it seems to me even worse) before applying GeoIP plugin.

So, IMO the best option would be to disable log. Since we can tag log lines if geoip filter is successful, we don't miss errors.

I think this is not geoip-filter problem, you should check before the IP is valide or not.
You could use a filter with inline ruby to check if IP is valid or not, explode field etc... but geoip is not the right place to do it.

Of course yes, in any system, if you enter wrong value you got an error! If you don't want the error, you must validate your data before, this is quite common in web dev.
This is "Single responsibility principle" pattern.
2 lines of logstash to get rid of this, quite easy, you wrote more on github ;-)
Or feel free to send a PR.

@ebuildy you are right, any system must validate incoming data, I'm not saying otherwise. But, as client of a library/package/system, I want ability to disable logs or catch errors (like you can do either in any programming language or using any logging framework: you as client decide the logging/error display policy).
Take a look to the following example:
grok {
    match => { "message" => '%{COMBINEDAPACHELOG} %{DATA:xforwardedfor}' }
}

split => ["xforwardedfor", ","]
strip => ["xforwardedfor"]
gsub => [ "xforwardedfor", "-|unknown", "127.0.0.1" ]

geoip {
    source => "xforwardedfor"
}

Of course I could use IP instead of DATA but if I do so, Grok wouldn't match things like IP1, IP2, which are quite common.
In the other hand, the gsub filter is not enough because I found X-Forwarded-For headers like:

u08022, 146.152.212.37, 36.119.253.28
u60521, 12.20.89.121, 188.13.109.176
55.33.131.161:47168, 62.254.110.44

notice the port in the last example
Instead of repeating the IP validation in every client, I think turning off the logging for those who don't care failures, it would be the best choice IMO.
Anyway, thank you for your time :)

You mean something like https://github.com/logstash-plugins/logstash-filter-geoip/pull/97/files ?

Any chance for merging https://github.com/logstash-plugins/logstash-filter-geoip/pull/97?

authors: TinLe aramirez-es dacofr dellis23 ebuildy eoconnor ipbastola jhitze jordansissel omercnet pemontto rahulsinghai ricardojdsilva87 rparkhunovsky splashx

repo: logstash-plugins/logstash-filter-geoip


text:
Update kafka.rb to include compatibility matrix

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

LGTM

This resolves the doc item to add in https://github.com/elastic/logstash/issues/5148 to add the compatibility matrix to the 5.0 docs.

authors: dedemorton suyograo

repo: logstash-plugins/logstash-input-kafka


text:
remove check if first block is empty

fixes #4
Iam not sure why this check exactly is there, was it to check if there is any non-empty block?
Then maybe a scan function which checks all blocks is better

Thanks for catching that :smile:
That check is a leftover from before depth support was added. While this pr fixes #4, i think ill change it bit more.

authors: Flyingmana lokiuz

repo: lokiuz/redraft


text:
Money Hack

I tried it but the money hack doesn't work

huh, we will look into it

repo: lol-jude/Blooket-Hacks


text:
mimaExcludeAnnotations doesn't work with objects

Since the implementation seems the same as Sbt Mima, my best guess is that there is some dependency clash that creates it.
The next thing I'm going to try is to run the tool from an insulated classloader.
Edit
Blocked by https://github.com/lightbend/mima/issues/689

This might be related to

#6

Also, once you isolate the MiMa classloader from Mill, you need to provide some other way to configure exclusions.

I'm replicating the MiMa classes instances here and make the same API available (except for the mima imports).
Let's see how it goes.

Oh, ok. Is this something not possible or is it just a missing feature from MiMa? Any links?
Lots of work to find out, but at least, it is not for nothing. Having MiMa as a worker will keep the Mill classloader lighter and allows for easier MiMa version bumps (without new mill-mima releases). :+1:

Yes, I like the classloader change either way :-) I think we should make it easier to write plugins with the implementation in a separate classloader so it can become the new default.
About the Mima bug, I couldn't find anything, so I'm opening one right now.

Some of my annotations which I think were ignored were on defs in traits. The annotations were scala.annotation.StaticAnnotation. I don't know if this is visible enough for MiMa, or if they need to be written in Java. I didn't find any info about that.

I think StaticAnnotations are fine because tests use them, but maybe traits aren't supported as well as objects.
Also the annotation should be present already in the previous version, adding it at a later point doesn't work.

Thanks for these information.

authors: lefou lolgab

repo: lolgab/mill-mima


text:
Generated actions do not correctly type the getInput method

When generating an action with an actionOnlyField, an interface is generated for that action, and the typing is applied to the protected input property. However, the getInput() method that returns that property types the return value as the generic input type for that schema.
export default class Foo extends BaseEntSchema {
  fields: [
    StringType({ name: 'name' }),
  ];

  actions: Action[] = [
    {
      operation: ActionOperation.Edit,
      fields: ['name'],
      actionName: 'SpecialFooAction',
      inputName: 'SpecialFooInput',
      actionOnlyFields: [{ name: 'confirmation', type: 'String' }],
    },
  ];
}

export interface FooInput {
  name?: string;
  confirmation: string;
}

export class FooActionBase implements Action<Foo> {
  public readonly builder: FooBuilder;
  public readonly viewer: Viewer;
  protected input: SpecialFooInput;

  // ...

  getInput(): FooInput {
    return this.input;
  }

  // ...

}

closing because it's in the v0.1 branch and easier to track

authors: Swahvay lolopinto

repo: lolopinto/ent


text:
creates.log

I am planning on migrating a carbon-cache (~80k points/sec) setup to go-carbon.
I like to track what whisper files are being created to detect if high cardinality identifiers (e.g. session-ids, user-ids, order-id) are used in the metrics names.
Example of carbon-cache's creates.log:
08/06/2016 08:56:49 :: creating database file /opt/graphite/storage/whisper/a/b/c.wsp (archive=[(60, 11520), (300, 9216), (900, 17280), (1800, 27600)] xff=None agg=None)

Could you maybe implement something similar in go-carbon?

All creates tracked to main log with log-level = "debug". Maybe that's enough?

Oh, you're right!
Depending how active the other debug logger are, this will work.
For future readers the "create" log looks like this:
[2016-06-08 16:57:25] D [persister] Creating /srv/graphite/whisper/a/b/c.wsp {aggregation="default", method="average", retention="30s:8d,5m:90d", schema="foo-all", xFilesFactor=0.5}

authors: lomik rtoma

repo: lomik/go-carbon


text:
Update deprecated container class to fix masthead-nav padding

Changes to container mixin altered how the nav was padded. Added new mixin to fix.
before:

after:

repo: lonelyplanet/rizzo-next


text:
(v1.1.2) strings_en.arb is generated for non dart/flutter projects

After updating the plugin to V1.1.2, the plugin creates strings_en.arb for all Android Studio projects, even a new blank android project without dart or flutter. The file gets instantly regenerated after deleting.

Thanks for the heads up! I'll check this asap and submit a new version.

This is now fixed in #107 and submitted to JetBrains plugins repo. Hopefully it'll appear by tomorrow and you can upgrade.

Still exists on version v.1.1.4-191

Something in your environment is different than mine then because it doesn't happen here. I tested with many Android projects... There's a strict check in the Kotlin code for a Flutter-only project.
Can you check if a Flutter or Dart module is listed inside .idea/modules.xml file?

Hi, i am facing the same issue, any suggestion?

@noordawod ,when open Flutter project's android module, it creates strings_en.arb on /android/res/values/。I think it's not issues, but I can't build my Flutter project in Android platform. And can i close auto generate by another menu.

authors: augustdong beilly noordawod pparadox11 remcoanker


text:
Attach updated endpoint signature to inner

Not all endpoints accept a __signature__ attribute, nor should the cache decorator modify the decorated endpoint. Attach the signature to the returned inner function instead.
While here, refactor the signature updating code, and extract it to a separate function.
Fixes #115

Note: there is one edge-case the decorator isn't handling at the moment: if the decorated endpoint uses the names request or response but expects these to be a different type:
def foo(request: int, response: str, req: Request, resp: Response) -> None:
    pass

This is perfectly valid, but the cache decorator will then fail with a ValueError: duplicate parameter name: 'request' or ValueError: duplicate parameter name: 'response' exception.
To make that work, you'd have to generate unique names for the request and response parameters. That's well outside the scope of this PR however.

Another issue is that the decorator assumes the request and response parameters always are named 'request' and 'response' when popping these from the copy_kwargs dict.


text:
🛑 LongPort Web CN (longportapp.cn) is down

In 6a835bd, LongPort Web CN (longportapp.cn) (https://longportapp.cn) was down:

HTTP code: 502
Response time: 2897 ms

Resolved: LongPort Web CN (longportapp.cn) is back up in cfbc030.

repo: longbridgeapp/uptime


text:
🛑 Northern Light is down

In 006b210, Northern Light (https://northernlight.jau.co.jp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Northern Light is back up in daf6220.

repo: longforme/longforme-uptime-monitor


text:
Using NFS backup target with sec=krb5p and custom authentication

Hi community :)
I'm trying to configure NFS target dir with specific configuration: sec=krb5p and authentication, but I didn't found any documentation on how to do that. Maybe a UI enhancement is needed ?
I'm using longhorn 7.0.
Thank you for your help !

@liogate I am afraid we don't support NFS authentication at the moment. I would recommend using S3 service over https instead, or MinIO.

Thank you ! I'll try MinIO :)

authors: liogate yasker

repo: longhorn/longhorn


text:
[BUG] Nightly Test: Salvage related tests failed

Describe the bug
The following tests should be modified after the implementation of #1719 .
test_salvage_auto_crash_all_replicas
test_salvage_auto_crash_replicas_short_wait
test_salvage_auto_crash_replicas_long_wait
The remount handling method is changed, the function wait_pod_for_auto_salvage in the integration test should be updated, too.
Expected behavior
The tests should get passed.
Log
Found this log after all replica crash:
[longhorn-manager-55wpp] time="2020-10-29T12:05:27Z" level=info msg="Event(v1.ObjectReference{Kind:\"Volume\", Namespace:\"longhorn-system\", Name:\"longhorn-testvol-bwuqqb\", UID:\"eff46b3b-66dc-4344-acbc-c0989ea50459\", APIVersion:\"longhorn.io/v1beta1\", ResourceVersion:\"4853087\", FieldPath:\"\"}): type: 'Warning' reason: 'AutoSalvaged' Replica longhorn-testvol-bwuqqb-r-4cb7f47b of volume longhorn-testvol-bwuqqb will be automatically salvaged"
[longhorn-manager-55wpp] time="2020-10-29T12:05:27Z" level=info msg="Event(v1.ObjectReference{Kind:\"Volume\", Namespace:\"longhorn-system\", Name:\"longhorn-testvol-bwuqqb\", UID:\"eff46b3b-66dc-4344-acbc-c0989ea50459\", APIVersion:\"longhorn.io/v1beta1\", ResourceVersion:\"4853087\", FieldPath:\"\"}): type: 'Normal' reason: 'Remount' Volume longhorn-testvol-bwuqqb requested remount at 2020-10-29T12:05:27Z"

But the logs in handlePodDeletionIfVolumeRequestRemount() is not found
kc.logger.Infof("Deleted pod %v so that Kubernetes will handle remounting volume %v", pod.GetName(), vol.GetName())

Environment:

Longhorn version: master
Kubernetes version: v1.18
Node OS type and version: Ubuntu 18.04

Additional context
Add any other context about the problem here.

This could be a duplicate of https://github.com/longhorn/longhorn/issues/1914

Duplicate of #1914.

authors: khushboo-rancher shuo-wu yasker


text:
[IMPROVEMENT] "Failed to sync Longhorn setting ..." messages every hour

Discussed in https://github.com/longhorn/longhorn/discussions/6444

Originally posted by eoprede August  3, 2023
Hello,
I'm running Longhorn 1.5.1 and I have noticed after upgrade that I am getting following messages every hour:
time="2023-08-03T01:29:17Z" level=error msg="Failed to sync Longhorn setting longhorn-system/v2-data-engine" controller=longhorn-setting error="failed to sync setting for longhorn-system/v2-data-engine: cannot apply v2-data-engine setting to Longhorn workloads when there are attached volumes" node=slave2

time="2023-08-03T01:29:17Z" level=error msg="Dropping Longhorn setting longhorn-system/v2-data-engine out of the queue" controller=longhorn-setting error="failed to sync setting for longhorn-system/v2-data-engine: cannot apply v2-data-engine setting to Longhorn workloads when there are attached volumes" node=slave2

I have similar messages for longhorn-system/storage-network as well.
I have total of 3 nodes, only 1 of them gets these messages. As far as I know, nothing on that node is configured differently.
Could you point me to what could be the reason for these errors?
Thanks!
Is your improvement request related to a feature? Please describe (👍 if you like this request)
The error is misleading.
Describe the solution you'd like
See if we can segregate settings that do not require periodic resync to get rid of the misleading errors.
Describe alternatives you've considered
None
Additional context
https://github.com/longhorn/longhorn/discussions/6444

I have the same problem, did you manage to solve it?

This has been improved in https://github.com/longhorn/longhorn/issues/6812.

authors: c3y1huang deler-aziz innobead


text:
chart: seperate v1 and v2 instanceManagers

Longhorn/longhorn#7357

Read for review cc @innobead


text:
R SDK don't seem to have the look() method and can't find another way to run a look with a different filter

R SDK don't seem to have the look() method and can't find another way to run a look with a different filter
In Python and Ruby we ca do that using:
Python:
look = sdk.look(16)

request = create_query_request(
    query=look.query,
    filters={'track_motivations.track_id':'256'})

sdk.run_inline_query(
    'csv',
    request,
    cache=False)

Ruby
look = sdk.look(16)
output = sdk.run_inline_query(
    "png",
    {
        "model" => look.query.model,
        "view" => look.query.view,
        "fields" => look.query.fields,
        "pivots" => look.query.pivots,
        "fill_fields" => look.query.fill_fields,
        "filters" => {
            'track_motivations.track_id' => '255'},
        "sorts" => look.query.sorts,
        "limit" => look.query.limit,
        "column_limit" => look.query.column_limit,
        "total" => look.query.total,
        "row_total" => look.query.row_total,
        "subtotals" => look.query.subtotals,
        "dynamic_fields" => look.query.dynamic_fields,
        "query_timezone" => look.query.query_timezone,
        "vis_confif" => look.query.vis_config
    })

but we need a way to do the same using the R SDK. Is it possible?
Thanks

This package is not maintained (see issue 38). I suggest trying over at the official Looker SDK project: https://github.com/looker-open-source/sdk-codegen

authors: alan-krumholz scrane-amplify

repo: looker-open-source/lookr


text:
Add support for application/JSON calls in BP2

Added prefix "Bp" to all the BP errors/exceptions
Throw Bp exceptions for all the error responses generated by BP2
Convert exceptions to error responses in the ExceptionFilter
If request is exepcting an application/json response, then return
a response with custom response (e.g. contains a redirect_url)

Current coverage is 94.60%

Merging #132 into master will decrease coverage by -1.99% as of 7d2a9ea

@@            master   #132   diff @@
=====================================
  Files           36     33     -3
  Stmts          910    908     -2
  Branches        25     25
  Methods          0      0
=====================================
- Hit            879    859    -20
  Partial          0      0
- Missed          31     49    +18

Review entire Coverage Diff as of 7d2a9ea

Powered by Codecov. Updated on successful CI builds.

That's all I have for this go-round.

Just a minor issue. If you say the log level difference is on purpose, I'll merge it.

authors: PeterFCaswell codecov-io maheshkelkar

repo: lookout/borderpatrol


text:
Update stapfen.gemspec

Pull in all the exciting new updates

THEY ARE JUST SO EXCITING

authors: lsb rtyler

repo: lookout/stapfen


text:
Feature(s): OCPP 1.6 configuration manager

Proposed changes
Implemented OCPP 1.6 configuration manager, based on my project.
Features:

List of all mandatory and optional OCPP 1.6 configuration keys
Mandatory key validation
Custom value validation
Update observer (triggering a function when a watched key is updated)
Storing and retrieving keys and their values

Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation Update (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

[x] I have read the CONTRIBUTING doc
[ ] I have signed the CLA
[x] Lint and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)
[x] Any dependent changes have been merged and published in downstream modules

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you
did and what alternatives you considered, etc...

It isn't clear to me why this needs be part of this module. If it is for sake of integration capabilities it might be better to add the required APIs here and  have the implementation in a separate repo.

It isn't clear to me why this needs be part of this module. If it is for sake of integration capabilities it might be better to add the required APIs here and have the implementation in a separate repo.

Hey @andig,
afaik, it is a part of the roadmap for this repository and I think it would be nice to have everything ocpp related included in one repository.
The configuration manager also adds configuration key validation based on the OCPP profile(s), as each OCPP profile requires some configuration keys to be present (in OCPP specs), which would allow for more standardization and ease of use.

repo: lorenzodonini/ocpp-go