refactor: check capitalization

Description
Hi there, I noticed a few capitalization mismatches that I could help out with.
For example:

walkingpal should be WalkingPal
Fun. and Chill. > Fun and chill
on the go. anytime, anywhere! > on the go. Anytime, anywhere!
approved I'd > approved ID
android > Android

Also a few minor typos:

error occured > error occurred
New frienships > New friendships
news letter > newsletter
our's > ours
Our mission is to change the people cover... > Our mission is to change the way people cover...

If the above changes seem fine I can send over a PR for you to look at.
Screenshots

great! go ahead. also you can create another issue if you find any typos or grammatical errors in markdown docs  (see Readme.md and .docs/ folder)


ci: remove snyk step

Codecov Report

Merging #420 (4bc26b8) into main (db9a535) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #420   +/-   ##
=======================================
  Coverage   78.95%   78.95%
=======================================
  Files          27       27
  Lines        1730     1730
=======================================
  Hits         1366     1366
  Misses        364      364

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 db9a535...4bc26b8. Read the comment docs.

:tada: This PR is included in version 5.10.2 :tada:
The release is available on:

v5.10.2
GitHub release

Your semantic-release bot :package::rocket:


Do not cache TE header with random values

#7234 only handles cache updates. This PR handles cache writes with random TE headers.

It looks like #6908 solves this as well, but looks cleaner.

closing this in favor of  #6908 .


Parallel compilation is performed whether or not perform tuning process

Let's just talk about the case where there is no kernel cached in memory and kernel database while performing convolution. There is two situations when MIOpen-2.8.0 finds solutions.

If the tuning process is not required to execute.  MIOpen will first determine whether a solver is applicable. If the solver is applicable, then, get the default solution of the solver. MIOpen repeats the above process until all default solutions are provide by each applicable solver. After that, MIOpen compiles all the solutions to kernels in parallel.
If the tuning process is required to execute explicitly. MIOpen will first determine whether a solver is applicable. If so, then, MIOpen will perform a loop process serially to find a optimal solution of the solver. The process compiles solutions of a solver one by one, run the kernel to determine which solution is best and then return it. MIOpen repeats the above process until all optimal solutions are provide by each applicable solver. After that, MIOpen still executes the parallel compilation but almost do nothing.

