text:
Changing mode from code view to non-code view adds extra linebreak

Jodit Version:  3.4.6
This didn't happen with 3.3.24
Steps to reproduce on Jodit playground:

Place cursor at the end of the text. (after verbis.)
Change mode to enter code view.
Change mode again to enter non-code  (here you'll see the problem)
If you enter code view, the code is of the problem is there

Expected behavior:
Changing mode from code view to regular view should not change anything unless the code itself changes.
Actual behavior:
If you go from code view to regular view, it adds a

 and if you keep toggling change mode, it, it'll keep adding them.

I found something that may help you with the issue
I noticed that on Jodit.prototype.setCurrentPlace = function (place) {
the 'place' object being passed in switches from having an .element having no paragraph node, to having the
\n
 one a blank one from the 1st to 2nd pass, so somewhere there it might be getting tripped up; e.g. if this.currentPlace === place is supposed to return out, it may not be.
Thanks for any help.

You can disable this behavior https://xdsoft.net/jodit/play.html?disablePlugins=wraptextnodes&currentTab=Plugins

Thanks for that; I didn't know about that particular plugin or realized the intent of its design. Unfortunately in my use-case that won't be an option, because I would like the
 tags to appear if they're valid and missing, e.g. if you ctrl+a->delete-> type Hello World you get that literally, and
Hello World!
, is necessary, so the wrapping plugin is very useful.
I think there's might be a few issues anyways with the plugin enabled unless I'm still misunderstanding the intent.
With the plugin enabled, if you go to the Jodit playground and click on elements that aren't wrapped by a
, then keep clicking "Change Mode" over and over, then look at the result after a few times, you'll notice that sometimes it just writes an extra

 nowhere near the element you have selected, so it's not actually wrapping anything.  I guess it detects that it's already inside of a different tag (valid) and goes to the end instead. That seems like it might work for one use of that function, e.g if you double click an area or something to create a paragraph, but if you're only changing modes, it just feels like a bug.
Usually the extraneous paragraphs end up at the bottom, but sometimes it's at the top, if it's the starting position is 0. You can simply go into the playground, click "Change Mode" and then change back and see it's changing a node that starts with a  into something else.
Here is a video of both of the concerns I have. https://thumbs.gfycat.com/FirstShockingBaboon-mobile.mp4

Thanks for working on it; it has gotten better. But the problem I think still remains:
https://xdsoft.net/jodit/ doesn't have the issue. If you load page, click in and out of code view 10 times, nothing is added
https://xdsoft.net/jodit/play.html does have the issue. If you load the page click and out of code view 10 times, it adds a ton of random paragraphs at the end.
If I'm wrong about how this is supposed to work, please close the issue again, but it seems like it's still got a bug.
Thanks!

authors: notsigma xdan

repo: xdan/jodit


text:
[Bug] Unknown model class "xlm-roberta", attempting to construct from base class.

Describe the bug
A clear and concise description of what the bug is.
Unknown model class "xlm-roberta", attempting to construct from base class.
Malformed class definition. [class PreTrainedModel extends Callable]
Error: Unable to load model: Xenova/multilingual-e5-base. Please report this bug at https://github.com/xenova/transformers.js/issues/new/choose.
at Function.from_pretrained (file:///home/vasile/dev/experiments/transformers/node_modules/@xenova/transformers/src/models.js:657:19)
at Function.from_pretrained (file:///home/vasile/dev/experiments/transformers/node_modules/@xenova/transformers/src/models.js:2451:42)

 const extractor = await pipeline(
    "feature-extraction",
    "Xenova/multilingual-e5-base",
    { revision: "main" }
  );
  const result = await extractor("This is a simple test.", {
    pooling: "mean",
    normalize: true,
  });
  console.log(result);

Thanks for the report! Will get this fixed :)

This functionality has now been added 👍 (https://github.com/xenova/transformers.js/commit/9a51c998f083888e17c326217808b4ea4f1f7b6a)
const extractor = await pipeline(
    "feature-extraction",
    "Xenova/multilingual-e5-base",
    { revision: "main" }
);
const result = await extractor("This is a simple test.", {
    pooling: "mean",
    normalize: true,
});
console.log(result);
// Tensor {
//     data: Float32Array(768) [0.016873687505722046, 0.029895609244704247, ...],
//     dims: [1, 768],
//     size: 768,
//     type: "float32",
// }

Now available in v2.3.1 (https://www.npmjs.com/package/@xenova/transformers) 👍

any chance to get the large one quantized?
it is only recently uploaded, see https://huggingface.co/intfloat/multilingual-e5-large

Done 👍 (I also added the small one)

https://huggingface.co/Xenova/multilingual-e5-large
https://huggingface.co/Xenova/multilingual-e5-small

Note that since the large model is >2GB, you'll have to use the quantized version for now (which may result in poorer performance). There's also a "medium" version: https://huggingface.co/Xenova/multilingual-e5-base you can test out.

There's also a "medium" version: https://huggingface.co/Xenova/multilingual-e5-base you can test out.
with this one I got the bug :)

tested the large one - works fine,
for Xenova/multilingual-e5-small I got
Error: An error occurred during model execution: "Missing the following inputs: token_type_ids.

tested the large one - works fine, for Xenova/multilingual-e5-small I got
Error: An error occurred during model execution: "Missing the following inputs: token_type_ids.

Hmm, looks like - for some reason - the author is mixing tokenizers and models. As seen in the config file:
{
  "architectures": [
    "BertModel"
  ],
  "tokenizer_class": "XLMRobertaTokenizer",
}

So, just as a workaround for now, you can override the call function of the tokenizer to add token type ids like this:
const extractor = await pipeline(
    "feature-extraction",
    "Xenova/multilingual-e5-small",
    { revision: "main" }
);

extractor.tokenizer.prepare_model_inputs = (model_inputs) => {
    const token_type_ids = model_inputs.attention_mask.clone();
    token_type_ids.data.fill(0n);
    return {...model_inputs, token_type_ids};
};
const result = await extractor("This is a simple test.", {
    pooling: "mean",
    normalize: true,
});
console.log(result);
// Tensor {
//   data: Float32Array(384) [0.019251275807619095, 0.008903810754418373, -0.05832963064312935, ...]
//   dims: [1, 384],
//   size: 384,
//   type: "float32"
// }

the workaround doesn't work, I am getting NaNs for embeddings
but also the quality as described in the card is much lower than the base one compared to base to large
e.g. first line on their evaluation "accuracy on MTEB AmazonCounterfactualClassification (en)"
73.791(small) - 78.970(base) - 79.060(large)
the diff between base and large is really small, but small one is loosing constantly ~5points on every test
so I would expect the avg in the leaderboard to decrease by about 5 points for the small one compared to base
https://huggingface.co/spaces/mteb/leaderboard

The reduction in accuracy is most likely because you're using the quantized versions of the models. Do the following to construct the unquantized versions:
let pipe = await pipeline("task", "model", { quantized: false });

As for the NaNs, can you 1) make sure you're on the latest version (2.3.1) and 2) send the sample code which causes the error.

source: gharchive/issue

authors: vasileermicioi xenova

license_type: permissive

license_source: github-api


text:
[docs] Automatically generate documentation from JSDoc

Making a draft PR for comments and suggestions!

Currently the output looks like:

I dislike the dot syntax in the so called "type application": Promise.<Array.<unknown>>
Should we just remove the dots (they are applied in both jsdoc and catharsis package)?
And then about the output... right now it's just one big file, does it need to be many smaller files? I couldn't find an option for that, probably that would require some API scripting.

I dislike the dot syntax in the so called "type application": Promise.<Array.>
Should we just remove the dots (they are applied in both jsdoc and catharsis package)?

Agreed. Not too sure why they do that. Apparently it's an older syntax. That sounds like the easiest solution, yeah.

And then about the output... right now it's just one big file, does it need to be many smaller files? I couldn't find an option for that, probably that would require some API scripting.

I was looking at this yesterday, and I also couldn't find a way to do it from the CLI. Do you think we should do it on a file basis or a class basis? I'm trying to make it similar to [huggingface.js' docs](huggingface.js' docs), which splits each class into a separate file.

Do you think we should do it on a file basis or a class basis? I'm trying to make it similar to huggingface.js' docs, which splits each class into a separate file.

Hm, many projects already assume that one file = one class, but I guess you want to keep them all in one huge file?
Per-class-separation sounds better to me too.
Also worked out the PR that at least catharsis is not adding its strange syntax: https://github.com/xenova/catharsis/pull/1

but I guess you want to keep them all in one huge file?

For the most part, I'd actually prefer it to be separated... especially for the really large files. What about something like this:
docs/

index.md
_toctree.yml
file1.js/

classes/

class1.md
class2.md
///

functions/

...

file2.js/
...

For the most part, I'd actually prefer it to be separated... especially for the really large files. What about something like this:
docs/

index.md
_toctree.yml
file1.js/

classes/

class1.md
class2.md
///

functions/

...

file2.js/
...

Not too sure if "functions"/"classes" are the way to break it up more though.

I personally prefer that approach as well. Keeping this library's docs consistent with the HF docs will be better for the Dev experience overall.

A lot is going on here, should I wait for this to be merged before putting more time on #91 ?

A lot is going on here, should I wait for this to be merged before putting more time on #91 ?

Haha 😅 ... yeah this PR is getting quite big 😬
It will probably be best to wait, otherwise there will be a ton of conflicts :') I'm hoping I can get everything done, and then merged this weekend.

A lot is going on here, should I wait for this to be merged before putting more time on #91 ?

You can continue from this branch. All that needs to be done is get it working in the browser :) For some reason, I'm unable to import the script from a Worker (of type module).
I'll continue working on it tomorrow though.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

source: gharchive/pull-request

authors: HuggingFaceDocBuilderDev kungfooman takoyaro xenova


text:
Question to the example picture "With provided image"

Sup @xguitoux how did you manage to get Last completed: 5 days ago like in your example picture?

Did you change the js or am I missing an option in your configuration to do so?

Hello @Pr0mises, the last completed attribute is already present in the code, just use this : last_completed (that said Bosh interface has to provide it yet, I'm not able to test atm)

repo: xguitoux/lovelace-bosch-indego-card

license: MIT


text:
Switch to using nanoJson

This parser claims to adhere exactly to the spec and it's passed every test case I've thrown at it so far.

Nice -- thanks for digging so deep on this one.

Great - agreed excellent improvement, thank you!
(Note I fixed up the changelog - it's easy in these merges for the change to end up under the previous release version - and also updated Toolbox to put it back to hoist-core 7.0-SNAPSHOT so we can get the new behavior in use.)

authors: amcclain lbwexler peterjcoffman

repo: xh/hoist-core


text:
关于API使用的问题

获取章节目录，章节内容
例如按照您的例子：http://novel.juhe.im/author-books?author=忘语
得到一本书的bookid是567d2cb9ee0e56bc713cb2c0
当我获取章节目录：http://novel.juhe.im/book-chapters/567d2cb9ee0e56bc713cb2c0
返回是{"code":-1,"message":"Request failed with status code 404"}
以上都是在浏览器中，获取章节目录同理。
请问这是什么原因呢？

实在太抱歉了...我搞混了，没看懂你的介绍

获取书籍id
通过id获取书源
选取书源通过书源id获取章节目录
通过目录里的章节id获取章节内容

应该是服务器出了问题吧，早上还能用的，现在复制你的接口直接打开都没反应了

@gdrpAPeng 服务器被墙了 晚点我看看

@xiadd 你好，追书神器 api 有点问题了，
http://chapter2.zhuishushenqi.com/chapter/http://book.my716.com/getBooks.aspx?method=content&bookId=47492&chapterFile=%E7%AC%AC115%E5%9B%9E%20%E6%83%91%E5%81%8F%E7%A7%81%E6%83%9C%E6%98%A5%E7%9F%A2%E7%B4%A0%E5%BF%97%20%E8%AF%81%E5%90%8C%E7%B1%BB%E5%AE%9D%E7%8E%89%E5%A4%B1%E7%9B%B8%E7%9F%A5115.txt&chinese

{
    "ok": false,
    "message": "{\"ok\":false,\"code\":\"Status code Error 404\"}"
}

authors: Hzzone gdrpAPeng xiadd

repo: xiadd/zhuishushenqi


text:
如何修改每页里 内容的数量

比如看到
首页 显示 15个内容
post 页面，一页显示 15个内容
某tag， 一页显示 15个内容
以上这些内容，我需要知道在哪里可以修改？ 根据用户需求做定制

首页数量找到了
config.toml paginate = 15
修改即可，tag 怎么修改昵？

@luckrill
1.可以参考该项目中的 exampleSite/full-config.toml 目录下的文件配置
2.如下这个是我的 config 的配置
[params]
since = "2020"            # Site creation time          # 站点建立时间
homeFullContent = false   # if false, show post summaries on home page. Otherwise show full content.
rssFullContent = true     # if false, Rss feed instead of the summary
archive-paginate = 300    # 归档、标签、分类每页显示的文章数目，建议修改为一个较大的值

know

know

authors: luckrill midFang

repo: xianmin/hugo-theme-jane


text:
Work around ARMV8 build-time cpu detection problems on non-Linux systems

expected to fix #2804

Confirmed, fixes #2804

thx, merging

authors: fxcoudert martin-frbg

repo: xianyi/OpenBLAS

license_source: bigquery


text:
如果在viewmodel配合rxjava，该如何使用

看了demo，viewmodel是使用livedata的，但是个人觉得livedata远没有rxjava强大。如果在viewmodel使用rxjava，那么该如何实现类似livedata那样的动态更新数据？

LiveData 是类似观察者模式的，可以在 View 层接收到数据变化的通知来刷新 UI。
RxJava 的话，就类似 MVP 中使用的方式了，需要手动调 View 层接口。

意思是说还需要在viewmodel持有view接口的实例，然后通过回调来通知view更新？如果是这样的话就和MVP没啥区别了，也没有意义了

其实业务逻辑可以用 RxJava，UI 数据用 LiveData 就可以了


text:
添加 md2rst 脚本到 dev 分支

创建的 pr没法修改了，只能重新建一个

本书的12章第2节有如何用cmake构建Sphinx的内容。如果没有看，可以看一下，看看是否对你生成Sphinx文档的过程是否有帮助。我还是希望尽可能使用cmake。

authors: cathaysia xiaoweiChen

repo: xiaoweiChen/CMake-Cookbook


text:
chore(build): getPackageSize 的 folder 修改为动态从 vite 配置中获取

当 vite.config.ts 的打包路径 build.outDir 不是默认值 dist 时, getPackageSize 方法会出错

nice ❤


text:
🛑 Xibo Player License Service is down

In 0dbb149, Xibo Player License Service ($PLAYER_LICENSE_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Xibo Player License Service is back up in b2e0bcf.

repo: xibosignage/status-page


text:
chore: update event-source-polyfill locally

...in order to get rid of the issue:
fixture-hops:warning ./node_modules/event-source-polyfill/src/eventsource.js 94:6-62
Critical dependency: the request of a dependency is an expression

Bors merge bot cheat sheet
We are using bors-ng to automate merging of our pull requests. The following table provides a summary of commands that are available to reviewers (members of this repository with push access) and delegates (in case of bors delegate+ or bors delegate=[list]).

Syntax
Description

bors merge
Run the test suite and push to master if it passes. Short for "reviewed: looks good."

bors merge-
Cancel an r+, r=, merge, or merge=

bors try
Run the test suite without pushing to master.

bors try-
Cancel a try

bors delegate+
Allow the pull request author to merge their changes.

bors delegate=[list]
Allow the listed users to r+ this pull request's changes.

bors retry
Run the previous command a second time.

This is a short collection of opinionated commands. For a full list of the commands read the bors reference.

bors merge

repo: xing/hops

license: mit


text:
What should src_seq_length be to get the exact results from paper?

In the paper, you've mentioned that the number of training data is 70484. But when I run the preprocessing, the number of pairs decreases because some of them have length more than 100. So the results that you reported on the paper are from the whole dataset or when you limit the source length to 100? Thanks

it's been several months, but yes, I think the length of the input sentence is limited to 100.

repo: xinyadu/nqg


text:
Weaving issues about ninja

Ninja can cast 2 actions in a gcd.  of course, one of them must have a faster attack animation, like jugulate, bhavacakra or smoke screen, etc.

Double weaving is extremely ping-dependent and is usually only reliable if your ping is in the 25-30 range (or lower). If your ping is sufficiently low that you can double weave comfortably, you can ignore the weaving suggestion, but for the average user I'd prefer to keep the recommendation at single weaving. I suppose it might be worth adding a small disclaimer to the module, but I'd prefer not to make logic changes, especially not this close to the huge combat overhaul anyway. If ease of double weaving changes in ShB, I'll definitely revisit this.

Double weaving is extremely ping-dependent and is usually only reliable if your ping is in the 25-30 range (or lower). If your ping is sufficiently low that you can double weave comfortably, you can ignore the weaving suggestion, but for the average user I'd prefer to keep the recommendation at single weaving. I suppose it might be worth adding a small disclaimer to the module, but I'd prefer not to make logic changes, especially not this close to the huge combat overhaul anyway. If ease of double weaving changes in ShB, I'll definitely revisit this.

Thank you very much for your reply. Got it.

authors: Toastdeib fishjump

repo: xivanalysis/xivanalysis


text:
Use BiSeNetV2 on GPU instead CPU

Hi,
Thank you for your implementation. I used your weights in order to test them on my data.
I saw that your script run on CPU and I want to use my GPU. How can I change it to GPU in your script?
I have NVIDIA Titan RTX.
Thank you

@SaharGezer
Have you tried
https://github.com/xmba15/rail_marking/blob/master/scripts/segmentation/test_one_image.py
or
https://github.com/xmba15/rail_marking/blob/master/scripts/segmentation/test_video.py
with current implementation, the default inference machine would be gpu as you can see in here
maybe you should check if gpu is recognized correctly with
torch.cuda.is_available()

@SaharGezer
Have you tried
https://github.com/xmba15/rail_marking/blob/master/scripts/segmentation/test_one_image.py
or
https://github.com/xmba15/rail_marking/blob/master/scripts/segmentation/test_video.py
with current implementation, the default inference machine would be gpu as you can see in here
maybe you should check if gpu is recognized correctly with
torch.cuda.is_available()

I am using your script and checked that it recognizes the gpu, but when I saw the graphs of the cpu and gpu and I realized that the cpu worked hard instead of the gpu.
In addition the FPS is not high as I expect

Can I first clarify one thing first?
the situation is the gpu is used (check with nvidia-smi for example) but at the same time, cpu consumption is also high?
or only cpu is used while gpu is not used at all?

Can I clarify one thing first?
the situation is the gpu is used (check with nvidia-smi for example) but at the same time, cpu consumption is also high?
or only cpu is used while gpu is not used at all?

HI,
this is the situation:
"the situation is the gpu is used (check with nvidia-smi for example) but at the same time, cpu consumption is also high"
I want to speed up the inference.

One more question, If I want to train the net on my own data, I want to tag and segment my images, How can I do that?
Can you tall me with which tool did you make segmentation on images?
Thanks

Hi,I have the same question , "the GPU-util is 15%,but cpu consumption is almost 100%, the FPS is 13"when I run test_video.py on my 2080 Ti.
how can I speed up the inference?
Thanks.

Hi,I have the same question , "the GPU-util is 15%,but cpu consumption is almost 100%, the FPS is 13"when I run test_video.py on my 2080 Ti.
how can I speed up the inference?
Thanks.

Did you solve this problem?

authors: PGeawen SaharGezer xmba15


text:
(unify) Use SPDX for copyright and reuse.

Copyright header update
Replace the full apache header at the top of each file with this:
// SPDX-FileCopyrightText: {{DATE}} Comcast Cable Communications Management, LLC
// SPDX-License-Identifier: Apache-2.0

Replacing {{DATE}} with the copyright date in the file.
For all go files that are not generated and are missing this header add it.
Reuse preparation
Install: reuse
Create a directory named .reuse.
Add the file .reuse/deb5 with contents based on this:
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: {{REPO}}
Upstream-Contact: {{MAINTAINER}}
Source: https://github.com/xmidt-org/{{REPO}}

Files: .golangci.yml
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: go.mod
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: go.sum
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: .gitignore
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: MAINTAINERS.md
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: README.md
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: .whitesource
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

You may need to add/change files that cannot have copyright headers later.
Installing licenses
Run:
reuse download Apache-2.0

Checking the repo is compliant
Run:
reuse lint

you should see something similar to this:
# SUMMARY

* Bad licenses:
* Deprecated licenses:
* Licenses without file extension:
* Missing licenses:
* Unused licenses:
* Used licenses: Apache-2.0
* Read errors: 0
* Files with copyright information: 14 / 14
* Files with license information: 14 / 14

Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)

If not, fix the issues.
Enable copyright checking in the action
In .github.workflows/ci.yml remove the line copyright-skip: true.

Addressed by https://github.com/xmidt-org/httpaux/pull/87

authors: johnabass schmidtw

repo: xmidt-org/httpaux


text:
feat: contact bundle with ProtoWrapper From trait

Overview
Issue: https://github.com/xmtp/proto/issues/81
Rebuild of #88 - this time with ProtoWrapper which allows us to implement From traits for conversion in the vmac_protos.rs module (happy to rename)
NOTE: I think the wasm bindings situation is currently borked. bindings_js and bindings_wasm are one cohesive operation and don't seem to build while separated (npm test in bindings_js complains about lack of Cargo.toml). I'll look into this next.
GRPC crate feature notes, copied from #88
Notably - tonic does not build for wasm, so I needed to gate tonic behind a feature "grpc" inside xmtp-proto. xmtp-networking then relies on that feature. FYI @neekolas so that doesn't catch you by surprise.

Tests

Unit tests in xmtp core crate pass
Fix and run bindings_js tests by adding buf to the Github action

FYI @neekolas - this provides a paradigm (one of many, probably better ones) that allows us to convert between Vodozemac types and protos. Feel free to open a PR against xmtp/proto#xmtpv3 with a completely redesigned Account proto message!

@jazzz - the wrapper situation could definitely use your thoughts. I couldn't implement From directly between Vodozemac types and protos, because both live outside the crate (Rust orphan rules). I thought of this wrapper approach but there's almost certainly a better way.

Will ship for now to get the bindings fix (need to install buf) and the grpc feature flag situation in main. Very happy to revisit or completely rework the proto wrapper logic, for now it acts as a working placeholder for further protobuf-based development.

repo: xmtp/libxmtp


text:
🛑 Design Swan is down

In 468e049, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 116 ms

Resolved: Design Swan is back up in f994d87.

repo: xoryorz/upptime


text:
🛑 Design Swan is down

In 11885c9, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 87 ms

Resolved: Design Swan is back up in ce6d319 after 12 minutes.


text:
🛑 Design Swan is down

In fb81f93, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 127 ms

Resolved: Design Swan is back up in 8e61e1c after 20 minutes.


text:
Remove licence

Includes removal of licence preamble in source files and the LICENCE definition file.
Note. We retain copyright inherently. See https://www.gov.uk/copyright
So regardless of the statement copyright (c) 2019 bob and dave, the authors Bob and Dave would retain copyright. The Apache licence we used included the copyright statement in the source preamble and in removing it, we haven't lost that right. Copyright is legally unrelated to licensing (terms).

Cool. I checked out the Berne Convention too and lots of countries are party to it.
Without the license would it be clear to people whether they can reuse and modify the work (without attribution)?

Not sure. No? We need to make it clear but this isn’t just about attribution.
The more I think about it, the more we need a license imo. CC-BY-SA OR CC-BY to protect us as much as attribution. I think this is non negotiable as the OSS community would attest to (having given birth to these types of licenses).
If any employer has an issue with this, it’s going to be blocker in my view. So glad we’re looking at options and #7 is reopened. This PR is half the story as Apache was prob inappropriate or at least a unilateral decision on my part and we should get consensus about what to do next.

Yeah, I was mentioning attribution as I was imagining your average Joe looking at it, and wondering whether they could reuse it, and if so whether they'd have to attribute. Without a license they may not know, so may make honest mistakes.
Clearly we want to cover ourselves for dishonest usage too, and also cover ourselves against warranty, etc, so I agree we need to land on one.
I think for this kind of material, share-alike is legit, no? Or do we want to allow people to build on it and redistribute for profit?

I feel like CC is the best choice then just agree on how restrictive.
I like the hardline approach or not allowing anyone to profit commercially for it (including ourselves).

Does CC achieve that? CC-BY-SA permits commercial use.

I'm cancelling this PR as after discussion, there doesn't seem to be a reason to remove the Apache license

authors: lithgow tobyweston

repo: xp-dojo/atdd-bank-account


text:
calculate percentiles

How would I calculate percentiles over a certain dimension?
ds.groupby('time.month').apply(np.percentile, q=5)

Does not work.

ds = xray.tutorial.load_dataset('air_temperature')
percents = ds.groupby('time.month').reduce(np.percentile, q=5)

Producing:
In [80]: percents
Out[80]:
<xray.Dataset>
Dimensions:  (month: 12)
Coordinates:
  * month    (month) int64 1 2 3 4 5 6 7 8 9 10 11 12
Data variables:
    air      (month) float64 239.7 239.3 244.3 251.7 261.4 271.5 274.0 272.5 ...

Adding a dedicated method for calculating percentiles/quantiles would also be a good idea: https://github.com/xray/xray/issues/303

Thanks

authors: clarkfitzg mathause shoyer

repo: xray/xray


text:
Error when training model: "Unsupported operation"

Running this command on a gpu colab notebook:
export CUDA_VISIBLE_DEVICES=0 && python -m code.scripts.cluster.cluster_greyscale_twohead --model_ind 0 --arch ClusterNet6cTwoHead --mode IID --dataset_root /code/utils/cluster/MNIST.py --gt_k 10 --output_k_A 10 --output_k_B 10 --lamb_A 1.0 --lamb_B 1.0 --lr 0.0001 --num_epochs 3200 --batch_sz 10 --num_dataloaders 1 --num_sub_heads 1 --crop_orig --crop_other --tf1_crop centre_half --tf2_crop random --tf1_crop_sz 20 --tf2_crop_szs 16 20 24 --input_sz 24 --rot_val 25 --no_flip --head_B_epochs 2
Gets this error:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/content/code/code/scripts/cluster/cluster_greyscale_twohead.py", line 495, in
train()
File "/content/code/code/scripts/cluster/cluster_greyscale_twohead.py", line 378, in train
avg_loss_batch.backward()
File "/usr/local/lib/python2.7/dist-packages/torch/tensor.py", line 150, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/usr/local/lib/python2.7/dist-packages/torch/autograd/init.py", line 99, in backward
allow_unreachable=True)  # allow_unreachable flag
RuntimeError: unsupported operation: more than one element of the written-to tensor refers to a single memory location. Please clone() the tensor before performing the operation.

What is your torch version?

1.3.0+cu100

The code was written for an earlier version of pytorch: https://github.com/xu-ji/IIC/blob/master/package_versions.txt#L114

@nickpezzotti1 I think fixing the below three lines will resolve this issue.
In code/utils/cluster/IID_losses.py:
-  p_i_j[(p_i_j < EPS).data] = EPS
-  p_j[(p_j < EPS).data] = EPS
-  p_i[(p_i < EPS).data] = EPS
+  p_i_j = torch.where(p_i_j < EPS, torch.ones_like(p_i_j) * EPS, p_i_j)
+  p_j = torch.where(p_j < EPS, torch.ones_like(p_j) * EPS, p_j)
+  p_i = torch.where(p_i < EPS, torch.ones_like(p_i) * EPS, p_i)

You can use .detach() in place of .data in those lines.

authors: mitmul nickpezzotti1 xu-ji

repo: xu-ji/IIC


text:
请问airdrop能用吗？

请问用板载Wi-Fi、蓝牙 airdrop 能用吗？

我在隔空投送中能看到手机，但是发送文件总是收不到，不知道是不是我的操作问题

蓝牙没问题，板载wifi有时候会断，我一直用的网线


text:
how is the ground truth score computed from the judge scores

Hi, I am wondering how the ground truth score is computed from the judge scores.
For example, in the datapoint 'FineDiving/FINDADiving_MTL_2546s/01/74'，the judge scores are [5.0, 6.0, 5.5, 4.5, 4.5, 5.5, 6.0]，while the ground truth score is 57.6. How is this ground truth score computed?
Thank you very much.

Hi, thanks for your interest in our work.
Actually, we utilize the final score as the ground truth score rather than the judge scores.

Got it. Thank you.

authors: Picasso-Wang xujinglin

repo: xujinglin/FineDiving


text:
excel导出分页的全部数据

请填写问题描述 Describe
表格分页之后，导出功能只导出的是当前页的，想能否有一个全部导出的功能。
比如选择全部数据后，对后台发起请求，pagesize设置成totalPage即可？？？
请填写版本号 Version

os: ?
browser: ?
vue: ?
vxe-table: ?

不是可以自定义 data 的吗
https://xuliangzhan_admin.gitee.io/vxe-table/#/table/advanced/export

导出数据这边的确是有，集成的vxe-table-plugin-excel并没有全部导出的功能，如果能和bootstrap table一样就好了

repo: xuliangzhan/vxe-table


text:
Incorrectly generated code for mixed="true" complex types

Description
If a complexType is defined with mixed="true", it should collect the innerXml or CDATA in addition to the tags. The examples in this ticket are generated using the SFCC catalog.xsd which also requires the xml.xsd file from https://salesforcecommercecloud.github.io/b2c-dev-doc/docs/current/xsd/.
Inside of it, the following types are declared:
    <xsd:complexType name="sharedType.CustomAttributes" mixed="false">
        <xsd:sequence>
            <xsd:element name="custom-attribute" type="sharedType.CustomAttribute" minOccurs="0" maxOccurs="unbounded" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="sharedType.CustomAttribute" mixed="true">
        <xsd:sequence>
            <xsd:element name="value" type="simpleType.Generic.String" minOccurs="0" maxOccurs="unbounded" />
        </xsd:sequence>
        <xsd:attribute name="attribute-id" type="simpleType.Generic.NonEmptyString.256" use="required" />
        <xsd:attribute ref="xml:lang" />
    </xsd:complexType>

This generates the following Go code:
// SharedTypeCustomAttributes ...
type SharedTypeCustomAttributes struct {
	XMLName         xml.Name                     `xml:"sharedType.CustomAttributes"`
	Customattribute []*SharedTypeCustomAttribute `xml:"custom-attribute"`
}

// SharedTypeCustomAttribute ...
type SharedTypeCustomAttribute struct {
	XMLName         xml.Name `xml:"sharedType.CustomAttribute"`
	AttributeidAttr string   `xml:"attribute-id,attr"`
	XmlLangAttr     string   `xml:"xml:lang,attr,omitempty"`
	Value           []string `xml:"value"`
}

In most cases from SFCC files, this is presented as <custom-attribute attribute-id="foo">bar</custom-attribute>, and using xgen there's no way to get access to the bare contents of the optional <value/> tag.
Steps to reproduce the issue:

Use the XSD files mentioned above.
Run xgen -i catalog.xsd -l Go -o tmp/catalog

Describe the results you received:
Note that there's no way of getting the inner XML, only Value[].
Describe the results you expected:
A way to get the inner XML in addition to Value[].
Output of go version:
go version go1.22.3 darwin/arm64

xgen version or commit ID:
0.1.0

Environment details (OS, physical, etc.):
macOS 14.5

Note that GoComply/xsd2go generates this correctly. If xgen were to generate this correctly, there would be another issue for xsd:extends where the parent type has mixed="true" and the child type has mixed="false" or unspecified. Specifically, xgen makes the choice to generate the following code for such an entry:
// SharedTypeCustomAttributes ...
type SharedTypeCustomAttributes struct {
	XMLName         xml.Name                     `xml:"sharedType.CustomAttributes"`
	Customattribute []*SharedTypeCustomAttribute `xml:"custom-attribute"`
}

// SharedTypeCustomAttribute ...
type SharedTypeCustomAttribute struct {
	XMLName         xml.Name `xml:"sharedType.CustomAttribute"`
	AttributeidAttr string   `xml:"attribute-id,attr"`
	XmlLangAttr     string   `xml:"xml:lang,attr,omitempty"`
	Value           []string `xml:"value"`
}

// SharedTypeSiteSpecificCustomAttributes ...
type SharedTypeSiteSpecificCustomAttributes struct {
	XMLName         xml.Name                                 `xml:"sharedType.SiteSpecificCustomAttributes"`
	Customattribute []*SharedTypeSiteSpecificCustomAttribute `xml:"custom-attribute"`
}

// SharedTypeSiteSpecificCustomAttribute ...
type SharedTypeSiteSpecificCustomAttribute struct {
	XMLName    xml.Name `xml:"sharedType.SiteSpecificCustomAttribute"`
	SiteidAttr string   `xml:"site-id,attr,omitempty"`
	*SharedTypeCustomAttribute
}

If SharedTypeCustomAttribute gets InnerXml generated, then SharedTypeSiteSpecificCustomAttribute will also implicitly get InnerXml through the embedding. This is something not well defined in the XSD specification, but that discussions from 2005 on the XSD mailing list and 2012 on StackOverflow strongly suggest that the mixed attribute is not inherited. That means that SharedTypeSiteSpecificCustomAttribute would need to be implemented separately and not via embedded inheritance since the mixed attribute differs (or, more specifically, that mixed=false is stricter than mixed=true). (The optimization could be kept if the mixed attributes matched, and I believe that there is a bug in the SFCC impex XSD which I have reported into the SFCC black hole.)

repo: xuri/xgen


text:
🛑 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) is down

In 082b4cb, 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) ($SECRET_SITE_TW) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) is back up in 2f7f578.


