text:
create proxy: load cert: open df.crt: no such file or directory

Question
Document:
hijack_https:
  # key pair is used to hijack https requests between the caller(E.g. dockerd, containerd) and dfdaemon. You can generate them with make df.crt at the root directory of dragonfly project.
  cert: df.crt
  key: df.key
  hosts:
    - regx: core.harbor.domain:32443
      # If your registry uses a self-signed certificate, please provide the certificate
      # or choose to ignore the certificate error with `insecure: true`.
      certs: ["ca.crt"]

Errors log
Error: create dfdaemon from config: create proxy: load cert: open df.crt: no such file or directory

What directory should I put in?

Could you use the absolute path?

You need to generate them by yourself. FYI: dragonfly has provided a script.

Could you use the absolute path?

Should use an absolute path?

You need to generate them by yourself. FYI: dragonfly has provided a script.

I don't quite understand which path should I put in?

You need to generate them by yourself. FYI: dragonfly has provided a script.

I don't quite understand which path should I put in?

You must use the absolute path of the certificate so that it can be read correctly

authors: Starnop hmthoo zcc35357949 zkking

repo: dragonflyoss/Dragonfly


text:
chore: add Kuaishou to ADOPTERS.md

Signed-off-by: Gaius gaius.qi@gmail.com

Description

Add Kuaishou to ADOPTERS.md.

Related Issue

Motivation and Context

Screenshots (if appropriate)
Types of changes

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

Checklist

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.

Thanks for your work, It's a great honor for Kuaishou to join this great project.

source: gharchive/pull-request

authors: gaius-qi zvier

license_type: permissive

license_source: github-api


text:
Fix CI badge

Signed-off-by: Gaius gaius.qi@gmail.com

Description

Fix CI badge display.

Related Issue
Fixes #280

Motivation and Context
N/A

Screenshots (if appropriate):
Types of changes

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

Checklist:

[x] Code compiles correctly.
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

Merging #281 (75a10de) into main (f9f30c8) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #281      +/-   ##
==========================================
- Coverage   43.58%   43.53%   -0.05%
==========================================
  Files          53       53
  Lines        4176     4176
==========================================
- Hits         1820     1818       -2
- Misses       2120     2121       +1
- Partials      236      237       +1

Flag
Coverage Δ

unittests
43.53% <ø> (-0.05%)
:arrow_down:

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

Impacted Files
Coverage Δ

pkg/util/net/iputils/ip_utils.go
61.22% <0.00%> (-4.09%)
:arrow_down:

authors: codecov-commenter gaius-qi


text:
Run ci tests in parallel

—jobs=2

LOL. alright. -jobs=2. say no more fam.

lmao 🤣
yeah so this wont work... cause imagine this: multiple test cases are trying to run at the same time.. that means 1 chrome will start on port 9293, and before that test finished, 3 more might try run, but can tcause the port is occupied
It's not really a problem, its just a way its setup, would be the same with tests for drash for example

source: gharchive/issue

authors: crookse ebebbington

repo: drashland/sinco

license: MIT


text:
Add size snapshot

This plugin allows to track size changing with every commit. Also there is useful treeshakability metric which shows size after bundling import {} from 'lib'. This allows us to fix treeshakability explicitly without false assumptions.
P.S also I found inconsistency in naming: dist/react-spring.js is cjs, dist/addons.js is esm.

Nice, thanks!
As for addons, that was really weird, i was running into the infamous class cannot be invoked withoput 'new' issue (extending classes with es5 turned classes), so i had to bundle the "Animation" class into addons.

authors: TrySound drcmda

repo: drcmda/react-spring


text:
[Feature] 支持MAILGUN

请描述您的 Feature
希望能夠支持MAILGUN，目前只支持RESEND，MAILGUN 加入可以輪循使用，或是大大可以提示如何修改，感謝
描述您想要的解决方案
描述您考虑过的替代方案
附加上下文

OK 我有空看下文档如何集成

OK 我有空看下文档如何集成

嗯嗯，如果可以多個帳戶輪循的話就更好了。大佬謝謝你😊😊😊


text:
Tafsirs endpoint not working

Looks like the tafsirs endpoint is not working.
I'm running the following command:
qur.get_tafsir_from_verse_id(11, 40, tafsirs=16)

And this is what I'm getting:

Also when I type the URI in the browser, I get an error message:

Looks like the following is working:
https://api.quran.com/api/v3/chapters/11/verses/40/tafsirs/16
I can open a PR to fix it if you don't mind.


text:
Add testing process

This pull request will add a few testing features around cirleci integration. This includes:

Istanbul and Coveralls integration
CircleCI testing on multiple supported versions of Nodejs

We don't support node 0.10, so I think you can remove it (officially I think we only support > 4, but a lot of people still use 0.12, so good to test).
Other than that, lgtm.

repo: driftyco/ionic-cli

license: mit

license_source: bigquery


text:
Offline App

Does this app works offline ? I mean, Is service workers activated ?

The service worker is not enabled by default, it can be enabled by uncommenting the code here: https://github.com/driftyco/ionic-conference-app/blob/master/src/index.html#L15-L21

repo: driftyco/ionic-conference-app


text:
How can I multiple images on popup window?

How can I put more images with this code?
It's not working well when I add another  in the title.

Greetings @hojinshin!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Please look at the docs to the status bar.
https://github.com/apache/cordova-plugin-statusbar#methods
Use StatusBar.styleLightContent

authors: Ionitron hojinshin mhartington

repo: driftyco/ionic


text:
bug: ion-input type date breaks user experience

Type: bug
Ionic Version: 2.x
Platform: mobile webview
ion-input type date creates a div with class input-cover that covers the input and reduces height on tap, thus enforcing the user to do double tap, users expect to open the date picker with one tap and will think it's broken.
To reproduce just paste this in the sidemenu starter html and emulate or deploy to device:
<ion-list>
    <ion-item>
      <ion-label>Fecha de entrega</ion-label>
      <ion-input type="date" required></ion-input>
    </ion-item>
  </ion-list>

Image that shows what's happening:

Update 1: This bug is present in Android platforms be it emulated or device, not in IOS nor Web Browser, that div is present in browser emulating device like Google nexus 7 but it doesn't require double tap, thus not interfering with user selecting Date input.

That div is there by design, and is what's used to keep control of the keyboard focus without having the entire webapp scroll up. I think what I need to do is add the tappable attribute to that div so the click even fires faster.

This should help: https://github.com/driftyco/ionic/commit/b814314b314edc5ccae89edc2a6666cdd71cdb09

Any idea when will it be included in the npm package?

how to set required to ion-input? i add 'required' on  tap it dosen't work

authors: Luchillo RunningV adamdbradley


text:
bug: duplicate entries in history stack after implementing RouteConfig

Issue in Ionic 2
After configuring routeconfig as below
@RouteConfig([
{ path: '/', component: HomePage },
{ path: '/next', component: NextPage }
])
launched the app http://localhost:8100 in browser. But when i press back button, It not going back still in homepage for 3 consecutive back press. after 3 try it going back.

Thanks for opening an issue with us ! Are you navigating forward in your app before trying to go back?

No.
you can try replicating it by adding routeconfig and entering

ionic serve

command.  you can see back button got enabled already.

Is there any workaround for this? I'm planning for go live. Pls help.

Sorry for the delay @dheeran1 ! Thats my fault. Would you be able to provide just a little more info on your issue, and maybe a codepen or plunkr so that i can reproduce this myself and have a look at your code? Thanks! And sorry again!

