Is it possible to support embedded structures?

As Python interpolation supports embedded expressions, I wonder if it's possible for PyF to support something like:
[fmt| this is an embedded list: {[varA, varB]} |]

Hello.
I do apologize for the time it takes to answer.
That's a good question. In python:
>>> f"hello {[1,2]}"
'hello [1, 2]'

In PyF, you can use the s modifier in order to force the value to a string:
Prelude PyF> :set -XTemplateHaskell -XQuasiQuotes
Prelude PyF> [fmt|hello {[1,2]:s}|]
"hello [1,2]"

However, making it to work without the s modifier is a bit more tricky. You can either:

write you own instance for PyFClassify such as:

Prelude PyF> :set -XTypeFamilies
Prelude PyF> type instance PyFClassify [t] = 'PyFString
Prelude PyF> [fmt|hello {[1,2]}|]
"hello [1,2]"

However, this has to be done for all instances.
There is no support in Haskell for "overlappable" type instances, so we cannot write something such as type instance PyFClassify t = 'PyFString and overlap the result for other types. We can however use a closed type familly, but it will forbid users to add their own PyFClassify instances for custom types.

I tried to add an OVERLAPABLE instance:
instance {-# OVERLAPPABLE #-} (FormatAny2 (PyFClassify t) t k) => FormatAny t k where
  formatAny = formatAny2 (Proxy :: Proxy (PyFClassify t))

But it generates conflicts and now any Showable is displayed as string by default. This is not a wanted behavior.
I'll try to think about a solution, in the meantime, you can use the s modifier or create your own type instance for PyFClassify.

Hi @guibou , thank you for the detailed answer, it clarifies a few other questions I had!


navigator is not defined

There is an undefined navigator object at line 278. You create it as global in the test procedure, but without this hack, the library cannot be used, unfortunately.

There is an undefined navigator object at line 278. You create it as global in the test procedure, but without this hack, the library cannot be used, unfortunately.

Hi @danparn ,
You probably use some very outdated browser: https://caniuse.com/mdn-api_navigator


补充thrift-http 映射注解规范

补充thrift-http 映射注解规范

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Please  fix those typos in this PR.


fix:android build issue

Hi, thanks for this PR. I changed some small things on the commits to stay focused on fixing the build issues on android. It got merged by 91c5dd28a78b22ee35fbd24b9a5c9bcffd48f369


Add support for SW5e and open path for more systems support

This commit adds support for the SW5e system be replacing specific references to dnd5e with more general references to the current system.
This change should also open the way to supporting other systems, which, provided they are similar enough to dnd5e, will just require being added to the module.json

https://github.com/vtt-lair/simbuls-cover-calculator/pull/26 is also required in order for this module to be able to be loaded on sw5e


PodInjectorSelector permission context fix

Describe the issue
Need to update PodInjectorSelector manifest to resolve permission issue
Definition of done
Update the provisioning pipeline with the required templates

This has been complete and merged in prod-ready branch.

This has been complete and merged in prod-ready branch.


fix Issue 15284 - dmd installer hangs when updating installed windows version

there is an infinite loop when no SDK is detected
https://issues.dlang.org/show_bug.cgi?id=15284

Thanks, I just starred at the code and suddenly saw it.


Access lock Booze-Mat

About the PR
Access lock Booze-Mat for Kitchen or Colony accesses.
"No more drunk marines, only drunk officers" update.
Changelog
:cl:

fix: Booze-O-Mat is now access locked!

i don't even think there's booze in 13 on the almayer but we revisit this later

Yeah, you right, Booze-O-Mat mapped only on distress signal maps.


Services: first build: abs added

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_6e2994l26a/clone/recipe/meta.yaml:0: missing_version_or_name: The recipe is missing name and/or version
Errors were found

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_51ziqrquc6/clone/recipe/meta.yaml:0: missing_version_or_name: The recipe is missing name and/or version
Errors were found

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_05h2db302n/clone/recipe/meta.yaml:0: missing_version_or_name: The recipe is missing name and/or version
Errors were found

Linter check failed, with the following output:
The following problems have been found:
ERROR: /tmp/abs_e5fwnfjugi/clone/recipe/meta.yaml:0: missing_tests: The recipe is missing tests.
WARNING: /tmp/abs_e5fwnfjugi/clone/recipe/meta.yaml:154: missing_doc_source_url: The recipe is missing a doc_source_url
WARNING: /tmp/abs_e5fwnfjugi/clone/recipe/meta.yaml:154: missing_license_url: The recipe is missing a license_url
WARNING: /tmp/abs_e5fwnfjugi/clone/recipe/meta.yaml:154: missing_description: The recipe is missing a description
Errors were found

Linter check found the following problems:
Traceback (most recent call last):
  File "/opt/conda/envs/linter/bin/conda-lint", line 11, in
    sys.exit(main())
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/anaconda_linter/run.py", line 92, in main
    result = linter.lint(
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/anaconda_linter/lint/__init__.py", line 605, in lint
    msgs = self.lint_one(
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/anaconda_linter/lint/__init__.py", line 653, in lint_one
    recipe = _recipe.Recipe.from_file(
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/anaconda_linter/recipe.py", line 268, in from_file
    raise exc
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/anaconda_linter/recipe.py", line 259, in from_file
    recipe.load_from_string(text.read(), selector_dict)
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/anaconda_linter/recipe.py", line 207, in load_from_string
    self.render()
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/anaconda_linter/recipe.py", line 403, in render
    self.meta = yaml.load(yaml_text)
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/main.py", line 434, in load
    return constructor.get_single_data()
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/constructor.py", line 119, in get_single_data
    node = self.composer.get_single_node()
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/composer.py", line 76, in get_single_node
    document = self.compose_document()
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/composer.py", line 99, in compose_document
    node = self.compose_node(None, None)
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/composer.py", line 143, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/composer.py", line 223, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/composer.py", line 143, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/composer.py", line 223, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/composer.py", line 113, in compose_node
    if self.parser.check_event(AliasEvent):
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/parser.py", line 146, in check_event
    self.current_event = self.state()
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/parser.py", line 630, in parse_block_mapping_value
    if self.scanner.check_token(ValueToken):
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/scanner.py", line 1796, in check_token
    self._gather_comments()
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/scanner.py", line 1838, in _gather_comments
    self.fetch_more_tokens()
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/scanner.py", line 288, in fetch_more_tokens
    return self.fetch_value()
  File "/opt/conda/envs/linter/lib/python3.10/site-packages/ruamel/yaml/scanner.py", line 657, in fetch_value
    raise ScannerError(
ruamel.yaml.scanner.ScannerError: mapping values are not allowed here
  in "", line 153, column 121:
     ... eight containers to run anywhere: from Desktop to the Cloud, Edg ...
                                         ^ (line: 153)
ERROR conda.cli.main_run:execute(49): conda run conda-lint /tmp/abs_95h28rqx2g/clone failed. (See above for error)


Add OSType as Custom Parameter

In Lisav2 framework the Windows VM deployment is supported for nested-VM tests. This change adds the OSType as custom parameter which supports to deploy the windows VM.
Below is the log snippet which shows Windows VM is deployed successfully:
03/19/2019 05:52:18 : [INFO ] Adding Virtual Machine LISAv2-OneVMW-0
03/19/2019 05:52:18 : [INFO ] >>> Using ARMImage : MicrosoftWindowsServer : WindowsServer : 2016-Datacenter : latest
03/19/2019 05:52:18 : [INFO ] Added Unmanaged-Persistent OS disk : LISAv2-OneVMW-0-OSDisk
03/19/2019 05:52:18 : [INFO ] Added Virtual Machine LISAv2-OneVMW-0
03/19/2019 05:52:18 : [INFO ] Template generated successfully.
03/19/2019 05:52:18 : [INFO ] Creating Deployment using C:\Users\v-prmhet\AppData\Local\Temp\LISAv2-OneVMWin-PRstaginglisav2-BO24-20190318225205.json ...
03/19/2019 05:55:20 : [INFO ] Resource Group Deployment created.
03/19/2019 05:55:20 : [INFO ] Collecting LISAv2-OneVMWin-PRstaginglisav2-BO24-20190318225205 data..
03/19/2019 05:55:20 : [INFO ] 	Microsoft.Network/publicIPAddresses data collection in progress..
03/19/2019 05:55:21 : [INFO ] 	Microsoft.Compute/virtualMachines data collection in progress..
03/19/2019 05:55:21 : [INFO ] 	Microsoft.Network/networkInterfaces data collection in progress..
03/19/2019 05:55:22 : [INFO ] 	Microsoft.Network/loadBalancers data collection in progress..
03/19/2019 05:55:23 : [INFO ] Collected LISAv2-OneVMWin-PRstaginglisav2-BO24-20190318225205 data!
03/19/2019 05:55:23 : [INFO ] Trying to connect to deployed VMs.
03/19/2019 05:55:23 : [INFO ] Connecting to <IP_ADDRESS>:3389 succeeded.
03/19/2019 05:55:23 : [INFO ] All VM ports are open.

@prashantmhetar Please provide a PR description on why this change is required and you need to also post test results.

@prashantmhetar Please provide a PR description on why this change is required and you need to also post test results.

@prashantmhetar Can you help me understand why this PR is needed?

I don’t think this is the expected case. Please close PR.

I don’t think this is the expected case. Please close PR.

This PR is added to support Windows VM deployment.  In current implementation of Lisav2, global parameter IsWindowsImage used for nested-VM test.  Better to have a custom parameter as ‘OSType = Windows/Linux’ which can be used by other tests also.

@prashantmhetar are you intending to use this in any way or for a specific project?
I thought the framework changes have been locked and any changes require a good justification.
Also you're not adding any new test cases for this change to make sense, if it's just cosmetics then this is not a priority.
Please start an internal email thread if this needs further discussion, leaving this to @juhlee-microsoft to further drive the conversation.

Talked to @vyadavmsft and accepted his proposal. Please update documentation with the change. @prashantmhetar


Cells with no dates will not cause any error anymore and will be filt…

…ered if a date filter is used.
Only TableDataStore.js was updated.

Thanks @dana2208

Release on v2.1.1 :)


Question/Bug: roomdb: the item () is already on the list

Hey there,
I've been trying to play around with ssb and rooms and I'm still trying to wrap my head around some stuff so I'm not really sure if what I'm seeing is an feature or a bug.
I deployed a new go-ssb-room server from e3cea25e25c9173f6a9c878ed71f81454556dbf0 using the docker-compose provided and put an nginx with let's encrypt infront of it.
I added my user and used the password method to log in the admin dashboard. So far so good.
I couldn't figure out how to invite myself, and a previous issue (https://github.com/ssb-ngi-pointer/go-ssb-room/issues/280#issuecomment-991613213) mentioned just creating an invite and using it. I tried on both ios and android (0.2112.3) and in both cases, clicking on the link opens the app, I see the request reaches the server (just logs handling json body), but nothing else happens. No error messages on the app or server.
Trying to debug this further, I added some additional logging, and the issue seems to be that the consume method fails around here:
https://github.com/ssb-ngi-pointer/go-ssb-room/blob/e3cea25e25c9173f6a9c878ed71f81454556dbf0/web/handlers/invites.go#L254-L262
The error seems to be the following:
transaction failed, rolling back: roomdb: the item (@<mypubkey>.ed25519) is already on the list

I've also tried to invite a friend as well, at first they seemed to manage to register, but manyverse did nothing (same version on android). After that, they are getting the same error.

Question: Is the constraint that a user can only consume an invite once a bug, a feature, or user error?

ps. Thank you for your hard work at this, both manyverse and rooms sound amazing! :D

I'm also experiencing this issue. I'm using my own custom docker-compose w/ caddy as a reverse proxy.

I think the origin of this is that roomdb cannot be found/not writeable in the current dockerfiles.
I have double checked and roomdb is writable but it seems it cannot be found, it's like the code expect it to be in a place it is not, since the .env clearly define the REPO, I'm still trying to get this working !

@HendrikPetertje Could you help these folks with Docker?

Hey, some thoughts to push this along...

I deployed a new go-ssb-room server from https://github.com/ssb-ngi-pointer/go-ssb-room/commit/e3cea25e25c9173f6a9c878ed71f81454556dbf0 using the docker-compose provided and put an nginx with let's encrypt infront of it.

Have you tried updating to the latest release / HEAD? We're running with traefik as proxy and not seeing these issues.

Question: Is the constraint that a user can only consume an invite once a bug, a feature, or user error?

As I understand it, invites are issued on a per-user basis. One invite, one user. There was a bug with rejecting users from being invited who had already been invited but that was hopefully fixed with https://github.com/ssb-ngi-pointer/go-ssb-room/commit/49aaff968f5d097323da228b2b12c03de90a2de4.


Stuff that needs to be finished before we can create a new pre-prepared dataset

Issues that probable need to be done before we can start training ML models "properly":

[ ] #390
[ ] #373
[x] #371
[x] #370
[x] #344
[ ] #313
[ ] #303 (and, in particular, we should include all GSPs with any PV)
[x] #410

And some issues that aren't absolutely essential but are pretty important:

[ ] #317
[ ] #325
[ ] #341
[ ] #272
[ ] #231
[ ] #227
[x] #156
[ ] #407
[ ] #411  (not strictly necessary at all because nowcasting_dataloader puts the dims in a standard order!)

I like this summary issues you do - nice to get a good overview of things

Thanks!  (Although I was also wondering if this list of issues actually be done using a github "milestone"... but really not sure what's best!)

Ive added - https://github.com/openclimatefix/nowcasting_dataset/issues/454 to this list

ive added https://github.com/openclimatefix/nowcasting_dataset/issues/483

I'd be tempted to say this is done?
This milestone of getting a 'prepared ML dataset' seems complete. There are a few nice to haves left over.

I agree!  Great work everyone!  Let's mark this as "closed" now.  Woo!


Some plugins don't handle truncated compressed buffers correctly

I've added a /bounds/decode/truncated test (b15170a1), several codecs fail:

[ ] fastlz
[x] lzjb
[x] quicklz
[ ] wflz and wflz-chunked
[x] xpress-huffman

I'm trying to build a conda[1] package[2] this awesome library but for 0.7 release I get a failure for BSC in OSX. See https://travis-ci.org/conda-forge/staged-recipes/builds/200927827#L1496
Is it expected to some plugins fail under some tests? I've seem ms-compress fail under threads tests too.
[1] https://conda.io/
[2] https://github.com/conda-forge/staged-recipes/pull/2348

We didn't have CI set up for OS X (or Windows, IIRC) until after 0.7 was released, so it's definitely possible there were bugs.  We have found, reported, and often fixed, a lot of bugs in various libraries.  I know that ms-compress and bsc have both fixed bugs we've reported, but honestly I'm not sure if that was before or after 0.7 was released (or both).
make test shouldn't fail.  If a test is failing and we want to ignore it we skip the test, which is what we do for the plugins mentioned in the first comment of this issue.
TBH I'm pretty focused on 0.8 right now (I still have a lot of stuff I want to do before releasing it, and it's long overdue), but we could probably put out a 0.7.1 release with many of the plugins updated and any other bug fixes you need.  I don't have an Apple machine, so any help here would be appreciated.
I've never heard of Conda before, but it sounds interesting…  I'm not sure how the packages work, but as long as someone is willing to help maintain it I'm willing to integrate packaging (and bindings) into the Squash repo so it's tested in our CI before it is pushed to master.

Hey @nemequ, thanks for your prompt response.
Conda is a multi-platform package manager that allows to manage multiple "virtual" environments with binary packages. Conda-Forge[1] is a community effort to provide additional packages to the conda ecosystem. It's similar to Homebrew, where you have recipes that specify how to build a particular package, but the distributions is in binary format.
Cool thing about Conda-Forge is that provide an integrated release and build management via GitHub and free CI services; Travis, Appveyor,  CircleCI, one for each platform OSX, Windows, Linux, respectively.
The conda recipe PR is here: https://github.com/conda-forge/staged-recipes/pull/2348
and I collected these patches: https://github.com/rolando-contrib/staged-recipes/tree/squash-recipe/recipes/squash/patches
which mainly address OSX compilation issues. But I'm a bit lost about how to fix the bsc/ms-compress segfaults, and I don't know what these failures imply for end-users usage.
For now @jakirkham (from conda-forge) has agreed that we can skip the tests selectively in order to have an OSX release.
If you see we can easily wrap up a 0.7.1 release, I'm happy to help you. Otherwise, we can wait for the 0.8 release. Nevertheless, after we get accepted the 0.7 conda recipe I plan to continue with a 0.8-dev recipe so we can already test the build on OSX and Linux.
PD: I started all of this because I wanted to play with different compression algorithms and squash provides a convenient abstraction API. I also plan to write CFFI-based Python bindings.
[1] https://conda-forge.github.io/

Cool thing about Conda-Forge is that provide an integrated release and build management via GitHub and free CI services; Travis, Appveyor, CircleCI, one for each platform OSX, Windows, Linux, respectively.

Can you build local packages, too, though?  My thinking is that if we build one for each Squash commit it could help avoid any surprises down the line.  That said, it's probably not a big deal… these days we have CI running for Linux and OS X (Travis) and Windows (AppVeyor), so 0.8+ should be much more reliable.

But I'm a bit lost about how to fix the bsc/ms-compress segfaults, and I don't know what these failures imply for end-users usage.

For a (possible) 0.7.1 release, my thinking is to just update all the submodules to pull in the latest version of each compression library.  A few libraries (like brotli) have made API changes which would make this harder, but we could either skip those or backport the changes in the Squash plugins.
Since we started using CI on OS X and Windows we've found a lot of bugs which have been fixed upstream, including in BSC and ms-compress.  We've also improved our tests which helped us nail down some sporadic failures, and ASan and UBSan have helped us find some more issues.  Basically, there is a good chance that simply pulling in the latest versions of some of the submodules will fix the segfaults.

If you see we can easily wrap up a 0.7.1 release, I'm happy to help you. Otherwise, we can wait for the 0.8 release. Nevertheless, after we get accepted the 0.7 conda recipe I plan to continue with a 0.8-dev recipe so we can already test the build on OSX and Linux.

Honestly, I'm not sure how easy a decent 0.7.1 release would be.  Updating a few submodules isn't a big deal, but there were changes in Squash, too…
One thing to keep in mind is that 0.8 is an API break.  I don't know how Conda handles that, but for Linux distros the preferred solution would be to have squash-0.7 and squash-0.8 be separate packages.  Once 1.0 is out the API will be stable until 2.0, but I'm trying to get all the breaks done with 0.8 and hopefully 0.9 and 1.0 will not need any.

PD: I started all of this because I wanted to play with different compression algorithms and squash provides a convenient abstraction API. I also plan to write CFFI-based Python bindings.

Nice!  If you do create Python bindings I'd definitely like to integrate them into the main repo so we can integrate them with CI to make sure I don't break anything.

Can you build local packages, too, though? My thinking is that if we build one for each Squash commit it could help avoid any surprises down the line. That said, it's probably not a big deal… these days we have CI running for Linux and OS X (Travis) and Windows (AppVeyor), so 0.8+ should be much more reliable.

At conda-forge, our goal is to help make proper (tagged) releases available to users. However, we don't aim to supplant good development practices in the primary code base itself (e.g. using CIs). Hope that makes sense.

Can you build local packages, too, though?

Yes. You can build your own packages and host it yourself or in anaconda.org. Conda-forge is set up for official releases, though.

Honestly, I'm not sure how easy a decent 0.7.1 release would be. Updating a few submodules isn't a big deal, but there were changes in Squash, too…

I think we can wait for users' demand. If there are conda users that have issues with the 0.7.0 release then we can think of a 0.7.1 release.
Conda itself doesn't do anything to avoid API break. If two releases for the same package share the same paths, then you can create two conda environments, one for each. But if the releases use proper versioning then it will work just fine in conda. For instance, squash headers are installed under PREFIX/include/squash-0.7 and the library as PREFIX/lib/libsquash0.7.dylib.
Also pkg-config returns the correct values:
$ pkg-config --cflags squash-0.7
-I/Users/rolando/miniconda3/envs/myenv/include/squash-0.7
$ pkg-config --libs squash-0.7
-L/Users/rolando/miniconda3/envs/myenv/lib -lsquash0.7

Regarding the Python binding, my plan is to build squash statically and vendor the library in the python package. In that way won't have to worry about installing the correct squash version (regardless they use conda or not).
Sorry for hijacking this issue!

Multiple versions of the library are parallel-installable, though the squash executable isn't…

Regarding the Python binding, my plan is to build squash statically and vendor the library in the python package. In that way won't have to worry about installing the correct squash version (regardless they use conda or not).

You may be able to get a static version of libsquash built, but it may not do much good.  You can't roll the plugins into libsquash, so you still need to make sure the right version of Squash is installed if you want to actually do anything with libsquash.  Even if it were technically possible (it would require some changes), there are licensing issues which pretty much preclude it.
Static plugins would mess up the ability to add additional plugins… there are already a couple plugins in the squash-plugins-extra repo, and hopefully in the future third parties will be able to distribute plugins (especially important for proprietary libraries).

Sorry for hijacking this issue!

No worries, I'm just happy to be making progress on this :).  We should probably move future Python talk to #34, though.

FWIW we also support dev releases at conda-forge. So that is something we can explore. Just every commit is not practical in that context. Another thing you could try if building every commit is something you want to do is to setup your own feedstock here using conda-smithy and configure it to upload to your own channel. This could be loosely based off the feedstock in conda-forge.

I wasn't trying to suggest that we upload a package for every commit, merely that we build one.  Basically, using CI to verify that we don't accidentally break the packaging…
However, if the main concern is just about being able to build squash on those platforms as opposed to being able to build the squash conda package, I'm not as concerned since we have a pretty good CI system setup now, including for platforms I don't use.

Ah ok. Yeah, conda-build scripts are thin wrappers over whatever build is occurring underneath the hood (e.g. make, nmake, cmake, etc.) with some post-build tests. As it sounds like you have CIs for the 3 platforms we support, I agree that we should be ok.
Though if you do want to starting get dev releases out for user to try, we are happy to collaborate with you at conda-forge to make that happen.


Refactor (css): Use a non-fixed app background

Addresses #75
Previously, background-attachment:fixed renders the background based on the viewport's width and height. The background is fixed while scrolling. However, this causes rendering issues especially on mobile browsers where there might be flashes of unstyled backgrounds at the bottom of the viewport.
This MR removes background-attachment: fixed, and uses a regular background. The background moves while scrolling.
However, on mobile safari, at page init while

Closing because not implementing this workaround. refer to #75 OP.


Implementing other Unity Wii Sports remakes?

https://github.com/TomSchoolar/Wii-Bowling-Unity-
https://github.com/TheDevAtlas/Wii-Are-Resorting-To-Violence
https://github.com/kyleshepard/wii_bowling_2
these 3 are interesting

https://archive.org/details/wuhu-island-explorer/u8GLcM.png found this too, quite interesting

what r you gonna do @fgsoftware1 ?

what r you gonna do @fgsoftware1 ?

I'm not having much time, but, I was trying make the whuhu island, but the model we got is kinda simple though and I don't know what to do there

@CCIGAMES you tried my bowling thing?

Yes, and it's ok, however I've just found someone's remake of Wii Bowling which is fully developed, also we are moving to the use of the Wii Sports decomp for the project, so the user has to supply a rom and Nintendo can't take us down, also my discord account is permanently disabled so github is my only way to talk to you

Yes, and it's good, however I've just found someone's remake of Wii Bowling which is fully developed, also we are moving to the use of the Wii Sports decomp for the project, so the user has to supply a rom and Nintendo can't take us down, also my discord account is permanently disabled so github is my only way to talk to you

so you're planning making an emulator? in which language? ROMs ARE ILEGAL!

Yes, and it's good, however I've just found someone's remake of Wii Bowling which is fully developed, also we are moving to the use of the Wii Sports decomp for the project, so the user has to supply a rom and Nintendo can't take us down, also my discord account is permanently disabled so github is my only way to talk to you

so you're planning making an emulator? in which language? ROMs ARE ILEGAL!

not an emulator, it uses the C and Assembly decomp of Wii Sports as well as several C# unity remakes of the game and C++ from the Dolphin emulator and parts of other Wii Sports games like Wii Sports Resort etc. Roms arent illegal, as long as the user owns the game.

Yes, and it's good, however I've just found someone's remake of Wii Bowling which is fully developed, also we are moving to the use of the Wii Sports decomp for the project, so the user has to supply a rom and Nintendo can't take us down, also my discord account is permanently disabled so github is my only way to talk to you

so you're planning making an emulator? in which language? ROMs ARE ILEGAL!

not an emulator, it uses the C and Assembly decomp of Wii Sports as well as several C# unity remakes of the game and C++ from the Dolphin emulator and parts of other Wii Sports games like Wii Sports Resort etc. Roms arent illegal, as long as the user owns the game.

Game ROMs are literally reverse engineering which is prohibited by law, and how you're to mix up c++ with c#? It doesn't work like that, but you can use an IL like C++/CLI even though you'll need to rewrite all the c++ code you need to expose to c#

Yes, and it's good, however I've just found someone's remake of Wii Bowling which is fully developed, also we are moving to the use of the Wii Sports decomp for the project, so the user has to supply a rom and Nintendo can't take us down, also my discord account is permanently disabled so github is my only way to talk to you

so you're planning making an emulator? in which language? ROMs ARE ILEGAL!

not an emulator, it uses the C and Assembly decomp of Wii Sports as well as several C# unity remakes of the game and C++ from the Dolphin emulator and parts of other Wii Sports games like Wii Sports Resort etc. Roms arent illegal, as long as the user owns the game.

Game ROMs are literally reverse engineering which is prohibited by law, and how you're to mix up c++ with c#? It doesn't work like that, but you can use an IL like C++/CLI even though you'll need to rewrite all the c++ code you need to expose to c#

Reverse Engineering and emulation is legal, dumping your own rom is fine, pirating roms isnt.
C++ is only for a minority of the stuff, so dont worry.
@OneProblemAtATime and I have talked through this before

@fgsoftware1 what are you doing with project next?

@fgsoftware1 what are you doing with project next?

i'm kinda trying make multiplayer but i'm not having much time

are you making code from scratch?

@fgsoftware1 what are you doing with project next?

i'm kinda trying make multiplayer but i'm not having much time

are you making code from scratch?

i'm gonna use netcode for gameobjects(the new mulriplayer unity API)

@fgsoftware1 what are you doing with project next?

i'm kinda trying make multiplayer but i'm not having much time

are you making code from scratch?

i'm gonna use netcode for gameobjects(the new mulriplayer unity API)

Make sure you start implementing the Wii Sports Decomp into the project


Best way to use in iOS project?

Hey thanks so much for open-sourcing this library, it looks awesome. I follow the kickstarter project and was pleased to see that this feels like a nice iteration on many of the ideas you introduced there. After watching your latest episode and checking out Overture, I am interested in trying to integrate some of the operators and functions in this project into my project. I am under the impression that I cannot yet use swift package manager with iOS code*, which I see is the recommended approach in your readme.
I have tried adding the entire project as a git submodule, but that fails due to the duplicate file names.
I also went down the path of forking and changing the filenames, but I realized there are a couple of points where you call Prelude.map or something to that effect and realized I was probably going down a rabbit hole that I didn't want to continue down.
I see a couple points in the code where you are checking for the iOS platform and including specific code, so I believe you're aiming to support that. I would really appreciate it if you can point me down the correct path so I can give some of these operators a whirl.
Thanks again for the awesome library and videos!
* According to some reports on the web, I may be wrong on this. Even the articles that claim to show a workaround say it's quite a challenge though. If this is still the best approach for iOS, that's totally acceptable to me!

Hey @eliotfowler! Thanks for your interest in Prelude! It's very experimental still, which is why we haven't given it much of a story for installation yet (compared to Overture). If you're still interested in giving the current API a go (which may change a lot in the future, though probably not in the near future), filenames only need to be the same in a given module, so one solution (for now) would be to submodule the project, cd into it, and run swift package generate-xcodeproj. This'll generate a project file that you can drag into your iOS project. Then you just need to embed the library in your binary as you would with any framework.

Haha I was thinking the exact same thing a couple days ago. SPM on ios workaround looks a pain, embedding project looks better but ultimately I decided to not do it an keep fingers crossed for some kind of spm ios announcement on wwdc :D
Btw @eliotfowler I went down the rabbit hole some time ago when I imported the source code for the Swift 4.0 version of this library into a Swift 4.1 playground. The rabbit hole is about 1-1.5h deep ;)

Sorry I gave you half the info. I used it in Swift Playgrounds for ipad so I had to copy the source files and change Prelude. to NameOfPlayground_Framework. etc etc, plus I had clashes with other libraries. An inteteresting note to take from this is that when you have two files of the same name in different subfolders of a playground’s Sources directory, xcode gives an “invalid developer path” error.
Also I should add: 1h deep but worth every second :)

Oh interesting! We've been wanting to play around with iPad playgrounds but haven't yet. Will keep that in mind 😅

@stephencelis Awesome, thanks for the explanation! It makes total sense to me not to spend time writing docs on integration when the API is still experimental. I just got excited after poking through the pointfree code and watching the videos and figured I'd give it a go.
Thanks again for all the hard work! I look forward to following along and maybe even contributing in the future.


Add workers smart-contract

https://github.com/denis4net/golos.woker

Currently placed to https://github.com/GolosChain/golos.worker, will be integrated with others later


[cherry-pick][network] fix memory leak, remove stream-ratelimiter from network

Justification
This small cherrypicked diff removes stream-ratelimiter from network, which contained a memory leak. Every time a peer connected, sent at least one message, and then disconnected, we would leak a tokio::sync::Semaphore. We will be introducing a more robust token-bucket filter in the near future to replace stream-ratelimiter; for now, the stream-ratelimiter is causing more problems than it fixes.
Why Necessary for V1 Launch
The memory leak will eventually cause a node (validator, VFN, PFN) to OOM after too many peers connect, send at least one message, and then disconnect.

/land


[Bug]: module 'towhee' has no attribute 'runtime'

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
环境：MacOS、python3.6、towhee=1.1.1
执行以下代码：
from towhee import pipeline

embedding_pipeline = pipeline('towhee/audio-embedding-vggish')
outs = embedding_pipeline(wav_path)
embeds = outs[0][0]

得到报错：
AttributeError                            Traceback (most recent call last)
<ipython-input-1-74c48a15fbd4> in <module>
----> 1 from towhee import pipeline
      2
      3
      4 embedding_pipeline = pipeline('towhee/audio-embedding-vggish')
      5 outs = embedding_pipeline(wav_path)

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/towhee/__init__.py in <module>
     18 import sys
     19
---> 20 from towhee.runtime import register, pipe, ops, accelerate, AutoConfig, AutoPipes
     21 from towhee.serve.triton import triton_client
     22 from towhee.utils.lazy_import import LazyImport

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/towhee/runtime/__init__.py in <module>
     16 from .factory import ops, register
     17 from .pipeline import Pipeline as pipe
---> 18 from .auto_pipes import AutoPipes
     19 from .auto_config import AutoConfig
     20

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/towhee/runtime/auto_pipes.py in <module>
     20
     21
---> 22 import towhee.runtime.pipeline_loader as pipe_loader
     23 from towhee.utils.log import engine_log
     24

AttributeError: module 'towhee' has no attribute 'runtime'

Expected Behavior
No response
Steps To Reproduce
No response
Environment
- Towhee version(e.g. v0.1.3 or 8b23a93):
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?
No response

The versions after 1.0 have rewritten the relevant interfaces. The latest usage of the audio pipeline： https://towhee.io/towhee/audio-embedding

The versions after 1.0 have rewritten the relevant interfaces. The latest usage of the audio pipeline： https://towhee.io/towhee/audio-embedding

The versions after 1.0 have rewritten the relevant interfaces. The latest usage of the audio pipeline： https://towhee.io/towhee/audio-embedding

最新的用法还是存在问题

It is possible that some third-party libraries that Towhee depends on no longer support Python 3.6. Try using Python 3.7 or newer versions. It works OK in Python 3.7.


[Request] Adding type hints

Type prediction is not working properly when writing code in VScode etc.
ex) (method) def connect_user(username: Any) -> (PartialProject | Any)
I'd like to see type hints added to many functions.
thank you. (Google Translate)

closing this since it is the same as #259


conf.d file handling

This line seems problematic:
https://github.com/kidonng/fisher_path.fish/blob/fc6037737cf155165ba754bdbc981aab4a302fe9/conf.d/fisher_path.fish#L12
Essentially, if you have a file in your ~/.config/fish/conf.d that happens to have the same name as a file in a plugin's conf.d, the plugin's file is skipped in favor of yours. This kind of logic makes sense for functions where you want to override the function in your own config, but if you want to override some conf.d settings for a plugin you likely wouldn't want to do it this way.
It seems much more likely that you'll wind up with an unintentionally broken plugin because of an accidental name collision.
Imagine using the Hydro prompt and you have the following scenario:

Plugin file: https://github.com/jorgebucaran/hydro/blob/main/conf.d/hydro.fish
Your conf.d/hydro.fish

if test "$hydro_prompt_initialized" != true
    set -g hydro_prompt_initialized true
    set -g hydro_symbol_prompt "»"
    set -g hydro_symbol_git_dirty "*"
    set -g hydro_symbol_git_ahead "⇡"
    set -g hydro_symbol_git_behind "⇣"

    set -g hydro_color_git green
    set -g hydro_color_prompt cyan
    set -g hydro_color_pwd blue
    set -g hydro_color_error red
    set -g hydro_multiline true
end

It would be really confusing why your Hydro file stopped the Hydro plugin from working.

Essentially, if you have a file in your ~/.config/fish/conf.d that happens to have the same name as a file in a plugin's conf.d, the plugin's file is skipped in favor of yours.

Right, that's how fish's configuration files works.

This kind of logic makes sense for functions where you want to override the function in your own config, but if you want to override some conf.d settings for a plugin you likely wouldn't want to do it this way.

The files in ~/.config/fish should always have the highest priority. It would only be more confusing if some of them are respected but some aren't.

It seems much more likely that you'll wind up with an unintentionally broken plugin because of an accidental name collision.

That's valid though, because not many people are aware of this behavior. I will make it clear in the README.

Imagine using the Hydro prompt and you have the following scenario:

Plugin file: https://github.com/jorgebucaran/hydro/blob/main/conf.d/hydro.fish
Your conf.d/hydro.fish
It would be really confusing why your Hydro file stopped the Hydro plugin from working.

Here's my two cents: unlike functionsand completions, you really should not put your config in conf.d, because of order issues you may encounter. Just use config.fish for your own config. You can still use separate files if you want, source them in config.fish and you are good to go, theoretically it is even faster than putting them in conf.d.
And conf.d should only be used for "masking", or overriding the entire conf.d script loaded elsewhere. For example, the way I installed fzf comes with its vendored fish key bindings, via a conf.d script. I prefer fzf.fish over it, so I just create a symlink to /dev/null with the name of the script, and put it into conf.d, mission accomplished.
Remember that this is the only way to ensure you are in control, not the plugins.


include fullCalendar

Description
fullcalendar isn't included
Motivation and context
the fullcalendar isn't displayed on sprint 'calendar mode'
How has this been tested?
On my local machine
Screenshots (if appropriate)
Before

Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:
Go over all the following points, and put an x in all the boxes that apply.
Please, please, please, don't send your pull request until all of the boxes are ticked. Once your pull request is created, it will trigger a build on our continuous integration server to make sure your tests and code style pass.

[x] I have read the CONTRIBUTING document.
[x] My pull request addresses exactly one patch/feature.
[ ] I have created a branch for this patch/feature.
[x] Each individual commit in the pull request is meaningful.
[ ] I have added tests to cover my changes.
[x] If my change requires a change to the documentation, I have updated it accordingly.

If you're unsure about any of these, don't hesitate to ask. We're here to help!

@unabomber87 great!!!!


Revert "Remark command"

Reverts CS2103AUG2017-W09-B1/main#50

@April0616 thanks. much apologies.


Only write to the process input pipe after the process has started

Fixes an issue where sk-stress-tester would block waiting to write the
given data to the input pipe.

@swift-ci please test


Support for detailed table of content on right sidebar by including h3 tag as heading

Support for detailed table of content on right sidebar by including h3 tag as heading

Hey ! I'd like to resolve this issue !
Can you show some more light on what exactly is to be done ?

Hi Shubham,
Currently, in any of our docs, the table of content is auto-generated till h2, we need to show the heading of h3 as well in the auto-generated table of content.
In this doc, the right side table is showing till API Details, we need to show Authentication API as well.
I hope you got the issue now.

Alright @mohammed786 , I'd like to resolve this issue in the HacktoberFest if you're okay with it !

Sure @ShubhamPalriwala, this issue is assigned to you.
And LoginRadius is also giving swags to people who will be contributing, so please make sure to read our blog and submit your info to get free goodies.
https://www.loginradius.com/engineering/page/hacktoberfest2020

Hello, @mohammed786 Is there any current issue that I can work on? Would love to contribute to LoginRadius.

Hi @mohammed786 any new issue that I can work on?

@aman-agrwl @mohammed786 I see this is not being worked upon till now. So, I am taking it up.


some items in wersing-maritiang are missing

probably first 16 items, from 'sky' to 'drizzle'

I checked  and re-transcribed the  Wersing word list and sent this to Jiang. This one list replaces the other one(s) (there were apparently two lists floating around).

I believe this has been fixed.


Add phpdock

Thanks for the PR! I completely missed adding PHPDocs. Merged and tagged as v1.1.3 (with a few fixes).


Error making GL context

I'm testing but i have this error:  Error making GL context. Appears in the emulator and the Android Phone

sceneform 1.4.0 does not run in emulator OpenGL ES 3.0 :(


All parameters are always nullable

Sorry if this is already answered in your documentation somewhere, but I could not find it.
I noticed that the parameters to the generated chopper methods are always nullable.
  Future<chopper.Response<Genre>> GetGenreById({
    required String? id,
    String? someOtherProp,
    required String? someRequiredProp,
  }) {

And looking at the code, I see an unconditional call to makeNullable()
https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/blob/9533c64536a018f5da9217ea838fbc43a5e83a8b/lib/src/code_generators/swagger_requests_generator.dart#L796
I was quite confused by this. Shouldn't we use the value of the nullable property from the OpenApi spec to determine this?
https://swagger.io/docs/specification/describing-parameters/#nullable

Also experiencing the same behaviour.

Any clarifications on this? Is this something wanted or simply a bug?

Hi all! I think it's a bug. Will try to fix it soon!

Hi @AngeloAvv  @msuddaby !
Current behavior is next. Property is nullable if it has nullable: true or it absent in 'required' list.
For example:
1st case. Name will be not nullable
"Pet": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "example": "doggie"
        },
}

2nd case. Name will be nullable
"Pet": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "example": "doggie"
        },
}