text:
ImportError: bad magic number in 'pyzdde.arraytrace': b'\x03\xf3\r\n'

I get this
>>> import pyzdde.arraytrace as at
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: bad magic number in 'pyzdde.arraytrace': b'\x03\xf3\r\n'

The directory content of the arraytrace directory shows pyc files
ArrayDemo.c
arrayTraceClient.c
arrayTraceClient.h
__init__.pyc
raystruct_interface.pyc
Release
x64
zclient.c

(@Stuermer  ?)
And in python 2.7:
>>> import pyzdde.arraytrace as at
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\PROGRAMSANDEXPERIMENTS\PYTHON\OPTICS\PyZDDE\pyzdde\arraytrace\__init__.py", line 3, in <module>
  File "C:\PROGRAMSANDEXPERIMENTS\PYTHON\OPTICS\PyZDDE\pyzdde\arraytrace\raystruct_interface.py", line 74, in <module>
AttributeError: 'module' object has no attribute 'WinDLL'
>>> pyzdde

I don't have window (C:) or folders like PROGRAMSANDEXPERIMENTS\PYTHON\OPTICS

I remember that one - and that I fixed it somehow. Never wrote it down, but it required recompiling the DLL. (I think the issue had to do with 32bit vs 64bit environments).
I've attached the new DLL (no guarantee that it will work for your system though). I'm using python 3.
Try putting it in x64/Release folder. And delete all .pyc files (they will get recreated when needed).
ArrayTrace.zip

