text:
[Cleanup] Wrap errors by type not by sdkerrors import's Wrapf method.

Summary
As per https://github.com/pokt-network/poktroll/issues/347#issuecomment-1910838720 some sed magic to make a few adjustments.
:%s/sdkerrors\(\.Wrap[f?](\)\n*\s*\(.\+\),/\2\1/ge

Human Summary
Conform to wrapping errors the same everywhere.
AI Summary
reviewpad:summary
Issue

N/A

Type of change
Select one or more:

[ ] New feature, functionality or library
[ ] Bug fix
[x] Code health or cleanup
[ ] Documentation
[ ] Other (specify)

Testing

[x] Run all unit tests: make go_develop_and_test
[x] Run E2E tests locally: make test_e2e
[ ] Run E2E tests on DevNet: Add the devnet-test-e2e label to the PR. This is VERY expensive, only do it after all the reviews are complete.

Sanity Checklist

[x] I have tested my changes using the available tooling
[x] I have performed a self-review of my own code
[ ] I have commented my code, updated documentation and left TODOs throughout the codebase

Fixes #347

repo: pokt-network/poktroll


text:
withRowCount() seems to reset its output

Have you tried latest version of polars?

[yes]

What version of polars are you using?
tested this with 0.6.0 and 0.5.4
What operating system are you using polars on?
Windows 10
What node version are you using
node 16.17.0
Describe your bug.
When you chain withRowCount to scanCSV, the row count column seems to reset after a while.
What are the steps to reproduce the behavior?
Use a CSV with sufficient lines (it seems you need at least 1500 lines). Use scanCSV and withRowCount.
When manually initializing the LazyDataFrame, withRowCount seems to work as intended.
import pl from "nodejs-polars";
import * as fs from "node:fs";

const data = [...Array(5000).keys()];
fs.writeFileSync("data.csv", data.join("\n"));

const lf1 = await pl.DataFrame(data).lazy().withRowCount().collect();
const lf2 = await pl.scanCSV("data.csv").withRowCount().collect();

console.log(lf1);
console.log(lf2);

What is the actual behavior?
lf1:
┌────────┬──────────┐
│ row_nr ┆ column_0 │
│ ---    ┆ ---      │
│ u32    ┆ f64      │
╞════════╪══════════╡
│ 0      ┆ 0.0      │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ 1      ┆ 1.0      │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ 2      ┆ 2.0      │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ 3      ┆ 3.0      │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ ...    ┆ ...      │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ 4996   ┆ 4996.0   │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ 4997   ┆ 4997.0   │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ 4998   ┆ 4998.0   │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ 4999   ┆ 4999.0   │
└────────┴──────────┘

lf2:
shape: (4999, 2)
┌────────┬──────┐
│ row_nr ┆ 0    │
│ ---    ┆ ---  │
│ u32    ┆ i64  │
╞════════╪══════╡
│ 0      ┆ 1    │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 1      ┆ 2    │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 2      ┆ 3    │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 3      ┆ 4    │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ ...    ┆ ...  │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 1186   ┆ 4996 │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 1187   ┆ 4997 │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 1188   ┆ 4998 │
├╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 1189   ┆ 4999 │
└────────┴──────┘

What is the expected behavior?
I would expect the withRowCount to not reset halfway
What do you think polars should have done?

This snip might be help illustrating the issue. Here you can see that the withRowCount() seems to "reset", here after 1416

this should be fixed in 0.7.1

it is!

source: gharchive/issue

repo: pola-rs/nodejs-polars

license: MIT

license_type: permissive

license_source: github-api


text:
Add cli tests

I discovered that the CLI was no longer working because the path was not properly canonicalized in the read function.
In order to make sure that this doesn't happen again in the future I have added two small integration tests for the CLI.
I also disabled color output for the pol run command, since that leads to test failures.

Could you also add the new tests to the CI?

Could you also add the new tests to the CI?

I don't think I have to do anything for that? The tests are run with cargo test --all.

I have to say, the assert_cmd crate is really convenient :)

source: gharchive/pull-request

authors: BinderDavid timsueberkrueb

repo: polarity-lang/polarity


text:
HW5 Чеботин Александр (ITMO DWS)

Пока просто предварительный код

Ждать исправлений или оцениваем как есть?

Ждать исправлений или оцениваем как есть?

Отчет не успел сделать, дедлайн прошел. Но код исправлю в любом случае

Без отчёта можно оценить в 5 баллов. Вмёрдживать не будем, потому что осталось 2 issue от codeclimate.

Без отчёта можно оценить в 5 баллов. Вмёрдживать не будем, потому что осталось 2 issue от codeclimate.

Благодарю за подробный ревью кода!

authors: axothy incubos


text:
build: Don't allow users to enable RENDER, DAMAGE, SYNC

Some build recipes (exherbo, sourcemage) for some reason enable those
three even though they don't do anything any only cause compilation
issues.
Ref: #1730

I think we shouldn't use an option for these variables.
According to CMake documentation (https://cmake.org/cmake/help/latest/command/option.html), an option is something that the user can optionally select.
Since these variable should not be modified by the end-user it might be a better solution to use
set (https://cmake.org/cmake/help/latest/command/set.html) with the INTERNAL type.
However, WITH_XRANDR seems to be used by the travis:
https://github.com/polybar/polybar/blob/7724c4dccb18ed9e48b050713540a2d05eacd2a1/common/travis/configure.sh#L10-L24

However, WITH_XRANDR seems to be used by the travis:

We're only disabling XRENDER :wink:
I will just completely remove all three options and their extensions from the code base. If we ever want to use them we can just revert the commit that removed them.

We're only disabling XRENDER wink

Ha, my bad!

repo: polybar/polybar


text:
Left eye only on S9+ GearVR

2.2.2 server works OK, finds, connects and streams SteamVR to headset.
However, the headset only displays the left eye. Right eye is completely black.
Same issue for both 2.2.2 ARCore client and normal client
Samsung S9+ and GearVR R325

I have the same but when you launch a game its fine, have you tried launching something?

Yes, I tried launching Subnautica, right eye is still completely black. What game did you try it with?

Can you get the output of adb logcat?

Not sure if I'm doing this correctly, but I just used CatLog for Android. I don't have adb on my Windows10 PC
07-05 14:41:16.007 D/ViewRootImpl@5c24c63[Please wait]( 9045): MSG_RESIZED_REPORT: frame=Rect(316, 1082 - 1124, 1680) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1 07-05 14:41:16.032 D/ViewRootImpl@a0c61b1[ShowRecordLogDialogActivity]( 9045): MSG_WINDOW_FOCUS_CHANGED 0 07-05 14:41:16.038 D/ViewRootImpl@5c24c63[Please wait]( 9045): dispatchDetachedFromWindow 07-05 14:41:16.038 D/InputEventReceiver( 9045): channel 'cf19cf1 Please wait (client)' ~ Disposing input event receiver. 07-05 14:41:16.038 D/InputEventReceiver( 9045): channel 'cf19cf1 Please wait (client)' ~NativeInputEventReceiver. 07-05 14:41:16.042 E/propClient(19518): PropClient failed to load 07-05 14:41:16.070 D/ViewRootImpl@a0c61b1[ShowRecordLogDialogActivity]( 9045): MSG_WINDOW_FOCUS_CHANGED 1 07-05 14:41:16.073 E/ViewRootImpl( 9045): sendUserActionEvent() returned. 07-05 14:41:16.111 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): MSG_WINDOW_FOCUS_CHANGED 1 07-05 14:41:16.112 V/InputMethodManager( 9045): Starting input: tba=android.view.inputmethod.EditorInfo@2605b78 nm : com.nolanlawson.logcat ic=null 07-05 14:41:16.112 I/InputMethodManager( 9045): startInputInner - mService.startInputOrWindowGainedFocus 07-05 14:41:16.113 D/ViewRootImpl@a0c61b1[ShowRecordLogDialogActivity]( 9045): MSG_WINDOW_FOCUS_CHANGED 0 07-05 14:41:16.147 D/ViewRootImpl@a0c61b1[ShowRecordLogDialogActivity]( 9045): Relayout returned: old=[0,961][1440,1800] new=[0,961][1440,1800] result=0x5 surface={valid=false 0} changed=true 07-05 14:41:16.151 D/ViewRootImpl@1e8f3b7[Toast]( 9045): setView = android.widget.LinearLayout{fbb724 V.E...... ......I. 0,0-0,0} TM=true MM=false 07-05 14:41:16.151 V/Toast   ( 9045): Text: Mog  in android.widget.Toast$TN@6d2228d 07-05 14:41:16.180 D/ViewRootImpl@1e8f3b7[Toast]( 9045): dispatchAttachedToWindow 07-05 14:41:16.186 V/Surface ( 9045): sf_framedrop debug : 0x4f4c, game : false, logging : 0 07-05 14:41:16.186 D/ViewRootImpl@1e8f3b7[Toast]( 9045): Relayout returned: old=[0,0][0,0] new=[361,2407][1078,2568] result=0x7 surface={valid=true 495991808000} changed=true 07-05 14:41:16.187 D/ViewRootImpl@1e8f3b7[Toast]( 9045): MSG_RESIZED_REPORT: frame=Rect(361, 2407 - 1078, 2568) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1 07-05 14:41:16.246 D/ViewRootImpl@a0c61b1[ShowRecordLogDialogActivity]( 9045): dispatchDetachedFromWindow 07-05 14:41:16.246 D/InputEventReceiver( 9045): channel '4f4c48b com.nolanlawson.logcat/com.nolanlawson.logcat.ShowRecordLogDialogActivity (client)' ~ Disposing input event receiver. 07-05 14:41:16.246 D/InputEventReceiver( 9045): channel '4f4c48b com.nolanlawson.logcat/com.nolanlawson.logcat.ShowRecordLogDialogActivity (client)' ~NativeInputEventReceiver. 07-05 14:41:18.139 D/ViewRootImpl@1e8f3b7[Toast]( 9045): dispatchDetachedFromWindow 07-05 14:41:18.140 D/InputEventReceiver( 9045): channel '5dc47 Toast (client)' ~ Disposing input event receiver. 07-05 14:41:18.140 D/InputEventReceiver( 9045): channel '5dc47 Toast (client)' ~NativeInputEventReceiver. 07-05 14:41:21.102 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): MSG_WINDOW_FOCUS_CHANGED 0 07-05 14:41:21.128 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): Relayout returned: old=[0,0][1440,2678] new=[0,0][1440,2678] result=0x5 surface={valid=false 0} changed=true 07-05 14:41:21.203 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): Relayout returned: old=[0,0][1440,2678] new=[0,0][1440,2678] result=0x1 surface={valid=false 0} changed=false 07-05 14:41:34.173 V/Configuration( 9045):  needToUpdateOverlays 07-05 14:41:34.174 V/Configuration( 9045):  needToUpdateOverlays 07-05 14:41:58.053 V/Configuration( 9045):  needToUpdateOverlays 07-05 14:41:58.053 V/Configuration( 9045):  needToUpdateOverlays 07-05 14:42:00.203 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): Relayout returned: old=[0,0][1440,2678] new=[0,0][1440,2678] result=0x1 surface={valid=false 0} changed=false 07-05 14:42:00.219 V/Surface ( 9045): sf_framedrop debug : 0x4f4c, game : false, logging : 0 07-05 14:42:00.220 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): Relayout returned: old=[0,0][1440,2678] new=[0,0][1440,2678] result=0x7 surface={valid=true 496042061824} changed=true 07-05 14:42:00.226 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1440, 2678) ci=Rect(0, 84 - 0, 0) vi=Rect(0, 84 - 0, 0) or=1 07-05 14:42:00.233 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): Relayout returned: old=[0,0][1440,2678] new=[0,0][1440,2678] result=0x3 surface={valid=true 496042061824} changed=false 07-05 14:42:00.260 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): MSG_WINDOW_FOCUS_CHANGED 1 07-05 14:42:00.266 V/InputMethodManager( 9045): Starting input: tba=android.view.inputmethod.EditorInfo@f1453 nm : com.nolanlawson.logcat ic=null 07-05 14:42:00.266 I/InputMethodManager( 9045): startInputInner - mService.startInputOrWindowGainedFocus 07-05 14:42:02.604 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): ViewPostIme key 0 07-05 14:42:02.671 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): ViewPostIme key 1 07-05 14:42:02.675 D/ViewRootImpl@66ca2af[LogcatActivity]( 9045): setView = DecorView@49aafd9[LogcatActivity] TM=true MM=false 07-05 14:42:02.677 V/InputMethodManager( 9045): Not IME target window, ignoring 07-05 14:42:02.678 D/ViewRootImpl@66ca2af[LogcatActivity]( 9045): dispatchAttachedToWindow 07-05 14:42:02.686 V/Surface ( 9045): sf_framedrop debug : 0x4f4c, game : false, logging : 0 07-05 14:42:02.686 D/ViewRootImpl@66ca2af[LogcatActivity]( 9045): Relayout returned: old=[0,0][0,0] new=[0,2172][1440,2678] result=0x7 surface={valid=true 495991808000} changed=true 07-05 14:42:02.711 D/ViewRootImpl@66ca2af[LogcatActivity]( 9045): MSG_WINDOW_FOCUS_CHANGED 1 07-05 14:42:02.711 V/InputMethodManager( 9045): Not IME target window, ignoring 07-05 14:42:02.712 D/ViewRootImpl@66ca2af[LogcatActivity]( 9045): MSG_RESIZED_REPORT: frame=Rect(0, 2172 - 1440, 2678) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1 07-05 14:42:02.715 D/ViewRootImpl@66ca2af[LogcatActivity]( 9045): Relayout returned: old=[0,2172][1440,2678] new=[0,2172][1440,2678] result=0x3 surface={valid=true 495991808000} changed=false 07-05 14:42:02.741 D/ViewRootImpl@4e02278[LogcatActivity]( 9045): MSG_WINDOW_FOCUS_CHANGED 0 07-05 14:42:03.745 D/ViewRootImpl@66ca2af[LogcatActivity]( 9045): ViewPostIme pointer 0 07-05 14:42:03.825 D/ViewRootImpl@66ca2af[LogcatActivity]( 9045): ViewPostIme pointer 1