@jgw96  this is an straight forward issue. just add routeconfig into the app. Launch the app. then try pressing back (browser's back button), notice that you will be redirected to the same page again for consecutive 3 tries.

Bug raised in angular also
https://github.com/angular/angular/pull/6069

Ng2's new router has been deprecated and refactored. In upcoming releases we'll update Ionic to the Ng2's new new router. Sorry for any issues this may cause.

@adamdbradley will navcontroller or ionic will also be deprecated. actually two terms for same job, confusing a lot.
Will beta 7 release will include the changes you mentioned above?

Hey @dheran! Sorry for the confusion, nothing in Ionic 2 is being deprecated. The original router the angular 2 team built is now deprecated and they are working a new angular 2 router. Our integration of this new router into Ionic 2 is not ready yet and will not make it to the beta.7 release. Thanks for using Ionic!


text:
Month column missing in DateTime picker

Short description of the problem:
DateTime picker displays an empty month column when using a min attribute, whose year is not the current year
What behavior are you expecting?
DateTime picker should always display a valid date when opened without defined value
Steps to reproduce:

Create a minimal ion-datetime component such as :
<ion-datetime max="1998"></ion-datetime>
Open it : month is missing :(

Which Ionic Version? Ionic2 Beta 11
Plunker that shows an example of your issue
http://plnkr.co/edit/KZBREK7iEFACKVULt0lG?p=preview
Run ionic info from terminal/cmd prompt:
Cordova CLI: Not installed
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Yosemite
Node Version: v4.5.0
Xcode version: Xcode 7.2 Build version 7C68

I'm surprised this wasn't fixed in the recent RC. Wish it were.

Thanks for the issue! I'm not able to reproduce this in the latest RC (2.0.0-rc.6) so I am going to close this. Please let me know if you are still having the issue with steps to reproduce and I will reopen it. :)

authors: aurbina83 brandyscarney ogoguel


text:
Great talk, thank you

Loved especially your cookie cutter ds templatate. :)
Suggestion for future recorded talks: repeat questions into the mic.

Ugge

repo: drivendata/data-science-is-software


text:
node-XMLHttpRequest + axios + MockRequests: Cannot read property 'headers' of undefined

https://github.com/D-Pow/MockRequests/issues/15?utm_source=pocket_mylist#issuecomment-888685996
global.fetch = require('node-fetch');
global.Headers = fetch.Headers;
global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
MR = require('mock-requests');
global.axios = require('axios');

MR.setMockUrlResponse('http://localhost:1111/t', {
  mockExample: 1
});

axios.get('http://localhost:1111/t').then(resp => console.log(resp));
// Error "Cannot read property 'headers' of undefined"
// at exports.XMLHttpRequest.getAllResponseHeaders at node_modules/xmlhttprequest/lib/XMLHttpRequest.js:239`

Pull request:
https://github.com/driverdan/node-XMLHttpRequest/pull/191

repo: driverdan/node-XMLHttpRequest


text:
Add spelling workflow

Prevent those misspellings.
@AndriiSherman

wow, will add it
and we will use it in docs repo as well
thanks!

Glad to contribute.

authors: AndriiSherman szepeviktor

repo: drizzle-team/drizzle-orm


text:
Discrepancy between local execution and web-based

I prepared a CPPs set using the ESM2-320 and ESM2-480 models for prediction, and most of the sequences resulted in 1. However, the predictions from your website do not reflect this.

@drkumarnandan Please give some reply to the information seen.


text:
Compilation warning on NetBSD

When compiling the 0.4.10 release on NetBSD-7.99.5/amd64, I get:
opts.c: In function 'proxyspec_parse':
opts.c:380:8: warning: 'af' may be used uninitialized in this function [-Wmaybe-uninitialized]
     af = sys_sockaddr_parse(&spec->connect_addr,
        ^
opts.c:316:8: warning: 'addr' may be used uninitialized in this function [-Wmaybe-uninitialized]
     af = sys_sockaddr_parse(&spec->listen_addr,
        ^

There's a NetBSD package available now, see
http://pkgsrc.se/security/sslsplit (in a couple of hours)

The state machine ensures that af and addr are written to before they are being read, but I added explicit initializations to the develop branch now anyway to silence the compiler warnings. Thanks for the report and NetBSD porting/packaging.

repo: droe/sslsplit


text:
[Task]  com/usthe/warehouse/WarehouseWorkerPoolTest.java

Description
Help us impl Unit Test For com/usthe/warehouse/WarehouseWorkerPoolTest.java
You can learn and refer to the previous test cases impl.

controller example unit case:  https://github.com/dromara/hertzbeat/blob/master/manager/src/test/java/com/usthe/manager/controller/AccountControllerTest.java
service example unit case:  https://github.com/dromara/hertzbeat/blob/master/manager/src/test/java/com/usthe/manager/service/TagServiceTest.java
jpa sql dao example unit case: https://github.com/dromara/hertzbeat/blob/master/manager/src/test/java/com/usthe/manager/dao/MonitorDaoTest.java

Task List

[ ]  Impl Unit Test For com/usthe/warehouse/WarehouseWorkerPoolTest.java

@tomsun28 Hi, assigne it to me.

@tomsun28 I was to this task but it seems like a test has already been provided for this class. I have made a little refactoring on the class.

repo: dromara/hertzbeat


text:
使用ruoyi springboot时 本地存储引擎的静态资源无法访问

springboot 版本: 2.5.15
x file storage版本:  2.1.0
配置文件
dromara:
  x-file-storage: #文件存储配置
    default-platform: local #默认使用的存储平台
    thumbnail-suffix: ".min.jpg" #缩略图后缀，例如【.min.jpg】【.png】
    #平台的配置
    local-plus:
      - platform: local # 存储平台标识
        enable-storage: true  #启用存储
        enable-access: true #启用访问（线上请使用 Nginx 配置，效率更高）
        domain: http://127.0.0.1:9090/file/ # 访问域名，后面要和 path-patterns 保持一致，“/”结尾
        base-path: storage/ # 基础路径
        path-patterns: /file/** # 访问路径
        storage-path: D:/ranking/ # 存储路径

问题：上传流程正常 文件数据也能保存到数据库 但是访问url 提示404
访问url：http://127.0.0.1:9090/file/storage/6642f6314907bf5b662aad93.png
尝试：自动配置加载正常

请问这种情况是配置有误 或者是环境中有和xfile冲突的配置？
谢谢您的回复

目前版本是有这个问题，参考：https://github.com/dromara/x-file-storage/issues/229

了解了 手动写一个文件映射的WebConfig注入就正常了

repo: dromara/x-file-storage


text:
GUVNOR-2419: After deleting from one project and switching to another, it is not possible to return to the first one.

@manstis The change that we discussed here: https://github.com/droolsjbpm/kie-wb-common/pull/275/files#r53944301
I've tested it on Windows, and it works.

+1 to merge.

Thanks!

6.4.x: ded8d1bba61dd53794b535b9cab2f750516ed6cc

authors: csadilek manstis paulovmr

repo: droolsjbpm/kie-wb-common


text:
Code View of API calls does not update

Upon updating a parameter or the code view type, the request view should re-render and show the updated request it is making.  However, due to changes in the way react has been updated, this now does not work.
I suspect that this is due to the fact that when the parent re-renders upon state change, it was previously recreating the react components instead of reusing them like it does today.  The recreation was what was updating them in the past and therefore the parent updating needs to be passed down to the children now.

Thanks for reporting this Brad.

#26

authors: KarandeepJohar greg-db rogebrd


text:
Type relationship as list

:sparkles: Type relationship as list.
Currently, the plugin types relationships with uselist as Iterable[X], but these relationships actually expose a list with list semantics, including .append(), assignments, etc.
This PR updates the plugin to type those relationships with List[X] instead of Iterable[X].
Ref: https://docs.sqlalchemy.org/en/13/orm/relationship_api.html#sqlalchemy.orm.relationship.params.uselist
Ref of usage with assignment: https://docs.sqlalchemy.org/en/13/orm/tutorial.html#working-with-related-objects
Ref of usage with append: https://docs.sqlalchemy.org/en/13/orm/tutorial.html#building-a-many-to-many-relationship

Note: I'm by no means expert in mypy internals and its plugins, I'm not 100% sure the usage of ctx.api.named_generic_type('builtins.list', [new_arg]) is correct here, but I see that seems to be how it's used by mypy: https://github.com/python/mypy/blob/master/mypy/plugins/ctypes.py#L158

Fixes #152

Also, this PR doesn't take into consideration #107 (not that it has to).
IMHO List should be the default type for relationship fields due to argumentation provided above by @tiangolo . Then, support for other values of collection_class can be added.

I've just found #82, which this PR extends by adding tests.
I guess that the topic is a pain for many people :smile:

yes, this topic is a pain. is anything else needed before this can be merged?
thanks @tiangolo for raising/fixing.

Thanks for this! Just figured I'd bump @shawnwall 's comment, is anything else needed before this can be merged?

OK, I will merge this now. We can revisit then if this will cause issues with internal repos.

OK, I will merge this now. We can revisit then if this will cause issues with internal repos.

Awesome! Thanks @ilevkivskyi ! :rocket:

Awesome! Thanks @ilevkivskyi ! :rocket:

authors: cd17822 ilevkivskyi lukaszdudek-codibly shawnwall tiangolo

repo: dropbox/sqlalchemy-stubs


text:
equality on different units

Assertion.assertThat( reason, CoreMatchers.equalTo( Size.terabytes( 0 ) ), Size.parse( "0M" ) ) java.lang.AssertionError: parse( '0M' ) matches :<0 terabytes> Expected: <0 terabytes>      but: was <0 megabytes>
Assertion.assertThat( reason, CoreMatchers.equalTo( Size.bytes( 0 ) ), Size.terabytes( 0 ) ); java.lang.AssertionError: Size.bytes( 0 ) matches :<0 terabytes> Expected: <0 bytes>      but: was <0 terabytes>
looks like 0 ( zero ) no equals to 0 zero.........

Yes, because Size.equals is

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if ((obj == null) || (getClass() != obj.getClass())) {
            return false;
        }
        final Size size = (Size) obj;
        return (count == size.count) && (unit == size.unit);
    }

Both the count and the unit must be equal.
This does not look like a bug to me.

500 bytes can't be represented as a whole megabyte, so one would have to round to 0 or 1.

There may be a nice way to fix this; I do something similar for working with some of my own date and time constructs (for example, 60 seconds and 1 minute are equal in spite of using different units of measurement). I'll take a look at this and see if the logic I utilized is applicable here.

Actually, this class is actually bugged. It violates the Comparable contract. Two objects may show compareTo == 0 while equals returns false.

I have added a unit test to my local code base that fails (which should succeed).
    @Test
    public void verifyComparableContract() {
        final Size kb = Size.kilobytes(1024L);
        final Size bytes = Size.bytes(kb.toBytes());

        assertThat(bytes.compareTo(kb)).isEqualTo(0);
        assertThat(kb.compareTo(bytes)).isEqualTo(0);

        // If comparator == 0, then the following must be true
        assertThat(bytes.equals(kb)).isTrue();
        assertThat(kb.equals(bytes)).isTrue();
    }

I will submit a PR with a fix.

Closed via #2155.

authors: daniv isaki-x joschi lutzhorn nickbabcock

repo: dropwizard/dropwizard


text:
Update on README.md in dropwizard-archetypes

Given that $name is used to generate Configuration and Application classes, it is vital for new users not to inappropriately name it during maven interactive mode.
Also the hard-coded 0.9.1 archetype version is replaced with a place holder (there might be a better solution to have a token put in that is value-replaced by release version?).

Coverage remained the same at 80.877% when pulling bb68a7168f787bd7bf6bf19c3e598040c26ecb67 on cwang:master into b95c4e0db6151504633b2457f79b29617597065f on dropwizard:master.

Highlight done.

Thank you for contributing!

Coverage decreased (-0.003%) to 80.874% when pulling 5d94574971df7a5100ec42b39dc565be8045cd38 on cwang:master into b95c4e0db6151504633b2457f79b29617597065f on dropwizard:master.

authors: arteam coveralls cwang


text:
Allow file appender infinite log files

Closes #1491
I think there is no reason not to allow dropwizard users the ability to keep infinite files as long as it is warned and the default remains something sensible.
This also fixes the erroneous description that the number of archived files have a maximum (they don't)

Coverage remained the same at 80.958% when pulling a0881638126ba80478d4b9097a53e6340cbc3056 on nickbabcock:infinite-archives into ae9844a80a1ab273b7ccdb35d86fa624ee915d7a on dropwizard:master.

LGTM. 👍

authors: coveralls joschi nickbabcock


text:
Give user feedback when container healthcheck fails.

Is your feature request related to a problem? Please describe.
When your custom nginx configuration is broken (e.g. you forgot to add /fpmstatus location to the nginx-site.conf, then ddev will fail to start without any meaningful information.
Also ddev logs is not helpful in this case.
Describe the solution you'd like
I would like to get a clear message like "Can not connect to nginx on http://..../fpmstatus", please check if your nginx-site.conf contains a /fpmstatus endpotint.

Definitely a good point. Related Reorganize nginx configs to share most elements #849, a custom nginx config really shouldn't have to do any of this.
And another annoyance: Because of apache change in (hopefully) next release, the /fpmstatus endpoint will probably change to /phpstatus. It's possible we can do something meaningful in there to fix that. AFAIK docker-compose doesn't inform us very well of what's going on. But maybe we can find something. I'd sure love to see this fixed.
BTW, could you mention what you're still having to do for custom nginx config? It would help to give a gist to the actual config that broke you as well.

Hi @rfay,
I did some tests, and after adding error message to stderr in the healthcheck.sh, I can see it when calling docker inspect in the log section. This not ideal (as not everybody would check inspect), but at last gives you some hints.

Excellent, thanks!

I use and recommend
Web container: docker inspect --format "{{json .State.Health }}" ddev-<project>-web | jq (for web container failure)
ddev-router: docker inspect --format "{{json .State.Health }}" ddev-router

authors: rfay tmotyl

repo: drud/ddev


text:
Fix resource leaks (ComplexColumn and GenericColumn)

There is also DictionaryEncodedColumn, which implements Closeable, but closed only in QueryableIndexStorageAdapter, in other places it is consistently not closed. I'm not sure DictionaryEncodedColumn.close() is correct, and doesn't close some shared resources.

This un-swallows a bunch of checks but that's probably a good thing

👍

@nishantmonu51 addressed your comment.

Related: #3637

👍

authors: drcrallen leventov nishantmonu51

repo: druid-io/druid


text:
Add Flink accumulators

This PR adds accumulators to Flink BeamSink. They will provide some more insights to the user.
It also updates the readme.

looks good after adjusting the naming of the counters.

Fixed your comment. Thank you for the review!

:+1: Looks good to me!

:+1:

authors: fjy gesundkrank gianm

repo: druid-io/tranquility


text:
reverse the import order for json modules

fallback to the stdlib json module.

See comment on #11. (Also do not reformat whitespace.)

authors: brunobord dsc

repo: dsc/bunch


text:
BREAKING CHANGE: xDnsServerSetting: Remove properties EnableEDnsProbes and EDnsCacheTimeout

Details of the scenario you tried and the problem that is occurring
Suggest removing the properties EnableEDnsProbes and EDnsCacheTimeout from the resource xDnsServerSetting to avoid ping-pong behavior. Instead those should be enforced by the resource DnsServerEDns.
Verbose logs showing the problem
n/a
Suggested solution to the issue
See above. Related to issue #194 .
The DSC configuration that is used to reproduce the issue (as detailed as possible)
n/a
The operating system the target node is running
Any Windows
Version and build of PowerShell the target node is running
Windows PowerShell
Version of the DSC module that was used
2.0.0 preview

Waiting for the issue #194 to be resolved.

repo: dsccommunity/xDnsServer


text:
feat: add egghead under beta sponsors

Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[x] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your default branch!
[x] Make sure you are making a pull request against the default branch (left side). Also you should start your branch off default branch.
[x] Check the commit's or even all commits' message styles matches our requested structure.
[x] Check your code additions will fail neither code linting checks nor unit test.
[x] I have added necessary documentation (if appropriate)

Description
Please describe your pull request.
❤Thank you!
Post merge checklist

[ ] Follow steps from the guidelines for contributing to this repository.
[ ] If you are a new contributor, ping in the thread and one of the maintainers will add you to all-contributors list.

@padmajabhol a very small minor change. Can you interchange github aur devfolio ka logos... taaki woh spacing aur thoda even dikhe...

repo: dscnitrourkela/project-oregano


text:
Make 50 the default number of ELMs

50 generally seems to work just as well as 100.

Changed in commit bfc9795.


text:
Ll/revive emr workflow

Completes JIRA Story DSGRID-
Closes GitHub Issue #
Description
update AWS EMR workflow
Checklist

[ ] Tests exercising the new feature or bug fix
[ ] All tests pass
[ ] At least one code review approval
[ ] Consider transferring TODOs to JIRA or GitHub

If @daniel-thom can verify that the emr/README.md instructions are sufficient and work, I'm good with this PR. LMK if you would rather that I test it out myself.

I think that @lixiliu still wants to test some things out. One item that needs to be checked is whether we can change the time zone in the spark session that is created in this workflow.

If @daniel-thom can verify that the emr/README.md instructions are sufficient and work, I'm good with this PR. LMK if you would rather that I test it out myself.

I think that @lixiliu still wants to test some things out. One item that needs to be checked is whether we can change the time zone in the spark session that is created in this workflow.

Can set time zone the same way as HPC spark cluster.

Logging on to Jupyter puts you into the dsgrid_notebooks folder, presumably on an EMR instance? How do you preserve work you do there? How would users work in a different folder altogether? It's probably worth adding some documentation about that.

I get an error that results in my instances still running after I Ctrl-C'ed my process:
^CCaught Ctrl+C, shutting down tunnel, please wait
Copying notebooks back to local machine: /home/ehale/dsgrid/dsgrid/notebooks...
Terminate cluster [y/n]? y
Terminating cluster j-2Y17R69QY2BKZ
Traceback (most recent call last):
  File "/home/ehale/miniconda3/envs/dsgrid-emr/lib/python3.9/site-packages/s3fs/core.py", line 233, in _call_s3
    out = await method(**additional_kwargs)
  File "/home/ehale/miniconda3/envs/dsgrid-emr/lib/python3.9/site-packages/aiobotocore/client.py", line 154, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidRequest) when calling the DeleteObjects operation: Missing required header for this request: Content-MD5 OR x-amz-checksum-*

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ehale/dsgrid/emr/launch_emr.py", line 271, in <module>
    launchemr()
  File "/home/ehale/dsgrid/emr/launch_emr.py", line 267, in launchemr
    fs.rm(s3_scratch, recursive=True)
  File "/home/ehale/miniconda3/envs/dsgrid-emr/lib/python3.9/site-packages/fsspec/asyn.py", line 87, in wrapper
    return sync(self.loop, func, *args, **kwargs)
  File "/home/ehale/miniconda3/envs/dsgrid-emr/lib/python3.9/site-packages/fsspec/asyn.py", line 68, in sync
    raise result[0]
  File "/home/ehale/miniconda3/envs/dsgrid-emr/lib/python3.9/site-packages/fsspec/asyn.py", line 24, in _runner
    result[0] = await coro
  File "/home/ehale/miniconda3/envs/dsgrid-emr/lib/python3.9/site-packages/s3fs/core.py", line 1611, in _rm
    await asyncio.gather(
  File "/home/ehale/miniconda3/envs/dsgrid-emr/lib/python3.9/site-packages/s3fs/core.py", line 1599, in _bulk_delete
    await self._call_s3("delete_objects", kwargs, Bucket=bucket, Delete=delete_keys)
  File "/home/ehale/miniconda3/envs/dsgrid-emr/lib/python3.9/site-packages/s3fs/core.py", line 252, in _call_s3
    raise translate_boto_error(err)
OSError: [Errno 22] Missing required header for this request: Content-MD5 OR x-amz-checksum-*

Running on WSL I also got this message right after getting the start-up complete messages:
Start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ Start "Jupyter Notebook URL: http://localhost:43431"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

I wonder if it has to do with there being no web browser on my WSL Linux system? Nonetheless, I was able to login to Jupyter through my regular (just on Windows) browser.

A few comments, generally minor. Also please open an issue to generalize this workflow to support work done in an arbitrary folder (not just the dsgrid notebooks folder).
Update - I see you opened a general "improve AWS workflow" issue. Simply adding a bullet to that issue about supporting transfer of folders other than dsgrid/notebooks would be sufficient.

Already added that option here, you can do python launch_emr.py --dir_to_sync <your_folder>

Even better--sorry I didn't read more closely @lixiliu!

authors: daniel-thom elainethale lixiliu

repo: dsgrid/dsgrid


text:
Confused about how to actually use this

"Once the lib/mysql.php file is included, it will create mysql_* functions if they don't already exist. "
Do I have to actually say include('vendor/dshafik/php7-mysql-shim/lib/mysql.php'); or does the Composer autoloading magic include mysql.php automatically as soon as you try to use a mysql_* function? It seems to be doing this on 2 ancient projects I'm trying it on. Manually including the file results in an error message about the namespace name already being taken.

:( Silly me. Didn't read the readme close enough.


text:
Feature - Support Perceptually Uniform Colour Maps

There are dead spots in the colour strip charts where it is difficult to discern that the values are changing. This is a common issue with gradients used to display magnitude.
Support importing the following CSV colour maps through a series include:
https://peterkovesi.com/projects/colourmaps/

Added support for external gradients in CSV format.

repo: dslik/svg-chart


text:
Grid search increasing memory usage

The grid search feature doesn't clear memory on each iteration. This means if you're doing a very large grid search, you can run into memory issues very easily and lose all progress. Started with about 10% memory usage, and it keeps increasing with each iteration.

@nickcorona ahh i see this problem too!
For me it occurs when the search-space is very large. What about you?
I believe this is because pygam tries to pre-determine every point in the search-space before starting the gridsearch.
The problem is that for a n-dimensional search space with m points per dimension, we can quickly get a huge array of points in n-d space: m**n.
I think correct way to create the search space would be with a generator.
Your thoughts?

authors: dswah nickcorona

repo: dswah/pyGAM


text:
4 barres de contexte

CR 24/10 :

Contenu
Nous souhaiterions que l'on puisse afficher jusqu'à 4 barres de contextualisation lorsque c'est pertinent
Par exemple sur https://dtc-innovation.github.io/dataviz-finances-gironde/public/#!/finance-details/DF-6-1-3

Dépenses (toutes dépenses)
Dépenses de fonctionnement
Frais généraux
Frais divers (7% des dépenses)

En généralisant cela donne

EXPENDITURES ou REVENUES
DF ou DI ou RF ou RI
DF-n ou DI-n ou RF-n ou RI-n
le niveau sur lequel on se trouve entre parenthèse le pourcentage de cette section par rapport au niveau 1

Lorsqu'il n'y a que 2 ou 3 barres possibles, afficher le pourcentage sous cette même présentation avec l'élément de niveau 2 ou 3 par rapport au niveau 1
design
Nous souhaiterions que tu reprennes le design des barres horizontales en vertical en insérant un espace entre les barres et en limitant la taille des barres  à la taille occupée par le graphique d'évolution

Nous souhaiterions que tu reprennes le design des barres horizontales en vertical en insérant un espace entre les barres et en limitant la taille des barres à la taille occupée par le graphique d'évolution

Il est attendu de garder les barres horizontales, mais de mettre un espace entre les barres (elles sont collées actuellement).

repo: dtc-innovation/dataviz-finances-gironde


text:
output/nori/optimized/nanovg.c.ll

https://alive2.llvm.org/ce/z/Z9_Dc2

output/meshlab/optimized/gltf_loader.cpp.ll

repo: dtcxzyw/llvm-tools


text:
Wat tour doesn't appear to work

on Elementary OS, zsh. Node v8.11.3 (npm v5.6.0).
Running wat tour simply prints out two question marks.
However I can  run wat js array splice :+1:

@dthree I think there's something wrong with the cli too. I'm getting something similar here:
❯ wat tour
?
?

I need to wait before ? appears before writing a command.
Also using zsh with Oh-My-ZSH
$ zsh --version
zsh 5.3 (x86_64-apple-darwin18.0)
$ node --version
v10.7.0
$ npm --version
6.1.0
& wat --version
0.1.40
OS: macOS Mojave 10.14.2 18C54 x86_64

authors: GabLeRoux lay-z

repo: dthree/wat


text:
error spell on dtmsvr/config/config.go

dtmsvr/config/config.go 代码文件中的 TransBranchOpTable 的 yaml 配置名为 BranchTransOpTable。

TransBranchOpTable string yaml:"BranchTransOpTable" default:"dtm.trans_branch_op"

但是，conf.sample.yml 中的示例配置为 TransBranchOpTable。
按照，前后文的行文习惯分析，config.go 中应该 yaml 配置名应该是错误拼写，需要修改为 TransBranchOpTable。

已合并，可能因为你的提交邮箱，不在你的github帐号里面，导致contributor里面没有出现你，你帮忙看看你的邮箱设置，加一下你的提交邮箱？

已合并，可能因为你的提交邮箱，不在你的github帐号里面，导致contributor里面没有出现你，你帮忙看看你的邮箱设置，加一下你的提交邮箱？

我的邮箱是 authurg.io@outlook.com, 我把项目的邮箱设置更改一下，感谢～

repo: dtm-labs/dtm


text:
senseless line / column ?

I build syn with procmacro2_semver_exempt.
And for such wrong code (a: i32, <) -> i32; it reports span: 1:0 - 1:11, in other words
(a: i32, <), but if print ParseStream I can see that it stops on <,
so there is information about exact wrong token,
thus is it possible somehow report where parser stops in case of  parenthesized usage?
use quote::quote;
use syn::{
    parenthesized,
    parse::{Parse, ParseStream},
    punctuated::Punctuated,
    Result, Token,
};

struct Item;
impl Parse for Item {
    fn parse(input: ParseStream) -> Result<Self> {
        let args_parser;
        parenthesized!(args_parser in input);
        let args_in: Result<Punctuated<syn::FnArg, Token![,]>> =
            args_parser.parse_terminated(syn::FnArg::parse);
        println!("state, input {}\nargs_parser {}", input, args_parser);
        let args_in = args_in?;
        unimplemented!();
    }
}

fn main() {
    if let Err(err) = syn::parse_str::<Item>("(a: i32, <) -> i32;") {
        println!(
            "err: {}, at {}:{} - {}:{}",
            err,
            err.span().start().line,
            err.span().start().column,
            err.span().end().line,
            err.span().end().column
        );
    }
}

The error is being triggered on the close parenthesis. The matched set of parentheses carries only a single span covering the set of parentheses so that is where the error is reported.

authors: Dushistov dtolnay

repo: dtolnay/syn


text:
Single statement one-line control structures

If/else with one-line body can omit braces according to the style guide, but I get the following error:
Expected '{' after if clause

with the code:
modifier positive(uint256 amount) {
    if (amount <= 0)
       throw;
    _
}

solved in v0.1.9


text:
resolve .yaml config for http forword.

resolve .yaml config for http forward.   and put the information into API.httpBackendConfig struct.
http forward need more information to make the behavior clear. such as proxy rule, rewrite rule, head replace, head append and so on.

This is necessary, WIP

authors: cityiron yqxu

repo: dubbogo/dubbo-go-proxy


text:
Run built-in prettier reformatter on save

WebStorm has added built-in support for reformatting code using prettier.  It would be pretty cool if this plugin could invoke that other plugin on save.

Hey @dobesv, I know it works for dart, read this paragraph of the docs.

The code style applied by the save actions plugin is the one configured your settings at "File > Settings > Editor > Code Style". For some languages, custom formatter may also be triggered by the save actions plugin. For example for Dart developers, enable "Use the dartfmt tool when formatting the whole file" option in "File > Settings > Editor > Code Style > Dart > Dartfmt".

If you don't have such options for "prettier", we're out of luck. You can submit a PR to add that feature. See issue #118 where this was already discussed.

Duplicates #118

authors: dobesv dubreuia

repo: dubreuia/intellij-plugin-save-actions


text:
Reformatting only changed code does not work in 1.4 and latest Intellij

Describe the bug
https://github.com/dubreuia/intellij-plugin-save-actions/issues/217 mentions reformatting only changed code option should work. However, it doesn't. In latest version of intellij it still modifies the entire file.
To Reproduce

Open an existing file with VCS enabled (e.g. git) that requires re-formatting in various places.
Change a line that triggers save action to fix it (e.g. requiring re-formatting)
Save the file
The entire file is modified

Expected behavior
Only that line should be reformatted.
Screenshots (optional)

Versions
IntelliJ IDEA 2018.3.5 (Ultimate Edition)
Build #IU-183.5912.21, built on February 26, 2019
JRE: 1.8.0_152-release-1343-b28 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.2
Plugin version: 1.4
Attachments
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="SaveActionSettings">
    <option name="actions">
      <set>
        <option value="activate" />
        <option value="noActionIfCompileErrors" />
        <option value="organizeImports" />
        <option value="reformatChangedCode" />
        <option value="fieldCanBeFinal" />
        <option value="localCanBeFinal" />
        <option value="missingOverrideAnnotation" />
        <option value="useBlocks" />
      </set>
    </option>
    <option name="configurationPath" value="" />
  </component>
</project>

+1, I am also having this issue

Hey @awelm and @xunnanxu can you define step number 3 in "To Reproduce"? How do you trigger save-actions?

Frame deactivation (window loses focus)
Shortcut
...

@dubreuia frame deactivation/save all action

+1
I go into a file and change a single line and the whole file gets reformatted. I have to disable this plugin for now.
Worked well but stopped all of a sudden. I updated IntelliJ and save actions with no luck.
Anyone was able to find a fix?
IntelliJ IDEA 2018.3.6 (Community Edition)
Build #IC-183.6156.11, built on March 25, 2019
JRE: 1.8.0_152-release-1343-b28 X86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Save Actions: v1.5.0+2018.3

macOS Mojave 10.14.3

Settings.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="SaveActionSettings">
    <option name="actions">
      <set>
        <option value="activate" />
        <option value="organizeImports" />
        <option value="reformatChangedCode" />
        <option value="fieldCanBeFinal" />
        <option value="localCanBeFinal" />
        <option value="missingOverrideAnnotation" />
        <option value="useBlocks" />
        <option value="unnecessarySemicolon" />
      </set>
    </option>
    <option name="configurationPath" value="" />
  </component>
</project>

It is really hard to fix since I can't reproduce. I'm pretty sure it has to do with the recent refactoring, but I have no idea why that happens.

Same thing happens to me after updating to 2018.3.6

I'm also experiencing the same bug on 2019.1.3 (Ultimate Edition)

If I am not mistaken, I believe underlying issue is related to how Java Fixes operate when using the option to reformat only changed changed code. I would assume that the java fixes are only applied to changed code when the option is selected. This does not appear to be what is happening. To demonstrate the issue, here is some code that has many formatting problems.
package issues;

import java.util.Set;
import java.util.List;
import java.util.Collection;

public class SaveAction230 {
	public static void main(String[] args) {
		int x = 0;;

        System.out.println(x);

		Set<String> s;
	    Collection<String> c;
	}
}

I ran a few experiments by adding int y = 0; on line 10. Then I saved the file.

Test reformat only changed code

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="SaveActionSettings">
    <option name="actions">
      <set>
        <option value="activate" />
        <option value="reformatChangedCode" />
      </set>
    </option>
    <option name="configurationPath" value="" />
  </component>
</project>

diff --git a/src/issues/SaveAction230.java b/src/issues/SaveAction230.java
index 0182199..d611f91 100644
--- a/src/issues/SaveAction230.java
+++ b/src/issues/SaveAction230.java
@@ -7,6 +7,7 @@ import java.util.Collection;
 public class SaveAction230 {
 	public static void main(String[] args) {
 		int x = 0;;
+		int y = 0;

         System.out.println(x);

This appears to be working as expected.

Verify that reformat all lines works as expected to make sure that other issues are detected.

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="SaveActionSettings">
    <option name="actions">
      <set>
        <option value="activate" />
        <option value="reformat" />
      </set>
    </option>
    <option name="configurationPath" value="" />
  </component>
</project>

diff --git a/src/issues/SaveAction230.java b/src/issues/SaveAction230.java
index 0182199..1211ff9 100644
--- a/src/issues/SaveAction230.java
+++ b/src/issues/SaveAction230.java
@@ -6,11 +6,13 @@ import java.util.Collection;

 public class SaveAction230 {
 	public static void main(String[] args) {
-		int x = 0;;
+		int x = 0;
+		;
+		int y = 0;

-        System.out.println(x);
+		System.out.println(x);

 		Set<String> s;
-	    Collection<String> c;
+		Collection<String> c;
 	}
 }

This appears to work as well.

Test reformat only changed code in combination with remove unnecessary semicolons.

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="SaveActionSettings">
    <option name="actions">
      <set>
        <option value="activate" />
        <option value="reformatChangedCode" />
        <option value="unnecessarySemicolon" />
      </set>
    </option>
    <option name="configurationPath" value="" />
  </component>
</project>

diff --git a/src/issues/SaveAction230.java b/src/issues/SaveAction230.java
index 0182199..6aa1311 100644
--- a/src/issues/SaveAction230.java
+++ b/src/issues/SaveAction230.java
@@ -6,7 +6,8 @@ import java.util.Collection;

 public class SaveAction230 {
 	public static void main(String[] args) {
-		int x = 0;;
+		int x = 0;
+		int y = 0;

         System.out.println(x);

This does not work as I would expect as it fixes line 9 which was not changed by this edit. I also tried making the change below the print statement to make sure that I was not accidentally editing line 9. However, line 9 was still reformatted to drop the unnecessary semicolon.
On a side note, it appears that when Optimize Imports is enabled it will also optimize imports even when reformat only changed code is enabled. I assume that this is by design though. But could also be a reason a file changes when you did not directly edit that portion.
Versions:
IntelliJ IDEA 2019.2.4 (Ultimate Edition)
Build #IU-192.7142.36, built on October 28, 2019
Runtime version: 11.0.4+10-b304.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Save Actions: 1.6.0+2018.3

Hello @DragonAssassin, thank you for the debugging! You can confusing two different things: "reformating" and "quick fixes". Reformatting has an option to work on changed line only, but no other action has that functionality. Quick fixes always apply to all the lines.
I thought of implementing the "Action on changed code", but it is a lot of work, and honestly, I'm not sure applying the modification to only changed lines is a good practice, but kept it because people kept asking for it.

authors: DragonAssassin awelm brunaguize dubreuia jcBeaupre michal-liszewski xunnanxu


text:
Req: Export/dump currently open tabs/URLs

Describe the bug
Got a lot of tabs open, can't sort through them on a proper computer without doing a bunch of manual work
How to Reproduce

Open a lot of tabs
Bookmark none of them
Realise you want to keep these
Sigh

Expected behavior
"Bookmark all open tabs"-feature, and then exporting it. Seems like the most DDG-esque way of going about it, seeing as it was added recently
(It's possible in Firefox on Desktop, per-window: Ctrl+Shift+D)
Smartphone
n/a

Thanks for reaching us. We are currently only accepting Github Issues for bug reports.
Please, use discussions to share feature requests. Only bug reports are expected to be accepted as issues. Thanks.
Contributing guidelines

Discussion started at https://github.com/duckduckgo/Android/discussions/1383

authors: Jonta cmonfortep

repo: duckduckgo/Android


text:
WebRTC IP leak

DDG Android app apparently uses Chrome  as underlying rendering engine and as result it's susceptible to WebRTC internal IP leaking even if behind a proxy or VPN. This can be easily tested by browsing from DDG app to ipleak.net.

Thanks for logging this @kravietz, we'll investigate ways to fix this.

Or more simple, with this website:
https://ip.voidsec.com/

Internal task for visibility/reference https://app.asana.com/0/276630244458377/1134874424977657/f

We looked into this and we hoped we could implement a permissions callback to stop this leak, but the permissions callback isn't triggered for obtaining the IP address (just for audio / video access)
Sadly, there's still no obvious way of preventing this while we continue to rely on WebView. We have no plans to migrate from webview, so we are closing this issue.

Is DDG/Android supposed to support WebRTC at all? When I try https://webrtc.github.io/samples/src/content/getusermedia/gum/ , clicking the "Open camera" button triggers a notification that an attempt by Google to track me was blocked, but I don't get a getUserMedia dialog like I do with other mobile browsers.
When I try with my own page, I find that DDG has navigator.mediaDevices.getUserMedia but it seems not to return a Promise because none of my .then, .catch, nor .finally are invoked. This defeats the usual way of letting the user know that the browser doesn't support a feature; it seems the developer might be forced into searching navigator.userAgent for DDG in order to help the user understand what's going on.

authors: David-dp- aitorvs cmonfortep kravietz runboy93 subsymbolic


text:
Show on App Launch: Feature toggle

Task/Issue URL: https://app.asana.com/0/1205782002757341/1208523107235076/f
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#5127  👈
#4944 : 2 other dependent PRs (#4946 , #5050 )
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @mikescamell and the rest of your teammates on  Graphite


text:
Custom request weight extraction

This allows you to specify a function to extract the weight for a given
request.

ping

ping

lgtm

authors: dudleycarr joshgummersall


text:
feat(ts/analyzer): Context aware reserved keyword handling

Implements AST validation for yield and await based on context (TS1212)
error[TS0]: TS1212 {
    span: Span {
        lo: BytePos(
            33,
        ),
        hi: BytePos(
            38,
        ),
        ctxt: #1,
    },
}
 --> a.ts:4:5
  |
4 |     yield;
  |     ^^^^^

error[TS2304]: NoSuchVar {
    span: Span {
        lo: BytePos(
            33,
        ),
        hi: BytePos(
            38,
        ),
        ctxt: #0,
    },
    name: yield#1,
}
 --> a.ts:4:5
  |
4 |     yield;
  |     ^^^^^

I'm sorry but I think this is the area of parser, and I think it's already implemented in the recent version of swc

Ah, no problem 👍

repo: dudykr/stc


text:
求教List View和Tik Tok视频的url或路径在哪，学生党找不到_(:з」∠)_是在mVideoList里吗

大佬求教List View和Tik Tok视频的url或路径在哪，学生党找不到_(:з」∠)_是在mVideoList里吗

DataUtil中

authors: dueeeke raineddown

repo: dueeeke/DKVideoPlayer


text:
[FLAPI-2040] Fix Duffel Payments class method

Add missing self being passed. Instance methods should take a "self" parameter.

Hahah
Ah yes, that's a better solution.

authors: jesse-c sgerrand

repo: duffelhq/duffel-api-python


text:
"    allow_unreachable=True, accumulate_grad=True)  # Calls into the C++ engine to run the backward pass RuntimeError: Function 'PowBackward0' returned nan values in its 0th output"

Hi,
I met the error after training for a while!
|▏| 9918/50000 [1:55:02<4:27:26, 20%|▏| 9919/50000 [1:55:02<4:29:41, 20%|▏| 9920/50000 [1:55:03<4:28:16, 20%|▏| 9921/50000 [1:55:03<4:43:27, 20%|▏| 9922/50000 [1:55:04<4:37:07, 20%|▏| 9923/50000 [1:55:04<4:38:23, 20%|▏| 9924/50000 [1:55:04<4:34:04, 20%|▏| 9925/50000 [1:55:05<4:32:37, 20%|▏| 9926/50000 [1:55:05<4:31:07, 20%|▏| 9927/50000 [1:55:06<4:30:17, 20%|▏| 9928/50000 [1:55:09<13:11:34 20%|▏| 9929/50000 [1:55:09<10:34:44,  1.05i/opt/conda/lib/python3.7/site-packages/torch/autograd/__init__.py:175: UserWarning: Error detected in PowBackward0. Traceback of forward call that caused the error:
  File "run_nerf_own_train.py", line 1138, in <module>
    train()
  File "run_nerf_own_train.py", line 1006, in train
    img_loss0 = img2mse(extras['rgb0'], target_s)
  File "/rockywin.wang/NeRF/DSNeRF/run_nerf_helpers.py", line 15, in <lambda>
    img2mse = lambda x, y : torch.mean((x.to(device) - y.to(device)) ** 2)
  File "/opt/conda/lib/python3.7/site-packages/torch/_tensor.py", line 32, in wrapped
    return f(*args, **kwargs)
 (Triggered internally at  ../torch/csrc/autograd/python_anomaly_mode.cpp:102.)
  allow_unreachable=True, accumulate_grad=True)  # Calls into the C++ engine to run the backward pass
 20%|▏| 9929/50000 [1:55:09<7:44:45,  1.44it
Traceback (most recent call last):
  File "run_nerf_own_train.py", line 1138, in <module>
    train()
  File "run_nerf_own_train.py", line 1010, in train
    loss.backward()
  File "/opt/conda/lib/python3.7/site-packages/torch/_tensor.py", line 396, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
  File "/opt/conda/lib/python3.7/site-packages/torch/autograd/__init__.py", line 175, in backward
    allow_unreachable=True, accumulate_grad=True)  # Calls into the C++ engine to run the backward pass
RuntimeError: Function 'PowBackward0' returned nan values in its 0th output.

My config is that below.
expname = parking2_noc
basedir = ./logs/parking2_noc
datadir = /rockywin.wang/NeRF/DSNeRF/data/parking2
dataset_type = llff #colmap_llff
factor = 4
llffhold = 8
N_rand = 4096
N_samples = 64
N_importance = 128
use_viewdirs = True
raw_noise_std = 1e0
no_ndc = False
colmap_depth = True
depth_loss = True
depth_lambda = 0.1
i_testset = 5000
i_video = 10000
N_iters = 50000

Your model's output seems to contain NaN. Check the related issue here.


text:
官方调整答题选项为随机顺序了，需修复

今天下午时候官方调整挑战答题、四人赛双人对战选项为随机顺序，脚本需要修复，不然会答错的！
另外订阅栏目 未点击的问题也希望抽空解决，感谢😊

我也遇到了，挑战答题一直在错

收到问题，我会尽快修复的，大家在新版本发布之前只能先手动完成挑战答题、四人赛双人对战答题了

收到问题，我会尽快修复的，大家在新版本发布之前只能先手动完成挑战答题、四人赛双人对战答题了

麻烦顺便题库也更新一下呀。。最好是本地题库。网络题库速度和正确率还是有所欠缺。

后续答案选项也要OCR了，一天OCR次数估计要上百了，每月1000次免费OCR不够了吧

后续答案选项也要OCR了，一天OCR次数估计要上百了，每月1000次免费OCR不够了吧

选项ocr调用的都是hamibot自带的ocr，不会消耗1000次里面的，后续增加的功能也是尽量能用自带的就用自带的，可以放心，如果后续消耗1000次有我也会提前说明的

订阅的问题不是已经解决了吗

谢谢 @dundunnp 回复这么迅速，现在每天的积分就全靠你了。

新版本v13.0已经解决了此问题，四人赛双人对战单独脚本也已更新，请各位及时更新代码
由于官网将选项打乱顺序，因此需要识别（用的是hamibot自带ocr，并不消耗百度或华为的次数）每个选项，因此答题的时间增加了，不能做到秒答了，所以如果想拿第一的话请酌情考虑使用脚本

新版本v13.0已经解决了此问题，四人赛双人对战单独脚本也已更新，请各位及时更新代码 由于官网将选项打乱顺序，因此需要识别（用的是hamibot自带ocr，并不消耗百度或华为的次数）每个选项，因此答题的时间增加了，不能做到秒答了，所以如果想拿第一的话请酌情考虑使用脚本

大佬，13.0的挑战答题做了三题就没做下去了，也没上一个版本的分享复活功能

@79133576 你试试我自己魔改的版本：
https://github.com/raawaa/hamibot-auto_xuexiqiangguo/blob/fix/random_answer/学习强国.js
看看哪个效果好。欢迎反馈！

@79133576 你试试我自己魔改的版本： https://github.com/raawaa/hamibot-auto_xuexiqiangguo/blob/fix/random_answer/学习强国.js
看看哪个效果好。欢迎反馈！

您这个好像不是在v13.0的基础上改的吧

@79133576 你试试我自己魔改的版本： https://github.com/raawaa/hamibot-auto_xuexiqiangguo/blob/fix/random_answer/学习强国.js
看看哪个效果好。欢迎反馈！

您这个好像不是在v13.0的基础上改的吧

是我昨晚临时改的，当时v13.0还没出。
功能上跟v13.0类似，但是挑战答题没有通过OCR，而是直接拾取选项文字。所以速度和准确率可能更好一点。

新版本v13.0已经解决了此问题，四人赛双人对战单独脚本也已更新，请各位及时更新代码 由于官网将选项打乱顺序，因此需要识别（用的是hamibot自带ocr，并不消耗百度或华为的次数）每个选项，因此答题的时间增加了，不能做到秒答了，所以如果想拿第一的话请酌情考虑使用脚本

大佬，13.0的挑战答题做了三题就没做下去了，也没上一个版本的分享复活功能

啊？不会吧，我测试了好多次都可以正常运行

谢谢大佬，我升级v13.0和hamibot1.3.1后订阅确实正常了。

@79133576 你试试我自己魔改的版本： https://github.com/raawaa/hamibot-auto_xuexiqiangguo/blob/fix/random_answer/学习强国.js
看看哪个效果好。欢迎反馈！

很棒！！

@raawaa 完美诠释了为人民服务的宗旨

Hamibot自用学习脚本，同步更新v13.0，小号测试完成63分
[https://hamibot。com/marketplace/gtf52?invite=ADfZFZnW31U9Xrnu7xy8Ns3U]
dots改成句号，不用改回来直接复制到浏览器打开

提问 看到大佬用的是本地ocr 那意思是不是就不要勾选提高正确率用的华为ocr和相关配置了？

提问 看到大佬用的是本地ocr 那意思是不是就不要勾选提高正确率用的华为ocr和相关配置了？

选项的识别较为简单，而且太多没必要用，但是还是需要华为或百度ocr去识别题目的

就是还是需要配置第三方ocr来识别我的理解对吗，小白问题可能比较低级大佬勿怪

提问 看到大佬用的是本地ocr 那意思是不是就不要勾选提高正确率用的华为ocr和相关配置了？

选项的识别较为简单，而且太多没必要用，但是还是需要华为或百度ocr去识别题目的

就是还是需要配置第三方ocr来识别我的理解对吗，小白问题可能比较低级大佬勿怪

提问 看到大佬用的是本地ocr 那意思是不是就不要勾选提高正确率用的华为ocr和相关配置了？

选项的识别较为简单，而且太多没必要用，但是还是需要华为或百度ocr去识别题目的

就是还是需要配置第三方ocr来识别我的理解对吗，小白问题可能比较低级大佬勿怪

嗯，也可以选择不配置，你可以对比一下

提问 看到大佬用的是本地ocr 那意思是不是就不要勾选提高正确率用的华为ocr和相关配置了？

选项的识别较为简单，而且太多没必要用，但是还是需要华为或百度ocr去识别题目的

就是还是需要配置第三方ocr来识别我的理解对吗，小白问题可能比较低级大佬勿怪

嗯，也可以选择不配置，你可以对比一下

答题实测比隔壁慢了一些，隔壁使用了下载到本地的离线题库（启动时会检查题库更新），同样识别慢下来后优势明显了

@79133576 你试试我自己魔改的版本： https://github.com/raawaa/hamibot-auto_xuexiqiangguo/blob/fix/random_answer/学习强国.js
看看哪个效果好。欢迎反馈！

你这个效果真的好，目前比dundun的最新版速度快 ，就算不开增强识别都能赢 ，希望更多人看到

答题实测比隔壁慢了一些，隔壁使用了下载到本地的离线题库（启动时会检查题库更新），同样识别慢下来后优势明显了

隔壁是哪里能透露吗，我也去试试。

提交了个PR：https://github.com/dundunnp/hamibot-auto_xuexiqiangguo/pull/207
根据我昨晚自己魔改的内容，对原作者的v13.0进行了一点优化。挑战答题不再通过OCR，而是直接获取选项内容，提高了答题速度和成功率。

答题实测比隔壁慢了一些，隔壁使用了下载到本地的离线题库（启动时会检查题库更新），同样识别慢下来后优势明显了

隔壁是哪里能透露吗，我也去试试。

已经不重要了，答题的逻辑又改了，挑战答题的那部分可以保留
下午答题的逻辑又改了，四人赛双人对战恢复以前的固定选项了，现在挑战答题选项还是打乱的

答题实测比隔壁慢了一些，隔壁使用了下载到本地的离线题库（启动时会检查题库更新），同样识别慢下来后优势明显了

隔壁是哪里能透露吗，我也去试试。

已经不重要了，答题的逻辑又改了，挑战答题的那部分可以保留 下午答题的逻辑又改了，四人赛双人对战恢复以前的固定选项了，现在挑战答题选项还是打乱的

我不打算改回来了。固定选项毕竟不保险。最好的方式还是通过答案内容来答题。
我试下来，目前速度和准确率的瓶颈主要还是离线题库上。

对对对，可能周一又改了这谁受得了啊，没仔细看原来您是在v13.0的基础上又改了一版@raawaa

根据raawaa大佬提交的PR#207又更新了一版
[https://hamibot。com/marketplace/gtf52?invite=ADfZFZnW31U9Xrnu7xy8Ns3U]
dots改成句号，不用改回来直接复制到浏览器打开

自己尝试了一下，在最新版的基础上增加了本地题库的功能。题库利用的是别人的github项目。
但是目前比较简陋，需要自己手动下载题库文件到手机内存里。把 Mondayfirst/XXQG_TiKu: 学习强国_挑战答题题库 项目下的题库_原始版.json文件下载到手机内部存储根目录 Download 文件夹下。
脚本会自动识别是否存在本地题库。若不存在，仍会使用在线题库答题。
脚本下载：https://github.com/raawaa/hamibot-auto_xuexiqiangguo/blob/enhancement/local_question_bank/学习强国.js
查询本地题库用的是最笨的遍历的方法，查询效率有很大的提升空间。但是本人不是职业搞程序的，水平有限。

十分感谢！本地题库肯定要稳点。

感谢raawaa这么辛勤的付出！激发了懒惰的我  明天把本地题库搞定吧（如果没意外的话
我会将本地题库通过http下载而不是手动，然后查询效率用算法优化一下
感谢大家共同维护脚本！！

官方客服：答题选项乱序方式，技术原因紧急下线，晚些时候会再次上线，请您持续关注…🦇了   @raawaa @dundunnp


text:
chore: bump toolchain to v4.13.0

(This is stacked on top of https://github.com/dupuisf/BibtexQuery/pull/18.)

I merged the other PR, and then just rebased this one and pushed manually, so I'll close this PR now.

authors: dupuisf kim-em

repo: dupuisf/BibtexQuery


text:
Packagesfix

added a missing packages field - repoids

Reading the API Docs I was wondering why this isn't a deferred field, like distribution for a repository . But as the API just returns a bunch of Repository IDs, this patch is right for the current implementation.
Thanks for your conritrbution!

authors: duritong nathannorton

repo: duritong/ruby-pulp


text:
🛑 Mention Bot is down

In d599b20, Mention Bot (https://backend.isbotdown.com/bots/mentionbot) was down:

HTTP code: 200
Response time: 154 ms

Resolved: Mention Bot is back up in 871db52.

repo: durof/status


text:
🛑 Mention Test Bot is down

In e966559, Mention Test Bot (https://backend.isbotdown.com/bots/mentiontestbot) was down:

HTTP code: 200
Response time: 84 ms

Resolved: Mention Test Bot is back up in 70eb5b6.


text:
🛑 Mention Robot is down

In f216d2d, Mention Robot (https://backend.isbotdown.com/bots/mentionrobot) was down:

HTTP code: 200
Response time: 106 ms

Resolved: Mention Robot is back up in 5aaa27e after 3 hours, 17 minutes.


text:
Update CC credit in description image

Complement CC4.0 notation that is not sufficiently explained in the description image.

https://github.com/dusskapark/iconography-ml/pull/6

repo: dusskapark/iconography-ml


text:
fix: make data_source.description a TEXT col instead of varchar(255)

See here

I thiiink we had a validation for that client side but maybe it disappeared with time :)

authors: fontanierh spolu

repo: dust-tt/dust


text:
网络监测情况不是很准

1.我在正常WiFi和3G之间切换还算正常，当我通过代理链接的时候，网络的实时监测情况就不准，有两种情况：
a.我代理填了一个假的代理（连接了WiFi但不能上网的情况）之后再切换真的代理（连接了WiFi且能上网的情况），就会经常出错,返回的链接基本上都是WiFi链接正常；
b.我代理填了一个假的代理（连接了WiFi但不能上网的情况）之后再切换真的代理（连接了WiFi且能上网的情况），然后在真代理和3G之间切换，基本上也会经常出错；

代理不支持ICMP包（ping包基于ICMP）的透传，因此才会出现这种情况。请参考https://github.com/dustturtle/RealReachability/issues/16 https://github.com/dustturtle/RealReachability/issues/17
此种情况需要开发者自行寻找解决方案或设计纠错策略

情况b:其实我在监测3G网的时候也会返回网络不可达。

如此

3g时候是有时候会出现这种情况的.不过一会会恢复.因为此时网络质量不佳，ping有不小的概率失败；此处需要优化

repo: dustturtle/RealReachability


text:
Issue

I cannot create an account to make an API Key. there is an email issue on your website. Can you please fix it?

Hi,
Unfortunately, we are experiencing a disruption in sending emails due to a problem with our email provider.
We are very sorry for the inconvenience and are working around the clock with them to resolve the issue.

is there an possibility to log in? my email is info@ameliewebdesign.nl . I really like to generate an api for my invoices to be generated again

I expect the issue will be fixed within the next 1 to 3 hours. Sorry for the inconvenience.

Oh, I see the problem has just been resolved.

Nope still no message after an password reset

I just tried, the password reset works fine. What error are you getting?

Yes it works, it just took some time. thank you

repo: dveldhoen/easyinvoice


text:
The project is stopped ?

Hi.
The project is stopped ?
Still remains in Laravel 5.4 and not the recent versions!

Judging by all of the issues being filed about still not being able to install the admin in the newer laravel version and your issue going unanswered for several days, and some things in the code section not being updated in years, I would say this project has stopped or has not been the focus of the developers for a while now.

@AnthonyMichaelc @wemersonrv It is really a shame. I even tried contacting the repo owner through twitter... no luck

I am seeing this project now... look a good one.

Possible alternative
https://github.com/rappasoft/laravel-5-boilerplate
No CRUD Template, however.

I will see it.

or https://github.com/the-control-group/voyager

Good solutions i found:

https://laravelvoyager.com they have a good video documentation at https://laravelvoyager.com/academy/ impressed!!!

https://backpackforlaravel.com This projet has more and good packages and has more lifetime

backpack has a weak license: https://github.com/Laravel-Backpack/CRUD/blob/master/LICENSE.md

Voyager is good but I find myself building my own admin more than using voyager because it sometimes adds more than needed or makes some simple things more confusing.

I'd like to fork laraadmin, bring the project under laravel 5.6.
In your opinion, is it better to rewrite it?
I would also like to change the name, Dwij and put the name of my company.
I can do it ?

@cerelli In my opinion when it comes to needing special things it is almost always better to just write it yourself. If you are doing something and don't have special use cases for it, then using things like voyager, laravel admin, laraadmin, adminlte, etc will work perfectly fine. One thing I have not looked to much into is multi level users in voyager and that was why for a while I built my own admin backend. I think one of the biggest problems with most admin package repos, besides abandoning them, is they do not clearly express what is going on/how you can make it work to what you need. More often than not they advertise it'll speed up your production but you end up spending hours researching. Anyone who's built MEAN stack applications will agree that building everything from scratch gives you the ultimate free range of how you want the application to function, but when deadlines are there, scratch becomes an issue

@wemersonrv Backpack I believe is a licensed package and for that reason I feel it deters a lot of people from using it.

Hi, this is a nice package but I think that the developers have stopped working on it. Maybe you can try this package: https://github.com/Muhammadinaam/speed-admin. It supports Laravel 8+.

authors: AnthonyMichaelc InfinityWebMe Muhammadinaam bryanrscott cerelli jeremykenedy leopinzon tadeubarbosa wemersonrv

repo: dwijitsolutions/laraadmin


text:
feat(sdk): Allow consumers of create to supply id

Proposed change

If id is an instance of PublicKey or a PublicKeyLike that can be parsed we should allow the user to supply it.

Rationale
When mixing rendering of in-memory / db objects it's useful to have consistent id's to key into.
Being able to assign an id will work towards solving #6468.

It quite common to prohibit user-generated IDs in the API (e.g. automerge-repo). I'm not against this change, but let's discuss pros and cons before commiting.

Found another solution. (Using a create call to make the in-memory object).

authors: ZaymonFC dmaretskyi

repo: dxos/dxos


text:
(fix) removes duplicate ARIA landmark

https://trello.com/c/NCh9Ld6a/11-duplicate-unlabelled-landmarks
Removes one of two role=“banner” attributes from the page, leaving in place the one that best matches the description of the landmark’s use.
Before:

After:

@gazaston I'm not clear how this change relates to the Trello card: https://trello.com/c/NCh9Ld6a/11-duplicate-unlabelled-landmarks. That says "There are two header elements in the root of every page and none of them has a label... Ideally there should only be one header in the root of a page. If that is difficult to do, at least one of them should get a label (via aria-label or aria-labelledby)."
It looks like there are still two <header> elements after this change (see attached). Is that ok if only one of them has the banner role?

@RobjS My understanding is that we can have several <header> elements on a page, like many HTML5 elements. Prior to this change though, there were two instances of <header role="banner">, which ought to be unique?

@gazaston The card requests adding an ARIA label via aria-label or aria-labelledby. It seems like that still needs doing.

authors: RobjS gazaston mallorydxw

repo: dxw/govuk-blogs


text:
How can i query or get data from other models ?

how do i get related data from other models while writing remote method inside another model..?

hi @ananthuhubspire  can you explain a little better what are you trying to do? maybe few lines of code with an example would be great.

authors: ananthuhubspire cbullokles

repo: dyaa/loopback-connector-firestore


text:
ITerm Mac OS X ZSH image not loading or has trouble text goes over image

Description
I use Mac OS X Mojave, with ZSH Shell running with Chunkwm , so sometimes, which is the issue , is that neofetch, won't load the image at all and give a stupid error which I dont understand, the way I kept testing this was opening new windows of iterm seeing what would happen, some loaded with the apple logo which I dont want and others with the image, the ones that did load with the image also had a few issues, say If I opened another window right next to it, sometimes the image would disappear or the text would go over it .
Neofetch version
Neofetch 6.0.0
Screenshot

-- in this image the shell loaded on the right was when I started iterm, it loads with the apple logo which I dont want then :

there is this issue where sometimes the image would load but when another window is open, the text override it and the image shouldn't be that large, could it be something to do with the image or have I done something wrong ?
if further information is required do let me know, thanks
Config file
https://pastebin.com/VrzUDkRg
Verbose log
https://pastebin.com/0P5AuLaW

Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.

I have a similar configuration, macOS 10.14.4, iTerm2 and zsh, and I configured neofesch to show an ascii "image" (image backend ascii), but it just shows the standard Apple logo. Maybe the problem is related.

same problem here... macOS 10.14.4, iTerm2 and zsh... no image... just apple logo.

Can you reproduce this issue on master?

Yes, it's still present as of e235ae9238cfd81747e34878f67abc76d54c5249.

log.txt

authors: dylanaraps phlind rcreasey rodrigocmn vsedov

repo: dylanaraps/neofetch


text:
Add support for :control_branch

This adds functionality so r10k install can install feature branches in modules for testing.
By default, :control_branch only is used during a deploy, not an install.  So we check the current branch from the .git dir, and sub in that name anywhere in the Puppetfile there is a branch call.  This will fail if the branch doesn't exist and there is no default branch provided.

I didn't see a puppetfile variable instantiated in the testconfig file, unless it gets pulled in from another class?  Alternatively I can do a try/catch and call it a day.

repo: dylanratcliffe/onceover


text:
[Snyk] Fix for 2 vulnerabilities

Snyk has created this PR to fix 2 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

packages/babel-preset-env/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Incomplete List of Disallowed Inputs SNYK-JS-BABELTRAVERSE-5962462
  235

Regular Expression Denial of Service (ReDoS) SNYK-JS-SEMVER-3247795
  159

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

🎉 Snyk hasn't found any issues so far.
✅ code/snyk check is completed. No issues were found. (View Details)

repo: dylansnyk/babel


text:
[Snyk] Security upgrade @babel/register from 0.0.0-use.local to 7.0.0

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

packages/babel-node/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Improper Verification of Cryptographic Signature SNYK-JS-ELLIPTIC-8172694
  131

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

🎉 Snyk hasn't found any issues so far.
✅ security/snyk check is completed. No issues were found. (View Details)
✅ license/snyk check is completed. No issues were found. (View Details)


text:
Issue decoding DataMatrix barcode

I changed this single line in the project to test another barcode and received the following error:
var source = fs.readFileSync('datamatrix.png');

$ node index.js
failed to asynchronously prepare wasm: RuntimeError: float unrepresentable in integer range
RuntimeError: float unrepresentable in integer range
    at wasm-function[200]:21
    at wasm-function[7871]:2189
    at wasm-function[3325]:17
    at Object.c.dynCall_iiii (/webassembly/node_modules/dbrjs/dist/dbr.min.js:194:53)
    at invoke_iiii (/webassembly/node_modules/dbrjs/dist/dbr.min.js:119:224)
    at wasm-function[7174]:4159
    at wasm-function[3287]:19
    at Object.c.dynCall_viiii (/webassembly/node_modules/dbrjs/dist/dbr.min.js:203:55)
    at invoke_viiii (/webassembly/node_modules/dbrjs/dist/dbr.min.js:133:200)
    at wasm-function[7177]:577
RuntimeError: float unrepresentable in integer range
    at wasm-function[200]:21
    at wasm-function[7871]:2189
    at wasm-function[3325]:17
    at Object.c.dynCall_iiii (/webassembly/node_modules/dbrjs/dist/dbr.min.js:194:53)
    at invoke_iiii (/webassembly/node_modules/dbrjs/dist/dbr.min.js:119:224)
    at wasm-function[7174]:4159
    at wasm-function[3287]:19
    at Object.c.dynCall_viiii (/webassembly/node_modules/dbrjs/dist/dbr.min.js:203:55)
    at invoke_viiii (/webassembly/node_modules/dbrjs/dist/dbr.min.js:133:200)
    at wasm-function[7177]:577

This barcode decodes using the i-nigma android barcode scanner to 00000203.000001.02.02.01.01.0

If you visit https://demo.dynamsoft.com/DBR/BarcodeReaderDemo.aspx, you can get the same result.

The error means it failed to read the barcode. The WebAssembly edition, compiled by Emscripten, is not as good as Node.js C++ addon. It's an unavoidable issue caused by compilation (C++ to JavaScript), not algorithm itself.  Currently, you can use try...catch... to process this issue.
try {
        let results = dbr.DecodeFileInMemory(typedArray, "");
        console.timeEnd('wasm');
        let json = JSON.parse(results);
        let barcodeResults = json['textResult'];
        let txts = [];
        for (let i = 0; i < barcodeResults.length; ++i) {
            txts.push(Buffer.from(barcodeResults[i].BarcodeText, 'base64').toString('ascii'));
        }
        console.log(txts.join(", "));
    } catch (error) {
        console.log(error);
    }

@yushulx thanks!  The sample code index.js should probably have the try/catch as well. I did run into an issue with the Node.js C++ addon but posted the issue here I was unaware of the link you posted above. I see it's setup for the 6.2 sdk so I'll give that a try.  Thanks again!

authors: cjus yushulx

repo: dynamsoft-dbr/webassembly


text:
Turn dropdowns into enums?

Currently options on a dropdown are represented as a list of strings. Should this instead be represented as an enum? This would allow for stronger typing for fields on entity schemas

possible solution: we turn allowed_values into an enum. this allows the user to make a new entity from predefined values. However, we still want to query old entities that have previously deleted values.
So, make a new enum called archived_values. Store "deleted" values into this enum. when querying, check both enums, allowed and archived. when creating, only allow the user to look through allowed_enums
Nirmit said this was a possible solution, but brought up issue of noise?

repo: dynotx/liminal-orm


text:
TypeScript Editey - Remove 404 extension

This extension no longer exists

removed, thank you for finding this

authors: dribro dzharii

repo: dzharii/awesome-typescript

license: unlicense


text:
Upgrade dependencies

Current dependencies are almost 1-year-old, so it might be a good idea to revisit the Jetpack Compose version & other libraries.

Good morning,
Can I work on this one please?

Sure! Let me know in case of any issues :)

repo: dzikoysk/presence-of-mind