[Feature Request] how to dynamically add  or before tab label in el-tabs nav item

Existing Component
Yes
Component Name
el-tab
Description
hope to add image before label
like :

I hope  I can add image before each label,  depend on my route data, like:
[ {     path: '/',     name: 'tab1',     icon: 'icon1' }, {     path: '/tab2',     name: 'tab2',     icon: 'icon2 or img link'  } ]

Sorry, we have no plan to support this. You can use label slot.


pkg/front_end/tool/fasta_perf_test shows bogus errors

With https://dart-review.googlesource.com/#/c/sdk/+/20907 applied, I'm seeing error messages like this one from pkg/front_end/tool/fasta_perf_test:
runtime/lib/array_patch.dart:58:38: Error: A value of type 'dart.core::List<<No Library>::unmodifiable::E>' can't be assigned to a variable o
f type 'dart.core::List<dart.core::List::unmodifiable::E>'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::List<dart.core::List::unmodifiable::E>'.
    return makeFixedListUnmodifiable(result);

This error message seems strange for two reasons:

The text <No Library>::unmodifiable::E seems bogus.  Perhaps there is a problem with patch handling causing one of the instances of type argument E to point to an instance of unmodifiable that does not have a proper parent pointer?
I would not have expected fasta_perf_test to try to compile the SDK; shouldn't it just be compiling client code?

@sigmundch any ideas?

incremental_perf doesn't compile the sdk, but for historical reasons we had fasta_perf_test compile the sdk. The numbers we measure on the same benchmark for the vm in golem also include that.
It's true that it is not an accurate measurement for what users care for, so it might make sense to change it. I'll follow up on that.
The assignable error might indeed be an issue with patching. I think I should be able to repro this in legacy mode too, so I'll give that a shot and report back.

I haven't have the chance to investigate in detail. So far no luck seeing where the underlying issue is coming from. It's possible that it is a strong-mode only issue, but I'm not certain.
Compiling the sdk directly to text shows no signs of the orphan type variable in this method:
47989   @_in::patch
47990   static factory unmodifiable<E extends self::Object>(self::Iterable<dynamic> elements) → self::List<self::List::unmodifiable::E> {
47991     final dynamic result = self::List::from<self::List::unmodifiable::E>(elements, growable: false);
47992     return _in::makeFixedListUnmodifiable<>(result);
47993   }

If I try doing fasta-compile in strong mode, I see crashes during the binary serialization. If I skip the serialization (which is what fasta_perf does) I don't see a crash, but I I see the same kind of output as in legacy mode (with the types inferred).
What I plan to try next (or you can provide here if you have it at hand) is what happens if you add debugDump to the compiler options in fasta_perf when your CL is patched.
Until patching is fully working, we can switch fasta_perf to continue using the patched_sdk input (or at least to do so when strong-mode is enabled.). Just last week I made a change to remove patched_sdk from being added to our performance bots, so if we go down that route, I'd need to reverse that change.

I can verify that with your CL, the issue only happens when using the patching mechanism and not if I were to use the patched_sdk folder. However, the output if I omit the check seems correct. It seems to me like maybe the type-parameters are finalized a bit later and that your check is happening on the early side?
For now, my inclination is to mark the failing error message in the whitelist and get back to this once Peter gets back to the patching support work.

Sounds like a good plan to me.


Connect to Github should use "loading" indicator in all quick picks

It displays the loading indicator when showing the "repository" quick pick, but not the "organization" or "branch" quick picks. Ideally they should all have it.
I ran into a case where it took ~3 seconds to load my organizations and I thought the command just wasn't working.

To add to this, use the UI that includes the back button


How do I use third party plugins

I want to use https://github.com/facebook/fixed-data-table plugin. Even if I can add it by npm install. how can use it in my code?
Another issue, do I also have to add my code in /client/app/bundles folder (as given HelloWorld example). Shouldn't there be a way to add new files in app/assets/javascripts folder?

Hi @dspoonia7. The JS code in the client directory is like any other pure JavaScript app. React on Rails takes JS from the client directory and packages it up here: app/assets/javascripts.
We at http://www.shakacode.com/ offer individualized training if you might be interested. Please contact us if you or your organization is interested.


Kinds: 'i' for interface, 'c' for class, 'n' for namespace

https://github.com/jstemmer/gotags/blob/3751bad226c4308b3812a362ffda82e40de731ac/tag.go#L42

Some more information would be helpful. I don't think this should be changed unless it's causing problems somewhere.

Same kind letter has different meanings for different languges. It would be nice if we could follow convention.   :)

Yeah that's a bit unfortunate. There are several kinds with a shared prefix (import/interface, constant/class/constructor, fields/functions), so I used what was available and seemed appropriate at the time. Unfortunately changing this now would break the Tagbar integration for everyone until they update their config, so I don't think it's worth changing this now. Thanks for the suggestion.


Add a check to validate home page after each deploy

Since we're almost always logged in when we test a hub, we didn't catch #150. This should be an automated test instead.

This is done! Thanks, @GeorgianaElena!


Write a set of code solutions: "mongodb" (mongodb)

Please write code solution for this topics:
mongodb (technology: mongodb)
Fast way
Just write the code solution(s) in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments explain solution.
Link to this issue in comments of pull request.

How to aggregate in MongoDB?
How to add a user in MongoDB?
How to filter and aggregate in MongoDB?
How to enable authentication in MongoDB?
How to use the "and" operator in MongoDB?
How to count aggregated results in MongoDB?
How to backup a MongoDB database?
How to restore a MongoDB database from a backup?
How to bulk write in MongoDB?
How to bulk update documents in MongoDB?
How to bind IP addresses for MongoDB server?
How to use the "between" operator in MongoDB?
How to create a database in MongoDB?
How to create a user in MongoDB?
Example of a MongoDB connection string
How to create a collection in MongoDB?
How to clear a collection in MongoDB?
How to use the MongoDB distinct operator?
How to delete many documents at once in MongoDB?
How to drop a database in MongoDB?
How to drop a collection in MongoDB?
How to dump a MongoDB database?
How to check if a document exists in MongoDB?
How to use "explain" in MongoDB?
MongoDB query example
How to use elemmatch in MongoDB?
How to export an entire MongoDB database?
How to use eq in MongoDB?
How to find by id in MongoDB?
How to find in array in MongoDB?
How to use findone in MongoDB?
How to do full text search in MongoDB?
How to use findoneandupdate in MongoDB?
How to filter by date in MongoDB?
How to group in MongoDB?
How to get all documents in MongoDB?
How to list all indexes in MongoDB?
How to use hint in MongoDB?
How to perform a health check for MongoDB?
How to connect to MongoDB from bash?
How to use MongoDB HTTP interface?
How to insert new document into MongoDB?
How to use insertone in MongoDB?
How to insert many docs in MongoDB?
How to work with JSON data in MongoDB?
How to do joins in MongoDB?
How to join two collections in MongoDB?
How to kill an operation in MongoDB?
How to do "like" text search in MongoDB?
How to list databases in MongoDB?
How to use the limit operator in MongoDB?
How to create a many to many relation in MongoDB?
How to map in MongoDB?
How to query with "not equal" condition in MongoDB?
How to query with "not in" condition in MongoDB?
How to empty and array in MongoDB?
How to check if array is empty in MongoDB?
How to order query results in MongoDB?
How to convert MongoDB ObjectId to string?
How to implement one-to-many relation in MongoDB?
How to set MongoDB oplog?
How to use MongoDB projection?
What is MongoDB default port?
How to implement pagination in MongoDB?
How to use MongoDB push?
How to use MongoDB pull?
How to use MongoDB queue?
How to use MongoDB query with "or" condition?
How to use regex in MongoDB?
How to rename a MongoDB collection?
How to remove a field from MongoDB?
How to rename a field in MongoDB?
How to sort MongoDB query results?
How to select specific fields in MongoDB query?
How to list MongoDB users?
How to use transactions in MongoDB?
How to wotk with time series data in MongoDB?
How to do text search in MongoDB?
How to use triggers in MongoDB?
How to use unwind in MongoDB?
How to update many documents in MongoDB?
How to update one document in MongoDB?
How to update an array element in MongoDB?
How to check the version of MongoDB?
How to use watch in MongoDB?


fix: Old screenshots on home page are replaced by new once

Fixes Issue

Closes #9831
Changes proposed
The task was to replace old screenshots on the home page with new ones.
Refer screenshots sections to know more.

Check List (Check all the applicable boxes)

[X] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[X] All new and existing tests passed.
[X] This PR does not contain plagiarized content.
[X] The title of my pull request is a short description of the requested changes.

Screenshots
Old Screenshots

New Screenshots

looks great 👏
before:

after:

Thanks @badrivlog 👍

Great collaboration 💪  we will take a look soon


"Sort imports" setting with Python doesn't work if file is not part of a project

Description
iSort breaks with supplied parameters if the input file is not part of an existing atom project (e.g. if a standalone python file is edited with atom). Specifically, iSort will throw the error: "Error: arguments passed in without any paths or content."
Why this happens
The following code snippet comes from lines 57-60 in atom-beautify/src/beautifiers/autopep8.coffee
if options.sort_imports
          filePath = context.filePath
          projectPath = atom?.project.relativizePath(filePath)[0]
          @exe("isort").run(["-sp", projectPath, tempFile])

the function atom?.project.relativizePath(filePath) returns an array that has the project path at array[0] and the relativized file-path at array[1] if the file is part of a project, otherwise array[0] is null (see this issue). Therefore, if the file is not part of a project, then projectPath in the above code will equal null, and the -sp (settings path) parameter will not have an argument, resulting in the erroneous behavior.
Suggested fix
(Worked for me, anyway)
Replace the above code with:
if options.sort_imports
          filePath = context.filePath
          console.log(filePath)
          projectPath = atom?.project.relativizePath(filePath)[0]
          if projectPath
            @exe("isort").run(["-sp", projectPath, tempFile])
          else
            @exe("isort").run([tempFile])

which forgoes the -sp parameter when the file is not part of a project (projectPath == null) and it is therefore unnecessary.
Steps to Reproduce

Edit a python file without adding it to a project
Tick the "Sort imports" setting in Atom Beautify > Python
Run command Atom Beautify: Beautify Editor
Receive error described above

Checklist
I have:

[x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
[x] Reloaded (or restarted) Atom to ensure it is not a caching issue
[x] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
so I know this is not a duplicate issue
[ ] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
[ ] Generated debugging information by executing Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issue

(I have not performed these last two actions as I have discovered the cause of the bug, but neither have I submitted a pull request as this bug may repeat in other beautifiers that make use of atom?.project.relativizePath() and the team may have a more appropriate fix in mind).

I'm having the same issue. This bug report is from 2020.


Optimize nix build

Due to a known issue nix garbage collector is collecting more packages than it should. The suggested solution is running ln -sfv /root/.cache/nix/tarballs/* /nix/var/nix/gcroots/auto before collecting garbage. However, that doesn't seem to fix the issue.

Does this solution work for you? I've seen a variant of it used elsewhere (eg in iohk's codebase) as ifdPins
  mkPins = inputs:
    pkgs.runCommand "ifd-pins" { } ''
      mkdir $out
      cd $out
      ${lib.concatMapStringsSep "\n" (i: "ln -sv ${i.value} ${i.key}")
      (lib.attrValues
        (lib.mapAttrs (key: value: { inherit key value; }) inputs))}
    '';

Trying a fix in https://github.com/niteoweb/pyramid-realworld-example-app/pull/104

i.e. using NIX_BUILD_SHELL=/nix/var/nix/profiles/default/bin/bash

Seems to be working.


Book antiqua license issues

hi, i didn't found out, can i use font "Book antiqua" for commercial use, or i needed to buy official licence? and if i need, where i can buy it?

Сведения о документе
⚠ Не вносите правки в этот раздел. Это необходимо для связывания страницы сайта learn.microsoft.com с вопросом на GitHub.

ID: dbfc5c0c-7705-040b-a9af-cfefbd6616dd
Version Independent ID: e421be6d-c8ac-6701-64cb-d9744d0227cf
Content: Book Antiqua font family - Typography
Content Source: typographydocs/font-list/book-antiqua.md
Product: typography
GitHub Login: @alib-ms
Microsoft Alias: alib

Hi iergon,
This FAQ should answer your questions - even though it is Windows-centric FAQ and Book Antiqua is typically installed with Office.
If you need additional rights they can be acquired from our licensing partner Monotype – the contact there is Jacqueline Sutter<EMAIL_ADDRESS>


HADOOP-19064. [thirdparty] add -mvnargs option to create-release command line.

JIRA
JIRA: https://issues.apache.org/jira/browse/HADOOP-19064
Describe
I compiled according to the how to release document, and I encountered the following error:
[ESC[1;31mERRORESC[m] Failed to execute goal ESC[32morg.apache.maven.plugins:maven-deploy-plugin:2.8.1:deployESC[m ESC[1m(default-deploy)ESC[m on project ESC[36mhadoop-thirdpartyESC[m: ESC[1;31mFailed to deploy artifacts: Could not transfer artifact org.apache.hadoop.thirdparty:hadoop-thirdparty:pom:1.2.0 from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/hadoop/thirdparty/hadoop-thirdparty/1.2.0/hadoop-thirdparty-1.2.0.pom.
Return code is: 401, ReasonPhrase: Unauthorized.ESC[m -> ESC[1m[Help 1]ESC[m

I cannot upload the compiled jar package to maven staging dir.  I carefully checked the permissions and used curl to upload directly, and found that it could be uploaded, which shows that the account number and password are accurate.
The related issue should be a maven configuration issue.
I use the following command to log in to the image and use mvn -X to check
docker run -i -t --privileged -v /root/.gnupg:/home/root/.gnupg -v /hadoop/hadoop-thirdparty/patchprocess:/hadoop/hadoop-thirdparty/patchprocess -v /hadoop/hadoop-thirdparty/target/artifacts:/hadoop/hadoop-thirdparty/target/artifacts -v /root/.m2/settings.xml:/home/root/.m2/settings.xml -v /hadoop/hadoop-thirdparty:/build/source -u root -w /build/source hadoop/createrelease:1.2.0_18569/bin/bash

We will map the setting.xml using the following command:
-v /root/.m2/settings.xml:/home/root/.m2/settings.xml

mvn -X

We can find that maven does not read the setting.xml file under the root home directory.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /root/.m2/settings.xml
[DEBUG] Reading global toolchains from /usr/share/maven/conf/toolchains.xml
[DEBUG] Reading user toolchains from /root/.m2/toolchains.xml
[DEBUG] Using local repository at /root/.m2/repository

The reason why it cannot be uploaded is that we expected maven to read /home/root/.m2/settings.xml, but maven actually read /root/.m2/settings.xml because in /root/.m2/ is not configured, so Maven chooses the global configuration /usr/share/maven/conf/settings.xml, and the apache account and password are not read.

Solution 1

I used a solution in the Dockerfile by adding RUN rm -f /etc/maven/settings.xml && ln -s /home/root/.m2/settings.xml /etc/maven/settings.xml. This solution resolves the issue with file uploads, but it causes a diff between the src files and tags.

Solution 2

I can use mvn -D to specify user.home to solve the problem of reading the configuration file.
This method also works, so I backport HADOOP-18198.
dev-support/bin/create-release --asfrelease --docker --dockercache --mvnargs="-Duser.home=/home/root"

@Hexiaoqiao @steveloughran Thank you very much for reviewing the code!  I have provided a more detailed explanation of how to solve this issue, which may be helpful if other team members need to publish hadoop-thirdparty or hadoop in the future.
cc: @ayushtkn

@steveloughran @Hexiaoqiao Thanks for reviewing the code! merged into trunk.


Ignore Min/Max values of CustomAttributes when both are set to 0

Hi, I'm facing a problem when importing DBCs, hwere the minumum and Maximum values of a custom attributes are set to 0. I'm working with the Vector CANDB++ Editor. The Editor ignores the validation of min max values for custom properties, when both are set to 0, and accept all Default values.

When importing such DBCs the DBCParser library returns 0 in such cases. Would it be possible to also ignore min/max validation by a setting or default behavior?
Best regards and you do a fantastic job,
Julius

Hi @JuRichter,
you are definitely right: ignoring the validation should be the default behavior when both min and max values are set to zero. We will work on that for the next release.
Thanks
Regards

Fixed #66


[WIP] StringDataItem decoding removed

As told in #686, not decoding the strings during parsing could bring a huge performance gain. I did a new class MUTF8String for replacing the results of decode(b) and patch_string(decode(b)) and capable of decoding when needed.
Test with patch_string(decode(b)) :
Runtime : 28.01447200s

              Name               | TotTime  |  Calls   | Source

patch_string                     | 7.291792 |   537811 | mutf8.py:73
__next__                         | 4.955242 | 16682452 | mutf8.py:57
decode                           | 3.113555 |   537811 | mutf8.py:1
read                             | 1.876643 |  5206598 | bytecode.py:795
<built-in method builtins.ord>   | 1.295802 | 37497133 |
read_null_terminated_string      | 1.071799 |   102793 | dvm.py:97
<built-in method builtins.chr>   | 0.871598 | 16144642 |
get_byte                         | 0.658616 |  1021791 | dvm.py:200
<built-in method builtins.len>   | 0.657512 | 17236692 |
get_string                       | 0.512339 |   498603 | dvm.py:7277
get                              | 0.416270 |   537811 | dvm.py:1904
<built-in method builtins.isinst | 0.388776 |  5339444 |
__init__                         | 0.388250 |    77741 | dvm.py:6717
<built-in method _struct.unpack> | 0.256094 |  2400031 |
__init__                         | 0.210497 |    77741 | dvm.py:6483
readuleb128                      | 0.201282 |   566395 | dvm.py:204
__init__                         | 0.191760 |   100931 | dvm.py:2421
<method 'append' of 'bytearray'  | 0.182567 |  2552524 |
<listcomp>                       | 0.182123 |        2 | dvm.py:7028
__init__                         | 0.181986 |    82413 | dvm.py:2820

Test with MUTF8String(b) :
Runtime : 10.38462600s

              Name               | TotTime  |  Calls   | Source

read                             | 1.849554 |  5206598 | bytecode.py:795
read_null_terminated_string      | 1.111465 |   102793 | dvm.py:97
get_string                       | 0.661906 |   498603 | dvm.py:7276
get_byte                         | 0.621419 |  1021791 | dvm.py:200
<built-in method builtins.isinst | 0.423100 |  5993425 |
from_bytes                       | 0.414873 |   653981 | mutf8.py:105
__init__                         | 0.355376 |    77741 | dvm.py:6482
__init__                         | 0.311230 |   653981 | mutf8.py:93
__init__                         | 0.302810 |    77741 | dvm.py:6716
<built-in method _struct.unpack> | 0.245051 |  2400031 |
get_type_ref                     | 0.201302 |   306893 | dvm.py:7342
readuleb128                      | 0.199724 |   566395 | dvm.py:204
<built-in method builtins.ord>   | 0.184095 |  5207851 |
<method 'append' of 'bytearray'  | 0.183919 |  2552524 |
add_type_item                    | 0.175883 |       35 | dvm.py:7234
__init__                         | 0.165159 |   100931 | dvm.py:2420
get                              | 0.164683 |   537811 | dvm.py:1902
_load_elements                   | 0.144982 |    44096 | dvm.py:3373
__init__                         | 0.142053 |     9894 | dvm.py:1456
get_type                         | 0.126710 |   306893 | dvm.py:7327

It's also possible to optimize read_null_terminated_string as I did in #686.
Resolves : #684

Codecov Report

Merging #689 into master will decrease coverage by <.01%.
The diff coverage is 84.98%.

@@            Coverage Diff             @@
##           master     #689      +/-   ##
==========================================
- Coverage   72.49%   72.48%   -0.01%
==========================================
  Files          50       50
  Lines       16023    16193     +170
==========================================
+ Hits        11616    11738     +122
- Misses       4407     4455      +48

Impacted Files
Coverage Δ

androguard/decompiler/dad/decompile.py
51.97% <ø> (ø)
:arrow_up:

tests/test_strings.py
96.15% <100%> (-0.28%)
:arrow_down:

androguard/core/analysis/analysis.py
77.24% <100%> (+0.25%)
:arrow_up:

tests/test_decompiler.py
97.5% <100%> (ø)
:arrow_up:

androguard/cli/main.py
34.39% <100%> (ø)
:arrow_up:

tests/test_dexcodeparsing.py
94.87% <100%> (ø)
:arrow_up:

androguard/decompiler/dad/writer.py
92.71% <100%> (-3.52%)
:arrow_down:

androguard/decompiler/decompiler.py
26.91% <100%> (ø)
:arrow_up:

androguard/core/bytecodes/mutf8.py
80.66% <80%> (-7.81%)
:arrow_down:

androguard/core/bytecodes/dvm.py
62.78% <96.55%> (+0.18%)
:arrow_up:

... and 3 more

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 984c0d9...ad1fffe. Read the comment docs.

wow, you have been very busy :)
mh MUTF8 is not only used in Dalvik but in the whole java world... So I would leave it as MUTF8String.
We should consider making the module depth more flat - so maybe move it where it fits? dunno really..

@reox  Maybe put mutf8.py package to androguard.core ?

I moved the package to androguard.core.mutf8 instead of androguard.core.bytecodes.mutf8.
Do you think it's ready to merge @reox ?

sure! I pushed some bugfixes, that unfortunately broke your PR, sorry!
you could also merge all your three PRs into a single one. I think it is enough to merge the branches locally and push one - that should automatically close the other two and add them to one PR

ah I meant your two PRs :D

#686 merged and PR is ready to be merged :)

you could also merge all your three PRs into a single one. I think it is enough to merge the branches locally and push one - that should automatically close the other two and add them to one PR

I don't know how it works, #686 is still there

Mhh last time I did that, the other PR would close... maybe that changed or I did something different :D
anyways, merging these now!

Ah... Just realized: The other PR was closed automatically when this one was merged!
So I just had wrong memories ;)


change: generate readme.md

Resolves #769

Excellent!
Were you able to work out how to run configlet without much trouble?

Yes. #771 explained it. I may go ahead and update the documentation for it too.

Thank you very much @njbbaer, sorry for the long delay.


Error deploying google-sheet-sync - TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string

How to reproduce these conditions
Sample name or URL where you found the bug
https://github.com/firebase/functions-samples/tree/Node-8/google-sheet-sync
Failing Function code used (including require/import commands at the top)
I have followed all the steps successfully up to step 10, but step 11 (Deploy your project using firebase deploy) returns an error.
Steps to set up and reproduce
Run all steps up to step 10, then try to run firebase deploy
Sample data pasted or attached as JSON (not an image)
In the terminal i get the following:
❯ firebase deploy

=== Deploying to 'trello-sync-test'...

i  deploying functions, hosting
i  functions: ensuring necessary APIs are enabled...
✔  functions: all necessary APIs are enabled

Error: An unexpected error has occurred.

 Received type undefined
    at assertPath (path.js:39:11)
    at Object.resolve (path.js:1085:7)
    at module.exports (/usr/local/lib/node_modules/firebase-tools/lib/resolveProjectPath.js:5:17)
    at /usr/local/lib/node_modules/firebase-tools/lib/deploy/hosting/prepare.js:46:36
    at arrayEach (/usr/local/lib/node_modules/firebase-tools/node_modules/lodash/lodash.js:516:11)
    at Function.forEach (/usr/local/lib/node_modules/firebase-tools/node_modules/lodash/lodash.js:9344:14)
    at module.exports (/usr/local/lib/node_modules/firebase-tools/lib/deploy/hosting/prepare.js:29:7)
    at _chain (/usr/local/lib/node_modules/firebase-tools/lib/deploy/index.js:22:40)
    at /usr/local/lib/node_modules/firebase-tools/lib/deploy/index.js:25:20
    at process.internalTickCallback (internal/process/next_tick.js:77:7)
[error]
[error] Error: An unexpected error has occurred.

Debug output
Errors in the console logs
N/A
Expected behavior
Project deploys successfully and Cloud Functions can be called
Actual behavior
firebase deploy returns "Error: An unexpected error has occurred."

Different issue, same error msg because I was missing the --only=hosting:
firebase deploy --only=hosting

And probably it was trying to also deploy storage etc.


Delete .vscode directory

Since it is not used

OK but I'm not going to do a formal release just for this change.

PS I added a .gitignore file to prevent the .vscode directory from being added again inadvertently.

OK but I'm not going to do a formal release just for this change.

No problem!


[PE-D][Tester C] Able to untag non-existent tags

To reproduce error: view any contact and untag any tag that does not exist such as "g/ASDFGGK"
Command is accepted and command result box displays "Group(s) untagged to Person!"

Labels: severity.Low type.FunctionalityBug
original: cyiting/ped#13

TODO + extension to tag.
Tag should check if the tag exists already.
Throw exception when tag exists but getting tagged again (Tag already exists)
Exception message should show what tag is present + disallow execution (even if its multiple tagging at once)
Similarly for untag
Untag should check if tag is actually there, else throw exception : E.g Tag not actually there
Ensure duplicate tags in command will throw exception.
Command result box should be more explicit in what is being tagged


FIM template for codegemma is broken

Describe the bug
In Auto-Complete, when using template codegemma <fim_suffix> and <fim_middle> are swapped
To Reproduce
My server receives this prompt:
PROMPT=
<fim_prefix>

''' Language: Python (python) '''
''' File uri: untitled:Untitled-2 (python) '''
import pandas

# my cursor is here -> <fim_suffix>

print("Hello World")<fim_middle>

when my cursor is at the end of line with comment.
Expected behavior
<fim_middle> and <fim_suffix> should be swapped in prompt template.
Screenshots
If applicable, add screenshots to help explain your problem.
Logging
Rnable logging in the extension settings if not already enabled (you may need to restart vscode if you don't see logs).  Proivide the log with the report.
API Provider
oobabooga
Chat or Auto Complete?
fim (auto-complete)
Model Name
bartowski/codegemma-7b-GGUF
Desktop (please complete the following information):

OS: Windows 11 remoted into Debian through SSH
VSCode 1.92.2
Extension Version: v3.15.4

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."

I've double checked their docs - my bad, didn't read carefully.


Use Equations instead of Program Fixpoint for termination

 Issue by joscoh
Wednesday Nov 20, 2019 at 03:28 GMT
Originally opened as https://github.com/antalsz/hs-to-coq/issues/138

Currently, hs-to-coq uses Program Fixpoint to deal with more complex termination arguments. However, this makes it extremely hard to work with the resulting code, since Program Fixpoint creates huge proof terms that are difficult and slow to manipulate (for instance, the file examples/graph/theories/HeapEquiv.v, which has a single rewrite lemma for a Program Fixpoint function, takes over 3 minutes to compile - though my proof might not be great). Using Equations instead (or in addition) would have the following advantages:

Equations automatically generates a number of useful rewriting and equivalence lemmas that make working with defined function easy and remove the need to prove separate rewriting lemmas by unfolding massive proof terms.
Equations is better at automatically solving obligations. For instance, the toList function in examples/graph/lib/Data/Graph/Inductive/Internal/Heap.v was generated by hs-to-coq with Program Fixpoint and requires several lemmas and tactics to solve the obligations. The equivalent Equations version in examples/graph/theories/HeapProofs.v solves the termination obligations automatically.
The syntax of Equations is closer to Haskell, which may make it either easier to translate or more similar to the current Haskell code. At the very least, Stephanie seemed to think that it would not be much harder to translate to this syntax.
Program Fixpoint doesn't work with some features, namely an "as" pattern in a pattern match. Antal and I discovered this bug, and the details are in the hs-to-coq channel.

I have found it simpler, for most of the functions in examples/graph, to use deferredFix and write an Equations version that I then proved equivalent instead of using Program Fixpoint. I think it would be beneficial to just be able to use Equations directly.

 Comment by womeier
Monday May 25, 2020 at 14:29 GMT

I am working on this. Where can I find the hs-to-coq channel?
(I am working with Peter Trommler.)

 Comment by sweirich
Tuesday May 26, 2020 at 15:11 GMT

Hi Wolfgang!  Thanks for joining!  The hs-to-coq channel is part of an internal Penn slack server. We're looking into creating a more public space for discussion. In the meantime, feel free to use this issue for questions.

 Comment by lastland
Tuesday May 26, 2020 at 21:08 GMT

Hi @womeier, we have just created a public hs-to-coq channel. It exists as a stream on Coq's Zulipchat: either use https://coq.zulipchat.com/#narrow/stream/240767-hs-to-coq-devs.20.26.20users or find "hs-to-coq devs & users" stream on Coq's Zulipchat (https://coq.zulipchat.com/). And just in case you don't know it yet, there is also an "Equations devs & users" stream on Coq's Zulipchat which you may find useful.

 Comment by womeier
Wednesday Jun 03, 2020 at 06:50 GMT

Ok, good to know. Thank you @lastland for the suggestion :)

This branch may address this problem: https://github.com/womeier/hs-to-coq/tree/equations I haven't been able to look more closely at it though...


How can I add a custom module that has same provider name with another provider?

I want to add a custom injected module but this module has the same provider name as Metamask.
Metamask injects an obj named 'ethereum' and the custom injected module too.
So how can I integrate both?

Hey @huy23121994 👋🏾 Which injected wallet are you trying to add that has the same provider name?

Closing this issue for now, feel free to reopen if you are still having trouble creating a custom module.


Add version: SonicTeamJr.SonicRoboBlast2 version .2.12

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: Open in CodeFlow

Hi @vedantmgoyal2009,
This package appears to be missing a dependency:


Provide guidance on writing tables

The current draft of the design guide has some guidance on tables, but more from a technical perspective: https://gov-au-ui-kit.apps.staging.digital.gov.au/section-tables.html
It would be great to see some guidance on writing tabular content (when, what to do; what not to do, etc.).

https://gov-au-ui-kit.apps.staging.digital.gov.au/section-tables.html#guide-tables-3-accessibility

Libby has started a doc - Tables_content for new entryT

one consideration is that 'complex' tables or large tables should be broken down to simpler/small tables where  ever possible to aid cognitive processing generally.

https://github.com/govau/content-guide/issues/53


Update NUnit dependency from 2.6.4 to 3.4.1

@ronrat @jsternal @appakz @mikeswart @rockhymas Please review.
Delivers #43

This gets a 👍 from me!

It looks good from my perspective.

In general, this looks good. I agree with the major release bump decision.
I did notice that there will be some conflicts between this PR and #36 because I also made changes to SpecEasy.nuspec to correct the URLs and update the release notes. What are your thoughts on getting #36 merged first, doing a NuGet release, and then merging this PR and doing another release?

@ronrat I think that plan makes sense.
If you're not in a particular hurry to get the NUnit 3 stuff merged, I'd really like to get https://github.com/speceasy/speceasy/pull/33 and also potentially https://github.com/speceasy/speceasy/pull/46 merged into the 2.x stream before doing the NUnit 3 bump.
We can of course do another 2.x NuGet release with those extra branches merged in if you prefer rather than stuffing it all into 2.1.
And don't worry about the SpecEasy.nuspec conflicts. The NUnit 3 branch will need to be rebased anyway before it can be merged.
Thanks for getting this stuff ready to go!

@dbertram yep, good idea to get those other PRs merged before the 2.x release.

@dbertram @appakz @mikeswart @rockhymas any chance this will get merged in any time soon?
We need to update to NUnit 3.x and don't want to leave behind SpecEasy if we can help it.

Hey @bradenb, I'm sorry this has languished a bit.
Two things:

We're trying to get another 2.x release out before we do the cut-over to NUnit 3

Last time I tried it ReSharper's test runner did not play nicely with NUnit 3, which is a bit of a deal breaker for us to migrate to NUnit 3 at Articulate

I'll try to make some time to test the waters again and rebase this branch.
Worst case, we might have to maintain two branches: one targetting NUnit 2 and another targetting NUnit 3.

Thanks for the quick reply @dbertram
Anything you can do would be awesome. I know maintaining two branches isn't ideal for you. NUnit 3 + VS2017 with Live Testing is a really useful combo and we'd love to keep SpecEasy in that mix.
By the way it does appear that the latest ReSharper supports NUnit 3. Not sure if Articulate has switched over to the subscription service.

@bradenb I've got this rebased so that it's mergeable again now.
I'm going to work with @ronrat to try and get #36 merged and deployed, and then I'll work on getting a 3.0 out that targets NUnit 3.

@dbertram thanks for the update! I'll keep an eye out.

I've rebased and updated this PR to target NUnit 3.8.1.
This hang in NUnit was affecting DatabaseIntegrationSpec so I modified that spec to work around the issue.
@dbertram @rockhymas @ronrat can we merge this?

@jameswelle Looks like we need to update the copy of nuget we're bundling. Also possibly it's nunit runner dependency?

error : The schema version of 'NUnit' is incompatible with version 2.2.31210.9045 of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942.

https://github.com/speceasy/speceasy/blob/master/.nuget/packages.config#L3

Is that appveyor build functional @dbertram?

It was for the last 2.x PR we worked on: https://ci.appveyor.com/project/dbertram/speceasy/build/2.1.13

@dbertram @rockhymas @ronrat the appveyor build is now passing

Sweet. Thanks @jameswelle!


[UI] Design Configurator: "percentage" and "percent" as sliders

Current Behavior
When rendering rjsf components, "percentage" and "percent" are treated as textfield inputs.
Desired Behavior
“percentage” and “percent” should be treated as keywords for Slider components.
Implementation

Ignore "type": "object". Always display a Slider component.
Ignore "format": "int32" and "format":"double". Always set to 0 to 100 for slider range.

Acceptance Tests

Validation of 0 to 100 value only.

Mockups

Contributor Guides and Resources

🎨 Wireframes and designs for Meshery UI in Figma
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@Abhishek-kumar09 did you recently complete this?

Yeah here: https://github.com/meshery/meshery/pull/5304
With a case like this where it is hard to know the percent field: https://github.com/meshery/meshery/pull/5304#issuecomment-1083042378

@MUzairS15 @sudo-NithishKarthik this is an example of a piece of work that we'll want a new component generator (in cue) to take care of.

@Chadha93 @Abhishek-kumar09 @sudo-NithishKarthik was this completely finished?

Let’s ensure this is completely addressed.

@Abhishek-kumar09 yoy might have a look-see here.

@Chadha93 @Abhishek-kumar09 @sudo-NithishKarthik was this completely finished?

The update was merged based on parsing the textfield label and matching whether the label includes percent or percentage. There were some fields, which didnt have percent label but are expecting percentage from their parent's title, as far as I remember.


Updates to Priority in a given bpfProgramconfig are not being correctly handled.

The Function StringifyAttachType Adds priority as part of the program key for indexing our nodeState on each reconcile loop.  This means that if a bpfProgramConfig's priority is changed we're incorrectly orphaning the bpf program on the node loaded at the old priority.   This means that priority updates won't work correctly.  In order to fix this we either need to continue with the work outlined in #386, Make the program key smarter, or add some sort of metadata K/V pairs to the bpfctl load command.

Fixed by #


When will you have an update on this project?

This project is pretty cool :) When will you have an update on this project? The last commit was 1 year ago.

We're exporting the latest version. Stay tuned!


custom repo fix: changed unless to if

i set the hiera value for powerdns::custom_repo to true and wondered why the custom repo is not used on my debian stretch machine. after noticeing that unless is used i was unsure if i understand it right. to be sure i googled a little bit and found https://stackoverflow.com/a/13245046

Executes code if conditional is false.

i am not sure what your intention is but as far as i understand, it should work like "use the custom repo if the value is true"
switching to "if" made it work as expected for me.
do i get something wrong i do i found a bug?
i also changed the default value to "true" to not change the current behavior.

noticed the "Don't manage the PowerDNS repo with this module. Defaults to false." documentation. this is still illogical.
custom_repo: true should use the custom repo or the parameter should be named dont_use_custom_repo (or something like that)

@ju5t normally, in many/most other puppet modules (at least the ones i used), the default repo is always the repo of the distro -> so no custom apt repo files are generated. this should be the default behavior.

Perhaps we should improve the documentation because to be honest I don't think we should invert this.
It's a breaking change with unexpected results for some users.

yes, the documentation should be improved and the parameter should be deprecated with a good bc layer. i also hate it if a module has a breaking change.
if you are not against deprecating a parameter, adding a new, more clear parameter which handles the distro repo as "normal" and any other (including powerdns repo) as custom repo, i can adapt the PR. the behavior of the current parameter won't change so we have no BC break but with the next major release we can drop the bc layer and stay more "standard".

@c33s I agree, this module shouldn't divert from other modules when it comes to managing the repository. In this case we should also change the name of the parameter to manage_package_repo and switch custom_epel to manage_epel_repo.
We can deprecate the current functionality in the next minor release. A notice that it is deprecated would be useful.

@c33s I am going to close this request for now as I believe it needs a more extensive look/rewrite. I've created #67.


[BrokenLinksH2] Fixed the link path

Fixed the link

Docs Build status updates of commit 227848b:
:warning: Validation status: warnings

File
Status
Preview URL
Details

articles/index.md
:warning:Warning
View
Details

articles/index.md

Line 25, Column 11: [Warning: alt-text-missing - See documentation] Missing alternate text for image './pictures/ONNX_logo_main.png'. Alt text is required for accessibility.
Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Global effort to fix broken links
@chrisbasoglu
The Content & Learning team is fixing broken links on docs.microsoft.com for the rest of H2. This effort will eliminate potential accessibility, security, and usability issues. This PR includes only link fixes and does not change other content. I’d very much appreciate your timely review and feedback on the link changes I’ve suggested. Thanks!


feat(just): add option to use toolbox instead of distrobox

Since toolbox and distrobox are nowhere near feature parity (and not always compatible with each other), it made more sense to provide the toolbox option as a separate recipe.
Recipes
This PR implements the recipes toolbox-new and a very limited version of distrobox-assemble in the form of toolbox-assemble for ujust.
There are no plans to expand upon this, the assemble feature is provided as a nice to have for defining multiple toolbox containers and assembling them with 1 command.
Internals
For internal ujust functions this implements Toolbox, ToolboxAssemble and ToolboxAssembleList that will work similar to the internal ujust functions for distrobox.
Why make toolbox internal functions?
The easiest maintainable way to generate a list of images is through a similar ini manifest file like we do for distrobox, we already had the logic for it, so why not re-use it and avoid having to update the script functions/just file whenever the images supplied gets too old.

NOTE: Dev container does not have gum or fzf installed, the bash fallback is perfect for demonstration images like this
This should suffice as an implementation for #186

This is now ready for review


Remove files

I have a boilerplate that works in the opposite of usually.
I have a full package where i replace stuff but also i need to delete files from it, so there is a way from the json file to remove a file that option is not flagged?

Thanks for your question! Sorry I didn't see it before. I'm working on rehabilitating the repo.
If you have a prompt foo defined in your yogini.json file...
    {
      "type": "boolean",
      "name": "foo"
    }

...and you answer yes when running the generator, then {foo}a.txt will be copied as a.txt and {!foo}b.txt will not be copied at all.

Thanks for your question! Sorry I didn't see it before. I'm working on rehabilitating the repo.
If you have a prompt foo defined in your yogini.json file...
    {
      "type": "boolean",
      "name": "foo"
    }

...and you answer yes when running the generator, then {foo}a.txt will be copied as a.txt and {!foo}b.txt will not be copied at all.


[boost-build] build failure

Operating system
Windows10
Compiler
MSVC
Steps to reproduce the behavior
vcpkg install pcl:x64-windows --only-downloads
vcpkg install pcl:x64-windows

Failure logs
vcpkg install pcl:x64-windows
Computing installation plan...
The following packages will be built and installed:

boost-algorithm:x64-windows -> 1.82.0#2
boost-asio:x64-windows -> 1.82.0#3
boost-atomic:x64-windows -> 1.82.0#3
boost-build:x64-windows -> 1.82.0#2
boost-chrono:x64-windows -> 1.82.0#2
boost-container:x64-windows -> 1.82.0#2
boost-context:x64-windows -> 1.82.0#2
boost-coroutine:x64-windows -> 1.82.0#2
boost-date-time:x64-windows -> 1.82.0#2
boost-exception:x64-windows -> 1.82.0#2
boost-filesystem:x64-windows -> 1.82.0#2
boost-foreach:x64-windows -> 1.82.0#2
boost-graph:x64-windows -> 1.82.0#2
boost-interprocess:x64-windows -> 1.82.0#2
boost-iostreams[bzip2,core,lzma,zlib,zstd]:x64-windows -> 1.82.0#2
boost-lexical-cast:x64-windows -> 1.82.0#2
boost-math:x64-windows -> 1.82.0#2
boost-phoenix:x64-windows -> 1.82.0#2
boost-property-map:x64-windows -> 1.82.0#2
boost-property-tree:x64-windows -> 1.82.0#2
boost-proto:x64-windows -> 1.82.0#2
boost-ptr-container:x64-windows -> 1.82.0#2
boost-random:x64-windows -> 1.82.0#2
boost-range:x64-windows -> 1.82.0#2
boost-regex:x64-windows -> 1.82.0#2
boost-serialization:x64-windows -> 1.82.0#2
boost-sort:x64-windows -> 1.82.0#2
boost-spirit:x64-windows -> 1.82.0#2
boost-system:x64-windows -> 1.82.0#2
boost-thread:x64-windows -> 1.82.0#2
boost-uuid:x64-windows -> 1.82.0#2
boost-xpressive:x64-windows -> 1.82.0#2
bzip2[core,tool]:x64-windows -> 1.0.8#4
eigen3:x64-windows -> 3.4.0#2
flann:x64-windows -> 2019-04-07#6
liblzma:x64-windows -> 5.4.3
libpng:x64-windows -> 1.6.39#1
lz4:x64-windows -> 1.9.4#1
pcl:x64-windows -> 1.13.0#3
qhull:x64-windows -> 8.0.2#4
zlib:x64-windows -> 1.2.13
zstd:x64-windows -> 1.5.5
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from C:\Users\pengyunsheng\AppData\Local\vcpkg\archives in 1.18 ms. Use --debug to see more details.
Installing 1/42 boost-build:x64-windows...
Building boost-build:x64-windows...
-- Using cached boostorg-build-boost-1.82.0.tar.gz.
-- Extracting source D:/Code/Repo/vcpkg/downloads/boostorg-build-boost-1.82.0.tar.gz
-- Applying patch 0002-fix-get-version.patch
-- Applying patch 0003-fix-emscripten.patch
-- Applying patch 0004-workaround-MSVC-codegen-bug-in-17.5-on-ARM64.patch
CMake Error at scripts/cmake/z_vcpkg_apply_patches.cmake:34 (message):
Applying patch failed: Checking patch src/engine/glob.cpp...

error: while searching for:

globchars() - build a bitlist to check for character group match.
*/

static void globchars( const char * s, const char * e, char * b )
{
  int neg = 0;

error: patch failed: src/engine/glob.cpp:111
error: src/engine/glob.cpp: patch does not apply
Call Stack (most recent call first):
scripts/cmake/vcpkg_extract_source_archive.cmake:153 (z_vcpkg_apply_patches)
scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
ports/boost-build/portfile.cmake:9 (vcpkg_from_github)
scripts/ports.cmake:147 (include)
error: building boost-build:x64-windows failed with: BUILD_FAILED
Elapsed time to handle boost-build:x64-windows: 1.3 s
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boost-build
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[boost-build]+Build+error&body=Copy+issue+body+from+D%3A%2FCode%2FRepo%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
Additional context
No response

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.


Flutter signedapk build error in android studio

0
Task :app:compileFlutterBuildRelease Can't load Kernel binary: Invalid kernel binary format version. Dart snapshot generator failed with exit code 254 Can't load Kernel binary: Invalid kernel binary format version. Dart snapshot generator failed with exit code 254

Steps to Reproduce

Execute flutter run on the code sample
...
...

Expected results:
Actual results:

Code sample

Logs

Hi @yassalahmad, please provide the following information.

The full flutter run/build appbundle/apk -v log depending on whether or not you're running debug or building an apk or appbundle
Your android/app/build.gradle
flutter doctor -v

Thank you


[Ubuntu] Add Python to the Ubuntu 24.04 toolcache

Description
Python available for the latest Ubuntu-24.04 in the external repo. Adding it to the toolcache.
Related issue:
Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

/azp run ubuntu2404

/azp run ubuntu2404

/azp run ubuntu2404


ICMP tunnel?

What happened with your other git https://github.com/esrrhs/pingtunnel, because I need that tool. Can you return it back? Spp not compatible with my network environment. Please. It's very important for me.

use the [delete] branch

Done, but still hope that you will fix script and make it work right. Cheers.

So pingtunnel wouldn't development progress anymore?

yes, for some security reasons


added russian lang support in person and location

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.51% :tada:

Comparison is base (7212b15) 98.00% compared to head (a099466) 98.51%.
Report is 1 commits behind head on main.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   98.00%   98.51%   +0.51%
==========================================
  Files          27       27
  Lines        2000     2024      +24
==========================================
+ Hits         1960     1994      +34
+ Misses         40       30      -10

Files Changed
Coverage Δ

include/faker-cxx/types/Language.h
100.00% <100.00%> (ø)

src/modules/location/LocationTest.cpp
100.00% <100.00%> (ø)

src/modules/person/PersonTest.cpp
100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Good job!


New favicon

Closes #1868

It would have been more work than I wanted to do, to dynamically switch out all of the various sizes of this favicon, so this PR implements the dark purple on light purple flavor.

nice, thats better.


[Question] How Can I set a header key in a Middleware?

Just Question.
This code tries to convert jwtsub into a header user-id key.
But header is Immutable.
Are there alternative ways to compute the incoming request header keys?
The following middlewares need to computed requests.
export const setTenantIdMiddleware: MiddlewareHandler = async (ctx, next) => {
    const jwtPayload = ctx.get('jwtPayload');

    if (!jwtPayload) {
      const res = new Response('Unauthorized', {
        status: 401,
        headers: {
          'WWW-Authenticate': `Bearer realm="${ctx.req.url}",error="invalid_request",error_description="jwtPayload is missing"`,
        },
      });
      throw new HTTPException(401, { res });
    }

    const sub = jwtPayload.sub;
    ctx.req.headers.set('user-id', sub);

    await next();
  };

  Trace: TypeError: immutable
    at Headers.set (/home/vscode/.volta/tools/image/packages/wrangler/lib/node_modules/wrangler/node_modules/undici/lib/fetch/headers.js:379:13)

Hi @EFEXP !
We can't modify the "request" headers. It's immutable. This is a Cloudflare Workers (and other runtimes) issue, not Hono. Instead, how about using c.get()/c.set() to pass the values to the handler?
type Variables = {
  userId: string
}

const app = new Hono<{ Variables: Variables }>()

export const middleware: MiddlewareHandler<{ Variables: Variables }> = async (c, next) => {
  c.set('userId', 'foo')
  await next()
}

app.get('/', middleware, (c) => {
  return c.text(`Hello ${c.get('userId')}`) // <== Hello foo
})

Or does it have to be a request "header"?

header.
This Workers is the root of the service binding and acts as an authentication proxy.
I want the downstream Workers to look as if they were set from the beginning.
It is possible to set it once in ctx and then take it out later and put it in Header, but it is not smart.

If you use Service Bindings, you can use the response header instead of setting the value in the request header.
// auth.ts
app.get('*', (c) => {
  // authenticate
  c.header('userId', 'foo')
  return c.text('Authorized')
})

// app.ts
type Bindings = {
  auth: Fetcher
}

const app = new Hono<{ Bindings: Bindings }>()

app.get('/', async (c) => {
  const authResponse = await c.env.auth.fetch(c.req.raw.clone())
  const userId = authResponse.headers.get('userId')
  //
})

Thank you for your assistance!
Based on your suggestion, should I restructure my worker stack as follows?
gateway
- auth
- downstream

Currently, my worker stack is arranged like this:
gateway (including auth)
- downstream

Your guidance has been very helpful to me.

I'm not super familiar with Service Bindings, but I think you can do it without restructuring. For example, if we use Bearer Auth with Service Bindings, we can write gateway (including auth) like the following:
import { Hono } from 'hono'
import { bearerAuth } from 'hono/bearer-auth'

type Bindings = {
  application: Fetcher // downstream
}

const app = new Hono<{ Bindings: Bindings }>()

app.get('/', bearerAuth({ token: 'your token' }), async (c) => {
  return await c.env.application.fetch(c.req.raw.clone())
})

Thank you for quick response !
I'll try it :)


Matthew

Added support for bringing policy exemptions under source control

@ondfisk please review again.
in .github/workflows/exemptions.yml
i have had a few problems creating a boolean environment value (it gets interpreted as a string if the value is 'true' or 'false'. ) the value is now a 0 (removeUnmanagedExemptions: 0). Is that good practice.
There is no real way to test exceptions ... the login action would not run unless and environment was specified so i have specified the environment as prod...is there a better way to do this?


Typoed team numbers

List
Several broken teams that have low number of matches played over a year (less than 3) Some of them are typos, unclear what some of the others are.

Bump/another one.
394 listed in alliance bracket for 2010 West Michigan FIRST Robotics District Competition (2010mi) should be 397, not 394


ice driver backports from kernel 5.18 to <IP_ADDRESS> to enable baseline…

… switchdev functionality

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[x] Ready to merge

Summary

ice driver backports from kernel 5.18 to <IP_ADDRESS> to enable baseline switchdev functionality prior to adding new switchdev related features
Change Log

Updated intel iidc
Updated net-devlink
Updated net-gtp
Updated avf
Updated ice driver

Does this affect the toolchain?

NO
Associated issues

#xxxx

Links to CVEs

https://nvd.nist.gov/vuln/detail/CVE-YYYY-XXXX

Test Methodology

Local build

@microsoft-github-policy-service agree company="Intel"


Added basic tests for roundedCylinder, roundedCube, cylinderElliptic, polyhedron

as the title says.

Very nice ,  it all looks good, thanks @z3dev  !


Brew support

I've created a brew formula at:

https://github.com/garethahealy/homebrew-boot2podman

Currently, its provided as a tap as to be part of core the machine repo needs:
*** GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)**
Happy to contribute repo to be under boot2podman if you want.

Thank you for adding this packaging! I'm not sure if we should add packages to the boot2podman project, since that actually seems distributions less likely to add packages. So we can leave it there, and add a link.
Also reminds me that we need to improve how releases are tagged and built, especially from archives. That version command probably says dev (6b8c8ad), which isn't entirelly accurate (should be v0.14)
Hopefully it worked OK ?
Looking for someone to help out with testing a "native virtualization" Mac driver (Hypervisor.framework)
Apparently some people are not "allowed" to use VirtualBox, and brew qemu doesn't include hvf support
./configure --enable-hvf

Yes, worked fine. And yes, i noticed the version "problem".
Keeping the code in my repo is fine. If you can, it would be helpful to raise PRs to update the version when you do a new release just incase i miss one.
Yes,  happy to help with HVF. My laptop says it supports it.
MacBook-Pro:Formula garethhealy$ sysctl kern.hv_support
kern.hv_support: 1

New release should support Qemu 3.0+ (tested with 3.1.0), if you want to build it with HVF support.
I used this line ./configure --prefix=/opt/qemu --target-list=x86_64-softmmu,x86_64-linux-user --enable-kvm --enable-system, maybe you can do something similar but with --enable-hvf instead ?
https://www.qemu.org/download/#source

@afbjorklund I am able to run, qemu on mac with --accel hvf. I created a shell script to exec qemu_script.sh as follows:
#!/usr/bin/env bash

exec qemu-system-x86_64 $QEMU_ACCEL_OPTS $@

And created a new podman machine using:
$ podman-machine create test2 -d qemu --qemu-program 'qemu_script.sh'

Starting machine with --accel hvf:
$ time QEMU_ACCEL_OPTS="--accel hvf"  podman-machine start test2
Starting "test2"...
(test2) Waiting for VM to start (ssh -p 56413 tc@localhost)...
Machine "test2" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `podman-machine env` command.
QEMU_ACCEL_OPTS="--accel hvf" podman-machine start test2  0.04s user 0.03s system 0% cpu 37.693 total

$ time QEMU_ACCEL_OPTS="--accel hvf"  podman-machine stop test2
Stopping "test2"...
Machine "test2" was stopped.
QEMU_ACCEL_OPTS="--accel hvf" podman-machine stop test2  0.01s user 0.01s system 0% cpu 6.033 total

Starting machine without any accelerator:
$ time  podman-machine start test2
Starting "test2"...
(test2) Waiting for VM to start (ssh -p 56413 tc@localhost)...
Machine "test2" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Error running SSH command: ssh command error:
command : sudo test -S /run/podman/io.podman
err     : exit status 1
output  :
Started machines may have new IP addresses. You may need to re-run the `podman-machine env` command.
podman-machine start test2  0.06s user 0.05s system 0% cpu 6:50.40 total

$ time  podman-machine stop test2
Stopping "test2"...
Machine "test2" was stopped.
podman-machine stop test2  0.01s user 0.01s system 0% cpu 9.041 total

Running with --accel hvf takes about  40s to start the machine compared to almost 7 minutes taken without any accelerator.


EC1 Ions Samples Re-Run

Several ions did not pass visual/logical value tests after the EC1 workshop. After manual investigation of the values, we are re-running samples in this file: Data/ions/EC1_ions_rerun.csv
To Do for @opalotenburg @kaizadp @amyerspigg  :

[x] Rerun samples at lower dilution
[x] Merge new data with older data at higher dilution (e.g. for Cl-)
[x] Update ions readme
[ ] Update ions file
[ ] Ions charge balance calculations (not doing)

AMP, OO, KFP discussion
dealing with dilutions craziness

match the results with the dilutions and dates
for the required dilutions in the dilution-key, there may be multiple dates
choose the most recent date

[ ] Re-run ions code
[ ] Make L0B
[ ] Make L2
[ ] Upload to GDrive

Issues with NAs introduced with dilution level chosen
EC1_K036 | 2022-11-03 | sodium | 5.881014 | NA | NA | 300
EC1_K036 | 2022-10-03 | sodium | 76.472898 | NA | NA | 25
EC1_K036 | 2022-02-11 | sodium | 36.527696 | NA | blank correct | 50

Somewhere between raw_data and data_ions_processed LOST a whole run date (20221019)

date run 2022-02-18 have duplicate entries. we only read the files in once , so duplicates were introduced somewhere between raw data and data_ions_qc

some ions are over or under diluted without the correct dilution level available. need to compile list of these to re run in instrument at correct dilution level for that ion.

2024-02-07
AMP, SCP, KFP
looked at flags for samples. not rerunning samples for ammonium, lithium, fluoride, phosphate (these are low concentrations and likely to be below detect even at 1x detection.
K037 is missing nitrate values at 1x. this sample was run at 1x, but was flagged "omit" in the readme file. need to double-check if this meant omit for all or for just the other detectors?
decision for L2: when we move to L2, put each analyte in a different csv, and zip all files under "ions"
@amyerspigg

K037: Use UV detector from the 1x dilution
Use 50x dilution for other ions


added mapfile support

Since most compilers don't add mapfile directives in the generated source, and instead just generate a .map file with the same basename as the original file, I added support for that.
It uses the deprecated fs.existSync() method, and doesn't work on browsers. This was just a quick fix and may be a good starter point or patch for someone who needs this functionality.

Which compilers is it doesn't add this? I believe that all the ones I have used does this...

@LinusU coffeescript doesn't add mapfile directives in the generated javascript. This is a known issue I've seen floating around.
From the coffeescript docs:

To generate source maps alongside your JavaScript files, pass the --map or -m flag to the compiler. (emphasis added)

Coffeescript doesn't add directives, and to be fair map detection shouldn't rely solely on directives. I've only ever seen maps (or even debugging information) refer to files alongside the generated files (i.e. foo.js and foo.js.map).

I agree it can be useful and seems harmless.
But I am gonna need some tests before merging it.


Add support for validating discussion description

Part of: https://github.com/github/accessibility-alt-text-bot/issues/11

Adds support for validating Discussions descriptions.
Uses the Discussions API GraphQL to addDiscussionComment because adding a discussion comment is not supported via GitHub CLI core (https://github.com/cli/cli/issues/5659#issuecomment-1137585847)

Doing some minor refactors for readability! Please hold!

@khiga8 We may want to update the readme description too:

This action supports accessible content sharing on GitHub by leaving an automated reminder whenever an image is shared on a GitHub Issue or Pull request without meaningful alternative text (alt text). Alternative text helps convey the context of the image to those who use assistive technologies such as a screen reader and removes accessibility barriers.

GitHub Issue, Discussion or Pull request without


Elements can't be distributed through multiple named slots.

Description
Elements distributed to named slots which are, themselves, distributed to other named slots do not appear in the composed tree. This seems likely to be related to #4958, also found while investigating the same issue.
Live Demo
http://jsbin.com/pugupaw/1/edit?html,output
In this demo, the top-level <div slot="outer"> should be distributed though the <slot name="outer" slot="inner"> (in the shadow root of <element-outer>) to the <slot name="inner"> (in the shadow root of <element-inner>).
Steps to Reproduce

Create an element with a named slot.
Create an element with a named slot that is distributed into the named slot of the first element.

Expected Results

Elements with the slot name corresponding to the outer element's slot are distributed to the inner slot.

Actual Results

Elements with the slot name corresponding to the outer element's slot are not distributed to a slot.

Browsers Affected
All
Versions

Polymer: v1.11.0
webcomponents: v0.7.24

This is the same issue as #4958. See this comment for an explanation and possible solution.


Merkle ledger: support delete

Merkle ledger should have a delete operation. Specifically, we should have (at least)
val remove_at_index : t -> index -> unit

and keep track of which indices are empty, and then update can put new accounts into some arbitrary empty index.

Subsumed by https://github.com/CodaProtocol/coda/issues/574


➕ Added a README & a tool

Added my README to Typing section
Added Shields Project to Tools

And I think these should be like this, "One's"  → "Ones" & "GIF'S" → "GIFS"
I did not add it to my commit.

@ABSphreak Looks Great! I'm merging now.
P.S - Don't forget to leave a ⭐ if you found this useful.
Thanks


Fix etcd_client's handling when key not found

At some point it changed so that you now get a FAILED_PRECONDITION instead of NOT_FOUND.

I think this messed up ct-clustertool, is that possible?

Yes, that's how I noticed it :boom:


Incorrect gradient rendering

This has been introduced with the refactoring of SvgPaintServerFactory in #564. At least two of the W3C images render incorrectly after this change:
pservers-grad-20-b.svg (fallback not used for stroke)

struct-use-05-b.svg (image not used for gradient rendering)

@mrbean-bremen
Next, I will check this issue.

@mrbean-bremen
Next, I will check this issue.

It is difficult and time-consuming to resolve struct-use-05-b.svg so that the various problems resolved by #564 do not recur.

It is difficult and time-consuming to resolve struct-use-05-b.svg so that the various problems resolved by #564 do not recur.

Well, thanks for trying!

Well, thanks for trying!


Annotation Tool for TAP-VID

Hello,
I am working on creating a dataset similar to TAP-VID but composed of surgical videos, is the tool used to annotate the videos in TAP-VID available for use?

Hi aetaffe,
The annotation tool is used internally and is not released to public.
However, we provide a colab notebook that illustrates how to use optical flow to assist the human annotation: https://github.com/google-deepmind/tapnet/blob/main/colabs/optical_flow_track_assist.ipynb
Hope it can help you a little bit.

Thank does help! Thank you!

Thank you! That does help!


[rocmlibs] Use tensile while building rocblas

Remove AOMP_BUILD_TENSILE option and always use SHA of tensile repo as given in rocBLAS/tensile_tag.txt.

So we still use develop branch for rocblas and 6.2 for Tensile?

Closing it in favor of #1168


DockerBuild Service Test Failing

:clock11: When did the problem start?
At least ~10 days prior to the opening of this issue (~Jan 15th). It was likely failing for some time before, but was lost in the see of the full service test failures (1900+) that we had for a while

:camera: Live badge
https://img.shields.io/docker/build/jrottenberg/ffmpeg

:wrench: Is the live badge working?
Not entirely clear, though it doesn't seem like it

:link: CircleCI link
https://app.circleci.com/pipelines/github/badges/daily-tests/734/workflows/0288e2f4-3f93-4662-97a8-7876dbc1c757/jobs/1632

:beetle: Stack trace
DockerBuild [live] docker build status (valid, user) [ GET /jrottenberg/ffmpeg.json ] - [ GET /jrottenberg/ffmpeg.json ]
/home/circleci/project/shields/core/service-test-runner/cli.js

ValidationError: message mismatch: "value" must be one of [fixed, passed, passing, succeeded, success, successful, partially succeeded, unstable, timeout, error, failed, failing, failure, infrastructure_failure, aborted, building, canceled, cancelled, created, expired, initiated, no builds, no tests, not built, not run, pending, processing, queued, running, scheduled, skipped, starting, stopped, testing, waiting]
    at Object.exports.process (node_modules/joi/lib/errors.js:184:16)
    at Object.internals.entry (node_modules/joi/lib/validator.js:150:26)
    at Object.exports.entry (node_modules/joi/lib/validator.js:27:30)
    at internals.Base.validate (node_modules/joi/lib/base.js:548:26)
    at Object.internals.assert (node_modules/joi/lib/index.js:225:27)
    at Object.attempt (node_modules/joi/lib/index.js:107:26)
    at Function._expectField (core/service-test-runner/icedfrisby-shields.js:73:13)
    at IcedFrisbyNock.<anonymous> (core/service-test-runner/icedfrisby-shields.js:54:26)
    at IcedFrisbyNock.<anonymous> (node_modules/icedfrisby/lib/icedfrisby.js:954:10)
    at invokeNextHook (node_modules/icedfrisby/lib/icedfrisby.js:1003:24)
    at /home/circleci/project/shields/node_modules/icedfrisby/lib/icedfrisby.js:1017:7
    at new Promise (<anonymous>)
    at IcedFrisbyNock._runHooks (node_modules/icedfrisby/lib/icedfrisby.js:976:12)
    at IcedFrisbyNock.run (node_modules/icedfrisby/lib/icedfrisby.js:1276:20)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Context.<anonymous> (node_modules/icedfrisby/lib/icedfrisby.js:1348:9)

:bulb: Possible solution
I'm wondering if Docker have finally shut down this legacy endpoint and we'll accordingly need to deprecate this particular badge.
(more context can be found here)
The image repository clearly still exists, and is active:
https://hub.docker.com/r/jrottenberg/ffmpeg/
and the badge which uses the "new" (several years old) endpoint is fine:
https://img.shields.io/docker/cloud/build/jrottenberg/ffmpeg

This particular image has been around for a while, and definitely predates the upstream DockerHub cutover, so it almost certainly is a case of upstream deprecation.

I can't see anything announcing they've removed it, but I spotted https://github.com/docker/hub-feedback/issues/2065 which I've subscribed to, in case there is any update..

I can't see anything announcing they've removed it, but I spotted https://github.com/docker/hub-feedback/issues/2065 which I've subscribed to, in case there is any update..


MPM vs hmri

Do we want to call data _MPM or _hmri?
Answer: MPM is an acquisition while hmri is a pipeline.

Answer: MPM is an acquisition while hmri is a pipeline.
Yes...

Close this?


Reaction Roles: Hardcode

I set up the reaction manager function to read reaction role info from a file, but I think this is honestly a little bit overkill for our purposes. It makes sense for scalability (we could implement feature to create an infinite number of roles), but I'm afraid this system might confuse people and make changing or adding roles ironically more difficult.
I would like to change the reaction role command to have each role hardcoded in. i.e. each role is a separate function/path within $rm.

Hi. I am interested in helping on this task. If you can provide me some additional information like what is the name of the function, how do you want me to change it, also the what would be role's names that I would have to hardcode.

Keep most discussion on topics here in the Github issue, but feel free to notify me on Discord in the collaborate channel when you have updates or if you have quick questions (a lot of the time I miss notifications here). I can also meet for brief meetings ~15 minutes here and there basically any day.


Automate model training and evaluation pipeline using AzureML

There is a need to automate the e2e workflow for model training and evaluation. The task involves:

Copying over the jupyter notebook files onto AzureML workspace and making it work
Have it generate the trained model file as a package (.pkl or .zip format)
Upload the trained model in a dated folder in the blob storage for the production system to consume.

### Tasks

import sys
!conda install --yes --prefix {sys.prefix} numpy
!conda install --yes --prefix {sys.prefix} pandas
!conda install --yes --prefix {sys.prefix} tqdm
!{sys.executable} -m pip install librosa
!{sys.executable} -m pip install pydub
!{sys.executable} -m pip install matplotlib

https://join.slack.com/t/orcasound/shared_invite/zt-235g6lhsk-0NUqg2Y92pxOrcLHx1TCbg

@pastorep I'm guessing with your plan these tasks aren't necessarily relevant any more? If so, perhaps this issue should be closed before the 2024 hackathon to reduce confusion?


Add support for setter methods not starting with set

Most of classes I'm using in my project have setters starting with "with" keyword and returning "this". For now, if I understand it correctly, it's not possible for me to use Podam because it searches methods starting by "set" keyword and returning void (as per PodamUtils.java)
Is it possible to make Podam search for both of these method prefixes ("set" and "with") or make this prefix configurable?

Yes, this is possible. You can implement your own version of ClassInfoStrategy or extend AbstractClassInfoStrategy overriding ClassInfoStrategy.getClassInfo(Class<?> pojoClass) and feed this strategy to a Podam factory.

7.0.1 snapshot available from here.

Thanks for quick reaction. I wrote my own strategy implementation and it works like a charm.

Thank you for pointing this out. I've changed AbstractClassInfoStrategy implementation so it's a bit easier to override:
    ClassInfoStrategy classInfoStrategy = new AbstractClassInfoStrategy() {
        @Override
        protected Pattern getGetterPattern() {
            return Pattern.compile("^whatIs");
        }

        @Override
        protected Pattern getSetterPattern() {
            return Pattern.compile("^with");
        }
    };
    PodamFactory factory = new PodamFactoryImpl();
    factory.setClassStrategy(classInfoStrategy);

That makes everything much easier for me, thanks. When these changes can be released?

Now Podam 7.0.1 is released, it will appear at some point at Maven repository.


Private Endpoint SDK initial commit

Hi @beoberha
Please add a link to the swagger PR in description and, when you regenrate, follow the instructions and make sure you git add the txt metadata file.
Thanks

@isra-fel Can you please take a look. Tests are all now passing and I believe I have addressed your concerns.


Daemon 3e Character Sheet.

Changes / Comments
This is an update to the rules sheet for the third edition of the Daemon system
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x] Does the pull request title have the sheet name(s)? Include each sheet name.
[ ] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[x] Does this add or change functional aesthetics (such as layout or color scheme) ?
[x] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.

Hey there @Luviants, your PR is actually deleting the sheet.json and thus making you sheet invalid. Could you fix that and update your pull requests? Thanks for all the work you do!


Allow attestation type to be configured when generating registration options

Hi there,
First off, thanks for this library. I've implemented remix-auth-webauthn in my app with success and learned a ton about Webauthn and Passkeys throughout the process.
The next step in my implementation is that I'd like to store the name of the authenticator (or at least AAGUID) server-side so that I can indicate to my users where their passkey is saved so they can manage them properly. This is represented in the "Security account settings" section of the Passkey user journeys doc published by Google.
As far as I understand it from reading the simplewebauthn documentation here, what I need to do here is to pass a value of direct to the attestationType when generating registration options, and then the authenticator will include an attestation statement in the response that I can use to access the info I need (i.e. AAGUID).
Sadly, it seems this library always passes a value of none for the attestation value, so we do not have access to the attestation statement:
https://github.com/alexanderson1993/remix-auth-webauthn/blob/194cb049c31568791d792efe372a8587725ecc92/src/browser.tsx#L105
Is it possible to allow us to configure this value? It seems like there should be a few options here as per AttestationConveyancePreference, defined in simplewebauthn here.
Thanks!

Yeah, there's no reason it can't be configurable. I don't know when I'll get to this, but PRs are welcome. If not, I'll try to make the necessary changes before the end of the week.

PR submitted in #16. Open to feedback, thanks again!


Auto Layout

Inner Nodes are coming out of parent Lyph
Expand Parent Lyph to accomodate inner Lyphs
Cardiac Model WBG - In graph json

closed during grooming


feat(all): implement dropdownlist, progressbar, slider + samples

Great!!
Op 22 dec. 2015 02:11 schreef "Charles Pockert"<EMAIL_ADDRESS>
Merged #175
https://github.com/aurelia-ui-toolkits/aurelia-kendoui-plugin/pull/175.
—
Reply to this email directly or view it on GitHub
https://github.com/aurelia-ui-toolkits/aurelia-kendoui-plugin/pull/175#event-498027888
.


Foam Visibility Distance and threshold?

Is there a way to extend the visibility distance of foam?, seem to cut out too early, also I can't see a foam threshold, I like to generate more foam when ocean is relatively calm, at the moment there is no control. Cheers.

The foam should extend as far as your lods. If you jack up the wave sims you should see foam appear.
There are settings for the foam sim, i'll point you to the docs and you can tell me if they make sense or not :) https://github.com/huwb/crest-oceanrender/blob/master/TECHNOLOGY.md


The server does not update!

My server does not update, I wanted to know how I can do!
A friend of mine says it updates itself!

It doesn't. Download latest version & apply to files.

Error in MulticastDelegate PlayerDeath: System.Reflection.TargetInvocationExcept
ion: Exception has been thrown by the target of an invocation. ---> System.Missi
ngMethodException: Method not found: 'Rocket.API.IRocketPlayerExtension.GetPermi
ssions'.
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (ob
ject,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke
Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
ization.CultureInfo culture) [0x00000] in :0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke
Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
ization.CultureInfo culture) [0x00000] in :0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] par
ameters) [0x00000] in :0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in :0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
in :0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in :0
at Rocket.Core.Extensions.MulticastDelegateExtension.TryInvoke (System.Multica
stDelegate theDelegate, System.Object[] args) [0x00000] in :0