Thank you!
But the log is too short so we can't show the error.
Please try adb logcat -d > logcat.txt and then you can see logcat.txt on some folder.
Please upload the logcat.txt.

Hopefully this logcat helps. I have the same issue on my S9+. Any of the alpha releases beyond 2.1.5 have a blank right eye.
logcat.txt

repo: polygraphene/ALVR


text:
你这项目都跑不起来，跟直播分享出来的链接完全是两个版本

能提供最新代码吗

您好，跑不起来报的错误信息是缺少 swiper 这个依赖吗？如果 Node.js 是 16 以下的版本，会出现这个问题。我们会做一下兼容。
另外，直播分享出来的链接是指哪个链接呢？

https://live.polyv.cn/watch/3447557
这个链接 密码 1234
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2022年11月8日(星期二) 上午10:43
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [polyv/live-js-sdk-demo-normal] 你这项目都跑不起来，跟直播分享出来的链接完全是两个版本 (Issue #5)
您好，跑不起来报的错误信息是缺少 swiper 这个依赖吗？如果 Node.js 是 16 以下的版本，会出现这个问题。我们会做一下兼容。
另外，直播分享出来的链接是指哪个链接呢？
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

您好，这个 demo 的功能确实跟 https://live.polyv.cn/watch/3447557 是不一致的。如果因为功能缺失导致无法满足您的需求，可以跟我们的售后或者 SDK 的对接人员提出。

已经增加 swiper 这个依赖，目前项目在 Node.js 12 也能跑起来了。

authors: heeroluo oEstate

repo: polyv/live-js-sdk-demo-normal


text:
misclassification of some  qualitative expression data

small issue on the wee 1 page
Qualitative gene expression

protein level
decreased during mitotic anaphase
western blot evidence used in manual assertion
Lucena R et al. (2017)

RNA level
increased during cellular response to oxidative stress
expression microarray evidence
Chen D et al. (2003)

but the filter option is  "non-experimental"
This means that these must be classified incorrectly earlier on,  because I don't think we can have non-experimental expression data.
It is possible this is from Artemis in which case epression data in Artemis needs changing to "experimental, LTP"

That annotation is from a contig file.  Should all the expression data in the contig files be LTP?  I'll fix that for tonight's load.

I'll fix that for tonight's load.

I've done that and I'll check tomorrow.

That's fixed now.

authors: ValWood kimrutherford

repo: pombase/website


text:
[Question] Plans to support Dove after move-build lands?

Hello!
Do you plan to develop and support Dove (with Diem) after move-build lands (https://github.com/diem/diem/pull/8775)?
It would be great to have only one build system for all the MoveVM platforms, so as a developer I would hope that either:

Pontem would switch to move-build, or
Pontem would continue supporting Diem :slightly_smiling_face:

Hi @villesundell ,
Thank you for your question.
The Pontem network goal is to be compatible with Diem, at least from smart contracts developers perspective. But at the same time, we are a less regulated network than Diem. Because of it we could have situations when we need our own compiler.
For example, we are now discussing development of our own macro system that will help us save compatibility with Diem and Move compiler and at the same time give users access to regulated functions in Diem (those functions which require treasury signature or diem root signature in Diem Standard Library).
So, for now, we are still going to develop and support Dove to cover our needs.

Thank you @borispovod, glad to hear Dove supports Diem in the future too, that means I can continue using that with TaoHe :slightly_smiling_face: Dove is a great build system, thank you for developing it! :heart:

authors: borispovod villesundell

repo: pontem-network/move-tools


text:
[Bug] The submenu in profile section

It should show Logout when it's logged in
Can you please assign this to me?

Will have to setup Redux for state management for thr project. This hasn't been done yet. I'll let you know by tomorrow.

Ok Sure. Thank you.

authors: Disha-Hati pooranjoyb

repo: pooranjoyb/popShop


text:
Password not masked

The password is not masked even if textpassword or numberpassword input type is selected

This is not expected. I will look into this.

Thanks a lot

Hello, what version of the library are you using and what Pin Field View are you using?

Got the issue, will fix it by EOD

is it fixed ?

Working on this. I could provide an easy fix or a proper fix. I am working on a proper one. I will provide the build next weekend. Couldn't meet the timeline since I was fixing another issue.

can you supply me with the easy fix for the moment ?

Sure. I will give it tomorrow.

Hi,
I have fixed this. You can find it in the below version of the library

compile 'com.poovam:pin-edittext-field:1.1.0'

It will be applicable to all password input types. Use it the same way you will mask a EditText

It is still not fixed through just input type of textPassword or numberPassword, You will need to use transformation method.
lineField.setTransformationMethod(new AsteriskPasswordTransformationMethod());
public class AsteriskPasswordTransformationMethod extends PasswordTransformationMethod {
@Override
public CharSequence getTransformation(CharSequence source, View view) {
return new PasswordCharSequence(source);
}
private class PasswordCharSequence implements CharSequence {
    private CharSequence mSource;
    public PasswordCharSequence(CharSequence source) {
        mSource = source; // Store char sequence
    }
    public char charAt(int index) {
        return '*'; // This is the important part
    }
    public int length() {
        return mSource.length(); // Return default
    }
    public CharSequence subSequence(int start, int end) {
        return mSource.subSequence(start, end); // Return default
    }
}

};

repo: poovamraj/PinEditTextField


text:
Clarify which color emojis are supported

TrueType provides at least:

sbix
CBDT + CBLC
svg
COLR v0 and v1

Swash supports everything but COLR v1 and the heic encoding for sbix

I'm pretty sure swash doesn't support SVG and heic. And only png in sbix.

Is there an SVG font sample I should try?

Sure: https://github.com/adobe-fonts/emojione-color

Yes, swash doesn’t support svg. It could expose the table but parsing and composition would be out of scope for the library. My understanding is that COLRv1 basically supercedes this anyway

authors: RazrFalcon dfrg jackpot51

repo: pop-os/cosmic-text


text:
[test] Test rig calibration against ground truth.

Tests should follow the same scenarios as for the localization issue poparteu/openMVG#61.
These tests rely on the dataset delivered by poparteu/popwaffle#5.

What is the status?

@fabiencastan let it open, I will close it after holidays with clean results.

done?

status?

authors: caymard fabiencastan lcalvet simogasp

repo: poparteu/openMVG

license: mit

license_source: bigquery


text:
老爹需求: 外来车辆支持多照片拍摄

外来照片支持多照片拍摄和保存

#3
重构拍摄逻辑，现在车队和外来车辆都支持多照片拍摄，点击拍摄可以连续拍摄，
拍摄完成后显示拍摄张数，点击张数显示照片列表，对照片支持查看、删除操作

repo: popingblink/dadNote


text:
initial_size<1 or final_size<1 should be an error

We currently enforce that Ne>0, but it should be Ne>=1. Unless there is some circumstance under which 0 < Ne < 1 makes sense?

What about people things like working in coalescent units? Fractional Ne values < 1 might make sense then? I don't think there's much to be gained from putting an upper limit on it.

Happy to leave it as it is, I just noticed that hypothesis was often (mostly?) generating graphs that won't be useful. Eg. parameters at the edge of their range, like ~1e±308.

That's fine I think. No point in being too prescriptive unless we're preventing errors that we know will happen (rather than preventing stuff we think probably doesn't make sense)

Ok, closing. :)

authors: grahamgower jeromekelleher

repo: popsim-consortium/demes-spec


text:
fix(docker/transport): wrap response-rewrite operation with valid status check #2705 [EE-4361]

closes #2705
Close EE-4361

/azp run

/azp run

/rebase

@hungdoo sorry for the necro of this PR but we are finally ready to merge it.
Can you please rebase your PR on the latest state of develop to fix all the auto checks?
If you don't have the time, we will open a PR with your changes, using your commit, and close this one.

authors: huib-portainer hungdoo xAt0mZ

repo: portainer/portainer

license: Zlib


text:
API /rank not working

When I try the following:
  "rankingSystem": {'MktCap'},
  "universe": "nasdaq100",
  "rankingMethod": 0,
  "numBuckets": 40,
  "minPrice": 3,
  "rebalFreq": "everyweek",
  "slippage": 0,
  "transType": "long",
  "benchmark": "SPY",
  "startDt": "2020-06-10",
  "endDt": "2022-06-10",
})

