text:
[Practitioner Guide]: Demonstrating Value

Practitioner Guide Topic (1 - 3 words)
Demonstrating Value
Primary Metrics (2 - 4 metrics)

https://chaoss.community/kb/metric-issue-response-time/
https://chaoss.community/kb/metric-issues-closed/
https://chaoss.community/kb/metric-project-velocity/
https://chaoss.community/kb/metric-labor-investment/

Why is this topic important? How will this help people improve their open source project and / or community? Who will benefit from this guide?
Are you a maintainer struggling to justify your continued time working on an OSS project? Or are you an end-user trying to determine if you should use or support a project? Or how about a business trying to map your employee's contributions to internal initiatives? These struggles are prevalent throughout the ecosystem and often boil down to ineffectively conveying the "value" and "risks" of a project.
Some relevant topics include:

Why communicating a project's value & risks is essential for project growth and long-term sustainability.
Strategies projects can adopt to better surface their value & risks.
Several unconventional methods for end-users and vendors to evaluate their contributions.
Highlight new non-code opportunities for people to get involved.

How would you like to see this guide developed?
I have the experience and time available to write the first draft
Additional Notes
This is based on a talk that @mrbobbytables gave at KubeCon: Why is this so hard? Conveying the Business Value of Open Source. That link contains the slides and video of the talk.

Google doc for collaborating on the guide: https://docs.google.com/document/d/15hULclvqFD5h_7divoIu1oIGfKA1HHOddHUpy3B3zkk/edit?usp=sharing

repo: chaoss/wg-data-science


text:
remove empty sections from README

Empty sections don't add value. We can add them back in when we have content for them.

Thank you Georg

source: gharchive/pull-request

authors: GeorgLink andyl

repo: chaoss/wg-value

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 in-2 (Albony) is down

In 72e2264, in-2 (Albony) (https://in-2-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 132 ms

Resolved: in-2 (Albony) is back up in 5f8bd8d.

source: gharchive/issue

repo: chaotic-aur/chaotic-uptimes


text:
🛑 Silky.Network - us-ca is down

In 1b058ef, Silky.Network - us-ca (https://us-ca-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 74 ms

Resolved: Silky.Network - us-ca is back up in a44d9b3.


text:
MIT6.824分布式系统欢迎你

欢迎大家学习MIT6.824分布式系统课程！
课程安排基本每周两个讲座Lec，需要大家学习材料并回答问题，我会在Issues里录入收集相关资料并编写自己的心得体会，然后创建问题供大家参与。
每周会有一个lab实验需要编码，大家可以fork本项目代码进行，完成后运行test觉得结果不错可以发出pull req，后面有空会召集大家进行学习。
未来课程每个讲座Lec需要大家参与回答的问题我会录入到Issues，标签为"question"，大家可以在下面评论进行答复
大家也可以把这里当做论坛创建自己issue进行讨论，但是注意问题质量，并请注意选好右侧的labels标签为“help wanted”
为测试效果，这个就是第一个问题：
你的群昵称是什么，对分布式系统课程有啥想说的？

群昵称fp

群昵称小明

群昵称zh

群昵称wpp

群昵称test

authors: chaozh fingerpasswang haodaivshen incumbent wupaopao xietongMe


text:
[Dashboard] Card Re-arrange not working as expected

Card re-arrange event is saving with the right data, but the front-end presentation after a reload is wrong. Possibly a bug in the shapeshift library

The rendering of each card needs to be delayed until all previous cards have been rendered correctly. Some cards have faster render time, and thus appear in the DOM at different times.

repo: charlesportwoodii/CiiMS

license_source: bigquery


text:
Support User Patterns?

Hello,
I'm discovering ocr has trouble with "non-word" AN strings.  Searching through the issues you've recommended user patterns in this case.  Is there any documentation specific to this wrapper for adding user patterns?  Thank you!

No, the standard technique of creating a config file works, see
TesseractOcr doco. Then just pass the config file name to the
TesseractEngine constructor.
Note make sure you use UTF8 without the BOM and unix (\n) line endings.
On Feb 6, 2015 6:54 AM, "boomgetchopped" notifications@github.com wrote:

Hello,
I'm discovering ocr has trouble with "non-word" AN strings. Searching
through the issues you've recommended user patterns in this case. Is there
any documentation specific to this wrapper for adding user patterns? Thank
you!
—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/154.

Hi, how did you go with this? Did you find the information required? I've also been thinking about expanding the wiki with information about this and other related topics. Do you this would be useful?

Please reopen if you need further details,  thanks

authors: boomgetchopped charlesw

repo: charlesw/tesseract


text:
Web gui

Maybe the most ironic thing but a basic web gui.
what ya think ?
soft serve is mega cool and really extendable and so many git servers are crazy complex. Gitea etc etc .
so a htmx based web gui with pure golang might be a nice thing for others ?

I second this, somehow lol

there is a really nice one here i use.
https://github.com/icyphox/legit
It does not need git even :)
If anyone wants to work on it with me just shout...

Hey @aymanbagabas
If you want help on this just shout.

Im willing to give it a try this week.
Maybe I can send a PR, maybe only a half one.

I have now started to Use htmx for the GUI.
It allows progressive updates and is easy to develop on..

Not sure if someone else is already working on this. If not, then I might be able to give it a try (but it might take awhile).
I'm still exploring the code, but I'm very sure at least you can have a home page (see screenshot) :D

The problem with third-party web UI is that they don't handle permissions, because the permission data is handled inside Soft Serve and not exposed. So the only way to do it is build it in.

Well, before I dig myself any deeper, maybe it's a good time to ask the project members if the effort has already been commenced by someone.
So... @aymanbagabas, you've mentioned in #241 that a Web UI was planed. Is the work already started?
I mean, someone who knows the ins and outs is more likely to have better idea on how things should be done than me poking around :)
On the other hand, if there is no effort yet... well, I'm exploring the code just a little, not sure if I can succeed in the end though.

This is awesome @nirui
I will be happy to help out . Let me know where your fork is etc

My intention is to add the feature to the official version, so I want to hear the opinion and concerns from the project members before greenlighting myself to do anything further.
My plan is to implement few very minimal, and read-only web pages to allow visitors to browse basic information about the repositories. Just couple of template and CSS files, maybe not even include JavaScript (So no CodeMirror or Markdown parsing etc, just good old pre tag).
I might also make it so the end-user can customize the interface via their own template and CSS files. So if they don't like what I did, they can make it all fancy by themselves.
But before all that, we need to hear what the project members have to say about it.

Hey @nirui
Ok I see what you mean in terms of needing feedback.
I am was planning to build this with htmx and golang, so that its easy for golang devs to extend it.
https://github.com/delaneyj/datastar is one of the base repos that does this.
HTMX does Server side rendering using golang templates and allows read and write aspects.
Its also real time using SSE; so that its easy to add any GitHub like features like Issues, discussions later of we want.
The gui is still controlled with CSS, but the JS is standardised so there is no JS to write because its htmx.

hey @nirui

My intention is to add the feature to the official version, so I want to hear the opinion and concerns from the project members before greenlighting myself to do anything further.
My plan is to implement few very minimal, and read-only web pages to allow visitors to browse basic information about the repositories. Just couple of template and CSS files, maybe not even include JavaScript (So no CodeMirror or Markdown parsing etc, just good old pre tag).

good. kiss...

I might also make it so the end-user can customize the interface via their own template and CSS files. So if they don't like what I did, they can make it all fancy by themselves.

agree +1

But before all that, we need to hear what the project members have to say about it.

@aymanbagabas  ??

Hi @gedw99, I've stopped working on this after my last comment up there. If you'd like to take a look, here are the changes I made:
0001-webui-add-initial-files-to-explorer-the-possibility.patch.txt
Hope it will be useful to you if you're trying to implement similar feature ;)

thanks @nirui
Patch looks pretty good with no exotic dependencies ...
I wil take a look later and se if I can PR it in

Hi @gedw99. My patch introduced no new dependency. I thought extra dependency might complicate the code review process.
However, please note that some part of the code might not be considered as up-to-spec for merging.
For starter, the templateCommonDataCtxKey type is not properly defined (it should be a struct type instead of a bare string type).
Another thing is the render function. The logic should be "By default return a HTML format, unless the user is requesting for nothing else but application/json" (Yes, I planed to support returning pure JSON data to enable better integration with other systems).
But... while waiting for the respond, I got involved in something else, which took all my free time away... So yeah, I'm no longer have time for this :( Anyway, that's your code now, have fun with it :)

thanks @nirui
yep I know how it is when you get dragged onto paying work etc.
I will play with it and extend it based on your tips.

Curious, are there any updates?

authors: ThaDaVos cjkvdev ellieschieder gedw99 nirui

repo: charmbracelet/soft-serve


text:
Is this still active and update for .Net 5 and 6?

Hi, i need to know this still support .Net 5 and 6, seen i saw that it is only suitable for Net Framework

authors: NotAsea g-u-r-k-a-n

repo: charri/Font-Awesome-WPF

license: mit


text:
spanGaps issue