chore: remove serverless and terraform backends

Summary
What's changed?
This PR removes the serverless and terraform backends as those functionalities were not being used. Because this removes a lot of code, some structures and abstractions were simplified as well.
Why do we need this?
This improves the overall quality of the codebase and application by removing mostly dead code that was not being tested enough. In addition, we will be able to maintain this project more easily.
How have you tested it?
Adapted the integration tests. They rely on Click test CliRunner so that everything runs in a single process which makes it a lot easier to debug.
Checklist

[ ] I have reviewed this myself
[ ] There is a unit test covering every change in this PR
[ ] I have updated the relevant documentation

Details

Leaving a comment to remember:
When deploying to python310 with a local installation of python3.11, typing_extensions would not be installed as the python version check would be resolved by python3.11. This would cause the function to crash immediately as we imported typing_extensions in the decorators. I thought this could have been solved using the pip flag --python-version and pointing it to the runtime version. But unfortunately, this flag is only used to select wheels and does not do anything regarding the version checker. There is a pip issue tracking this: https://github.com/pypa/pip/issues/11664
Realistically it's not too important because few packages are using version markers for dependencies markers. The fix here ended up to guard the import of typing_extensions with a if TYPE_CHECKING clause.


SO filter

Dirty but functioning SO-filter. Missing pieces