3rd case. Name will be required and nullable
"Pet": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "example": "doggie",
          "required": true,
        },
}

So, it's expected behavior. That's how it meant to be.

2nd case. Name will be nullable

@Vovanella95 is it possible to configure generator somehow so that it doesn't check "required" list? My swagger files only use nullable: true when needed and I don't have control over them. So I also have non-nullable properties nullable in generated code.

I have wrote a script which iterate over json schemas in spec and appends all "required" fields to "required" list.
It rewrites json spec in place so use vcs.
https://github.com/nmtitov/rewrite-epam-swagger
Also I think this behaviour is an error. Required in spec means that properties should always exist in the output. It doesn't mean that such properties are nullable or not.
Reference:
https://stackoverflow.com/a/45577763
In other words, required means "property must be present", regardless of its value. The type, format, etc. of the property value are separate constraints that are evaluated separately from required, but together as a combined schema.

/cc @Vovanella95


don't start language server if codeium is disabled

Currently codeium langue server is always started even when vim.g.codeium_enabled is set to false
This pr changes that to make it not start if its codeium is disabled, and it will start automatically once the user uses CodeiumEnable
The reason for this for me personally 1) I prefer to disable codeium by default and only enabled for specific projects 2) there is a significant nvim startup time hit from starting the server
I don't know vimscript that much (I used codeium for help xD)  so help is appreciated to improve the code if the pr is accepted