Doing so, I get:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/users/zechmeister/.local/lib/python3.9/site-packages/pyzdde/arraytrace.py", line 56, in <module>
    _array_trace_lib = _ct.WinDLL(_dllpath + _dllName)
AttributeError: module 'ctypes' has no attribute 'WinDLL'

Does it only works with window not linux?

Since it requires access to ZEMAX OpticStudio it only works under Windows, yes. (same for the DLL stuff).

authors: Stuermer mzechmeister

repo: xzos/PyZDDE


text:
[BUG]No such file or directory: 'data_voc/VOCdevkit/VOC2007/ImageSets/Segmentation/trainval.txt'

使用了 VOC2007 datasets 缺少 trainval.txt
EPOCH: 100, Loss: 0.04418242536485195
(SAM) (base) everbright@everbright-desktop:~/CodesWorld/Codes/finetune_segment_anything_tutorial$ python3 finetune_sam_voc.py --w weights/sam_vit_b_01ec64.pth --type vit_b --data data_voc/VOCdevkit
Traceback (most recent call last):
  File "/home/everbright/CodesWorld/Codes/finetune_segment_anything_tutorial/finetune_sam_voc.py", line 219, in <module>
    main(opt)
  File "/home/everbright/CodesWorld/Codes/finetune_segment_anything_tutorial/finetune_sam_voc.py", line 30, in main
    dataset = CustomDataset(data_folder, txt_name="trainval.txt")  ##  VOC seg is too small, used val for training
  File "/home/everbright/CodesWorld/Codes/finetune_segment_anything_tutorial/utils/custom_dataset.py", line 12, in __init__
    with open(os.path.join(VOCdevkit_path, f"VOC2007/ImageSets/Segmentation/{txt_name}"), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data_voc/VOCdevkit/VOC2007/ImageSets/Segmentation/trainval.txt'

提供的VOC数据集的百度云盘链接版本貌似不对，官网的试了没问题


text:
增加从table 随机选择n个元素

如果你想提的是编辑器或引擎本身的需求，请移步至 论坛 或者加QQ群：656413818

area  增加环形区域

可以自己根据需求用 y3.util.randomSortTable y3.util.map y3.util.valuesOf 组合一下

authors: sumneko xiaoyaod


text:
Update player.lua

可选修复, GameAPI.get_role_platform_icon 如果收到离线的玩家会导致python报错,所以增加检测玩家状态是否在线才返回

谢谢！

authors: ldoubil sumneko


text:
🛑 Sakura Home is down

In b545177, Sakura Home (https://sakura-bot.net/) was down:

HTTP code: 502
Response time: 3540 ms

Resolved: Sakura Home is back up in ef714d8 after 17 hours, 7 minutes.

repo: yaakiyu/upptime


text:
how to get the JSON payload from a POST?

Question

I can send GET and POST request to the telegram bot, and they are responded and have a 200.
Is it possible for telebot to read this requests and just do a console.log with the contents? Something like:
const TelegramBot = require(''node-telegram-bot-api'');
const bot = new TelegramBot ('xxxxxxxxxXXXXXXXXXXxxxxxxxxxxXXXXXXXXXX');

bot.on(['GET'], (bodyJson) => console.log(bodyJson));

bot.start();

['GET'] is not a valid even to listen for. Hence no.

authors: Bimblis kamikazechaser

repo: yagop/node-telegram-bot-api


text:
Wrap table header text to prevent overlap

Visualization Table header text should wrap
This is on a large screen, on a smaller screen, it would be even worse.

Fixed  #266

repo: yahoo/navi


text:
Query without _id will cause error when list item touched

I have this query
    private static Function<String> authorCase = Function.caseWhen(Author.MIDDLE_NAME.isEmpty(),
            Function.strConcat(Author.NAME, " ", Author.SURNAME),
            Function.strConcat(Author.NAME, " ", Author.MIDDLE_NAME, " ", Author.SURNAME));
    public static  Property.StringProperty AUTHOR = Property.StringProperty.fromFunction(Function.groupConcatDistinct(authorCase), "author");

    private static final Query ALL_BOOK_DETAILS_QUERY;
    static {
        Property.StringProperty category = Property.StringProperty.fromFunction(Function.groupConcatDistinct(Category.NAME), "category");

        ALL_BOOK_DETAILS_QUERY = Query.select(Book.TITLE, Book.ISBN, Book.EAN, Book.YEAR,
                Book.PAGES, Book.EDITION, AUTHOR)
                .from(Book.TABLE)
                .innerJoin(MixAuthorBook.TABLE, MixAuthorBook.FK_BOOK.eq(Book.ID))
                .innerJoin(Author.TABLE, Author.ID.eq(MixAuthorBook.FK_AUTHOR))
                .groupBy(Book.ID);
    }

and when the list is populated with results of this query I have following error when clicked on an item:
07-17 18:40:40.537  13428-13428/com.greladesign.android.exlibris E/InputEventReceiver﹕ Exception dispatching input event.
07-17 18:40:40.537  13428-13428/com.greladesign.android.exlibris E/MessageQueue-JNI﹕ Exception in MessageQueue callback: handleReceiveCallback
07-17 18:40:40.597  13428-13428/com.greladesign.android.exlibris E/MessageQueue-JNI﹕ java.lang.IllegalArgumentException: column '_id' does not exist
            at android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java:308)
            at android.database.CursorWrapper.getColumnIndexOrThrow(CursorWrapper.java:82)
            at com.yahoo.squidb.data.SquidCursor$CursorReadingVisitor.columnIndex(SquidCursor.java:163)
            at com.yahoo.squidb.data.SquidCursor$CursorReadingVisitor.visitLong(SquidCursor.java:127)
            at com.yahoo.squidb.data.SquidCursor$CursorReadingVisitor.visitLong(SquidCursor.java:105)
            at com.yahoo.squidb.sql.Property$LongProperty.accept(Property.java:537)
            at com.yahoo.squidb.data.SquidCursor.get(SquidCursor.java:70)
            at com.yahoo.squidb.utility.SquidCursorAdapter.getItemId(SquidCursorAdapter.java:137)
            at android.widget.AdapterView.getItemIdAtPosition(AdapterView.java:768)
            at android.widget.AdapterView.setSelectedPositionInt(AdapterView.java:1154)
            at android.widget.AbsListView.onTouchEvent(AbsListView.java:3650)
            at android.widget.ListView.onTouchEvent(ListView.java:4027)
            at android.view.View.dispatchTouchEvent(View.java:7198)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2181)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1916)
            at android.widget.AbsListView.dispatchTouchEvent(AbsListView.java:6882)
            at android.widget.ListView.dispatchTouchEvent(ListView.java:4441)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2007)
            at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1461)
            at android.app.Activity.dispatchTouchEvent(Activity.java:2454)
            at android.support.v7.internal.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:59)
            at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1955)
            at android.view.View.dispatchPointerEvent(View.java:7392)
            at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3577)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3506)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4620)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4599)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4695)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:200)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:131)
            at android.os.Looper.loop(Looper.java:132)
            at android.app.ActivityThread.main(ActivityThread.java:5520)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
            at dalvik.system.NativeStart.main(Native Method)