Fix all ugly solutions
move code from notebook to flagging.py
clean up notebook
check if stations have all nans (found no function to do that in xarray)

Thanks for the update!

check if stations have all nans (found no function to do that in xarray)

If I understand correctly you can do something like this
da.isnull().all()

Thanks for the update!

check if stations have all nans (found no function to do that in xarray)

If I understand correctly you can do something like this
da.isnull().all()

Thanks, fixed it now

I did some timing test and for the rolling-correlation calculation it seems that using pandas is by far the best solution, see the (messy) notebook I added in the lat commit. Approx. it takes 2sec to do the rolling-corr calculation for the time series of one PWS with 20 other time series from neighboring PWS, for the ~2year Amsterdam PWS dataset. I have only done some visual sanity checks of the results (see plots at the end of the notebook) and they look okay. Hence, the results need to be checked against results calculated in a more manual way.

I did some timing test and for the rolling-correlation calculation it seems that using pandas is by far the best solution, see the (messy) notebook I added in the lat commit. Approx. it takes 2sec to do the rolling-corr calculation for the time series of one PWS with 20 other time series from neighboring PWS, for the ~2year Amsterdam PWS dataset. I have only done some visual sanity checks of the results (see plots at the end of the notebook) and they look okay. Hence, the results need to be checked against results calculated in a more manual way.

