text:
关于wx保活的讨论反馈

作者好呀~
你试过在不配置 自动发消息 & 长时间静默 时掉线情况如何吗？
以前版本老代码关注公众号发消息的时候我就没配也自然没关注，我布在服务器上可能因为网络环境比较稳定所以感觉还好没怎么掉线；
现在隔一分钟给“文件传输助手”发一条心跳消息对新注册的wx小号来说其实有点危险，~我已被tx禁言~ 😿 ；
尚不清楚tx他是怎么检测的，频率 or 关键词？；
但我觉得不如让用户可配开关传入几个变量控制 KeepAlive() 开关乃至间隔；
其实我觉得可以接入push服务同样让用户配置渠道，监听 openwecaht 提供的 Alive() 如果掉线了先走 NewFileHotReloadStorage() 热登录不行再走扫码重连的逻辑，把当前状态、流程flow和需要登录的二维码转码通过push服务发给用户扫码，当然现在的web服务如果用户能访问的情况下也可以自己去扫码；

仅做讨论，不是给你加需求啊，不是（jiushi 🤣

作者好呀~
你试过在不配置 自动发消息 & 长时间静默 时掉线情况如何吗？ 以前版本老代码关注公众号发消息的时候我就没配也自然没关注，我布在服务器上可能因为网络环境比较稳定所以感觉还好没怎么掉线； 现在隔一分钟给“文件传输助手”发一条心跳消息对新注册的wx小号来说其实有点危险，~我已被tx禁言~ 😿 ；
尚不清楚tx他是怎么检测的，频率 or 关键词？； 但我觉得不如让用户可配开关传入几个变量控制 KeepAlive() 开关乃至间隔； 其实我觉得可以接入push服务同样让用户配置渠道，监听 openwecaht 提供的 Alive() 如果掉线了先走 NewFileHotReloadStorage() 热登录不行再走扫码重连的逻辑，把当前状态、流程flow和需要登录的二维码转码通过push服务发给用户扫码，当然现在的web服务如果用户能访问的情况下也可以自己去扫码；

仅做讨论，不是给你加需求啊，不是（jiushi 🤣

你好呀，针对这里的讨论做几点回复：

换掉老版本的公众号保活是为了减少不必要的依赖(如果是我，我也不想额外去关注别的不相关东西)，所以本项目减少了很多不必要的依赖，也是为了让不懂开发的人也能简单使用;
关于给文件传输助手发消息会不会封号，(据内部了解)这个渠道一般是不会禁言的，但是信号会有诸多限制，比如一次性加了很多用户，发了很多朋友圈等等.......都会导致禁言，所以这个所谓的"小号"，不建议是刚申请的号直接来用，可以“养一养”
对 保活 增加自定义开关和配置时间间隔是在计划中的，包括你说的接入自定义push 方式，也在考虑怎么用一种不需要依赖三方也能推送的方式，因为我不希望大家再去注册什么邮件或者其他订阅三方软件，然后设置key之类的

还有即使配置了保活，也会掉线，这种一般是手机掉线了，我就是手机开了应用多开，有时候手贱就把微信号退了，这个时候就可能会掉线

"也在考虑怎么用一种不需要依赖三方也能推送的方式"

果然是后端大牛的语气，我轮子搬习惯了 🤣

"也在考虑怎么用一种不需要依赖三方也能推送的方式"

果然是后端大牛的语气，我轮子搬习惯了 🤣

瞎搞搞的，微信扫码只能使用摄像头扫码，不能使用相册扫码，这个目前还不知道咋绕过去，目前测试有推送扫码登录，但是我一直没有绕过这一步，推送的登录二维码手机本身扫不了😂

瞎搞搞的，微信扫码只能使用摄像头扫码，不能使用相册扫码，这个目前还不知道咋绕过去，目前测试有推送扫码登录，但是我一直没有绕过这一步，推送的登录二维码手机本身扫不了😂

据我所知绕不过去，安卓端只有root后hook到摄像头替换previewTexture返回二维码的对象才行，不同软件可能调用的camera还不一样有的不是调用的系统api（"android.hardware.Camera"）比如微信扫一扫是自己的类还要针对微信逆向做适配。
不hook的话只能扫别的屏幕了 😿

随身拿两个手机！

authors: VergilWu code-innovator-zyx ltppp

repo: code-innovator-zyx/wechat-gptbot


text:
Add cockpit podman related packages

This will allow to have cockpit integration with tray.

Will have to test this image

/hold
Till it is tested by @gbraad

/retest

While Cockpit loads, the interface shows 'Not found'. Most likely parts are missing.
Will need to investigate this.

As per: https://cockpit-project.org/running.html#coreos
[root@localhost ~]# podman container runlabel INSTALL docker.io/cockpit/ws
systemctl enable cockpit.service
cockpit-ws must not be installed in the host
Error: `/proc/self/exe run --rm --privileged -v /:/host -e IMAGE=docker.io/cockpit/ws:latest docker.io/cockpit/ws:latest /container/atomic-install docker.io/cockpit/ws:latest` failed: exit status 1
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.

Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.

So we should not use cockpit-ws as installed package

Discussed with @martinpitt and this should work as expected. We do not need the -system package as this would pull in the system module that enables the terminal, etc. we do not need (want) that.

/test e2e-snc

source: gharchive/pull-request

authors: gbraad praveenkumar

repo: code-ready/snc

license_type: permissive

license_source: github-api


text:
bug: Shows question has been downvoted even when we remove the downvote

Recently i noticed that a toast shows up when we remove the downvote and it shows question has been downvoted .

It is a minor issue if You want to address it . i will update it today.

Can you specify the steps to reproduce, in which page it is creating the problem?

If you go to any of the question post on 100xdevs you can see that whenever we remove any upvote or downvote it shows the question has been upvoted or vice versa based on the action.

I have already solved this and raise a pr along with other enhancements in #1255

source: gharchive/issue

license: MIT


text:
bug: Pagination Component Is Not Fully Visible

Describe the bug
The pagination component of the contents should be visible completely. But it is getting hidden under "Show Contents" component.
To Reproduce
Steps to reproduce the behavior:

View a course
Open any week content

Expected behavior
The pagination component should be visible completely.
Screenshots or GIFs

Fixed with #1400


text:
IP-based JWT validation and session management

This PR addresses the security issue related to stolen JWTs and unauthorized dashboard access. It implements IP-based token validation and enhances overall security measures.
Key changes:

Store and validate IP addresses with JWTs
Implement short-lived access tokens (15 minutes) and refresh token mechanism
Log and limit IP changes to prevent abuse
Add rate limiting to protect against brute force attacks
Implement security headers for better protection against common web vulnerabilities

Resolves #1156

@devsargam can u check this

I am unsure that this is a good thing to add

few problems that I can see right now:

public ip address of users keep on rotating (example: when switching wifis or mobile data)
this will lot all users out when it is implemented

few problems that I can see right now:

public ip address of users keep on rotating (example: when switching wifis or mobile data)
this will lot all users out when it is implemented

yea could lead to unnecessary logouts

I am unsure that this is a good thing to add

Yeah, but @hkirat  raised an issue about this.

authors: TanmayDhobale devsargam


text:
[Feat]: Add Contributor/ Team Page with real-time data fetching

What feature?
The Contributor/Team Page serves as a dynamic showcase of the talented individuals behind the project. By leveraging real-time data fetching, the page ensures that users always have access to the most up-to-date information about team members, fostering transparency and connection. The inclusion of search and filter options enhances usability, making it easy for visitors to find specific contributors. Through this implementation, we aim to create an engaging and informative experience that highlights the collaborative nature of the project while maintaining a modern and responsive design.
Add screenshots
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hey @Prathameshzad  let's start work on this features
and become a DevDisplay organization's core team member

authors: Prathameshzad codeaashu

repo: codeaashu/DevDisplay


text:
Download of course does not work

I try to download this course: https://egghead.io/courses/higher-order-components-with-functional-patterns-using-recompose "Downloads Finished Successfully" is printed in the terminal, however no files are downloaded.
(It did work to download last week, 2017-05-16)

Hi @Banzaci,
Thanks for letting me know. Unfortunately my egghead.io subscription expired last month and I have no interest in renewing it at this time.
However, if you feel comfortable you're welcome to send me a private email to codeandcats@gmail.com with your egghead credentials and I can debug this for you and maybe even have a fix for you tonight.
Otherwise, if you don't feel comfortable emailing me your details you're welcome to fork the repo, fix it yourself and submit a pull request and I can merge it in.
Hope this helps. 😸

Hi @banzaci,
Did you have any luck with this issue? If you like I can still look at it this weekend. If this is a genuine issue I would like to fix it but cannot do so without access to a Pro User account. If you send me your details (to my email address above) you can trust that I will only use it to address the issue and you can change the password as soon as it's resolved. Otherwise, you're welcome to solve the issue yourself and send me a pull request.
Please let me know how you wish to proceed, otherwise I'll close the issue.

Cannot reproduce.

authors: Banzaci codeandcats

repo: codeandcats/eggs-benny

license: mit

license_source: bigquery


text:
File downloading mechanism for different browsers

How about to add logic for file downloading in different browsers?
(not for downloading via href of course)
Example:

user click on some button
file generation starts on server side and user wait
after file generation user see pop-up system window with buttons Save, Save as... , Cancel, as example
file is downloaded to predefined temporary folder
checking of ending of downloading performed (file is exist in predefined folder and available for modification)

I can provide code for IE8, IE11 browsers under Windows 7 (ru/eng) (based on java.awt.Robot, working with clipboard and com.sun.jna.* for windows detection by title)
CONS:

a lot of work for other browsers/windows versions
for non-russian/english OS Windows adding of windows titles are necessary

This mechanism seems to be unreliable. I would prefer to use server-side mechanism that would work independently of browser. I would try catching file content using proxy server (for example MobBrowserProxy or something similar).

Sound like true, OK

I have added another issue for download function: https://github.com/codeborne/selenide/issues/196

repo: codeborne/selenide


text:
Fetch protocol from browser

Updating to fetch the protocol from the browser rather than a hardcoded http
When I tried to deploy the UI out to the k8 instance over https, the API calls to ports were error out as the browser would not allow redirecting HTTPS traffic over to HTTP.
Fetching the protocol from the browser helps avert that situation.
I think this might resolve the following issue as well #125

Thanks!

repo: codeceptjs/ui


text:
🛑 CodeChef is down