07-17 18:40:40.607  13428-13428/com.greladesign.android.exlibris W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x410fc540)
07-17 18:40:40.617  13428-13428/com.greladesign.android.exlibris E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.IllegalArgumentException: column '_id' does not exist
            at android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java:308)
            at android.database.CursorWrapper.getColumnIndexOrThrow(CursorWrapper.java:82)
            at com.yahoo.squidb.data.SquidCursor$CursorReadingVisitor.columnIndex(SquidCursor.java:163)
            at com.yahoo.squidb.data.SquidCursor$CursorReadingVisitor.visitLong(SquidCursor.java:127)
            at com.yahoo.squidb.data.SquidCursor$CursorReadingVisitor.visitLong(SquidCursor.java:105)
            at com.yahoo.squidb.sql.Property$LongProperty.accept(Property.java:537)
            at com.yahoo.squidb.data.SquidCursor.get(SquidCursor.java:70)
            at com.yahoo.squidb.utility.SquidCursorAdapter.getItemId(SquidCursorAdapter.java:137)
            at android.widget.AdapterView.getItemIdAtPosition(AdapterView.java:768)
            at android.widget.AdapterView.setSelectedPositionInt(AdapterView.java:1154)
            at android.widget.AbsListView.onTouchEvent(AbsListView.java:3650)
            at android.widget.ListView.onTouchEvent(ListView.java:4027)
            at android.view.View.dispatchTouchEvent(View.java:7198)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2181)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1916)
            at android.widget.AbsListView.dispatchTouchEvent(AbsListView.java:6882)
            at android.widget.ListView.dispatchTouchEvent(ListView.java:4441)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2187)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1930)
            at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2007)
            at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1461)
            at android.app.Activity.dispatchTouchEvent(Activity.java:2454)
            at android.support.v7.internal.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:59)
            at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1955)
            at android.view.View.dispatchPointerEvent(View.java:7392)
            at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3577)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3506)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4620)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4599)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4695)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:200)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:131)
            at android.os.Looper.loop(Looper.java:132)
            at android.app.ActivityThread.main(ActivityThread.java:5520)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
            at dalvik.system.NativeStart.main(Native Method)

I have to add the _id to the selected columns to avoid this error
ALL_BOOK_DETAILS_QUERY = Query.select(Book.TITLE, Book.ISBN, Book.EAN, Book.YEAR,

Yes, that is by design. We mimic Android's CursorAdapter, so we need an ID column to implement getItemId(). I suppose you can override getItemId() and just return something like 0 or position, but it's probably easier (and better) to add Book.ID to your query.

Add this info to the WIKI please;)

authors: LukaszGrela jdkoren

repo: yahoo/squidb


text:
Update Column.php: Rename data method to setData

This change renames the data method in the Yajra\DataTables\Html\Column class to setData to resolve a method signature conflict with the parent class Illuminate\Support\Fluent.
public function data(array|string $value): static

This conflicts with the data method in the parent Illuminate\Support\Fluent class, which has the signature:
protected function data($key = null, $default = null)

This results in the following PHP error:
Declaration of Yajra\DataTables\Html\Column::data(array|string $value): static must be compatible with Illuminate\Support\Fluent::data($key = null, $default = null)

Proposed Solution
The data method in the Column class has been renamed to setData to avoid the conflict:
/**
 * Set column data option value.
 *
 * @param  array|string  $value
 * @return $this
 *
 * @see https://datatables.net/reference/option/columns.data
 * @see https://datatables.net/manual/data/orthogonal-data
 */
public function setData(array|string $value): static
{
    $this->attributes['data'] = $value;

    return $this;
}

Benefits of the Fix
1.	Conflict Resolution: Avoids the signature conflict with Illuminate\Support\Fluent.
2.	Clarity: Improves method naming by explicitly reflecting its purpose (setData for setting values).
3.	Backward Compatibility: Allows the Column class to coexist with Fluent without breaking functionality.
Additional Notes
•	Any existing usage of data() to set column data will need to be updated to setData() in the codebase.
•	This change only affects the method used to set column data. The method inherited from Fluent (data($key = null, $default = null)) remains intact for retrieving data.

fixed via https://github.com/yajra/laravel-datatables-html/pull/230, thanks!

authors: bishwajitcadhikary yajra

repo: yajra/laravel-datatables-html


text:
Probleme mit rex_yform_manager_table_api::importTablesets(); #4764

Ich habe eine Installation mit einigen yform Tabellen die ich auf utf8_bin stellen Musste (Es gibt CaseSensitive Duplikate in der Tabelle).
Will ich ein AddOn installieren dass rex_yform_manager_table_api::importTablesets(); nutzt, bekomme ich im Installer folgenden Fehler:
SQL error: Error while executing statement "ALTER TABLE meine_yform_tabelle_die_nichts_mit_dem_addon_zu_tun_hat CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;": SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Mein_Duplicate_Entry' for key 'activity'```
Getestet mit ycom und yrewrite_domain_settings.
Eigentlich sollte dem Addon doch eine "fremde" Tabelle egal sein oder?

Rüdi hat sich das mal angesehen und durch die Anpassungen an den PHP Einstellung etwas Besserung verschafft.
Trotzdem braucht ein Structure Aufruf mit yform immernoch 500ms und ohne yfrom nur 50ms.
Zitat Rüdi. Das müsste man mal mit Gregor zusammen besprechen, grundsätzlich kann es noch an PHP als fpm liegen, das ist das in unserem Setup, was unterschiedlich zu anderen Umgebungen ist, wieso das aber dann nur als Admin auftritt, ist auch wieder strange. Es ist definitiv ein Bug vom yform.

Nach ein paar Tests bin ich zu folgendem Ergebnis gekommen. Immer wenn ein AddOn im Installationsprozess rex_yform_manager_table_api nutzt, werden irgendwie alle yform Tabellen verarbeitet. Im Konkreten Fall habe ich yform Tabellen die auf case sensitive stehen müssen. Dadurch kommt der Fehler. Ich hab sie jetzt aus yform rausgeworfen, damit kann ich wieder installieren, mich würde trotzdemn interessieren warum alle yform Tabellen beackert werden und ob das so gewollt ist.

Es sind 2 Aspekte.