I did some more testing I add echo this let start_time = reltime() at the start of plugin/codeium.vim and the same at the end, and tested with and without this pr, and I drop the io caches before each test
The gain with this PR varies from 20ms to 200ms in repeated tests, It felt faster subjectively for me, but that might be just an impression since the numbers are not that big
So its probably not worth it

Though I do like not starting the server when I'm not using codeium even if its not for performance gain,  also in a related note I prefer that augroup doesn't get set unless I start codeium https://github.com/Exafunction/codeium.vim/blob/64f3644f2a2f07511c52703130afeabea9e1f59e/plugin/codeium.vim#L27 and gets removed when I disable it
what do you guys think ?

Another argument for this, is that I open many nvim instances, and each instance starts a language server that I'm not using it , it becomes a waste of ram (100mb per server)

I tested it more, and I think this the correct way , especially when I have no other plugin in neovim that I know of that starts another process automatically at startup, you can tell with strace -f -e execve nvim

I'm comfortable merging this once we iron out any bugs.

Cool, thanks


Added the Introduction Component on the Home page

Hey @shravani05, thank you for creating this pull request! Have a wonderful day...

Thank you!


TASK-1149 Separate indexing code from search code

TODO:

[ ] Add startup command to CLI
[ ] Add clean dbs command to CLI