In 4ec47c6, CodeChef (https://www.codechef.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CodeChef is back up in 9794912.

repo: codechef-org/status


text:
patch submission code diff is incorrect right after submission, but correct after a page reload

When I submit a patch in the System tab (haven't check the Components tab yet), here's what I see:
I write some code:

I get ready to submit a patch, and everything looks good in the diff:

After I submit the patch, I click on any other system, and then back to the one I just submitted a patch for (without actually reloading the page).  I see my patch waiting for approval, but when I check the diff I see that random pieces have been duplicated:

I reload the page, and now the diff looks correct

I don't have a screenshot of it, but for the submission that made me notice this, the bad diff showed really garbled code that wasn't even syntactically correct.

Can no longer reproduce. Closing unless it shows up again.

authors: gosnat sderickson

repo: codecombat/codecombat


text:
Update vi.coffee

Dear CodeCombat Admin, I just signed up an account for this game a couple of minutes ago, and very interested in translating this game into Vietnamese. I already have a look at this file, and change a few lines into Vietnamese, please take a look at it, thank you.

Hello, @dungkunit! Thank you for contributing. Can you sign our CLA so that we can merge your pull request?

@nwinter

Thanks @dungkunit!

authors: Imperadeiro98 dungkunit nwinter


text:
Update ca.coffee

I've only translate two lines. If it works, I'll translate more.

@asoler20 Could you sign our CLA so we can accept your PR?

I've allready done!
Missatge de Valentin Bryukhanov notifications@github.com del dia dl., 12
de nov. 2018 a les 7:33:

@asoler20 https://github.com/asoler20 Could you sign our CLA
http://contributors.codecombat.com/cla so we can accept your PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/codecombat/codecombat/pull/5019#issuecomment-437771679,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ak9tTyO766h-D3L4yAbSUYdvEO8MXdm3ks5uuRYngaJpZM4YM0um
.

Closed as it's in the bigger PR.


text:
Execute gcov once per file with -execdir

Fixes #248
Fixes #162
Closes #159 (I think this is the correct way to do #159)

Purpose
Address #248 & #162. Complete failure of codecov.io on macOS and execute gcov once per file.
Notable Changes
Are there any changes that need to be called out as particularly tricky or significant?
I don't think so
Tests and Risks?
Is this covered by existing tests? New ones? If no, why not?
I'll need to further investigate
Update the SHA1SUM file
Also make sure that you update the sha1 hash by running sha1sum codecov and updating the SHA1SUM file with the output
Change the codecov to - in the file before committing so it can be compared against the server file
Done

Seems like gcov test is disabled, not sure why

repo: codecov/codecov-bash


text:
Add bummr gem to automate gem updates

https://github.com/lpender/bummr

Coverage remained the same at 83.424% when pulling 6867abb57885e639c39138ab7e62fed5a0b962e8 on add-bummr into b325cb0de5bf292167269c256ebcf5bcc9194609 on master.

authors: coveralls monfresh

repo: codeforamerica/ohana-web-search


text:
Extending a contract and not adding an extension breaks update view

This can be fixed by adding a None handler in the datetimeformat filter.

This is a duplicate of #259.


text:
SSStory

Added BG color to job information, background picture to heading

🚢 :shipit:

authors: pacarole skcain

repo: codeforamerica/workforwardnola


text:
Call empty string valid and store 0 on change

Fixes the failure of one test from #622, which occurs because we were treating empty strings in a ManagedNumberField as invalid while it's focused, and only defaulting to '0' and storing the '0' on blur. This moves that logic to the handleChange function, so that empty strings are stored and validated as '0' while focused (meaning they will be seen as valid by isPositiveNumber), while keeping the empty string in focusedVal. I also modified the test to return true from the validation function and expect the field to be valid, since the call to store is only supposed to happen if it's valid.

See this for desired behavior: https://github.com/codeforboston/cliff-effects/issues/630

OK, after some frustrating testing, I realized that both of those problems come from setting the type of the input to number, which I didn't know was a thing.

Do we want them to be able to type regular letters into there? That wasn't originally something we wanted. If you want, you can keep going on this till it matches our desired behavior completely. I'm hoping to have it see if it can fit in with the current validators and fixers, etc., or to fit into a similar kind of structure. Does that make sense?
Note for our future dream selves: Maybe it'd be polite to let people put in commas when they want to. I think we're ok for now, though.

Alright, I was going off of this:

User types an INVALID number in the field:
Typing shows up as entered
Field gives 'invalid value' feedback (turns red)
Which I interpreted to mean we shouldn't interfere with what the user's typing. That seems like the most predictable way to do it.

Currently though I think the only letter that can be entered is "e", due to scientific notation. Maybe there's a way to disallow scientific notation for number inputs?
I don't know what this means:

I'm hoping to have it see if it can fit in with the current validators and fixers, etc., or to fit into a similar kind of structure.

Hmm, that could be confusing. Maybe those definitions need to change a bit now that we are considering this new thing. What I'm saying is that I do think we need a 'text' field instead of a 'number' field, but that we should limit the input to a subset - digits or periods. The only invalid value (that I can think of so far) would be one with multiple periods. That's allowed because people need some flexibility sometimes and that flexibility makes sense.
Maybe we'll talk about the 'similar kind of structure' thing in real-time, so we can save some back-and-forth.

The failing test was also flagged in #633. Essentially, I wrote some handleChange tests based on the then-existing code and submitted PR #622, and then intentionally moved the empty string handler from handleChange to handleBlur and submitted PR #625 just for that (since PR #622 hadn't been approved when I submitted #625 later the same day). I should have spaced the PRs out so that the failed test would be avoided.
If the code from #625 delivers the functionality we want, I think updating the unit test is the more straightforward action as opposed to further code modifications. But if the functionality really should be incorporated in handleChange instead of handleBlur, then the intent behind this PR is how we should go.

@snyderc : got it, thanks for clarifying. In case you find it edifying, the desired behavior is written out here (though I'll try to go over it again later to make sure it still matches what we want): #630.

Heh, gotta love math language. Non-negative is more accurate and I don't feel strongly one way or another. Works for me!
I like the idea of those separate validators! Thanks!
An unrelated thing I realized (that may already be accounted for and should be included in the spec) - we shouldn't prevent people from entering multiple periods, but multiple periods should be shown as invalid.

Hold on, I think the MonthlyCashFlowRow validators still need to be changed. I can look at it tonight.

Looks good to me. Thank you!

Can confirm, test suite is passing. Looking forward to when this commit is ready to be merged @ethanbb. Then I will update the pr's I have open so they will pass TravisCI.

Haven't checked all behaviors thoroughly, but currently if I have multiple periods, exiting the field just gets rid of the periods, giving me, for example '112.00' from '1.12.00'. Is that what we want? Would it be preferable to have it just restore to the last valid value?

@knod hmm, that sounds like a bug but I don't observe that behavior (for either example). What field were you editing?

An income field

@knod Still not seeing it. Can you try again, and if it's still happening, send me a client data object for just before the change and tell me exactly what to change to replicate it? I don't think it should matter what other client data is entered for any given field (except section 8 rent), but just to be sure...

@knob is there a way we can merge the pull request as is and tackle the issue you are describing that still needs to be recreated in a new pull request?

To sum up conversation elsewhere, it was behavior as expected, it just didn't feel intuitive, but I think we're not going to worry about that for now.

authors: MichaelDimmitt ethanbb knod snyderc

repo: codeforboston/cliff-effects


text:
Surveyor view: Assignment homes list - clicking dialog menu should show [something] instead of 'undefined undefined'

What data is meant to be displayed here?

fixed undefined.


text:
Dockerize the Python + Miniconda + Flask Stack

As with our HackGreenville project, we're looking into Dockerizing this project environment.
This application runs on Python + Miniconda + Flask and the manual install steps are outlined in the deploy notes.
Just on a quick search, the steps are probably something like Step 2 of this example.

The Nginx / Apache part of the deploy notes are likely optional for the Docker container too.  Miniconda should run a localhost server, so Nginx or Apache are likely only practical for production.

Flask on Docker Hub - this seems to integrate Nginx by default
Flash Example from Docker
Python Docker image


text:
Minimize struct copying

by using pointer func receivers and slices of struct pointers where possible.
Closes #420
Extracted from #418

:trumpet: :100: -- just a few questions about our use (or non-use) of opaque types.

I admit I'm probably irrationally against opaque types for slices, as the
public "methods" that come along with the slice can't be gatekept or
modified.  My experience with this pattern has been painful.  In this
library alone, the StringSlice and IntSlice types were un-fun to migrate.
That being said, I'll back down if it's the right thing to do :smile_cat:
On Sun, May 22, 2016, 17:12 Jesse Szwedko notifications@github.com wrote:

🎺 💯 -- just a few questions about our use (or non-use) of opaque types.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/codegangsta/cli/pull/421#issuecomment-220856732

I forgot about the difficulty of that transition. You make a good point regarding protecting access, but does that mean we should make the internal slices private (and expose them via .Slice() methods as you do once here)?

I'm inconsistent that way :-P  I'm happy to make the pattern: wrap with
struct, make slice public by some sensible name that's not necessarily
"Slice".
On Sun, May 22, 2016, 17:36 Jesse Szwedko notifications@github.com wrote:

I forgot about the difficulty of that transition. You make a good point
regarding protecting access, but does that mean we should make the internal
slices private (and expose them via .Slice() methods as you do once here)?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/urfave/cli/pull/421#issuecomment-220857963

OK, so I might be taking back some of that last comment.  I like what's going on with Args.Slice() because a copy of the internal slice is returned.  I'm uneasy about what's going on with CommandCategories.Categories, tbh, and I think I'd rather have a method that returns a copy as well.  Whaddya think?

@jszwedko OK, so I went ahead and tried to make the slice wrapping pattern usage a wee bit more consistent.  The two big exceptions are App and Command, although given that part of what makes this library handy is struct declaration of an app, I'm hesitant to change that.  I feel like the wrapped slices that are "protected" have different expectations because they are more of what I'd consider library internals.

:clap: for consistency, thank you for giving that thought! I think what you have here is a reasonable approach .

Alright I switched it up again.  Latest version reintroduces opaque types, but makes them all private, adding interfaces where public surface area is (I assume) still desirable.

Interfaces, genius.

This looks good!

authors: jszwedko meatballhat

repo: codegangsta/cli


text:
Relax gemspec dependencies to support Rails 3.2

I ran the tests against Rails 3.2, and all passed.  Does this gemspec change seem reasonable to you?

Thanks, fixed by #28

authors: joealba oriolgual


text:
fix relative url

Fix absolute url for relative url.

thank you

authors: howtomakeaturn zrashwani

repo: codeguy/arachnid


text:
Bug: Improve footer component for small screens

Thank you for taking the time to file a Bug report.
Describe the bug
The footer needs to be more responsive for smaller screens.
Screenshots

I can do it
assign me

Can you assign this to me please @padmajabhol

Can you assign this to me please @padmajabhol

Issue 199 is still unassigned, please comment there.
https://github.com/codeisscience/journal-policy-tracker-frontend/issues/199

Hey @padmajabhol, can you let me know more about the issue? What improvement do you want?

can i work on this?

@Himanshu-370 any updates on this?

@padmajabhol Please assign this to me

Hello @padmajabhol
If no one working on this issue, please assign it to me.


text:
[oz mode] clean up electric indentation test

This follows PR #3490. It ensures reindentation is done only when matching block-closing keywords. (Upper-case letters were erroneously put in the list, case-sensitive check is correct, as for highlighting.)

Thanks! Merged as 0c9a2ff

authors: anthonygego marijnh

repo: codemirror/CodeMirror


text:
Transformed async function throw an error with typecheck

When using "transform-async-to-generator" and "transform-regenerator" together with typecheck I get an exception at runtime (see below).
When removing "transform-async-to-generator" everything runs fine so far. Maybe that plugin was not needed, then I would just leave this ticket as a future reference.
Do you think I had a config error before, or should this have worked?
.babelrc:
{
  "presets": ["es2015", "stage-2"],

  "plugins": [
    "syntax-class-properties",
    "transform-class-properties",
    "transform-es3-property-literals",
    "syntax-async-functions",
    "transform-async-to-generator",
    "transform-regenerator",
    "transform-runtime",
    "syntax-decorators",
    "transform-decorators",
    "syntax-function-bind",
    "transform-function-bind",
    "syntax-flow",
    "transform-flow-strip-types",
    "typecheck"
  ]
}

testcase.js:
#! /usr/bin/env node

require('babel-register');

require('./testcase2.js').default();

testcase2.js:
/* @flow */

async function test(): Promise<boolean> {
  return true;
}

export default function() {
  test().then(res => console.log('test():', res));
}

Output:
=> ./testcase.js
/Users/timm/Projects/node_modules/babel-core/lib/transformation/file/index.js:548
      throw err;
      ^

SyntaxError: /Users/timm/Projects/testcase2.js: Function "test" returned an invalid type.

Expected:
Promise<bool>

Got:
true
  2 |
  3 | async function test(): Promise<boolean> {
> 4 |   return true;
    |   ^
  5 | }
  6 |
  7 | export default function() {

Under more complex circumstances I can get this to fail when using return true; even without the transform-async-to-generator plugin. Will try to extract another test case, but maybe you already have a hunch.

Also changing the return type from Promise<boolean> to just boolean (which works fine form Flow's perspective IIRC) does not help.

@tp please place the typecheck plugin before the others in the list in your .babelrc, and then try again. Babel 6 is extremely sensitive to plugin ordering.
However I think that this is happening because of a mismatch in flow and typecheck's semantics around async functions - see this issue: https://github.com/facebook/flow/issues/1259
I bet this will work:
async function test(): boolean {
  return true;
}

I actually fixed this problem locally but haven't published it yet. I'll try and find time for that tonight.

Strangely now it works for me either way with Promise and boolean. No changes to the config or plugin.
What kind of change do you have pending locally?
I also think that just annotating the return function without the promise wrap is clear enough since the whole function is async.

Pending change accepts Promise<foo> and foo as identical in async functions. That's how I feel too but Flow goes the other way and compatibility with Flow is becoming more important to me now that it is supporting more and more syntax. The plan is to reach Flow compatibility in v4.

Ah, I just remembered how to get it broken:
annotating as returning Promise and just using a plain return X at the end of the function.

Any way you could share that pending change as a development branch? Would really love to not add any more return Promise.resolve(X) if those can be avoided.

@tp yes, sorry I meant to do it a day or two ago but a bit busy right now. I'm not near that machine at the moment but I'll push the branch or just do a patch release later today (I've added a reminder for this).

authors: phpnode tp

repo: codemix/babel-plugin-typecheck


text:
Map drag fix

Closes #202
If you drag a Polygon such that the cursor goes off the map, the mouseup event that resets the map's draggable state never fires. This means that when we click back into the map and the mousedown event binding saves the map's current draggable state, it is always false.
The basic idea of this PR is that we first record the map's draggable state upon draggable layer initialization, and then use an additional flag to see if it's "safe" to cache the map's draggable state during all subsequent mousedown events.
It's always safe upon first initializing the draggable layer, as no mousedown event could have possibly occurred.
After that, it only becomes safe upon  capturing a mouseup event within the map container. This way, if you click outside then click back in, it doesn't save the new (always false) draggable state, instead defaulting to the state detected during the initial mousedown event that started the Polygon drag!

Hey, thanks for the PR - will check it this week! Sorry for the late reply I was on vacation.

nifty idea! Thanks for this fix and great first-time contribution!

authors: Mesonyx codeofsumit


text:
"log-out-on-disconnect" makes NoMethodError

our EX4300 has below config.
set system ports console log-out-on-disconnect

this error is occur.
maybe log-out-on-disconnect is not defined at vsrx.
$ junoser -s configfile
/Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/junoser-0.1.2/lib/junoser/transformer.rb:38:in `block in <class:Transformer>': undefined method `gsub' for "log-out-on-disconnect"@25:Parslet::Slice (NoMethodError)
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:216:in `instance_eval'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:216:in `call_on_match'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:234:in `block in transform_elt'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:231:in `each'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:231:in `transform_elt'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:184:in `apply'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:246:in `block in recurse_hash'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `each'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `inject'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `recurse_hash'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:187:in `apply'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `block in recurse_array'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `map'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `recurse_array'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:189:in `apply'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:246:in `block in recurse_hash'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `each'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `inject'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `recurse_hash'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:187:in `apply'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `block in recurse_array'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `map'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `recurse_array'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:189:in `apply'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:246:in `block in recurse_hash'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `each'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `inject'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `recurse_hash'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:187:in `apply'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `block in recurse_array'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `map'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:253:in `recurse_array'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:189:in `apply'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:246:in `block in recurse_hash'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `each'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `inject'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:245:in `recurse_hash'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/parslet-1.7.0/lib/parslet/transform.rb:187:in `apply'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/junoser-0.1.2/lib/junoser/display/structure.rb:20:in `block in transform'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/junoser-0.1.2/lib/junoser/display/structure.rb:19:in `each'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/junoser-0.1.2/lib/junoser/display/structure.rb:19:in `transform'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/junoser-0.1.2/lib/junoser/cli.rb:28:in `struct'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/junoser-0.1.2/exe/junoser:47:in `<top (required)>'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/bin/junoser:23:in `load'
	from /Users/junpei.yoshino/.rbenv/versions/2.1.3/bin/junoser:23:in `<main>'

This is fixed in b6fe86a0990d9f5f25f895da2a44ffd8c26fdd87. Thanks for reporting.

OMG, it's still broken:
$ bundle exec junoser -s configfile
system {
    ports {
        console {
            log-out-on-disconnect;
        }
    }
}

should be
system {
    ports {
        console log-out-on-disconnect;
    }
}

I decided two lines configuration is acceptable.
        console {
            log-out-on-disconnect;
        }

After a quick investigation,
set system ports console log-out-on-disconnect generates:
system {
    ports {
        # one line
        console log-out-on-disconnect;
    }
}

in JUNOS system, but set system ports console log-out-on-disconnect insecure generates:
system {
    ports {
        console {
          # two lines
          log-out-on-disconnect;
          insecure;
        }
    }
}

I'd think that It's too hard to completely emulate this behavior without introducing messy code.
Also, please note that both types of configuration are valid in syntax.

authors: codeout junpei-yoshino-

repo: codeout/junoser


text:
:new: Add CoderDojo 山形 in 山形県

🥳🎉✨

:memo: NOTE: 同名のInactive Dojoが2017にあるため、Inactive Dojoの名称を 山形@2024 に変更しています。同名のInactive Dojoがある場合、そのDojo名のID　(今回の場合 ID: 74) が割り当てられてしまうため。
ただしこれは仕様で、同じ名称なら同じIDを割り振ることで冪等性を担保する設計になっており、実行するたびにIDが変更/追加されてしまう状態を防ぐため、まずは運用でカバーするのが良さそう..? 🤔💭

:memo: NOTE: 同名のInactive Dojoが2017にあるため、Inactive Dojoの名称を 山形@2024 に変更しています。同名のInactive Dojoがある場合、そのDojo名のID　(今回の場合 ID: 74) が割り当てられてしまうため。
ただしこれは仕様で、同じ名称なら同じIDを割り振ることで冪等性を担保する設計になっており、実行するたびにIDが変更/追加されてしまう状態を防ぐため、まずは運用でカバーするのが良さそう..? 🤔💭


text:
I139 password reset app

Change Summary
[Briefly summarise the changes that you made. Just high-level stuff]
Change Form
Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

[x] The pull request title has an issue number
[x] The change works by "Smoke testing" or quick testing
[ ] The change has tests
[ ] The change has documentation

Other Information
[Is there anything in particular in the review that I should be aware of?]
Related issue

Resolve #139

will add tests and docs later, but not a priority now

Codecov Report
Base: 87.21% // Head: 85.08% // Decreases project coverage by -2.13% :warning:

Coverage data is based on head (7888dc9) compared to base (ab77cec).
Patch coverage: 49.39% of modified lines in pull request are covered.

:exclamation: Current head 7888dc9 differs from pull request most recent head 940fd5d. Consider uploading reports for the commit 940fd5d to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
- Coverage   87.21%   85.08%   -2.14%
==========================================
  Files          46       53       +7
  Lines         892     1059     +167
==========================================
+ Hits          778      901     +123
- Misses        114      158      +44

Flag
Coverage Δ

backend
85.08% <49.39%> (-2.14%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

server/api/apps/auth/reset/views.py
31.03% <31.03%> (ø)

server/api/apps/auth/reset/serializers.py
83.33% <83.33%> (ø)

server/api/apps/auth/reset/urls.py
100.00% <100.00%> (ø)

server/api/apps/auth/serializers.py
100.00% <100.00%> (ø)

server/api/apps/auth/urls.py
100.00% <100.00%> (ø)

server/api/settings.py
100.00% <100.00%> (ø)

server/api/apps/quiz_generate/views.py
95.91% <0.00%> (ø)

server/api/apps/quiz_generate/urls.py
100.00% <0.00%> (ø)

server/api/apps/quiz_generate/serializers.py
100.00% <0.00%> (ø)

server/api/apps/quiz_generate/tests.py
100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

repo: codersforcauses/elucidate


text:
add confirm modal to export teams

Change Summary
[Briefly summarise the changes that you made. Just high-level stuff]
Change Form
Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

[x] The pull request title has an issue number
[ ] The change works by "Smoke testing" or quick testing
[ ] The change has tests
[ ] The change has documentation

Other Information
[Is there anything in particular in the review that I should be aware of?]
Related issue

Resolve #265

Feel free to merge this

authors: carrrmenleong rezbyte

repo: codersforcauses/wadl


text:
[리펙터링] 패키지 구조 변경

연관 이슈

#174

Merge 사항

fe5dd64
300a5ed

역할 기준이라 util 이 맞는 것 같아서 옮겨버렸습니다 !


text:
2022.04.0 base

Related: codewars/runner#189
A proof of concept that uses the Coq Platform scripts to install the base package set for 2022.04.0:

Coq 8.15.1 only + coq_codewars
Base image is now Ubuntu Jammy (slightly larger; way fewer headaches :wink: )
Final size: 2.08 GB
Passing and failing examples now use CWAssert in coq_codewars for unit tests
bin/run now accepts CONTAINER_ENGINE variable to specify container engine (default: docker). This is because I use Podman myself for development so the original bin/run doesn't work for me

I haven't installed the libraries from 8.12 yet (Equations, mathcomp) because I don't intend this to be the version we release on Codewars. If this proof of concept looks fine, I'd like to install the full package set which includes Equations, mathcomp and many other open-source libraries, which could greatly increase the variety of Coq Kata we can author on Codewars.

Deprecating in favor of #2

repo: codewars/coq


text:
Migrate to slash commands

This pull request aims to migrate the codebase away from ad-hoc commands that require dedicated parsing, towards slash commands which provide built-in argument checking. As this pull request introduces a number of breaking changes, the minor version number is increased from 1 to 2, while leaving the major version number intact at 0:

Support for the optional COMMAND_PREFIX environment variable is removed while two new mandatory environment variables are introduced. This will likely break the existing CI which needs to be updated to take the new variables into account:

CLIENT_ID: The ID of the Discord application associated with the bot. This can be obtained by navigating to the developer portal, selecting the "Applications" tab, selecting your application associated with the bot, selecting the "General Information" tab and scrolling down to the "Application ID" field
GUILD_ID: The ID of the Discord server that the bot will run on. This can be obtained by navigating to the associated server, opening the dropdown to click "Server Settings", clicking the "Widget" tab and scrolling down to the "Server ID" field

Legacy commands starting with ? are removed and replaced with their slash command counterparts
The ?dump command has been dropped since it is not relevant to slash commands
A new /echo command has been introduced which simply echoes its input back to the calling user

Message handlers such as the trainer link handler continue to function as usual. The top-level README has been updated to reflect the breaking changes. The template used in npx plop command has been updated for slash commands.

Couldn't you migrate one command at a time instead of deleting all files first? It's difficult to review what changes were required for each, and if you made any other changes.
Also, try to keep the diffs minimal when making larger changes like these. For example, don't move unchanged functions within a file and don't rename unless necessary. We can do that separately if needed.
See how much difference it can make for rankup.ts https://gist.github.com/kazk/b26336e49c326ec22629e636df25a7d9 (+70/-63 vs +169/-142).
Try your best to make the PR easy to review.
Just to be clear, I'm not asking you to redo this PR (I'd appreciate it, though). I just wish more devs realize this makes a huge difference. Unfortunately, it might be difficult to understand until you become a maintainer, and most maintainers don't bother to teach you because they usually don't know you enough. The Codewars community can use our projects to practice, and I'll try to teach whatever I notice, if I have the time, so you can improve.

Added CLIENT_ID and GUILD_ID (#38).

We should consider making use of the slash commands features like permissions, discovery, subcommands and autocompletion. Examples:

Use permissions with roles to control who can use the command. The id of the roles can be configured through environment variables. We might want to support loading .env since we have many environment variables now.
Related commands can be grouped together
Command name can be longer and more descriptive because users don't need to type them correctly
/help shouldn't be necessary because / shows all commands

Do you know what happens when there's a name conflict? Maybe users can pick the correct one because the commands are grouped by bots?

Thanks for all the feedback, and apologies for the messy changes, especially for the rankup command - I basically copied over the core logic and focused on getting rid of the resulting compiler errors instead of structuring my code properly :sweat_smile: I'll definitely keep in mind the ease of reviewing the changes next time.
With regards to your latest suggestions, I have removed the help command as suggested. As for your other points:

SlashCommandBuilder isn't terribly well documented and there doesn't seem to be a direct way to specify command permissions on command build time. The only examples of setting command permissions I've seen occur after the commands have been registered, by fetching the guild in question and accessing the list of commands in the guild. This could be useful for setting custom permissions to slash commands in batch, but the command ID is required if setting the permission for a particular slash command which seems difficult to obtain programmatically
Currently we use the names of roles, e.g. "admin", "mods" and "power-users" to determine who gets to access privileged commands like "introduce" and "warn". IMO this is the most flexible as it doesn't depend on the particular ID(s) of those roles in a particular server, and if those roles are missing on a particular server then the worst that could happen is that no one is authorized to invoke those particular privileged commands, while other commands remain fully functional. If we introduce environment variables to solve this problem, it would IMO (1) make the bot more cumbersome to configure just for the sake of a few special commands, and (2) possibly make the bot non-functional without those particular roles
I can look into subcommands for grouping related commands, but maybe we should open an new issue to discuss how the grouping should be done, after this PR has been merged? Currently we don't have too many individual commands (only 6) so IMO we can consider grouping when the number of commands gets large
Built-in slash commands, e.g. kick, ban and spoiler usually have short names, typically under 10 characters long, so IMO it would be better to keep our command names short to ensure a consistent experience

With regards to name conflict, slash commands are grouped by the bot registering them AFAIK so we shouldn't have to worry about overlapping commands. See also: https://github.com/discord/discord-api-docs/issues/2346

It was unclear, but I mostly meant them as general examples of "consider making use of the slash commands features like permissions, discovery, subcommands and autocompletion". The slash commands provide an entirely different interface, so I think we should consider that when adding commands. I didn't have specific commands in mind, but wanted to discuss.
But we shouldn't be having this discussion in a PR after you spending the time. This is why I added

NOTE: Please discuss with us first before adding new features to avoid wasting your time.

to the README first.
When making nontrivial changes, it's better to:

Propose changes (also ok to show a proof concept as PR)
Discuss the details, and find what needs to be done
Decide what to do
Split into smaller tasks if needed
Start working on a task, communicate as needed
Request for review after each task

What you did:

Started working (I only mentioned migrating in the future, never discussed details)
a. Removed all commands (╯°□°）╯︵ ┻━┻, updated discord.js, added /echo, all in a commit
b. Added slash commands
Requested for a review after everything

If we had a discussion first, I would've told you to split the task into at least:

Upgrading discord.js to v13
Adding /echo as an example
Migrating the existing commands incrementally

Each in separate PRs, communicating and adjusting as needed.
When I wrote https://github.com/codewars/discord-bot/pull/37#issuecomment-1026302015, I didn't ask you to redo this because I kind of felt bad, and didn't want to discourage you. But it's been more time-consuming than I thought.
Last night, I looked into this more, and also played with slash commands to understand the code better. I have some changes I'd like to merge from that, and I also want you to open a new PR after that to preserve history. Not only to make my job easier, but removing and adding a file makes it look like you wrote the original (git blame will only show you). I don't like that, especially as a community project, and there's no good reason behind it. Probably annoying, but you'll remember this :p
Your efforts shouldn't be completely wasted since you can copy and paste the code from this PR, but you'll need to make some changes.
So far, I have the following locally:

Easier configuration

Requiring A=x B=y C=z npm start is not great. Even with only BOT_TOKEN, I had to look for it when coming back to this project, and it was annoying.
Instead, use gitignored .env.development file to store environment variables, including secrets. A new contributor can cp .env.example .env.development and fill in the values to get started. .env.production can be committed with any non-secret configuration.
Better error message when required configs are missing/invalid.
Declarative and type safe config
We can also disable features when missing some config, and show a warning.

Update discord.js to v13, which requires Node 16 now
/echo to play with

By the way,

the command ID is required if setting the permission for a particular slash command which seems difficult to obtain programmatically

Command IDs are included in the response of the command registration request.

Noted with thanks. So I suppose we should do the following?

Have your initial changes to the codebase committed
Close this PR
Open a separate issue(s) discussing how we can perform the migration step-by-step
Open new, incremental PRs as appropriate

Yeah, I'll open a PR soon. I'll comment on the PR to show you some ways to improve your slash commands.

Open a separate issue(s) discussing how we can perform the migration step-by-step

I think one issue with a task list should be fine. For existing commands, my main concerns are permissions. The discoverability is great, but it also means users will see the commands they can't use unless we set permissions. We can explore what we can do or should do in the new issue.

authors: DonaldKellett kazk

repo: codewars/discord-bot


text:
Support for connection pooling

A common scenario in server-side Swift is acquiring and using a database connection for HTTP-request duration.  Since applications typically connect to the database with application identity (versus end-user identity), a pool of connections can be used to avoid the overhead of setting up and tearing down a connection with each HTTP request.

Commit 27eab1e3e5cf99479057a92067169d388611d32e.

repo: codewinsdotcom/PostgresClientKit


text:
GTK XDnD (drag&drop) broken

I first noticed this issue in Firefox when I was unable to drag tabs without them popping out into a window of their own, but I've since reproduced in the Nemo file manager as well (dragging and dropping files fails to produce any results). Drag and drop does work in Dolphin, which is written using Qt rather than GTK, and drag and drop functions as normal in both Firefox and Nemo in kwin so it seems some particularity of GTK's XDnD implementation isn't being accounted for by worm.
All I've been able to find about peculiarities in GTK's drag and drop so far is this comment in i3's source code but I'm not certain it's relevant.

I have noticed this issue but I wasn't able to figure out the cause.
I did figure out it's related to reparenting. I spun up the most basic reparenting wm, which does nothing but simply reparent each window, and I have this issue - I remove reparenting and now i don't. I have an idea that the issue is that you have to copy certain window attributes from the child to the frame / parent; only problem is I have no idea which ones or how, as I can't find any documentation on this.

I wouldn't be surprised if the only way to figure out what needs doing here is by reading through the source code of more established WMs or perhaps chatting with their devs.

I've been combing through i3's source some more and I'm starting to believe that the part I linked might actually be the solution? From what I can tell, soon after reparenting i3 enters a state where the child window is unmapped but the container window is, which leads to that code path.
If you work more linearly this means after reparenting, you want to set WM_STATE_NORMAL to XCB_NONE (or anything, really) for GTK DnD to work.
I'll do a quick test and open a PR if it works.


text:
Challenge snippets containing [tab] characters are difficult to type

In SpeedTyper, pressing [tab] moves my focus out of the typing area. Tabs and spaces also look like plain white space depending on any other characters preceding them, so there may not be an easy way to tell there's a tab in the code snippet.
One example I came across today was from this autophytes/jotling file (loosely referenced in the related challenges file).
I kept seeing a commented-out section of code with what I thought was a space, but I only realized it was a tab after several tries to enter a space or the text right after it (if). Only issue is I had to use a special key combination to insert the tab. In my case, I used Windows' [alt]+numpad 0191.
I'm sorry, I didn't think to grab a screenshot of the issue before I closed the tab...
Here's what I'm using:

Brave 1.23.75 Chromium: 90.0.4430.93
Windows 10 Home, version 2004, build 19041.928, experience pack 120.2212.551.0
(I'm not sure the build or experience pack numbers matter honestly, but they're there just in case)

I'm considering jumping in on this to help out a little bit if you're open to PRs @codicocodes. I was thinking about this the other day and I would think the best solution would involve something like these:

Render invisible characters
Intercept [tab] when pressed in the typing box

Of course I'm saying this without knowing immediately what would be involved for the first part. This depends on how the code editor emulator is implemented or what package is used for this, right?

im gonna bump this as it is a big problem in the C snippets as all of them require pressing Tab

Hi thanks for making the issue!
Tabs are now parsed into two spaces and treated as regular indentation
which does not have to be typed. The c challenges seem to be working
correctly. (Inline indentation has to be typed)
tors 3 juni 2021 kl. 18:09 skrev the-gremlin @.***>:

im gonna bump this as it is a big problem in the C snippets as all of them
require pressing Tab
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/codicocodes/speedtyper-community/issues/3#issuecomment-853989343,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASELKZNHO2ZSKXTCMCGQIALTQ6SMBANCNFSM44DPT6QA
.

authors: JSn1nj4 codicocodes the-gremlin

repo: codicocodes/speedtyper-community


text:
Write a C++ program to find the cofactor of a matrix

Description
Write a C++ program to find the cofactor of a matrix
The cofactor of an element aij of a square matrix A is the determinant of the minor of A obtained by deleting the ith row and jth column of A. The cofactor of a matrix A is the matrix of cofactors of A.
Input  :
1 2 3
4 5 6
7 8 9

Output :
[[-3, 6, -3], [6, -12, 6], [-3, 6, -3]]

How to contribute

Save the solution in program/FindTheCofactorOfAMatrix.cpp file
Add FindTheCofactorOfAMatrix.cpp file in find-the-cofactor-of-a-matrix folder

!assign

!assign

repo: codinasion/program


text:
Allow changing smallest currency fraction

It seems all currencies are being displayed with two decimal places. There should be a setting for changing this behavior, or even better, autodetect the correct number of decimal places based on the selected currency (Gnucash on the desktop does this by default).
This would be great especially because the space for entering transaction amounts doesn't fit numbers greater or equal than 10,000.00 on my screen, which isn't a lot on my (non fractional) currency.

Fixed in v2.0.0

authors: codinguser pablocm

repo: codinguser/gnucash-android


text:
Inline suggestion disabled causes no suggestion anymore (VS Code, last v)

this is related to:
https://github.com/codota/TabNine/issues/552
My first experience with tabnine was great because it was only popup suggestions. Now, after some updates, I get only inline suggestions which I find glitchy, confusing and hard to apply. I want to disable inline suggestions but to put them in popup suggestions. I changed inline_suggestion_mode from null to false,  but now tabnine seems to do nothing... What would be the propper settings for this?
gz#20401

@florin-botea
Please see https://github.com/codota/TabNine/issues/581, to see if it fixes the issue.

You can close this.
I'done the following:
-uninstall tabnine
-deleted %appdata%/tabnine
-searched TabNine in %appdata% (cache) and deleted anything I have found
-reinstalled TabNine, seted to Hybrid model
-changed inline_suggestions in tabnine_config.json to false
now its work like a charm!
Please take in consideration to not remove popup suggestions in the future, else we will be very sad :( . Thanks!

authors: TzufTabnine florin-botea php-templates

repo: codota/TabNine


text:
Binary request timed out.

OS version: Win 10
Editor version: 1.53.2
Programming language: latex
TabNine extension version: 3.2.8

Editor console logs:

Issue Details:
In fact, I don't know what really happened. I suddenly found that I can't use tabnine. Based on console logs, it seems that the plugin can't connect to the server. However, I can use tabnine in other IDEs. Therefore, I presume that some errors may exist in this VS Code plugin.

Is Receive beta releases of Tabnine enabled for you?
Can you add the engine version (to be located in Tabnine Hub, click on the logo in the status bar) plz?
Since when are you experiencing this?

A worse thing is that I can't open the tabnine hub. The tabnine hub is completely blank.

Can you try to run the engine by yourself, just so we know it can run?
I'm not sure where it resides in Windows (as this is an internal vscode thing). But in Mac the path is roughly: /Users/myuser/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/3.3.57/x86_64-apple-darwin/TabNine
try to run it like so:
./TabNine.cmd --client testing --log_to_stderr

And let me know if you can see logs. If there is any error, please provide the logs here.

You may see numerous versions under the binaries folder, please run the latest version (and report which version that is). Thanks!

I can run this program. It seems that no error occurred, but there are some warnings. By the way, my binary version is 3.3.57.

I can run this program. It seems that no error occurred, but there are some warnings. By the way, my binary version is 3.3.57.

Are you sure there isn't version 3.3.82 there?

Is Receive beta releases of Tabnine enabled for you?
Can you add the engine version (to be located in Tabnine Hub, click on the logo in the status bar) plz?
Since when are you experiencing this?
Are you using cloud?

Also I need answers to those questions to further assist you

Yes, I'm sure. I only have one folder in the binary folder which is "3.3.57".
As for your question, I have never enabled receive beta releases before. After I click on the logo in the status bar, a blank page will appear in my VS Code editor. I don't really know when this began, and I'm only using the local version now.

I don't know why this plugin doesn't work. Currently, I can only roll back to Tabnine 2, which works well on my computer.

Are you seeing the same error as this user is seeing?
https://github.com/codota/tabnine-vscode/issues/356

same issue.
I can not open tabnine hub.

Are you seeing the same error as this user is seeing?
#356

[2021-03-02T14:27:45.430480+08:00][INFO][4527 main][TabNine][Some("tabnine/frontend/src/main.rs")][Some(437)] ./TabNine --client testing --log_to_stderr
[2021-03-02T14:27:45.430829+08:00][INFO][4527 main][auth::user::token_holder][Some("tabnine/auth/src/user/token_holder.rs")][Some(33)] token path: /Users/julytang/Library/Preferences/TabNine/tabnine.token
[2021-03-02T14:27:45.430914+08:00][INFO][4527 main][auth::user::token_holder][Some("tabnine/auth/src/user/token_holder.rs")][Some(20)] Failed to read token file, user cannot be identified: No such file or directory (os error 2)
[2021-03-02T14:27:45.431402+08:00][INFO][4527 main][auth::user::token_watcher][Some("tabnine/auth/src/user/token_watcher.rs")][Some(72)] Start watching token file
[2021-03-02T14:27:45.431450+08:00][WARN][4527 main][auth::user][Some("tabnine/auth/src/user/mod.rs")][Some(141)] No user token available
[2021-03-02T14:27:45.431627+08:00][INFO][4527 main][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/bootstrapper_conf.prefs.json")
[2021-03-02T14:27:45.431776+08:00][WARN][4527 main][defaults][Some("shared/defaults/src/lib.rs")][Some(115)] had an error deserializing object Os { code: 2, kind: NotFound, message: "No such file or directory" }
[2021-03-02T14:27:45.431830+08:00][INFO][4527 main][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(93)] config is BootstrapConfig { bootstrapper_enabled: true, api_endpoint: "https://api.tabnine.com/experiments/register/v2", registration_interval_seconds: 3600, bark_interval_seconds: 2, force_version: None }
[2021-03-02T14:27:45.432866+08:00][INFO][4527 main][http_requests][Some("shared/http_requests/src/lib.rs")][Some(73)] Making API request to https://api.tabnine.com/api_key_info/v3
[2021-03-02T14:27:47.279712+08:00][INFO][4527 main][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/active_experiment.prefs.json")
[2021-03-02T14:27:47.596195+08:00][INFO][4527 main][watchdog_api::wd_client][Some("shared/wd_api/src/wd_client.rs")][Some(64)] Initializing watchdog client...
[2021-03-02T14:27:47.602096+08:00][INFO][4527 bs_main_rlp][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/active_experiment.prefs.json")
[2021-03-02T14:27:47.602600+08:00][INFO][4527 bs_main_rlp][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/tabnine_version_3.3.57.prefs.json")
[2021-03-02T14:27:47.602922+08:00][INFO][4527 bs_main_rlp][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/bootstrapper_conf.prefs.json")
[2021-03-02T14:27:47.603065+08:00][WARN][4527 bs_main_rlp][defaults][Some("shared/defaults/src/lib.rs")][Some(115)] had an error deserializing object Os { code: 2, kind: NotFound, message: "No such file or directory" }
[2021-03-02T14:27:47.603122+08:00][INFO][4527 bs_main_rlp][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(200)] trying to start tabnine version Some("3.3.72")
[2021-03-02T14:27:47.603196+08:00][INFO][4527 bs_main_rlp][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/active_experiment.prefs.json")
[2021-03-02T14:27:47.610261+08:00][INFO][4527 bs_main_rlp][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(251)] expected path is "/Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/3.3.57/x86_64-apple-darwin/../../3.3.72/x86_64-apple-darwin/TabNine"
[2021-03-02T14:27:47.610473+08:00][INFO][4527 bs_main_rlp][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(290)] spawning tabnine with args ["/Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/3.3.57/x86_64-apple-darwin/../../3.3.72/x86_64-apple-darwin/TabNine", "--client", "testing", "--log_to_stderr", "--no_bootstrap"]
[2021-03-02T14:27:47.611606+08:00][INFO][4527 bs_main_rlp][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(294)] started tabnine process pid 4529 version Some("3.3.72"), desired version was Some("3.3.72") this version is Some("3.3.57")
[2021-03-02T14:27:47.611924+08:00][INFO][4527 bs_main_rlp][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/active_experiment.prefs.json")
[2021-03-02T14:27:47.618097+08:00][INFO][4529 main][auth::user::token_holder][Some("shared/auth/src/user/token_holder.rs")][Some(38)] token path: /Users/julytang/Library/Preferences/TabNine/tabnine.token
[2021-03-02T14:27:47.618723+08:00][INFO][4529 main][auth::user::token_holder][Some("shared/auth/src/user/token_holder.rs")][Some(21)] Failed to read token file, user cannot be identified: No such file or directory (os error 2)
[2021-03-02T14:27:47.618804+08:00][WARN][4529 main][auth::user][Some("shared/auth/src/user/mod.rs")][Some(163)] No user token available
[2021-03-02T14:27:47.618854+08:00][INFO][4529 main][TabNine][Some("tabnine/frontend/src/main.rs")][Some(434)] /Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/3.3.57/x86_64-apple-darwin/../../3.3.72/x86_64-apple-darwin/TabNine --client testing --log_to_stderr --no_bootstrap
[2021-03-02T14:27:47.619133+08:00][INFO][4529 main][watchdog_api::wd_client][Some("shared/wd_api/src/wd_client.rs")][Some(64)] Initializing watchdog client...
[2021-03-02T14:27:47.744228+08:00][INFO][4529 main][global_config::global_config][Some("shared/global_config/src/global_config.rs")][Some(679)] config path: /Users/julytang/Library/Preferences/TabNine/tabnine_config.json
[2021-03-02T14:27:47.749278+08:00][INFO][4529 lunar settings update thread (Remote)][lunar_connection][Some("tabnine/lunar_connection/src/lib.rs")][Some(510)] lunar settings update thread started (Remote)
[2021-03-02T14:27:47.749296+08:00][INFO][4529 lunar settings update thread (Local)][lunar_connection][Some("tabnine/lunar_connection/src/lib.rs")][Some(510)] lunar settings update thread started (Local)
[2021-03-02T14:27:47.749310+08:00][INFO][4529 model hash update thread][lunar_connection][Some("tabnine/lunar_connection/src/lib.rs")][Some(623)] model hash updater starting
[2021-03-02T14:27:47.749339+08:00][INFO][4529 lunar settings update thread (Remote)][lunar_connection][Some("tabnine/lunar_connection/src/lib.rs")][Some(516)] lunar settings update thread exiting (Remote)
[2021-03-02T14:27:47.749380+08:00][INFO][4529 main][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/active_experiment.prefs.json")
[2021-03-02T14:27:47.749391+08:00][INFO][4529 lunar settings update thread (Local)][lunar_connection][Some("tabnine/lunar_connection/src/lib.rs")][Some(516)] lunar settings update thread exiting (Local)
[2021-03-02T14:27:47.750595+08:00][INFO][4529 main][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/message_shown_timestamp_Stronger Model.prefs.json")
[2021-03-02T14:27:47.750737+08:00][WARN][4529 main][defaults][Some("shared/defaults/src/lib.rs")][Some(115)] had an error deserializing object Os { code: 2, kind: NotFound, message: "No such file or directory" }
[2021-03-02T14:27:47.760241+08:00][INFO][4529 model hash update thread][auth::user::token_watcher][Some("shared/auth/src/user/token_watcher.rs")][Some(65)] Start watching token file
[2021-03-02T14:27:47.772229+08:00][INFO][4529 main][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/experiment_converged_Stronger Model.prefs.json")
[2021-03-02T14:27:47.773976+08:00][INFO][4529 main][frontend::initialize][Some("tabnine/frontend/src/initialize.rs")][Some(5)] Started.
[2021-03-02T14:27:47.779679+08:00][INFO][4531 main][auth::user::token_holder][Some("shared/auth/src/user/token_holder.rs")][Some(38)] token path: /Users/julytang/Library/Preferences/TabNine/tabnine.token
[2021-03-02T14:27:47.780278+08:00][INFO][4531 main][auth::user::token_holder][Some("shared/auth/src/user/token_holder.rs")][Some(21)] Failed to read token file, user cannot be identified: No such file or directory (os error 2)
[2021-03-02T14:27:47.780358+08:00][WARN][4531 main][auth::user][Some("shared/auth/src/user/mod.rs")][Some(163)] No user token available
[2021-03-02T14:27:47.780406+08:00][INFO][4531 main][global_config::global_config][Some("shared/global_config/src/global_config.rs")][Some(679)] config path: /Users/julytang/Library/Preferences/TabNine/tabnine_config.json
[2021-03-02T14:27:47.783913+08:00][INFO][4531 main][locking][Some("shared/locking/src/lib.rs")][Some(78)] Trying to lock: "/Users/julytang/Library/Preferences/TabNine/3.3.72/TabNine-deep-local.lock"
[2021-03-02T14:27:47.784068+08:00][INFO][4531 main][locking][Some("shared/locking/src/lib.rs")][Some(88)] Lock acquired, performing the inner action
[2021-03-02T14:27:47.784296+08:00][INFO][4531 main][watchdog_api::wd_client][Some("shared/wd_api/src/wd_client.rs")][Some(64)] Initializing watchdog client...
[2021-03-02T14:27:47.789705+08:00][INFO][4531 main][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/active_experiment.prefs.json")
[2021-03-02T14:27:47.790821+08:00][INFO][4531 main][auth::user::token_watcher][Some("shared/auth/src/user/token_watcher.rs")][Some(65)] Start watching token file
[2021-03-02T14:27:47.884460+08:00][INFO][4527 thread][global_config::global_config][Some("shared/global_config/src/global_config.rs")][Some(961)] config path: /Users/julytang/Library/Preferences/TabNine/tabnine_config.json
[2021-03-02T14:27:47.987284+08:00][INFO][4527 thread][global_config::global_config][Some("shared/global_config/src/global_config.rs")][Some(961)] config path: /Users/julytang/Library/Preferences/TabNine/tabnine_config.json
[2021-03-02T14:27:48.619302+08:00][INFO][4529 thread][http_requests][Some("shared/http_requests/src/lib.rs")][Some(73)] Making API request to https://api.tabnine.com/api_key_info/v3
[2021-03-02T14:27:49.119622+08:00][INFO][4527 bs_main_rlp][bootstrapper::bootstrapper_lib][Some("tabnine/bootstrapper/src/bootstrapper_lib.rs")][Some(261)] current version is Some(Version { major: 3, minor: 3, patch: 57, pre: [], build: [] }), spawned version is Some(Version { major: 3, minor: 3, patch: 72, pre: [], build: [] }), remote version is Version { major: 3, minor: 3, patch: 72, pre: [], build: [] }
[2021-03-02T14:27:49.427442+08:00][INFO][4527 bs_main_rlp][bootstrapper::bundle][Some("tabnine/bootstrapper/src/bundle.rs")][Some(608)] lock is at "/Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/0.0.1/x86_64-apple-darwin/bundle.lock"
[2021-03-02T14:27:49.428452+08:00][INFO][4527 bs_main_rlp][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/3.3.72_hash_8369568908432183003_bundle.prefs.json")
[2021-03-02T14:27:49.625880+08:00][INFO][4527 bs_main_rlp][bootstrapper::bundle][Some("tabnine/bootstrapper/src/bundle.rs")][Some(258)] local bundle is valid so not downloading BundleContents { version: "3.3.72", files: [FileChecksum { path: "/Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/3.3.72/x86_64-apple-darwin/TabNine", hash: "cd0fc5ba1f6c13e20785c75e608c4bd9fad6f0e51948712f0ef4d3d40d315885" }, FileChecksum { path: "/Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/3.3.72/x86_64-apple-darwin/TabNine-deep-cloud", hash: "c1ab5151eb08bf26242f7f3885f538ef0b13d57048fd1db45755abe67edf6758" }, FileChecksum { path: "/Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/3.3.72/x86_64-apple-darwin/TabNine-deep-local", hash: "5533780171175c543f34c3e4b639c68afc293da2e71897e8dc3b60439d300205" }, FileChecksum { path: "/Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/3.3.72/x86_64-apple-darwin/WD-TabNine", hash: "58c981abf37c968702f1f0bc7982adec7cb8a52bcddcbb4f98abb6e4cd6530df" }] }
[2021-03-02T14:27:49.626509+08:00][WARN][4527 bs_main_rlp][bootstrapper::bundle][Some("tabnine/bootstrapper/src/bundle.rs")][Some(622)] relinquishing lock at path "/Users/julytang/.vscode/extensions/tabnine.tabnine-vscode-3.2.8/binaries/0.0.1/x86_64-apple-darwin/bundle.lock"
[2021-03-02T14:27:49.778255+08:00][INFO][4529 thread][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/login_happened.prefs.json")
[2021-03-02T14:27:49.778581+08:00][WARN][4529 thread][defaults][Some("shared/defaults/src/lib.rs")][Some(115)] had an error deserializing object Os { code: 2, kind: NotFound, message: "No such file or directory" }
[2021-03-02T14:27:49.879772+08:00][INFO][4527 bs_main_rlp][defaults][Some("shared/defaults/src/lib.rs")][Some(99)] getting value from path Ok("/Users/julytang/Library/Application Support/TabNine/defaults/active_experiment.prefs.json")
[2021-03-02T14:27:59.444862+08:00][INFO][4531 main][locking][Some("shared/locking/src/lib.rs")][Some(92)] Releasing lock: "/Users/julytang/Library/Preferences/TabNine/3.3.72/TabNine-deep-local.lock"
[2021-03-02T14:27:59.447102+08:00][INFO][4529 TabNine deep local exit wait thread][lunar_connection][Some("tabnine/lunar_connection/src/lib.rs")][Some(722)] TabNine-deep-local exited with status exit code: 0
[2021-03-02T14:28:07.763698+08:00][INFO][4527 thread][global_config::global_config][Some("shared/global_config/src/global_config.rs")][Some(961)] config path: /Users/julytang/Library/Preferences/TabNine/tabnine_config.json
[2021-03-02T14:28:07.867781+08:00][INFO][4527 thread][global_config::global_config][Some("shared/global_config/src/global_config.rs")][Some(961)] config path: /Users/julytang/Library/Preferences/TabNine/tabnine_config.json
[2021-03-02T14:28:12.400058+08:00][INFO][4527 thread][global_config::global_config][Some("shared/global_config/src/global_config.rs")][Some(961)] config path: /Users/julytang/Library/Preferences/TabNine/tabnine_config.json
[2021-03-02T14:28:12.502964+08:00][INFO][4527 thread][global_config::global_config][Some("shared/global_config/src/global_config.rs")][Some(961)] config path: /Users/julytang/Library/Preferences/TabNine/tabnine_config.json

Hi @zhenlingcn
Looking at your logs - it seems  like Tabnine having internet connectivity issued, and is having troubles to update itself. Are you behind any proxy / vpn? If not, are you able to use one?

Hi @julytang
Are you still having issues using Tabnine?
If so, could you please shoot us an email to support@tabnine.com  with the content of /Users/julytang/Library/Preferences/TabNine/tabnine_config.json?

Closing this issue as we moved the corresponding to email.

authors: bilucodota boaz-codota julytang zhenlingcn

repo: codota/tabnine-vscode


text:
fix: make sure  treeForVendor will resolve dependencies properly

Hello,
I have changed treeForVendor hook implementation a bit.
It will basically improve the way how add-on is resolving dependencies. It won't affect or change anything in the small projects where dependencies are stored in the root folder...
But, it will definitely help people like me who are working on quite complex codebases like monorepos where dependencies are shared between all the apps in one ecosystem.
Cheers ✌

@kepek Looks nice! Thanks you.
Didn't know vendorTree could be undefined.

authors: kepek panthony

repo: cogniteev/ember-cli-file-saver


text:
Fix issue when generating cookingworld games without backyard

Currently, when generating cookingworld games with less than 3 locations (i.e., no Backyard), recipes involving grilled ingredients are impossible to solve. Trying to generate the gold path for such insolvable games would result in the server crashing.
This PR provides a fix where a toaster object gets added to the Kitchen room that can be used to grill ingredients. It also changes the recipe text to say "grill [ingredient]" instead of "barbeque [ingredient]". This purposely adds ambiguity about what appliance needs to be used in order to cook the ingredient correctly. This proposed behavior is on par with TextWorld cooking games.
Thank you @xingdi-eric-yuan for reporting this bug.

Thanks  @xingdi-eric-yuan for reporting this.
I've updated the commit with:

Additional fix for issue https://github.com/cognitiveailab/TextWorldExpress/issues/4 , since this prevents cookingworld games with numLocations<3 generating
Now, if ingredients can't be placed in their canonical locations (for example, from having a small number of locations), they are placed in the kitchen randomly (in/on either the fridge, kitchen cupboard, counter, or dining table).
Previously, the tests were checking only the default parameter cases, which is why this error wasn't picked up.  I've refactored the tests to allow us to specify specific cases of properties we want to test (in addition to default properties), so we can test for edge cases more easily.
Tests are passed and the JAR is updated -- should be working.

Thanks for the prompt fix!
I'm using a code based on Marc's drrn-scienceworld so I have to use the newgame1 branch (specifically, 9f1ed5715896f15490f70a63db554c041c402a8d), in which the env.reset() and env.step() return a dict.
I know @PeterAJansen  you are actively working on this branch, so for now I'll stick with 5-room maps and change to the main branch whenever that also supports the infos dictionary.

Great!  I'm hoping to bring these fixes over to the development branch (newgame1) shortly, I will post here when that's completed!

authors: MarcCote PeterAJansen xingdi-eric-yuan

repo: cognitiveailab/TextWorldExpress


text:
Change to 0.x.0 releases so pinned versions can be updated

Right now, we're releasing versions like 0.0.3 and 0.0.4.
It just occurred to me that this will make it hard to deal with pinned versions that need to be updated.
For example, on another project, dependabot is telling me that I need to update numpy from 1.21.6 => 1.22 for a security vulnerability.  We may want to rerelease Coiled Runtime 3 with these changes.  I think we should change the numbering convention to be 0.3.0 instead of 0.0.3.  The new numbering convention would let us update the pinned version of Coiled Runtime 3 and release 0.3.1.

This is related to https://github.com/coiled/coiled-runtime/issues/133
There is clearly a decision to be made moving forward, and this makes sense.  I'm not sure we should go backward now with and change an existing version as some people are using it.
@MrPowers Can you point to the vulnerability alert here so we have it as a reference?
For your project, do you need to use 0.0.3 or would it be possible to use 0.0.4?

@ncclementi - here's the Dependabot alert for reference:

Yea, don't think we should go backwards now, but perhaps we can make a 0.4.0 release that's identical to the 0.0.4 release and use the 0.x.0 release convention going forward?

Closing this as we have released 0.1.0.

authors: MrPowers ncclementi

repo: coiled/coiled-runtime


text:
Optimize getting function selector

https://github.com/cantinasec/review-coinbase-smartwallet/issues/4

There is a difference though, doing [0:4] will revert if msg.data is less than 4 bytes, while doing byte4(data) won't and simply right pad with zeros.

There is a difference though, doing [0:4] will revert if msg.data is less than 4 bytes, while doing byte4(data) won't and simply right pad with zeros.

Yes but this shouldn't cause any new security risk. If the function selector has trailing 0s, using the right padding to reach the same function selector should be functionally the same call flow.

Also @xenoliss I sanity checked the selector of executeWithoutChainIdValidation and it's 0x2c2abd1e, so this should never be possible.

authors: wilsoncusack xenoliss

repo: coinbase/smart-wallet


text:
Can you set minimum confirmations required?

I've added a few new coins and they work great except some of them will show 100% confirmed but are still in a pending state.  Im guessing they require more confirmations (one of them requires 360 confirmations before it's fully confirmed).  Is there a config I can set for minimum confirmations for each coin?
I see this in the code:
var minConfirmations = extraPoolConfig?.MinimumConfirmations ?? BitcoinConstants.CoinbaseMinConfimations;
So I'm hopeful there is.  Is it as simple as adding "minimumConfirmations": 360, to my config for that coin?

Yes exactly.

authors: calebcall oliverw

repo: coinfoundry/miningcore


text:
Don't store app state in configuration file

Hi,
I'm tracking my configuration files in git. Using cointop with this approach is not nice (possible, but not nice) because cointop writes application state (favourite coins for example) to the configuration file... where it does not belong (IMHO).
State should be written to a state directory (XDG defines XDG_STATE_HOME, which would be a good place, IMO).
Could you change that? :smile:
Otherwise this is a nice application! :+1:

I kindof agree - it's annoying how cointop writes to the config file, and looses any comments or formatting, or anything it doesn't understand.  We would need to define out the config->state override works carefully, though.

authors: lyricnz matthiasbeyer

repo: cointop-sh/cointop


text:
Error

Traceback (most recent call last):
File "/usr/local/bin/yuku_run", line 47, in
yuku.download_cvlac(args.download_cvlac)
File "/usr/local/lib/python3.9/dist-packages/yuku/Yuku.py", line 152, in download_cvlac
if self.cvlav_private_profile(soup):
File "/usr/local/lib/python3.9/dist-packages/yuku/Yuku.py", line 45, in cvlav_private_profile
if text_private == blockquotes[1].text:
IndexError: list index out of range

closed via #14

repo: colav/Yuku


text:
[Bug] Infinite gray modal loading on staging/prod - working locally

Bug Report
Describe the bug
I'm using the CloudinaryUploadButton and have no issues in using it locally. Now I made a build of my NextJs app and put it on Staging (secure url). Whenever I click on the button, I get a gray modal which loads indefinetly. No errors in the console or network tab.
Expected behaviour
To simply open and work ;)
CodeSandbox or Live Example of Bug
This is my component
import { Button } from '@mui/material';
import { CldUploadWidget } from 'next-cloudinary'

interface CloudinaryUploadButtonProps {
  onUpload: (result: any, widget: any) => void;
}

const CloudinaryUploadButton = ({ onUpload }: CloudinaryUploadButtonProps) => {
  return (
    <CldUploadWidget uploadPreset="..." onUpload={onUpload}>
      {({ open }) => {
        function handleOnClick(e: any) {
          e.preventDefault();
          open();
        }
        return (
          <Button onClick={handleOnClick}>
            Upload an Image
          </Button>
        );
      }}
    </CldUploadWidget>
  )
}

export default CloudinaryUploadButton;

Screenshot or Video Recording

Your environment

OS:
Node version: Dockerimage node:18-alpine
Browser name and version: Chrome Version 111.0.5563.64
next-cloudinary: "^4.0.0"

Okay it seemed there was an underlying issue. The problem is that you need to take the NEXT_PUBLIC_ variables into account when using pipelines as they are only set during build time. As my cloudname was undefined, it got stuck. It would have saved me some time if there was an error message :)

Id be happy to add one but could you elaborate a little bit? Is it because it wasn't available in the CI?

authors: colbyfayock pixeliner

repo: colbyfayock/next-cloudinary


text:
Multiple ZodString validations of the same type

Currently, string validations such as .max(), .min(), .startsWith(), etc. seem to be able to register duplicate same type validations for the same schema.
Since these are contradictory definitions, shouldn't they raise an error on function call or be completely overwritten?
(My apologies if this is a specification intended for some use case I am not aware of.)
const stringSchema
    = z.string()
        .min(1)
        .min(2)
        .startsWith('a')
        .startsWith('b')
    ;
console.dir(stringSchema._def.checks);
// [
//   { kind: 'min', value: 1 },
//   { kind: 'min', value: 2 },
//   { kind: 'startsWith', value: 'a' },
//   { kind: 'startsWith', value: 'b' }
// ]

For example, what about the idea of changing schema._def.checks to be managed by key-value object instead of an array, as shown below?
// schema._def.checks
{
  min: 2,          // or { value: 2 }
  startsWith: 'b', // or { value: 'b' }
}

I think the idea of being able to compose the zod schemas through a pipeline of atomic constraints is quite nice.
I also think a properly designed schema does not contradict itself, e.g. for min or max it makes no sense to do this, figured adding constraints provides more clarity than overriding existing constraints of the same type.
The required additional logic of determining which constraints needs to be kept (e.g. min(2) should override min(1)) makes it even more fuzzy, no?
Only for .startsWith() I would see an exception in the case where you want to or all the different allowed starting strings, would be nice if it could accept an array of allowed strings instead (for now a .refine() is needed to achieve this)

authors: Koaieus j-murata

repo: colinhacks/zod


text:
Improve accuracy of the isAsync type guard

This PR updates the isAsync type guard to check the typeof Promise result against a string literal instead of the undefined data type. This change should improve the accuracy and reliability of the function when determining if a value is a Promise.

LGTM. Thanks for fixing this

authors: aaronccasanova santosmarco-caribou


text:
Add husky & lint-staged

Adds Husky & lint-staged as new dev dependencies. This addition will initially start formatting each staged file coming in. Once each file is formatted, though, upcoming PRs should be focused on the content without the unnecessary bloat of formatting unformatted code.
Relates to #225.

Looks great, btw, if you wanted to use Husky v5, you could, since zod is an open source project.
I think using v4 is still great, as maybe there are some unreported issues in the fifth version of Husky.

@o-alexandrov, I was thinking the same thing! Great minds think alike 😋  I tested both v4 and v5 before making the decision to stick with v4 for now. v5 includes a new .husky/ directory, which Husky then configures all git hooks to point to that directory using the git configuration core.hooksPath. When going back to v4 and being confused for a bit, this was a silent killer before I found it 😅  It also requires you to install pinst and set up some additional scripts. I think we should give v5 a bit more time 🙂

authors: jameschensmith o-alexandrov


text:
Feature Request: More advanced filtering

I'd love to be able to get even more granular with my filtering.
A few use cases that I've ran into pretty quickly:

Only show me open PRs (hide ones that are closed)
Only show commits from a certain person(s)
Only show PRs from a certain person(s)
Only show issues from a certain person(s)

This will definitely happen, just need to think a bit about the design

authors: anthonyshew colinlienard

repo: colinlienard/gitlight


text:
Create Nuclear Builder 20220814

2022-08-13 Doubled it up (tetryon)
2022-08-13 Rebuilt (tetryon, CamperHut, NaOida)
The build is basically 4 tiles of morsk's "1-hour nuclear mall", fed from ore trains, and grid-aligned for easy connection to rails

Don't bother accepting this; it's already outdated. I'll submit a real one once the automerge script works.


text:
xgboost4j integration

mleap seems to support RandomForestClassifier. What about xgboost, especially xgboost4j?
https://github.com/komiya-atsushi/xgboost-predictor-benchmark provides a great jvm based and very quick evaluator. Maybe this would be helpful for a xgboost-mleap integration.

Hey,
This could be an interesting extension library to MLeap, and is exactly the kind of thing that would help to make MLeap even better!
Please let me know if you would like help building this out.

Could you please give us some guide to develope mleap xgboost?

@geoHeil Started work on this, if you are still interested keep track of the PR here:
https://github.com/combust/mleap/pull/259

Merged into master

authors: fatihtekin geoHeil hollinwilkins

repo: combust-ml/mleap


text:
Is the exported model able to run in python environment instead of Java/Scala environment?

I am trying to use Mleap to avoid Spark during prediction. Currently, I can export the Spark model to Mleap format, but I cannot find any documents that can tell me how to use the exported model without spark dependency, I do find some wikis that describe how to do it in Java/Scala, but I wonder is the exported model able to run in python environment instead of Java/Scala environment?

Currently, mleap-runtime can only be invoked from Scala/Java/JVM based language. What you can do though, is to have either a grpc client or http client in Python, calling a scoring service running in Java/Scala. You can start by taking a look at the docker images with the spring boot/grpc services we released recently.

@Exlsunshine from your issue i understand that you were able to use mleap with pyspark , can you share the versions & installation details , there are few issues open for the integration and it doesn't seem to work by the documentation (mleap 0.13 & spark 2.4.0./2.3.0 for example)

authors: Exlsunshine ancasarb yairdata

repo: combust/mleap


text:
pre-commit run --all fails on macOS

Describe the bug
Problem
Running pre-commit run --all on master on Mac returns mypy errors. All the errors seem to relate to functions  from the os module that provide interface to the scheduler (e.g. getxattr).
Terminal output:
selfdrive/loggerd/xattr_cache.py:11: error: Module has no attribute "getxattr"
selfdrive/loggerd/xattr_cache.py:23: error: Returning Any from function declared to return "None"
selfdrive/loggerd/xattr_cache.py:23: error: Module has no attribute "setxattr"
common/realtime.py:39: error: Module has no attribute "sched_setaffinity"
selfdrive/loggerd/tools/mark_unuploaded.py:8: error: Module has no attribute "removexattr"
selfdrive/loggerd/tools/mark_all_uploaded.py:8: error: Module has no attribute "setxattr"

How to reproduce
Run pre-commit run --all in the openpilot folder.
Possible cause
This PR https://github.com/commaai/openpilot/pull/24448 replaced custom xattr implementation with one from the os package. According to the documentation, the scheduler functions from the os package are only available on "some Unix platforms" (https://docs.python.org/3/library/os.html#interface-to-the-scheduler). It would make sense that xattr fro the os package is not available for MacOS
Possible solution
What do you think about allowing to run local tests in a dockerized environment? I had some experience with https://github.com/nektos/act which allows running Github Actions workflows locally, using Docker. Adding this would forever end the problem of OS compatibility, at least in the universe of tests.
OS Version
macOS Big Sur 11.6.1 (20G224)
openpilot version or commit
No response
Additional info
No response

Part of the problem here is that we have --warn-unused-ignores enabled. For MacOS it's fine to ignore these errors, but on linux that would be an unused ignore and generate an error again.

Since pre-commit doesn't allow conditional skipping of just the mypy stage, I just disabled pre-commit install on mac (https://github.com/commaai/openpilot/commit/28d0459c69a6f9bcf511fe982ba573cb7842e385) until our mac support is in better shape.

authors: adeebshihadeh oskarkocol pd0wm

repo: commaai/openpilot


text:
threex: didn't boot

Device was connected with serial and had been up for a few days. I had just switched the branch to master and typed sudo reboot, then in serial all I see is logout. I disconnect serial (Ctrl+C), tried to reconnect, but it showed panda disconnected! and no output. After waiting a minute with nothing displayed on the screen or serial, I unplugged, waited a few seconds, and plugged it back in.
Fan started up, nothing in serial, nothing on display. Unplugged, re-plugged to jungle now, fan stayed at max for a bit longer, but nothing still from display.
panda light was slow blinking red when I checked.
Finally, after plugging back into serial I got output and it showed the bootsplash and booted up successfully.
Bootlog right after this happened, though it looks like a normal boot to me (only logs for ~a minute): bootlogs/297b4b460f361603/2023-08-05--01-05-27.bz2

I can't recall when exactly, but I think at some point it did find the panda, but displayed no output even upon pressing enter.

After it started, it looks like it disconnected from serial again and won't show any more output:
[    9.826809] rmt_storage:INFO:main: Done with init now waiting for messages!
[    9.827499] ipa ipa3_uc_state_check:289 uC is not loaded
[   10.433533] samsung_i2c_touchpanel 2-0017: ss_color_cal_read: checksum 0x0 did not match expected 0xb8
[   10.447070] configfs-gadget a600000.dwc3: failed to start g1: -19
[   10.563559] samsung_i2c_touchpanel 2-0017: ss_color_cal_read: checksum 0x0 did not match expected 0xb8
[   10.843692] samsung_i2c_touchpanel 2-0017: ss_color_cal_read: checksum 0x0 did not match expected 0xb8

Ubuntu 20.04.5 LTS tici ttyMSM0

tici login: panda disconnected!
no pandas found
no pandas found
/home/batman/openpilot/panda/python/__init__.py:430: RuntimeWarning: found device with panda descriptors but invalid serial: ?
  warnings.warn(f"found device with panda descriptors but invalid serial: {serial}", RuntimeWarning)
no pandas found
no pandas found
no pandas found
no pandas found
no pandas found
no pandas found
no pandas found
no pandas found
no pandas found
panda disconnected!
USB connect error
Traceback (most recent call last):
  File "/home/batman/openpilot/panda/python/__init__.py", line 392, in usb_connect
    handle.claimInterface(0)
  File "/home/batman/.pyenv/versions/3.11.4/lib/python3.11/site-packages/usb1/__init__.py", line 1146, in claimInterface
    mayRaiseUSBError(
  File "/home/batman/.pyenv/versions/3.11.4/lib/python3.11/site-packages/usb1/__init__.py", line 127, in mayRaiseUSBError
    __raiseUSBError(value)
  File "/home/batman/.pyenv/versions/3.11.4/lib/python3.11/site-packages/usb1/__init__.py", line 119, in raiseUSBError
    raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorBusy: LIBUSB_ERROR_BUSY [-6]
^Cbatman@workstation-shane:~/openpilot/panda/tests$ ./som_debug.sh

What does "after plugging back into serial" mean? How did you get serial and power separately?

I unplugged, waited a few seconds, and plugged it back in.

Disconnecting power for a few seconds isn't gonna do anything with the supercaps fully charged, except kill and restart the fan since it's not on the supercaps.

After it started, it looks like it disconnected from serial again

It's normal for it to disconnect after booting since openpilot reflashes and resets the panda on startup.

I mean I unplugged the power cable which was going into serial. When I plugged it into the jungle, it was disconnected for about 15 seconds

Closing as this isn't really actionable

authors: adeebshihadeh sshane


text:
Hyundai Tucson L 2023(CHINA)  CAN ERROR

Describe the bug
DEVICE :COMMA 3X
CAR:Hyundai Tucson L 2023(CHINA)  HAS SCC&LKA
When the vehicle starts, openpilot starts, C3X displays can error, and the dashboard displays various fault codes。
8ffe737851ca1b11|2023-10-25--19-59-10--0
Which car does this affect?
Hyundai Tucson L 2023(CHINA，1.5T 8AT )
Provide a route where the issue occurs
8ffe737851ca1b11|2023-10-25--19-59-10--0
openpilot version
sunnypilot
Additional info
I have tried the official version, but the problem and fault still persist

We need a stock route to look into this; open a new issue once you have one.