YForm besteht bei tabellen und Feldern auf Kleinschreibung - das müsste man aufbohren
Bei Updates von Feldern, wird der komplette Cache gelöscht, was dazu führt, dass es lange dauert.

Beides wichtige Themen - aber erst in 4.1

das issue geht hier weiter https://github.com/yakamara/redaxo_yform/issues/1286

und hier https://github.com/yakamara/redaxo_yform/issues/1383

authors: dergel marcohanke


text:
Configure auto-merge on a repository

Allow for configuring auto-merge on a repository, it should be under the generic tests.

... ugh, this relies on posting to a form because the REST API doesn't allow for it.

You should be able to update this setting from the Update a repository endpoint. You'll pass that configuration using the allow_auto_merge parameter on the body of that request.

The GitHub Actions bot should be able to merge pull requests if it has write permission on pull requests. If you need to grant write permissions to GitHub Actions workflow through the API, you can do that using the following endpoints(both organizational and repository level):
https://docs.github.com/en/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-an-organization
https://docs.github.com/en/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-a-repository

permissions is getting merged in #260


text:
建议把配置的预处理或者mixin部分增加一下，加个弹窗下载配置也可以。

首先大佬的项目越来越多了，试用了一下提些意见。
另外这个图标是不是可以换一换，有点暴力了。
题外话：win-tun的clash分支，内网 socks 的 udp 收发貌似有问题。 还有公网访问不了内网设备

还有勾选判断，开启了就关不了。

大佬。。你理理我嘛

此项目的目标是实现一个像linux systemd和macOS launchctl plist一样可以在后台运行的服务，并不关心内核配置文件方面的问题，有多个配置文件需要切换时可以把文件名改为config.yaml再重载配置。

首先大佬的项目越来越多了，试用了一下提些意见。 另外这个图标是不是可以换一换，有点暴力了。
题外话：win-tun的clash分支，内网 socks 的 udp 收发貌似有问题。 还有公网访问不了内网设备

关于图标暴力的问题，欢迎提供图标。socks udp无变动

还有勾选判断，开启了就关不了。

哪个开关勾了关不了？安装服务后不要删除、移动或改名SoulService.exe文件，托盘与服务无关，托盘是否运行都不影响服务的运行，你可以用管理员身份运行cmd，然后单独操作SoulService.exe用于安装或开关服务.
例如：
SoulService.exe  -service install
SoulService.exe  -service start
SoulService.exe  -service stop
SoulService.exe  -service uninstall

安装服务后你还可以用系统命令开关服务：
net start Soul
net stop Soul

大佬你好哈，我是你的小迷弟，关于这个工具，是把SoulX附带的程序创建为服务，通过服务唤起核心吧，我看代码貌似是这么运行的。如果不通过调用唤起，那是不是只有把核心做进计划任务了？

还有勾选判断，开启了就关不了。

可能是我核心配置问题，可以忽略。

不过关于s5 upd的问题，应该是内核的s5监听 upd入口寄了

大佬你好哈，我是你的小迷弟，关于这个工具，是把SoulX附带的程序创建为服务，通过服务唤起核心吧，我看代码貌似是这么运行的。如果不通过调用唤起，那是不是只有把核心做进计划任务了？

唤起核心是什么？服务是LocalSystem用户在运行，只要核心没有退出或服务没有手动停止，就算注销Windows登录，服务都还在的啊。

大佬你好哈，我是你的小迷弟，关于这个工具，是把SoulX附带的程序创建为服务，通过服务唤起核心吧，我看代码貌似是这么运行的。如果不通过调用唤起，那是不是只有把核心做进计划任务了？

唤起核心是什么？服务是LocalSystem用户在运行，只要核心没有退出或服务没有手动停止，就算注销Windows登录，服务都还在的啊。

我的意思是，有没有可能，内核自身把自己注册成服务去运行。
SoulService-windows-amd64

应该可以吧

应该可以吧

老大，能要个tg好友位置嘛

应该可以吧

老大，能要个tg好友位置嘛

没兴趣


text:
displayName is not set for the component of "@yamada-ui/autocomplete"

script: component-display-name
package: @yamada-ui/autocomplete
Description
The component "@yamada-ui/autocomplete" uses forwardRef, but displayName is not set, making it difficult to see the display in React Developer Tools.
Additional Information
Set displayName and __ui__ after each component definition.
For example, like this.
const Component = forwardRef((props, ref) => {
  ...
})

Component.displayName = 'Component'
Component.__ui__ = 'Component'

Replace 'component' with the name of the component. For example, for a Select component, it is 'Select'.
__ui__ is an identifier required for internal use by Yamada UI. Be sure to set it together with displayName.

I'll try it.

authors: cidkumagai hirotomoyamada

repo: yamada-ui/yamada-ui


text:
Delete deduplication block ids from ZK when executing DROP PARTITION

Fixes #827

@ztlpn hi,if this will be merged in next stable?

I expect it will be available in next stable release
(you will see it in changelog).
There is also minor chance that the next release will be "bugfix only" - then you will see it in one release after.

authors: alexey-milovidov lppsuixn ztlpn

repo: yandex/ClickHouse


text:
Пустой ответ от graphouse если отстуствуют данные за указанный период

Используем связку graphite-web(1.0.2) + graphouse(1.3) + grafana.
При попытке получить данные по нескольким серверам за определенный промежуток времени, если данных по одному из серверов за это время нет, grafana выдает ошибку:

Graphite encountered an unexpected error while handling your request.

Please contact your site administrator if the problem persists.

Traceback (most recent call last):
  File "/opt/graphite/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "/opt/graphite/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/local/lib/python2.7/site-packages/graphite/render/views.py", line 174, in renderView
    del series[0]
IndexError: list assignment index out of range

При этом, если попытаться получить данные за период, в течении которого данные по всем серверам есть, хотя бы частично то ошибки не возникает. Например, если данные начали появляться сегодня, то график за последние 3 дня ошибки не выдаст. Однако, график за "вчера" построить не удастся.
Если запросить данные из graphouse за период, пересекающийся с периодом когда данные начали поступать в graphouse:
curl  'http://localhost:2005/metricData?metrics=collectd.srv6.nstat-IpOutNoRoutes.gauge&start=1502020061&reqKey=empty&end=1502117769'
Ответ будет следующим:
{"collectd.srv6.nstat-IpOutNoRoutes.gauge":{"start":1502020020,"end":1502117700,"step":60,"points":[null,null,null,null,null,null,null,null,null,null,null,null,null,...,null,null,null,null,null,null,70.0,70.0,...,70.0]}}
Если же уменьшить время в поле end, то graphouse возвращает пустое значение:
curl  'http://localhost:2005/metricData?metrics=collectd.srv6.nstat-IpOutNoRoutes.gauge&start=1502020061&reqKey=empty&end=1502031061' {}
Если график строить в graphite-web, то он перестает отображать графики как только в выборку попадает сервер, данные с которого за весь указанный период отсутствуют.

Fixed

authors: AlexZzz AndreevDm

repo: yandex/graphouse


text:
作者快来更新，解决jar包冲突

x5官方更新了最新的依赖,不再是jar包了,会和你这个库的jar冲突。建议你库里按这个来：api 'com.tencent.tbs.tbssdk:sdk:latest.release'

好的，收到，谢谢

1.3.0版本会更新一下，目前1.2.7版本已经更新到最新jar包呢


text:
🛑 gcr.io Mirror is down