@arfathpasha you might want to keep an eye on this PR, substantial restructuring going on


fitBounds.filter is not a function

I'm using the LngLatBounds class for the fitBounds, but it seems like in the componentWillReceiveProps from the map.jsx file doesn't support that type of object.
https://github.com/alex3165/react-mapbox-gl/blob/98adcdea6a799958bc1316b4bbe95ce4194e8842/src/map.tsx#L310
This is the actual part of my code:
const newBounds = coordinates.reduce(
  (bounds, coord) => bounds.extend(coord),
  new this.MapboxGl.LngLatBounds(coordinates[0], coordinates[0])
);

This is the result:
{
  _sw: {
    lng: -73.9600489,
    lat: 40.7647187
  },
  _ne: {
    lng: -74.00836319999996,
    lat: 40.6832996
  }
}

So if the actual fitBounds isn't an Array, it breaks showing the following error:
TypeError: fitBounds.filter is not a function at ReactMapboxGl.ReactMapboxFactory.ReactMapboxGl.componentWillReceiveProps

I just saw this export type FitBounds = number[][]; but surprisingly the fitBounds also works with a LngLatBounds  object 🤔

Hey, @luisvillara Yes react-mapbox-gl doesn't support MapboxGl.LngLatBounds yet, this is more a feature as in the documentation it is mentioned that fitbounds should be of type number[][].