I get this error:
TypeError                                 Traceback (most recent call last)
File ~/opt/anaconda3/lib/python3.9/site-packages/p123api/client.py:549, in req_with_retry(req, max_tries, **kwargs)
    548 try:
--> 549     resp = req(**kwargs)
    550     if resp.status_code < 500:

File ~/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py:577, in Session.post(self, url, data, json, **kwargs)
    567 r"""Sends a POST request. Returns :class:`Response` object.
    568
    569 :param url: URL for the new :class:`Request` object.
   (...)
    574 :rtype: requests.Response
    575 """
--> 577 return self.request('POST', url, data=data, json=json, **kwargs)

File ~/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py:515, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
    503 req = Request(
    504     method=method.upper(),
    505     url=url,
   (...)
    513     hooks=hooks,
    514 )
--> 515 prep = self.prepare_request(req)
    517 proxies = proxies or {}

File ~/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py:443, in Session.prepare_request(self, request)
    442 p = PreparedRequest()
--> 443 p.prepare(
    444     method=request.method.upper(),
    445     url=request.url,
    446     files=request.files,
    447     data=request.data,
    448     json=request.json,
    449     headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict),
    450     params=merge_setting(request.params, self.params),
    451     auth=merge_setting(auth, self.auth),
    452     cookies=merged_cookies,
    453     hooks=merge_hooks(request.hooks, self.hooks),
    454 )
    455 return p

File ~/opt/anaconda3/lib/python3.9/site-packages/requests/models.py:321, in PreparedRequest.prepare(self, method, url, headers, files, data, params, auth, cookies, hooks, json)
    320 self.prepare_cookies(cookies)
--> 321 self.prepare_body(data, files, json)
    322 self.prepare_auth(auth, url)

File ~/opt/anaconda3/lib/python3.9/site-packages/requests/models.py:473, in PreparedRequest.prepare_body(self, data, files, json)
    472 try:
--> 473     body = complexjson.dumps(json, allow_nan=False)
    474 except ValueError as ve:

File ~/opt/anaconda3/lib/python3.9/json/__init__.py:234, in dumps(obj, skipkeys, ensure_ascii, check_circular, allow_nan, cls, indent, separators, default, sort_keys, **kw)
    233     cls = JSONEncoder
--> 234 return cls(
    235     skipkeys=skipkeys, ensure_ascii=ensure_ascii,
    236     check_circular=check_circular, allow_nan=allow_nan, indent=indent,
    237     separators=separators, default=default, sort_keys=sort_keys,
    238     **kw).encode(obj)

File ~/opt/anaconda3/lib/python3.9/json/encoder.py:199, in JSONEncoder.encode(self, o)
    196 # This doesn't pass the iterator directly to ''.join() because the
    197 # exceptions aren't as detailed.  The list call should be roughly
    198 # equivalent to the PySequence_Fast that ''.join() would do.
--> 199 chunks = self.iterencode(o, _one_shot=True)
    200 if not isinstance(chunks, (list, tuple)):

File ~/opt/anaconda3/lib/python3.9/json/encoder.py:257, in JSONEncoder.iterencode(self, o, _one_shot)
    253     _iterencode = _make_iterencode(
    254         markers, self.default, _encoder, self.indent, floatstr,
    255         self.key_separator, self.item_separator, self.sort_keys,
    256         self.skipkeys, _one_shot)
--> 257 return _iterencode(o, 0)

File ~/opt/anaconda3/lib/python3.9/json/encoder.py:179, in JSONEncoder.default(self, o)
    161 """Implement this method in a subclass such that it returns
    162 a serializable object for ``o``, or calls the base implementation
    163 (to raise a ``TypeError``).
   (...)
    177
    178 """
--> 179 raise TypeError(f'Object of type {o.__class__.__name__} '
    180                 f'is not JSON serializable')

TypeError: Object of type set is not JSON serializable

During handling of the above exception, another exception occurred:

ClientException                           Traceback (most recent call last)
Input In [31], in <cell line: 1>()
----> 1 rank_perf = client.rank_perf({
      2   "rankingSystem": {'MktCap'},
      3   "universe": "nasdaq100",
      4   "rankingMethod": 0,
      5   "numBuckets": 40,
      6   "minPrice": 3,
      7   "rebalFreq": "everyweek",
      8   "slippage": 0,
      9   "transType": "long",
     10   "benchmark": "SPY",
     11   "startDt": "2020-06-10",
     12   "endDt": "2022-06-10",
     13 })

File ~/opt/anaconda3/lib/python3.9/site-packages/p123api/client.py:394, in Client.rank_perf(self, params)
    388 def rank_perf(self, params: dict):
    389     """
    390     Ranking system performance
    391     :param params:
    392     :return:
    393     """
--> 394     return self._req_with_auth_fallback(
    395         name='ranking system performance',
    396         url=self._endpoint + RANK_PERF_PATH,
    397         params=params
    398     ).json()

File ~/opt/anaconda3/lib/python3.9/site-packages/p123api/client.py:133, in Client._req_with_auth_fallback(self, name, method, url, params, data, headers, stop)
    131 if self._session.headers.get('Authorization') is not None:
    132     if method == 'POST':
--> 133         resp = req_with_retry(
    134             self._session.post,
    135             self._max_req_retries,
    136             url=url,
    137             json=params,
    138             verify=self._verify_requests,
    139             timeout=self._timeout,
    140             data=data,
    141             headers=headers
    142         )
    143     else:
    144         req_type = self._session.delete if method == 'DELETE' else self._session.get

File ~/opt/anaconda3/lib/python3.9/site-packages/p123api/client.py:554, in req_with_retry(req, max_tries, **kwargs)
    552     except Exception as e:
    553         if tries + 1 == max_tries:
--> 554             raise ClientException('Cannot connect to API', exception=e)
    555     tries += 1
    556 return resp

ClientException: Cannot connect to API

Anyone know how to fix this?

This is wrong: "rankingSystem": {'MktCap'}, rankingSystem parameter can be an integer (ranking system ID) or a string (ranking system name).


text:
500 Error with wrong parent

Hello.
I use latest stable version with Docker setup.
I found that internal sqlite table does not use any constraints on parent column of table comments which may be a problem in two cases.

DB is corrupted and one of the parents is not valid.
Someone trying to add comment with invalid parent.

I tried second case with curl and got 500 Error on client and stacktrace below on server
2022-01-29 22:57:29,824 ERROR: POST /new
Traceback (most recent call last):
  File "/isso/lib/python3.8/site-packages/isso-0.12.5-py3.8.egg/isso/__init__.py", line 147, in dispatch
    response = handler(request.environ, request, **values)
  File "/isso/lib/python3.8/site-packages/isso-0.12.5-py3.8.egg/isso/views/comments.py", line 88, in dec
    return func(self, env, req, *args, **kwargs)
  File "/isso/lib/python3.8/site-packages/isso-0.12.5-py3.8.egg/isso/views/__init__.py", line 45, in dec
    return func(cls, env, req, *args, **kwargs)
  File "/isso/lib/python3.8/site-packages/isso-0.12.5-py3.8.egg/isso/views/comments.py", line 307, in new
    rv = self.comments.add(uri, data)
  File "/isso/lib/python3.8/site-packages/isso-0.12.5-py3.8.egg/isso/db/comments.py", line 57, in add
    if ref.get("parent") is not None:
AttributeError: 'NoneType' object has no attribute 'get'

Steps to reproduce:

Start Docker instance of isso (on http://127.0.0.1:8080/ for example)
POST request http://127.0.0.1:8080/new?uri=%2Fbase.html with valid comment and wrong parent. I used "Copy as cURL" button on Firefox Web Tools and replaced null with some invalid id (42 for example)

@AlekseyLobanov thank you for your report.
Would you mind working on a fix and submitting a PR?

Related: https://github.com/posativ/isso/issues/531

@AlekseyLobanov would you like to work on a PR?

Copying over from #531, quoting @budui

I am porting isso from Python to Go. While testing I noticed that if I specify a wrong parent(existed but different thread) for the new comment, the new comment will be added successfully but can't be retrievaled with uri.

Maybe we need to check whether the tid of new comment and parent's tid are consistent
https://github.com/posativ/isso/blob/6092881bb205c999a8f7f086dd5d20f686d641ea/isso/db/comments.py#L49-L52

Tracked in https://github.com/posativ/isso/issues/885

repo: posativ/isso


text:
Set a minimal layout for the homepage

[x] Set the information that will be present on the home page
[x] Set initial colors
[ ] Set screen elements
[ ] Set the position of components
[x]  Set typography

Background color: #0d1117
Font color: #768597
Font type: poppins
Font size: 14px

Use the connected dots effect from particles.js.
Insert logo and slogan in the middle of the screen.
Slogan: Your financial freedom starts here!


text:
If a requirements.txt is found, only inspect those packages for dependencies

Request:

Hmm, shinylive appears to scan every .py file in the directory to figure out what pyodide needs to install, even scripts that aren't used at runtime. Like sometimes I'll have a helper script that builds a database (in this case, using sqlalchemy) but the actual shiny app only needs built-in sqlite3.
I hacked around this by making a stripped-down branch and exporting that, but it could be nice if either the build process honored requirements.txt (in a minimalistic sense) or if somehow it only scanned app.py and what it imports? or some other solution to ignore certain files when figuring this out.

My reply:

... correct. py-shinylive currently scans every that app.json provides. (Which is every file.)  Link
It seems fair to me that if a requirements.txt is found, then only those packages are inspected.

For anyone else who stumbles upon this, the easiest way to sidestep having shinylive attempt to load packages in a requirements.txt is to rename the file to either requirements-dev.txt or another name. You can see an example app using requirements-dev.txt working.

Alternatively, feel free to check out a demo app using requirements.txt instead of requirements-dev.txt failing if just shinylive is present due its dependency on the lzstring package, which lacks a Pyodide-compiled Python package wheel available.

 ValueError: Can't find a pure Python 3 wheel for 'lzstring>=1.0.4'.
Traceback (most recent call last):
  File "<exec>", line 368, in _start_app
  File "<exec>", line 302, in _install_requirements_from_dir
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 573, in install
    await transaction.gather_requirements(requirements)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 333, in gather_requirements
    await gather(*requirement_promises)
  File "/lib/python3.10/asyncio/futures.py", line 284, in __await__
    yield self  # This tells Task to wait for completion.
  File "/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup
    future.result()
  File "/lib/python3.10/asyncio/futures.py", line 201, in result
    raise self._exception
  File "/lib/python3.10/asyncio/tasks.py", line 234, in __step
    result = coro.throw(exc)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 340, in add_requirement
    return await self.add_requirement_inner(Requirement(req))
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 448, in add_requirement_inner
    await self.add_wheel(wheel, req.extras)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 463, in add_wheel
    await self.gather_requirements(wheel.requires(extras))
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 333, in gather_requirements
    await gather(*requirement_promises)
  File "/lib/python3.10/asyncio/futures.py", line 284, in __await__
    yield self  # This tells Task to wait for completion.
  File "/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup
    future.result()
  File "/lib/python3.10/asyncio/futures.py", line 201, in result
    raise self._exception
  File "/lib/python3.10/asyncio/tasks.py", line 232, in __step
    result = coro.send(None)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 337, in add_requirement
    return await self.add_requirement_inner(req)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 435, in add_requirement_inner
    wheel = find_wheel(metadata, req)
  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 303, in find_wheel
    raise ValueError(
ValueError: Can't find a pure Python 3 wheel for 'lzstring>=1.0.4'.
See: https://pyodide.org/en/stable/usage/faq.html#micropip-can-t-find-a-pure-python-wheel
You can use `micropip.install(..., keep_going=True)`to get a list of all packages with missing wheels.

authors: coatless schloerke

repo: posit-dev/py-shinylive


text:
Add Font Awesome 5 icons.

This PR adds latex commands for FontAwesome5 free icons. Address issue #206.
Obviously, there is not need to use these new icons associated with the well known frameworks all the time. However, it could add a nice touch to your CV. Here is just an example of how some new icons look like:

This PR is not based on official fontawesome5  package for LaTeX. Instead, it defines commands based on icons.json metadata and *.otf files for fonts which are available as a part of Font Awesome for Desktop. It also provides a script used to generate these definitions, which could be used for future releases of Font Awesome. This is analogues to the way current fontawesome.sty has been generated with the use of scripts from latex-fontawesome project.
Steps in order to use icons from so-generated fontawesome5.sty file:

Use search on the official website to find icon by name or related tags.

Use unicode of the desired icon to search for latex definition in fontawesome5.sty.

Copy and paste the associated definition in your latex document.

Thank you - I think many of us have made this or similar fixes over the years as posquit0's had other priorities. I have push access now to help maintain Awesome-CV; so I went with my old PR for this (#235/#344) for no reason other than my own familiarity, that I know it's been working for me.
Please do ping me/open another PR if something's still not right or I missed something though! Cheers.

authors: IlyaKisil OJFord


text:
feat: Add optional feature to decompress encoded request body

This PR addresses #577
Because of Zip Bomb attacks this feature is disabled by default and should only be turned on when running httpbin locally as follows
docker run --env UNSAFE_BODY_DECOMPRESSION=1 -p 80:80 kennethreitz/httpbin
There are valid use cases where a server is going to receive payloads only from a trusted source that will be compressed and this can help testing around those.

Good idea

authors: Starmania raphaeleidus

repo: postmanlabs/httpbin

license: isc


text:
WEBFN-2593 added language support for postman json

The PR is to implement a new variation of JSON language know as postman_json to support different features of as mentioned below

Postman variables in JSON
Tokenization of postman variables for syntax highlighting
Formatting of the JSON with postman variables
Error handling

PR 是实现 JSON 语言的新变体，称为 postman_json，以支持下面提到的不同功能

JSON 中的 Postman 变量
用于语法突出显示的邮递员变量的标记化
使用 postman 变量格式化 JSON
错误处理

bro  How to use?

The PR is to implement a new variation of JSON language know as postman_json to support different features of as mentioned below

Postman variables in JSON
Tokenization of postman variables for syntax highlighting
Formatting of the JSON with postman variables
Error handling

bro How to use?

repo: postmanlabs/monaco-editor


text:
[Queries] Synchronous errors in the query function are not caught

Let's take for example the following query, with a typo in the query function which leads to a synchronous error:
const { data } = useQuery({
  key: () => ['items', route.params.id],
  query: () => {
    const id = routeZ.params.id  // Typo here, `routeZ` is undefined
    return fetch(id)
  }
})

When the query is ran, the error is not passed to the relevant catch block, and the query remains in a loading state.
For information, as soon as this error is made asynchronous, the error is caught and the query is set to the error state as usual:
const { data } = useQuery({
  key: () => ['items', route.params.id],
  query: async () => {
    const id = await routeZ.params.id // The error is made asynchronous => it is caught and the query state updated
    return fetch(id)
  }
})

Yeah, i noticed while testing. I think this is fine because only async methods make sense and the function shouldn’t throw unexpected errors, only reject.

For DX, we could maybe catch this during dev only though

I agree, that would be useful to log it in dev mode.
Alternatively, here is a try/proposition to directly handle synchronous errors (it makes the code less elegant though): https://github.com/posva/pinia-colada/pull/70

This would be very unintuitive for the regular users, if error is handled in some cases and not in others, from my own codebase I have few cases like:
query: (to) => getData(Number(to.params.id)),

getData returns a promise so it itself is safe, but imagine if I had some validation for id which throws an error, popular with zod type of libraries, this is just waiting for production issues to happen.

authors: ElisePatrikainen minht11 posva

repo: posva/pinia-colada


text:
Pathogen support

Be good to support Pathogen too since I am not sure about install vundle.
Thank you,

Hi @kaihendry I've never used Pathogen before. Doesn't it work out of the box?
The format is quite standard I'd say

authors: kaihendry posva

repo: posva/vim-vue


text:
Regression in TypeScript 5.4: "Excessive stack depth comparing types" errors

An unknown breaking change in TypeScript v5.4 is causing errors:

The first stable release that triggers this issue is v5.4.2
TypeScript version downgraded to v5.3.3 in main branch as a temporary fix: 8843a718939021ff256afe25317169a2675ff84b
All 47 errors are "TS2321: Excessive stack depth comparing types..."

src/natural-number/modulo.ts:15:46 - error TS2321: Excessive stack depth comparing types '_$divide<A_LIST, B_LIST, "MODULO">' and 'readonly Digit[]'.

15   MODULUS_LIST extends DigitList.DigitList = DigitList._$modulo<A_LIST, B_LIST>,
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 47 errors in 10 files.

Errors  Files
     3  src/digit-list/divide.ts:70
     8  src/integer/divide-by.ts:7
     8  src/integer/divide.ts:61
     1  src/integer/modulo.ts:31
     1  src/integer/remainder.ts:22
     8  src/list/range.ts:20
     1  src/list/reverse.ts:30
     8  src/natural-number/divide-by.ts:7
     8  src/natural-number/divide.ts:47
     1  src/natural-number/modulo.ts:15

CI run error log: https://github.com/poteat/hkt-toolbelt/actions/runs/8399043832/job/23004659944

These errors were previously masked in the CI runs by a failing linter workflow.

First failing CI run: https://github.com/poteat/hkt-toolbelt/actions/runs/8309157179/job/22740200012
Linter build scripts fixed here (cause is unrelated to this issue): https://github.com/poteat/hkt-toolbelt/commit/9160d65dbfc9b931b38f3b16fc89e17eac1e9b3f

Possible cause: https://github.com/microsoft/TypeScript/pull/56004
Possible solution: https://github.com/sindresorhus/type-fest/pull/807

Fixed by #85

authors: MajorLift poteat

repo: poteat/hkt-toolbelt


text:
Remove the Trigger base class from Event and Lock

These objects are not triggers - they cannot be yielded as their prime method takes too many arguments.
Instead, they have methods which return triggers - Event is used as yield event.wait(), and Lock is used as yield lock.acquire().

FIXME removed

repo: potentialventures/cocotb


text:
Doc note: pouchdb-server must be installed w/o sudo.  Use NVM

Use NVM.  https://github.com/creationix/nvm

npm issue, not a pouchdb-server issue

authors: MichaelJCole nolanlawson

repo: pouchdb/pouchdb-server


text:
Enhance README with headers

Looks fantastic 🎉

They can even be linked! 🔗

Thank you.

repo: povils/phpmnd


text:
Add test to verify that Application::VERSION match the latest git tag

Hello,
It's almost always the case when we use an hard coded version (with Application::VERSION) to forget to bump it before to push a new release !
To avoid in future to avoid such case, I propose this PR that add a TestCase that is run by CI only when you'll push a tag to repository.
When you push code to a branch, PHPUnit will run this command vendor/bin/phpunit --exclude-group tags
PHPUnit 9.6.15 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.14
Configuration: /shared/backups/forks/phpmnd/phpunit.xml.dist
Random Seed:   1704792472

..........................................                        42 / 42 (100%)

Time: 00:00.231, Memory: 18.00 MB

OK (42 tests, 72 assertions)

But when you'll push a tag to repo, PHPUnit will run all tests including this new one (i.e) :
PHPUnit 9.6.15 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.14
Configuration: /shared/backups/forks/phpmnd/phpunit.xml.dist
Random Seed:   1704792623

......................F....................                       43 / 43 (100%)

Time: 00:00.266, Memory: 20.00 MB

There was 1 failure:

1) Povils\PHPMND\Tests\Application\ApplicationTest::testApplicationVersionInstalled
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'phpmnd version g6b12352 by Povilas Susinskas'
+'phpmnd version 3.4.0 by Povilas Susinskas'

/shared/backups/forks/phpmnd/tests/Application/ApplicationTest.php:38

FAILURES!
Tests: 43, Assertions: 73, Failures: 1.

Thank you @llaville. This PR totaly makes sense to me as I all the time forgot to update version and I also don't have permission to amend code without pull request.
As an alternative solution I could suggest to rely on composer-runtime-api v2 which will automatically fetch version from composer.lock on the consumers side. See https://github.com/povils/phpmnd/pull/176
I'm okay to merge your PR and release 3.4.1 version and after that we could merge https://github.com/povils/phpmnd/pull/176 and release 3.5.0
WDYT @llaville ?
cc/ @exussum12, @kubawerlos

@sidz I'm agree with you about using composer-runtime-api v2. I did it myself one my project like (https://github.com/llaville/php-compatinfo/blob/master/src/Presentation/Console/Application.php#L61-L64)
But in this case you must set the version on Application class constructor and do not use anymore the Application::VERSION constant.
Warning : The TestCase i've introduced with this PR won't work with composer-runtime-api

@llaville yeah, that exactly what I did in https://github.com/povils/phpmnd/pull/176

Merged.
Thanks @llaville

authors: llaville sidz


text:
Switch to OpenTK GameWindow instead of WinForms+GLControl

Tested, works with both visual tests and osu! on Linux. Fixes weird bug on Linux where several rows of pixels on the top were black. Requires testing on Windows, since all input was switched to OpenTK and I hear that's wonky on Windows.

TODO: Add SDL native libs for Window's sake.

A note from my end: We need to make sure that exclusive fullscreen works with this on windows machines with intel integrated graphics. This should be the case if GameWindow has its OpenGL content as a top-level form, but not if it uses any level of nesting.

repo: ppy/osu-framework


text:
Make the float parses culture invariant.

This allows the tests to pass on my machine (I have the german lang pack installed. That results in , and . beeing swapped when it comes to decimals.)

Make the float.Parse calls culture invariant.

Nice catch.

authors: miterosan peppy


text:
Compress a folder to a zip file before uploading it

When a user uploads a folder, it could potentially contain a very long list of files.
My suggestion is to allow the compression of a directory to a zip file and upload the zip file alone.
Thanks!

This plugin should do the trick: https://github.com/tzsk/filepond-plugin-zipper

Thanks! I Will look into it

authors: YotYot rikschennink

repo: pqina/filepond


text:
IJCK R1C9

"... hydrogen/syngas [11] and ethanol [12]. In all four cases, they converted numerous
experimental datasets from the literature into the ReSpecTh standard."
Extended verion:
"... hydrogen/syngas [11], methanol and formaldehyde [C. Olm, T. Varga, É. Valkó, H. J. Curran, T.
Turányi: Uncertainty quantification of a newly optimized methanol and formaldehyde combustion
mechanism,
Combustion and Flame, in press] and ethanol [12]. In all five cases, they converted numerous
experimental datasets from the literature into the ReSpecTh standard. The database currently
contains 93240 experimental data points in 1376 XML-format data files
[http://respecth.chem.elte.hu/respecth/reac/CombustionData.php]".

Some work in 26ed03081b8ad99a1cabff3bc4c150124925457e
Needs response text and the "four" needs to be "five"

repo: pr-omethe-us/pyked-papers


text:
sku counter in get_customers not counting unique skj

Hello, amazing tool!
I tried to use it for my business but found that the columns skus (which I understood to be the unique sku purchased for each customer) it does not aggregate ass such.
example using  .load_sample_data() for customer 12347 has 103 different skus, but tool columns skus reports 7

Thanks for reporting this. I'll take a look and issue a fix shortly.

@eyalbre Thanks again for reporting this. I've fixed this and deployed a new version (0.42.4) which should resolve the problem.
Cheers,
Matt

Wow! that was quick!
Thank you very much,
By the way amazing blog, I have been reading some articles and learned a lot!

No problem. Thanks again for reporting it.

authors: eyalbre practical-data-science

repo: practical-data-science/ecommercetools


text:
Tests for requests.get(…)/requests.post(…) fail

These tests fail https://github.com/practicalswift/Pythonic.swift/blob/16c7325858f313dc2b0da044e24a5def44b7be34/src/Pythonic-test.swift#L1029-L1043

Fixed!


text:
Ios getting last stored value and replace all other key value with last stored value

In ios i have stored 2 value first store app_id (key), and value is 12345. and second value stored as pass user_pass (key) and value is 12345_pass. when i close app and again open i am getting both key with 12345_pass as value.
I am try to solve but i am not getting any solution. Can you plz help us to solve out this issue.
Thanks.

@Krishna25Vrinsoft please share device details.

/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
*/
#import "SecureKeyStore.h"
#import <Cordova/CDV.h>
@implementation SecureKeyStore

(void) set:(CDVInvokedUrlCommand*)command
{
CDVPluginResult* pluginResult = nil;
NSString* key = [command.arguments objectAtIndex:0];
NSString* value = [command.arguments objectAtIndex:1];
@try {
KeychainWrapper* keychain = [[KeychainWrapper alloc]init];
[keychain mySetObject:value forKey:(__bridge id)(kSecValueData)];
[keychain writeToKeychain];
//[[NSUserDefaults standardUserDefaults]setBool:true forKey:key];
[[NSUserDefaults standardUserDefaults] setObject:value forKey:key];
[[NSUserDefaults standardUserDefaults]synchronize];

//NSLog(@"%@",[[NSUserDefaults standardUserDefaults] objectForKey:key]);

pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"Key saved to keychain successfully"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
@catch(NSException* exception){
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString: @"Exception: saving key into keychain"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
}

(void) get:(CDVInvokedUrlCommand*)command
{
CDVPluginResult* pluginResult = nil;
NSString* key = [command.arguments objectAtIndex:0];
@try {
//NSLog(@"%@",[[NSUserDefaults standardUserDefaults] objectForKey:key]);

NSString *value = [[NSUserDefaults standardUserDefaults] objectForKey:key];

pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:value];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];

}
@catch(NSException* exception){
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString: @"Exception: fetching key from keychain"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
}

(void) remove:(CDVInvokedUrlCommand*)command
{
CDVPluginResult* pluginResult = nil;
NSString* key = (NSString*)[command.arguments objectAtIndex:0];
@try {
[[NSUserDefaults standardUserDefaults] removeObjectForKey:key];
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"Key removed successfully"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
@catch(NSException *exception) {
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString: @"Exception: Could not delete key from keychain"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
}

@end
=================================================================
Replace SecureKeyStore.m file with above code

@pradeep1991singh Is this correct? If it's correct than can you please update plugin?

@parthdevmurari91 It seems your solution is not using keychainWrapper, it just using NSUserDefaults which is not recommended to use for sensitive data.

@Krishna25Vrinsoft
Use latest release v1.5.0 that should fix the issue. And let me know if you still facing same issue.
Thanks.


text:
Input param validation

Q
A

Bug fix?
no

New feature?
yes

Tests pass?
yes

Fixed issues
#number

Added input parameter validation

created validator.js file with function for validation
validated input parameters in pace.js

input parameter feature

repo: pranavacharya/pacecal


text:
Frontend Project Yoga-Info's "Follow Us On Instagram" Section Button Design Improvement

Describe the Feature you want to end
The design of this section is nice but it can be improved by working on the design of the button. Through the adjustment on styling of this button, I can make this section look even better.
Expected behavior
Attractive button styling
Screenshots (optional)
Current Design

Expected Updated Design

Additional context (optional )
N/A

@MohitGupta121 Kindly assign me this issue

repo: pranjay-poddar/Dev-Geeks


text:
Access token screen immediately closes

I am attempting to access my google drive and I need to get the access token. I am using the token request url, but as soon as I click "Allow" on the google permission screen, the token screen appears, but it immediately closes, so I can't copy the token key.
I decided to screen capture the process, so I could pause and see the key. That worked and I was able to access my drive, but no matter what I have attempted, the token key display page will not stay open long enough for me to copy the key from the screen.
I was lucky with one of my subsequent attempts using the screen capture process mentioned above, but the token is so long I have not been able to type it in correctly since. I need to copy/paste that token. Does anyone have any ideas what is/isn't happening here?
I am using windows 10 machine, chrome browser of course.
This is the url I am using:
 https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367116221053-7n0vf5akeru7on6o2fjinrecpdoe99eg.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=state
it works, and for a split second, you can see the token, but the entire page then closes.
Any assistance, insight, suggestions would be greatly appreciated.

not sure what the deal was here, but a work around i found, was strangely enough, was to use IE browser instead of chrome.  Crazy I know, but access token window/tab stays open.

repo: prasmussen/gdrive


text:
updating imported files rather than recreating them

Hi
Maybe I'm missing something, but I'd like to sync a folder and do an import.
I can easily script that with the import command, but the import command creates new files on every run. Rather than update existing files.
Is there any way I can get this working?

+1

+1

Just to update, actually this feature exists. It's just split in 2.
import and update - so once you've apply import to your document, you get an ID, just need to simply update the doc you want with it's ID and it will just do that -  update your google doc/spreadsheet/presentation/etc. without creating a new one.

authors: andaag hansenanders yashasolutions


text:
🛑 ChatGPT Beyond 2021 is down

In 3bd0585, ChatGPT Beyond 2021 (https://chatgpt-beyond-2021.onrender.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGPT Beyond 2021 is back up in 50f5d59 after 3 minutes.

repo: prateekralhan/status


text:
🛑 ChatGPT Beyond 2021 is down

In 427d1da, ChatGPT Beyond 2021 (https://chatgpt-beyond-2021.onrender.com/) was down:

HTTP code: 503
Response time: 313 ms

Resolved: ChatGPT Beyond 2021 is back up in 6c9c40d after 24 days, 18 hours, 59 minutes.


text:
Issue 234: Implement index stream

Change log description
Add support to the index stream.
Purpose of the change
Fix #234
What the code does
Naming

Record: Fixed size(4KB) event written to the stream. A record contains: type code(4 bytes), entries length(4 bytes), data length(4 bytes) entries, entries and data.
Entry: A key value pair(&'static str, u64) . Key is a string that user defines, value is a u64 that is monotonically increasing.
Label: A set of entries. User specifies a label struct that has a number of fields, the name of the field is the entry key and the value is entry value. This impl provides a procedure macro called label that can parse the struct to an array of entries.

Index writer:

append(data, label): append the given label and data to the stream. It is guaranteed that the new label has all the exsiting entries and their values are not less than the current values.
append_conditionally(data, label, condition_label): same as above, plus a given condition label that has to be exactly the same as the latest label in the stream
flush(): flush appends
truncate(offset): truncate to a offset.

Index reader:

search_offset(entry: (key, value)): search for the offset of the first record that has a matching key and value that is equal to or larger than the target value
read(): read the next record. Index reader maintains a current offset.
seek(pos): seek to the give offset.
first_record(): first readable record
last_record(): latest record
head_offset():
last_offset():

How to verify it
Tests should pass.

Codecov Report

Merging #277 (a8e79c0) into master (8e50816) will increase coverage by 6.96%.
The diff coverage is 91.13%.

@@            Coverage Diff             @@
##           master     #277      +/-   ##
==========================================
+ Coverage   68.76%   75.72%   +6.96%
==========================================
  Files          26       45      +19
  Lines        6159    11382    +5223
==========================================
+ Hits         4235     8619    +4384
- Misses       1924     2763     +839

Impacted Files
Coverage Δ

src/byte/writer.rs
87.50% <ø> (ø)

src/event/reader_group.rs
91.35% <ø> (ø)

src/lib.rs
88.23% <ø> (ø)

src/event/reader.rs
74.02% <28.57%> (ø)

src/index/mod.rs
96.77% <96.77%> (ø)

src/byte/reader.rs
97.02% <100.00%> (ø)

src/client_factory.rs
98.82% <100.00%> (ø)

src/segment/reader.rs
68.52% <100.00%> (ø)

wire_protocol/src/commands.rs
89.74% <0.00%> (-9.30%)
:arrow_down:

controller-client/src/model_helper.rs
55.03% <0.00%> (-8.93%)
:arrow_down:

... and 34 more

repo: pravega/pravega-client-rust


text:
make update_checker an optional dependency

Address #610 and the comments
for commit 209b6e506b3c3b0e33d697542d114f6bb51a5e5b.
Also move update_checker module to extras_require

@flokli thanks for the PR. One question, does this still install update_checker by default? If not, can you think of a way such that it does?

Not automatically, but you can reference praw as dependency together with the desired extra feature:

These requirements will not be automatically
installed unless another package depends on
them (directly or indirectly) by including the
desired “extras” in square brackets after the
associated project name. (Or if the extras were
listed in a requirement spec on the EasyInstall
command line.)

Unfortunately that doesn't meet this requirement:

In other words pip install praw should include update_checker.

If there is some command-line argument that can be passed to dynamically remove update_checker from the requirements list, I am all for that.

I don't think thats possible with setuptools. Either its a required dependency (which will then always be required), or an extra feature, whose dependencies will be pulled in if you explicitly request it (but the feature be enabled anyways if the needed module is installed).

I don't think thats possible with setuptools. Either its a required dependency (which will then always be required), or an extra feature.

Bummer. Can you update your PR just to include the conditional include parts? That way someone who is re-packaging PRAW can selectively remove update_checker, but people installing via PRAW always get the update_checker?

I updated the PR.

Thanks! Great work! And thanks for trying to get it to work with setup.py. I appreciate the efforts.

authors: bboe flokli

repo: praw-dev/praw


text:
adding mobileResize to example creative

I believe this is still needed for the mobile PUC scenario. It was there for the Send-All-Bidders example, but missing for Sent-Top-Bid.

good thing you pushed back @muuki88 - turns out there's a reason it's not in the Send-Top-Bid creative -- the TARGETINGMAP covers the use case. So changing this PR to explain the existence of mobileResize in the Send-All-Bids creative.


text:
Upgrade to Ubuntu 22.04

Mostly checking for now. Even if this goes through, we need to enable swak4Foam again.

Update: This currently fails building the CalculiX adapter, because of https://github.com/precice/calculix-adapter/issues/79.
I have already followed the same approach as in https://github.com/precice/calculix-adapter/blob/4496e8f160ec121481653baf44ec032813409ac6/.github/workflows/ubuntu_build.yml, but this commit is not yet in master, which we are building in the VM. So, waiting for a new CalculiX adapter version before further investigating.

When trying to test code_aster, me and @IshaanDesai encountered some issues building it for Ubuntu 22.04. Investigating, but this is a bit out of scope for us.

Replaced by https://github.com/precice/vm/pull/94, for Ubuntu 24.04.

repo: precice/vm


text:
rattler-build-ic way to test the existence of installed files?

I wonder if there is a way to implement a for loop with filters?
I have:
  qemu_keymaps: ${{ [
      "ar", "bepo", "cz", "da", "de", "de-ch", "en-gb", "en-us", "es", "et", "fi", "fo", "fr", "fr-be", "fr-ca",
      "fr-ch", "hr", "hu", "is", "it", "ja", "lt", "lv", "mk", "nl", "no", "pl", "pt", "pt-br", "ru", "th", "tr"
      ] | join(' ') }}

(I do not seem to be able to declare an array directly in context section)
I tried:
     tests:
      - package_contents:
          files:
            - include/qemu-plugin.h
            - share/qemu/trace-events-all
            - ${{ qemu_keymaps | split(' ') | list | replace('^', 'share/qemu' }}
            - bin/qemu-user-execve-aarch64

in the hope that it would insert a list in the files list
I also tried to use a for loop, but likely need to do a bash-c '...'?
- for bin in ${{ qemu_bins | split(" ") | list }}; do test -f ${QEMU_LD_PREFIX}/${bin} done;

Tricky question.
We have one implicit underspecified behavior in hte requirements section where lists are always flattened.
We could potentially do something like this in the files section, too, so that if the Jinja emits something that looks like a valid YAML list, it would be flattened into the list.
E.g.
- ${{ ["foo", "bar"] }}
# becomes
- ["foo", "bar"]
# and then flattened to
- foo
- bar

However, logic like this could also be easily expressed as a Python script in the tests...

I feel it would be a useful feature to add the behavior to the package_contents.{files,includes}. It is often the case that libraries provide lots of includes and shares. I usually organize then in arrays or hashes, in combination with outputs to select exactly what needs to be in the given package. But maybe, I just have a not so optimal way of thinking about it
Note that I seem to be hinting that this behavior would also be beneficial in the outputs.package.files (not sure about the syntax) ;P

Yes, I can see the usefulness. Note that globs are perfectly OK (e.g. foo/*.sh or foo/{bar,baz}.sh etc. should work fine. Useful for the outputs.files but less useful for testing all with a certain prefix.
The downside of this idea is that the recipe becomes less statically known / validated.

Yes, I can see the usefulness. Note that globs are perfectly OK (e.g. foo/*.sh or foo/{bar,baz}.sh etc. should work fine. Useful for the outputs.files but less useful for testing all with a certain prefix.
The downside of this idea is that the recipe becomes less statically known / validated.

Right, if you select the files, then you would less likely need to test their existence in the installed package. In this particular case, I failed to get the common build to work, so I build within each package, so I can't select the files. I should resolve this little nag today with the python call and point you to the recipe for your review/suggestions. Thank you

FYI, I made progress, but it is quite a bit trickier then I thought, there seems to be update of " and ', which create some difficult diagnosis of python failure, but this worked:
          python -c "import os; [os.path.exists(os.path.join(os.environ['QEMU_LD_PREFIX'], bin)) for bin in '${{ qemu_bins }}'.split()]"

gives:
 │ │ │ Testing commands:
 │ │ │ + python -c 'import os; [os.path.exists(os.path.join(os.environ['\''QEMU_LD_PREFIX'\''], bin)) for bin in '\''bios.bin bios-256k.bin bios-microvm.bin qboot.rom vgabios.bin vgabios-cirrus.binvgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.b
 │ │ │ in vgabios-virtio.bin vgabios-ramfb.bin vgabios-bochs-display.bin vgabios-ati.bin openbios-sparc32 openbios-sparc64 openbios-ppc QEMU tcx.bin QEMU cgthree.bin pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom pxe-pcnet.rom pxe-rtl8139.rom pxe-
 │ │ │ virtio.rom efi-e1000.rom efi-eepro100.rom efi-ne2k_pci.rom efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom efi-e1000e.rom efi-vmxnet3.rom qemu-nsis.bmp multiboot.bin multiboot_dma.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin s390-cc
 │ │ │ w.img s390-netboot.img slof.bin skiboot.lid palcode-clipper u-boot.e500 u-boot-sam460-20100605.bin qemu_vga.ndrv edk2-licenses.txt hppa-firmware.img hppa-firmware64.img opensbi-riscv32-generic-fw_dynamic.bin opensbi-riscv64-generic-fw_dynami
 │ │ │ c.bin npcm7xx_bootrom.bin vof.bin vof-nvram.bin bamboo.dtb canyonlands.dtb petalogix-s3adsp1800.dtb petalogix-ml'\''.split()]'

of course, this is not a 'test' but it should only take the addition of all() || exit 1?

Sorry, I think I wasn't clear enough.
There are two ways this could be done right now:
tests:
  # note that this is a YAML block element
  - script: |
      {% set qemu_libs = ["foo", "bar"] %}
      {# or any other bash like code #}
      {% for lib in qemu_libs %}
        test -f /usr/lib/qemu/${{ lib }}.so
      {% endfor %}

The other way would be with a Python script like this:
tests:
  - script:
      interpreter: python
      content: |
        from pathlib import Path
        qemu_libs = ["foo", "bar"]
        for lib in qemu_libs:
            assert Path(f"/usr/lib/qemu/{lib}.so").exists()
      requirements:
        run:
          - python

Although it is possible that option 1 is currently broken.

My initial version had a little bug in the jinja. We configured Jinja comments to look like #{{ I am a comment }}. But we can also just use a bash comment # i am a comment.

Oh, I see. Option 1 probably works, but I want to define the array (or string with all the elements) at the top, so that the definition of the list doesn't blob-up the testing actions, plus I would have to repeat it (unless jinja is allowed at any place, but I had some initial syntax error when trying to use jinja)
Option2 is neat, though , in this case I prefer the one-liner. When trying to create the array with ${{ array | split() |list }} injected into the python -c ... the quotes disappeared, which is the tricky part that I had not paid attention to - I surmise, it will work much more naturally for Option 2
With Option 2, can there be several script: with its dedicated content:?

FYI, this is the recipe that I am working on:
https://github.com/conda-forge/staged-recipes/pull/27801

You can have as many independent tests as you like (ie. separate script fields).

Somehow, there is an odd error when using the interpreter: syntax:
│ │ │ Testing commands:
 │ │ │ + python $SRC_DIR/conda_build_script.py
 │ │ │   File "$SRC_DIR/conda_build_script.py", line 3
 │ │ │     share = f"{os.environ.get(\'PREFIX\')}/share/qemu";
 │ │ │                                                      ^
 │ │ │ SyntaxError: invalid syntax

Also, the requirements entry is not supported in this case. For now, I will go with the python -c ... I kept the interpreter commented-out for your review, if time allows

I seem to run into an odd issue with the tests. I create the qemu-user, compile cross-compile for the target then try to run the code. It fails:
 │ │ │ + qemu-user-execve-ppc64le ./hello_from PPC64LE
 │ │ │ × error Script failed with status 1

However, when I manually run it it works fine. One issue was initially that the QEMU_LD_PREFIX set with the activate script was wrong, but now I cannot understand why it fails, there seem to be no information as to why it failed.

Sometimes, stderr and stdout are interleaved in weird ways, and the output of the process is visible above the printline of the executed command. Could that help?

I noticed it, but in this case it did not. I noticed that " and ' are updated when playing with the python line, but in this case it would not have mattered, I remain puzzled. I may try using script:/interpreter: bash or use python to popen the command later, since the recipe is green, I switched to the full QEMU recipe. I am also still struggling with zig ppc64le, I can compile zig2 without the relocation issues, but now it just stays in the zig2 build phase apparently forever. Thank you, I'll close for now, otherwise I have an habit of continuing rambling on and on, lol

authors: MementoRC wolfv

repo: prefix-dev/rattler-build


text:
feat: create a TUI

closes #684

This should be ready for an initial review soon. The basic functionality is there!

Will merge once green1

authors: orhun wolfv


text:
Feature/admin board

Feat: [#1] admin-board 초기 셋팅
Feat: [#2] admin-board Entity 생성
Feat: [#3] admin-board 등록 api
Feat: [#4] admin-board 전체 목록 조회
Feat: [#5] admin-board 게시물 조회
Feat: [#6] admin-board 게시물 수정
Feat: [#6] admin-board 게시물 수정
Feat: [#7] admin-board 게시물 삭제
Refactor: [#7] service code 수정
Feat: [#8] admin-board Swagger api문서 작성

리뷰 완료!

" 와 ' 가 혼용되어 있습니다..!

authors: chanbokW gyus13 minenam


text:
Error in parsing multiple hash parameters

I had the following problem while dealing with multiple hash parameters, so when I go to 'link 1' I suppose that I should get all parameters next to 'escaped_fragment=' as parameters in hashbang 'link 3', but I got a wrong result 'link 2' from prerender.io service.
link 1 :
http://www.example2.com/tr/?_escaped_fragment_=languageCode=tr&getFilter=all&getGroup=5%3A23_45_outright
link 2 :
http://www.example2.com/tr/?getFilter=all&getGroup=5%3A23_45_outright%3B#!languageCode=tr
link 3 :
http://www.example2.com/tr/#!languageCode=tr&getFilter=all&getGroup=5%3A23_45_outright%3B

Hmm, so you are using ampersands (&) after the hashbang but they are not query parameters? If you escape the ampersands in link 1, does that generate the correct URL?

@thoop thanks for your reply, I tried to change all ampersands (&) with (%26) but I am still getting the same result :
http://www.example2.com/tr/?_escaped_fragment_=getUniqueId%3D23_150_match%26getEventId%3D77656%26getSportId%3D5%26languageCode%3Den

I'll look into this some more and see what I can do to make that work correctly because the encoded & should get unencoded correctly but it looks like we are thinking it's causing more query params.

This should work fine in the latest version of our Prerender server (v4.0.3)

authors: rabihsyw thoop

repo: prerender/prerender


text:
Circular redirect

When I trying to test prerender work using UserAgent googlebot I got "Circular redirect".
I use prerender as a docker image and get the following logs:
prerender_1     | 2021-05-12T19:43:09.535Z getting http://my-site-address/
prerender_1     | 2021-05-12T19:43:10.115Z got 301 in 580ms for http://my-site-address/
prerender_1     | 2021-05-12T19:43:10.148Z getting http://my-site-address/
prerender_1     | 2021-05-12T19:43:10.705Z got 301 in 557ms for http://my-site-address/

I've already tried enabling the followRedirects parameter, but it didn't bring any changes.
I use django-seo-js as a middleware.
What am I doing wrong?

@thoop please help

The solution is set scheme in your middleware to https.


text:
🛑 Seo Card with Content is down

In 929875a, Seo Card with Content (https://og-image-green-seven.vercel.app/Kusama Bot 120.jpeg?price=&image=https://kodadot.mypinata.cloud/ipfs/bafkreiefbdznbjx7ixsdvezdtupj7xpdmgigm7uygl26mk2bozwolemodi&mime=image/jpeg) was down:

HTTP code: 500
Response time: 97 ms

Resolved: Seo Card with Content is back up in 9b043f3.

repo: preschian/kodadot-status


text:
Cast first 64 bits of SHA1 to BIGINT?

I'm able to produce SHA1 hashes from strings with the following:
SELECT SUBSTR(SHA1(CAST('test' AS VARBINARY)), 1, 8);

          _col0
-------------------------
 a9 4a 8f e5 cc b1 9b a6

Is there a way I could cast the above result to BIGINT? At the moment I'm getting the following:
SELECT CAST(SUBSTR(SHA1(CAST('test' AS VARBINARY)), 1, 8) AS BIGINT);

Query 20200305_143157_00105_hi6sc failed: line 1:8: Cannot cast varbinary to bigint

My application for the above is to shorten surrogate keys and ideally join two tables that contain billions and hundreds of millions of records respectively faster than they are currently with their long string surrogate keys.

My application for the above is to shorten surrogate keys and ideally join two tables that contain billions and hundreds of millions of records respectively faster than they are currently with their long string surrogate keys.

The join is by hashed value (bigint) anyway, so it's can possibly be faster only if join by the short prefix only (not two conditions: over prefix and full surrogate key).
Is this what you want?

If it is, then yes, that solves my problem. Thanks.

authors: findepi marklit

repo: prestosql/presto


text:
Admit EXPLAIN queries when required worker count not satisfied

Given coordinator with
node-scheduler.include-coordinator=false
query-manager.required-workers=1

query e.g.
EXPLAIN (TYPE IO) ....

will get into WAITING_FOR_RESOURCES state, waiting for a worker.
However, once the worker shows up and query gets admitted, the query executes on coordinator only.
We should not wait for a worker in this case.

I used EXPLAIN (TYPE IO) as an example, because the results do not depend on workers in any way.
EXPLAIN factors-in current worker count, so the results may be different once the required number
of workers shows up.


text:
Add examples in date_add() & date_diff()

Fix #1717

@findepi Could you take a look if you get a chance?

Fixed.

Merged as b4433452b52bf8370c0910037bcb432a33c1f1d5, thanks!
(squashed)

authors: findepi yuokada


text:
🛑 API Prex-Perú is down

In 9024769, API Prex-Perú (https://api.prex.com.pe/) was down:

HTTP code: 403
Response time: 222 ms

Resolved: API Prex-Perú is back up in 43002fa.

repo: prexcard/webstatus


text:
[CARE-2017] Forbid translating editor area

See https://stackoverflow.com/questions/12238396/how-to-disable-google-translate-from-html-in-chrome

Not neeeding a review, but you might find this fix interesting.

repo: prezly/slate


text:
SpiffyTitles: load on Python 3, while retaining Python 2 compatibility

Closes #42.

Thanks!

authors: GLolol prgmrbill

repo: prgmrbill/limnoria-plugins


text:
Can not download dataset from the address 'https://drive.google.com/open?id=1pJSVXtRlTU4_b-I8oakoZtl1ChcG0OiQ'

I have tried many ways but couldn't open the download link

me too,  have you solved this problem?

We are working on restoring this. Since all of us graduated, we have limited access to our UMD Drives. Please stay tuned for updates.

me too, have you solved this problem?

repo: prgumd/EVDodgeNet


text:
Failed to execute build script

Describe the bug
I use npm install --save primer  to install primer on my local machine. However when I try to build the css, it doesn't work.  This is the log that I got after run npm run build. I am not sure where I did run. Could someone help me? Thanks
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]
2 info using npm@6.2.0
3 info using node@v8.11.3
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle primer-alerts@1.5.8~prebuild: primer-alerts@1.5.8
6 info lifecycle primer-alerts@1.5.8~build: primer-alerts@1.5.8
7 verbose lifecycle primer-alerts@1.5.8~build: unsafe-perm in lifecycle true
8 verbose lifecycle primer-alerts@1.5.8~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lucky138200/DocumentsLocal/Primer/node_modules/primer-alerts/node_modules/.bin:/Users/lucky138200/DocumentsLocal/Primer/node_modules/.bin:/Users/lucky138200/.pyenv/plugins/pyenv-virtualenv/shims:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/aria2/bin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/lucky138200/.rvm/bin:/Library/Frameworks/Mono.framework/Versions/5.4.1/bin
9 verbose lifecycle primer-alerts@1.5.8~build: CWD: /Users/lucky138200/DocumentsLocal/Primer/node_modules/primer-alerts
10 silly lifecycle primer-alerts@1.5.8~build: Args: [ '-c', '../../script/npm-run primer-module-build index.scss' ]
11 info lifecycle primer-alerts@1.5.8~build: Failed to exec build script
12 verbose stack Error: primer-alerts@1.5.8 build: `../../script/npm-run primer-module-build index.scss`
12 verbose stack spawn ENOENT
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack     at emitTwo (events.js:126:13)
12 verbose stack     at ChildProcess.emit (events.js:214:7)
12 verbose stack     at maybeClose (internal/child_process.js:925:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
13 verbose pkgid primer-alerts@1.5.8
14 verbose cwd /Users/lucky138200/DocumentsLocal/Primer/node_modules/primer-alerts
15 verbose Darwin 17.7.0
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
17 verbose node v8.11.3
18 verbose npm  v6.2.0
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error primer-alerts@1.5.8 build: `../../script/npm-run primer-module-build index.scss`
23 error spawn ENOENT
24 error Failed at the primer-alerts@1.5.8 build script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

To Reproduce
All I did was run npm install --save primer  on my local machine, and then go into a module folder and run npm run build.
Desktop (please complete the following information):

macOS 10.13.6

Hi Shawn,
Thanks for the reply. I deleted everything I installed and followed your instruction to install again. I got the follow error.
npm ERR! path /Users/lucky138200/DocumentsLocal/primer/node_modules/.staging/stylelint-config-primer-1f3a1ed6/node_modules/stylelint-selector-no-utility/node_modules/JSONStream
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/lucky138200/DocumentsLocal/primer/node_modules/.staging/stylelint-config-primer-1f3a1ed6/node_modules/stylelint-selector-no-utility/node_modules/JSONStream' -> '/Users/lucky138200/DocumentsLocal/primer/node_modules/.staging/JSONStream-80e1c668'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Here is the full log. It's super long. https://justpaste.it/4oyc0
and the node_modules folder is empty in the primer folder. What should I do?
Thanks.

@shawnbot I am running Node 8.11.3 and NPM 6.2.0. I fixed the problem by deleting package-lock.json and just keep trying npm instal. Everything works fine for now, except it warns about html-to-react@1.3.3.
html-to-react@1.3.3 requires a peer of react@^16.0 but none is installed. You must install peer dependencies yourself.
It doesn’t seem to affect anything. So I guess I am good for now.
On Jul 17, 2018, 2:18 PM -0700, Shawn Allen notifications@github.com, wrote:

@lucky13820 which version of Node and npm are you running? You can find out with:
node --version
npm --version
We all run Node >= 8 with npm >= 5. Your problems might go away if you upgrade either your system Node (which updates npm with it) or npm itself (npm i -g npm@latest).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! primer@0.0.0 ng: ng "test"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the primer@0.0.0 ng script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

repo: primer/primer


text:
ActionMenu: Inline label

Based on https://github.com/github/primer/discussions/696
Fixes https://github.com/github/primer/issues/994
Fixes https://github.com/github/primer/issues/995
Fixes https://github.com/github/primer/issues/993

.

See new section about accessibility in docs →

Open questions:

Is the prop label too similar to aria-label, can that cause confusion? Should we call it inlineLabel instead to add some weight?
Is there something we can do to simplify the a11y needs with an external label as well? Right now, we defer this responsibility to the user. For example, we could split the label prop into label & showLabel. label would be used to create aria-label on button and aria-labelledby for action list. it will only be shown visually if showLabel or withInlineLabel is passed.

Explanation

Goal:
For menus with selection, it's common to show the selected value inside the button. To give context, it's important to show purpose of the menu as well. Visually, this can be an external label above the button or an inline label inside the button (new!)
In both cases, the label for screen readers (with aria-label or aria-labelledby) should have both purpose and value, example: "Field type: Number".
We want to add the option to add an inline number (left) as an alternative to external label (right)

a11y tree:
► combobox "Field type: Number"
► menu "Field type"

To achieve this today, users have to write something like this:
<ActionMenu>
  <ActionMenu.Button
    aria-label={'Field type: ' + selectedOption.name}
    leadingIcon={selectedOption.value}
  >
    <Text sx={{ color: 'fg.muted' }}>Field type:</Text>
    {selectedOption.name}
  </ActionMenu.Button>
  <ActionList
    selectionVariant="single"
    aria-label="Field type"
   >
    ...
   </ActionList>
</ActionMenu>

Suggested API in this pull request:

use label instead of aria-label on ActionMenu.Button
labels for button and menu are created automatically

<ActionMenu>
  <ActionMenu.Button
-   aria-label={'Field type: ' + selectedOption.name}
+   label="Field type"
    leadingIcon={selectedOption.value}
  >
-   <Text sx={{ color: 'fg.muted' }}>Field type:</Text>
    {selectedOption.name}
  </ActionMenu.Button>
  <ActionList
    selectionVariant="single"
-   aria-label="Field type"
   >
    ...
   </ActionList>
</ActionMenu>

html output:
<button aria-labelledby="purpose divider value">
  Field type:
  <svg aria-hidden="true"></svg>
  Iteration
<button>

a11y tree:
► combobox "Field type : Number"
► menu "Field type"

👋🏻 @siddharthkp anything I can do to help get this one over the line? Were you waiting on an accessibility specialist to review?

authors: lesliecdubs siddharthkp

repo: primer/react


text:
Update PRC ActionList implementation to have similar semantics to PVC.

This PR aligns the semantics (in this case, both the API and the generated markup) of ActionList and related components to match the implementation in PVC.
A significant change is the removal of ActionList.Group, which allowed sets of items to be labelled with a heading. This allowed somewhat arbitrary nesting, which we no longer want to allow.
If an ActionList needs a heading, users can pass the headingProps prop to the ActionList, which will then generate an ActionList.Heading before the <ul> inside the ActionList.
Screenshots
Please provide before/after screenshots for any visual changes
Merge checklist

[x] Added/updated tests
[x] Added/updated documentation
[x] Tested in Chrome
[x] Tested in Firefox
[x] Tested in Safari
[x] Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

Hi @radglob!
To provide more context. The PVC ActionList was reviewed by accessibility already and the semantics were changed/updated to work better for users. So, we want to have semantics match to the PVC component.

Would you mind holding off on merging this until my ActionMenu stories PR merges? I think it will help us visually test. I'm noticing a visual change in how a menu like this looks, since its going from being one giant ActionList to multiple lists
before
your PR
So this might mean that this is a breaking change, as the implementation might need to change.

Sure thing!

@radglob Is there a reason you went with the headingProps API instead of exposing ActionList.Heading to consumers?
<ActionList headingProps={{title: '...'}}>
// vs
<ActionList>
  <ActionList.Heading title="...">
  ...
</ActionList>

This should be fixed now using slots.

authors: kendallgassner radglob


text:
Add a code coverage badge to our README

We want to get to high code coverage with our tests since Arbiter needs to be as bug free as possible. Let's add a badge to show how far along we are to 100% coverage.

Hello @Autoparallel I'd love to work on this issue. Can this be assigned to me?

done!

@ts0yu I'm done working on this. Here's the PR I opened for it: #258
Looking forward to a review

good stuff @funkycadet!!

Thanks man @ts0yu 🥂

Thanks man @ts0yu 🥂
Quick question: can you install codecov on this repository? I believe you have sufficient rights to be able to do that

I got this merged yesterday😃 and it looks great!
Did I miss anything?

Nothing much. Everything is great. I just realized that this repository should have codecov app enabled for it and the codecov token generated for it on codecov should be added to the repository as a secret. That's all.

authors: Autoparallel funkycadet ts0yu

repo: primitivefinance/arbiter


text:
CUDA error: no kernel image is available for execution on the device

Hi, thanks for the wonderful job!
However, I have met the error when I run the demo:
python demo.py --imagedir=data/abandonedfactory --calib=calib/tartan.txt --stride=2
The error happens after the first image is shown which is:

1it [00:07,  7.25s/it]
Traceback (most recent call last):
File "demo.py", line 102, in
droid.track(t, image, intrinsics=intrinsics)
File "droid_slam/droid.py", line 66, in track
self.filterx.track(tstamp, image, depth, intrinsics)
File "/home/.conda/envs/py37/lib/python3.7/site-packages/torch/autocast_mode.py", line 198, in decorate_autocast
return func(*args, **kwargs)
File "/home/.conda/envs/py37/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, kwargs)
File "droid_slam/motion_filter.py", line 69, in track
corr = CorrBlock(self.fmap[None,[0]], gmap[None,[0]])(coords0)
File "droid_slam/modules/corr.py", line 47, in call
corr = CorrSampler.apply(self.corr_pyramid[i], coords/2i, self.radius)
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Traceback (most recent call last):
File "", line 1, in
File "/home/.conda/envs/py37/lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "/home/.conda/envs/py37/lib/python3.7/multiprocessing/spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
File "/home/.conda/envs/py37/lib/python3.7/multiprocessing/synchronize.py", line 110, in setstate
self._semlock = _multiprocessing.SemLock._rebuild(*state)
FileNotFoundError: [Errno 2] No such file or directory

Could you help me figure it out?

It seems like a CUDA / Pytorch mismatch, perhaps try reinstalling CUDA or updating Pytorch to match CUDA's version.

It seems like a CUDA / Pytorch mismatch, perhaps try reinstalling CUDA or updating Pytorch to match CUDA's version.

What should be the least versions of CUDA and PyTorch .....plz help me out

repo: princeton-vl/DROID-SLAM


text:
Add ignore fake player configuration

I did a test run yesterday on my heavily modded server, after 2hours I had collected about 2 million events.
This adds an option to ignore Fake players for events that currently log them.
I wasn't sure where to put the configuration node, let me know if you have any concerns!

This will be helpful, especially since Sponge works so well on modded servers. It might be necessary in the future to find a way to filter these, because there might be cases where some TileEntities should be tracked while others not.

So with this will things such as quarry's not log their block changes? That is my only worry, as we probably should provide a way to undo those and other similar actions.

The whole purpose of this for me is not logging quarries, they produce insane amounts of data. I'm not opposed to a whitelist/blacklist, but for now I just disabled this by default.

For a temporary fix this seems great then as that is a lot of data. For the future, do we think a blacklist or a whitelist would be better @viveleroi?I am thinking a blacklist as for some servers with a lot of mods would have to come up with quite a long list of items to add to a whitelist. In @phit's case, he could simply blacklist the problematic blocks such as quarries.

A blacklist is probably best, or even allow toggling one or the other.

Oh, looks like it doesn't like the underscore, what would be a good name for this? IGNOREFAKEPLAYERS also seems kinda long.

The IGNORE_FAKEPLAYERS variable name is against the check style :P. I think changing the name to IGNOREFAKEPLAYERS works fine.

authors: Meronat phit viveleroi

repo: prism/Prism


text:
Hostname

Dear friends,
Would you please let me know how I can set the host name in GraphQLServer (graphql-yoga)?
Thanks.
David

Can this get added?

const server = new GraphQLServer({
  schema,
  context: createContext,
  middlewares: [permissions],
})
server.express.listen(5000, "192.168.100.10")
server.start(
  {
    debug : true,
  }
)

just in case someone is looking for this, you just have to pass the host name to express app

@navigui as of #606 you can just put it in the start options

repo: prisma-labs/graphql-yoga


text:
Suggest @map when not already present in line

Added test to ensure that @map is not suggested when already present in line
Updated another test to ensure that it does still show when already present on another line
Minor refactoring

closes #1079

Created an issue for these https://github.com/prisma/language-tools/issues/1326

repo: prisma/language-tools