Editing layout of the MicroByte

MicroByte Title: Cross-Platform App in Python
Improvement Proposal:

Convert all activities into a more interactive outlook. Basically, this implies that the driving code should be hidden as much as possible forcing the contributor/learner to work their way through. This way they can learn it by doing it.

Benefits of proposed improvements:

It'll further enhance the learning experience for the learner
Learner will learn better if she finds answers instead of following solutions

It's highly disappointing to see that you need to raise this issue when you could have instructed the same before merging my PR instead of giving false hopes of 'well structured code' and 'following our motto'. Anyways it was good working here.

It's highly disappointing to see that you need to raise this issue when you could have instructed the same before merging my PR instead of giving false hopes of 'well structured code' and 'following our motto'. Anyways it was good working here.

We are deeply sorry to have offended you. Actually, the thing was that we had restructured our reviewing process just some hours later to merge your PR. There is no doubt ur MicroByte is awesome. The thing was we decided that the solutions to the activities should be implied and not supplied. We agree we should have contacted you about this. Contributors like you are always valued here at Crio.
Hope that you pardon us, can you work on this.
Another reason why we are requesting these silly changes is that a microbyte should attract contributors who should have the experience we are following. For that, we cannot supply them with a solution at each level. Ppl need to work their way through. It would be really appreciated if u could make these basic changes(either by specifying code path or using details tag).
Please refer to this and this. We had instructed these contributors in a similar way. We agree raising this issue was and is disrespectful and hoping you can tend to this matter at the earliest we are hoping to close the issue after u reply to this.
I hope this sorts things out between us.

@kaustubhgupta Terribly sorry to offend you man. That'll not even be our last intent in the world. Nevertheless, looking forward to your contributions.

Thanks for understanding my point, now all differences are resolved. I will soon make PR to make it more practical rather than feeding all the information. Also, after this is done,  I will raise some issues to help learners explore this micro-byte more.
Can I take some time as I am pretty busy for a few days that's why I saw this message today only

Thanks for understanding my point, now all differences are resolved. I will soon make PR to make it more practical rather than feeding all the information. Also, after this is done,  I will raise some issues to help learners explore this micro-byte more.
Can I take some time as I am pretty busy for a few days that's why I saw this message today only

No worries. Take ur time. But it would be good if u could do it before Sunday midnight, just so that learner will have a fresh set of issues to work with from Monday. But again take ur time, quality>quantity :)

Thanks for understanding my point, now all differences are resolved. I will soon make PR to make it more practical rather than feeding all the information. Also, after this is done, I will raise some issues to help learners explore this micro-byte more.
Can I take some time as I am pretty busy for a few days that's why I saw this message today only

Looking forward to your contributions. :heart_decoration:


Database creation/update crashes with "invalid byte sequence for encoding "UTF8": 0x00""

Hi.
I'm trying to run Hybooru's docker container and it keeps crashing with "invalid byte sequence for encoding "UTF8": 0x00" database error.
Hydrus DB version: 456 (synchronized with PTR)
Docker compose configuration:
  hybooru:
    container_name: hybooru
    image: ghcr.io/funmaker/hybooru:latest
    restart:
      unless-stopped
    volumes:
     - /storage/hybooru/configs.json:/app/configs.json
     - /storage/hydrus/db:/hydrusdata
  postgres:
    container_name: postgres
    image: postgres
    restart: unless-stopped
    environment:
      POSTGRES_PASSWORD: 123
    ports:
     - 5432:5432
    volumes:
     - /storage/postgres:/var/lib/postgresql/data

Database created using the following commands:
CREATE DATABASE hybooru
CREATE USER hybooru WITH PASSWORD '123';
GRANT ALL PRIVILEGES ON DATABASE "hybooru" to hybooru;