[stable/spring-cloud-data-flow] Added an option for spring-cloud-data-flow to use existing ConfigMap

What this PR does / why we need it:
-- Added custom cm options for scdf
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @chrisjs

Hi there, anything you'd like me to change for this PR to be accepted?

its been 16hrs since submitted... it being reviewed..

Sorry for being impatient, please take your time.

After making the changes per review, I have tested the Chart deployment on the local machine and it is working per design.

thanks, tested and looks good. will approve/merge
/ok-to-test
/lgtm


Showing transitive dependencies

Hello,
Is there any way with Dependency Check (or in its roadmap) to show the transitivity of dependencies in a clear way? For example, something similar to:
https://imgur.com/a/oOyf0wp
Or similar to the output of 'mvn dependency:tree' for Maven and 'npm list' for NPM.
Thanks!.

No and none is planned. In reports there are the project modules that have it as a (direct or transitive) dependency. From there on you need to use your project dependency management features to deep-dive for the transitive dependencies.
e.g.


Azure DevOps instead of VSTS

Will be nice to update this diagram to follow latest branding https://docs.microsoft.com/en-us/azure/architecture/example-scenario/apps/media/architecture-devops-dotnet-webapp.png
Azure DevOps instead of VSTS

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b8865190-b9ac-ae5e-2590-30237ed43697
Version Independent ID: 45d8bb8c-10f1-de72-6644-a20ba60a32af
Content: CI/CD pipeline with Azure DevOps
Content Source: docs/example-scenario/apps/devops-dotnet-webapp.md
Service: guidance
GitHub Login: @christianreddington
Microsoft Alias: pnp

This has been fixed.


Synthstrip runs out of memory

Dear Dr.Oscar Esteban
We are getting an error using the code "docker run -it --rm -v /mnt/g/MRIQC/test/BIDS:/data:ro -v /mnt/g/MRIQC/test/results:/out nipreps/mriqc:latest /data /out participant --participant_label 068 --no-sub"
Any advice on where this error (below) is coming from and possible workarounds?
crash-20220704-085239-root-synthstrip.a0-614528bb-8bee-4207-bc2d-e6e7d7fe3bcd.txt