thanks a lot for looking into this, I will continue to work on it with pandas rolling corr!

Short update, using copy-paste of my last commit message:
Added my variation of current SO filter notebook and added a first WIP
version using pandas.rolling.corr
I also did some timing experiments with the original for-loop, but it
will just be too slow to do the rolling-window thing via a for-loop and
slice the original data over and over again. There might be some speed
to be gained by using pd.corr and to do it for all neighbors at once,
but it will still be slow because of for-loop over time... Some info is
in the commented out code that I tried in the for-loop.
More important, I added an very first WIP version of the correlation
calculation using pd.rolling.corr, which is really fast. Someone will
need to check that it is correct, but the results look meaningful. In
combination with calculating rolling count of rainy time steps this is
already almost everything needed to add station-outlier flags in the
same (or almost the same way as in the original implementation, besides
of course having a variable time length window, which is not doable when
using .rolling, but IMO it is not required anyway). There are some plots
of the preliminary resluts that I generated in the notebook.


New kotools.types.NegativeInt type

Description
Create a new NegativeInt type in the kotools.types package and deprecate the old type from kotools.types.number.

Keep it simple by only providing its builders.

Checklist

[x] Create type with its builders.
[x] Make the type serializable.
[x] Make the type inheriting from Comparable.
[x] Deprecate the old type.
[x] Refactor.
[x] Update Work in progress section in changelog.