Good day
Im using spanGaps:true in the datasets, which should fill the gaps in points that have a null value,
but its not working at all, is there a problem with spanGaps? thank u
{x: "2018-07-12 09:15:33", y: null, d: "Punto de conexión"}
1
:
{x: "2018-07-29 09:16:37", y: 51, d: "Gasto"}
2
:
{x: "2018-08-01 09:16:00", y: null, d: "Punto de conexión"}
3
:
{x: "2018-08-02 09:16:47", y: 362, d: "Gasto"}
4
:
{x: "2018-08-07 09:16:58", y: 428, d: "Gasto"}
5
:
{x: "2018-08-08 12:23:06", y: 462, d: "Gasto"}
6
:
{x: "2018-08-08 12:23:13", y: null, d: "Punto de conexión"}
7
:
{x: "2018-08-09 14:08:00", y: null, d: "Punto de conexión"}
8
:
{x: "2018-08-10 09:16:08", y: null, d: "Punto de conexión"

im using the latest version of chart.js also

where exactly is spangaps:true supposed to be going?
var lineChartData = {
labels: datalabels2,
datasets: [{
spanGaps:true,
options: {spanGaps: true},
label: $.i18n("admFinSpend2"),
pointRadius: 5,
pointHoverRadius: 7,
backgroundColor: 'rgba(253, 169, 189, 0.2)',
borderColor: 'rgba(193,33,63,1)',
fill: true,
data: dataset2,
yAxisID: 'y-axis-1',
},
inside options of the dataset, or in the root of dataset?
I have tried both and its just not connecting the lines through the null values

Im using version
/*!

Chart.js
http://chartjs.org/
Version: 2.7.2

Copyright 2018 Chart.js Contributors
Released under the MIT license
https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
*/

Here's an example from samples/charts/area/line-datasets.html
		var options = {
			maintainAspectRatio: false,
			spanGaps: false,
			elements: {
				line: {
					tension: 0.000001
				}
			},
			scales: {
				yAxes: [{
					stacked: true
				}]
			},
			plugins: {
				filler: {
					propagate: false
				},
				'samples-filler-analyser': {
					target: 'chart-analyser'
				}
			}
		};

		var chart = new Chart('chart-0', {
			type: 'line',
			data: data,
			options: options
		});

Please ask questions on StackOverflow: https://stackoverflow.com/questions/tagged/chart.js

authors: benmccann javismiles


text:
Chart does not use automatic colors for lines

When creating a line chart with 2 or more series, no automatic color for each line is created. It seems default color (gray) is used for all of them.
By assigning a color explicitly is not an option since the series information comes from database, so I cannot know how many series exist before hand.
This should be solved to make this chart more useful.
Regards
Jaime

Why don't you use an array with colors, and just grap those colors depending on # of dataset?
All my charts are dynamic and I use Chroma.js to get my colors, depending on what type of chart I use
return chroma.scale([color1, color2]).mode('lch').colors(numberOfColors);

return chroma.scale(['#33b5cc', '#cf1766']).mode('lch').colors(13);

or if you want to be more specific in the color change:
return chroma.scale(['#33b5cc', '#ff9100', '#cf1766']).mode('lch').colors(13);

I think plugin should be easier to use... that handling is very complicated for such a recurring task. But never mind.. I stopped using ChartJS and starting using other that defines color automatically for each serie among other powerful features.
This should be enhanced in ChartJS as soon as possible.
Regards
Jaime

I just released chartjs-plugin-colorschemes that enables automatic coloring. GitHub repository is here.

+1 here. Google Charts has such capability and and it would be great to have a simple migration path away from it. At this moment, I'm going to look on other libraries.

@simonbrunel I haven't tried it because I'd like to have something simple that works out-of-box. Also I don't want to have one more dependency (that also doesn't exist on webjars.org).

Closing because I don't believe this will be a feature of the core library. The colorschemes plugin is the best way to achieve this

authors: Hedva etimberg jaimestuardo nagix php-coder


text:
Inject styles into Shadow DOM when inside Shadow DOM (#5763)

Injects the inline <style> used by ChartJS into document.head and each Shadow Root as needed
Adds a node[EXPANDO]: { containsStyles: boolean } to document.head and each Shadow Root that contains a ChartJS instance
Removes the flags platform._style and platform._loaded since we now need to keep track of multiple <style> insertions

To-do(?):

Karma tests to test responsive behaviour inside Web Components
Update documentation to include the need for manually including the <script> inside Shadow DOMs in the case of disableCSSInjection: true - example workaround

Closes: #5763

Looks good!
Can you add a test pen where the functionality can be verified? (Fork https://stackblitz.com/edit/polymer310-testcase-chartjs for example)

Thanks @kurkle. I'm not sure what's up with the error I'm getting when using customElements but here is what I've been using for testing:
https://stackblitz.com/edit/polymer310-testcase-chartjs-zxndkp
I copied my exact testing page into index2.html in the above. I'm getting this error:
Error: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.

If any reviewer has the patience to help out with this I would appreciate it a lot! I'm not really sure if I'm missing something obvious to make this work. However I would expect the pen you linked (https://stackblitz.com/edit/polymer310-testcase-chartjs) to also work with the changes in this PR.

authors: Simon-Tang kurkle


text:
Allow pre-parsed data (to scale id's)

The

set _parsed in the Element directly to reference that original user provided object

From https://github.com/chartjs/Chart.js/pull/6766#issuecomment-555361276
Could be this simple.
Data needs to be array of {x-scale-id: value, y-scale-id: value}
Todo:

[ ] docs
[ ] partial updates (account for start / count)

We'll probably want to update the default scale IDs
I also wonder if this would allow us to remove Scale._parse or at least TimeScale._parse. We could simply have the user change the scale ID from x to t instead of parsing both attributes

I'd actually remove support for t. And Scale._parseObject. _parse is still needed for the non päre-parsed data.

Master: (averages around 270ms)

master + this (and parsed: true): (averages around 240ms)

So the difference is around 30 ms, which is almost 10% now!
I like the fact that prepData, that prepares the benchmark is getting to the top .

I think float bar probably won't work because the _custom field won't get populated

I think float bar probably won't work because the _custom field won't get populated

If the user provides the _custom as expected for float bars, then it would work.
Maybe there should be a bit more info. Like "Any custom parsing done by the controller needs to be replicated in this mode?"

authors: benmccann kurkle


text:
Vertical text annotation

Hello everyone!
Any plan on a "zAdjust" option on text labels?
To display a label vertically just above a vertical line for exemple?
Many thanks

There's no plan for this currently. You have some control using the drawTime options. If you have any ideas, PRs are welcome.

authors: ArthurMalet compwright

repo: chartjs/chartjs-plugin-annotation


text:
label:enhancement add wrapper class support.

hi~, suppose a method return a Buffer object, you have to code like this:
c++
void drawToBuffer(int size, nbind::cbFunction& callback) {
    nbind::Buffer buf = callback.call<nbind::Buffer>(size);
    // ...
    buf.commit();
}

#include "nbind/nbind.h"

NBIND_GLOBAL() {
    function(drawToBuffer);
}

javascript
let result = drawToBuffer(function(size) {
    return Buffer.alloc(size);
})

I suggest two ways of interact with c++ code that will return an object of js buildin types/classes.

Give a constructor to nbind::Buffer, so you can create an "instance" of that type like std::vector.

nbind::Buffer drawToBuffer(bool useBackground, float rotate) {
    nbind::Buffer buf(128);
    // ...
    buf.commit();
    return buf;
}

#include "nbind/nbind.h"
NBIND_GLOBAL() {
    function(drawToBuffer);
}

javascript:
let imageBuffer = binding.lib.drawToBuffer(false, 0);

Add support for js inner types binding. instead of using NBIND_CLASS, give a new micro NBIND_WRAP.

class ImageBuffer {
public:
     static nbind::Buffer toJS(ImageBuffer *);
     static nbind::Buffer toJS(ImageBuffer); // overwrite
     static ImageBuffer *fromJS(nbind::Buffer); // user should release the newly create ImageBuffer*
     static ImageBuffer fromJS(nbind::Buffer);// overwrite
     static ImageBuffer& fromJS(nbind::Buffer, ImageBuffer& objectToInit);// overwrite
public:
     unsigned char* data;
     int length;
}
void addWaterPrint(ImageBuffer);

NBIND_GLOBAL() {
    function(addWaterPrint);
}
NBIND_WRAP<nbind::Buffer>(ImageBuffer);

javascript:
let buffer = fs.readFileSync(/*...*/);
binding.lib.addWaterPrint(buffer);

another example:
class NetWorkConfig {
public:
     static std::string toJS(NetWorkConfig *); // you can join all properties to an string like hostname#port#path
     static NetWorkConfig *fromJS(std::string); // split the input string by '#' and you get [hostname,
     static NetWorkConfig fromJS(std::string); // overwrite for different argument types.
public:
    std::string hostname;
    std::string port;
    std::string path;
}

bool setupConnection(NetWorkConfig config);

NBIND_WRAP<std::string>(NetWorkConfig);
NBIND_GLOBAL() {
    function(setupConnection);
}

javascript:
let serverAddress = 'http://some.domain.name.com#8080#/your/resource/path';
let hasConnected = binding.lib.setupConnection(serverAddress);
if(hasConnected) {
    // ...
}

This is extremely when work with matirx operation libray, there will be a great improvement when you can convert 1,0,0,0,1,0,0,0,1 to an native Matirx3_3 object

repo: charto/nbind


text:
Error path source

Any sugestion? Tks

Forward slashes?Sent from my iPhoneOn Sep 13, 2024, at 5:38 PM, Braulio Dias Ribeiro @.***> wrote:
Any sugestion? Tks
01.png (view on web)
02.png (view on web)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Forward slashes?Sent from my iPhoneOn Sep 13, 2024, at 5:38 PM, Braulio Dias Ribeiro @.> wrote: Any sugestion? Tks 01.png (view on web) 02.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

I can't believe it! How could I have been blind? lol
Thank you very much
Now it works, but after I click on the button, the button no longer appears

Can you try dark mode and tell me if it still happens? Sent from my iPhoneOn Sep 14, 2024, at 6:11 AM, Braulio Dias Ribeiro @.***> wrote:
Forward slashes?Sent from my iPhoneOn Sep 13, 2024, at 5:38 PM, Braulio Dias Ribeiro @.> wrote: Any sugestion? Tks 01.png (view on web) 02.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>
I can't believe it! How could I have been blind? lol
Thank you very much
Now it works, but after I click on the button, the button no longer appears
image.png (view on web)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Can you try dark mode and tell me if it still happens? Sent from my iPhoneOn Sep 14, 2024, at 6:11 AM, Braulio Dias Ribeiro @.> wrote: Forward slashes?Sent from my iPhoneOn Sep 13, 2024, at 5:38 PM, Braulio Dias Ribeiro @.> wrote: Any sugestion? Tks 01.png (view on web) 02.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> I can't believe it! How could I have been blind? lol Thank you very much Now it works, but after I click on the button, the button no longer appears image.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

Keep going .... Maybe the problem is here.

Sorry you did find a bug for me so that is fixed in version 1.0.5 where on light mode the button text isnt visible. With the processing continuing to run is most likely an issue with your setup. If you could, go into the plugin settings and turn on debug mode, then open up developer tools and see what errors or logs you get when you try to run. Post them here and I will help you out.

Also before you do anything switch to version 1.0.5 this is the most up to date version. the higher versions are currently out of date because of the official release merge process.

I went back to version 1.0.5 and it worked.
I don't know how to debug, sorry.
I saw on google that I need to press ctrl+shift+I.
I just don't know how to export the debugging result.
If you need debugging, let me know and I'll try to figure out how to export it
Thank you for your help, and thank you for your time. This plugin and this AI is sensational.

Great thanks,In the future for other issues, the plugin settings has a debug option at the bottom. Once it’s enabled the developer tools, go to view, toggle developer tools.Then open console, and copy paste the logs.Sent from my iPhoneOn Sep 16, 2024, at 10:52 AM, Braulio Dias Ribeiro @.***> wrote:
I went back to version 1.0.5 and it worked.
I don't know how to debug, sorry.
I saw on google that I need to press ctrl+shift+I.
I just don't know how to export the debugging result.
If you need debugging, let me know and I'll try to figure out how to export it
Thank you for your help, and thank you for your time. This plugin and this AI is sensational.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>


text:
浏览器访问http://0.0.0.0:8501，立马报错ModuleNotFoundError: No module named 'httpx_sse'

**问题描述 / ==============================Langchain-Chatchat Configuration==============================
You can now view your Streamlit app in your browser.
URL: http://0.0.0.0:8501
2024-03-06 20:13:31.898 Uncaught app exception
Traceback (most recent call last):
File "/home/hduser/.local/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/home/hduser/Langchat/Langchain-Chatchat/webui.py", line 2, in
from webui_pages.utils import *
File "/home/hduser/Langchat/Langchain-Chatchat/webui_pages/utils.py", line 31, in
set_httpx_config()
File "/home/hduser/Langchat/Langchain-Chatchat/server/utils.py", line 497, in set_httpx_config
fschat_model_worker_address(),
File "/home/hduser/Langchat/Langchain-Chatchat/server/utils.py", line 406, in fschat_model_worker_address
if model := get_model_worker_config(model_name):
File "/home/hduser/Langchat/Langchain-Chatchat/server/utils.py", line 361, in get_model_worker_config
from server import model_workers
File "/home/hduser/Langchat/Langchain-Chatchat/server/model_workers/init.py", line 2, in
from .zhipu import ChatGLMWorker
File "/home/hduser/Langchat/Langchain-Chatchat/server/model_workers/zhipu.py", line 5, in
from httpx_sse import EventSource
ModuleNotFoundError: No module named 'httpx_sse'
用简洁明了的语言描述这个问题 / Describe the problem in a clear and concise manner.
执行python3 startup.py -a命令运行起来，用浏览器访问就会报找不到httpx_sse，实际上httpx_sse已经安装 版本号也是对的
复现问题的步骤 / Steps to Reproduce

执行 '执行python3 startup.py -a
点击 用浏览器访问

预期的结果 / Expected Result
描述应该出现的结果 / Describe the expected result.
网页正常访问
实际结果 / Actual Result
描述实际发生的结果 / Describe the actual result.
网页无法访问
环境信息 / Environment Information

langchain-ChatGLM 版本/commit 号：(例如：v2.0.1 或 commit 123456) / langchain-ChatGLM version/commit number: (e.g., v2.0.1 or commit 123456)
是否使用 Docker 部署（是/否）：否
使用的模型（ChatGLM2-6B / Qwen-7B 等）：ChatGLM3-6B
使用的 Embedding 模型（moka-ai/m3e-base 等）：bge-large-zh
使用的向量库类型 (faiss / milvus / pg_vector 等)： milvus
操作系统及版本 / Operating system and version:Linux algo 5.4.0-171-generic #189-Ubuntu SMP Fri Jan 5 14:23:02 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Python 版本 / Python version:3.11.7
其他相关环境信息 / Other relevant environment information:

附加信息 / Additional Information
添加与问题相关的任何其他信息 / Add any other information related to the issue.

httpx_sse 装一下试试 pip装

repo: chatchat-space/Langchain-Chatchat


text:
设置CHUNK_SIZE 检索知识库返回content长度无变化

在kb_config中配置了CHUNK_SIZE，但是重新构建知识库后，使用如下脚本检索时，返回的page_content无变化，不知道如何修改才能改变

此外，我的运行环境无法连接huggingface,所以我的embedding和llm都是本地下载的，我看过了https://github.com/chatchat-space/Langchain-Chatchat/pull/2561 发现这个已经被fix过了 https://github.com/chatchat-space/Langchain-Chatchat/commit/17e8bc072b434a690077dc453878dba809674f99  ，但是对我没有帮助

@dosu 在web中测试知识库问答时，返回的检索结果和设置的chunk_size一致，但api调用时不一致 你有什么想法吗


text:
WIP - Refactor 'git_client' to custom resources

Description
Refactor 'git_client' to custom resources.
Remove mac_os_x attributes that are no longer relevant.
Issues Resolved
#113
#106
#40
Check List

[ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Closing this out since it was never finished up and greatly conflicts with master now.

repo: chef-cookbooks/git


text:
[BUG FIX] WIndows install to correct issue #199

Description
This change correct issue with how the install resource was managing the windows install. Currently it is trying to unzip an archive that isn't named correctly. It was also trying to unzip to a directory that didn't exist so, the powershell_script block was failing silently. Also, when the archive was being moved, it was moving a folder full of files with version specific naming, this was causing the path being set to fail as well.

Added steps to create proper unzip directory in c:\habitat
Corrected the name of the zip archive to be current
Changed how the powershell_script block moves file so that is steps in an extra directory and the path gets set correctly.
Added step to clean up file_cache_path

Issues Resolved
Hab install fails on Windows because it can't find the directory #199
Check List

[x] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

     Synchronizing Cookbooks:
         - cb_habloader (0.1.0)
         - habitat (1.5.1)
         - windows (6.0.1)
       Installing Cookbook Gems:
       Compiling Cookbooks...
       Converging 4 resources
       Recipe: cb_habloader::default
         * hab_install[install habitat] action install
           * remote_file[C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/hab-x86_64-windows.zip] action create
             - create new file C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/hab-x86_64-windows.zip
             - update content in file C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/hab-x86_64-windows.zip from none to 344c14
             (new content is binary, diff output suppressed)
           * archive_file[hab-x86_64-windows.zip] action extract
             - create directory C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/habitat
             - extract C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/hab-x86_64-windows.zip to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/habitat
           * directory[c:\habitat] action create
             - create new directory c:\habitat
           * powershell_script[installing from archive] action run
             - execute "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/vagrant/AppData/Local/Temp/chef-script20200207-2936-1uzte63.ps1"
           * windows_path[C:\habitat] action add
             * windows_env[path] action modify

           * execute[hab license accept] action run
             - execute hab license accept

         * hab_sup_windows[Test-run] action run
           * hab_install[Test-run] action install (up to date)
           * hab_package[core/hab-sup] action install
             - install version 1.5.0 of package core/hab-sup
           * hab_package[core/hab-launcher] action install
             - install version 13013 of package core/hab-launcher
           * windows_env[HAB_AUTH_TOKEN] action delete (up to date)
           * windows_env[HAB_SUP_GATEWAY_AUTH_TOKEN] action delete (up to date)
           * hab_package[core/windows-service] action install
             - install version 0.6.0 of package core/windows-service
           * execute[hab pkg exec core/windows-service install] action run (skipped due to not_if)
           * template[C:/hab/svc/windows-service/HabService.exe.config] action create
             - create new file C:/hab/svc/windows-service/HabService.exe.config
             - update content in file C:/hab/svc/windows-service/HabService.exe.config from none to 9a053c
             --- C:/hab/svc/windows-service/HabService.exe.config       2020-02-07 18:28:25.429546700 +0000
             +++ C:/hab/svc/windows-service/chef-HabService20200207-2936-8pjxds.exe.config      2020-02-07 18:28:25.429546700 +0000
             @@ -1 +1,32 @@
             +<?xml version="1.0" encoding="utf-8"?>
             +<configuration>
             +  <configSections>
             +    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
             +  </configSections>
             +  <startup>
             +    <supportedRuntime version="v4.0.30319"/>
             +  </startup>
             +  <log4net>
             +    <root>
             +      <level value="ALL" />
             +      <appender-ref ref="RollingFileAppender" />
             +    </root>
             +    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
             +      <file value="logs\Habitat.log" />
             +      <appendToFile value="true" />
             +      <rollingStyle value="Size" />
             +      <maxSizeRollBackups value="10" />
             +      <maximumFileSize value="100MB" />
             +      <staticLogFileName value="true" />
             +      <layout type="log4net.Layout.PatternLayout">
             +        <conversionPattern value="%date - %message%newline" />
             +      </layout>
             +    </appender>
             +  </log4net>
             +  <appSettings>
             +    <add key="debug" value="false" />
             +    <add key="HAB_FEAT_IGNORE_SIGNALS" value="true" />
             +    <add key="launcherArgs" value="--no-color " />
             +  </appSettings>
             +</configuration>
           * windows_service[Habitat] action enable (up to date)
           * windows_service[Habitat] action start
             - start service windows_service[Habitat]
           * windows_service[Habitat] action restart
             - restart service windows_service[Habitat]

       Recipe: cb_habloader::services
         * hab_package[core/7zip] action install
           - install version 16.04/20190523094208 of package core/7zip
         * hab_service[core/sqlserver] action load
           - update core/sqlserver
           -   set strategy to :"at-once" (was :none)
           * execute[hab svc load core/sqlserver --binding-mode strict --url https://bldr.habitat.sh --channel stable --group default --strategy at-once --topology standalone --health-check-interval 30 --shutdown-timeout 8 --remote-sup 127.0.0.1:9632] action run
             - execute hab svc load core/sqlserver --binding-mode strict --url https://bldr.habitat.sh --channel stable --group default --strategy at-once --topology standalone --health-check-interval 30 --shutdown-timeout 8 --remote-sup 127.0.0.1:9632

The 2 linting failures are not something I can correct. They are related to sysvinit and if the version is changed in the spec test, it will be a version that does not support sysvinit by default

repo: chef-cookbooks/habitat


text:
Can the iptables and ip6tables be enable/disable separately?

in default.rb and disabled.rb
%w(iptables ip6tables).each do |ipt|
this mean we have to either enable or disable both but not like just iptables.
This is the error that I am getting..
 [10.2.0.41] Running handlers complete
 [10.2.0.41] [2020-10-15T23:33:20+00:00] ERROR: Exception handlers complete
 [10.2.0.41] Chef Infra Client failed. 198 resources updated in 17 minutes 28 seconds
 [10.2.0.41] [2020-10-15T23:33:20+00:00] INFO: Sending resource update report (run-id: 102eea5a-b2a3-4769-bf6c-462112213a6d)
 [10.2.0.41] [2020-10-15T23:33:21+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2020-10-15T23:33:21+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
 [10.2.0.41] [2020-10-15T23:33:21+00:00] FATAL: Mixlib::ShellOut::CommandTimeout: service[ip6tables] (iptables::default line 62) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 900s:
Command exceeded allowed execution time, process terminated
---- Begin output of ["/bin/systemctl", "--system", "start", "ip6tables"] ----
STDOUT:
STDERR:
---- End output of ["/bin/systemctl", "--system", "start", "ip6tables"] ----
Ran ["/bin/systemctl", "--system", "start", "ip6tables"] returned
ERROR: The following error occurred on 10.2.0.41:
ERROR: warning: /tmp/install.sh.2078/chef-16.1.16-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
       /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/option_collector.rb:83: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
       /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/option_collector.rb:98: warning: The called method `option_collector_attribute' is defined here

Hey, please look into moving to the resources, which should allow you to select each individually: https://github.com/chef-cookbooks/iptables/blob/master/documentation/iptables_service.md

authors: Xorima barrowkwan

repo: chef-cookbooks/iptables


text:
On CentOS 6.6, chooses systemd provider and fails, and then docs for override are wrong

When compiling cookbooks on Chef 12 with 6.1.0 various ominous warnings appear...
[2015-09-03T03:13:25-04:00] WARN: You declared a new resource Chef::Provider::MysqlServiceUpstart for resource mysql_service, but it comes alphabetically after Chef::Provider::MysqlServiceSystemd and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for mysql_service.
[2015-09-03T03:13:25-04:00] WARN: You are overriding mysql_service on {:os=>"linux"} with Chef::Provider::MysqlServiceSystemd: used to be Chef::Provider::MysqlServiceUpstart. Use override: true if this is what you intended.
[2015-09-03T03:13:25-04:00] WARN: You declared a new resource Chef::Provider::MysqlServiceUpstart for resource mysql_service, but it comes alphabetically after Chef::Provider::MysqlServiceSystemd and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for mysql_service.
[2015-09-03T03:13:25-04:00] WARN: You declared a new resource Chef::Provider::MysqlServiceUpstart for resource mysql_service, but it comes alphabetically after Chef::Provider::MysqlServiceSystemd and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for mysql

...and sure-enough, it tries to converge upstart-based CentOS 6.6 with systemd code and errors out.
So I try to change providers: I say provider Chef::Provider::MysqlService::Upstart because that's what the documentation says to do but that's undefined and blows up.  By now I've been reading source code so I work around it with provider Chef::Provider::MysqlServiceUpstart and things converge but it still issues warnings.
So, I decide to really rig it by removing both my provider call (err, property) and also rip out every provider in the mysql cookbook except upstart. Now, great success.

see #469 should be Chef::Provider::MysqlServiceManagerSystemd

This should fixed in current versions but if not please open new issue with chef-client version details .

authors: RossHarvey Rud5G cheeseplus

repo: chef-cookbooks/mysql


text:
ruby-1.9.3-p392 fails to build

On Mountain Lion, with i686-apple-darwin11-llvm-gcc-4.2 installed:
Recipe: rbenv::user
  * rbenv_ruby[1.9.3-p392 (stephen)] (stephen) action installRecipe: <Dynamically Defined Resource>
  * rbenv_script[rbenv install 1.9.3-p392 (stephen)] action run

  * rbenv_script[rbenv install 1.9.3-p392 (stephen)] action nothing (up to date)
  * script[rbenv install 1.9.3-p392 (stephen)] action run
================================================================================
Error executing action `run` on resource 'script[rbenv install 1.9.3-p392 (stephen)]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20130225-11972-84e9lw" ----
STDOUT:
STDERR: rbenv: version `global' not installed
Downloading yaml-0.1.4.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /Users/stephen/.rbenv/versions/1.9.3-p392

Downloading ruby-1.9.3-p392.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
Installing ruby-1.9.3-p392...

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20130225153220.12196
Results logged to /tmp/ruby-build.20130225153220.12196.log

Last 10 log lines:
compiling safe.c
compiling signal.c
compiling sprintf.c
compiling st.c
st.c:520:35: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
            i = table->num_entries++;
              ~ ~~~~~~~~~~~~~~~~~~^~
1 error generated.
make: *** [st.o] Error 1
make: *** Waiting for unfinished jobs....
---- End output of "bash"  "/tmp/chef-script20130225-11972-84e9lw" ----
Ran "bash"  "/tmp/chef-script20130225-11972-84e9lw" returned 1

Resource Declaration:
---------------------
# In /Users/stephen/src/rbenv/providers/script.rb

 28:   script new_resource.name do
 29:     interpreter   "bash"
 30:     code          script_code
 31:     user          new_resource.user     if new_resource.user
 32:     creates       new_resource.creates  if new_resource.creates
 33:     cwd           new_resource.cwd      if new_resource.cwd
 34:     group         new_resource.group    if new_resource.group
 35:     path          new_resource.path     if new_resource.path
 36:     returns       new_resource.returns  if new_resource.returns
 37:     timeout       new_resource.timeout  if new_resource.timeout
 38:     umask         new_resource.umask    if new_resource.umask
 39:     environment(script_environment)
 40:   end
 41:

Compiled Resource:
------------------
# Declared in /Users/stephen/src/rbenv/providers/script.rb:28:in `block in class_from_file'

script("rbenv install 1.9.3-p392 (stephen)") do
  action "run"
  retries 0
  retry_delay 2
  command "\"bash\"  \"/tmp/chef-script20130225-11972-84e9lw\""
  backup 5
  environment {"RBENV_ROOT"=>"/Users/stephen/.rbenv", "USER"=>"stephen", "HOME"=>"/Users/stephen"}
  returns [0]
  user "stephen"
  code "export RBENV_ROOT=\"/Users/stephen/.rbenv\"\nexport PATH=\"${RBENV_ROOT}/bin:$PATH\"\neval \"$(rbenv init -)\"\n\nrbenv shell global\n\nrbenv install 1.9.3-p392\n"
  interpreter "bash"
  cookbook_name :rbenv
end

[2013-02-25T15:35:22+00:00] ERROR: Running exception handlers
[2013-02-25T15:35:22+00:00] ERROR: Exception handlers complete
Chef Client failed. 6 resources updated
[2013-02-25T15:35:22+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-02-25T15:35:22+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: script[rbenv install 1.9.3-p392 (stephen)] (/Users/stephen/src/rbenv/providers/script.rb line 28) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20130225-11972-84e9lw" ----
STDOUT:
STDERR: rbenv: version `global' not installed
Downloading yaml-0.1.4.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /Users/stephen/.rbenv/versions/1.9.3-p392

Downloading ruby-1.9.3-p392.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
Installing ruby-1.9.3-p392...

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20130225153220.12196
Results logged to /tmp/ruby-build.20130225153220.12196.log

Last 10 log lines:
compiling safe.c
compiling signal.c
compiling sprintf.c
compiling st.c
st.c:520:35: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
            i = table->num_entries++;
              ~ ~~~~~~~~~~~~~~~~~~^~
1 error generated.
make: *** [st.o] Error 1
make: *** Waiting for unfinished jobs....
---- End output of "bash"  "/tmp/chef-script20130225-11972-84e9lw" ----
Ran "bash"  "/tmp/chef-script20130225-11972-84e9lw" returned 1

This looks very similar to: https://github.com/sstephenson/ruby-build/issues/297
I wonder if this means ruby-build is using clang rather than gcc?

1.9.3 hit end of life in february, so closing off.

authors: Atalanta CloCkWeRX

repo: chef-rbenv/chef-rbenv


text:
Improve error when creating v2 policy while on IAM v1

User Story
As an Automate User, I will use this work when I try to create a v2 policy while on IAM v1.
Currently, I get this confusing error if I try to create a v2 policy while on v1.
root@a2-local-inplace-upgrade-acceptance:~# curl -kH "api-token: $TOK" -d '{"id":"team-view-pol", "name":"team viewer", "members":["user:local:coolbean"], "statements": [{"role": "team-viewer"}]}' "$TARGET_HOST/apis/iam/v2beta/policies?pretty"
{
  "error": "project not found: ~~ALL-PROJECTS~~",
  "message": "project not found: ~~ALL-PROJECTS~~",
  "code": 3,
  "details": [
  ]
}

Definition of Done
In the above case, the user should get an error that makes it clear they can only create v2 policies while on IAM v2 or v2.1.
Demo Script / Repro Steps

on v1, try the curl above. get informative error
upgrade to v2 or v2.1, try the curl again. success!

closing because we are moving away from v1

authors: bcmdarroch susanev

repo: chef/automate


text:
Knife cookbook list as json doesn't really list as json

$ knife cookbook list -f json
[
  "7-zip                  1.0.2",
  "apt                    2.4.0",
  "ark                    0.9.0",
  "aws                    2.5.0"
]

Seems like knife raw cookbooks does return nicely details json per @danielsdeleo https://twitter.com/kallistec/status/568088807238549504.
But would make is easier to parse cookbooks via json if it rendered the value better.

Yep, this needs to omit the fancy text formatting when the user asks for json/yaml/etc

What do we want the expected response to look like?  Currently, here are is what -Fjson looks like for knife cookbook list with other options:
> knife cookbook list -f json --with-uri
{
  "test": {
    "0.1.0": "https://api.opscode.com/organizations/steve-ocs/cookbooks/test/0.1.0"
  },
  "chef-client": {
    "2.2.2": "https://api.opscode.com/organizations/steve-ocs/cookbooks/chef-client/2.2.2"
  },
[...SNIP...]

> knife cookbook list -f json --with-uri -a
{
  "test": {
    "0.1.0": "https://api.opscode.com/organizations/steve-ocs/cookbooks/test/0.1.0"
  },
  "chef-client": {
    "2.2.2": "https://api.opscode.com/organizations/steve-ocs/cookbooks/chef-client/2.2.2",
    "2.0.2": "https://api.opscode.com/organizations/steve-ocs/cookbooks/chef-client/2.0.2"
  },
...[SNIP]...

I think to match some of the other commands, this might make sense (not real output):
> knife cookbook list -f json
{
  "test": [ "0.1.0" ],
  "chef-client": ["2.2.2", "2.0.2"],
...[SNIP]...
}

It feels a bit odd to me that knife cookbook list -fjson and knife raw /cookbooks would still give different results if we went with the above format, but it would be a bit more in line with what the other list commands provide.

authors: danielsdeleo petecheslock stevendanna

repo: chef/chef


text:
Update GitHub Actions to address deprecated actions in workflows

Description
This addresses deprecated aspects of the GitHub Actions that the chef repo uses.

Upgrade GitHub Actions checkout from v2 to v3

This switches the action to Node.js 16 from Node.js 12 which went out of support April 2022. This will remove the warning messages in GitHub Action runs :

Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16

Upgrade GitHub Action download-file-action

This upgrades the download-file-action from v1.0.3 to v2.0.0. This switches the action to Node.js 16 from Node.js 12 which went out of support April 2022. It also addresses issues with the old core.setOutput method used int download-file-action. This will remove the warning messages in GitHub Action runs :

Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16
The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Replace deprecated cspell-action with streetsidesoftware/cspell-action

The cspell-action GitHub Actions spell checker from zwaldowski has been deprecated. This replaces it with the streetsidesoftware GitHub Action

Related Issue

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] All commits have been signed-off for the Developer Certificate of Origin.

@gene1wood Gene, thanks so much for sorting this out.

@johnmccrae I just realized that use of this new spellcheck GitHub action changes the behavior slightly and I want to make sure it's what's desired
With the deprecated GitHub action, all files in the repo were spell checked in every PR, regardless of whether they were changed
https://github.com/zwaldowski/cspell-action#inputs
With the replacement GitHub action, only the files that are changed in the PR are spell checked.
https://github.com/streetsidesoftware/cspell-action#usage
This seems desirable to me in that there's no need to re-spell check everything that's already in the repo, just the new changes from the PR.
But if you'd prefer to re-spellcheck everything every time, let me know and I can PR a change so that the new spellcheck GitHub action behaves like the old one in that regard


text:
Resource guard change

this fixes #2683

Looks right to me too. And would be great if we can add a test case for the problematic scenario.

Closing this, changes and test will be committed as part of https://github.com/chef/chef/pull/2746

authors: justanshulsharma sersut tyler-ball


text:
add nillable apt_repository and nillable properties

in Chef-13 nillable will become 'true' by default and we'll have
to deprecate and remove all nillable properties, but for now
this lets us opt-in, which was can't currently do in Chef-12.

@chef/client-core fixes apt_repository resource's distribution property to be nillable, and lets us opt-in to Chef-13 nillable behavior in properties.
i did not go down the route of making explicit nils in validations act like nillable because of the subtleties in handling explicit and implicit nils where making implicit nils nillable by default is something we can't do.  so adding an option was done because it'll make everyone's head less explode-ey and intent becomes abundantly clear...

I thought the opt-in was declaring nil as a valid value for the property? Or was that in one of the patches that got reverted somewhere along the line.

yeah but we did all that stuff with the implicit nils being added to the validation, and i think that made the logic very confusing so it got dropped.
it definitely does not currently work that way, and this patch is vastly simpler than trying to implement that logic and getting the implicit-vs-explicit nil validation behavior correct (and then explaining it to everyone).

Fair, no objection as long as we don't end up with two systems :)

Nope, pretty sure in Chef-13 that whole nasty if block in properties just gets deleted and we drop "nilllable: true" off of this property and any others it gets added to, and then have properties spit out a deprecation warning for people who set "nillable: true" that its now the default and is a no-op and will go away.  The end result should ultimately be clean, and I think the road ahead is halfway sane to reason about...

Only other thought is that any non-boolean property that is nilable should also support false because it makes life easier sometimes.

@coderanger that look okay?  i made other things nillable (and falseable) as well.
if not, i can move the coercsions privately into some pseudo-delegators on the provider...

:ship: :shipit: :ship:

authors: coderanger lamont-granquist


text:
[MSYS-812]: Enable expeditor

Signed-off-by: NAshwini ashwini.nehate@msystechnologies.com

@btm , @Vasu1105 , Please review PR so I can test config files by expenditor commands.

Thank you @tduffield and @rhass  I have updated the files as per review comments.

If you manually modify the VERSION file, the built_in:bump_version step will assume that you have manually set the version to be what you want it to be, and will no-op. This can cause a problem if the version (in this case 0.18.0 already exists). So you have two options:

Manually change the version to something like 0.19.0
Create and apply one of the skip labels (e.g. Expeditor: Skip All) to ensure that no Expeditor actions take place

Ok @tduffield, after merging this PR will go with 2nd option of the skip labels (e.g. Expeditor: Skip All).
Thank you.

@NAshwini you'll need to apply the label to this PR, otherwise you'll run into an error.

authors: NAshwini tduffield


text:
MSYS-832 - Added feature that end use can configure STDER/STDOUT size

Description
Provide option that user can configure the max_body_size in push-jobs-client.rb. Default max_body_size is 63000, also user can provide options as --max-body-size at runtime.
Signed-off-by: piyushawasthi piyush.awasthi@msystechnologies.com

There should not be a problem, but it would be useful to see that an adhoc build for the client passes with these changes. You can add the link for the build in the description if you already have one.

Thanks for review @PrajaktaPurohit, actually @rhass want some changes in push-jobs-server side after that, I'll verify this PR and create adhoc build for the same.

@PrajaktaPurohit - Updated PR as per your review comment please have a look and let us know your thought about that.

@piyushawasthi You need to rebase so that expeditor will be happy.

Hi @markan , I have re-factor validate_params code also as per your suggestion we don't need to show more than one message to the client. Now validate_params decides if it's too large, we drop the output, and send the message. I think it's best approach to fix that issue please let me know your thought.

@markan Could you give this another look when you get a moment? Thanks!

@markan : All set just a small help will you please check the error message and let me know if you need any changes into that.

expeditor failure has been fixed in master already. branch isn't in chef so I can't force push a rebase.

authors: PrajaktaPurohit btm piyushawasthi rhass

repo: chef/opscode-pushy-client


text:
add image support

early support in image-support branch. v48 on gpus. seems to be a quite nice model so far. R=347, global condition=class,
top row: observed 392 px
bottom row: generated 392px

top row: observed 200 px
bottom row: generated 584 px

top row: observed 1 px
bottom row: generated 783 px

top row: observed 200 px
bottom row: generated 584 px

version 56 seems to generalize as well with fewer params

v58 used for presentation

merged into main

repo: cheind/autoregressive


text:
Is this working ?

Thanks for using Soft U2F. I'm sorry that you've encountered a bug.
System information
To aide in debugging, please provide the output from running the following commands:
What browser are you using?
FIDO U2F only works natively using Chrome and Opera. Browser extensions enabling U2F are available for Safari and Firefox.
sw_vers
This tells us the version of macOS you are running. Soft U2F only works on macOS Sierra (10.12) and newer.
file /Library/Extensions/softu2f.kext /Applications/SoftU2F.app ~/Library/LaunchAgents/com.github.SoftU2F.plist
This confirms that the various components of Soft U2F were successfully installed.
kextstat -b com.github.SoftU2FDriver
This confirms that the Soft U2F driver is loaded.
ps aux | grep SoftU2F.app
This confirms that the Soft U2F app is running.
grep SoftU2F -a20 -b20 /var/log/install.log | sort -g | uniq | tail -n200
This grabs logs from your installation of Soft U2F. Other system details are included in this log file and the command attempts to filter the file down to details that might be relevant to Soft U2F. Still, you might want to verify that no information is included in these results that you aren't comfortable sharing.

Hi @dannynash were you able to emulate secruity key on ios device ?


text:
Warning: exports: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.

Warning: exports: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
Can we get this fixed please? Thanks.

This problem is solved on the version >=1.6.0 which uses peer dependencies of react version >=15.5.0.
try to use npm install --save react-json-pretty@1.6.1 to install the newest version.
Any additional issues are welcome, thanks.

authors: MartinDawson chenckang

repo: chenckang/react-json-pretty


text:
🛑 Homepage is down

In fc345b9, Homepage (https://larrychen.tech) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Homepage is back up in 1002518.

repo: chendachao/uptime


text:
关于同时使用友盟错误统计的问题

我在使用你这个方法防止崩溃的同时，是不是友盟错误统计就统计不到错误崩溃信息了，以便于我下个版本进行更改

你好
https://www.jianshu.com/p/2b90aa96c0a0

authors: chenfanfang zhugongyuan

repo: chenfanfang/AvoidCrash


text:
🛑 tt is down

In 1ad31c8, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 5915 ms

Resolved: tt is back up in 9cd2a65 after 10 minutes.

repo: chenhaonanniubi/upptime


text:
🛑 tt is down

In 7bddda0, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3279 ms

Resolved: tt is back up in 5b9d12e after 23 minutes.


text:
🛑 tt is down

In c560dd4, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3367 ms

Resolved: tt is back up in 9734f40 after 10 minutes.


text:
🛑 tt is down

In 1c89a8a, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3093 ms

Resolved: tt is back up in 2ebe467 after 10 minutes.


text:
🛑 tt is down

In 55c9a5e, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 2556 ms

Resolved: tt is back up in ba6a992 after 23 minutes.


text:
RuntimeError

Hello,
Thanks for sharing the code of your interesting work IC-STN.
I am now using Pytorch version. However, I meet runtime error as below:
Expected a Tensor of type Variable but found an undefined Tensor at position #2 for iterable argument #0 'tensors'
It seems there is an operation that includes tensor which should be defined as Variable.
Any comments?
Thanks.

Could you please include a more detailed error message, specifically where the error happened? Thanks!

repo: chenhsuanlin/inverse-compositional-STN


text:
convert heading comments to markdown

pull #comments out of cells into markdown to improve scannability

Also add in explanatory narrative, headers, easy-to-read text about what the code is doing. Tutorial style.


text:
页面引用数量错误

随便点击一个点，弹出详情页面，页面中的引用数量是有问题的，第一次点没问题，关掉详情后，再点击其他点，引用数量显示的还是上一个点的引用数量，再点开相同的点，引用数量才会正确。

已修复

authors: FireworksBear chennlang

repo: chennlang/js-analyzer


text:
Bug using fig.savefig

Hi,
First, thx a lot for your amazing lib.
There's a mismatch between the image that is displayed with plt.show() and the image generated with fig.savefig() (and also with the image that you get by clicking Save the figure in plt.show window :
I don't know if you understand why?
Regards,
N. M.
PLT SHOW SCREENSHOT :

PLT "SAVE THE FIGURE"

(see the top right texts for example)
PLT SAVEFIG

Thanks for this bug report. I guess this may be caused by the incorrect update when the draw event happens. When I'm free, I'll try to fix this bug.

Hi, @NicolasMICAUX , an update is uploaded, and the bug should be solved. Please check it. If any problems, please leave a comment.

BTW, treemap has a little change. The wrap parameter is renamed to reflow for not introducing confusion, since matplotlib.text.Text has the wrap parameter

authors: NicolasMICAUX chenyulue

repo: chenyulue/matplotlib-extra


text:
🛑 Chequeado is down

In ecfe6b1, Chequeado (https://chequeado.com) was down:

HTTP code: 502
Response time: 9044 ms

Resolved: Chequeado is back up in 802a8a2.

repo: chequeado/status


text:
🛑 Chequeo Colectivo is down

In 8e06f6c, Chequeo Colectivo (https://chequeado.com/colectivo) was down:

HTTP code: 502
Response time: 13762 ms

Resolved: Chequeo Colectivo is back up in 72d4637.


text:
CSS formatting to include aesthetic for neighbourhood.

Cheryl has provided some great little shelf graphics
Chris wants to have a background of a neighbourhood with a friendly person to person exchange over a fence or hedge.

Overall styles have been updated to reflect the original graphics. A top nav was added to keep a login link and branding on all screens.

authors: cherah-petra rethissunstar

repo: cherah-petra/NeighbourhoodLibrary


text:
modified: create_env.md

把沒寫的東西補上

Reviewed.


text:
adding data&ai

few additions to the data realm

Seems there are many changes related to just CR/LF handling :-). LGTM

authors: chgeuer yodobrin

repo: chgeuer/azure-isv-cookbook


text:
Connecting to wallet

Always the same. Connecting to wallet...

@pintonava change username & password property value in .chia/bluepool/config/config.yaml

authors: pintonava takeruadelbert

repo: chiabluepool/bluepool


text:
Some improvement proposals

Get rid of previousData prop. If I got it right, this prop is used to highlight changed data. To me this behaviour looks too specific - I guess user should be able to apply style himself if he needs to.

Better theming. I've added getLabelStyle etc. methods some time ago, but I'm not happy about them :) I like the approach I used in redux-devtools-insopector more, which is based upon react-themeable solution with an extension for base16 theming:

if theme is an object with baseNN keys, it is treated as base16 theme and is used with default styles;
if theme has string values, they're considered classnames;
if values are objects, they're considered styles.

If there's a necessity, we can also allow functions as values (to provide type and expanded parameters in out case), though I'm not 100% sure about that.
The signature would be like this then:
createStyling(theme: Object, createDefaultStyles: Function, key: String, ...args) -> { style: { ... }, className: '...' }

// which can be splitted, if we use currying:

const styling = createStyling(theme, createDefaultStyles);

return (

);

What do you think? @gaearon @chibicode

@alexkuz

Get rid of previousData prop. If I got it right, this prop is used to highlight changed data. To me this behaviour looks too specific - I guess user should be able to apply style himself if he needs to.

Right, and this prop has been around since the very first version written by the original author. I agree that it's too specific:
https://github.com/chibicode/react-json-tree/blob/0d3132fc54f3e5679a0ae6da7f7c12c7113bdfeb/src/JSONValueNode.js#L33-L39
I'm wondering if valueRenderer be re-purposed for this for those who need to highlight changed data.

Better theming. I've added getLabelStyle etc. methods some time ago, but I'm not happy about them :) I like the approach I used in redux-devtools-insopector more, which is based upon react-themeable solution with an extension for base16 theming

I took a brief look at this file and this file on redux-devtools-inspector and it sounds like a good idea.

@alexkuz One last note - I've stopped using react-json-tree within the app I'm building (my app used to have a JSON viewer, but I got rid of it - tho my app still uses redux-devtools) and I haven't been able to spend much time maintaining this repo. Since your redux-devtools-inspector seems like one of the core use cases of react-json-tree, if you don't mind, I'd be happy to transfer the ownership of this repo to you. I'd still would be happy to help - I've been wanting to write enzyme tests when I get time.

Since your redux-devtools-inspector seems like one of the core use cases of react-json-tree, if you don't mind, I'd be happy to transfer the ownership of this repo to you.

That sounds reasonable, I'm ok with that :) Thank you!

@alexkuz thank YOU! Could you delete your fork? Then I'll be able to transfer it to you

Done!

@alexkuz requested!

@chibicode I'm not sure how it works. Do I need to accept it somewhere?

Ah, nevermind, it's in the mail.

authors: alexkuz chibicode

repo: chibicode/react-json-tree


text:
Update docs: "shortcut" directive is now "hotkey"

Attribute directive is called hotkey, and seems like it always was:
https://github.com/chieffancypants/angular-hotkeys/commit/26bc820b82fb4ef745d2f08d34d589056923bc03#diff-98c348bbc0c97d641aec4cc1ffb07e1cR278

Wow, wonder how that lasted so long.  Thanks, and sorry for the delay

authors: chieffancypants paulftw

repo: chieffancypants/angular-hotkeys


text:
Angular loading-bar not working on top of uibModal dialog.

angular-loading-bar v0.9.0
AngularJS v1.5.0

Is it just a z-index thing?

I tried setting z-index higher value for progress bar, but no luck.
On Oct 5, 2016 12:23 AM, "Wes Cruver" notifications@github.com wrote:

Is it just a z-index thing?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chieffancypants/angular-loading-bar/issues/325#issuecomment-251479176,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADSTZkjw-K8fpMzIJlJDLwRptJ5GKaBNks5qwqC_gaJpZM4KBMCk
.

If you are launching the modal outside your Angular app in DOM, the angular-animations won't work.  This happens when your app is bootstrapped in a div and the modal is appended to body.
I'm not sure if this is the case, but maybe worth checking.

authors: baskaranr chieffancypants mtlehtin

repo: chieffancypants/angular-loading-bar


text:
custom property types

What do you think about adding possibility to add custom property types or override defaults
for example my server on a ruby and it convert BigDecimal numbers into string
so i want to cast it back on the client to keep precision.
Or if i want to threat 0 (zero) as false for boolean fields

724875dea11cb9a968cc256e505735bb66a871e3


text:
Earlgrey: prim_esc_sender.sv doesn't work in Verilator

Parsing prim_esc_sender.sv file fails in Verilator:
%Error: ../src/lowrisc_ip_aes_0.6/rtl/aes_sel_buf_chk.sv:38:5: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_lc_sync_0.1/rtl/prim_lc_sync.sv:50:7: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_ip_otp_ctrl_0.1/rtl/otp_ctrl_part_buf.sv:625:5: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_ip_otp_ctrl_0.1/rtl/otp_ctrl_part_unbuf.sv:348:5: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_esc_sender.sv:48:3: Cannot find file containing module: 'prim_diff_decode'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_esc_sender.sv:78:3: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_esc_sender.sv:82:3: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_sender.sv:74:3: Cannot find file containing module: 'prim_diff_decode'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_sender.sv:90:3: Cannot find file containing module: 'prim_diff_decode'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_sender.sv:250:3: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_sender.sv:254:3: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_receiver.sv:61:3: Cannot find file containing module: 'prim_diff_decode'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_receiver.sv:93:3: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_receiver.sv:97:3: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_receiver.sv:101:3: Cannot find file containing module: 'prim_buf'
%Error: ../src/lowrisc_prim_all_0.1/rtl/prim_alert_receiver.sv:105:3: Cannot find file containing module: 'prim_buf'
%Error: Exiting due to 16 error(s)

This file requires prim_flop_2sync.sv (see #249) to be parsed (through prim_diff_decode.sv), it should be revisited then.

Individual test passes (https://github.com/antmicro/verilator/pull/142), but needs to be parsed together with following files:

lowrisc_prim_abstract_prim_pkg_0.1/prim_pkg.sv
lowrisc_prim_all_0.1/rtl/prim_esc_pkg.sv
lowrisc_prim_all_0.1/rtl/prim_esc_sender.sv
lowrisc_prim_diff_decode_0/rtl/prim_diff_decode.sv
lowrisc_prim_abstract_flop_2sync_0/prim_flop_2sync.sv
lowrisc_prim_generic_flop_2sync_0/rtl/prim_generic_flop_2sync.sv
lowrisc_prim_abstract_flop_0/prim_flop.sv
lowrisc_prim_generic_buf_0/rtl/prim_generic_buf.sv
lowrisc_prim_abstract_buf_0/prim_buf.sv

Already removed from the lists.

authors: RRozak rkapuscik

repo: chipsalliance/UHDM-integration-tests


text:
Test suite bringup with respect to design memory implementation

Our design has been updated with ROM memory dimension as [63:0] mem [6144]  end address is 'h17FF whereas in caliptra, imem - [7:0] ram [6144] [7:0]  end address 'hBFFF because of the modification is the memory implementation preload of image is not successful as the dma address reads are out of range. - How can we handle this to enable the stand alone C based test suite.

while generating hex image using RISCV tool chain how the AT can be handled for the modifications with respect to our memory implementations.

Discussed in Caliptra WG..closing it

authors: bharatpillilli dayanajayaraman

repo: chipsalliance/caliptra-rtl


text:
Cannot use --target-dir in runMain

Type of issue: bug report | documentation
If the current behavior is a bug, please provide the steps to reproduce the problem:

Generate a chisel project via chisel-template
Add these lines to GCD.scalaobject VerilogGCD extends App {
  (new chisel3.stage.ChiselStage).emitVerilog(new GCD())
}

exec sbt "runMain gcd.VerilogGCD -- target-dir ./verilog in the root of workspace

What is the current behavior?
GCD.v GCD.fir GCD.anno.json are generated in the root of workspace
exec sbt "runMain gcd.VerilogGCD --help show no help information, but elaborate design.
What is the expected behavior?
GCD.v GCD.fir GCD.anno.json are generated in {workspace_root}/verilog
In the doc:

You can see additional options with
bash> sbt 'runMain intro.HelloWorld --help'

This will return a comprehensive usage line with available options.
For example to place the output in a directory name buildstuff use
bash> sbt 'runMain intro.HelloWorld --target-dir buildstuff --top-name HelloWorld'

Please tell us about your environment:

version: chisel3 3.4.3, scala 2.12.13, sbt 1.5.5 (I didn't change build.sbt provided in chisel-template)
OS: Ubuntu 20.04 in Win 10 wsl 2, x86_64

I wonder how to generate verilog into the target directory

I find a way by pass Array("--target-dir", "verilog") to emitVerilog(Module, Args)
https://github.com/schoeberl/chisel-examples/blob/1c064bc1dbcd5e4fbc75447830f18a8fd9394cf9/src/main/scala/uart/Uart.scala#L210
But this seems very annoying : (


text:
Always pass -xc++: Tell the compiler the language to compile

Bazel just invokes the compiler (gcc or clang) in its basic form and expects it to figure out if the language is C or C++.
Make sure it always is told that it is C++; not all compiler installatins are set-up to auto-detect (looking at you, clang-installation-on-NixOS...).
Works around
Issue https://github.com/NixOS/nixpkgs/issues/216047
Issue https://github.com/NixOS/nixpkgs/issues/150655

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (99d1aa7) 92.91% compared to head (5972d79) 92.91%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2104   +/-   ##
=======================================
  Coverage   92.91%   92.91%
=======================================
  Files         358      358
  Lines       26572    26572
=======================================
  Hits        24689    24689
  Misses       1883     1883

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter hzeller

repo: chipsalliance/verible


text:
Contact Page UI needs to be improved and made responsive as well.

Contact Page and Forms UI needs to be improved.
Internal CSS needs to be applied.
The Page should be made responsive.

okay bhaiya......I will do this.

okay bhaiya......I will do this.

#64

repo: chiraag-kakar/sharenlearn


text:
Passing finishTransaction as callback argument?

Instead of calling finishTransaction immediately, would it be possible to pass it as an argument to the callback function and only call it when all other processing is done?
- (void)paymentQueue:(SKPaymentQueue *)queue
 updatedTransactions:(NSArray *)transactions
{
    for (SKPaymentTransaction *transaction in transactions) {
        switch (transaction.transactionState) {
            case SKPaymentTransactionStateFailed: {
                NSString *key = RCTKeyForInstance(transaction.payment.productIdentifier);
                RCTResponseSenderBlock callback = _callbacks[key];
                if (callback) {
                    callback(@[RCTJSErrorFromNSError(transaction.error)]);
                    [_callbacks removeObjectForKey:key];
                } else {
                    RCTLogWarn(@"No callback registered for transaction with state failed.");
                }
                [[SKPaymentQueue defaultQueue] finishTransaction:transaction];
                break;
            }
            case SKPaymentTransactionStatePurchased: {
                NSString *key = RCTKeyForInstance(transaction.payment.productIdentifier);
                RCTResponseSenderBlock callback = _callbacks[key];
                if (callback) {
                    NSDictionary *purchase = @{
                                              @"transactionDate": @(transaction.transactionDate.timeIntervalSince1970 * 1000),
                                              @"transactionIdentifier": transaction.transactionIdentifier,
                                              @"productIdentifier": transaction.payment.productIdentifier,
                                              @"transactionReceipt": [[transaction transactionReceipt] base64EncodedStringWithOptions:0]
                                              };
                    callback(@[[NSNull null], purchase]);
                    [_callbacks removeObjectForKey:key];
                } else {
                    RCTLogWarn(@"No callback registered for transaction with state purchased.");
                }
                [[SKPaymentQueue defaultQueue] finishTransaction:transaction];
                break;
            }
            case SKPaymentTransactionStateRestored:
                [[SKPaymentQueue defaultQueue] finishTransaction:transaction];
                break;
            case SKPaymentTransactionStatePurchasing:
                NSLog(@"purchasing");
                break;
            case SKPaymentTransactionStateDeferred:
                NSLog(@"deferred");
                break;
            default:
                break;
        }
    }
}

Can you explain your usecase better? What do you mean by other processing?

@chirag04 When using consumable IAP items you need to make sure the items are properly processed at your server before you charge your user in the app, the common way to do this seems to be by not calling finishTransaction until you've gotten a positive response from your server.

Hmm. Can you not make a call to your server api before calling purchase product?

@chirag04 Then you would not be able to validate the receipt and anyone could get free stuff. This would be the way to go about it:

Start the purchase product and get receipt
Send receipt to server for validation and adding bought items to the database
After successful response from server, call finishTransaction to complete the purchase

Ok. That’s ideal. What do you propose we change here?

I was thinking it would be great to use the same concept as PushNotificationIOS. There you have to "confirm" your push notification by calling PushNotificationIOS.finish() when you're done processing the notification.
Would it be possible to keep a reference to the current transaction being processed and instead of calling [[SKPaymentQueue defaultQueue] finishTransaction:transaction];  immediately in case SKPaymentTransactionStatePurchased, you would call InAppUtils.completePurchase(); when you're done?
Something like this in Objective-C:
RCT_EXPORT_METHOD(completePurchase)
{
     [[SKPaymentQueue defaultQueue] finishTransaction:currentPurchaseTransaction];
}

And then you could use it like this in JavaScript:
           InAppUtils.purchaseProduct(productIdentifier, (error, response) => {
             if (error) {
             // handle error with no completePurchase() being called
             }
              if(response && response.productIdentifier) {
              // confirming and validating receipt with server
              confirmPurchaseWithServer(response, function(err, confirmed) {
                if (err) {
                 // handle error with no completePurchase() being called
                 }
                 if (confirmed) {
                  InAppUtils.completePurchase();
                  }
               })
              }
           });

I tried implementing this myself but I'm not well-driven in writing Native Modules.

we cannot do [[SKPaymentQueue defaultQueue] finishTransaction:currentPurchaseTransaction]; because there can be multiple transactions going on and there are going to be race conditions.
we can store all transactions and refer to each of them using transactionId.
Also, i don't want to make a breaking change here because not everyone is using this flow.
We can add something like purchaseConsumableProduct that takes the productId and will not call finish transaction. you will have to manually call finishTransaction from JS with the transactionId to finish that transaction.
I won't be able to work on it but happy to accept a PR.

@chirag04  I understand. Could you then please explain why the callback in case SKPaymentTransactionStatePurchased: { is not being called when I remove [[SKPaymentQueue defaultQueue] finishTransaction:transaction];? This would help get me going.

i see it's removed using [_callbacks removeObjectForKey:key];. you can manually remove it using removeObjectForKey

Yes but I want it to be called, I don't want to remove it. So why is it not being called when I only remove [[SKPaymentQueue defaultQueue] finishTransaction:transaction]; from the block? It is a little counter-intuitive.

@staklau check you logs if you have a warning No callback registered for transaction with state purchased

@chirag04 No that's not it. The whole SKPaymentTransactionStatePurchased: { block of code is not fired when I remove the finishTransaction.

that's really weird. i'm not sure what's going on here.

@chirag04 I suspect the problem with finishTransaction not always firing has something to do with the order the callback and finishTransaction are being called, but I'm not sure. Anyhow, because I couldn't figure out how to call finishTransaction outside the SKPaymentTransactionStatePurchased-block, I decided to just put the request to my server directly in the objective-c code before calling finishTransaction in the block.

This is very relevant for me. I have used cordova-plugin-purchase before and they implement this behaviour by forcing the developer to call a finish()-method on the purchase before the purchase is cleared off the payment queue.
It looks like this:
store.when("extra chapter").approved(function(product) {
    // download the feature
    app.downloadExtraChapter().then(function() {
        product.finish();
    });
});

To elaborate I have an app where users can update their subscription status by performing an in-app purchase. Sometimes an error occurs on the server, and their subscription state has not been updated, but the transaction was processed. This leads to them trying again and be charged twice (I've even had reports of triple purchases).
The correct flow would be:

Perform the transaction, adding to payment queue,
Update server-side, if error try again
Only on succesful server update finish transaction and remove from payment queue

It the app is closed between any of the steps, the library should try to finish any transactions in the payment queue on app start, as described In app purchase best practices.
I really hope to see this feature implemented one way or the other. Perhaps the Cordova plugin's implementation could be consulted.

authors: Jacse chirag04 staklau


text:
Difficulty creating a ManagedClient with certificate authentication

Describe your question
I'm having difficulty understanding the documentation (sorry!). I have butchered some code together from various issues raised by others and appear to have the connection working. However, if this is the case it's seem to be repeatedly retrying every 5 seconds as it keep writing the certificate
issuer and subject to the console:
Console output:
Certificate--> issuer: CN=Amazon, OU=Server CA 1B, O=Amazon, C=US subject: CN=*.iot.eu-west-1.amazonaws.com
Certificate--> issuer: CN=Amazon, OU=Server CA 1B, O=Amazon, C=US subject: CN=*.iot.eu-west-1.amazonaws.com
...
...
...

Which project is your question related to?

Client
ManagedClient

I am attempting to connect to AWS IoT Core. I have a functional MQTT client using M2Mqtt .NET 4.6 but am trying to rewrite the service using a more modern and up-to-date library. Fortunately this old, yet functional client has confirmed my certificates, IoT Endpoint and IoT Core policy are all okay.
Can someone please help me in the right direction? I believe I'm close but can't seem to get the X509 client authentication right. There is no password on the client authentication certificate and I am required to use TLS1.2 for AWS.
I would like to establish and maintain a connection to both publish and subscribe to IoT core.
static async Task Main(string[] args)
{
    string ClientId = Guid.NewGuid().ToString();
    var CaCert = new X509Certificate(_CaCert);
    var ClientCert = new X509Certificate2(_ClientCert);

    var options = new ManagedMqttClientOptionsBuilder()
        .WithAutoReconnectDelay(TimeSpan.FromSeconds(30))
        .WithClientOptions(new MqttClientOptionsBuilder()
            .WithClientId(ClientId)
            .WithTcpServer(_IoTEndpoint, 8883)
            .WithKeepAlivePeriod(TimeSpan.FromSeconds(40))
            .WithTls(new MqttClientOptionsBuilderTlsParameters()
            {
                UseTls = true,
                AllowUntrustedCertificates = true,
                Certificates = new[] { ClientCert.Export(X509ContentType.Cert), CaCert.Export(X509ContentType.Pfx) },
                IgnoreCertificateChainErrors = true,
                IgnoreCertificateRevocationErrors = true,
                SslProtocol = SslProtocols.Tls12,
                CertificateValidationCallback = (X509Certificate x, X509Chain y, SslPolicyErrors z, IMqttClientOptions o) =>
                {
                    Console.WriteLine("Certificate--> issuer: " + x.Issuer + " subject: " + x.Subject);
                    return true;
                }
            })
            .WithCleanSession()
            .WithProtocolVersion(MqttProtocolVersion.V311)
            .Build()
        ).Build();

    var mqttClient = new MqttFactory().CreateManagedMqttClient();
    mqttClient.ConnectingFailedHandler = new ConnectingFailedHandlerDelegate((ManagedProcessFailedEventArgs err) => {
        Console.WriteLine("Error connecting to broker");
        Console.WriteLine(err.Exception.Message);
    });
}

Thank you!

Withdrawn, thanks!


text:
defaultHour not working with 24h

Setting defaultHour does not work properly when mode is set to 24h format.
changing self.time_24hr to self.config.time_24hr in line 676 fixes that issue:
used version:
flatpickr v3.0.6

Changing self.time_24hr to self.config.time_24hr fixes https://github.com/chmln/flatpickr/issues/1007 aswell
flatpickr v3.0.7

Fixed in the TS branch, due to land soon.
https://github.com/chmln/flatpickr/pull/1016

I know this issue has been closed but I still have the problem with the version 4.4.4 or 4.3.2

authors: Doff3n aguidis chmln rihal

repo: chmln/flatpickr


text:
RFP - Ardour

Checklist

[X] The package I am requesting does not already exist on https://chocolatey.org/packages;
[X] There is no open issue for this package;
[X] The issue title starts 'RFP - ';
[/] The download URL is public and not locked behind a paywall / login;

Package Details
Software project URL : https://ardour.org/
Direct download URL for the software / installer : https://community.ardour.org/download
Software summary / short description: Ardour is a hard disk recorder and digital audio workstation application that runs on Linux, macOS, FreeBSD and Microsoft Windows.
Package Expectations
Unfortunately no Windows Setup / Installer is available officially for free afaik.

If there is no official version available l available to download for free, do you have a vision of how it would be packaged?

The source code is available. I was hoping it could be built and hosted "somewhere".

yes please add this package

authors: SpaceAgeHero maliknajjar pauby


text:
RFP - Display Changer

Checklist

[x ] The package I am requesting does not already exist on https://chocolatey.org/packages;
[x ] There is no open issue for this package;
[ x] The issue title starts 'RFP - ';
[x ] The download URL is public and not locked behind a paywall / login;

Package Details
Software project URL : https://12noon.com/?page_id=80
Direct download URL for the software / installer : https://12noon.com/files/dc-setup.exe
Software summary / short description:
Display Changer changes your monitor’s resolution.
Display Changer runs your application.
Display Changer restores the original resolution.

@Ohrwerk When adding the x between the [] please don't leave a space. It should look like [x] but ends up looking like [x ]. Thank you.

Status: Review
https://chocolatey.org/packages/display-changer

authors: Ohrwerk chtof pauby


text:
(GH-86) avoid using stale version of chocolateyinstall env var

in a case where chocolatey was recently installed but the shell
was not refreshed, the exec within could be run with a stale
path (ie C:\chocolatey) if a migration to C:\ProgramData\chocolatey
had recently occured.
In this scenario, a folder structure will be improperly created
in the legacy path.
This patch ensures that the exec uses the puppet specified value
for the install location.

@ferventcoder this can be merged pending harness completion.

Creating an issue if you don't mind. Or attach it to the other one about stale locations.

#86.

:ship:

authors: ferventcoder rismoney

repo: chocolatey/puppet-chocolatey


text:
Investigate why DGL 1.1 breaks our weight comparisons for constructing GAT model

Investigate why DGL 1.1 breaks our weight comparisons for constructing GAT model

it seems like this issue is caused by this commit. I'll need to rework how the GAT model is built based on their new bias assignment in the GATConv class

authors: hmacdope kaminow

repo: choderalab/asapdiscovery


text:
Add MultiPose Processing for Ligands

Description
Provide a brief description of the PR's purpose here.
Todos
Notable points that this PR has either accomplished or will accomplish.

[ ] Point 1 ...

Questions

[ ] Question 1 ..

Status

[ ] Ready to go

Developers certificate of origin

[ ] I certify that this contribution is covered by the MIT license as defined in our LICENSE and adheres to the Developer Certificate of Origin.

Codecov Report

Merging #692 (fcaf8dd) into main (fb6251a) will decrease coverage by 20.36%.
The diff coverage is n/a.

Additional details and impacted files

I actually think we might not need a new loading function. I think if we just add the ifs.SetConfTest line to our current load_openeye_sdf function, and replace all the OEGraphMol with just OEMol, everything should actually work right. this should obviously be tested first though since I'm just basing all this off the OE docs

Yeah I think you're right in terms of the OE functionality, but in case anything weird happens I wanted to keep separate at first instead of breaking old things

fair enough. in that case I think just duplicate everything we have but as multi-conformer versions (all the functions converting between SDF/OEMol/Ligand) and maybe also create a MultiConformerLigand schema or something

@apayne97 what was the use case of this again?

We'd like to have a mechanism to check if the problems with docking are a failure to pose the molecule correctly or a failure to score the docked poses well. I'm running an experiment to keep 50 docked poses for every ligand + protein pair. Currently   this isn't handled well by our ligand schema (I'm going to add some tests to show how exactly)

@hmacdope @kaminow is it possible to have an overloaded version of from_sdf that will detect if there are multiple poses and then return a Ligand | MultiConformerLigand depending on if there are multiple poses?

the way I can think to do it would be to have a from_sdf function somewhere that doesn't belong to a specific class, that would dispatch the correct from_sdf class-based function. this feels a bit weird to me though and I'm not sure where the right place for that function would be. another options is to just have one Ligand class that assumes multiple conformations but that works identically with one conformation if that makes sense. the final option I guess is to just trust the user to use the right class for their use-case

@hmacdope @kaminow is it possible to have an overloaded version of from_sdf that will detect if there are multiple poses and then return a Ligand | MultiConformerLigand depending on if there are multiple poses?

Yeah for sure you can just do this as a classmethod, its a bit non-idiomatic but I think its warranted here.
@classmethod
def from_sdf(cls):
   ...
   if  not is_multiconf:
       return cls(**args)
   else:
        return MultiConformer(**args)

@hmacdope any objections to this option?

another options is to just have one Ligand class that assumes multiple conformations but that works identically with one conformation if that makes sense.

@hmacdope any objections to this option?

another options is to just have one Ligand class that assumes multiple conformations but that works identically with one conformation if that makes sense.

I am just a little tentative to this as single pose-ligand has been the paradigm we have been working with for a while. I totally agree that we need multi-confomer support, but I am just a bit worried we will break something.
Is there a way to reverse this and think about single confomer ligand as the base case and multiple as being supported as well? Not so much a code change as a way to think about it.
I guess if you can demonstrate that everything works as expected there is no problem really. Just thinking out loud here. What do you think @jthorton?

Is there a way to reverse this and think about single confomer ligand as the base case and multiple as being supported as well? Not so much a code change as a way to think about it.

I agree that I'm also worried about breaking things - my goal is to keep the single-pose behavior as "first class" citizen within our schema, but bc openeye treats them differently I need to be a little clever in handling that

this will take some rewriting I think, but my view is that it makes more sense to (internally at least) treat every Ligand object as if it has multiple conformers. we can still expose methods like Ligand.to_oemol(), but that method will be something like return self.to_oemols()[0] or something like that.
this way, if you are working with single-conformer ligands, your experience won't change at all, but we'll still be able to naturally support multi-conformer ligands at the same time. I just feel like there's a clear path for assumed multi-conf -> single-conf, where as assuming a single-conf when you actually need a multi-conf will involve some panicking

Ok, I think I agree. I'm not sure what to do about the ligand tags though. Right now we are in the habit of generating sdf files where tags like "Docking_posit_hybrid_clash_Chemgauss4" can be different for each conformer. This makes me think that we should split tags into "has to be the same for all conformers" and "can be different for each conformer". And then I think we should make it so that those different tags can be easily accessible (and maybe even add a function to sort or pull out the conformer by a certain value). Here's some mock code:
$ lig = Ligand.from_sdf("multiconf.sdf"
$ lig.num_confs
50
$ lig.tags
['SMILES', 'Dataset', 'Compound_ID', 'Docking_posit_hybrid_clash_RMSD', 'Docking_posit_hybrid_clash_POSIT', 'Docking_posit_hybrid_clash_POSIT_method', 'Docking_posit_hybrid_clash_Chemgauss4', 'Docking_posit_hybrid_clash_clash']

@apayne97 this is looking great so far, I think the to_rdkit function needs to be updated and tested to ensure it supports converting to multi-conformer molecules. Are you also planning on adding the sort conformers function in this PR?

@hmacdope @jthorton this is ready for another review! thanks!

@apayne97 I would be willing to just go ahead here and kick the tag discussion down the road along with #949. You have done an excellent job here to keep backwards compatibility here without breaking anything, and you have probably suffered enough with this PR I think. Shall we discuss tommorow.

@apayne97 I would be willing to just go ahead here and kick the tag discussion down the road along with https://github.com/choderalab/asapdiscovery/issues/949. You have done an excellent job here to keep backwards compatibility here without breaking anything, and you have probably suffered enough with this PR I think. Shall we discuss tommorow.

Yes, let's discuss at dev sync! I would certainly appreciate moving on lol

Just running some quick integration tests now @apayne97

Project support workflows seem to be working fine, but there is an alchemy test failure blocking, any ideas @jthorton

Ping me here if resolved @apayne97 @jthorton

@hmacdope we're good to go!

@hmacdope we're good to go!

Congrats and thanks for all your hard work.

authors: apayne97 codecov-commenter hmacdope jthorton kaminow


text:
Incorporate automatic equilibration detection module

A manuscript describing the automatic equilibration detection procedure is now available:
http://dx.doi.org/10.1101/021659
We should cite this in the code and README.md.
I have written a separate equilibration module that also implements several good schemes for computing statistical inefficiency.  We may want to incorporate this module.

Should we just eliminate the equiilbration stuff in pymbar, and call the
equilibration module in the examples?  I think that would be best to
separate the functionality.
On Thu, Aug 13, 2015 at 9:41 PM, John Chodera notifications@github.com
wrote:

A manuscript describing the automatic equilibration detection procedure is
now available:
http://dx.doi.org/10.1101/021659
We should cite this in the code and README.md.
I have written a separate equilibration
https://github.com/choderalab/automatic-equilibration-detection/blob/master/examples/liquid-argon-density/equilibration.py
module that also implements several good schemes for computing statistical
inefficiency. We may want to incorporate this module.
—
Reply to this email directly or view it on GitHub
https://github.com/choderalab/pymbar/issues/207.

Would you want to separate the whole timeseries module?  Currently, it has facilities for detecting the equilibrated region and decorrelating the data, which are totally interrelated operations.

We had originally included these with pymbar because we can only operate on decorrelated, equilibrium data, and thought we needed to provide tools to ensure that they could easily extract uncorrelated equilibrium data.  Both equilibration detection and decorrelation tools are necessary to do that.

I wonder if it would be better to eventually separate both equilibration detection and decorrelation to allow those modules to expand and develop, and more easily allow their use in other contexts. Obviously, all of the pymbar examples would use the tools, so we promote good use by using them in all of the examples.

Logically, it doesn't sense to split them up: You need equilibrated data in order to decorrelate, so you need to use both schemes to prep your data for pymbar.
Operationally, they could be split up, but because they both use autocorrelation analysis tools, we would need to make three separate packages to remove cyclic dependencies:

autocorrelation analysis
equilibration detection
subsampling

Currently, there is duplication of the autocorrelation analysis code, with more options being offered in the equilibration detection version, which is undesirable.

authors: jchodera mrshirts

repo: choderalab/pymbar