I am facing the problem that synthstrip sometimes still fails and returns code 137, even after allocating 24Gb to the docker container and running only one subject at a time. What puzzle me most is that increasing the allocated memory does not seem to reliably avoid the failure of Synthstrip. Some subject were able to run with only 4Gb, but some still fails with 24Gb. It feels like Synthstrip gets hungry for all the memory we allocate to it.
Here is the code I use to run MRIQC :
    sub_list=(sub-009673 sub-010769 sub-012059 sub-012322 sub-016504 sub-067018 sub-089207 sub-105822 sub-107738)
    bs=1 #batch size
    for ((i=0; i<=${#sub_list[@]}; i+=bs)); do
         #launch mriqc on batches of subjects
         batch=${sub_list[@]:$i:1}
         echo ${batch[@]}
         docker run -u $( id -u ) -it --memory="24g" --rm -v $HOME/datasets/MR-ART/:/data:ro -v $HOME/derivatives/mriqc/v22.0.6/MR-ART/:/out -v $HOME/tmp/mriqc/v22.0.6/MR-ART/:/work nipreps/mriqc:22.0.6 /data /out --ica --verbose-report participant --participant-label ${batch[@]} -w /work -vv
    done

Hi @ahoopes, do you have any reports of Pytorch overeagerly allocating memory on your end?
Should we update the encapsulated version with some new models you have developed? Or else, any tips on how to limit the memory SynthStrip can allocate (with CPUs)?

Okay, I've dug a bit more into this, and I have two non-exclusive explanations:

The OMP_NTHREADS bug/problem with numpy is hitting and PyTorch is using all available CPUs. This could easily be checked by using pytorch's API and set_threads.
Relatedly, Python is not releasing memory properly and it seems to replace linux's default malloc helps: https://discuss.pytorch.org/t/memory-leaks-at-inference/85108/14 (and with celery: https://zapier.com/engineering/celery-python-jemalloc/)

cc/ @esavary, @celprov, @effigies, @mgxd.

Tagging into this as I'm running into the same issue and want to keep track of progress on this.

Reusing work from @esavary, I have profiled MRIQC in several settings. All the reported runs is on one dataset with one subject and 4 sessions with a T1w image each.
Command line run:
mriqc /data/datasets/hcph-pilot/ /data/derivatives/hcph-pilot/mriqc participant -m T1w -vv -w ./work --omp-nthreads 12 --nprocs 36

Vanilla MRIQC:

Using jemalloc:

I'm convinced psutils is getting double the amount of memory for some reason I haven't quickly found googling.

Using mimalloc:

Seemingly no gains.

Forcing malloc_trim at points and when spinning up new workers (i.e., for every nipype-task):

This is done following https://www.softwareatscale.dev/p/run-python-servers-more-efficiently, basically adding
import ctypes
# ... code
ctypes.CDLL("libc.so.6").malloc_trim(0)

I have the impression that memory builds up slightly less, but nowhere close to addressing this problem.

cc/ @effigies @esavary @mgxd

Also tagging in, since for me even with nprocs=48; omp-nthreads=16 and 200Gb of memory some runs exit with error 137. Also in case you have not seen this Issue: https://github.com/freesurfer/freesurfer/issues/1032

@esavary could you please summarize what you have found here ?

Hi,
I think the problem happens during the inference with the model. During inference, only the feature map of the previous layer is necessary for the computation. So I expect that Pytorch only stores one feature map at a time. The dimension of the feature maps generated by the first and last convolutional layers of the model can be very large.
For example, with valid padding and a stride of 1, the first layer will generate a feature map of 256x256x192x32=~6GB  for a (256x256x192) image and float32 precision.
If we run multiple instances of SynthStrip simultaneously, we can easily exceed the memory limits of docker containers. Maybe an option could be allowing the users only to run one participant at a time?

As we talked two IT monitoring meetings ago, I have been looking into running "massive" MRIQC processes with all subjects together and let nipype handle the memory. It seems that the memory fingerprint of the parent process doesn't go crazy with ~200 subjects (1 GB the parent process, plus around 1GB per worker in total, which is close to single-subject runs). That's great news.
The only problem I have encountered is the way nipype resolves the node dependency matrix. One "get_metadata" node per subject block the main thread (and very similarly for small processes run in workers) make the computation go really slow. I'm wondering whether this would not be a problem for pydra (@satra, @djarecka).
Before the pydra migration is finished, it may be a good exploration to try to make a "smarter" multiproc that can identify disjoint compute subgraphs (in the case of mriqc, there are no connections between subjects) and establish a thread pool for a number of them (obviously you don't want to saturate the number of threads). These threads could then submit jobs to the main process pool and its workers, creating an extra layer of perceived embarrassingly parallel execution.
Opinions? @effigies @mgxd

Where is the get_metadata? I don't see it in the workflow, so I'm not following the issue here.

Apologies, I'm referring to https://github.com/nipreps/mriqc/blob/master/mriqc/workflows/anatomical.py#L384

I see. If that's a bottleneck, I would probably just reimplement it without pybids rather than rearchitect nipype.

Hello, it seems i am suffering from this error as well. I am using the latest Docker image. Its release date (Mar 28) seems one day before the merge of the commit fixing this issue (Mar 29) (as we investigated with @celprov ).
However it is strange as the amount of RAM used (according to htop) does not seem to reach half of the toal amount before my OS window manager crashes (causing a reset to log screen).
We have two workstations experience the same issue (crash to log screen). Not sure how to make sure this is indeed due to this specific issue.


FR: Docker perment storage

Is your feature request related to a problem? Please describe.
Please update your docker files to also include the ability to set up a storage location. That way I can manually update the setup files as needed.
Describe the solution you'd like
normal docker commanders for container path
Describe alternatives you've considered
No response
Additional context
No response

Thanks for your suggestions, @SurvivaLlama!
What are the setup files you mentioned?
Could you point me to an example, so I can get more insights on this?
HuggingFace spaces (where the live instance runs) has some Docker restrictions, so it would need to be an opt-in feature, so it doesn't break the image deployed there. Do you think it's possible?

Better question for you - Does the container rely on any volumes? If yes what are they so I can make them persistent?

Ah, got it! It doesn't rely on any volumes; it doesn't store anything.
The search results, for example, are fetched in real-time from a SearXNG instance running in the container, processed in memory, returned to the client, and then discarded.

Cool. If no volumes are needed. Lets close this.

Reopened - I was asking about this volume: /home/user/app/. does it need to be persistent?

It doesn't.
It wouldn't help to make it persistent, as everything inside /home/user/app/ is just a copy of the repository files.
And when you run docker compose -f docker-compose.production.yml up --build, it will be compiled and run by Vite. (Vite compiles the client folder and runs an http-server with the files from the server).
But since a change in any of the /app files will trigger a new rebuild, it's safer to avoid storing the files to prevent file conflicts.
It's worth emphasizing that the root reason for the Dockerfile and the build process being like that is due to the Docker limitations of Hugging Face Spaces, where the public instance runs.
I don't know if it's a good answer for why /home/user/app/ is not inside a volume, but I understand that you're looking to optimize something in your pipeline.
Could you tell me if you're using docker run -p 7860:7860 ghcr.io/felladrin/minisearch:main or docker compose -f docker-compose.production.yml up --build to run it on your side?
And your concern is that it's taking time to run?
Or is it due to the frequency of this repository being updated, and it takes time to update to the new image?

Nothing like what you are asking. Its for my unRaid machine. Just looking to make sure I have the container set up correctly. If nothing needs to be persistent, then Ill keep it as is. Thanks!


Extract includes from default.html

This extracts parts of default.html into includes along the same structure as minima.  I contribute to a project that uses GitHub pages and this theme, and now it to add more content than a single page.  This was done as a first step towards adding support in the theme for more layout types.
Aside from white space differences and moving the Googe Analytics to a more traditional place in head this makes a point not to change the generated output.

@vossad01 Thanks for the pull request. I'd love to learn more about what problems you're trying to solve here. Specifically, two questions:

What's the value of moving the GA tracking code to an include?
What's the value of breaking the header and footer into includes?

Because Slate is available in the theme chooser we need to balance those goals against the added complexity of a site intended to be a starting point for novice users.

Thanks for taking a look.  Slate only provides a default layout which becomes restrictive when a site wants to grow beyond a single page. This is the problem I will hope to address.  I really wasn't sure how this would fit with this project's philosophy since right now it appears the only theme available on GitHub Pages that provides more than one layout is minima.
Instead of making the design decisions myself, it seemed more consistent, and thus simpler for users, to follow the same conventions as minima (since it is the default Jekyll theme).  I have made an effort below to rationalize them below, but the fact that it was how minima did it was the primary guide.

What's the value of moving the GA tracking code to an include?

This provides for a more consistent level of abstraction in head.html.  Readers can easily understand there is google analytics code provided by the include, without needing to see the inline script and minified code.

What's the value of breaking the header and footer into includes?

I anticipate that the header takes more vertical space than will be desired on some page types, thus it may be desirable to have a layout that includes the footer, but includes a different header.
Applicable to both questions is that includes allow for customization of aspects of a theme without requiring a user to become responsible for maintenance and update of all aspects of the theme.  Thus a custom head.html implementation could still reference the google-analytics.html include provided by the theme and receive any updates or changes to that code.

I wasn't sure if I would ultimately get any traction with this, so I went a different direction: https://github.com/vossad01/jekyll-minima-flavor-slate


docs: update documentation

Thanks!

Let me know if you want me to do the actual release of this (including the Phar build). 👍🏻

Yup, go ahead 👍


Fix #3382 - Moves sensitive data logging option to core.

The new API is DbContextOptionsBuilder.EnableSensitiveDataLogging.

:shipit:


Local images takes time to load, and load separately

Description
Local images takes forever to load, and they loads separately. I believe that caused when loading external image from the web.
Additional Information

React Native version: RN 0.40
Platform: iOS 10.2.1
Operating System: MacOS

You tried it in production or just the debug version. Its because, it will be loaded from your react-native packager. It won't be packaged along with your app. Try to create a bundled build and test image loading in it.

@ashik94vc yes, exactly that was the issue!! thanks :)

@ashik94vc Brilliant! I edited the scheme on iOS project to release instead of debug and it worked perfectly. Thank you


Database abstraction layer (mysql implementation)

Includes #456
Based on #381

The mysql implementation will return a dict cursor instead of a tuple cursor. Might want to standardize that

@rudehn 👍 see  https://github.com/chaosbot/Chaos/pull/456/commits/a1038b94686b04199f1b62eed193e44c292350be

@PlasmaPower I'd prefer sqlite for now, because it's much faster and more portable for simply storing some simple state records.
@md678685 With MySQL you'll also have to wait for locks; the operations are just running in another process.
And with MySQL we'll get another server to monitor and another dependency to manage (plus a whole bunch of memory goes to waste).

@hongaar How would you recommend I approach creating the table? I could do it with the sqlite CLI and the migrations tool.

@PlasmaPower Just a heads up, but I'm going to start working on integrating peewee so we can abstract out the db type from our queries. Peewee supports both mysql and sqlite.
If you'd like to take a look into it, you're more than welcome. I think having an ORM would be useful.

@rudehn Okay, I might wait for that. Will you be introducing a migration strategy? It looks like that has functions for doing the migrations themselves, but not versioning or similar.

I envisioned using the migrations tool and peewee's migration functions. I don't see any versioning either. Is that something we are wanting to do?

@rudehn I guess the existing tools will work, it's just that they're shell based. I forgot that we could run a separate Python script from them.

You can go ahead and setup a python migration script to get started.

@rudehn there's a problem - you can't import the lib from the a script in the migrations directory.

maybe we need to add the root level to the path? Try
sys.path.insert(...)

That might work, but it's pretty hacky.


PR for search bar, search variants by url, in the works version of PV and version number update

Sorry for all of the commits...I have adjusted my workflow so that I provide only meaningful commits in the future.
The PV is semi functional but still ugly. Mallory will be improving this feature in the future while I begin other work. The PV code here is the source of Mallory's code at the moment and so also, reflects her code. In other words, Mallory's current instance is a fork of the code in this PR.

Hi @rmar1478, I'm seeing some files that look like they're not needed for the pull request including the .project file and files that end in '_orig.php' or '_checkPoint1.php'. Could you please remove those from the PR? Also, there were 722 files modified/added, but it looks like most of those come from the pdb/ directory. If PV isn't working yet, could you please remove the pdb/ directory from the PR? Thanks. Let me know if you have questions.

Let's get this merged soon so that Mallory and Hernon can get working on the PV stuff. Currently, the PV link appears but the PV pages do not display appropriately. Mallory will be tackling this as part of her PV tasks, which is good since she has much more experience working with PV.


Not working with Phoenix 1.2.1

I followed your instructions exactly (including add the use statement to web.ex and when I try to compile my app I get the following error:
== Compilation error on file web/views/page_view.ex ==
** (CompileError) web/views/page_view.ex:2: unsupported option :otp_app given to import
    expanding macro: MyApp.Web.__using__/1
    web/views/page_view.ex:2: MyApp.PageView (module)
    (elixir) expanding macro: Kernel.use/2
    web/views/page_view.ex:2: MyApp.PageView (module)
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Any ideas?

What version of phoenix_inline_svg are you using? I just noticed that the readme has the wrong version listed. Make sure to use version 1.0

Thanks for the quick reply! That was definitely the to solution to that problem, so thank you.
Now I'm still getting an error, but it's a different one:
** (File.Error) could not list directory "/Users/me/Code/my-app/_build/dev/lib/my_app/priv/static/svg": no such file or directory
    (elixir) lib/file.ex:1174: File.ls!/1
    expanding macro: PhoenixInlineSvg.Helpers.__using__/1
    web/views/payload_view.ex:2: MyApp.PayloadView (module)
    (elixir) expanding macro: Kernel.use/2
    web/views/payload_view.ex:2: MyApp.PayloadView (module)
    expanding macro: MyApp.Web.__using__/1
    web/views/payload_view.ex:2: MyApp.PayloadView (module)
    (elixir) expanding macro: Kernel.use/2
    web/views/payload_view.ex:2: MyApp.PayloadView (module)
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

I do have a /web/static/svg directory, but I'm not entirely sure what it's looking for here. Is there anything I need to do here?

Make sure you have the directory svg in priv/static. That is where the SVGs will live.
If you want to put them into a different directory there is a config option for that too.

My mistake, I was placing the images in /web/static/svg. I'm pretty new to phoenix, so the difference between what goes in /web/static/ and what goes in /web/static/ is a still a little confusing to me.
Okay, one step closer. Now I'm getting an error when using <%= svg_image("head-1") %> (there is a file at priv/static/svg/head-1.svg.
== Compilation error on file web/views/user_view.ex ==
** (CompileError) web/templates/user/form.html.eex:50: undefined function svg_image/1
    (stdlib) lists.erl:1338: :lists.foreach/2
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Sorry to keep going back and forth with you like this, but I do appreciate the help.

Try putting the svg file into a generic directory in the /priv/static/svg. So /priv/static/svg/generic/head-1.svg.
That was created due to a large set of SVGs and the need to group them into collections.

Moved the file to /priv/static/svg/generic/head-1.svg. Still getting a similar issue:
== Compilation error on file web/views/user_view.ex ==
** (CompileError) web/templates/user/form.html.eex:50: undefined function svg_image/1
    (stdlib) lists.erl:1338: :lists.foreach/2
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Did you add the following to the quoted section in the def view in your web.ex
use PhoenixInlineSvg.Helpers, otp_app: :my_app_name

Make sure to change :my_app_name to the name of your app.

Yes.
  def view do
    quote do
      use Phoenix.View, root: "web/templates"

      # Import convenience functions from controllers
      import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]

      # Use all HTML functionality (forms, tags, etc)
      use Phoenix.HTML

      # Add SVG inline functionality
      use PhoenixInlineSvg.Helpers, otp_app: :git_hero

      import GitHero.Router.Helpers
      import GitHero.ErrorHelpers
      import GitHero.Gettext
    end
  end

That was my fault on documentation. Try <%= svg_image(@conn, "head-1") %>
The svg_image function needs the connection.

no function clause matching in GitHero.UserView.svg_image/2 :-(

Could you try to recompile your app?

I ran mix do clean, compile and started the app up again. Same error. Is there a better way to recompile?

That should do it. I will have to build a project to see what the issue could be.

I looked at it and when calling you will need to use:
PhoenixInlineSvg.Helpers.svg_image(@conn, "image_name")

You should be able to alias the PhoenixInlineSvg.Helpers module if needed.

I did get this to work (thank you!) but it looks like it is wrapping the SVG it inlines with an i element and some identifying classes, which is working against me. Any way to turn this wrapper element off?

There currently isn't a way to remove the wrapping. However, if you want to create a new issue I might be able to get to create a config option around making it possible to enable/disable the use of a wrapper next week.

The wrapper has been removed to solve your issue.


Audit Thread UI - message summary fields

Problem
Missing fields from audit thread summary view.
Solution
Add the following common fields (for both encrypted and unencrypted messages)

consensus timestamp
topic id
topic sequence number

Additional Context
Having the topic id and sequence number more obvious also makes it easier to find messages (cross-reference) on mirror explorers.

@tim-mchale  there is no single consensus number or sequence no  bc of chunking. We should add a consensus number in the ApplicationMessage which is either the consensus of the first chunk or last chunk. @gregscullard we would need to alter protobuf to accommodate this.


Watchdog isn't aware of Geyser usage - Bedrock client on Java server

I'm running Spigotmc / Geysermc and the watch dog scripts cannot detect bedrock client connection. Thus my server is shutting down after 10 minutes even I'm playing and connecting. The easy way to mitigate the issue is assuming that Java server can host both of bedrock clients (UDP ports) and Java clients. Could we have such change?
PS. thanks for awesome documentation and the script. I'm AWS newbie and it only took 2 hours to setup the ECS cluster and lambda stuffs. Everything is working great except the bedrock client detection.

This is an interesting issue. I'll have a look to see if I can help with this.

@mithrandir I've opened a PR and published a test watchdog container. You can use the test container while waiting for the PR to be reviewed. You can do so by changing code: https://github.com/doctorray117/minecraft-ondemand/blob/c12ab627dc496e97c3df734a0003d5317423753c/cdk/lib/minecraft-stack.ts#L226-L232
into:
image: ecs.ContainerImage.fromRegistry(
       'yurisasc/minecraft-ecsfargate-watchdog'
     ),

I'm running Spigotmc / Geysermc and the watch dog scripts cannot detect bedrock client connection. Thus my server is shutting down after 10 minutes even I'm playing and connecting. The easy way to mitigate the issue is assuming that Java server can host both of bedrock clients (UDP ports) and Java clients. Could we have such change?
PS. thanks for awesome documentation and the script. I'm AWS newbie and it only took 2 hours to setup the ECS cluster and lambda stuffs. Everything is working great except the bedrock client detection.

Would be easier to deploy with code :)

@yurisasc Thanks for quick change! It worked fine now, confirmed my Bedrock connection is recognized.

Hello.  Looks good, thanks for the additional testing.  @yurisasc Did you have a chance to try a fresh deployment with CDK to ensure that method worked as well?

@doctorray117 Yup. I've set up a new staging server using the image, which also works. Happy for you to review the code (or even the commit messages) if it doesn't match your format :)

@yurisasc No, it's good. Apologies for the delay.  I'm happy with the formatting and my testing time has been limited. I'll get it merged and deploy it out to the public docker repo over the weekend, and come back and close this issue afterward.

@yurisasc No, it's good. Apologies for the delay. I'm happy with the formatting and my testing time has been limited. I'll get it merged and deploy it out to the public docker repo over the weekend, and come back and close this issue afterward.

Do you have discord? I found a method to support modpacks and some other features

any update on this?


Log files all zero length

Using this config:
[General]
#Mavlink-router serves on this TCP port
TcpServerPort=5770
ReportStats=false
#Which mavlink dialect is being used. Can be `common`[default] or `ardupilotmega`
MavlinkDialect=auto
# error, warning, info or debug
DebugLogLevel=info
# Log - Path to directory where to store flightstack log.
Log=/srv/maverick/data/mavlink/fc

[UartEndpoint serialin]
    Device=/dev/ttyS1
    Baud=115200,115200,57600

[UdpEndpoint 0]
    Mode = Normal
    Address = <IP_ADDRESS>
    Port = 14570
[UdpEndpoint 1]
    Mode = Normal
    Address = <IP_ADDRESS>
    Port = 14571
[UdpEndpoint 2]
    Mode = Normal
    Address = <IP_ADDRESS>
    Port = 14572

[UdpEndpoint 0]
    Mode = Eavesdropping
    Address = <IP_ADDRESS>
    Port = 14573
[UdpEndpoint 1]
    Mode = Eavesdropping
    Address = <IP_ADDRESS>
    Port = 14574
[UdpEndpoint 2]
    Mode = Eavesdropping
    Address = <IP_ADDRESS>
    Port = 14575

After several flights, all log files are zero length:
[dev] [mav@maverick-joule ~/data/mavlink/fc]$ ls -l
total 0
-rw-r--r-- 1 mav mav 0 Jun  9 09:08 00000-2017-06-09_09-08-15.bin
-rw-r--r-- 1 mav mav 0 Jun  9 11:27 00001-2017-06-09_11-27-18.bin
-rw-r--r-- 1 mav mav 0 Jun  9 11:28 00002-2017-06-09_11-28-14.bin
-rw-r--r-- 1 mav mav 0 Jun  9 14:33 00003-2017-06-09_14-33-24.bin
-rw-r--r-- 1 mav mav 0 Jun  9 14:45 00004-2017-06-09_14-45-59.bin
-rw-r--r-- 1 mav mav 0 Jun  9 14:58 00005-2017-06-09_14-58-24.bin
-rw-r--r-- 1 mav mav 0 Jun  9 15:02 00006-2017-06-09_15-02-16.bin
-rw-r--r-- 1 mav mav 0 Jun  9 15:07 00007-2017-06-09_15-07-27.bin

Mavlink-router is routing mavlink, these flights were all using mavlink control script connected to mavlink-router.

Did you enable logging on the flight stack to be sent via mavlink? On ArduPilot that's LOG_BACKEND_TYPE

Ah, no :) Probably a good thing to document.
I'm guessing standard 115200 baud isn't going to cope with mavlink logging, is there a recommended minimum?

Confirmed now getting data in bin files when changed LOG_BACKEND_TYPE to 3.  Have also increased baud to 921600.  Will close when confirmed data is writing correctly.

@fnoop we use 460800, but if you can increase it to 921600 it's preferred and what others are using (example, 3DR Solo). Check for crc errors, if you don't have them, you are good.

Confirmed now getting data in bin files when changed LOG_BACKEND_TYPE to 3. Have also increased baud to 921600. Will close when confirmed data is writing correctly.

ping

Sorry, I'm getting data through into the log files fine!  Using 921600, no problems.  Confirmed that the data is good and parses fine.

I'm trying to assist getting logging working through mavlink-router on a PX4 stack. There is no LOG_BACKEND_TYPE parameter. There is the bitmask for what to log, with a variety of items included. Mavlink-router is working fine routing packets to/from USB on the device to/from ground control stations like QGC (e.g., via WiFi or telemetry radios), which can connect fine. Logging is enabled on mavlink-router via -l, the specified directory exists, and empty .bin files are being created by mavlink-router. No data is being logged however, the files remain zero length. Any ideas? Thanks.


running queries like CREATE FUNCTION...

hi, I can successfully run any standard query like select mycol from mytable, but when I try to run the following, it throws an error:
var sql =
"DELIMITER // " +
"create function date_trunc(vInterval varchar(7), vDate timestamp) " +
"returns timestamp " +
"begin " +
    "declare toReturn timestamp; " +

    "if vInterval = 'year' then set toReturn = date_add('1900-01-01', interval TIMESTAMPDIFF(YEAR, '1900-01-01', vDate) YEAR); " +
    "elseif vInterval = 'quarter' then set toReturn = date_add('1900-01-01', interval TIMESTAMPDIFF(QUARTER, '1900-01-01', vDate) QUARTER); " +
    "elseif vInterval = 'month' then set toReturn = date_add('1900-01-01', interval TIMESTAMPDIFF(MONTH, '1900-01-01', vDate) MONTH); " +
    "elseif vInterval = 'week' then set toReturn = date_add('1900-01-01', interval TIMESTAMPDIFF(WEEK, '1900-01-01', vDate) WEEK); " +
    "elseif vInterval = 'day' then set toReturn = date_add('1900-01-01', interval TIMESTAMPDIFF(DAY, '1900-01-01', vDate) DAY); " +
    "elseif vInterval = 'hour' then set toReturn = date_add('1900-01-01', interval TIMESTAMPDIFF(HOUR, '1900-01-01', vDate) HOUR); " +
    "elseif vInterval = 'minute' then set toReturn = date_add('1900-01-01', interval TIMESTAMPDIFF(MINUTE, '1900-01-01', vDate) MINUTE); " +
    "END IF; " +

    "return toReturn; " +
"end// " +
"DELIMITER ;";

connection.query(sql, function(err, rows, fields) {
  if (err) throw err;
  else console.log('success');
});

The error that I'm getting is:
ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER // create function date_trunc(vInterval varchar(7), vDate timestamp) r' at line 1
I thought setting the config option multipleStatements to true might help, but it didn't.
Any help is appreciated!

The reason is that "'DELIMITER //" is not actually SQL, rather it is a direct command to the MySQL command line binary. This module sends all commands directly to your MySQL server and does no commands itself, which is why it would never work.

so I deleted DELIMITER related code (first and last line and the // and the end) - and it worked.
I might have misinterpreted your answer, but to me you made it sound like there is no way I can achieve it.

but to me you made it sound like there is no way I can achieve it.

This is correct, there is no way to achieve the functionality of the DELIMITER command, and that is a non-SQL command that is specific to the mysql command line binary client you are using.
You can read more about this in the MySQL manual at https://dev.mysql.com/doc/refman/5.1/en/stored-programs-defining.html

If you use the mysql client program to define a stored program containing semicolon characters, a problem arises. By default, mysql itself recognizes the semicolon as a statement delimiter, so you must redefine the delimiter temporarily to cause mysql to pass the entire stored program definition to the server.

In the above statement, the lower-case mysql refers to the command line client, because it will use the ; as command separators. In this library, since it's direct to your server, DELIMITER is unnecessary, because each .query call is the way to cause command separation.

That is a great explanation. Thanks for clarifications!


Show build results of solution and template participation on exercise view.

Checklist

[x] I run yarn run webpack:build:main: the project builds without errors.
[x] I run yarn lint: there project builds without code style warnings.
[x] I removed unnecessary whitespace changes in all related files.
[x] I updated the documentation and models.
[x] I tested the changes and all related features on the test server https://artemistest.ase.in.tum.de.
[x] I added (end-to-end) test cases for the new functionality.

Motivation and Context
Pull Request #181 changed the model so that the template and solution of a programming exercise is stored using a regular participation. These participations can now be used to store results and submissions like in a student-participation.
This PR shows the build result of the template and solution participation on the view-page of the programming-exercise.
Description
When opening the view-page, a request to load the exercise is made (this is already implemented before this PR). This PR queries the template and solution participation of the exercise once the exercise itself is received and displays the build result of the latest build result of the participation (using the already existing ResultComponent). If no build result is stored, a corresponding notice is displayed (this is implemented by the ResultComponent).
Steps for Testing

Log in to ArTEMiS
Navigate to Course Administration
Click on the "Exercise"-button of a course with programming exercises.
Click on the "View"-button of a programming exercise.

Screenshots
Results exists:

No results exists:

(The red frame is not part of this PR and was added only in the screenshots.)

Thanks for the comments.
The websockets work now (but did not in the original version).

I've finished implementing your requested changes.


Add meta sections

This PR fixes https://github.com/JuliaPackageComparisons/JuliaPackageComparisons.github.io/issues/22.

Before this PR

After this PR

Note that the following sections are not categorized yet.

Metrics
Probabilistic Programming
Signal Processing
Uncertainty Propagation

This is ready to review!
Here are some concerns:

I updated pages directory to comparisons.

Is this acceptable?
This is a bit long but more descriptive.

The meta-sectiosns are not sorted alphabetically.

I thought "Physics" should be close to "Math".


Virus alert for make.exe in the 32-bit flavor

(Sidenote: the Windows Security UI doesn't allow seeing/copying it as text -- you even have to engage in some bizarre courtship for just making it show these "details" at all...)

w64devkit 1.20.0
Unpacking the 64-bit version, or an earlier gcc12 version (both 32/64) didn't trigger it.
I'm almost completely sure it's a false positive, but I'd prefer to be just completely sure, hence this heads-up here.

That's a false positive. If you're worried, with a bit of effort you can
verify for yourself that this make.exe is at least as trustworthy as the
upstream projects. The GNU Make build is deterministic, so following the
instructions in #79 you can build a make.exe from source, bootstrapped
through Debian's toolchain, with all inputs cryptographically traced back
to their upstream projects (GNU, etc.). You will get a binary that is
bit-for-bit identical to my binary release. For the current w64devkit
(1.20.0), which is built from GCC 13.2, the 32-bit make.exe SHA-256 is:
3ae005d094870bd11eb574f05c21a25a1b6832e76c44a370290051b4cdb71642
Virus scanners tend to have high false positive rates for 32-bit binaries,
probably because there has been in general much more 32-bit malware and so
there's more opportunity for collisions.

Thanks!


Incompatible with .NET Core 3.0 Preview 8 and 9

.NET Core 3.0 Preview 8 and 9 seem to be incompatible.
Tests for ApiEnum and ApiFlags seem to fail with a TypeLoadException and some other weirdness seems to be going on.
More test logs on GitHub Actions (preview 9): Linux, Windows
I've tried to cut out the files that shouldn't be responsible, but regardless of which files I remove, the issue seems to move to something else. If I leave the ApiEnum and ApiFlags classes as the only ones remaining, the issue is gone, even though the test indicates they fail at the .Equals override of those classes.
At this time, I don't know how to solve this yet. I've tried isolating the issue, but I can't seem to pinpoint the problem. Preview 7 has no issues, so I'll continue to use that version for GitLab CI for the time being.
If anyone has any ideas on how to solve and/or approach this, I'd love to hear your input.
Reference: dotnet/core#3184 and dotnet/core#3304

With luck, this issue is solved in #19.


Windows binary waiting for enter press

Describe the bug
Windows binary waits for enter press before finishing execution.
To Reproduce
Steps to reproduce the behavior:

Download windows binary for python 3.10
Execute crackmapexec smb to a host
Process doesn't stop till enter key is pressed.

Expected behavior
Should finish automatically after completion
Screenshots

Crackmapexec info

OS: Windows 10
Version of CME 5.30
Installed from latest release

Same problem. It is not possible to run a batch file with multiple lines. Please fix this.


Adding "cognition_init_mapping" to config.py.

PR checklist:

[x] Tested by pushing to CMS by creator (needs to be the cms_update branch on bricks-cms)
[ ] Tested by pushing to CMS by reviewer (needs to be the cms_update branch on bricks-cms)
[ ] Conforms with the agreed upon code pattern

no cognition_init_mapping included to test so hard to test

[ ] resolved

Not sure if this is the intended result since cognitionInitMapping is now always the string "null". I assumed that it's

[ ] resolved


PT-589 | Focus to top on route changes

Description
Focus to top on route changes
Issues
Closes
PT-589:
Additional notes
Nextjs automarically tries to focus on body element but it needs tabIndex. So workaround is to add it between renders only (might cause issues if it is always there)

Codecov Report

Merging #61 (5d14a4f) into master (2b53660) will increase coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
+ Coverage   89.54%   89.69%   +0.15%
==========================================
  Files          78       78
  Lines        1970     1970
  Branches      364      346      -18
==========================================
+ Hits         1764     1767       +3
+ Misses        202      199       -3
  Partials        4        4

Impacted Files
Coverage Δ

src/domain/venue/venueInfo/VenueInfo.tsx
92.59% <0.00%> (ø)

src/icons/IconGarderobe.tsx
100.00% <0.00%> (+60.00%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b53660...5d14a4f. Read the comment docs.

Codecov Report

Merging #61 (5d14a4f) into master (2b53660) will increase coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
+ Coverage   89.54%   89.69%   +0.15%
==========================================
  Files          78       78
  Lines        1970     1970
  Branches      364      346      -18
==========================================
+ Hits         1764     1767       +3
+ Misses        202      199       -3
  Partials        4        4

Impacted Files
Coverage Δ

src/domain/venue/venueInfo/VenueInfo.tsx
92.59% <0.00%> (ø)

src/icons/IconGarderobe.tsx
100.00% <0.00%> (+60.00%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b53660...5d14a4f. Read the comment docs.


silx.gui.plot.PlotWidget: Enhanced matplotlib backend high-dpi screen support by using Qt coordinates

This PR makes the matplotlib backend  using Qt "logical" pixel coordinates for its API, i.e., mouse events, dataToPixel, pixelToData, pickItems and getPlotBoundsInPixel.
Closes #2914
Closes #3317

This  could close a pyFAI issue i think: https://github.com/silx-kit/pyFAI/issues/1313


Verifying ESPNOW_Sensor

I am trying to upload the ESPNOW_Sersor file to an esp8266. I keep getting these errors.
In file included from C:\Users\jzueh\AppData\Local\Temp.arduinoIDE-unsaved2023125-13764-1r1er1j.fll2h\ESPNOW_Sensor\ESPNOW_Sensor.ino:10:
c:\Users\jzueh\Documents\Arduino\libraries\Farm-Data-Relay-System-main\src/fdrs_node.h: In function 'crcResult getLoRa()':
c:\Users\jzueh\Documents\Arduino\libraries\Farm-Data-Relay-System-main\src/fdrs_node.h:452:1: error: no return statement in function returning non-void [-Werror=return-type]
452 | }
| ^
c:\Users\jzueh\Documents\Arduino\libraries\Farm-Data-Relay-System-main\src/fdrs_node.h: In function 'uint32_t pingFDRS(int)':
c:\Users\jzueh\Documents\Arduino\libraries\Farm-Data-Relay-System-main\src/fdrs_node.h:599:1: error: control reaches end of non-void function [-Werror=return-type]
599 | }
| ^
cc1plus.exe: some warnings being treated as errors
exit status 1
Compilation error: exit status 1
I am new to this so I'm sure if i did something wrong or need to change something.

No, you aren't in the wrong. This is an issue that involves differences between Arduino versions (or something, not sure to be honest).
It should be fixed in the latest version, which you can find here.
What exact system are you using Arduino under? I knew this had been an issue under Mac, but that looks like Windows.

I switched to the latest version and it worked. Thank you.

Hi Timm
trying to get it work. I am on windows, Arduino 2.0.3. Only using ESP-now (for now-no lora)
I had the same issue, with the new version I get lots of errors in fdrs_node_lora.h.
Do you have a quick fix?
Thanks and continue your awesome work.
In file included from c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node.h:66,
from C:\Uxxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\examples\ESPNOW_Sensor\ESPNOW_Sensor.ino:10:
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h: In function 'crcResult handleLoRa()':
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h:143:1: error: no return statement in function returning non-void [-Werror=return-type]
143 | }
| ^
In file included from c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node.h:66,
from C:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\examples\ESPNOW_Sensor\ESPNOW_Sensor.ino:10:
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h: In function 'crcResult transmitLoRa(uint16_t*, DataReading*, uint8_t)':
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h:281:1: error: no return statement in function returning non-void [-Werror=return-type]
281 | }
| ^
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h: In function 'crcResult transmitLoRa(uint16_t*, SystemPacket*, uint8_t)':
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h:326:1: error: no return statement in function returning non-void [-Werror=return-type]
326 | }
| ^
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h: In function 'crcResult getLoRa()':
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h:485:1: error: no return statement in function returning non-void [-Werror=return-type]
485 | }
| ^
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h: In function 'uint32_t pingFDRSLoRa(uint16_t*, uint32_t)':
c:\xxx\ArduinoIDE\libraries\Farm-Data-Relay-System-main\src/fdrs_node_lora.h:513:1: error: no return statement in function returning non-void [-Werror=return-type]
513 | }
| ^
cc1plus.exe: some warnings being treated as errors
exit status 1
Compilation error: exit status 1