I think the two process is conflict and the tuning process is too time-consuming because of serial compilation. So, I make the two process unified. Here is the test result.
rm -rf ~/.config/miopen ~/.cache/miopen /tmp/*
./MIOpenDriver conv --batchsize 16 --in_channels 64 --out_channels 256 --iter 1 -V 0

Hello @ZPEthanWen, thanks for your initiative. Unfortunately, the development process does not include adding new features to existing releases. And AFAICS the feature (parallel compilation for tuning) is already implemented in develop branch:
https://github.com/ROCmSoftwarePlatform/MIOpen/blob/2a182a8c6a1456f0eace0e4665cc62942c238bbe/src/include/miopen/generic_search.hpp#L348-L362
In the future, I recommend opening a feature request before beginning actual development.

@atamazov, I'm very happy to witness the rapid development of miopen. I think the the feature (parallel compilation for tuning) in develop branch is only for a solver, For all solvers, it's still process one by one.
miopen::each_args(
            [&](auto solver) {
                if(count >= limit)
                    return;
                if(find_only.IsValid() && find_only != Id{SolverDbId(solver)})
                { // Do nothing (and keep silence for the sake of Tuna), just skip.
                }
                else if(!solver.IsApplicable(search_params))
                    MIOPEN_LOG_I2(SolverDbId(solver) << ": Not applicable");
                else if(search_params.use_dynamic_solutions_only && !solver.IsDynamic())
                    MIOPEN_LOG_I2(SolverDbId(solver) << ": Skipped (non-dynamic)");
                else
                {
                    const Solution s = FindSolution(solver, search_params, db, invoke_ctx);
                    if(s.Succeeded())
                    {
                        ++count;
                        ss.push_back(s);
                        MIOPEN_LOG_I2(SolverDbId(solver) << ": Success.");
                    }
                    else
                    {
                        /// \todo If Solver is applicable it must provide an appropriate Solution.
                        /// This is not the case for some 20x5 convolutions (and possibly others).
                        /// Normally we should not get here and message level should be Error.
                        /// For now, let's use Info (not Warning) level to avoid
                        /// flooding the console.
                        MIOPEN_LOG_I(SolverDbId(solver)
                                     << ": [Warning] Applicable Solver not succeeded.");
                    }
                }
            },
            Solvers{}...);

I'm not sure if it's my version or the develop branch is performing well. I will check it out. Anyway, thank you very much for your reply.

@ZPEthanWen

I think the the feature (parallel compilation for tuning) in develop branch is only for a solver, For all solvers, it's still process one by one.

Correct. Parallel tuning of several solvers doesn't make much sense, because even one Solver usually has hundreds of kernels to build.

This PR seems to contain a lot of changes not relevant to this PR itself. Please rebase with the latest develop.

@daniellowell We already have this functionality in develop.


Andrey #383: properly fetch the latest commit date.

A lot of changes happened because now we have just a date, without time. Timezone offset is not important, because we use a human friendly text like yesterday or a week ago.

@dankohn please review

Deploy preview for landscape ready!
Built with commit 839e0f1640cb7f4e64605e2bb947cf0fd4f94300
https://deploy-preview-385--landscape.netlify.com

Last 3 cards are missing their last commit dates: https://deploy-preview-385--landscape.netlify.com/grouping=no&license=open-source&selected=kubicorn&sort=latest-commit
Please add additional timeouts.


⚠ Bofrost.de has degraded performance

In 2bbe940, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1242 ms

Resolved: Bofrost.de performance has improved in 74f29ff after 2 hours, 1 minute.


Re-order nav links, update download box to include shapefiles, squish pages

Purpose
Re-order the navigation links. This PR creates all the placeholder logic to add dropdown navigation links in the future. The TSD, FAQs and download page are also ready to go when we are ready in the future

closes #1425
closes #1533
closes #1532
closes #1436
closes #1324

QA testing round 2
QA link here
QA spec:
Add shapefile download to download box

[x] does download button work?
[x] how is the styling of the box?
[x] how do colors look? Blue public engagement button near the darker blue download box?
[x] placement of the new Tag?

Add FAQ link to About page

[x] the text has a minimum 92 character requirement. that's why the copy has been updated. Is it ok, or do you have something else that could also meet the 92 character limit?

QA testing round 1

QA link here
QA spec:
Re-order the nav links:

[x] does the map/explore page load by default?
[x] do all the navigation links work?
[x] do all (most) links work as expected on each page?

Engagement calendar button on each page

[x] is there a public engagement button on each page?
[x] does the button work as expected?

Add FAQ link to About page

[x] does the FAQ link work?

Modify footer

[x] is the title of the second column in the footer correct?
[x] are all footer links in the second column correct?
[x] are all the footer links in the second column in the correct order?
[x] is the title of the third column in the footer correct?

Questions for QA:

~We have 3 different buttons on the site. A blue with white text, white with dark text, and yellow with blue text. I have a feeling that having at most two buttons unless there's some reason to have 3 different types. Wondering if we can discuss the options and see if all 3 button types are needed or if they cause extra cognitive load?~

QA passed


mautrix-whatsapp: 0.10.6 -> 0.10.7

https://github.com/mautrix/whatsapp/releases/tag/v0.10.7
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 304539 run on x86_64-linux 1

1 package built:

mautrix-whatsapp


CakePHP 4.0 branch?

Is this on the roadmap?

I can see how much work it requires. A pull request is welcome as well if you could help.

@geoidesic I've upgrade it mostly and pushed the changes to the develop branch. There is one issue left. You can do it or wait until I find time to finish it.

It is now ready and working - in master.

This is done by the 2.0.0 release https://github.com/burzum/cakephp-service-layer/releases/tag/2.0.0


Add ability to specify CSRF token in header

If a non-GET request is sent, and a session cookie is used to authenticate, then the CSRF token associated with the session must also be provided. Right now, the CSRF token is expected to be in the request body. For example, Frontend provides the CSRF token from the iframe form in the SubmissionDownload component. Enketo also provides the CSRF token when using cookie auth.
However, I think the expectation that the CSRF token is in the request body doesn't work for all requests. The main issue that comes to mind is file uploads. For example, I think requiring the CSRF token to be in the request body would be an obstacle to using cookie auth to upload a form definition or form attachment.
This PR makes it possible to use cookie auth in such cases by allowing the CSRF token to be specified in a header instead of the request body.
What has been done to verify that this works as intended?
New tests.
Why is this the best possible solution? Were any other approaches considered?
I don't love that there are now two ways to specify the CSRF token. I thought about removing support for CSRF tokens in the request body so that there would be only one way to specify the token (via the header). However, that wouldn't work for HTML form submission like from the iframe form. I also didn't want to change anything about our Enketo integration.
I also don't think this PR adds that much complexity. Only two lines of code were changed.
If a user of cookie auth has a choice between specifying the token in the header vs. in the request body, specifying it in the header is probably slightly better. That's because it doesn't require the token to be removed from the request body.
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
During regression testing, we will verify that the parts of Central that rely on cookie auth continue to work.
Does this change require updates to the API documentation? If so, please update docs/api.md as part of this PR.
I don't think changes are needed. We discourage the use of cookie auth in the API docs, and we don't document any requirements around the CSRF token.
Before submitting this PR, please make sure you have:

[x] run make test-full and confirmed all checks still pass OR confirm CircleCI build passes
[x] verified that any code from external sources are properly credited in comments or that everything is internally sourced

I still think this PR is worth merging (after resolving conflicts). That said, the PR's been open for over a year, and I don't think merging it is a priority at the moment. We can reopen the PR when it becomes something we want to address.


UI: Add UI support for forvpc and guestiptype parameters of the listNetworkOfferings API

Description
Currently, the listNetworkOfferings API supports the forvpc and guestiptype parameters (see API docs). The first is used to filter network offerings that can only be used for creating VPC tiers; the second allows filtering by guest network type (available options are: Isolated, Shared and L2).
This PR adds support to these parameters in the UI. The forvpc filter has been added as a normal filter (declared in the filters property of the network offerings section's object) and the guestiptype as a search filter (declared in the searchFilters property).
Furthermore, this PR also fixes a bug that caused duplicate options to appear in search filter lists.

Fixes #9924
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[X] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)
[ ] build/CI
[ ] test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[X] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[X] Trivial

Screenshots (if appropriate):

How Has This Been Tested?
forvpc filter tests

I checked that when selecting VPC on the section's filter, a request to listNetworkOfferings was sent, with the forvpc parameter set to true.
I checked that when selecting Guest Network on the section's filter, a request to listNetworkOfferings was sent, with the forvpc parameter set to false.
I checked that when selecting All on the section's filter, a request to listNetworkOfferings was sent, without the forvpc parameter.

guestiptype filter tests

I checked that when selecting the Isolated option on the Guest Type search filter, a request to listNetworkOfferings was sent, with the guestiptype parameter set to Isolated.
I checked that when selecting the Shared option on the Guest Type search filter, a request to listNetworkOfferings was sent, with the guestiptype parameter set to Shared.
I checked that when selecting the L2 option on the Guest Type search filter, a request to listNetworkOfferings was sent, with the guestiptype parameter set to L2.

Duplicate options in search filter lists

Before

After

@blueorangutan ui

@bernardodemarco a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/9947 (QA-JID-481)

@blueorangutan ui

@JoaoJandre a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/9947 (QA-JID-486)

@blueorangutan ui

@kiranchavala a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/9947 (QA-JID-489)


Update DSInternals.DSAccount.ExportViews.format.ps1xml

When exporting to HashcatHTHistory there is no way to easily know if hashes belong to current hash of previous ones (history).
Similar to what Impacket Secretdump does, I created this PR to add "_historyX" as part of the username.
The output would be something like:
user_history1:
user_history2:
user_history3:
....
I've kept this format for now as I've observed that you're usually outputting DSAccount info like:
...
Secrets
NTHash:
NTHashHistory:
Hash 01:
Hash 02:
Hash 03:
Hash 04:
Hash 05:
This means History Hash 01 is the current hash (NTHash = Hash 01).
However, I'd probably recommend consider outputting DSAccount info like:
Secrets
NTHash:
NTHashHistory:
Hash 01:  THIS BEING THE FIRST "PREVIOUS" HASH RATHER THAN CURRENT ONE
Hash 02:
Hash 03:
...
If you agree with this final format, I can modify my PR so that the output of HashcatNTHistory would be:
user: <current_hash>
user_history1:
user_history2:
user_history3:
This way, one could output hashes including history one and try to crack both current & history hashes at the same time. This is what Impacket Secretsdump does when the instructed to include history hashes.

Thanks @ciyi , it makes sense.
Regarding the NTHashHistory property of DSAccount, I am only displaying what is really stored in Active Directory in the ntPwdHistory attribute. But I do not insist on that numbering in non-default views.
Sidenote: With the intorduction of $historyNumber++, it would make sense to convert that foreach loop into a for one.

Changed foreach to for loop (trying to save 1 cycle)
Now _history flag starts with history0 similarly Impacket Secretsdump (so output from both tools would be "compatible"). I've been very tempted to start with history1 as in the rest of standard view of DSInternals starts with 01. What do you think?
If you're ok with the approach, I can create a similar view for John and Hashcat views both LM and NT hashes.

Thanks. Let's use 0 in this case to mimic Impacket. The standard view is a different case, because it is intended to be read by humans, not scripts, hence 1 instead of 0.
Yes, please, do the same for John and Hashcat. I will merge the branches afterwards and create a new release soon.
Do you please also have time to actually test the formats with John the Ripper and Hashcat? I recently stumbled upon some tools not being able to parse empty LM hashes in the Pwdump format, so I had to use 'NO PASSWORD*********************' instead.

Done.
Let me know what you think :) Any question, do not hesitate to contact me.

Looks great, Carlos, thanks!

There are still some issues with empty passwords that should be fixed and I am the one to blame. Sample outputs:
JohnNT:
Administrator:$NT$92937945b518814341de3f726500d4ff
Guest:$NT$
DefaultAccount:$NT$
krbtgt:$NT$75590f08f90a826b7a8dc33b46c316c4
Angelica:$NT$377565f7d41787414481a2832c86696e

JohnNTHistory:
Administrator:$NT$92937945b518814341de3f726500d4ff
Administrator_history0:$NT$377565f7d41787414481a2832c86696e

krbtgt:$NT$75590f08f90a826b7a8dc33b46c316c4
Angelica:$NT$377565f7d41787414481a2832c86696e

HashCatNTHistory:
Administrator:92937945b518814341de3f726500d4ff
Administrator_history0:377565f7d41787414481a2832c86696e

krbtgt:75590f08f90a826b7a8dc33b46c316c4
Angelica:377565f7d41787414481a2832c86696e

HashCatNT:
Administrator:92937945b518814341de3f726500d4ff
Guest:
DefaultAccount:
krbtgt:75590f08f90a826b7a8dc33b46c316c4
Angelica:377565f7d41787414481a2832c86696e

What do you mean exactly?
I.e. with JohnNT, john will not complain about "Guest:$NT$". I'd simply not find a hash for that username.
Same for HashcatNT, hashcat wouldn't complain either.
The in-between empty lines of HashCatNTHistory or JohnNTHistory, not sure right now where they come from. I'd need to check it.

If the tools accept the output without complaining, then I really see no problem. Thanks a lot for testing!

FYI, @ciyi, your changes are now part of DSInternals 3.5. Thanks again.


Add trailing slash to context path only if missing (fixes #219)

 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.

@illpillow thank you for your contribution :tada:
I'll look and verify it soon.


Add Tests and Coverage report

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@1ebf85b). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #341   +/-   ##
=========================================
  Coverage          ?   26.50%
=========================================
  Files             ?       51
  Lines             ?     4282
  Branches          ?      716
=========================================
  Hits              ?     1135
  Misses            ?     3086
  Partials          ?       61

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 1ebf85b...faf2735. Read the comment docs.


Revert "Add HybridApp deploy to platform deploy"

Reverts Expensify/App#43046

see last comment

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.79-11 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Memory allocation is crashing

Validation

[X] Game has been updated to the latest RE4HD release (v1.0.1: https://www.re4hd.com/?p=9471)
[X] Data has been validated with SFV (a guide to using QuickSFV is available at that link, use that with this 1.0.1 SFV: BIO4-HDProject1.0.1-SFV.zip)

Describe your issue here (drag+drop ZIP to attach it)
When you select the option to allocate memory in Re4 tweaks the game doesn't even start and crashes if you open the inventory with SS from HD Project 1.0

Can you try getting a crash dump?

If your issue is crashing related: please try creating a CrashDumps folder next to your bio4.exe file, and try getting the crash to happen again - after that you should hopefully have a ZIP file inside the CrashDumps folder, please attach that ZIP with your post!

what else happens is to hang on Load to enter r100, the biggest problem of memory allocation happens on r100

bio4.exe.20220715180744.zip

Hmm, any chance you could try using 1.1.0 EXE and see if it crashes there? (with crash log too?)
I posted a patch at https://github.com/emoose/re4-research/issues/5 that can change 1.0.6 to 1.1.0, you need to restore original 1.0.6 EXE first though.

Hmm, any chance you could try using 1.1.0 EXE and see if it crashes there? (with crash log too?)
I posted a patch at emoose/re4-research#5 that can change 1.0.6 to 1.1.0, you need to restore original 1.0.6 EXE first though.

oh ok

My god, when are you guys going to give up on r100? This is NOT the room to be testing memory allocations on. I have explained probably 30 times that this room is unique in how it handles enemies, stage models and other files and should not be used for tests. There are dozens and dozens of other rooms to mod that don't have these issues, yet people for some reason want fixes to a room that is simply a mess on the backend.
What you guys are asking is for a custom fix to a problem that will not occur if you aren't modding this room.  Why not allow the RE4Tweaks guys time to work on the things that can't be avoided, and the things we really need?
I see a lot of requests too for things that can already be done with existing tools, but people say "it's too complicated, or too time consuming". Please consider that writing code is is complicated and time consuming too.

I realised the other maps is happening the same thing

@Mister-Curious our mods are intended for people who play the normal game if you take a classic map they already detonate the mod, we need r100

I'd like to remind you that re4_tweaks is about enhancing the original game experience, not providing a tool/framework for modders to create custom experiences. We'll do what we can do accommodate everything, as long as it is feasible for us/this project.

I'd like to remind you that re4_tweaks is about enhancing the original game experience, not providing a tool/framework for modders to create custom experiences. We'll do what we can do accommodate everything, as long as it is feasible for us/this project.

I understand. Your dll is already very valuable as it is, it is also awesome for enhancing the gameplay with other mods installed. We'll stop requesting those things then and focus purely on requests for enhancing the original experience, like framerate fixes and such.
I gotta ask though, would it be possible to at least finish the size/speed by .esl? this is crucial for many things in our mods, and not having this nearly finished feature would be a shame.

I'd like to remind you that re4_tweaks is about enhancing the original game experience, not providing a tool/framework for modders to create custom experiences. We'll do what we can do accommodate everything, as long as it is feasible for us/this project.

Nipkown desculpa te responder em portugues mas é porque fica mais facil de eu explicar. Ontem o Darth tinha comentado sobre a allocação de memoria e eu falei do r100 e tals, mas realmente cara o alloc de memoria pro inventario do re4 tweaks estava funcionando de uma maneira estranha, uns meses atrás o qingsheng tinha isso incluso na DLL dele e funcionava deboas, depois que ele viu que foi incluso no re4 tweaks ele tirou essa função da dll, em seguida começou a ter problemas com a pasta SS do HD Project, ela parou de funcionar, então ativei o Alloc do RE4 Tweaks, porém, com essa função ela até arruma a maleta mas por algum motivo prejudicava alguns spawns de inimigos nos mods, ok, sei que não é para mods a DLL e entendi isso, porém eu vim pedindo durante alguns meses pro qingsheng voltar com essa opção pra não precisarmos usar a re4 tweaks ja que n estava funcionando pros mods, mas, o qingsheng é Chines e ele tem uma dificuldade imensa de entender o que estamos querendo dizer até mesmo se for algo super simples, hoje ele incluiu de volta a mesma função do re4 tweaks na DLL dele e está funcionando tudo conforme a ideia, aumentar a memoria da interface da maleta, os spawns de inimigos tb 100% ok, por isso q a gente reportou o problema e pareceu que era só pra mods, mas no fim acredito q é um problema mesmo mas eu sou leigo nesse assunto me desculpa, então n sei se é o metodo do qingsheng q é diferente ou é algum problema na funcionalidade, por isso reportei, porém o Curios ele fica irritado quando citamos o r100(que é o primeiro mapa do jogo) porque esse mapa é complicado de editar e no mod dele ele skipou, ai ele achou q tudo q pedimos foi só pros mods mas não, eu to vendo todas funções do tweaks e to testando as coisas que estão sendo adicionadas des do começo, ontem eu nem dormi direito porque pareceu que tavamos enchendo o saco d+ e que era incoveniencia até porque eu me coloco no lugar de vc e o Emoose e é um bixo de 7 cabeças consertar esse jogo. Eu n sei e é mesmo um problema ou a locação dele é algo diferente da de vcs ja q o intuito é focar no jogo base. Vlw pela atenção e desculpa o comentario em portugues, caso queira dps de ler eu apago, é que meu inglês é zoado, uso tradutor sempre pra confirmar o q to falando e o inglês do Darth é bizarro. Vlws pela atenção.


How get all records?

Hi there,
I have 2430 records in a table, and I need to get them all.
I need to loop through _p (page) or there is another way to get all records from a table?
thank a lot

You will ve to iterate through


Questions about Quadruped Example

While running the example, I noticed that when I set the contact states of all four legs to 1, indicating that they are all in contact with the ground, the calculated forces at each foot end up being the same value whatever the ref trajectroy i set.  I would appreciate a better understanding of how this example is intended to work.

Hi @lbt0116, thank you for your inquiry! It is important to note that the MPC examples in Ungar are designed to provide a high-level understanding of how optimal control problems (OCPs) can be solved over a receding horizon. The need for conciseness and a self-contained implementation means that the controller is not intended for production use.
When setting all contact states to 1 for all time steps, adjusting the yawRateReference to zero for feasibility, and maintaining the existing sinusoidal reference trajectory in the z-direction, I observed the expected ground reaction forces for tracking the robot's vertical movement. However, there might be a noticeable gap between the reference body height and the measured one. This discrepancy is a result of the chosen objective function and the simplistic way reference footholds are computed.
In the objective function, the line:
value += (r - rRef).squaredNorm();

assigns equal priority to tracking foothold positions (relative to the base) and base tracking. Furthermore, there is such a cost term for each foot of the robot: this easily leads to conflicts, where the robot prioritizes the former goal over the latter. It is worth noting that this behavior is expected because the example's primary purpose is to showcase library functionalities, rather than serving as a full-fledged quadrupedal locomotion MPC controller.
While there is room for improvement, the key point is that the optimizer performs its intended function. If you have further questions, feel free to ask!

Thank you very much for your answer! I will try to deploy Ungar on a physical robot.


Disabling the ESLint Rule prefer-object-spread

Problem:
The  currently implemented prefer-object-spread ESLint rule pushes for using the spread operator ({...obj}) instead of Object.assign() when copying or merging objects. While the spread operator is modern and concise, this rule can limit developers’ ability to pick the most appropriate method based on specific use cases.
Solution:
Disabling the prefer-object-spread rule allows developers to select the most appropriate method for their context, without being constrained by a strict rule. This adjustment supports a more flexible approach, enabling developers to make decisions based on performance and other factors.
For example, in a recent case, switching from the spread operator to Object.assign() improved performance. The spread operator creates intermediate objects during the merge process, which can lead to higher memory usage and slower execution, especially with large or numerous objects. By using Object.assign(), which performs the merge operation more directly and efficiently, memory usage and performance were significantly improved.
This change was necessary to overcome performance issues and was implemented by disabling the ESLint rule with:
// eslint-disable-next-line prefer-object-spread
const errorSources = Object.assign({}, reportErrors, reportErrorFields, reportActionErrors);

Although this solved the problem, disabling ESLint rules isn't always ideal. It’s better to adapt the rules to strike a balance between code quality and performance needs.
This change involves only a minor update to the ESLint configuration  and doesn’t require any major code changes. It’s a low-effort change that significantly enhances developer choice and code quality:
{
  "rules": {
    "prefer-object-spread": "off"
  }
}

Discussion here: https://expensify.slack.com/archives/C05LX9D6E07/p1726226725648319
@OlimpiaZurek, please reopen this issue once the P/S has been updated and approved in Slack. Thanks!

@isabelastisser I updated the P/S in Slack and also the description of the issue, but I can't reopen it.


Clear command in terminal doesn't clear history

When I run the clear command in the Terminal, the content that I currently see in the view gets cleared, but I can still scroll and see that content. I'm thinking that right now it just adds a few new lines and scrolls to the bottom?

This is the default terminal behaviour, no?

I thought so too!?

you guys are right, my bad! closing this 😅


Assigned value to a "Normal" variable in ground.vert file.

Fixed bug with a variable consumed by fragment shader not being assigned in a vertex shader. Updated spv file. Added bat file for automatic SPIR-V generation.

Thx 👍 Oddly my validation layers (built from source) won't complain about this, even though they should.
Just a quick note for the .bat files for shader compilation: I added a python script some time ago in the shader root folder that can be used to generate SPIR-V binaries for all shaders in a given directory. That's why I don't add .bat files to new projects anymore.


HDMI Output Does Not Work

Gratitude
Thank you so much for this awesome setup! I am so thrilled to have it available!
Batocera Specs

Type
Spec

Astro City Mini Version
Alpha 0.2

Batocera Version
batocera-sunxi_r16-acm-36-20221206.img

Problem
When I boot to Batocera I am unable to use the HDMI output on the back of the device to output it to a different monitor.
I have tried looking in the settings menu and tweaking multiple different things, but there is nothing that seems to let me output this to a different monitor using the back port of the Sega Astro City Mini

Question
Is it possible yet to use the HDMI to output to a different monitor?

Ok - I'm closing this as I don't really know what happened.
I waited until the device booted and then connected the HDMI, which then output to the other monitor.
And then I turned it off and restarted with it still connected and it still booted up to the monitor.
Thanks again for everything!


move clamp from number to comparable

fixes https://github.com/crystal-lang/crystal/issues/8521

Is the test_preview_mt a blocker?
I see if fail often.

No, multithreading is only a preview and there are known issues with that. You can just ignore it.

@straight-shoota awesome!
So is this ready to merge?


May i know how do i change the loading image Kirki Customizer Framework

Issue description:
Sorry, it is not Issue,
May i know how do i change the loading image Kirki Customizer Framework?
Version used:
(Did you try using the develop branch from GitHub? There's a chance your issue has already been addressed there)
Version 3.1.6
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))

The custom loading indicatore was removed in Kirki 4.


URL image embed/preview

Would be nice if you could allow some channels and/or domains for image/video fetching and embedding if possible.

+1 to this. Link previews not shown at the moment for any link.


[mobile HTML5]when running in the backend , the videoplayer would not paused, and making noise.

Godot version
3.3.4.stable
System information
Android， HarmonyOS 2.0
Issue description
when running in the backend , the videoplayer would not paused, and making  noise.
Steps to reproduce
Run the Minimal reproduction project in mobile phone HTML5, then run into backend. and you will hear the noise.
Minimal reproduction project
videoPlayer_noise_making_in_mobile_html5.zip

@Chaosus Ypa！Can you figure out where the problem is？

I guess somewhere in modules/theora. Note that the video player itself has going to be removed from 4.0 branch (https://github.com/godotengine/godot-proposals/issues/3286)

But GDnative is not really good for html5.maybe I should try it for my project....
---Original---
From: "Yuri @.>
Date: Sat, Mar 12, 2022 12:27 PM
To: @.>;
Cc: "吾也君( Atem<EMAIL_ADDRESS>Subject: Re: [godotengine/godot] [mobile HTML5]when running in the backend ,the videoplayer would not paused, and making noise. (Issue #59053)
I guess somewhere in modules/theora. Note that the video player itself has going to be removed from 4.0 branch (godotengine/godot-proposals#3286)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

is there any signal when running frontend or backend? it maybe useful for my project.
---Original---
From: "Yuri @.>
Date: Sat, Mar 12, 2022 12:27 PM
To: @.>;
Cc: "吾也君( Atem<EMAIL_ADDRESS>Subject: Re: [godotengine/godot] [mobile HTML5]when running in the backend ,the videoplayer would not paused, and making noise. (Issue #59053)
I guess somewhere in modules/theora. Note that the video player itself has going to be removed from 4.0 branch (godotengine/godot-proposals#3286)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

If that can help you, I use the html video player and I communicate from Godot to the html with "JavaScript.eval()" function.

JavaScript is unsafe.I compiled the export module without it.
---Original---
From: "Stéphane @.>
Date: Thu, Mar 17, 2022 05:59 AM
To: @.>;
Cc: "吾也君( Atem<EMAIL_ADDRESS>Subject: Re: [godotengine/godot] [mobile HTML5]when running in the backend , the videoplayer would not paused, and making noise. (Issue #59053)
If that can help you, I use the html video player and I communicate from Godot to the html with "JavaScript.eval()" function.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>


JavaScript heap out of memory on v12.0.1

Firstly, thanks for the package, it's been working well for us so far.
We're currently using v10.2.6 and experiencing an issue when trying to upgrade to v12.0.1. After upgrading the functionality still seems to be working as expected on our dev machines, but our tests have started to crash locally and on GitHub Actions with the following error:
<--- Last few GCs --->

[727712:0x558b398e0aa0]    72203 ms: Scavenge 2017.1 (2073.6) -> 2014.1 (2075.1) MB, 5.8 / 0.0 ms  (average mu = 0.831, current mu = 0.579) allocation failure
[727712:0x558b398e0aa0]    72295 ms: Scavenge 2018.6 (2075.1) -> 2016.3 (2078.4) MB, 6.3 / 0.0 ms  (average mu = 0.831, current mu = 0.579) allocation failure
[727712:0x558b398e0aa0]    72379 ms: Scavenge 2021.8 (2078.4) -> 2019.1 (2095.9) MB, 9.1 / 0.0 ms  (average mu = 0.831, current mu = 0.579) allocation failure

<--- JS stacktrace --->

FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
 1: 0x558b375212b1 node::Abort() [/usr/bin/node]
 2: 0x558b3743e144 node::FatalError(char const*, char const*) [/usr/bin/node]
 3: 0x558b376fb782 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
 4: 0x558b376fb9e8 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
 5: 0x558b378bb656  [/usr/bin/node]
 6: 0x558b378e7add v8::internal::EvacuateNewSpaceVisitor::Visit(v8::internal::HeapObject, int) [/usr/bin/node]
 7: 0x558b378f254e void v8::internal::LiveObjectVisitor::VisitBlackObjectsNoFail<v8::internal::EvacuateNewSpaceVisitor, v8::internal::MajorNonAtomicMarkingState>(v8::internal::MemoryChunk*, v
8::internal::MajorNonAtomicMarkingState*, v8::internal::EvacuateNewSpaceVisitor*, v8::internal::LiveObjectVisitor::IterationMode) [/usr/bin/node]
 8: 0x558b37912741 v8::internal::FullEvacuator::RawEvacuatePage(v8::internal::MemoryChunk*, long*) [/usr/bin/node]
 9: 0x558b378e2e25 v8::internal::Evacuator::EvacuatePage(v8::internal::MemoryChunk*) [/usr/bin/node]
10: 0x558b378e30f7 v8::internal::PageEvacuationTask::RunInParallel(v8::internal::ItemParallelJob::Task::Runner) [/usr/bin/node]
11: 0x558b378d4bc9 v8::internal::ItemParallelJob::Run() [/usr/bin/node]
12: 0x558b378f0169 void v8::internal::MarkCompactCollectorBase::CreateAndExecuteEvacuationTasks<v8::internal::FullEvacuator, v8::internal::MarkCompactCollector>(v8::internal::MarkCompactColle
ctor*, v8::internal::ItemParallelJob*, v8::internal::MigrationObserver*, long) [/usr/bin/node]
13: 0x558b37910c45 v8::internal::MarkCompactCollector::EvacuatePagesInParallel() [/usr/bin/node]
14: 0x558b37910f59 v8::internal::MarkCompactCollector::Evacuate() [/usr/bin/node]
15: 0x558b379118f3 v8::internal::MarkCompactCollector::CollectGarbage() [/usr/bin/node]
16: 0x558b378c8e9f v8::internal::Heap::MarkCompact() [/usr/bin/node]
17: 0x558b378c98a8 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/bin/node]
18: 0x558b378c9ea7 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
19: 0x558b378cd54c v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
20: 0x558b378cd5b4 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
21: 0x558b378924be v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/usr/bin/node]
22: 0x558b3788c5a2 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawArray(int, v8::internal::AllocationType) [/usr/bin/node]
23: 0x558b3788c654 v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArrayWithFiller(v8::internal::Handle<v8::internal::Map>, int, v8::internal::Handle<v8::internal::Oddball>, v8::int
ernal::AllocationType) [/usr/bin/node]
24: 0x558b37accfac v8::internal::OrderedHashTable<v8::internal::OrderedHashSet, 1>::Allocate(v8::internal::Isolate*, int, v8::internal::AllocationType) [/usr/bin/node]
25: 0x558b37acd17c v8::internal::OrderedHashTable<v8::internal::OrderedHashSet, 1>::Rehash(v8::internal::Isolate*, v8::internal::Handle<v8::internal::OrderedHashSet>, int) [/usr/bin/node]
26: 0x558b37acd7e1 v8::internal::OrderedHashTable<v8::internal::OrderedHashSet, 1>::Shrink(v8::internal::Isolate*, v8::internal::Handle<v8::internal::OrderedHashSet>) [/usr/bin/node]
27: 0x558b37bb8c66 v8::internal::Runtime_SetShrink(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
28: 0x558b37f33199  [/usr/bin/node]

This occurs after a test which usually takes the order of a few ms on v10.2.6 hangs for several seconds on v12.0.1. The memory usage of the app is usually low (~150MB) under normal operation, so I'm not sure what could be pushing it up so much. I don't want to just increase the heap size without understanding the underlying cause.
I was wondering if you may be able to give me some pointers as to where I should start before I dive deep into trying to debug this? We're using the namespace option during testing if that's relevant in any way.

Oh, and it's worth adding that the issue does not occur on v12.0.0 - it's specific to v12.0.1.

Hi @bausmeier. Thanks for reporting. I'll review what changed in v12.0.1

this is the only commit which had significant changes in v12.0.1. I can't see anything which would obviously cause a heap space issue. I don't suppose you're able to reproduce with in a public test case?

I'll see if I can extract some code which reproduces it to a public repo.

I started down the path of extracting a minimal reproduction from our codebase, but that turned out to be a lot of effort so I've abandoned that idea.
I decided to capture and compare heap snapshots instead and I've found something interesting, but haven't narrowed down the cause yet. Between the two snapshots I took hundreds on thousands of TypeErrors with the message "Cannot read property 'on' of undefined" were added to the heap as pendingUnhandledRejections, and they seem to be coming from within rascal. Here's a screenshot of one of them, with one of the frames of the stack trace expanded:

I haven't pinpointed where it's coming from yet, but will continue to dig. It seems like something is trying to attach an event handler to an emitter which has already been cleaned up, and that the error might be triggering a tight or infinite loop.

It looks like it's likely related to the note in the README  under Channel Pooling:

Unfortunately there is a bug in generic-pool's implementation, which means that if the pool fails to create a channel, it can enter a tight loop, thrashing your CPU and potentially crashing your node process due to a memory leak. While we assess the long term use of pooling, we have put in a workaround. Errors will only be rejected after a configurable delay. This defaults to one second but can be overriden through the rejectionDelayMillis pool attribute.

And the comment linked to says:

I think I might have found something that might explain this -- you need to make sure your create promise does not fail.
I just spent some time debugging this issue, and it looks like node-pool will retry create in a tight loop, so if your pool does something expensive (which is why you're pooling in the first place), it will cause memory to run away.

So I suspect that the TypeError which I mentioned above is being thrown from within the create function, triggering that behaviour in the pool.

Is it possible that we need a check similar to:
https://github.com/guidesmiths/rascal/blob/5a1ff23f455ee747f96dd0d333d36c971def4dc3/lib/amqp/Subscription.js#L58-L61
(Which was added in the commit you linked to above)
Before trying to attach the listeners to the channel when it is created:
https://github.com/guidesmiths/rascal/blob/5a1ff23f455ee747f96dd0d333d36c971def4dc3/lib/amqp/Vhost.js#L210-L211
I'm obviously not familiar with the code, but it looks like channel can be undefined at that point if this condition has been hit:
https://github.com/guidesmiths/rascal/blob/5a1ff23f455ee747f96dd0d333d36c971def4dc3/lib/amqp/Vhost.js#L326
Because my tests are creating and shutting down brokers quickly it's possible that some unrelated async code is trying to acquire a connection after the broker has already started shutting down. I will try and isolate the tests better so that doesn't happen, but it seems like this is an underlying bug.

That's some excellent sleuthing. I strongly suspect you're right. I guess the options are to treat null as we do errors in the channel pool create code, or instead of yielding null, to yield an error and handle that elsewhere. I'll try to get to this asap.

Thanks, no rush getting to this - the previous version is working perfectly fine for us at the moment. We'd just like to try and keep our dependencies up to date.
I hacked some handling into the code to treat missing channels in the same way as errors in the create function, and that slowed the memory leak down, but didn't solve it. My tests ended up timing out instead of crashing, so at least that's some progress :laughing: There's potentially an issue with async handling in my tests as well, but I think that the undefined channel might need to be handled as a special case rather than an error.
Let me know if you need any more info or some help testing.

I've pushed what I hope is a fix to GitHub, but not published to npm yet. The fix has two parts...

When the broker forewarns a vhost of impending shutdown it calls pauseChannelAllocation, which pauses the channel creator queue and also the regular and confirm channel pools. After this it resumes the channel creator queue, which is necessary for reliable shutdown of subscribers

If the channel creator queue yields null, the channel pool will defer a rejection as it does with errors. This should mean the pool doesn't enter a tight loop, although since the pools have been paused this may never happen.

I was only able to reproduce the error by shutting down the broker while publishing furiously. Even then I had to comment out a callback at the end of the forewarn function before I saw the problem. Would you be willing to try the a rascal build from github and re-run your test please?

It works! :tada:
Pausing the channel allocation does the trick on its own, but deferring the rejection as well makes sense to me as an extra defensive mechanism.
Thanks so much for your help! I'm happy to close this issue with the next release, or now if you prefer.

Published as<EMAIL_ADDRESS>Thank you very much for your help tracking this one down, it really was some excellent work on your part.


 The operation sets both the Z height and the Y position where it touched the part to zero in the DRO and G94.
Since this is a long piece of stock, I then jog along the x-axis to visually pick the point where I want X to be zero. Hit the Zero button beside X and the code generates an "ioSender Unhandled exception occurred" and exits.
Not the end of the world, since the program can be restarted. The TLO and and Home machine position are not lost. After a restart, it is willing to accept the button press to zero the X axis DRO value (and the G94 workspace).

Which ioSender version?
Is this issue repeatable?

ioSender XL is at version 2.0.41
For me, this error happens every time (is perfectly repeatable). I've also seen it after other probing operations, but the only one  that I know is repeatable is using the edge finder to probe a single edge (always tested on the bottom side of the X axis) along with Z.

I am not able to replicate with the latest edge version. Can you with try that?
If this fails to then:
If you do not jog the X-axis before zeroing X does it still fails?
Zeroing any other axis is ok?
BTW I am using Win10.

There was no change from using the Edge version.
It does not matter if one jogs or not, prior to pushing the "zero" button.
I didn't answer your last question about the other axes...because something else jumped out. I think this will help point in the exact direction of the problem.
What I noticed was: On the grbl tab, everything works properly. On the probing tab, it does not. In other words, the zero button next to the "X" DRO box works fine if it is on the grbl tab...but not for the one on the Probe tab.
I'd bet that your attempt to replicate used the grbl tab. So, the problem did not occur.
I also noticed that the error message is not exactly what I documented. The full message is:
Dispatcher Exception. Unhandled exception occurred.
Object reference not set to an instance of an object.

I overlooked the DRO in the probing tab - it was not correctly initialized. New edge versions just uploaded with fix,
Note that I have disabled position entry in this DRO, it behaves strangely and I need more time to sort that out.
Oh, and the issue had nothing to do with the probing sequence at all...

Thanks.
After my last response, I realized that I only used that page/DRO after doing a probe and I'd never tested setting zero without dong the probe.
Thanks for the quick fix!


Fix filter connector issue related to package import

Fix #3137

Closing this PR as we have reworked filter connector concept. Hence this fix is invalid with current master.


Remove omero_server_systemd_require_network

Many OSes are moving away from the network.service scripts, so we shouldn't require it, especially since this still has "After=network.service" which means start after the network.service if it's enabled, otherwise ignore.
I'm undecided on whether this can go in alongside https://github.com/ome/ansible-role-omero-server/pull/50 which is an example of a distribution that uses an alternative to network.service since it shouldn't break existing deployments (since After=network.service is kept) or whether it counts as a breaking change.

Conflicting PR. Removed from build ANSIBLE-ROLES-merge#1061. See the console output for more details.
Possible conflicts:

PR #50 manics 'Add Ubuntu 18.04'

molecule/upgrade-py2py3/molecule.yml
molecule/python3/molecule.yml

--conflicts

Conflicting PR. Removed from build ANSIBLE-ROLES-merge#1062. See the console output for more details.
Possible conflicts:

PR #50 manics 'Add Ubuntu 18.04'

molecule/upgrade-py2py3/molecule.yml
molecule/python3/molecule.yml

--conflicts

See https://github.com/ome/ansible-role-omero-server/pull/55 instead

See https://github.com/ome/ansible-role-omero-server/pull/55 instead


Is my code right to use batch normalization layers in tensorflow?

I have two inputs: qi_pos & qi_neg with the same shape. They should be processed by the two mlp layers, and finally get two results which acts as score. Here is my codes:
  self.mlp1_pos  =    nn_layers.full_connect_(qi_pos,        256, activation='relu', use_bn = None, keep_prob=self.keep_prob,  name = 'deep_mlp_1')
  self.mlp2_pos  =    nn_layers.full_connect_(self.mlp1_pos, 128,  activation='relu', use_bn = True, keep_prob=self.keep_prob,  name = 'deep_mlp_2')
  self.pos_pair_sim = nn_layers.full_connect_(self.mlp2_pos,  1,  activation=None, use_bn = True, keep_prob=self.keep_prob,  name = 'deep_mlp_3')
  tf.get_variable_scope().reuse_variables()
  self.mlp1_neg  =    nn_layers.full_connect_(qi_neg,        256, activation='relu', use_bn = None, keep_prob=self.keep_prob,  name = 'deep_mlp_1')
  self.mlp2_neg  =    nn_layers.full_connect_(self.mlp1_neg, 128,  activation='relu', use_bn = True, keep_prob=self.keep_prob,  name = 'deep_mlp_2')
  self.neg_pair_sim = nn_layers.full_connect_(self.mlp2_neg,  1,  activation=None, use_bn = True, keep_prob=self.keep_prob,  name = 'deep_mlp_3')

I use BN layer to normalize the nodes in hidden layers:
def full_connect_(inputs, num_units, activation=None, use_bn = None, keep_prob = 1.0, name='full_connect_'):
  with tf.variable_scope(name):
    shape = [inputs.get_shape()[-1], num_units]
    weight = weight_variable(shape)
    bias = bias_variable(shape[-1])
    outputs_ = tf.matmul(inputs, weight) + bias
    if use_bn:
        outputs_ = tf.contrib.layers.batch_norm(outputs_, center=True, scale=True, is_training=True,decay=0.9,epsilon=1e-5, scope='bn')
    if activation=="relu":
      outputs = tf.nn.relu(outputs_)
    elif activation == "tanh":
      outputs = tf.tanh(outputs_)
    elif activation == "sigmoid":
      outputs = tf.nn.sigmoid(outputs_)
    else:
      outputs = outputs_
    return  outputs

   with tf.name_scope('predictions'):
      self.sim_diff = self.pos_pair_sim - self.neg_pair_sim # shape = (batch_size, 1)
      self.preds = tf.sigmoid(self.sim_diff) # shape = (batch_size, 1)
      self.infers = self.pos_pair_sim

Below is the loss definition.It seems all right.
with tf.name_scope('predictions'):
sim_diff = pos_pair_sim - neg_pair_sim
predictions = tf.sigmoid(sim_diff)
self.infers = pos_pair_sim
loss and optim
with tf.name_scope('loss'):
self.loss = nn_layers.cross_entropy_loss_with_reg(self.labels, self.preds)
tf.summary.scalar('loss', self.loss)
I am not sure whether I have use the BN layers in right way. I mean that the BN parameters are derived from the hidden units from the two separate parts, which are based on qi_pos and qi_neg tensors as inputs. Anyway, anyone could help check it ?

This question is better asked on  StackOverflow since it is not a  bug or feature request. There is also a larger community that reads questions there. Thanks!


GDScript: Add @deprecated and @experimental doc comment tags

These attributes are already available in the core documentation, so I think making it available in GDScript documentation is an obvious step. The @tag syntax is already used (@tutorial) and is similar to JavaDoc.
## Decription
## @experimental
## @deprecated
var a

Added support for multiline doc comments for enum values:
## Enum description.
## @experimental
## @deprecated
enum MyEnum {
    ## Enum value 0 description.
    ## @experimental
    ## @deprecated
    VALUE_A,
    ## Enum value 1 description.
    ## @experimental
    ## @deprecated
    VALUE_B,
}

Regarding inline (single line) doc comments:

they don't always work correctly - for multiline definitions (functions, classes);
they don't support tags and, obviously, multiline [codeblock]s.

Test script 1 - multiline doc comments
extends Node
## Class brief.
##
## Class description.
##
## @tutorial: https://url.com
## @experimental
## @deprecated

## Nested class brief.
##
## Nested class description.
##
## @tutorial: https://url.com/nested/
## @experimental
## @deprecated
class Inner:
    ## Nested class var description.
    ## @experimental
    ## @deprecated
    var a

## Var description.
## @experimental
## @deprecated
var a

## Const description.
## @experimental
## @deprecated
const A = 1

## Signal description.
## @experimental
## @deprecated
signal s()

## Func description.
## @experimental
## @deprecated
func f():
    pass

## Enum description.
## @experimental
## @deprecated
enum MyEnum {
    ## Enum value 0 description.
    ## @experimental
    ## @deprecated
    VALUE_A,
    ## Enum value 1 description.
    ## @experimental
    ## @deprecated
    VALUE_B,
}

Test script 2 - inline doc comments
extends Node

class Inner: ## Nested class brief.
    var a ## Nested class var description.

var a ## Var description.

const A = 1 ## Const description.

signal s() ## Signal description.

func f(): ## Func description.
    pass

enum MyEnum { ## Enum description.
    VALUE_A, ## Enum value 0 description.
    VALUE_B, ## Enum value 1 description.
} ## End enum.

I added the PR to the PRs to review by the team.

I simplified the code a bit. Actually, I'd like to fix the single-line doc comments and some edge cases, but the full syntax already looks fine and further improvements don't related directly to the PR title.

For posterity and documentation purposes, this reintroduces an EnumDoc struct, which is slightly different to the one originally removed by #72095. Back then, I found the EnumDoc struct was created during docgen but then not actually used, so I removed it. A single String was enough to implement all the features required at the time.
But with experimental and deprecated flags, that information needs to be stored somewhere, so it makes sense this struct had to be reintroduced :)

What about implementing the @deprecated and @experimental doc tags as function/enum/var annotation?
@deprecated("Use [that function] instead")
func my_func():
    pass

Discussed in the meeting after the approval: what about implementing the @deprecated and @experimental doc tags as function/enum/var annotation?
@deprecated("Use [that function] instead")
func my_func():
    pass

It could make it so that it would be usable by other systems than just the documentation?

I like this a lot - so these flags could actually exist within the GDScript typing datastructures themselves, like ClassNode, FunctioNode, etc :)

It could make it so that it would be usable by other systems than just the documentation?

In theory, we can use doc comments for other systems as well. Note that this uses the BBCode Editor Help markup.
## @deprecated Use [method function] instead.

This is implemented this way for the most part only because the data is stored in DocData, and not in ClassDB for example, and it seemed logical to process this with descriptions. Also currently deprecated and experimental are boolean attributes, not strings. We could change it, but this is a core issue.
The only significant difference between annotations and doc comments is that annotations support constant expressions as arguments. In theory, you might want to do something like
const DEPRECATED_TEMPLATE = 'Property "%s" is deprecated. Do not use it.'

@deprecated(DEPRECATED_TEMPLATE % "a")
var a

@deprecated(DEPRECATED_TEMPLATE % "b")
var b

but this seems to be a bit of a far-fetched example.

Thanks!

cool


stringifying circular structure can lead to no report in bugsnag

Hi,
I tried to use this lib but when I throw an error in some bigger component meaning with more dependencies which have their own deps then I get
[bugsnag] TypeError: Converting circular structure to JSON
    at Object.stringify (<anonymous>)
    at stringify (bugsnag.js:796)
    at _$payload_20 (bugsnag.js:1756)
...

in other words, a report is not sent afterward because it is not even able to stringify it...
It would be nice to have all the info about a component but it is very dangerous as it can break a code and not send a report to bugsnag
the problematic part is:
https://github.com/bugsnag/bugsnag-angular/blob/master/src/index.ts#L24
and context as well

I found a way to reproduce this. If an object implements a toJSON method and it returns a circular structure, it results in this error:
var obj = {}

obj.toJSON = function () {
  var a = {}
  a.a = a
  return a
}

obj.toJSON.forceDecirc = true

bugsnagClient.notify(new Error('Circ'), {
  metaData: { obj: obj }
})

We'll look into a fix for it.

This should now be fixed as of bugsnag-js v4.6.0. Please upgrade!


XPath expression generates unexpected error

I encountered an issue while attempting to utilize the following XPath expression:
(//span[contains(@class, "hello")])[1]
Error Message:
Invalid character '(' at position 0, line 1:
(//span[contains(@class, "hello")])[1]
^

I believe that this XPath expression is valid and should work correctly.
Version: v0.45.2

hmm isnt this xpath 2.0? or 3.0? we support xpath 1.0 (but theres a PR for xpath 2/3)


Fixing missing commas in example

Fixing the monitor JSON Example
Description
In the example, the commas are missing, which lead me to a short hiccup…
Now it is proper JSON and works right out of the box.

Damn, that's something I really shouldn't have missed. Thanks a lot!


Add testing modes to allow energizing individual elements

Create a push button screen to allows energizing one element set only.

Completed.


MIF code cleanup

Note: this is only cleanup work. I will carry out a scientific validation later, not before the Xmas break.

Replace explicit loops with stdlib implicit equivalents
Replace explicit types with auto where possible
Avoid unnecessary copy operations where possible
Replace raw pointers with exception-safe unique_ptr
Replace C-style #define with constexpr
Replace C-style casts with C++ casts
Replace C-style arrays with std::vector
Avoid code duplication with templated operators
Replace VdWaals class taking multiple atom type definitions and force-field name as string parameter with force-field-specific classes deriving from an abstract VdWaals class
Replace x,y,z doubles with Point3D class where possible
Removed unused (and untested) DistanceToClosestAtom class
Renamed some variables and functions for better clarity
Converted tabs to spaces
Made the mol parameter in cube read/write functions optional for convenience
Made the Python wrappers more pythonic (e.g., avoid C++-style passing objects as parameters which are modified in place)
Implemented alternative Python class constructors using boost::python::make_constructor rather than with external non-class functions
The Python wrappers taking a sequence of Point3D now take a sequence of sequences, such that the output of Conformer.GetPositions() can be passed
Made the Python wrapper sequence parsing more robust
Removed duplicated code from Python wrappers

@ptosco I'm going to accept most/all of this, make a bunch of other changes, and then update this branch.
Since I already did the merge on my local machine before I started experimenting, I won't actually merge the PR here
I will ping you and close this PR when I've done the update


updating github link and streetview image

changed link at Ben's request and image at Dan's request

LGTM. Let me know if you have trouble merging. I changed some settings since last time we tried this but I'm not yet sure that the permissions are correct

I'm going to go ahead and merge this. I'm working on some other changes related to projects and would prefer to iron out the conflicts after your PR is merged rather than create a bunch of conflicts for you to fix


PR-35: Make error message more informative

Rather than printing raw data as in #35, I'm making it a little more user-friendly.  The debug output will still contain the full raw output.  Sample error:
Error: node_manager failed with error type 'schema-violation': The object(s) in your submitted request did not conform to the schema. The problem is: ([:rule "The rule is malformed. Please consult the group documentation for details on the rule grammar."])

@reidmv This is in response to #35.


Latest SNAPSHOT was not published in maven properly

I found that latest 2.3-SNAPSHOT was not published properly at sonatype-snapshots maven.
There is missing artefact org.eclipse.rdf4j:rdf4j:pom:2.3-20170901.145510-11 .
I found only pom.asc\(\..*\) files.

Fixed in latest builds.


urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /chromium-browser-snapshots/Linux_x64/575458/chrome-linux.zip (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))

This issue also relates to the following issue
I am trying to run the following command
wplay -wc firstname_lastname
Then I select New session
but the following error is thrown
I am currently on a 32bit system
[W:pyppeteer.chromium_downloader] start chromium download.
Download may take a few minutes.
Traceback (most recent call last):
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 485, in wrap_socket
    cnx.do_handshake()
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1934, in do_handshake
    self._raise_ssl_error(self._ssl, result)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1671, in _raise_ssl_error
    _raise_current_error()
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/connectionpool.py", line 672, in urlopen
    chunked=chunked,
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/connectionpool.py", line 376, in _make_request
    self._validate_conn(conn)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
    conn.connect()
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/connection.py", line 360, in connect
    ssl_context=context,
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 370, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 491, in wrap_socket
    raise ssl.SSLError("bad handshake: %r" % e)
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bhupesh/Documents/defe/bin/wplay", line 5, in <module>
    from wplay.__main__ import main
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/wplay/__main__.py", line 114, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/wplay/__main__.py", line 108, in main
    await match_args(args)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/wplay/__main__.py", line 85, in match_args
    await wchat.chat(args.name)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/wplay/wchat.py", line 7, in chat
    page, _ = await pypConfig.configure_browser_and_load_whatsapp()
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/wplay/utils/pyppeteerConfig.py", line 44, in configure_browser_and_load_whatsapp
    browser = await __config_browser(username, save_session)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/wplay/utils/pyppeteerConfig.py", line 85, in __config_browser
    return await launch(headless=False, autoClose=False)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/pyppeteer/launcher.py", line 311, in launch
    return await Launcher(options, **kwargs).launch()
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/pyppeteer/launcher.py", line 125, in __init__
    download_chromium()
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/pyppeteer/chromium_downloader.py", line 136, in download_chromium
    extract_zip(download_zip(get_url()), DOWNLOADS_FOLDER / REVISION)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/pyppeteer/chromium_downloader.py", line 78, in download_zip
    data = http.request('GET', url, preload_content=False)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/request.py", line 76, in request
    method, url, fields=fields, headers=headers, **urlopen_kw
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/request.py", line 97, in request_encode_url
    return self.urlopen(method, url, **extra_kw)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/poolmanager.py", line 330, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/connectionpool.py", line 760, in urlopen
    **response_kw
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/connectionpool.py", line 760, in urlopen
    **response_kw
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/connectionpool.py", line 760, in urlopen
    **response_kw
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/connectionpool.py", line 720, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/bhupesh/Documents/defe/lib/python3.6/site-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /chromium-browser-snapshots/Linux_x64/575458/chrome-linux.zip (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))

@Bhupesh-V I don't know exactly what is happening but there might be any connection error or any installation error because at first it should download the chromium browser but at that time the error started.
I suggest you to uninstall it and install the whatsapp-play again.

https://github.com/ritiek/spotify-downloader/issues/480 might be helpful :)

@Bhupesh-V I don't know exactly what is happening but there might be any connection error or any installation error because at first it should download the chromium browser but at that time the error started.
I suggest you to uninstall it and install the whatsapp-play again.

Chromium is downloaded automatically when wplay starts.

@Bhupesh-V  which urllib3 version you're using? I use urllib3==1.25.8.
If isn't the same version try: pip3 install urllib3==1.25.8

Maybe is related to the firewall in the port 443 too.

I suggest you to uninstall it and install the whatsapp-play again.

Well this worked
But apparently my system is not supported for its execution (No build for 32bit Architecture)

32 bit Architecture not supported. Maybe in the future we add selenium again, as an alternative .

I change the version of urllib from 1.26.4 to 1.25.8, and it works.

Hi
I have another issue on windows and raspberry pi
but I think it's pyppeteer problem.
[W:pyppeteer.chromium_downloader] start chromium download.
Download may take a few minutes.
100%|█████████████████████████████████████| 193/193 [00:00<00:00, 379334.90it/s]
[W:pyppeteer.chromium_downloader]
chromium download done.
Process Killed!
Traceback (most recent call last):
  File "/home/pi/.local/bin/wplay", line 6, in <module>
    from wplay.__main__ import main
  File "/home/pi/.local/lib/python3.7/site-packages/wplay/__main__.py", line 216, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/home/pi/.local/lib/python3.7/site-packages/wplay/__main__.py", line 209, in main
    await get_and_match_args(parser)
  File "/home/pi/.local/lib/python3.7/site-packages/wplay/__main__.py", line 192, in get_and_match_args
    await get_media.get_profile_photos()
  File "/home/pi/.local/lib/python3.7/site-packages/wplay/get_media.py", line 20, in get_profile_photos
    page, _ = await browser_config.configure_browser_and_load_whatsapp()
  File "/home/pi/.local/lib/python3.7/site-packages/wplay/utils/browser_config.py", line 59, in configure_browser_and_load_whatsapp
    browser = await __config_browser(username, save_session)
  File "/home/pi/.local/lib/python3.7/site-packages/wplay/utils/browser_config.py", line 129, in __config_browser
    return await launch(headless=False, autoClose=False)
  File "/home/pi/.local/lib/python3.7/site-packages/pyppeteer/launcher.py", line 306, in launch
    return await Launcher(options, **kwargs).launch()
  File "/home/pi/.local/lib/python3.7/site-packages/pyppeteer/launcher.py", line 119, in __init__
    download_chromium()
  File "/home/pi/.local/lib/python3.7/site-packages/pyppeteer/chromium_downloader.py", line 146, in download_chromium
    extract_zip(download_zip(get_url()), DOWNLOADS_FOLDER / REVISION)
  File "/home/pi/.local/lib/python3.7/site-packages/pyppeteer/chromium_downloader.py", line 134, in extract_zip
    with ZipFile(data) as zf:
  File "/usr/lib/python3.7/zipfile.py", line 1222, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.7/zipfile.py", line 1289, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

I change the version of urllib from 1.26.4 to 1.25.8, and it works.

it still doesnt work


[Add Covid-19 blog site]

Description
I will build a covid based blogging site which will contain all the details including its precautions, safety, causes, prevention etc.
Tech Stacks : HTML, CSS, Bootstrap, Javascript.
Screenshots
No response

Hey @SauravMukherjee44 , as a GSsOC '22 contributor, I'm very excited to work on it. Could you please assign me this.

@bosedipayan actually it's not relevant.


y-scale on variant density

Especially when zoomed in, a scale on the y-axis would be very useful.

Maybe just include a scale of 0 - 1 or 0 - 100%


Two errors with approving nodes

First:
root@global-lb:/home/itsadashuser# bacalhau node list --help
List info of network nodes.
Usage:
bacalhau node list [flags]
Flags:
...
--order-by string     Order results by a field. Valid fields are: id, type, available_cpu, available_memory, available_disk, available_gpu
...
Order by "approval (or whatever the field is)" is not listed.
root@global-lb:/home/itsadashuser# bacalhau node list --order-by approval
failed request: Unexpected response code: 400 ({
  "error": "code=400, message=invalid order_by",
  "message": "invalid order_by"
})
root@global-lb:/home/itsadashuser#

Passing raw errors from the server back as a 400 error should never be done

Might be worth putting the raw errors into another ticket because that's not specific to approval or node tasks, it is all of the v2 API

tracking improving returned errors here https://github.com/bacalhau-project/bacalhau/issues/3791


Can we split pyast.cpp into multiple files?

When we compile NMODL with non-gcc compiler (e.g. Intel, PGI), pyast.cpp takes huge time too compile.
I wonder if this could be split / printed into multiple CPP files.
@ohm314 : what do you think?

Related question : when we call sympy through one of the ODE solver, is nmodl python module used? I assume not.

I was profiling compilation time with -time:
time /gpfs/bbp.cscs.ch/tds/home/kumbhar/soft/install/linux-rhel7-x86_64/gcc-8.3.0/pgi-19.10-64jfse/linux86-64-llvm/19.10/bin/pgc++  -D_nmodl_EXPORTS -I/gpfs/bbp.cscs.ch/ssd/apps/hpc/jenkins/deploy/tools/2020-02-01/linux-rhel7-x86_64/gcc-8.3.0/flex-2.6.3-3fjqz4ot4m/include -I/gpfs/bbp.cscs.ch/tds/home/kumbhar/workarena/systems/tds/repos/bbp/coreneuron/external/nmodl -I/gpfs/bbp.cscs.ch/tds/home/kumbhar/workarena/systems/tds/repos/bbp/coreneuron/external/nmodl/src -I/gpfs/bbp.cscs.ch/tds/home/kumbhar/workarena/systems/tds/repos/bbp/coreneuron/external/nmodl/build_1/src -I/gpfs/bbp.cscs.ch/tds/home/kumbhar/workarena/systems/tds/repos/bbp/coreneuron/external/nmodl/ext -I/gpfs/bbp.cscs.ch/tds/home/kumbhar/workarena/systems/tds/repos/bbp/coreneuron/external/nmodl/ext/cli11/include -I/gpfs/bbp.cscs.ch/tds/home/kumbhar/workarena/systems/tds/repos/bbp/coreneuron/external/nmodl/ext/pybind11/include -I/gpfs/bbp.cscs.ch/ssd/apps/hpc/jenkins/deploy/external-libraries/2020-02-01/linux-rhel7-x86_64/gcc-8.3.0/python-3.7.4-tfxecymrkn/include/python3.7m  -D__STDC_VERSION__=199901L -D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 -DJSON_SKIP_UNSUPPORTED_COMPILER_CHECK=1 --diag_suppress 611,997,82,111 --display_error_number -DEIGEN_DONT_VECTORIZE=1  -fPIC   --c++11 -A -o CMakeFiles/_nmodl.dir/pyast.cpp.o -c /gpfs/bbp.cscs.ch/tds/home/kumbhar/workarena/systems/tds/repos/bbp/coreneuron/external/nmodl/build_1/src/pybind/pyast.cpp -time -v -O0

And:
  Timing stats:
    init                    16 millisecs     0%
    parser              244267 millisecs    38%
    expand               38305 millisecs     5%
    schedule            356330 millisecs    55%
    assemble               482 millisecs     0%
    Total time          639400 millisecs
PGCC/x86-64 Linux 19.10-0: compilation successful
....
/gpfs/bbp.cscs.ch/tds/home/kumbhar/soft/install/linux-rhel7-x86_64/gcc-8.3.0/pgi-19.10-64jfse/linux86-64-llvm/19.10/share/llvm/bin/llc /tmp/pgc++7g1fX8fn8I6X.ll -march=x86-64 -mcpu=native -O0 -fast-isel=0 -non-global-value-max-name-size=4294967295 -x86-cmov-converter=0 -relocation-model=pic -filetype=obj -o CMakeFiles/_nmodl.dir/pyast.cpp.o

Action(ReadTIFile(./pyast.ti))
Unlinking /tmp/pgc++lg1fHJjMXV0O.il
Unlinking /tmp/pgc++Jg1fP-1OlQQ2.s
Unlinking /tmp/pgc++7g1fX8fn8I6X.ll
Unlinking /tmp/pgc++tg1f5Iv-b5lU.llvm

real	13m21.603s
user	12m56.559s
sys	0m21.714s

So 13 minutes to compile that file :)
cc: @iomaganaris

ast.hpp should also be split because most visitors only need a few Ast class definitions.

Definitely, the generated files are getting huge and compile time out of hand. We should generate those classes into multiple files. It's not entirely clear to me yet what's the best way to split them up.


[ACIX-254] Send metrics on failure alerts

What does this PR do?
Send metrics when failing job alerts are sent. This will be modified when job will be filtered by team
Part of this RFC

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


CLI dont generate the "/*" part of the PolicyDocument Resource URL Template

Before opening, please confirm:

[x] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
v15.5.0
Amplify CLI Version
4.49.0
What operating system are you using?
MacOS
Amplify Categories
function, api
Amplify Commands
codegen
Describe the bug
I added a lambda function to call GraphQL from Nodejs in Lambda. When I try to call the GraphQL API, I get an error "permission denied".
So I checked the Auth directives before, and all seems to be ok.
@auth(
    rules: [
      { allow: owner }
      { allow: groups, groups: ["Admin"] }
      { allow: groups, groupsField: "partner_id" }
      { allow: public, provider: iam }
    ]
  ) {

I checked the role permissions to. All was ok:
 {
              "Effect": "Allow",
              "Action": [
                "appsync:Get*",
                "appsync:List*",
                "appsync:Update*"
              ],
....

than I checked the ResourvePolicy.
Here I found the fix. I have to add by myself the last part of the URL Template. ->   "/*"
Than all is working.
"AmplifyResourcesPolicy": {
      "DependsOn": [
        "LambdaExecutionRole"
      ],
      "Type": "AWS::IAM::Policy",
      "Properties": {
        "PolicyName": "amplify-lambda-execution-policy",
        "Roles": [
          {
            "Ref": "LambdaExecutionRole"
          }
        ],
        "PolicyDocument": {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Effect": "Allow",
              "Action": [
                "appsync:GraphQL",
                "appsync:Get*",
                "appsync:List*",
                "appsync:Update*"
              ],
              "Resource": [
                {
                  "Fn::Join": [
                    "",
                    [
                      "arn:aws:appsync:",
                      {
                        "Ref": "AWS::Region"
                      },
                      ":",
                      {
                        "Ref": "AWS::AccountId"
                      },
                      ":apis/",
                      {
                        "Ref": "apiaivyGraphQLAPIIdOutput"
                      },
                      "/*"
                    ]
                  ]
                }
              ]
            }
          ]
        }
      }
    }

Expected behavior
Like before, the cli generates the   "/*" too in the CloudFormation files.
Reproduction steps
add a function, give it access to api.
GraphQL schema(s)

type Space
  @model
  @key(name: "BySecureHash", fields: ["secure_hash"], queryField: "spacesBySecureHash")
  @key(
    name: "ByPartnerIdByDate"
    fields: ["partner_id", "createdAt"]
    queryField: "spacesByPartnerIdByCreatedAt"
  )
  @key(name: "ByOwner", fields: ["owner"], queryField: "spacesByOwner")
  @key(name: "ByCareerId", fields: ["career_id"], queryField: "spacesByCareerId")
  @key(
    name: "ByPartnerUserIDByPartnerID"
    fields: ["partner_user_id", "partner_id"]
    queryField: "spacesByPartnerUserIDByPartner"
  )
  @auth(
    rules: [
      { allow: owner }
      { allow: groups, groups: ["Admin"] }
      { allow: groups, groupsField: "partner_id" }
      { allow: public, provider: iam }
    ]
  ) {
  id: ID!
  owner: ID!
  newsletter: Boolean
  progress: Int
  partner_id: ID!
  career_id: ID
  #users ID from Partner
  partner_user_id: String!
  secure_hash: String
  language: String
  ref_link: String
  matching_score_to_space_career: Float
  related_spaces: AWSJSON
  createdAt: String
  updatedAt: String
}

Log output

# Put your logs below this line

Additional information
No response

Hi @davidbiller this has been fixed but it is behind a feature flag to maintain backwards compatibility with existing projects. You can enable the generateGraphQLPermissions feature flag in your cli.json file to take advantage of the new policy generation

@edwardfoyle Okay. I see.
So I started my project long time ago, so If I understand it right, I have to add now the cli.json and add some entries.
I added this:
  {   "features": {     "appSync": {       "generateGraphQLPermissions": true     },     "graphQLTransformer": {       "addMissingOwnerFields": true,       "validateTypeNameReservedWords": true,       "useExperimentalPipelinedTransformer": false,       "enableIterativeGSIUpdates": false     },     "codegen": {       "useAppSyncModelgenPlugin": true,       "useDocsGeneratorPlugin": true     }   } }
and now after the creation of a lambda function and add permission to api, I got this:
                  "Fn::Join": [
                    "",
                    [
                      "arn:aws:appsync:",
                      { "Ref": "AWS::Region" },
                      ":",
                      { "Ref": "AWS::AccountId" },
                      ":apis/",
                      { "Ref": "apiaivyGraphQLAPIIdOutput" },
                      "/types/Mutation/*"
                    ]
                  ]
                }```

                is this good? Deprecated at May 2021. So I only can use this style right?

Do i have to upadte all Lambda functions now?


Missing file for proxy configuration to typings

Some people might run the angular2-seed behind some firewall and they need to setup the proxy configuration for npm, but typings does not use the npm proxy configuration and in this case, they have to use the .typingsrc file to configure the proxy for typings.
reference: https://github.com/typings/typings/issues/106

You're correct, this seems user environment specific. We may add a basic .typingsrc but I'd suggest to not to. In case of proxy configuration it might be even a good idea to add .typingsrc as entry in .gitignore in order to not make everyone in the team use proxy in case such is not required. What do you think?


[Ascend] Add interconnect-P2P_intraserver for Ascend

Add interconnect-P2P_intraserver for Ascend

you should not remove the origin contents at A100/README.md. instead, you should create a new file under ascend/


Platform/monitoring dashboards

@noramullen1 I added the enterprise dashboard image, added the links for the dashboard json fils, and updated the styles that turn the download links into buttons to emphasize them in the page layout.


Missing parameter for recent retry update

I'm going to open a PR to fix this ASAP
 buildtest-framework/README.rst
 ------------------------------
Traceback (most recent call last):
  File "/check.py", line 99, in <module>
    check_results = check_repo(file_paths, print_all, white_listed_urls,
  File "/check.py", line 71, in check_repo
    check_results = urlproc.check_urls(file, urls, retry_count, timeout)
  File "/core/urlproc.py", line 99, in check_urls
    do_retry = check_response_status_code(response, print_format)
TypeError: check_response_status_code() missing 1 required positional argument: 'print_format'

I wish GitHub actions had some way to check this outside of actions.

The good thing about our code structure is that you can use the pytests for that or use the check.py in offline mode. By offline mode here, I mean to comment the env variables at the beginning and replace them with some hard coded variables or even better variables read from a config file and that way you can run tests on your machine on any GitHub repo you want.

Just finished work - all looks good! I'll open a PR right now - there were some other changes I made to make the interface easier to see failures, etc. Stay tuned!

This is now fixed!


Okay, I pull up (okay, I pull up...)
Okay, I pull up (okay, I pull up...), hop out at the after party
Okay, I pull up (okay, I pull up...), hop out at the after party
Okay, I pull up (okay, I pull up...), hop out at the after party
Okay, I pull up (okay, I pull up...), hop out at the after party

Who are you.


scrollToIndex view position not consistent

Hi, thank you for building this package, It is really helpful.. especially for navigating between list items without providing the item height like FlatList and set initial item index when first viewing the list.
What bothering me now is the item position when the scrollToIndex is called. Sometime the target item is positioned at top, middle or even at the bottom container.
It only happen after calling the scrollToIndex method.
How can i fix this issue, if i remember it well on RN scrollview we can specify where we want the view positioned (top/middle/bottom by using 0.0-1.0 unit).

I'm working on it, soon an update

Try with new version: 0.2.1.
Some improvements:

scrollToIndex method accepts 2 new parameters:
viewPosition: 0.0 - 1.0, where 0 is at the top, 1 at the bottom and 0.5 in the middle
viewOffset: is a fixed number of pixels to offset the final target position
new prop initialScrollOffset to adjust the initial position of the scroll.
better rendering performace

Anyway, read the README.md file for better explanation.

Thanks for the update, but i think it still doesn't work. Checkout my app demo here scrollToIndex Demo

go to item 30 => the position is middle
go to item 56 => the position is above the window (partially visible)
go to item 182 => middle

Here is my code for navigating between item. I have set the viewPosition to 0
this._scrollView.scrollToIndex({
    index : this.state.goToAyah - 1,
    animated : false,
    viewPosition : 0
})

note that -1 is used for index based numbering

You're right, viewPosition is not respected when animated is set to false and the view is not yet ready on the native side.
It should be fixed in version 0.2.2.
Let me know.

@godness84 You are awesome mate 😄  it's working perfectly now.
I've been suffering from navigating the items in Flalist with variable items.
Any plan for adding support for IOS?
God bless you 👍

Thank you @ariona!
At the moment there is no plan for adding support for iOS, mostly because I don't know ObjectiveC/Swift :)


I get the channel flags when expecting the channel frequency

Am i doing something wrong ? : see below
     case IEEE80211_RADIOTAP_CHANNEL:
       printf("\tchannel frequency: %d\n", (u_int16_t)*iter->this_arg);
       break;

I am getting :
    channel frequency: 128

You're doing it wrong, you need *(uint16_t *)iter->this_arg

And to get the flags can I use  this ? :   *(uint16_t *)iter->(this_arg+2)


feat!: events, init, shutdown

This PR:

absorbs changes related to updating our proto generation plugin
adds change events when change messages received from flagd
adds shutdown

:warning: depends on https://github.com/open-feature/schemas/pull/99 (must be merged first). Will keep this as draft until then.
Fixes: https://github.com/open-feature/js-sdk-contrib/issues/382

I'm going to do one final smoke test of this (by running the js-sdk test suite with it) and then merge.


[BUG][PiP]: PictureInPicture callback are not called when PiP mode is entered from native controls

Version
v6 (Beta)
What platforms are you having the problem on?
iOS
Architecture
Old architecture
What happened?
onPictureInPictureStatusChanged & onRestoreUserInterfaceForPictureInPictureStop are never call if we enter PiP mode from native control
Reproduction
I will setup a reproduction repo soon.
Reproduction
Setup a video component with native control:
<Video
  source={{
    uri: 'https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
  }}
  style={styles.backgroundVideo}
  resizeMode={ResizeMode.CONTAIN}
  controls={true} // this is important
  onPictureInPictureStatusChanged={() => console.log('onPictureInPictureStatusChanged)}
  onRestoreUserInterfaceForPictureInPictureStop={() => console.log('onRestoreUserInterfaceForPictureInPictureStop)}
/>

Enter PiP mode from native control

notice that  onPictureInPictureStatusChanged log do not happen

Exit PiP mode from native control

notice that  onPictureInPictureStatusChanged & onRestoreUserInterfaceForPictureInPictureStop logs do not happen

Issue also happen if we disable controls & go to fullscreen because fullscreen use native control

I will investigate this & open a PR if find anything


Hook Import table instead of instruction to apply heap_*_override

It might make debugging more easy, especially when dealing with call stacks with heap_*_override functions.

Feel free to squash merge. The second commit is to fix the incorrect cherry-pick.


Update dependencies & adjust SegmentedBuf...

Please update dependencies to current versions. Consequently, SegmentedBuf and related need an additional bound T: 'static.
(I'll provide a PR.)

An example that it works: https://github.com/peter-kehl/axum_csv_to_json and (with a white-on-dark browser filter):


tests should fail for good reasons only

Fixes the following test error that happened far too often.

Coverage increased (+0.08%) to 88.675% when pulling c8b91cdd81dcbfc0fbefde175ee75e6744756cab on deterministic-reduction-docstring into f6b5a1f8c7a11ac34a72179701123f8bee85e08b on master.

And that's the key retrieval issue that often pops up as well.

Another kind of false test failures is the verification of hyperlinks. But that's pretty useful as hyperlinks tend to break now and then. We could run it without enforcing it to succeed, but I'm not sure whether we'll pay attention to it if it never fails.
http://tulip.labri.fr fails especially often.

Newer sphinx will handle rate-limits in linkcheck https://github.com/sphinx-doc/sphinx/commit/6b90a63f0862f4cbc31621d0daff8f52fde3ee64. That should also help.


[BUG] Combat rounds don't increment time in some systems.

Some systems don't update the game time as combat round pass (pf1e as an example). While other systems do (dnd5e).
Need to look into providing a way to specify how many seconds should pass per combat round and how this interacts with systems that all ready update the game time.

Since this has passed to Released, should the latest Release 1.3.39 only bring up a setting or is this already working ? I just checked with the DS4 Game System (which, as far as I know does not provide any time information die Foundry) and on starting a combat round clock keeps "normally" running. My expectation was that the normal passing of time would be stopped and then the set seconds time would be added per combat round (by the way, this is how the Calender/Weather addon (in conjunction with About Time) behaved). However, I may have misunderstood what should happen when you switch to combat mode in a system without time information, then sorry!

@STBaf
Yes this is working.
The clock only stops running when the active Scene (will have a target icon next to its name) has an active combat (requires at least 1 token to be apart of the combat). I do this so that if another scene has a combat in it that you forgot about the calendar doesn't refuse to start the clock because of that. This way only the currently active scene is checked for combats.
With that criteria met then the clock will pause and as combat rounds end time will be added to the clock.
When the combat is finished the clock will start running again.

I tried to reproduce that und made a video from the behavior beneath DS4:
https://www.youtube.com/watch?v=5c7zLBmLI3o
still not working
I'am using Foundry 0.8,9 and used to reproduce my DS4 Test enviromnemt with 4 enabled modules which are:
libwrapper (<IP_ADDRESS>, dependency of Perfect Vision)
Perfect Vision (2.9.7)
SimpleCalender (1.3.39 obviously)
SmallTime (1.11.4)

I too was having the same trouble with the clock not working with/during combat  iwth the lateste update, though I don't ujse the "running clock in the background" configuration (I manage all non-combat time in other wasy using the forward/back buttons in the time controls).
Knowing that only the active scene will move combat time forward has resolved my issues.
I might suggest that this be noted somewhere (either in the documentation or maybe right on the settings).
In any case.
Thank you!!


Crash when opening timer from socket panel

I have the following crash when I click on the timer button from a socket panel:
_2020-06-11 10:38:54.497351+0200 GSE[4455:2957711] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSCFType CGColor]: unrecognized selector sent to instance 0x283592a00'
*** First throw call stack:
(0x189f5ea48 0x189c85fa4 0x189e625a8 0x189f62af4 0x189f64a7c 0x1031cba98 0x1031cb9e0 0x103278748 0x1031f34e8 0x1031f4718 0x1031f5d14 0x189fabd74 0x189e357dc 0x1031f5c18 0x103269dbc 0x104c317fc 0x104c32bd8 0x104c40c34 0x189edc5e4 0x189ed75d8 0x189ed6adc 0x193e5c328 0x18dfd1ae0 0x103032954 0x189d60360)
libc++abi.dylib: terminating with uncaught exception of type NSException

I'm using TuyaSmartPanelSDK (0.4.1)

I need some equipment related information, please create a work order on Tuya IOT platform. https://iot.tuya.com/council/


Add SG on graphql.org website

What would you like to be added:
Add this project here: https://graphql.org/code/#go
Why is this needed:
It improves visibility world-wide.

Add super graph in above page and generate a pull request
https://github.com/graphql/graphql.github.io/pull/888

Amazing! Thanks!

I think we can close this.
I leave it open so that @dosco can read it.

@frederikhors  I think this ticket should be open until pull request merge

Since you're at it, would be great to add SG to the awesome-graphql collection too. Awesome-x pages are pretty popular among devs these days.

@tienthanh8490  Pull request generated
https://github.com/chentsulin/awesome-graphql/pull/602
FYI: @dosco

@kpbird pull request is closed.
Can I close this?

Yes, Please


Include exec before stored procedure for TDS

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:

For posterity, it seems exec is optional in later versions https://learn.microsoft.com/en-us/sql/t-sql/language-elements/execute-transact-sql?view=sql-server-ver16#syntax


Bugfix: CAS mode was using wrong argument for expected value.

(emerged while testing hashmap example locally)

Thanks!