In bc1f93b, gcr.io Mirror (https://gcr.icloudnative.io) was down:

HTTP code: 503
Response time: 1817 ms

Resolved: gcr.io Mirror is back up in 95d8773.

repo: yangchuansheng/upptime


text:
请问我想要更新ffmpeg的版本，应该怎么做

由于某些原因，需要更新ffmpeg的版本，请问需要怎么做呢？

暂时没办法自己更新，等更新新版本吧。

@xiaowu4 已更新FFmpeg至3.3.4版本，更新EpMedia至v0.7.1版本

@yangjie10930 好的，感谢

@yangjie10930
您好，我在编译ffmpeg的时候遇到了很多问题，请教一下。如果您有时间帮我看一下。
我的编译脚本如下：
#!/bin/bash
export TMPDIR=/home/wushuo/dev/ffmpeg/ffmpeg/tmpdir
NDK=/home/wushuo/dev/ndk/android-ndk-r10e
SYSROOT=$NDK/platforms/android-16/arch-arm
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
CPU=arm
PREFIX=/home/wushuo/dev/ffmpeg/ffmpeg/output/$CPU
ADDI_CFLAGS="-marm -I/home/wushuo/dev/ffmpeg/thirdparty/include"
ADDI_LDFLAGS="-L/home/wushuo/dev/ffmpeg/thirdparty/lib -lmp3lame -lfreetype -lx264 -lfribidi"
function build_one
{
./configure
--prefix=$PREFIX
--extra-cflags="$ADDI_CFLAGS"
--extra-ldflags="$ADDI_LDFLAGS"
--enable-cross-compile
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi-
--target-os=android
--arch=armv7-a
--sysroot=$SYSROOT
--enable-shared
--disable-static
--enable-asm
--enable-neon
--enable-jni
--enable-mediacodec
--enable-decoder=h264_mediacodec
--enable-hwaccel=h264_mediacodec
--disable-doc
--disable-ffmpeg
--disable-ffplay
--disable-ffprobe
--disable-ffserver
--disable-avdevice
--disable-doc
--disable-symver
--enable-libx264
--enable-libfreetype
--enable-libfribidi
--enable-libmp3lame
--enable-gpl
--enable-nonfree
--enable-version3
--enable-small
--disable-vda
--disable-iconv
--disable-encoders
--enable-encoder=libx264
--enable-encoder=mpeg4
--enable-encoder=aac
--enable-encoder=gif
--enable-encoder=libmp3lame
--disable-muxers
--enable-muxer=mp4
--enable-muxer=gif
--enable-muxer=aac
--enable-muxer=mp3
--disable-decoders
$ADDITIONAL_CONFIGURE_FLAG
make clean
make -j8
make install
}
build_one
报如下错误，应该怎么办啊
/home/wushuo/dev/ndk/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc is unable to create an executable file.
# C compiler test failed.


text:
新增菜单目录排序为0时，菜单下的页面打开报404

新增菜单目录排序为0时，或者排序排到最前面，菜单目录下新增页面后，点击菜单页面会报404，调整菜单目录只要不是最顶上，则正常显示，这个如何修复？

测试是正常的，无法复现的问题。


text:
#53 Create a forget password

This is one of the feature for issue #53.
Create a "forget password" below the Register button,  if the user forget his password , click on the ("forget password")
This is what it should happen step by step:

little pop-up to ask for their email to recover their password
(a file named "recover_password.php" should have been created to recover a password)

after the user write his email, send the email to the recover_password.php to look if this email exist in the database in the table user.

if YES , send to his email his username and password according to his email

if NO , an ALERT should pop-up to say that their is no username according to this email

We can add a security question and the user answers it or
we send an email and they click on it to then change their password
or we send an email with a password already made

Changing this to sprint 3.

updated it for sprint 4 new issue

authors: TangMichael phistanx yanis333


text:
add setTestingInstance function

allows testing Keychain when it's used with sharedKeychain
see http://stackoverflow.com/a/28613570/1072846

Thanks!

Cool, thanks!
Could you please update the pod too?

Done!

authors: arielelkin yankodimitrov

repo: yankodimitrov/SwiftKeychain


text:
no-did-mount-set-state does not work

I'm trying to use eslint-plugin-react 6.10.0, but neither of these work:
"react/no-did-mount-set-state": [2, "allow-in-func"],
"react/no-did-mount-set-state": [2, "disallow-in-func"],
In fact, both of these throw the same error:
	Configuration for rule "react/no-did-mount-set-state" is invalid:
	Value "allow-in-func" must be an enum value.

How can I fix this?

Did you figure it out?

repo: yannickcr/eslint-plugin-react


text:
eslint-plugin-react 7.20.1 - react/require-default-props - has no corresponding defaultProps declaration

Description
After upgrading from eslint-plugin-react 7.20.0 -> 7.20.1, my project errors on react/require-default-props

propType X is not required, but has no corresponding defaultProps declaration.

The project didn't have these errors on 7.20.0 (see main branch). The errors are thrown on a functional component with default values.
I am mainly curious as to whether this new error is intentional, and if so what the expected change should be that I need to make.
Steps to reproduce
git clone https://github.com/Tielem/gatsby-typescript-eslint-prettier-starter/tree/renovate/eslint-plugin-react-7.x
npm install
npm run build

Expected result
No errors
Actual result
See https://app.netlify.com/sites/gatsby-typescript-eslint-prettier-starter/deploys/5ef9113214fdb700081b9d35

I just published v7.20.2; can you try with that version?

Note, though, that the rule doesn't currently care about default values, since these aren't runtime-introspectable, and don't offer the same benefits that defaultProps does. See #2396 for discussion.
In other words, I think this is intentional, and it was a bug that you didn't get the warning previously, and the option discussed here might help you.

Thanks for the feedback! I quickly checked the discussion, but I assume that option is not yet available, right? Will read in more detail tomorrow.
Renovate will auto pull in 7.20.2 - I actually think it's already making a build with it atm

Correct, it's not yet available.
Semver with eslint plugins is tricky; many bugfixes will create more warnings, thus failing the build; it's got to be a judgement call every time.

I think pending the option in #2396, this is intentional and warrants an override comment if you don't want to use defaultProps. Happy to reopen if there's something actionable here tho!

authors: Tielem ljharb


text:
Using CocoaPods 7.0.0 install Xcode 8 insists migrating to Swift 3

I've installed using CocoaPods 7.0.0.
Xcode 8 wants to migrate QRCodeReader to Swift 3 but then won't let me as some of the files are locked as it is a CocoaPod.
If I say no to Swift 3 migration then it won't compile my code as it doesn't think QRCodeReader exists.

Have you unchecked the pods during the migration?
Here an example screenshot:

Yes I did uncheck them.
It was then it gave the error about being Swift 1 code.
I managed to get it to work by removing the Pod from my Podfile to uninstall it and then added it back in again. After a reboot it worked so I think Xcode may have just become confused.

Yes, may be. Xcode is not perfect, and unfortunately the migration tool is not really reliable. So everything works now? Can I close the issue?

No probs, you're welcome. 👍

authors: andrewsage yannickl


text:
关于Java URLEncoder.encode对空格导致的bug

   我公司产品采用了Nohttp作为网络请求框架，其中涉及到好多Post提交。

例如，提交日期和时间“2018.01.01 15:49:00”,  NoHttp会对所有参数进行URLEncode.encode操作, Java的encode会将空格加密成+号，decode完的结果就成了“2018.01.01+15:49:00”。
　   网上说是最好使用Android的Uri.encode。 附两篇关于URLEncode.encode导致的文章。望博主回复一下这种情况怎么解决比较好，谢谢！
URI encode与URL encode对空格的不同处理
Android URL encode 空格处理
   急！

用android.util下的Base64转码
Base64.encodeToString(rawHmac, Base64.NO_WRAP)

repo: yanzhenjie/NoHttp


text:
Find a way to indicate disputed territories

http://en.wikipedia.org/wiki/List_of_states_with_limited_recognition
Using diagonal stripes as an SVG background pattern might work. Dashed borders would not work, because topojson eliminates redundancy of boundary lines.

Don't do this inside the library.


text:
Extracting a .ipa file not working

Finally a zip/unzip project, which supports the Swift Package Manager 👍
When I'm trying to unzip a .ipa file   I get an io error.
Unfortunately there is no more detailed error message, so I could investigate whats not working.
Every .ipa file consists of:
/Payload/
/Payload/Application.app
/iTunesArtwork
_/iTunesArtwork@2x_
/iTunesMetadata.plist

Everything gets extracted, besides the contents of /Payload/Application.app. It stops after Info.plist.
Could you please look into it?

I exported my iOS project to .ipa file and tried unzip, but no error occurred 🤔

authors: YugoCode yaslab


text:
Improve translation

下記対応を行いました。
よろしくおねがいします。 🙏

typoの修正
原文と異なるオプション指定の修正

良さそうです! PR ありがとうございます! 😻

authors: colorbox yasulab


text:
How to set the network address of two machines

Hello, if I have two virtual machines in the same intranet, and I want virtual machine A to run redis-server supported by zpoline, and virtual machine B to run redis-benchmark to test it, how should I set the network address?

I guess it would be fine if IP addresses assigned to the network interfaces of virtual machine A and virtual machine B are valid in the intranet.
If the intranet is managed by network operators, I think it would be better to consult with them because they may have a specific policy for IP address assignment.

I guess it would be fine if IP addresses assigned to the network interfaces of virtual machine A and virtual machine B are valid in the intranet.
If the intranet is managed by network operators, I think it would be better to consult with them because they may have a specific policy for IP address assignment.

Thanks for your reply. When I used the tap001 device, I couldn't connect the two virtual machines. Then I added a network card and did not create the tap001 device when executing but directly let it bind to the physical network card, so that the two machines can be connected.

repo: yasukata/glue-lwip-dpdk-zpoline


text:
Add option to set check icon tint while in Unchecked state

Currently, there's no option to tint check image while it's in Unchecked state, I thought it should be useful.

Thanks @jimmy0251!
How do I use this branch in gradle dependencies?

compile('com.github.canopas:MultiImagePicker:1.3.2')


text:
Support for all status bytes

The Status enum contains a number of status bytes, but not all defined by the specifications. It also does not contain a fallback (Unknown(u16)) variant that could be used to encode unknown bytes, like does openpgp-card
I think we should add such a variant. However this can become an issue when matching against bytes. For example if one wants to test that a given status bytes are Success, they would need to match against both Success and Unknown::(0x9000) which can be tedious and lead to inconsistencies.
I suggest we instead change Status to a newtype Status(u16) with a bunch of associated constants for known values. You can still do pattern matching with the constants.
For example, reqwest uses this pattern instead of an enum for HTTP status codes: https://docs.rs/reqwest/latest/reqwest/struct.StatusCode.html#associatedconstant.ACCEPTED

I'm not a fan of this approach - the point of using enums to me is to make the universe of possibilities smaller, not allow random bytes throughout the following code (https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/).
If there is an Unknown(u16) field, then the library should at least enforce the invariant that the contained u16 is none of the named variants.
We already have the TryInto (https://github.com/ycrypto/iso7816/blob/main/src/response/status.rs#L83) though, which encodes this philosophy.
What is wrong with adding variants as needed? Or doing a full pass to add most of them? Using the C approach (like reqwest) does not seem to me to make anything easier or more ergonomic.

The constants (public or maybe private) could still be helpful to remove duplication of explicit codes in the two conversions between parsed and raw. Maybe a quick macro-rules macro to define the constants and the two conversions?

If there is an Unknown(u16) field, then the library should at least enforce the invariant that the contained u16 is none of the named variants.

That's not really possible because you can't make enum constructors private.

We already have the TryInto (https://github.com/ycrypto/iso7816/blob/main/src/response/status.rs#L83) though, which encodes this philosophy.

It's not really used anywhere though.
Also, adding an Unknown(u16) variant would make it a breaking change to  then add any other variant, since code might match against it in the Unknown variant, and it would therefore break the matching.

I'm not a fan of this approach - the point of using enums to me is to make the universe of possibilities smaller, not allow random bytes throughout the following code (https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/).

The only invalid SW bytes according to iso7816-4 are those outside of 6XXX, 9XXX and 60XX. I think at least all valid values should be accepted, to avoid data loss. In my case I'm not just creating Status, I'm receiving them from the SE050, so I need to handle the case where the meaning of the status bytes are unknown (I've already encountered 6CXX, which the current enum does not support, and no option looks good  to me:
// Choice one: Use a default status if the Status bytes failed to parse (data loss, especially a pain currently when I'm doing debugging).
fn do_something() -> Result<Data, Status>;

// Choice 2: Return the SW bytes if they're incorrect: Overall a pretty bad API.
fn do_something() -> Result<Data, Result<Status, u16>>;

Enums also prevent renaming (without a breaking change), and a lot of the current names don't properly reflect their ISO7816-4 meaning. For example UnspecifiedNonpersistentExecutionError and UnspecifiedPersistentExecutionError actually refer to whether data on flash was changed, which was not clear to me at all, KeyReferenceNotFound (6A88) does not necessarily refer to keys.

I think I have found a better option: simply make the Unknown variant #[doc(hidden)]

Done by #17

authors: nickray sosthene-nitrokey


text:
TPC DS q14 (variant with ANY): timeout with CBO

Separate issue from #7072 (shows up with #8674 applied)
It looks like CBO rewrites
A JOIN (ANY B LEFT SEMI C)

as
ANY B LEFT SEMI (C JOIN A)

'A, B and C contains a lot of duplicates, so (C JOIN A) produces huge number of rows.
But in original query ANY B LEFT SEMI C contained no duplicates.

That's 'bad' rewrite:
2024-09-04 14:31:20.766 INFO  dqrun(pid=2755795, tid=0x000079DB5D6F9FC0) [default] dq_opt_join_cost_based.cpp:365: {dummy_op} Converted join tree:
Join: (InnerJoin,Undefined) item.i_brand_id=iss.i_brand_id,item.i_category_id=iss.i_category_id,item.i_class_id=iss.i_class_id,
    Rel: item
    Type: BaseTable, Nrows: 7665.24, Ncols: 4, ByteSize: 7.84921e+06, Cost: 7.84921e+06, i_item_sk, Storage: NA
    Join: (LeftSemi,Undefined) iss.i_brand_id=iws.i_brand_id,iss.i_category_id=iws.i_category_id,iss.i_class_id=iws.i_class_id,
        Join: (LeftSemi,Undefined,LeftAny) iss.i_brand_id=ics.i_brand_id,iss.i_category_id=ics.i_category_id,iss.i_class_id=ics.i_class_id,
            Join: (InnerJoin,Undefined) store_sales.ss_sold_date_sk=d1.d_date_sk,
                Join: (InnerJoin,Undefined) store_sales.ss_item_sk=iss.i_item_sk,
                    Rel: store_sales
                    Type: BaseTable, Nrows: 1.12524e+06, Ncols: 2, ByteSize: 1.15225e+09, Cost: 1.15225e+09, ss_item_sk, ss_ticket_number, Storage: NA
                    Rel: iss
                    Type: BaseTable, Nrows: 7665.24, Ncols: 4, ByteSize: 7.84921e+06, Cost: 7.84921e+06, i_item_sk, Storage: NA
                Rel: d1
                Type: BaseTable, Nrows: 400.586, Ncols: 2, ByteSize: 410200, Cost: 1.6408e+06, d_date_sk, Storage: NA
            Join: (InnerJoin,Undefined) catalog_sales.cs_sold_date_sk=d2.d_date_sk,
                Join: (InnerJoin,Undefined) catalog_sales.cs_item_sk=ics.i_item_sk,
                    Rel: catalog_sales
                    Type: BaseTable, Nrows: 978164, Ncols: 2, ByteSize: 1.00164e+09, Cost: 1.00164e+09, cs_item_sk, cs_order_number, Storage: NA
                    Rel: ics
                    Type: BaseTable, Nrows: 7665.24, Ncols: 4, ByteSize: 7.84921e+06, Cost: 7.84921e+06, i_item_sk, Storage: NA
                Rel: d2
                Type: BaseTable, Nrows: 400.586, Ncols: 2, ByteSize: 410200, Cost: 1.6408e+06, d_date_sk, Storage: NA
        Join: (InnerJoin,Undefined) ds/10_decimal/web_sales/.ws_sold_date_sk=d3.d_date_sk,
            Join: (InnerJoin,Undefined) ds/10_decimal/web_sales/.ws_item_sk=iws.i_item_sk,
                Rel: ds/10_decimal/web_sales/
                Type: BaseTable, Nrows: 489381, Ncols: 2, ByteSize: 5.01127e+08, Cost: 5.01127e+08, ws_item_sk, ws_order_number, Storage: NA
                Rel: iws
                Type: BaseTable, Nrows: 7665.24, Ncols: 4, ByteSize: 7.84921e+06, Cost: 7.84921e+06, i_item_sk, Storage: NA
            Rel: d3
            Type: BaseTable, Nrows: 400.586, Ncols: 2, ByteSize: 410200, Cost: 1.6408e+06, d_date_sk, Storage: NA

2024-09-04 14:31:20.766 INFO  dqrun(pid=2755795, tid=0x000079DB5D6F9FC0) [default] dq_opt_join_cost_based.cpp:375: {dummy_op} Optimizied join tree:
Join: (LeftSemi,GraceJoin,LeftAny) iss.i_brand_id=ics.i_brand_id,iss.i_category_id=ics.i_category_id,iss.i_class_id=ics.i_class_id,
Type: ManyManyJoin, Nrows: 5.16108e+17, Ncols: 28, ByteSize: 5.28495e+20, Cost: 7.74194e+17, Storage: NA
    Join: (LeftSemi,GraceJoin) iss.i_brand_id=iws.i_brand_id,iss.i_category_id=iws.i_category_id,iss.i_class_id=iws.i_class_id,
    Type: ManyManyJoin, Nrows: 1.05526e+13, Ncols: 20, ByteSize: 1.08059e+16, Cost: 1.58319e+13, Storage: NA
        Join: (InnerJoin,GraceJoin) iss.i_brand_id=item.i_brand_id,iss.i_category_id=item.i_category_id,iss.i_class_id=item.i_class_id,
        Type: ManyManyJoin, Nrows: 4.31263e+08, Ncols: 12, ByteSize: 4.41613e+11, Cost: 1.8199e+09, Storage: NA
            Join: (InnerJoin,GraceJoin) store_sales.ss_item_sk=iss.i_item_sk,
            Type: FilteredFactTable, Nrows: 281311, Ncols: 8, ByteSize: 2.88062e+08, Cost: 1.16472e+09, ss_item_sk, ss_ticket_number, Storage: NA
                Join: (InnerJoin,GraceJoin) store_sales.ss_sold_date_sk=d1.d_date_sk,
                Type: FilteredFactTable, Nrows: 281311, Ncols: 4, ByteSize: 2.88062e+08, Cost: 1.156e+09, ss_item_sk, ss_ticket_number, Storage: NA
                    Rel: store_sales
                    Type: BaseTable, Nrows: 1.12524e+06, Ncols: 2, ByteSize: 1.15225e+09, Cost: 1.15225e+09, ss_item_sk, ss_ticket_number, Storage: NA
                    Rel: d1
                    Type: BaseTable, Nrows: 400.586, Ncols: 2, ByteSize: 410200, Cost: 1.6408e+06, d_date_sk, Storage: NA
                Rel: iss
                Type: BaseTable, Nrows: 7665.24, Ncols: 4, ByteSize: 7.84921e+06, Cost: 7.84921e+06, i_item_sk, Storage: NA
            Rel: item
            Type: BaseTable, Nrows: 7665.24, Ncols: 4, ByteSize: 7.84921e+06, Cost: 7.84921e+06, i_item_sk, Storage: NA
        Join: (InnerJoin,GraceJoin) ds/10_decimal/web_sales/.ws_item_sk=iws.i_item_sk,
        Type: FilteredFactTable, Nrows: 122345, Ncols: 8, ByteSize: 1.25282e+08, Cost: 5.11925e+08, ws_item_sk, ws_order_number, Storage: NA
            Join: (InnerJoin,GraceJoin) ds/10_decimal/web_sales/.ws_sold_date_sk=d3.d_date_sk,
            Type: FilteredFactTable, Nrows: 122345, Ncols: 4, ByteSize: 1.25282e+08, Cost: 5.03686e+08, ws_item_sk, ws_order_number, Storage: NA
                Rel: ds/10_decimal/web_sales/
                Type: BaseTable, Nrows: 489381, Ncols: 2, ByteSize: 5.01127e+08, Cost: 5.01127e+08, ws_item_sk, ws_order_number, Storage: NA
                Rel: d3
                Type: BaseTable, Nrows: 400.586, Ncols: 2, ByteSize: 410200, Cost: 1.6408e+06, d_date_sk, Storage: NA
            Rel: iws
            Type: BaseTable, Nrows: 7665.24, Ncols: 4, ByteSize: 7.84921e+06, Cost: 7.84921e+06, i_item_sk, Storage: NA
    Join: (InnerJoin,GraceJoin) catalog_sales.cs_item_sk=ics.i_item_sk,
    Type: FilteredFactTable, Nrows: 244541, Ncols: 8, ByteSize: 2.5041e+08, Cost: 1.01372e+09, cs_item_sk, cs_order_number, Storage: NA
        Join: (InnerJoin,GraceJoin) catalog_sales.cs_sold_date_sk=d2.d_date_sk,
        Type: FilteredFactTable, Nrows: 244541, Ncols: 4, ByteSize: 2.5041e+08, Cost: 1.00512e+09, cs_item_sk, cs_order_number, Storage: NA
            Rel: catalog_sales
            Type: BaseTable, Nrows: 978164, Ncols: 2, ByteSize: 1.00164e+09, Cost: 1.00164e+09, cs_item_sk, cs_order_number, Storage: NA
            Rel: d2
            Type: BaseTable, Nrows: 400.586, Ncols: 2, ByteSize: 410200, Cost: 1.6408e+06, d_date_sk, Storage: NA
        Rel: ics
        Type: BaseTable, Nrows: 7665.24, Ncols: 4, ByteSize: 7.84921e+06, Cost: 7.84921e+06, i_item_sk, Storage: NA

(CBO moves join with item into inner parts, and inflate product at early stages instead of instead of filtering )

Query (problematic part is $cross_items; $bla{1..3} contains a lot of duplicates):
PRAGMA dq.EnableDqReplicate = "1";
PRAGMA DisableSimpleColumns;

PRAGMA dq.MaxTasksPerStage='200';
PRAGMA dq.MaxTasksPerOperation='1700';
PRAGMA dq.HashJoinMode = "grace";
PRAGMA dq.HashShuffleTasksRatio="1.0";
PRAGMA dq.HashShuffleMaxTasks="200";

-- pragma dq.AggregateStatsByStage="false";
pragma dq.ComputeActorType="sync";
pragma dq.OptLLVM="off";

PRAGMA s3.UseBlocksSource="true";
pragma OrderedColumns="true";

pragma FilterPushdownOverJoinOptionalSide;
pragma RotateJoinTree="false";
pragma AnsiOptionalAs="true";

pragma warning("disable", "4527");

$z0 = cast(0 as decimal(7,2));
$z1_2 = cast("1.2" as decimal(7,2));
$z1_3 = cast("1.3" as decimal(7,2));
$z0_9 = cast("0.9" as decimal(7,2));
$z0_99 = cast("0.99" as decimal(7,2));
$z1_49 = cast("1.49" as decimal(7,2));

$z0_35 = cast(0 as decimal(35,2));
$z0_1_35 = cast("0.1" as decimal(35,2));
$z1_2_35 = cast("1.2" as decimal(35,2));
$z0_05_35 = cast("0.05" as decimal(35,2));
$z0_9_35 = cast("0.9" as decimal(35,2));
$z0_95_35 = cast("0.95" as decimal(35,2));
$z1_1_35 = cast("1.1" as decimal(35,2));
$z0_5_35 = cast("0.5" as decimal(35,2));
$z100_35 = cast(100 as decimal(35,2));
$z0_0001_35 = cast("0.0001" as decimal(35,2));
$z7_35 = cast("7." as decimal(35,2));

$z0_12 = cast(0 as decimal(12,2));
$z1_12 = cast(1 as decimal(12,2));
$z0_0100001_12 = cast("0.0100001" as decimal(12,2));
$z0_07_12 = cast("0.07" as decimal(12,2));
$z0_2_12 = cast("0.2" as decimal(12,2));

$round = ($x,$y) -> {return $x;};
$upscale = ($x) -> { return cast($x as decimal(35,9)); };
pragma dq.MaxTasksPerStage="4";
pragma dq.ComputeActorType="async";
pragma dq.UseFinalizeByKey="true";
pragma dq.OptLLVM="ON";
pragma dq.EnableSpillingNodes="GraceJoin";
pragma CostBasedOptimizer="native";
pragma AnsiOptionalAs="1";

-- NB: Subquerys
$bla1 = (select iss.i_brand_id brand_id
     ,iss.i_class_id class_id
     ,iss.i_category_id category_id
 from bindings.store_sales as store_sales
     cross join bindings.item iss
     cross join bindings.date_dim d1
 where ss_item_sk = iss.i_item_sk
   and ss_sold_date_sk = d1.d_date_sk
   and d1.d_year between 2000 AND 2000 + 2);
$bla2 = (select ics.i_brand_id brand_id
     ,ics.i_class_id class_id
     ,ics.i_category_id category_id
 from bindings.catalog_sales as catalog_sales
     cross join bindings.item ics
     cross join bindings.date_dim d2
 where cs_item_sk = ics.i_item_sk
   and cs_sold_date_sk = d2.d_date_sk
   and d2.d_year between 2000 AND 2000 + 2);
$bla3 = (select iws.i_brand_id brand_id
     ,iws.i_class_id class_id
     ,iws.i_category_id category_id
 from bindings.web_sales
     cross join bindings.item iws
     cross join bindings.date_dim d3
 where ws_item_sk = iws.i_item_sk
   and ws_sold_date_sk = d3.d_date_sk
   and d3.d_year between 2000 AND 2000 + 2);

$cross_items = (select i_item_sk ss_item_sk
 from bindings.item as item cross join
 (select bla1.brand_id as brand_id, bla1.class_id as class_id, bla1.category_id as category_id from
    any
 $bla1 bla1 left semi join $bla2 bla2 on (bla1.brand_id = bla2.brand_id and bla1.class_id = bla2.class_id and bla1.category_id = bla2.category_id)
            left semi join $bla3 bla3 on (bla1.brand_id = bla3.brand_id and bla1.class_id = bla3.class_id and bla1.category_id = bla3.category_id)
 ) x
 where i_brand_id = brand_id
      and i_class_id = class_id
      and i_category_id = category_id
);

$avg_sales =
 (select avg(quantity*list_price) average_sales
  from (select ss_quantity quantity
             ,ss_list_price list_price
       from bindings.store_sales as store_sales
           cross join bindings.date_dim as date_dim
       where ss_sold_date_sk = d_date_sk
         and d_year between 2000 and 2000 + 2
       union all
       select cs_quantity quantity
             ,cs_list_price list_price
       from bindings.catalog_sales as catalog_sales
           cross join bindings.date_dim as date_dim
       where cs_sold_date_sk = d_date_sk
         and d_year between 2000 and 2000 + 2
       union all
       select ws_quantity quantity
             ,ws_list_price list_price
       from bindings.web_sales as web_sales
           cross join bindings.date_dim as date_dim
       where ws_sold_date_sk = d_date_sk
          and d_year between 2000 and 2000 + 2) x);

$week_seq_2001 = (select d_week_seq
                     from bindings.date_dim as date_dim
                     where d_year = 2000 + 1
                       and d_moy = 12
                       and d_dom = 15);

$week_seq_2000 = (select d_week_seq
                     from bindings.date_dim as date_dim
                     where d_year = 2000
                       and d_moy = 12
                       and d_dom = 15);

-- start query 1 in stream 0 using template query14.tpl and seed 1819994127

  select  channel, i_brand_id,i_class_id,i_category_id,sum(sales), sum(number_sales)
 from(
       select 'store' channel, item.i_brand_id i_brand_id,item.i_class_id i_class_id
             ,item.i_category_id i_category_id,sum(ss_quantity*ss_list_price) sales
             , count(*) number_sales
       from bindings.store_sales as store_sales
           cross join bindings.item as item
           cross join bindings.date_dim as date_dim
       where ss_item_sk in $cross_items
         and ss_item_sk = i_item_sk
         and ss_sold_date_sk = d_date_sk
         and d_year = 2000+2
         and d_moy = 11
       group by item.i_brand_id,item.i_class_id,item.i_category_id
       having sum(ss_quantity*ss_list_price) > $avg_sales
       union all
       select 'catalog' channel, item.i_brand_id i_brand_id,item.i_class_id i_class_id,item.i_category_id i_category_id, sum(cs_quantity*cs_list_price) sales, count(*) number_sales
       from bindings.catalog_sales as catalog_sales
           cross join bindings.item as item
           cross join bindings.date_dim as date_sim
       where cs_item_sk in $cross_items
         and cs_item_sk = i_item_sk
         and cs_sold_date_sk = d_date_sk
         and d_year = 2000+2
         and d_moy = 11
       group by item.i_brand_id,item.i_class_id,item.i_category_id
       having sum(cs_quantity*cs_list_price) > $avg_sales
       union all
       select 'web' channel, item.i_brand_id i_brand_id,item.i_class_id i_class_id,item.i_category_id i_category_id, sum(ws_quantity*ws_list_price) sales , count(*) number_sales
       from bindings.web_sales as web_sales
           cross join bindings.item as item
           cross join bindings.date_dim as date_dim
       where ws_item_sk in $cross_items
         and ws_item_sk = i_item_sk
         and ws_sold_date_sk = d_date_sk
         and d_year = 2000+2
         and d_moy = 11
       group by item.i_brand_id,item.i_class_id,item.i_category_id
       having sum(ws_quantity*ws_list_price) > $avg_sales
 ) y
 group by rollup (channel, i_brand_id,i_class_id,i_category_id)
 order by channel,i_brand_id,i_class_id,i_category_id
 limit 100;

select  this_year.channel ty_channel
                           ,this_year.i_brand_id ty_brand
                           ,this_year.i_class_id ty_class
                           ,this_year.i_category_id ty_category
                           ,this_year.sales ty_sales
                           ,this_year.number_sales ty_number_sales
                           ,last_year.channel ly_channel
                           ,last_year.i_brand_id ly_brand
                           ,last_year.i_class_id ly_class
                           ,last_year.i_category_id ly_category
                           ,last_year.sales ly_sales
                           ,last_year.number_sales ly_number_sales
 from
 (select 'store' channel, item.i_brand_id i_brand_id,item.i_class_id i_class_id,item.i_category_id i_category_id
        ,sum(ss_quantity*ss_list_price) sales, count(*) number_sales
 from bindings.store_sales as store_sales
     cross join bindings.item as item
     cross join bindings.date_dim as date_dim
 where ss_item_sk in $cross_items
   and ss_item_sk = i_item_sk
   and ss_sold_date_sk = d_date_sk
   and d_week_seq = $week_seq_2001
 group by item.i_brand_id,item.i_class_id,item.i_category_id
 having sum(ss_quantity*ss_list_price) > $avg_sales) this_year cross join
 (select 'store' channel, item.i_brand_id i_brand_id,item.i_class_id i_class_id
        ,item.i_category_id i_category_id, sum(ss_quantity*ss_list_price) sales, count(*) number_sales
 from bindings.store_sales as store_sales
     cross join bindings.item as item
     cross join bindings.date_dim as date_dim
 where ss_item_sk in $cross_items
   and ss_item_sk = i_item_sk
   and ss_sold_date_sk = d_date_sk
   and d_week_seq = $week_seq_2000
 group by item.i_brand_id,item.i_class_id,item.i_category_id
 having sum(ss_quantity*ss_list_price) > $avg_sales) last_year
 where this_year.i_brand_id= last_year.i_brand_id
   and this_year.i_class_id = last_year.i_class_id
   and this_year.i_category_id = last_year.i_category_id
 order by ty_channel, ty_brand, ty_class, ty_category
 limit 100;

-- end query 1 in stream 0 using template query14.tpl

repo: ydb-platform/ydb


text:
iconfont的引入能不能也改成本地的。我如果做webapp会影响速度的

问题描述
（尽可能详细地描述一下问题）
产生环境

使用版本：
设备：（手机、平板移动设备）
演示地址：

提示错误信息

...

复现步骤

...

自己重置样式就好了。
<style>
    @font-face {
        font-family: 'AAAAAAA';
        src: url('//www.yourfiles.com/font/font.ttf') format('truetype');
    }

    [class^="yd-icon-"]:before, [class*=" yd-icon-"]:before {
        font-family: 'AAAAAAA'!important;
    }
</style>

repo: ydcss/vue-ydui


text:
同步到coding报错

同步到coding一直会报错，可是本地测试、服务器测试都没有问题，能帮忙看下吗？
Warning: Permanently added 'e.coding.net' (RSA) to the list of known hosts.
git@e.coding.net: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

抱歉，刚看到，可能有些晚了，我测试了好像首次提交会报错，但是也成功同步过去了，之后提交触发同步也不会再报错，这个插件是我以前写的一个粗略版，之后会完善一下

@yehan68 当时好像同步到coding一直报错和失败，就换了个其他的git站。期待您的后续升级和完善。


text:
Main generator not detected correctly by router when starting generator from home menu in cli

I'm creating a generator with sub-generators. My generators folder contains app (main generator) and sub-app (sub-generator) among other sub-generators.
When I call yo on the command line and select my generator from the menu, instead of executing the app generator, the sub-app generator is executed.
I believe the fix is as easy as changing the regex to /:(app|all)$/in the router (note the colon).
I can provide a PR. However, in order to provide proper tests for that bug, I would need to add an additional devDependency such as rewire to mock reading package.json.
What do you think?

You'd actually want to stub this.env.getGeneratorsMeta() return value. And you can use sinon or proxyquire for that instead of adding a new dependency.
PR welcomed

I created PR #447, let's continue there.

authors: SBoudrias mlenkeit

repo: yeoman/yo


text:
yo code, lookups.flatMap is not a function

Type of issue

My environment

OS version/details: macOS 10.15.7 (19H15)
Node version:  v10.24.0
npm version: 6.14.11
Version of yo : 4.3.0

Expected behavior
yo code work

Current behavior
yo code fail

Steps to reproduce the behavior

Command line output
Paste your error output over here

This is due to your old Node.js version. Version 10 has been out of LTS for a while already; so we dropped support.
See https://nodejs.org/en/about/releases/ for more information about stable Node versions.


text:
FGD Performance

Hello,
What FGD score can I expect to see on Trinity and Ted Datasets?

Please refer to our paper, which is now published, for FGD performance.

authors: anithselva yesheng-THU

repo: yesheng-THU/GFGE


text:
Remove BoolTrue and BoolFalse primitives

I missed these in #343

Just went ahead and merged this :)

authors: brendanzab wezm

repo: yeslogic/fathom


text:
Fix web-sys public agents and improve multithread web-sys

Problem

Web workers were not working in the web-sys multithread example project
No working example for web-sys web workers
wasm-bindgen tries to build ..._bg.wasm url but references document and therefore fails

Changes

Fix web-sys worker initialization by sending _bg.wasm url explicitly
Update gloo to github revision so that IntervalService works on workers for web_sys feature
Improve web-sys multithread example readme

@daxpedda @theneikos could you two please look over the changes in src/agent.rs? I noticed that wasm-bindgen tries to build the _bg.wasm link using document and so it needs to be worked around for workers

I noticed that wasm-bindgen tries to build the _bg.wasm link using document and so it needs to be worked around for workers

I fixed it here: rustwasm/wasm-bindgen#2038.
But it is unrelated to us, because we are making a Blob, wasm-bindgen can't actually build the correct path anyway.
So the workaround is fine in my opinion.

I fixed it here: rustwasm/wasm-bindgen#2038.

Nice!

But it is unrelated to us, because we are making a Blob, wasm-bindgen can't actually build the correct path anyway.

Yes, exactly. I like the blob approach you added because it removes the need to have a simple js file which does that initialization

So the workaround is fine in my opinion.

Sweet, thanks for taking a look!

authors: daxpedda jstarry

repo: yewstack/yew


text:
python3 not supported

Odoo running in python3. pip3 install -r requirements.txt failed.

Am using python3 and it's working, Could you share the failure message pls?.

Am closing this as I have confirmed that it works on Python3.

authors: hxgqh yezyilomo

repo: yezyilomo/odoo-rest-api


text:
modifying from classification to regression

@yhenon I want to add another regression loss for every box.I have modified the losses.py as such
        targets = torch.ones(erosion.shape) * -1
        targets = targets.cuda()
        targets[torch.lt(IoU_max, 0.4), :] = 0
        positive_indices = torch.ge(IoU_max, 0.5)
        num_positive_anchors = positive_indices.sum()
        assigned_annotations = bbox_annotation[IoU_argmax, :]
        targets[positive_indices, :] = 0
        targets[assigned_annotations[positive_indices, 5].long()] = 1
        criterion = nn.MSELoss()
        loss = torch.sqrt(criterion(targets, erosion))
        erosion_losses.append(loss)

Does this look okay ? i mean i am not getting any errors but not sure if this will work.
i have modified models.py on line 182 as such
    self.erosionScore = ClassificationModel(256, num_classes=1)

Fixed

repo: yhenon/pytorch-retinanet


text:
[BUG] pre_shared_key extension

When I was trying to replicate chrome 126 ja3/fingerprint
from curl_cffi import requests

class Session:
    def __init__(self, client_identifier: str, ja3: str=None, proxy: str=None) -> None:
        self.session = requests.Session(
            impersonate=client_identifier,
            ja3=ja3
        )

        if proxy is not None:
            self.session.proxies = {
                "http"  : proxy,
                "https" : proxy
            }

    def execute_request(self, method: str, url: str, **args):
        return self.session.request(method, url, **args)

session = Session(
    client_identifier='chrome124', # Its almost the same as chrome 126
    ja3='771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,10-11-51-27-5-16-13-17513-45-0-65281-35-43-65037-18-23-41,25497-29-23-24,0'
)

headers = {
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'accept-language': 'en-US,en;q=0.9',
    'priority': 'u=0, i',
    'sec-ch-ua': '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'document',
    'sec-fetch-mode': 'navigate',
    'sec-fetch-site': 'none',
    'sec-fetch-user': '?1',
    'upgrade-insecure-requests': '1',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
}

response = session.execute_request('GET', 'https://tls.peet.ws/api/all', headers=headers)

print(response.text)

Versions

OS: Windows 10  64 bit
curl_cffi version: 0.7.1

The pre_shared_key extension is present only when at least with the second connection to a server. You are seeing the PSK extension because you visited the site the second time in a session. It's fine to ignore the extension. It would certainly be better to add PSK on a second request in curl_cffi, but, unfortunately, curl does not support PSK with OpenSSL/BoringSSL.
Chrome 126 does not change anything as of TLS/HTTP2 fingerprints. You can simply update the headers.

authors: Mouad-scriptz yifeikong


text:
解决风控设备上 KeyError: 'userId' login 的方法

拿到类似这样的输出
{'notificationUrl': '/identity/authStart?sid=xiaomiio&context=wDILiZe6yVI_DvJbvAz_F4_8LXyuoTar-odx0H0FyIvaYXRxxxxx9BUuGPfyyRhogXWOwxxxxxxZNajJd0mnxxxxxx1ZptsXnXBxxxxxxfSmV_mQnew3i-tofXCVQ_P80fJ4xxf20Bl-t95zHZeqYeuDxxrGYxT2mxxOkQZQSxxAJTYjy-sg6WpVkH8AaGexxxxxxxNMXrvjWjWCfTfY9ipdTMWa0_UgmbFSUJmOX-Exxxxs5b_C4IBXHkIR1sk-EAC3ZDeawj_o5Zg&_locale=zh_CN', 'result': 'ok', 'code': 0, 'captchaUrl': None, 'description': '成功', 'location': '', 'securityStatus': 16, 'pwd': 0, 'child': 0, 'desc': '成功'}
复制notificationUrl拼接上https://account.xiaomi.com/pass/serviceLoginAuth2
得到：
https://account.xiaomi.com/pass/serviceLoginAuth2/identity/authStart?sid=xiaomiio&context=xxxxxx
这样的链接，复制到你的浏览器上打开即可手机短信等验证，验证通过后再次使用即可正常

谢谢

拼接后是404

404+1

404+1

404+1


text:
feat: a simple solution for mute xiaoai

Signed-off-by: Frost Ming me@frostming.com

用了一个简易的方法估算TTS耗时，减少网络请求
把keyword和prompt加入可配置列表
stop_if_xiaoai_is_playing 目测不再需要，因为它会被后面的tts强制中止

有部分和 #36 重合，我晚上看一下哈

实验了下，这个小爱还是会回答。