Full log:
><EMAIL_ADDRESS>start
> node server.js
Booru started on port 80
Environment: production.
Press Ctrl-C to terminate.
Database update detected, rebuilding...
Rebuilding Database!
Posts                           [####################] Done in 7.29s
Urls                            [####################] Done in 4.68s
/app/node_modules/pg-protocol/src/parser.ts:357
        : new DatabaseError(messageValue, length, name)
          ^
error: invalid byte sequence for encoding "UTF8": 0x00
    at Parser.parseErrorMessage (/app/node_modules/pg-protocol/src/parser.ts:357:11)
    at Parser.handlePacket (/app/node_modules/pg-protocol/src/parser.ts:186:21)
    at Parser.parse (/app/node_modules/pg-protocol/src/parser.ts:101:30)
    at Socket.<anonymous> (/app/node_modules/pg-protocol/src/index.ts:7:48)
    at Socket.emit (node:events:365:28)
    at addChunk (node:internal/streams/readable:314:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Tags                            [####################

Hi. This is caused by invalid utf-8 tags. Try to run a job that fixes them in Hydrus(database > check and repair > fix invalid tags).
I'm not 100% sure this job also applies to tags from repositories. If that's not the case, ask the maintainer of that repo to fix them.


As promised, my work on updating elements

There's also a changed_tests file I was using to track progress on porting tests.
My intention was to repeat the whole process (updating elements, and fixing test) until it eventually converge to a stable solution (id est in the meanwhile I was going to update the test there are no more commits on the js side).
Feel free to use this PR in whatever manner you like (merging, copying and pasting, cherrypicking ... whatever).

Great thanks, I can take it over from here if that is ok.

unless you want to continue porting tests?

I really would like to do it (I'm honest), But I don't think I can spend too much time on it for next 10 days because I'm on a deadline. And I know everybody is waiting for this so probably it is better for you to take it over.
I can tell you that I'm actually using it with latest polymer and it doesn't seams to break anything, but as usual unit tests are the best choice.

Ok ya in that case I think I will just take it over where it is at now if you don't mind, because this stuff also gets stale really quick. I will keep your commits in place and such tho so you still get the credit for what you have done here ;).

thanks! I really appreciate it.

Manually merged after I picked up where you left off


Add a clearer error message for unexpected class properties

This issue comes up pretty often on SO: https://stackoverflow.com/questions/41029676/webpack-babel-loader-not-parsing-arrow-function
People always see
class Foo {
    prop = () => {};
}

throw an error and think that somehow Babel is erroring on the arrow function because they don't realize class properties are not ES6.

Would this be covered by what I mention in https://github.com/babel/babylon/issues/169?

I believe this was fixed by #300.


Text overlaying other text when resizing windows

On the catalog, if you resize the window such that there is only one item per row, there are many various UI/UX issues.

[ ] The description text spills out of the container. ( see 1)
[ ] The navigation bar doesn't collapse, and instead shows the search and the user's name on two/three rows (see 1)
[ ] When you have 10 or over (two digits) of any item, it overflows onto the availability dates (see 2)
[ ] The footer overlays the shopping cart, making it impossible to check out if you scroll all the way down ( see 3 )

This is really a duplicate of #208 - @AlanLiu96 can you copy these comments into there? Thanks!


Added Support for Immersive First Person View by meh321

Added snippets for IFPVs new papyrus library.

Here is the nexus file link. Snippets support version 2.8
http://www.nexusmods.com/skyrim/mods/49036/?
And here is a standalone snippets package.
https://drive.google.com/file/d/0Bw8JmA47RDPfY0I3MmtIa05CMWc/view
Your call if you think this is a good addition for master.

It looks like the library could prove useful to other mod authors as it appears to allow e.g. for controlling the camera placement in cutscenes.


RegexNotFoundError on FranceTVx

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.04.07. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x ] I've verified and I assure that I'm running youtube-dl 2019.04.07

Before submitting an issue make sure you have:

[x ] At least skimmed through the README, most notably the FAQ and BUGS sections
[x ] Searched the bugtracker for similar issues including closed ones
[x ] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[x ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
 youtube-dl -v https://www.francetvinfo.fr/replay-jt/france-3/12-13/jt-de-12-13-du-mardi-9-avril-2019_3243161.html[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.francetvinfo.fr/replay-jt/france-3/12-13/jt-de-12-13-du-mardi-9-avril-2019_3243161.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.04.07
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-145-generic-i686-with-LinuxMint-18.3-sylvia
[debug] exe versions: ffmpeg 3.2.6-1, ffprobe 3.2.6-1, phantomjs 2.1.1, rtmpdump 2.4-n111-gitfa8646d-ppa10p1
[debug] Proxy map: {}
[francetvinfo.fr] jt-de-12-13-du-mardi-9-avril-2019_3243161: Downloading webpage
ERROR: Unable to extract video id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/francetv.py", line 377, in _real_extract
    webpage, 'video id').split('@')
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1004, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

Description of your issue, suggested solution and other information
It looks like a change over the weekend by FranceTV to the setup of its sites has broken yt-dl. The issue affects multiple channels of the group. I'm afraid I'm unable to suggest a solution.

Confirmed with youtube-dl 2019-04-17
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.francetvinfo.fr/replay-jt/france-3/12-13/jt-de-12-13-du-mardi-9-avril-2019_3243161.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.04.17
[debug] Python version 2.7.16 (CPython) - Linux-4.19.0-2-amd64-x86_64-with-debian-buster-sid
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1, phantomjs 1.9.8, rtmpdump 2.4
[debug] Proxy map: {}
[francetvinfo.fr] jt-de-12-13-du-mardi-9-avril-2019_3243161: Downloading webpage
ERROR: Unable to extract video id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/home/mikael/utils/youtube-dl/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/home/mikael/utils/youtube-dl/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
    ie_result = self._real_extract(url)
  File "/home/mikael/utils/youtube-dl/youtube-dl/youtube-dl/youtube_dl/extractor/francetv.py", line 377, in _real_extract
    webpage, 'video id').split('@')
  File "/home/mikael/utils/youtube-dl/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 1004, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.


Start-PSPester doesn't have -Directory or -Test parmeters

In
https://github.com/PowerShell/PowerShell/blob/master/docs/testing-guidelines/testing-guidelines.md#running-tests-outside-of-ci
If you wish to run specific tests, that is possible as well:
Start-PSPester -Directory test/powershell/engine/Api
Or a specific Pester test file:
Start-PSPester -Directory test/powershell/engine/Api -Test XmlAdapter.Tests.Api
The function in build.psm1 does not have this implemented

Thanks for pointing it out!
The doc is a little bit out-of-date. I replaced both these paremeters by -Path in ea3e7db5

Start-PSPester didn't run the tests, Invoke-Pester worked.

Bump on this, please considering updating the docs soon. Currently the documented steps for running tests (Start-PSPester) simply don't work on either Windows or Mac. Very confusing/discouraging for anyone trying to be a good citizen contributor and run/add tests.

@JamesWTruher - can you make sure the docs are updated?

@lzybkr it seems @JamesWTruher is busy and I did the fix.

The doc has been updated and I verified that Start-PSPester -Path works.


Added support for \JsonSerialize interface.

There is a workaround I had to do in the DateRange class due to a bug in HHVM. See https://github.com/facebook/hhvm/issues/3947 for more details.

Hello @dragosprotung, thanks for your PR!
I'm quite busy this week but I will try to review it soon.

Thanks for letting me know. I'll wait for your review.

Looks good to me :+1:

Looks good to me after the last small thing :+1:

Thanks for you PR @dragosprotung !


added basic debian packaging support

Hey there,
I thought this would be a good starting point towards mass adoption.
The resulting package is not lintian clean, some minor work will fix it.
Hope this helps !

Thank you, I'll look into this soon, Tomorrow at the latest.

I created issue #204 (help wanted) with respect to these files.


Switch macOS runner to m1

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.
[x] Update the CHANGES log.

Why Ubuntu 14 and 17 queued? Are those versions alive?


useMutation does not fire useEffect when useQuery data is the useEffect dependency

Describe the bug
https://stackoverflow.com/questions/72172769/react-query-usemutation-not-updating-usequery-data
Your minimal, reproducible example
na
Steps to reproduce
https://stackoverflow.com/questions/72172769/react-query-usemutation-not-updating-usequery-data
Expected behavior
https://stackoverflow.com/questions/72172769/react-query-usemutation-not-updating-usequery-data
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform
all
react-query version
3.34.18
TypeScript version
No response
Additional context
No response

@TkDodo  https://codesandbox.io/s/gifted-tu-t3fevm?fontsize=14&hidenavigation=1&theme=dark

don't mutate input you get from a function?
https://codesandbox.io/s/charming-cloud-gpuluv?file=/src/useTest.js

ah I was just returning the object incorrectly . basic JS error, my bad


New feature(Discussion) - deletion of dependency script caches when user specifies a tag similar to -f

Currently, when we remove cache by specifying the tags of the script, only the cache for that particular script is removed.
For example, using the command:
cm rm cache -f --tags=get,imagenet-aux

will only remove the get-dataset-imagenet-aux cache, while the cache files for dependent scripts, such as download-file, will remain intact.
While this approach provides a good safety measure, would it be beneficial to include an option to recursively delete all the dependencies associated with a particular script?

Hi @anandhu-eng we use extra_cache_tags for this. The idea is to use some set of common tags to identify all related dependencies and we can use cm rm cache -f --tags=<list-of-common-tags>.

Thanks @arjunsuresh .


Add RaspberryMatic to DockerHub

I am currently using a VM to run RaspberryMatic but would like to switch to a Docker.
If it could be added to RaspberryMatic, it would be a charm to use.
Unfortunately I don't have the knowledge to set it up manually from within UNRAID.
Regards

I am sorry, but RaspberryMatic is already available as a docker on the GitHubs' own container registry:
https://github.com/jens-maus/RaspberryMatic/wiki/Installation-Docker-OCI
So what is wrong with that?

Hi Jens,
I think a lot of people in the community are used to just "one click" install a docker.
I know it's kind of lazy, but if it isn't a big effort to maintain I think it's a great service.
I tried installing the docker manually in unraid, however as I don't know for sure how all this works I am careful with messing around in the terminal of my server.
I got it to run, but after restarting my docker image got orphaned somehow.


Create a control page on carebot blog

use it to compare how GA is measuring “users” vs “pageviews”

Created control.md, published.


Adapt keyset predicate to be easier for DBMS to optimize

Markus Winand explains this very nicely in his article that although the current form for keyset predicates that is implemented might be easier understandable, DBMS might not see through it that easily. Since DBMS can only use top level conjuncts for index lookups, we should rewrite the predicate generation to that form so we get more efficient execution plans.

fixed via a48439d


Dockerimage don't work

I tried to install postgresql 9.6 from this dockerfile, but it seems not to work.
Error message:
The command '/bin/sh -c set -x 	&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* 	&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" 	&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" && export GNUPGHOME="$(mktemp -d)" 	&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 	&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu 	&& { command -v gpgconf > /dev/null && gpgconf --kill all || :; } 	&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc 	&& chmod +x /usr/local/bin/gosu 	&& gosu nobody true 	&& apt-get purge -y --auto-remove ca-certificates wget' returned a non-zero code: 2
Could u help me to fix this?
Im using ubuntu 18.04, latest docker
Docker version 18.06.1-ce, build e68fc7a

I use
docker build -t test/postgres-9.6 .
in a folder with Dockerfile from this repository.
then this error appears.
+ mktemp -d

export GNUPGHOME=/tmp/tmp.CVA2xbfpMC
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
gpg: keybox '/tmp/tmp.CVA2xbfpMC/pubring.kbx' created
gpg: keyserver receive failed: Cannot assign requested address
and then appears this error:
The command '/bin/sh -c set -x 	&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* 	&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" 	&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" && export GNUPGHOME="$(mktemp -d)" 	&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 	&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu 	&& { command -v gpgconf > /dev/null && gpgconf --kill all || :; } 	&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc 	&& chmod +x /usr/local/bin/gosu 	&& gosu nobody true 	&& apt-get purge -y --auto-remove ca-certificates wget' returned a non-zero code: 2

@tianon , the high availability keyserver the build uses (ha.pool.sks-servers.net) seems to be especially flaky. I was running into the same issue as @arseny-tl; however, I tried one of the alternative keyservers listed on https://sks-keyservers.net/status/ (keyserver.cns.vt.edu in particular) and the build worked fine.


Activation errors

need to investigate,
abapGit does not handle ddic to class/interface references very well

manual workaround: activate manually after import

I think this has been solved, closing


Silence duplicate libraries linker warnings on Mac

There is a new linker in Xcode 15, it warns about duplicate libraries, which we want to silence.

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#4035
@pazner
@tzanio
@sshiraiwa + @tangqi
12/27/23
⌛due 1/10/24
⌛due 1/17/24

PR Checklist

[ ] Code builds.
[ ] Code passes make style.
[ ] Update CHANGELOG:

[ ] Is this a new feature users need to be aware of? New or updated example or miniapp?
[ ] Does it make sense to create a new section in the CHANGELOG to group with other related features?

[ ] Update INSTALL:

[ ] Had a new optional library been added? If so, what range of versions of this library are required? (Make sure the external library is compatible with our BSD license, e.g. it is not licensed under GPL!)
[ ] Have the version ranges for any required or optional libraries changed?
[ ] Does make or cmake have a new target?
[ ] Did the requirements or the installation process change? (rare)

[ ] Update continuous integration server configurations if necessary (e.g. with new version requirements for each of MFEM's dependencies)

[ ] .github
[ ] .appveyor.yml

[ ] Update .gitignore:

[ ] Check if make distclean; git status shows any files that were generated from the source by the project (not an IDE) but we don't want to track in the repository.
[ ] Add new patterns (just for the new files above) and re-run the above test.

[ ] New examples:

[ ] All sample runs at the top of the example source file work.
[ ] Update examples/makefile:

[ ] Add the example code to the appropriate SEQ_EXAMPLES and PAR_EXAMPLES variables.
[ ] Add any files generated by it to the clean target.
[ ] Add the example binary and any files generated by it to the top-level .gitignore file.

[ ] Update examples/CMakeLists.txt:

[ ] Add the example code to the ALL_EXE_SRCS variable.
[ ] Make sure THIS_TEST_OPTIONS is set correctly for the new example.

[ ] List the new example in doc/CodeDocumentation.dox.
[ ] If new examples directory (e.g.examples/pumi), list it in doc/CodeDocumentation.conf.in
[ ] Companion pull request for documentation in mfem/web repo:

[ ] Update or add example-specific documentation, see e.g. the src/examples.md.
[ ] Add the description, labels and screenshots in src/examples.md and src/img.
[ ] In examples.md, list the example under the appropriate categories, add new categories if necessary.
[ ] Add a short description of the example in the "Extensive Examples" section of features.md.

[ ] New miniapps:

[ ] All sample runs at the top of the miniapp source file work.
[ ] Update top-level makefile and makefile in corresponding miniapp directory.
[ ] Add the miniapp binary and any files generated by it to the top-level .gitignore file.
[ ] Update CMake build system:

[ ] Update the CMakeLists.txt file in the miniapps directory, if the new miniapp is in a new directory.
[ ] Add/update the CMakeLists.txt file in the new miniapp directory.
[ ] Consider adding a new test for the new miniapp.

[ ] List the new miniapp in doc/CodeDocumentation.dox
[ ] If new miniapps directory (e.g.miniapps/nurbs), add it to MINIAPP_SUBDIRS in the makefile.
[ ] If new miniapps directory (e.g.miniapps/nurbs), list it in doc/CodeDocumentation.conf.in
[ ] Companion pull request for documentation in mfem/web repo:

[ ] Update or add miniapp-specific documentation, see e.g. the src/meshing.md and src/electromagnetics.md files.
[ ] Add the description, labels and screenshots in src/examples.md and src/img.
[ ] The miniapps go at the end of the page, and are usually listed only under a specific "Application (PDE)" category.
[ ] Add a short description of the miniapp in the "Extensive Examples" section of features.md.

[ ] New capability:

[ ] All new public, protected, and private classes, methods, data members, and functions have full Doxygen-style documentation in source comments. Documentation should include descriptions of member data, function arguments and return values, template parameters, and prerequisites for calling new functions.
[ ] Pointer arguments and return values must specify whether ownership is being transferred or lent with the call.
[ ] Any new functions should include descriptions of their intended use e.g. for internal use only, user-facing, etc., along with references to example code whenever possible/appropriate.
[ ] Consider adding new sample runs in existing examples to highlight the new capability.
[ ] Consider saving cool simulation pictures with the new capability in the Confluence gallery (LLNL only) or submitting them, via pull request, to the gallery section of the mfem/web repo.
[ ] If this is a major new feature, consider mentioning it in the short summary inside README (rare).
[ ] List major new classes in doc/CodeDocumentation.dox (rare).

[ ] Update this checklist, if the new pull request affects it.
[ ] Run make unittest to make sure all unit tests pass.
[ ] Run the tests in tests/scripts.
[ ] (LLNL only) After merging:

[ ] Update internal tests to include the new features.

@pazner, how can I reproduce this? I believe I have Xcode 15, but I didn't notice any extra warnings

There are certain MFEM configuration options that will lead to duplicate libraries in the link command when you build any of the examples, for example a parallel build with MFEM_USE_SUITESPARSE = YES will include -lmetis twice (since SUITESPARSE_LIB includes the string $(METIS_LIB)).
Similarly, MFEM_USE_ZLIB with any of MFEM_USE_NETCDF, MFEM_USE_CONDUIT, or MFEM_USE_SIDRE will cause -lz to be included more than once.

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Hello, @tzanio. I am happy to help MFEM community. I have extensive experience with Linux/Windows/CYGWIN. However, I have never touched Mac in my live. Literally :). Are you sure I am the right person to check this PR?

Hi @Marshdweller,
I thought you may be a good match to check this because it shows up with MFEM_USE_SUITESPARSE=YES, but you are correct that it is only on Macs. I will take you off the reviewers list. Thank you for your willingness to help!
Tzanio

@sshiraiwa and @tangqi -- are you able to help with this PR?

@tzanio I'm not a Mac user so I'm probably also not the right person to test this PR

There are related warnings with CMake which are due to linking with both mfem and mfem-common (even without external dependencies) -- I have the following patch for that, if you want to include it:
--- miniapps/dpg/CMakeLists.txt
+++ miniapps/dpg/CMakeLists.txt
@@ -42,42 +42,42 @@ set(DPG_COMMON_FILES
 add_mfem_miniapp(diffusion-dpg
   MAIN diffusion.cpp
   ${DPG_COMMON_FILES}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)

 add_mfem_miniapp(convection-diffusion-dpg
 MAIN convection-diffusion.cpp
 ${DPG_COMMON_FILES}
-LIBRARIES mfem mfem-common )
+LIBRARIES mfem-common)

 add_mfem_miniapp(acoustics-dpg
 MAIN acoustics.cpp
 ${DPG_COMMON_FILES}
-LIBRARIES mfem mfem-common)
+LIBRARIES mfem-common)

 add_mfem_miniapp(maxwell-dpg
 MAIN maxwell.cpp
 ${DPG_COMMON_FILES}
-LIBRARIES mfem mfem-common)
+LIBRARIES mfem-common)

 if (MFEM_USE_MPI)
   add_mfem_miniapp(pdiffusion-dpg
     MAIN pdiffusion.cpp
     ${DPG_COMMON_FILES}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

   add_mfem_miniapp(pconvection-diffusion-dpg
   MAIN pconvection-diffusion.cpp
   ${DPG_COMMON_FILES}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)

   add_mfem_miniapp(pacoustics-dpg
   MAIN pacoustics.cpp
   ${DPG_COMMON_FILES}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)

   add_mfem_miniapp(pmaxwell-dpg
   MAIN pmaxwell.cpp
   ${DPG_COMMON_FILES}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)
 endif ()

--- miniapps/electromagnetics/CMakeLists.txt
+++ miniapps/electromagnetics/CMakeLists.txt
@@ -14,25 +14,25 @@ if (MFEM_USE_MPI)
     MAIN tesla.cpp
     tesla_solver.cpp
     EXTRA_HEADERS tesla_solver.hpp ${MFEM_MINIAPPS_COMMON_HEADERS}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

   add_mfem_miniapp(volta
     MAIN volta.cpp
     volta_solver.cpp
     EXTRA_HEADERS volta_solver.hpp ${MFEM_MINIAPPS_COMMON_HEADERS}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

  add_mfem_miniapp(joule
    MAIN joule.cpp
    joule_solver.cpp
    EXTRA_HEADERS joule_solver.hpp ${MFEM_MINIAPPS_COMMON_HEADERS}
-   LIBRARIES mfem mfem-common)
+   LIBRARIES mfem-common)

  add_mfem_miniapp(maxwell
    MAIN maxwell.cpp
    maxwell_solver.cpp
    EXTRA_HEADERS maxwell_solver.hpp ${MFEM_MINIAPPS_COMMON_HEADERS}
-   LIBRARIES mfem mfem-common)
+   LIBRARIES mfem-common)

   # Add the corresponding tests to the "test" target
   if (MFEM_ENABLE_TESTING)
--- miniapps/gslib/CMakeLists.txt
+++ miniapps/gslib/CMakeLists.txt
@@ -38,7 +38,7 @@ if (MFEM_USE_GSLIB)

   add_mfem_miniapp(findpts
     MAIN findpts.cpp
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

   add_mfem_miniapp(field-interp
     MAIN field-interp.cpp
--- miniapps/meshing/CMakeLists.txt
+++ miniapps/meshing/CMakeLists.txt
@@ -40,7 +40,7 @@ add_mfem_miniapp(klein-bottle
 add_mfem_miniapp(mesh-explorer
   MAIN mesh-explorer.cpp
   ${MFEM_MINIAPPS_COMMON_HEADERS}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)

 add_mfem_miniapp(mobius-strip
   MAIN mobius-strip.cpp
@@ -57,13 +57,13 @@ add_mfem_miniapp(extruder
 add_mfem_miniapp(mesh-optimizer
   MAIN mesh-optimizer.cpp
   ${MFEM_MINIAPPS_COMMON_HEADERS}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)
 add_dependencies(mesh-optimizer copy_miniapps_meshing_data)

 add_mfem_miniapp(mesh-quality
   MAIN mesh-quality.cpp
   ${MFEM_MINIAPPS_COMMON_HEADERS}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)

 add_mfem_miniapp(minimal-surface
   MAIN minimal-surface.cpp
@@ -102,19 +102,19 @@ if (MFEM_USE_MPI)
   add_mfem_miniapp(pmesh-optimizer
     MAIN pmesh-optimizer.cpp
     ${MFEM_MINIAPPS_COMMON_HEADERS}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)
   add_dependencies(pmesh-optimizer copy_miniapps_meshing_data)

   add_mfem_miniapp(pmesh-fitting
     MAIN pmesh-fitting.cpp
     ${MFEM_MINIAPPS_COMMON_HEADERS}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)
   add_dependencies(pmesh-fitting copy_miniapps_meshing_data)

   add_mfem_miniapp(fit-node-position
     MAIN fit-node-position.cpp
     ${MFEM_MINIAPPS_COMMON_HEADERS}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)
   add_dependencies(fit-node-position copy_miniapps_meshing_data)

   add_mfem_miniapp(pminimal-surface
--- miniapps/multidomain/CMakeLists.txt
+++ miniapps/multidomain/CMakeLists.txt
@@ -30,7 +30,7 @@ if (MFEM_USE_MPI)
   add_mfem_miniapp(multidomain
     MAIN multidomain.cpp
     ${MFEM_MINIAPPS_COMMON_HEADERS}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)
   add_dependencies(multidomain copy_miniapps_multidomain_data)

   # Add parallel tests.
--- miniapps/shifted/CMakeLists.txt
+++ miniapps/shifted/CMakeLists.txt
@@ -32,22 +32,22 @@ if (MFEM_USE_MPI)
   add_mfem_miniapp(distance
     MAIN distance.cpp
     ${DIST_COMMON_FILES}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

   add_mfem_miniapp(diffusion
     MAIN diffusion.cpp
     ${DIST_COMMON_FILES}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

   add_mfem_miniapp(extrapolate
     MAIN extrapolate.cpp
     ${DIST_COMMON_FILES}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

   add_mfem_miniapp(lsf_integral
     MAIN lsf_integral.cpp
     ${DIST_COMMON_FILES}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

   if (MFEM_ENABLE_TESTING)
     add_test(NAME shifted_distance_np${MFEM_MPI_NP}
--- miniapps/tools/CMakeLists.txt
+++ miniapps/tools/CMakeLists.txt
@@ -12,12 +12,12 @@
 add_mfem_miniapp(display-basis
   MAIN display-basis.cpp
   ${MFEM_MINIAPPS_COMMON_HEADERS}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)

 add_mfem_miniapp(get-values
   MAIN get-values.cpp
   ${MFEM_MINIAPPS_COMMON_HEADERS}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)

 add_mfem_miniapp(load-dc
   MAIN load-dc.cpp LIBRARIES mfem)
@@ -39,7 +39,7 @@ add_mfem_miniapp(tmop-check-metric
 add_mfem_miniapp(tmop-metric-magnitude
   MAIN tmop-metric-magnitude.cpp
   ${MFEM_MINIAPPS_COMMON_HEADERS}
-  LIBRARIES mfem mfem-common)
+  LIBRARIES mfem-common)

 if (MFEM_USE_MPI)
    add_mfem_miniapp(nodal-transfer
--- miniapps/toys/CMakeLists.txt
+++ miniapps/toys/CMakeLists.txt
@@ -21,12 +21,12 @@ add_mfem_miniapp(toy_mandel
 add_mfem_miniapp(toy_rubik
     MAIN rubik.cpp
     ${MFEM_MINIAPPS_COMMON_HEADERS}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

 add_mfem_miniapp(toy_snake
     MAIN snake.cpp
     ${MFEM_MINIAPPS_COMMON_HEADERS}
-    LIBRARIES mfem mfem-common)
+    LIBRARIES mfem-common)

 add_mfem_miniapp(toy_lissajous
     MAIN lissajous.cpp LIBRARIES mfem)

It looks like this issue does not affect Xcode 15.3 -- maybe they decided to silence the warnings by defaults, as it was before. In any case, the PR looks good to me -- I don't expect the changes to cause any issues.

Merged in next for testing...


Add logic to plot the found path and show the start and the end

Here is a small update I find to be useful for people who want to test their algorithms.

This is the result of the function call.

I have two thoughts on this PR:

The goal of "Example 2" was to show people the fewest possible lines of Python code needed to plot the thing maze.  So this new example is not as good from that respect.
Perhaps you can make this a new example between the current "Example 2" and "Example 3" that shows this better copy/paste display example.  That seems more useful for the users, as long as it is clearly described as such.
You made a change to the code, but didn't copy/paste the new image into the docs.  (So, in your PR the code doesn't match the image below it.)

Does that make sense?  Thoughts?


Load one page at time

Hi folks, I'm new here and I don't know if is allowed to post doubts here. I'm currently implement a simple web application, and I got pdf.js implemented. To my  application's success is crucial that is loaded (not just rendered) on page at time, cause my users doesn't relies on good internet connection, so retriving the full document is heavy for their connection and devices. I'm wondering if their a way of loading just the previous, current e next pages.
Thanks,

Resources for one page are spread across entire PDF file (e.g. fonts or images), so in most of the cases you need to load entire file. If server provides HTTP range requests (and browser has no bugs in XHR) PDF.js tries to load only data needs for current page display and automatically download rest of the content later (the latter can be disabled via disableAutoFetch). Closing the issue as answered.

I've been thinking about split the file and then mask the page number. Of course scrolling will not be possible and there will be some delay to load the next page, but this will solve the overload of user's network.

As mentioned in https://github.com/mozilla/pdf.js/issues/7889#issuecomment-266570630, provided that the server supports range requests, setting PDFJS.disableAutoFetch = true; before the PDFJS.getDocument(...) call will attempt to only load the data necessary for the current page; please refer to src/display/global.js#L178-L188.

but this will solve the overload of user's network.

Not at all, every PDF-page will have fonts embedded which will increase total size of the transmitted data, as well as adding CPU overhead on parsing PDF header/footer/xref for each of the "page".

Some advice?

In the past, most of the users suggested the similar solution, but nobody came back with measurements/benchmarks. So it's hard to tell if dividing PDFs into pages is any better than PDF.js's way of handing.

Thanks, I'll try the suggestion.


The Stack option could get the resolver from a local stack.yaml.

stack ghc is probably already using it.

Closed in 8e8b9062942d3eb6ee8bd37dfc0d54ce08416f39.


Add FontStyle enum

I've found there is already existing FontStyle newtype here: https://github.com/slamdata/purescript-css/blob/9e78699ea728f519ec5b3e830aa2036823dd50a7/src/CSS/Font.purs#L67 + values. Do you want to change this?

Perhaps this was missing when I opened the issue, but I think generally it might be nice to have "real types" rather than newtypes-over-strings for values that have a known set of possibilities?

Something like
data ObliqueValue = Oblique | ObliqueDeg (Angle Deg)
data FontStyle = Normal | Italic | Oblique ObliqueValue

?

Yeah, exactly 👍


System.Runtime.CompilerServices.IsExternalInit is not defined or imported

Hey! Thanks for the project!
I'm getting this error as soon as I import it:
Library\PackageCache\com.sator-imaging.alt-source-generator@4fcd4088cd\Runtime\USGContext.cs(8,40): error CS0518: Predefined type 'System.Runtime.CompilerServices.IsExternalInit'  is not defined or imported

I was able to fix this by importing your package as a custom package and adding the following class to it:
#if NETSTANDARD2_0 || NETSTANDARD2_1 || NETCOREAPP2_0 || NETCOREAPP2_1 || NETCOREAPP2_2 || NETCOREAPP3_0 || NETCOREAPP3_1 || NET45 || NET451 || NET452 || NET6 || NET461 || NET462 || NET47 || NET471 || NET472 || NET48

using System.ComponentModel;

namespace System.Runtime.CompilerServices
{
    [EditorBrowsable(EditorBrowsableState.Never)]
    internal static class IsExternalInit { }
}

#endif


Unable to pass addresslines

I might be doing something wrong when I am trying to pass addresslines using the client library. "AddressLines" is coming up as read-only
// Create client
       AddressValidationClient addressValidationClient = await AddressValidationClient.CreateAsync();
       // Initialize request argument(s)
       var addToValidate = new Google.Type.PostalAddress()
       {
           PostalCode = "3210",
           RegionCode = "NZ",
           LanguageCode = "en",
           AddressLines = new[] { "1047 Te Aroha Gordon Road, R.D. 1, Te Aroha, Te Aroha" }
       };

       ValidateAddressRequest request = new ValidateAddressRequest
           {
               Address = addToValidate,
               PreviousResponseId = "",
               EnableUspsCass = false,

           };
       // Make the request
       ValidateAddressResponse response = await addressValidationClient.ValidateAddressAsync(request);

Just remove the 'new[]- the property is read-only, but you can add to the collection using a collection initializer, which is what you'll have without thenew[]`.

Thanks jskeet. That worked.


Compose breaks if Array.prototype.reduce is overwritten

Do you want to request a feature or report a bug?
Feature
I am writing an SDK with redux. Last week I had to deal with a strange error TypeError: d.apply(...) is not a function. When creating a store with multiple enhancers / middleware applyMiddleware(logger1, logger2) TypedError would appear occasionally. Apparently client would load their applicaition.js which has ES overrides to support older IE versions.
I understand this is an edge case but It would be nice
What is the current behavior?
compose method relies on Array.prototype.reduce to compose middleware.
applyMiddleware will throw an error If Array.prototype.reduce has been augmented on the page by some other library (prototype.js or some other wacky lib)
It is hard to find out what exactly is the problem if you don't know what is going on underneath.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.
jsfiddle
What is the expected behavior?
I suggest using reduce from from lodash which is already in the dependency chain.
Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?
All recent versions with compose.js

Appreciate the suggestion, but I don't think this is a change we want to make.  We've had lots of little tweaks suggested for compose over time, and there really isn't sufficient reason to make any further changes to it at this point.
I'll leave this open just for a bit to see if @timdorr or @jimbolla want to chime in, but at the moment I'm going to say that we're not going to add workarounds for built-in prototypes being overridden.

Yeah, we can't be expected to handle if the underlying environment is a moving target.


Update cost-insights.yaml

Hey, I just made a Pull Request!

Looking to update the Cost Insights plugin image! Not sure if I've correctly added the image, so let me know if this PR makes no sense at all.
Signed-off-by: Alexandra Wei<EMAIL_ADDRESS>:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[ ] All your commits have a Signed-off-by line in the message. (more info)

Ah, Tim got this sorted in #5515, so gonna close this one


Can a OAuth Credential be created with this?

I want to generate a Tailscale OAuth credential in Pulumi. Is there a way to do this right now?
I see that you can create a Tailscale API Key, but I was hoping to generate an OAuth Client

Unfortunately, not at this time. There's an open issue for this feature on the terraform provider (which this provider is derived from). From the discussion there, it sounds like this is ultimately blocked until tailscale adds an API for creating OAuth clients:FR: Allow creating new OAuth clients using the API· tailscale/9632


Home controller

Add a methode to return the most rated Movies
All movies loaded should be from the db and so are there title and poster, so dont use the api there

In coop with @AmirHassanMojahed and @Mariuswenzelits


Passing custom link does not delete the link.

Why it is that, if i use <LinkDefault {...props} />, then i'm not able to delete a link and also select it, (passing it as a parameter to Components)  :-
Components={{
Link: (props) => {
const { startPos, endPos, onLinkClick, link } = props;
const centerX = startPos.x + (endPos.x - startPos.x) / 2;
const centerY = startPos.y + (endPos.y - startPos.y) / 2;
return (
<LinkDefault {...props} />
)
}
}
}
Please help me with this issue.

So i found i had the same issue. To solve this i declared the function in class scope.
In this usage i'm wanting to be able to set a link opacity. Custom Link defined like so;
`  CustomLink(props) {
const nodeID = props.link.to.nodeId;
const node = this.state.nodes[nodeID]
let highlightColour = undefined;

if (node && node.properties && node.properties["highlightColour"])
  highlightColour = node.properties["highlightColour"];

return (

    <LinkDefault {...props} />

)

};`
 <FlowChart  chart={chart}               callbacks={stateActions}               Components={{                 Link: this.CustomLink,               }}             />
Remember to bind this if you like in this example use this to acess chart state
this.CustomLink = this.CustomLink.bind(this);

So i found i had the same issue. To solve this i declared the function in class scope.
In this usage i'm wanting to be able to set a link opacity. Custom Link defined like so;
`  CustomLink(props) {
const nodeID = props.link.to.nodeId;
const node = this.state.nodes[nodeID]
let highlightColour = undefined;

if (node && node.properties && node.properties["highlightColour"])
  highlightColour = node.properties["highlightColour"];

return (

    <LinkDefault {...props} />

)

};`
 <FlowChart  chart={chart}               callbacks={stateActions}               Components={{                 Link: this.CustomLink,               }}             />
Remember to bind this if you like in this example use this to acess chart state
this.CustomLink = this.CustomLink.bind(this);


Post titles not rendered correctly

While working on #25 , the titles displayed for regular 'markdown' formatting are not properly differentiated from regular text:

Source code for markdown is at that PR (#25) that also 'reenables' blogs section on index.html and removes the sample articles

This should be fixed. I will note that using only one # for the heading won't provide any specific styling other than margins b/c there is already an H1 on the page as the post title. There are styles for h2,h3,h4,h5,h6 with specific visual styling for h2,h3. If we need more just let me know and I can add it :)

Moved all titles one level down in articles, closing this.
Thanks!


time series chapter: add two initial notebooks (LDS and ISSM)

add the high-level organization for chapter 12: time series
add two initial notebooks:

Kalman filter for Linear Dynamical System from scratch
Exponential smoothing and innovative state-space models from scratch

Hi Bernie -- Thanks for the contributions, these notebooks looks really promising. I'm going to merge them now.
As a next step, could you please take a stab at writing a gentle introduction section that sets up the basic problems. Right now the sections read more like a research paper. But in the research papers we have the luxury of expecting (for very technical conferences) that the readers already know all the basics.  In the opening section (notebook) I'd like you to pretend that the reader truly is learning about time series for the first time. Assume that they know only the information they picked up from the introduction and anything related they absorbed from reading the notebooks about sequences/RNNs.

Got it. Working on the introductory notebooks right now, will make them more accessible and coherent wrt earlier chapters. Thanks, Zack!


Use gopkg.in for the versioning

Hey there, I would use that package for my application but it would be nice to refer to it as import "gopkg.in/prompt.v1" so that if you change the API, you would make it in a v2 version.
Gopkg.in is dead simple.  I'd like to see your package in github.com/go-prompt/prompt with a v1 branch.  There is no go-prompt organization (or user) yet.

Hi! API versioning would be nice. I'll check gopkg.in this weekend.

Done. Please test.

Should work as expected.  Thank you!  I have tried go get gopkg.in/prompt.v1 and it installed just fine.


How to mint and send inscriptions?

Hello friend.
How to mint and send inscriptions?Can you give me an example?
Thank you very much.

Hello friend. How to mint and send inscriptions?Can you give me an example? Thank you very much.

mint? i don't know what is that !
please check the example folder.


Adding other social media links

Along with the youtube link, you might also want to include other social media links

There are many. Which ones do you recommend?

Since i can see twitter, facebook and instagram on your youtube page, that will be a good start

Oh wait, I thought it is another repo 🤦♂. This thought came to my mind today itself. Thanks for the suggestion. I will add those.

can i add it via the issue only? i will hyperlink them

Yeah sure! But please make it style good so that it looks good on mobile

thank you,
could you please assign it to me?

Hey @max-programming  could you please add a hacktoberfest-accepted tag to this issue?
Thank you.

No need for that. As it is merged, it is accepted by hacktoberfest

hello @max-programming , sadly it is not directly considered for hacktoberfest until you add that tag to the merged repo. Could you please add it?

I will add it. NP but, you can read this. If the PR is in a repo with hacktoberfest topic,and has been merged, it is counted

Thank you and sorry, I did not read it correctly


Rails 4.2 HasManyThroughAssociation build_record arity mismatch

Hey there, thanks for the gem.
I know that the current release only claims to support rails 4.1, but I figured I'd mention an issue I'm having on rails 4.2 (amidst an upgrade from 3.2 :)
In rails 4.1 Associations::HasManyThroughAssociation defines build_record(attributes, options={}) whereas rails 4.2 defines build_record(attributes), so protected_attributes' super call causes an ArgumentError.
I'd be happy to take a stab at fixing, but wanted to know your plans on supporting rails 4.2 before diving in. Monkey patching for now.
UPDATE
On second thought, if this gem is to be supported until rails 5.0, perhaps the fix needs to be in rails 4.2? Their arity change breaks this gem.

Ah, looks like I just needed to update. Closing.


Is it possible to plot the smith chart with ScottPlot library?

Hi,
I'd like to plot a similar Smith Chart as below, which is generated by MATLAB, this is very valuable for our HW performance analysis.
I used ScottPlot to plot all the charts in my project, and it works very well, now only this Smith Chart left, I really hope I can finish all my work with ScottPlot library.
Hope can get advice from you, thanks!

👁


Data endianness problem (IDFGH-13693)

Checklist

[X] Checked the issue tracker for similar issues to ensure this is not a duplicate.
[X] Provided a clear description of your suggestion.
[X] Included any relevant context or examples.

Issue or Suggestion Description
I encountered a format issue with the data endianness when using this repository.

When I read the holding register at address 0, the data returned to me is 85 1F 3F AB
Converting 1.34 through dotted hexadecimal converter the single precision float big endian format I get is 3F AB 85 1E
The float little endian format is 1E 85 AB 3F
This will cause my modbus master device to not recognize the received data
This is the data online converter I use
https://www.asciim.cn/hex/float.html
There is another question. I use the 06 command to write a single register. In the same way, I still operate the register at address 0.

As you can see, the writing should be successful, and the data returned to me is also 100, but when printing on the slave machine, there is still no change.

@ForgetCSX,
The frame logger shows the raw ADU of Modbus frame. As per Modbus specification:
.
This means you should not expect the same order of the data as you described above because the Modbus standard standard does not prescribe how the extended data types mapping and it can be performed differently by device vendors and software. The esp-modbus Slave by default converts the 32-bit data from big-endian to the 'Little-endian byte swap' format understandable by compiler.
However, the esp-modbus supports the data conversion functions and you can convert the data to the format that is needed for your particular Slave application. The extended types support can be enabled by CONFIG_FMB_EXT_TYPE_SUPPORT=y in the kconfig menu.

See the esp-modbus extended datatypes, Modbus Endianness Conversion API Reference, example of conversion API. If you are using the esp-modbus master with your slaves, you can configure the master to use appropriate format option to work with your slave and the extended data conversion will be performed automatically by master in this case.

@alisitsyn Thank you for your reply. I understand. Generally speaking, the problem is the data format. I didn’t know where to adjust it at first. I can adjust the byte order and it will be no problem. Now there is no doubt.

The issue is closed as explained.


Consumer multiplex does not work with Kafka reactive binder.

Issue:
consumer multiplex does not work with kafka reactive binder.
Steps to replicate.
Use this binder with spring version 3.0.5.
<dependency>
	<groupId>org.springframework.cloud</groupId>
	<artifactId>spring-cloud-stream-binder-kafka-reactive</artifactId>
</dependency>

@SpringBootApplication
public class MyApplication {

      public static void main(String[] args) {
          SpringApplication.run(MyApplication.class, args);
      }

	@Bean
	Consumer<Flux<String>> input() {
		return f -> f.doOnNext(System.out::println).subscribe();
	}

}

spring.cloud.stream.bindings.input-in-0.group=foo
spring.cloud.stream.bindings.input-in-0.destination=topic1,topic2
spring.cloud.stream.bindings.input-in-0.consumer.multiplex=true

We get this error
org.apache.kafka.common.errors.InvalidTopicException: Invalid topics: [topic1,topic2]
Caused by: org.apache.kafka.common.errors.InvalidTopicException: Invalid topics: [topic1,topic2]

The issue is here in the reactive binder.
The non-reactive version seems to handle this properly here.

This is a new feature request; the reactive binder was added recently and does not support all features/functions of the message channel binder.

Contributions are welcome.


Largest Canvas size allowed?

I am interested in advice concerning creating and operating on canvas sizes. (beyond 100,000 x 100,000 )
It appears there are some internal limits though I'm unsure if it is dask or datashader? Using 4096x4096 works, going to 8192 fails.
Thank you.
(Pdb) cvs=ds.Canvas(plot_width=8192,plot_height=8192)
(Pdb) agg=cvs.points(df, 'lon','lat', ds.count('epoch'))
*** MemoryError

I am attaching the stack trace.
note.txt

You must have a much better monitor than I do!
In any case, the stack trace indicates a memory error, so maybe your other running processes or data structures have depleted your memory?  My machine doesn't have enough memory to test 100Kx100K, but I just tested the nyc_taxi dataset on my MacBook Pro laptop with 16GB RAM using a 20Kx20K aggregate, and that worked fine (completing in 25s).
I'd be interested to hear what your use case for such large aggregate arrays would be. Usually we assume that the aggregate array will be much smaller than the original columnar dataset, so we haven't much optimized the memory usage of the aggregate.

It is memory, I am moving to a larger system and do not have any issues. If you recall I requested creation of large geotifs in the past. I spent the time and implemented it. Datashader density is 'really' working taking quite a while on the aggregate ds.count. However generally things are functioning.
I am seeing this warning message on occasion (from DASK) I think
C:\g\prj\lib\dask\dataframe\core.py:3776: UserWarning: Insufficient elements for `head`. 5 elements requested, only 0 elements available. Try passing larger `npartitions` to `head`.
  warnings.warn(msg.format(n, len(r)))

I've seen that too, presumably in cases where it's generating a nearly empty image (e.g. when zooming in very far).  I haven't tracked it down yet; we should presumably be catching that warning wherever it's generated, because it's not something worth warning about for an interactive application.  Let me know if you figure out where we are calling 'head'.  Presumably it's somehow indirectly being called, as I don't see head() anywhere in the datashader source code.

Will review this when time permits. Thanks.
On Tue, Jul 18, 2017 at 5:58 PM, James A. Bednar<EMAIL_ADDRESS>wrote:

I've seen that too, presumably in cases where it's generating a nearly
empty image (e.g. when zooming in very far). I haven't tracked it down yet;
we should presumably be catching that warning wherever it's generated,
because it's not something worth warning about for an interactive
application. Let me know if you figure out where we are calling 'head'.
Presumably it's somehow indirectly being called, as I don't see head()
anywhere in the datashader source code.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bokeh/datashader/issues/409#issuecomment-316210471,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABXVTXx_QvMO6IZBdbsMgLRJ6B1ePEdIks5sPSqGgaJpZM4OYT-S
.


setup mkdocs blog scaffolding

Setup a section to us to release blogs about the work we're doing!
cc @Dyanngg Who is writing the first blog.
Checkout https://github.com/bpfd-dev/bpfd/pull/650 for inspo on how to actually add a blog post

https://github.com/kubernetes-sigs/network-policy-api/pull/161/files#diff-c63aa2d1d28341a4f23d763e804f81057c7a1b315d77e32623ba2bccd66c1cd0L58-L59 should take care of that @npinaeva


Add polygon intersection method.

As mentioned in issue #3632 this adds a new Intersector method to determine the overlapping area between two polygons.

Nice, thanks! Do we have a CLA from you? If not, please see https://github.com/libgdx/libgdx/wiki/Contributing

I absolutely don't like this method, it creates so much garbage. I'm pretty sure that it could be so programmed that it produces less garbage.

I was also just going to make a comment on the amount of garbage this produces. Three ArrayLists plus a Vector2 for each of the polygons vertices seems a little much.

Yeah couldn't agree more.

Ow indeed, @AldousP could you please fix this (and perhaps add a test as well)?

Yeah should have one in the next little bit.

@MobiDevelop New pull has been opened at #3770


refactor(stream): change the encoding of stream consumer group

The encoding way of stream consumer group is not efficient, this PR changes the encoding according to this discussion.

Can we merge this PR?

@Yangsx-1 You can merge PR once the CI passed

There is one issue that needs to be considered: after the modification, the case where EID MS is -1 needs to be excluded when traversing all sub-keys (EID MS|EID SEQ).

Hi @torwig, could you please review this PR when you have some time?

@PragmaTwice Sure. I'll review it today.

@Yangsx-1 @PragmaTwice Since we have UINT64_MAX as a delimiter, should it be an invalid seq of the stream entry ID?
Should we consider changing code here, here and here?

@Yangsx-1 @PragmaTwice Since we have UINT64_MAX as a delimiter, should it be an invalid seq of the stream entry ID? Should we consider changing code here, here and here?

Yes, i'll change these code later.


TOC setting bug

Describe the bug
Cannot turn off TOC for a blog post when global setting of TOC is on.
Steps to reproduce

set global TOC setting as true

[params]
  toc = true # set to false to disable table of contents 'globally'

Turn off TOC setting for some post.

+++
title = "About"
toc = false
+++

Expected behavior
Should overwrite global config

Thanks for reporting. I will implement a fix for this.

Please see https://hba.sid.one/posts/table-of-content/ for documentation regarding disabling ToC on certain blog posts.
Feel free to reopen this issue if you encounter any problem with Toc.
If this theme has helped you consider supporting it.


Added non-passive event listener to a scroll-blocking 'touchstart' event

Maybe there is some chrome update but I started seeing this warning in chrome for slider.

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
Well I see this warning on pages with slider, even on docs slide page:
https://material-ui.com/components/slider/
Expected Behavior 🤔
Do not want see it, it makes me nervous. Filtering Verbose level out from chrome console will not help - I will know it's still there, just hidden.
Actually I suspect some more related to slider issues, but cannot proof it's not my fault yet.
Steps to Reproduce 🕹
Steps:

Open components/slider docs
Open browser console
See this:

Context 🔦
In my case I am trying to use slider+input field combination same as one of examples in the docs
I am having strange issues but they probably not related, not sure yet, so fixing this chrome warning itself is already good thing.
Your Environment 🌎

`npx @material-ui/envinfo`
  System:
    OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo)
  Binaries:
    Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
    Yarn: Not Found
    npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
  Browsers:
    Chrome: 90.0.4430.212
    Firefox: 88.0.1
  npmPackages:
    @material-ui/core: ^4.11.4 => 4.11.4
    @material-ui/lab: ^4.0.0-alpha.58 => 4.0.0-alpha.58
    @material-ui/styles:  4.11.4
    @material-ui/system:  4.11.3
    @material-ui/types:  5.1.0
    @material-ui/utils:  4.11.2
    @types/react:  17.0.2
    react: ^17.0.1 => 17.0.1
    react-dom: ^17.0.1 => 17.0.1

Horizontal scroll ((any-directional) pan actually) is very often on mobile screens with or without scaling and performance is also more important for mobile devices.
This warning is about 'touch' event so I guess it's also mostly targeting mobile devices.
Not sure if we have 'mobile' label for issues.


Implement a Tilemap Setup Menu

Summary
Currently, setting up tilemaps is a tedious task and additionally, new users have no clue how to start. There should be a setup menu that automatically sets up a simple multi-layer tilemap including collision shape generation.
Analysis

The menu can go next to the resize menu.
There should be a similar context-based auto-popup of the setup menu when the Tilemap editor is focused / opened in a Scene without an existing tilemap.
Options this menu should offer to users:

Number of tilemap layers.
Size of the tilemap.
Tileset to use, with the option to specify a pixmap instead and auto-create the tileset.

Dragdrop should be possible. Topmost, but not modal?
In addition, tie in issue #150?

Flat or deep tilemap?
Generate collision shapes or not?

Additional improvements related to this:

Introduce a "Create Tileset" right-click action for Pixmaps.
Provide a DataConverter from Pixmap to Tileset

Double-check this and fix potential false-positives for this conversion.
As with other converters, implement code paths for re-use of existing Resources.

Dragdrop of a Tileset into the Scene Editor could create a GameObject with Tilemap and TilemapRenderer Component.

Should be possible using a DataConverter implementation, requiring a CreateObj operation and with GameObject as a target type directly.

Dragdrop of a (convertible to) Tileset into the Tilemap Editor should open up the Setup dialog with the Tileset assigned.

This would be "hardcoded" as part of the Tilemap Editor, because it doesn't allow other dragdrop operations anyway, nor creating other objects.

Progress:

Introduced a "Create Tileset" right-click action for Pixmaps.
Introduced a Pixmap to Tileset DataConverter.
Dragdrop of a Tileset into the Scene Editor or Scene View will create a new Tilemap object.

Immediate ToDo:

Implement the Tilemap Setup dialog.
Trigger the Tilemap Setup dialog when dragging a (convertible to) Tileset into the Tilemap Editor.

Idea:

For simplicity and flexibility reasons, this dialog could use a PropertyGrid to display all the setup values.

Hide the editor header and remove root indentation, should it be there.
Auto-focus the PropertyGrid when focusing the dialog. Make sure to provide proper tab support.
Make the background colors match.

Pro:

No implementation overhead for every option's UI control.
No need to adjust UI code when changing what settings are available.
ContentRef editors including dragdrop support are already there, including previews and convertible support.
Automatically upgrades when any of the PropertyEditors are improved.

Con:

Does not look as nice as a custom-designed dialog with grid layout, groups, etc.

Overall, the Pro side seems to outweigh the Con side.

Progress:

Implemented a Tilemap Setup dialog, accessible via tool action.
Dragdrop of a (convertible to) Tileset into the Tilemap Editor will open up the Tilemap Setup dialog.
Countless tweaks and fixes.

Closing this.


Fix external links

Description
This PR will fix external link to open them in a new tab.

@bcreane done.


Add NAS-Bench-201 problem

arXiv: https://arxiv.org/abs/2001.00326
GitHub: https://github.com/D-X-Y/AutoDL-Projects/blob/master/docs/NAS-Bench-201.md

Closing this issue as I don't have a strong motivation to implement this problem in kurobako now.


Physical iOS device

Specific error

Build Phases

Bitcode

Yes / No Will not work
What is the problem? thank you very much

There isn't enough info to help here. You appear to have Starscream imported right, but you are showing that you are getting an error about bitcode. I'm not sure how your project settings are configured, but trying adjusting your bitcode settings and see if that fixes it.


Use of double quotes not single quotes

There are are a lot of discussion if you one should use single or double quotes for strings in javascript. Though both are technically the same, Mendix (mxui), json, html and dojo uses double quotes as their standard.
This boilerplate uses all single quotes.
Should we convert them?
(a double whiskey is better the a single : )

Inside R&D we use double quotes everywhere and we recommend custom widget writers to do the same in order to be consistent.


chore(docs): improve options paragraph

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 91.837%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
165

Relevant Lines:
179

💛  - Coveralls


Links in the description broken

blue / black / red pills -> Links are broken

Fixed in https://github.com/dbrgn/STM32_Pills.lplib/commit/b9cf7d36e69b5764f3e5d55bf5acab11dd435978


Excluding Apps

Is your feature request related to a problem? Please describe.
If there was a option to exclude some apps that I don't to filter that particular app except the rest.
Describe the solution you'd like.
Please implement this option
Describe alternatives you've considered.
No response
Additional context
No response

Sadly not possible, this app uses Android's built-in DNS-over-TLS feature, which controls the DNS server for the whole system. And while automated server switching is something I am considering, changing the server on every app open/close does not seem like a good solution and falls apart completely if the excluded app tries to fetch something in the background. As an alternative you can use DNS66 that allows bypassing the blocking for specified apps by routing all DNS requests through a local on-device VPN service.


Enter phone number, store in Firebase

Is your feature request related to a problem? Please describe.
We want to be able to identify users by phone number in an anonymous way
Describe the solution you'd like
Screen with entering phone number. Phone stores phone number in clear text, sending to server with a hash function so we don't store cleartext phone numbers.
Doesn't need to have design
On profile screen, option to edit phone number. Might be empty for existing users or users who skipped the step.
Additional context
After the user name screen, where users enter their user name, there's an additional screen that looks similar where they can enter the phone number.
Optional but there should be some text explaining why it's beneficial

We anonymize the phone number on our server so we don't h

@n13 3 It is this still valid feature valid/required?


Multiple open graph DBs cause conflicts

OrientDB Version, operating system, or hardware.
2.2.8 & v2.2.12
Operating System

[ x] Windows

Expected behavior and actual behavior
When opening up two graph databases at the same time I was expecting the state of vertices/edges to remain separate.  I first noticed a problem when trying to migrate a subset of data from one graph DB to another.
Steps to reproduce the problem
Open either a set of local or in-memory graph databases. In the first graph DB add 2 vertices and an edge between the vertices.  Then in another graph database add a vertex.  Now the state of objects from the first graph will be 'confused'.  If you have vertexA from the first graph and call vertexA.getGraph().getRawGraph() you will get back the second graph.  In some situations calling getProperties can return null, or throw an Exception on method calls that previously worked before touching the other graph database.
I've just copied across my test file, but it hopefully shows the issues
TestOrientIssue.zip

@nuixkeith
The implementation of OrientGraph make use of ThreadLocal. That is why instances are "confused"
If you want to use multiple graph instances in one thread you should activate them when needed by using
the API OrientBaseGraph#makeActive

In v3.0 (still pre-alpha) we already get rid of Thread Local, so everything is easier.


Remove ByronNodeArgs.extra in favour of explicit mapping

We can easily support all the relevant args directly to ensure the interface is simple and more expected.
https://github.com/input-output-hk/cardano-launcher/blob/master/src/byron.ts#L113-L117

There's still a valid use-case for unknown configuration scenarios, so closing as is invalid


Massive memory leak in Google-Firebase social provider

When I try to log in to the Google Firebase social provider, the memory usage of the associated Web Worker grows to multiple gigabytes, until it eventually hits a memory limit and is killed.  This problem reproduces reliably.
By pausing that worker when it was "only" using 1.5GB of memory, I was able to record a snapshot, which identifies 758 MB of javascript memory allocations.  (I don't know where the other 750 MB went.)
The heap snapshot shows that most of the memory is in strings of the form
"{"type":3000,"data":{"instanceId":"...

i.e. uProxy instance messages.
These strings are held by a reference like
(GC Root) -> (Isolate) -> "google:[long number]" -> "inbox" -> "uproxy[long number]" -> "-KMC41ODY1MzQ0MzIyMDUzNjI1" -> "uproxy[long number]" -> [uProxy instance message string]

The object with an "inbox" attribute also often has an "inviteResponses" attribute.  These are both keys in the Firebase rules, so I conclude that the leaking objects are produced by Firebase.
I don't know enough about the internals of the Firebase social providers to investigate this much further.  Assigning to @dborkan.
It's possible that my account is in an unusual state, but even if that's true it shouldn't result in this kind of leakage.

BTW, I also see a huge number of log messages like
remote-user [2016-03-22T20:54:28.982Z] monitor could not find instance for clientId [long number]/uproxy[long number] freedom-for-chrome.js:1127

logged by this line: https://github.com/uProxy/uproxy/blob/563eaac05e0729d5394e1ef6adf506f97f90538c/src/generic_core/remote-user.ts#L429

Yikes.  Also can you comment on what version of Chrome or FF you are running, and how long it took before you ran out of memory?  We've definitely left the Firebase providers signed in for a days at a time so this is a bit surprising.

Chrome 51 (dev channel).  On my desktop, the app runs out of memory and crashes within a few minutes, maybe two minutes.


Training on Own Dataset - on short videos

Hi,
I'd like to train on shorter video sizes of maximum 15 seconds long. The action can last up to 1 second.
When using very similar setting as thumos14.json, I am getting following error:
  File "/root/actionformer_release/libs/modeling/meta_archs.py", line 544, in label_points_single_video
    reg_targets = reg_targets[range(num_pts), min_len_inds]
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
terminate called after throwing an instance of 'c10::CUDAError'

For the i3d feature extraction I also used:
feat_stride: 4,
num_frames: 16

I am using RGB only, so changed the input dim to 1024.
The rest of model config I kept the same.
Can you help with how to solve the error?
Will actionformer also work well for shorter videos and what are the recommended settings in this case?
Thanks, also for the great code/paper!

Can you please first run the code with CUDA_LAUNCH_BLOCKING=1? this will find the true code which results in the error.

This is the error I am getting:
Start training model LocPointTransformer ...

[Train]: Epoch 0 started
/opt/conda/conda-bld/pytorch_1656352464346/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:365: operator(): block: [0,0,0], thread: [0,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed.
Traceback (most recent call last):
  File "./train.py", line 187, in <module>
    main(args)
  File "./train.py", line 138, in main
    print_freq=args.print_freq
  File "/root/actionformer_release/libs/utils/train_utils.py", line 277, in train_one_epoch
    losses = model(video_list)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 166, in forward
    return self.module(*inputs[0], **kwargs[0])
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/actionformer_release/libs/modeling/meta_archs.py", line 375, in forward
    points, gt_segments, gt_labels)
  File "/opt/conda/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "/root/actionformer_release/libs/modeling/meta_archs.py", line 448, in label_points
    concat_points, gt_segment, gt_label
  File "/opt/conda/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "/root/actionformer_release/libs/modeling/meta_archs.py", line 536, in label_points_single_video
    gt_label, self.num_classes
RuntimeError: CUDA error: device-side assert triggered
terminate called after throwing an instance of 'c10::CUDAError'
  what():  CUDA error: device-side assert triggered
Exception raised from create_event_internal at /opt/conda/conda-bld/pytorch_1656352464346/work/c10/cuda/CUDACachingAllocator.cpp:1387 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x57 (0x7f8aeec44477 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: <unknown function> + 0x1d4a3 (0x7f8b1c39f4a3 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #2: c10::cuda::CUDACachingAllocator::raw_delete(void*) + 0x237 (0x7f8b1c3a5417 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #3: <unknown function> + 0x46e3e8 (0x7f8b2e9483e8 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #4: c10::TensorImpl::release_resources() + 0x175 (0x7f8aeec27d95 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #5: <unknown function> + 0x35f9c5 (0x7f8b2e8399c5 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #6: <unknown function> + 0x6b0130 (0x7f8b2eb8a130 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #7: THPVariable_subclass_dealloc(_object*) + 0x308 (0x7f8b2eb8a538 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
<omitting python frames>
frame #24: __libc_start_main + 0xe7 (0x7f8b6179fc87 in /lib/x86_64-linux-gnu/libc.so.6)

I'm not sure whether you re-run ActionFormer with the environment flag CUDA_LAUNCH_BLOCKING=1. If so, I think the problem lies in the loss generation part, you should check that the groundtruth class label does not exceed the pre-defined num_classes.

You are right. It seems the maximum ground truth class should be num_classes-1.
This solved it thank you!
Related to what I asked about shorter videos - are there recommended settings for my case?
i.e. 15 seconds long videos with actions up to 1 seconds.
Should I modify max_seq_len, backbone_arch, regression_range, n_mha_win_size?

We have not tried ActionFormer on short videos. And, yes, you will need to modify those model parameters in order to maximize the performance. Your setting is somewhat similar to our setting on ActivityNet. You can refer to this file for selecting the model parameters. Here are some of my comments.

max_seq_len should be reduced to match the maximum input sequence length. Let us say you have 15 seconds long videos with 30 FPS and a feature stride of 4. The maximum sequence length is around 112. Note that the max_seq_len should be divisible by the maximum downsampling rate on the feature pyramid. Setting max_seq_len to 128 seems a reasonable starting point.
backbone_arch and regression_range have to be changed accordingly to match the distribution of the action durations. Given that the actions are up to 1 second, I would recommend reducing the pyramid levels and tweaking the regression range. Something like backbone_arch = [2, 2, 1] (2 levels of feature pyramid) and regression_range =  [[0, 4], [4, 10000]] (the first level detect actions up to 0.53 sec and the second for the rest).
n_mha_win_size will need to match the size of the feature pyramid defined by max_seq_len, backbone_arch and regression_range, yet does not make a major impact to the performance. If you follow the suggested parameters listed above, the possible values are 5, 9, 17, 33, and -1 (using global self-attention). 9 could be a good starting point.

Thank you for your help.
Issue resolved.


Hostgroups destroyed view

With the update 0.14.1-1 the display in the ICINGA Webui host group is no longer correct. Here is the screenshot before the update and after the update:
Before update

After update

Now i installed the previous version (0.14.0-1) and the view is fine again.
Regards
Sascha

We just released Icinga DB Web 1.1.3. Installing this version in combination with IPL 0.14.1 should resolve the issue.

Thx.. I'd reveived the update Icinga DB Web 1.1.3 and everythin is fine now.


Can't publish on Google Play Store since using the package

First, thank's to the community for your work!
Platform

[ ] Web
[ ] iOS
[X] Android

Describe the bug
We have an App already published in production. We wanted to add feature with Capacitor Stripe Community, and then when we published the new update with the package and feature included, we got refused to be published by Google because Policy Rules not compliant.
To Reproduce
Steps to reproduce the behavior:

Publish an mobile App on google Play Store.
Add Capacitor-Community/Stripe to your project.
Publish new release to Google Play Store.
Get refused by Google.

Expected behavior
Being published on Google Play Store.
Screenshots
Added to the thread.
Using Function:

[X] Payment Sheet / Payment Flow
[ ] Apple Pay
[ ] Google Pay
[ ] Identity Verification Sheet

Thanks for issue. capacitor-community/stripe use some user data. Please try to change Google Play Console's Data Safety.

some user data? What user data specifically?

We cannot answer this question because it depends on which features your application uses. If you need assistance, please contact Stripe.


Adding login title in Home webview view panel

There is no --login flag at the Deploy CLI

Please avoid changing all the indentation of package.json (or any other file)
Please ask for doc or info before commit something, because this feature may not work properly, also test what you are doing before PRing it.

I am converting this to draft until you improve and resolve all the issues.


error

they give me a error when i press "generate source"

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Virus\AppData\Local\Programs\Python\Python311\Lib\tkinter_init_.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "C:\Users\Virus\Desktop\PySilon-malware-main\builder.py", line 214, in assemble_source_code
shutil.copy(f'resources/source_code/{filenames[file]}', f'resources/source_code/tmp/{filenames[file]}')
File "C:\Users\Virus\AppData\Local\Programs\Python\Python311\Lib\shutil.py", line 419, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Users\Virus\AppData\Local\Programs\Python\Python311\Lib\shutil.py", line 256, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'resources/source_code/keylogger.py'
this is the error

your anti virus deleted some files. Disable it, re download everything and build.


Make it easier to test plugins

This is a WIP to try to make it easier to test plugins. Here's basically how it works:
const createProbot = require('probot');
const plugin = require('path/to/my/plugin');

const probot = createProbot();
probot.load(plugin);

probot.receive({
  event: 'push',
  // `push.json` has the payload copied from the webhook deliveries listed on GitHub
  payload: require('./fixtures/push')
});

@hiimbex @kytrinyx @lee-dohm #101

This is a much cleaner interface than what we've got going currently!
Does this work with the expect / mocks that we were using earlier today?

So, just to clarify, is the goal here to making testing (as in unit/integration) easier or to make debugging/testing while working on plugins easier, as in make it easier to imitate events (without having to redeliver payloads or trigger actual github events)?
It seems as though right now this has the potential to improve both.

@hiimbex I think the primary idea was to ease testing, but in my experience that helps debugging (I would MUCH rather write a test to debug than write print statements).


Vim doesn't apply true color with this theme

If I enable italics, my comment background will change to the dark color just exactly like this issue.
But if I disable italics, whenever I source my config file it will automatically highlight the last search result (weird). I believe these two issues have something to do with the true color of the terminal.
One more thing is that Vim highlighting for .vimrc is very different to Neovim highlighting for .vimrc even tho Vim and Nvim use the same config.
Using vim:

Using nvim:

You can notice that the brightness of the comment text is also much darker in Vim than in Neovim even tho they have the same brightness level (set to 20).
Note that all those things only happen in Vim, on Neovim they work just fine.
O.S: MacOS High Sierra
Vim: 8.0
Neovim: 0.2.2
Terminal: iterm2 build 3.1.5
The configuration can be found at https://github.com/huyvohcmc/dotfiles/blob/master/init.vim

Can you please try to move the set termguicolors line after the colorscheme nord line? Otherwise the scheme is loaded before Vim knows that it should use true colors.

I've put the termguicolors after the colorscheme, no luck.

For some reason the way that it is currently set up, when termguicolors is enabled, it doesn't set comments to italic .. but only in vim.
I have found that if you put let g:nord_italic = 1 before setting colorscheme to nord then it fixes that problem. (I am not particularly fond of how g:nord_italic` works, but it works.)
Also, regarding the bold font that appears only in neovim: it appears your neovim is picking up on the gui= variable which is set to bold in gvim for things like hi Statement, but not for terminal vim. There is some inconsistency there ... bold for gui and none for term.

I still have the problem. The brightness of the comments are too dark and when I source the file I can't see the comments anymore.
Can you provide me some methods to debug this one? It really annoys me since I want to switch from nvim to vim and I love this theme but it can't work like the way it is on nvim..

I tried to get autocmd SourceCmd to work with a nohlsearch at the end, but I couldn't.
I would say that to make things easier, you can use this, which I use all the time (to mostly clear hlsearch but also to refresh a diff and refresh syntax ... I got a little carried away, but the point is that a nohlsearch is added as extra functionality to <c-l>):
" <c-l> is a bit more useful (nohl && diffu && <c-l> && refresh syntax from start)
nnoremap <silent> <c-l> :nohlsearch<bar>diffupdate<bar>execute "normal! \<lt>c-l>"<bar>syntax sync fromstart<cr>

I also have the following in my vimrc:
nnoremap <silent> <leader>v :edit $MYVIMRC<bar>call feedkeys("\<c-l>")<cr>
nnoremap <silent> <leader>V :source $MYVIMRC<bar>call feedkeys("\<c-l>")<cr>
nnoremap <silent> <leader>S :source %<bar>call feedkeys("\<c-l>")<cr>

Like I said unfortunately, I couldn't get it to work with the autocmd..

brew install vim -with-override-system-vim and map <silent> <leader><cr> :let @/=""<cr> solved the problem. TIA!

@huyvohcmc Good to hear the problem has been solved. As far as I understand the problem was a outdated version of Vim which doesn't even supported true colors right? Just want to know for my notes, otherwise this solution can help other users facing the same problem.


Using same RecyclerViewAdapter twice at different fragments MaterialScrollBar wont work on second adapter

Hello, we are using this library on our app. And we have got a little problem.
We have got a MainActivity which it has 3 fragments on ViewPager.
We have got a MediaListAdapter which is RecyclerViewAdapter.  We are using this adapter on 2 fragment at the same time. So first fragment works great but second fragment's scrollbar not showen or not working. If you pull from right to left on screen you can see scrollbar on second fragment. But that scrollbar work for first fragment.

If you mean id on layout, yeah we use same layout for 2 fragment and 2 adapters id are same

The issue ssems to be that the scroll bar in the second fragment is picking out the recyclerView in the first fragment because they share the same ID and it gets confused. You can fix this by manually setting the recyclerView with the .setRecyclerView() method in onCreateView of your second fragment, passing in the correct recyclerView.

Sorry, i don't understand great. We have got one fragment class, we use that as two fragment. I mean in ViewPager we add same fragment twice. That means twice layout twice code. I can devote which fragment is it in code.
But what do you mean set manually recyclerView. We using Android Databinding.

In the onCreateView method of the fragment that's inserted twice, add the following
RecyckerView rv = view.findViewById(R.id. ___ );
DragScrollBar/TouchScrollBar scrollBar = view.findViewById(R.id.___);
scrollBar.serRecyclerView(rv);

Sorry, i tried but not worked. Still same problem


⚠ Melody Beta has degraded performance

In ee49855, Melody Beta (https://canary.melody.api.triza.dev) experienced degraded performance:

HTTP code: 200
Response time: 1831 ms

Resolved: Melody Beta performance has improved in 03fef6e.


[Distributed] SILGen must consistently use prop get requests

Follow up to https://github.com/apple/swift/pull/42577
We should always use the cached requests to get the properties, so regardless of invocation order we'll always synthesize once and only once, and never get missing fields.
Thanks @DougGregor @xedin

@swift-ci please smoke test


[AutoPR batchai/resource-manager] Rename MPI to CustomMPI to match Batch AI service

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/3328

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/2160


re-add pressure damage

About the PR

Re-added pressure damage, reverts https://github.com/space-wizards/space-station-14/pull/29478
Why / Balance

Don't know of anybody who likes this change
Technical details

Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

:cl:

tweak: Space will actually kill you again!

merge NOW


add synchronize(). refactor: core

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 81.25000% with 18 lines in your changes missing coverage. Please review.

Files with missing lines
Patch %
Lines

src/core/device_types.rs
0.00%
15 Missing :warning:

src/core/device.rs
96.29%
3 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines
Coverage Δ

src/core/init.rs
97.29% <ø> (ø)

src/core/memory.rs
90.20% <ø> (ø)

src/core/stream.rs
92.85% <ø> (ø)

src/core/device.rs
90.47% <96.29%> (-9.09%)
:arrow_down:

src/core/device_types.rs
32.14% <0.00%> (ø)


[cli] Add a tool to run locally an application on docker

Goals:
allow users to quickly iterate over the configurations without needing to deploy the application to a kubernetes cluster
Summary:

new docker image langstream-runtime-tester that allows you to run a single LangStream application on the local enviroment, on a single docker container

How to run the tool:
bin/langstream docker run -app /path/to/app -i /path/to/instance -s /path/to-secrets --start-broker=true|false --start-s3=true|false
it is the same command as "apps deploy" but you use "local-run" instead of "deploy".
As the environment is ephemeral you must always pass the instance.yaml and the secrets.yaml files
By default we also start Kafka and Minio, you can control them by using --start-broker and --start-s3
Limitations of the "local mode":

this is not for production, only for quick iterations
all the pipelines and agents executors run in the same Java process
no parallelism
you always have to pass the "secrets" and the "instance file"
the system is almost stateless, each time you run you deploy the application from scratch

I am committing this first part of the PR.
I am adding support for the "gateways" in the next one.
and I will also make the version configurable


Cannot catch duplicate primary key error for join table

Hello, I cannot catch the UNIQUE constraint failure error.
Test code is here:
package main

import (
        "github.com/jinzhu/gorm"
        _ "github.com/mattn/go-sqlite3"
)

type User struct {
        ID       int       `gorm:"primary_key"`
        Projects []Project `gorm:"many2many:project_users"`
}

type Project struct {
        ID    int    `gorm:"primary_key"`
        Users []User `gorm:"many2many:project_users"`
}

func main() {
        db, _ := gorm.Open("sqlite3", "test.db")
        defer db.Close()
        db.AutoMigrate(&User{}, &Project{})
        proj := Project{ID: 2}
        err := db.Debug().Model(&proj).Association("Users").Append(User{ID: 1}).Error
        if err != nil {
                // Should ok.
                panic(err)
        }
        // Add again.
        err = db.Debug().Model(&proj).Association("Users").Append(User{ID: 1}).Error
        if err != nil {
                // Should UNIQUE constraint failed, but not
                panic(err)
        }
}

The SQL from gorm  debug is:
INSERT INTO "project_users" ("project_id","user_id") SELECT '2','1'  WHERE NOT EXISTS (SELECT * FROM "project_users" WHERE "project_id" = '2' A
ND "user_id" = '1')

But why gorm adds the  where not exists to the insert statement? Thanks

Hi @hit9
Why error? it is better to just works?

Btw, if you really want to the error, you could overwrite the join table handler,  refer https://github.com/jinzhu/gorm/blob/master/join_table_handler.go#L105-L114

Thank you. I just wanna to get the error if some duplicated record is going to insert.
Now I am using a select query at first and then do the insert.

For the join table, gorm is not going to insert duplicated foreign keys, for model, it would be good to use unique index to ensure no duplicated records.

Hmm.. But how do I validate the condition "Cannot add duplicate users to one project? "

Did anybody find how we can detect this error. Similar to above I am trying to insert a record which already exist which cause gorm to generate error "UNIQUE constraint failed".
How do I check this situation, any error code for this in gorm?

@nkumar15 You can check in the end with db.NewRecord(&record) if it's still true after creating the record, that mean's it's somehow can't be created.

@cad yes and no. Right now am dealing with the same thing, and the creation of a new register can be avoided by so many things, not only duplicated registers. And for what I understand @hit9 and me want to get the message that comes from the database in a better way and not infer what is happening

If I understand the question correctly, you just want to catch errors when you save an object to  a database. I used db.Create(&record) method:
if dbObj := db.Create(&record); dbObj.Error != nil {
      c.JSON(http.StatusBadRequest, gin.H{"error": dbObj.Error.Error()})
} else {
      c.JSON(200, track)
}

These are the only errors I can catch in gorm:
// ErrRecordNotFound returns a "record not found error". Occurs only when attempting to query the database with a struct; querying with a slice won't return this error
ErrRecordNotFound = errors.New("record not found")

// ErrInvalidSQL occurs when you attempt a query with invalid SQL
ErrInvalidSQL = errors.New("invalid SQL")

// ErrInvalidTransaction occurs when you are trying to `Commit` or `Rollback`
ErrInvalidTransaction = errors.New("no valid transaction")

// ErrCantStartTransaction can't start transaction when you are trying to start one with `Begin`
ErrCantStartTransaction = errors.New("can't start transaction")

// ErrUnaddressable unaddressable value
ErrUnaddressable = errors.New("using unaddressable value")


[PE-D][Tester C] Participant List does not fully display age in UI when prefixed with many 0s. Input<PHONE_NUMBER>00000000000000000000000000030 as input but the ui shows<PHONE_NUMBER>00000000000000000000000... as age ( unable to determine age of participant)

Labels: type.FunctionalityBug severity.Medium
original: gavinsoh/ped#5

This is similar to #292 where the leading zeros are not properly handled/stripped before storing the value.


Docs: why does the example for the button producer not use a  tag?

Describe the bug
It's bad for accessibility to use divs when there is a native HTML tag for the element. So why is the example in the quick start guide using a  for a button element?
Reproduction
Go here and look at the example: https://module-federation.io/guide/start/quick-start.html#3-exporting-modules-by-the-producer
Used Package Manager
npm
System Info
N/A

Validations

[X] Read the docs.
[X] Read the common issues list.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Module federation issue and not a framework-specific issue.
[X] The provided reproduction is a minimal reproducible example of the bug.

It's a simple example. Anything will suffice.
But feel free to PR the repo and help us enhance the details