Done.


Task 2b: Primary Locations (Work)

How do you add work locations for the SPC after each individual has been mapped to an individual in the NTS? We start with the input data (let's call it spc_activity_chains). Each individual now has:

sic1d2007: Standard Industry Classification of economic activities 2007, 1st level (derived from UK TUS 2015) - (from the SPC)
an activity chain with TripPurpose | TripPurposeFrom |  TripEnd  | TripTotalTime  | Mode - (from the NTS)

A potential workflow could include:
1.  From spc_activity_chains, filter all individuals with TripPurpose = work
2.  Identify spatial distribution of different jobs

Use the businessRegistry.csv.gz file produced in the spc project link to documentation. It has a breakdown of business units by sic1d2007

3.  Determine feasible locations (zones) of workplace

Calculate travel time matrix by mode at the zone level. This can be done with a routing engine like r5r

For each person in spc_activity_chains, identify zones that are reachable within a buffer time of TripTotalTime (e.g. TripTotalTime +- 15 minutes)

The actual time should be based on the Mode used by the person
The assumption is that work trips are home based. In step [1], we could focus only on trips where TripPurpFrom = Home

4.  Choose a zone from feasible zones

For each person, the probability of commuting to a zone from the feasible zones is proportional to the number of jobs in the zone that match their sic1d2007
We loop over each person in spc_activity_chains. Once they are assigned to zone i, we reduce the number of jobs from sic1d2007 in zone i by 1. This ensures that we don't overassign people to zones. Sample without replacement
The assignment of people to zones needs to be constrained by the census flow data

5.  Choose a specific workplace

Same logic as step 4, but we need a spatial dataset of work locations. Options:

Workplaces created in SPC link. I think this makes most sense to start with but I should understand better how it was created
osmox: I think all workplaces are the same. No disaaggregation by sector
ONS POI data. Need to check if they allow free access to academics

Notes
Step 4 / 5

Not sure if step 4 is necessary - I could just jump to Step 5
This paper seems to do step 4 / 5 in a clever way, but I don't really understand it. The lit review could be useful

Other

how to handle people travelling together? TripTime could be distorted by a household member dropping off another household member on the way to work.

If this is not accounted for, some people will be assigned to work locations that are further away than reality
How many people does this affect? Negligible?
What is the actual detour? Negligible?

notes from meeting with @stuartlynn re handling people travelling together:

My assumption above is that all work trips are home -> work. I need to check the NTS data to see the distribution of TRipPurposeFrom when TripPurposeTo is work
It may make more sense to model trips to school first. It is reasonable to assume that all school trips originate at home. Once school trips are assigned to physical locations, I can then model the school -> work trip for adults dropping off their kids and then going to work.
The method would be the same as that outlined above, but feasible locations would be based on zones reachable within TotalTripTime from school location

From discussion of options on matching people to workplaces (and other locations):

Current matching (code) of people to workplaces in SPC (also included in output)
Other options discussed include distance and time constraints to satisfy schedules matched from NTS

How to constrain the flows to the census commuting data. From A dynamic microsimulation model for epidemics (dyme paper) section 2.4.2:

we initially adopt a stylized approach constructing ‘virtual workplaces’ which rely on the 2011 UK Census commuting origin-destination tables at the MSOA level for individuals with a fixed workplace. The UKTUS data includes a Standard Industry Classification (SIC) code for everyone in the dataset.Matching data from the UKTUS to SPENSER baseline data via the PSM process and the UKTUS we were able to assign to each of our synthetic resident workers an employer industry among the 21 divisions from the Standard Industry Classification (SIC) 2007. We assume that all workers have an equal ex ante probability to commute to all destinations independently from the SIC to which they belong. We build the set of possible destinations by multiplying the number of MSOAs in the study area, M = 107, to that of the SIC divisions, S = 21, obtaining 2,247 options. We then populate these virtual workplaces with synthetic workers based on their reference SIC and their Census relative probability to commute from Mi to any Mj, with j = 1...i...J, thus including the MSOA in which the worker resides.

@BZ-BowenZhang: as discussed Friday, just adding some further detail on ideas for two options for the workplace locations, feel free to let me know if helpful to discuss further at all.
Aim: to assign a workplace location to a given person's schedule after matching NTS to SPC and measure the consistency/validity with observed data sources and modelling.
A. Current SPC approach

Workplace is assigned to individuals in the SPC already, but we might prefer an alternative approach (see below) for model consistency/performance. The SPC approach is described in docs and code. In the outputted data, the workplace is available for each person, and this indexes into the venues table. These are probably most easily accessible by using the Reader class that is available in acbm from the SPC toolkit (uatk-spc):

from uatk_spc.reader import Reader
spc = Reader(path, region, backend="pandas", input_type="parquet")
# Has workplace assigned
spc.people
# Has location for a given workplace
spc.venues_per_activity

B. Alternative approach with feasible zones

Using the approach as @Hussein-Mahfouz outlined above and for schools (see #20), workplaces could be chosen in such a way related to their reachability (within some tolerance, e.g. 20%) in a given amount of time for the journey by specific mode from the matched NTS. We probably want to include a constraint on matching individual employment and workplace SIC codes as is currently done in the SPC matching and described above

Validation and comparisons

Regarding validation #17 and comparing the approaches A and B:

Given we have the travel time/mode from NTS, we could measure the performance of both approaches in terms of how well the expected travel time for the chosen location from the travel time matrices matches the one recorded in NTS
As described in the docs for validation of the current workplaces ($\rho = 0.7$ Pearson correlation coefficient with MSOA flows), we could also measure this for both approaches here.


Remove delay of loading sidebar items and other services on startup

Resolved / Related Issues
Items resolved / related issues by this PR.

Resolves issue discussed in discord server where the sidebar items are only loaded after the main page has loaded, which causes an unnecessary delay.

Details of Changes
Add details of changes here.
Validation
How did you test these changes?

[x] Built and ran the app
[ ] Tested the changes for accessibility

Tested in release mode and didn't see much of a difference.
Screenshots (optional)
Add screenshots here.

/azp run

@winston-de thank you!


Modeler looses it's history when this plugin is installed

The modeler seems to loose it's most recent open file history when this plugin is installed. Toggling it on and off has no effect either. If you close the modeler with a model open and displayed, and then re-invoke the modeler, it opens without any model. It should open with the most recent open model displayed and all other models that were open at the time in additional tabs.

Hi @meepza
Please try saving bpmn files before closing them in order to keep the changes.
Kind regards


Improve 2FA workflow usability

Fixes #2828
Add description here.

@frjo, this could also be deployed on test.

@frjo, this could also be deployed on test.

I made some minor updates.

Set TWO_FACTOR_QR_FACTORY to use Pillow so the QR code is a PNG. This makes Apple devices recognise them.
Updated the django-two-factor-auth packages, some minor followup fixes was needed.
Added a otpauth link to the setup view. This is the same info as in the QR code but in URL form.


[MM-33679] Fix Accessibility for Custom Status and Modals

Summary

Adds voiceover accessibility support for custom status and modal headers.
Ticket Link

Fixes MM-33679

Screenshots

before
after

Release Note

NONE

/update-branch


chore: bump std

<EMAIL_ADDRESS>-><EMAIL_ADDRESS>

Thanks!

@gcaptn could u pls release a new patch version?

@talentlessguy hey, I just pushed a new tag. Thanks for the reminder

nice thx