Thanks @Rikolas, this is (again) Arduino seemingly compiling differently for different systems. At any rate, I think I fixed it on this branch. Let me know how it works.
@aviateur17 Apparently sometimes Arduino doesn't like when all return statements are protected by macros, so keep an eye on that.

@Rikolas forgot the link

@aviateur17 Apparently sometimes Arduino doesn't like when all return statements are protected by macros, so keep an eye on that.

Sounds good.  I'm pretty sure I tested against Arduino 1.8.19 but maybe something is different in the 2.0 branch of Arduino or maybe there is some configuration that is different.  I'll go back and look at the change you made and do some testing.  Thanks for the heads up.

I tested it on 2.0.3 yesterday on my Win10 machine and it was fine. I've known that PlatformIO acts this way, but I've only recently been getting reports of users seeing it in Arduino.

@Rikolas I'm so sorry, the fix didn't upload before my last post. but It's there now.
I've gotta get my coffee before I check my emails.

@timmbogner, I see the changes you made in that branch_138.  Odd that there were no errors when I tested compilation in Arduino.  Since you know how to reproduce can you tell me what is the difference in how Rikolas has his setup so I can easily reproduce the error?   Hopefully this silliness will go away once we get those ifdefs out of the header files with all the functions and around the #include of certain header files.

I think the errors will always occur or at least show as warnings in PIO. I can't reproduce them in Arduino on my Windows machine, I'll try Ubuntu later. Someone reported the issue on Mac recently in #132 , which is when I fixed some pre-existing occurrences of the problem.

Okay thanks.  I use Linux Mint (based off of Ubuntu) for my main development platform but I also have a MAC so I'll see if I can reproduce this on my MAC.

Working! Thank you.