Add Conversion Progress Bars

This PR implements the basic skeleton for parallel conversion progress bars, specifically a parallelized global bar for conversions.
Pretty sure this still requires updates to NeuroConv to allow for within-file updates. Specifically, we need to ingest the following conversion options:

@CodyCBakerPhD Actually I see now in https://github.com/NeurodataWithoutBorders/nwb-guide/issues/774 that you don't think we need these options.
I'm getting this error with the above code enabled:
jsonschema.exceptions.ValidationError: Additional properties are not allowed ('iterator_opts' was unexpected)

Failed validating 'additionalProperties' in schema['properties']['Phy Sorting']:
    {'additionalProperties': False,
     'properties': {'stub_test': {'default': False,
                                  'description': 'If True, will truncate '
                                                 'the data to run the '
                                                 'conversion faster and '
                                                 'take up less memory.',
                                  'type': 'boolean'},
                    'units_description': {'default': 'Autogenerated by '
                                                     'neuroconv.',
                                          'type': 'string'},
                    'units_name': {'default': 'units',
                                   'description': 'The name of the units '
                                                  'table. If '
                                                  "write_as=='units', then "
                                                  'units_name must also be '
                                                  "'units'.",
                                   'type': 'string'},
                    'write_as': {'default': 'units',
                                 'description': 'How to save the units '
                                                'table in the nwb file. '
                                                'Options:\n'
                                                "- 'units' will save it to "
                                                'the official '
                                                'NWBFile.Units position; '
                                                'recommended only for the '
                                                'final form of the data.\n'
                                                "- 'processing' will save "
                                                'it to the processing '
                                                'module to serve as a '
                                                'historical provenance for '
                                                'the official table.',
                                 'enum': ['units', 'processing']},
                    'write_ecephys_metadata': {'default': False,
                                               'description': 'Write '
                                                              'electrode '
                                                              'information '
                                                              'contained '
                                                              'in the '
                                                              'metadata.',
                                               'type': 'boolean'}},
     'required': [],
     'type': 'object'}

On instance['Phy Sorting']:
    {'iterator_opts': {'display_progress': True,
                       'progress_bar_class': <class 'tqdm_publisher._subscriber.TQDMProgressSubscriber'>,
                       'progress_bar_options': {'mininterval': 0,
                                                'on_progress_update': <function convert_to_nwb.<locals>.update_conversion_progress at 0x125b33ca0>}},
     'stub_test': True}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/concurrent/futures/process.py", line 211, in _sendback_result
    result_queue.put(_ResultItem(work_id, result=result,
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/multiprocessing/queues.py", line 371, in put
    obj = _ForkingPickler.dumps(obj)
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/multiprocessing/reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
AttributeError: Can't pickle local object 'convert_to_nwb.<locals>.update_conversion_progress'
"""

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

Traceback (most recent call last):
  File "/Users/garrettflynn/Documents/GitHub/nwb-guide/pyflask/apis/neuroconv.py", line 117, in post
    return convert_all_to_nwb(url, **neuroconv_api.payload)
  File "/Users/garrettflynn/Documents/GitHub/nwb-guide/pyflask/manageNeuroconv/manage_neuroconv.py", line 858, in convert_all_to_nwb
    output_filepath = future.result()
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
AttributeError: Can't pickle local object 'convert_to_nwb.<locals>.update_conversion_progress'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/flask_restx/api.py", line 404, in wrapper
    resp = resource(*args, **kwargs)
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/flask/views.py", line 109, in view
    return current_app.ensure_sync(self.dispatch_request)(**kwargs)
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/flask_restx/resource.py", line 46, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/Users/garrettflynn/Documents/GitHub/nwb-guide/pyflask/apis/neuroconv.py", line 123, in post
    neuroconv_api.abort(500, str(exception))
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/flask_restx/namespace.py", line 153, in abort
    abort(*args, **kwargs)
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/flask_restx/errors.py", line 28, in abort
    flask.abort(code)
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/flask/helpers.py", line 277, in abort
    current_app.aborter(code, *args, **kwargs)
  File "/Users/garrettflynn/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/werkzeug/exceptions.py", line 863, in __call__
    raise self.mapping[code](*args, **kwargs)
werkzeug.exceptions.InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

@CodyCBakerPhD Actually I see now in https://github.com/NeurodataWithoutBorders/nwb-guide/issues/774 that you don't think we need these options.

I'm getting this error with the above code enabled:

This only applies to recording and imaging interfaces; sorting, such as Phy, do not currently support it at all since they don't buffer at all (source data is small enough to load entirely to RAM)

Using all the open PRs together, this is working!

For some reason, there's a small delay between the completion of each file and the registration of their success on the global bar.

This behavior may be related to the fact that the raw TQDM updates indicate n=2 with total=1 for the final update, which still comes slightly before registration globally. Not sure why that mismatch between n and total exists

For some reason, there's a small delay between the completion of each file and the registration of their success on the global bar.

That might just come down to an edge case on the size of this (small) data
I can try with some larger files

@garrettmflynn it might be a while until the entire stack comes into sync with this; can you splinter out the logging improvement to a separate PR?
Also would it be possible to limit the number of error messages displayed at a time so the screen doesn't plan?

Sure I can break out the parts of this that aren't related to the parallel logging.

Also would it be possible to limit the number of error messages displayed at a time so the screen doesn't plan?

I'm not really sure what you mean by this. Displayed where?

I'm not really sure what you mean by this. Displayed where?

To prevent chaotic popups such as this screenshot in  https://github.com/NeurodataWithoutBorders/nwb-guide/issues/783

@garrettmflynn Could you update this branch? I'm thinking I'll review it after #762

@garrettmflynn Just give me a ping when tests are passing; would love to give this a try on some larger files
(also in the NeuroConv PR I propagated it to include imaging interfaces as well)

@garrettmflynn Any idea what's up with the ubuntu pipelines here? I reran them 3 times

Looks like we saw this same error in https://github.com/NeurodataWithoutBorders/nwb-guide/pull/676#issuecomment-2097111205.
Last time, we were able to track this down by looking at the artifacts. I'll do this now.

At least for the lastest run, it looks like the progression though one of the pipelines (previously an earlier pipeline, this time CellExplorer) freezes and the Puppeteer instance decides it's been too long after 5min.
Looking at the screenshots, everything looks good. Only weird part is that there aren't any after CellExplorer File Metadata since the stall.

And it's happening on all of the CI now?

My bad, looks like I didn't wait for the final screenshot to finish before closing Puppeteer. Had to significantly refactor the iteration through all the pipeline pages so a screenshot could be injected after each—and it looks like this slipped through.

So I'm still not sure why this is happening, but I can at least tell you what is happening:
At a seemingly random pipeline, the tests get stuck on the stub conversion despite it finishing 3s after the page transition is triggered:

This screenshot doesn't change for another 2+ minutes until the Ubuntu test fails. This doesn't happen on Windows or Mac tests.

Just tried this out locally on Windows using the multi-session tutorial dataset that was modified (by changing line https://github.com/NeurodataWithoutBorders/nwb-guide/blob/main/src/pyflask/manageNeuroconv/manage_neuroconv.py#L1347 from 3.0 to 100.0)
Since the number of jobs is not yet exposed to the frontend (so no parallel writing of multiple files) I would have expected only one extra bar below the main one (counting how many files remain), with the second bar tracking progress on writing the 'long' recording for each file
However, I did not see any extra bar displayed

Was this a full or stub conversion? Just tested on my M2 and I'm able to observe sub-bars for each file—though this is disabled for stubs.

While the option isn't exposed on the UI, we are telling the backend to write use 2 jobs at the moment—so you should see four sub-bars populate in groups of two.
Though to clarify, you're expecting to see one sub-bar if the n_jobs is 1?

It was a full conversion; I don't expect sub bars for stub mode (though I would expect parallelization)
Odd, I just tried with my M1 mac and they show up fine; I'll try again on Windows later and raise an issue

Though to clarify, you're expecting to see one sub-bar if the n_jobs is 1?

Yeah, I'd always expect sub-bars per file to show how long each individual file is taking to write


Compass axis reversed on OnePlusOne

http://forum.xda-developers.com/oneplus-one/help/compass-magnetic-sensor-t3176956/post62301573#post62301573
Also user reported.

Added a feature to manually reverse the axes.


ATO-1254: Add information relating to max age

Why
We will soon be supporting max age for some RPs. They will need to know how to include max age in their authorize request, and how to understand the auth_time claim in the response.
What
Some additional information relating to the above.
Technical writer support
Should max age be included in the example requests? Bearing in mind that max age will not be available to all RPs.
How to review
Check that my words are technically accurate and fit in the with the style of the documentation.
Changelog
If this change is significant (for example, launching a new feature or deprecating a feature), you should update the changelog found at partials/_changelog.erb  under the heading 'Documentation updates'.
Confirm

[ ] I have checked if any docs change here also requires updates to other repositories (ADRs / RFCs, README.md, Team Manual, elsewhere in these docs)
[ ] Where there is any overlap I have updated or opened a PR for corresponding changes

We probably want to update the changelog for this change


Push validation to use CST for certain elements allowing the AST to return only what is valid WDL.

As posted below, I just want to note that Peter and I discussed why multiple requirements sections are returned here. It's because this validation is implemented using the AST, but it doesn't really need to do that---the CST contains enough information to ensure there is only one requirements section. Thus, it'd be better if the validation leveraged the CST, and the AST returned only an optional, singular section.

@peterhuene, I did not end up making the changes we discussed for rolling the validation back to the CST here. One of us can do that in a future PR.

Originally posted by @claymcleod in https://github.com/stjude-rust-labs/wdl/pull/142#discussion_r1693157564

Though this issue discusses requirements specifically, it goes for more than just that section.

As I'm currently implementing the type checking, which makes use of the AST, I figured it's best to tackle this issue now so that we don't keep adding more and more code that needs to later be changed once we fix the AST methods.
Going to put the type checking impl on hold so I can this done today.


Showcase recommended usage patterns

These patterns do not need to include code but could simply serve as guidance for developers, describing the flow for different popular patterns.
e.g:
Login a user
describe use case and flow
Verify user action
describe use case and flow

Not sure if it helps, but one of my main points of confusion is how to safely register a 2nd device when using a TPM authenticator type.

Yes, that is a topic that has come up. Generally the recommendation is using a roaming authenticator to bootstrap multiple platform authenticators. You could come up with a way to use a device to on board another device. The way Keybase works always comes to mind.


Run Keyword And Warn Message

I have this functionality in my user-defined keyword and I thought about submitting it here.
When we are dealing with non blocking bugs (in the context of an application), we want them not to block the execution of the test and be visible in the logs so we know they are still pending. We then use the Builtin Run Keyword And Warn On Failure. It is great because it gives visibility and a quick link to the Keyword from within the "Test Execution Errors" section.
Though, this Keyword does not provide the ability to add a custom message to give further information and context. For example, when dealing with many bugs across an application - some of them impacting several areas and therefore present in several test suites - it's nice to be able to display the ticket id and/or link for a quick access to the bug description.
This Keyword would be an enhancement of Run Keyword And Warn On Failure providing the ability to add a message when the keyword fails or succeeds.

This raises the question of log levels and the ability to customise the label and the colors.

I'm not sure is this a useful enough enhancement to warrant adding a new BuiltIn keyword especially when there are other alternatives. One alternative is using the newish TRY/EXCEPT structure, possibly wrapped to a generic user keyword, and other is using the skip-on-failure functionality. The latter actually sounds like a really good match for your particular need. Is there a reason it wouldn't work for you?

I still believe this isn't important enough feature to warrant a new BuiltIn keyword. Enhancing the current Run Keyword And Warn On Failure would be fine, but that is likely pretty complicated without breaking backwards compatibility.


Refine chain using generator or custom callbacks

Feature request
Here:
https://github.com/langchain-ai/langchain/blob/a2f7246f0eeafff29b63c90d45ec9e9eb6c21812/libs/langchain/langchain/chains/combine_documents/refine.py#L153C1-L153C1
And here:
https://github.com/langchain-ai/langchain/blob/a2f7246f0eeafff29b63c90d45ec9e9eb6c21812/libs/langchain/langchain/chains/combine_documents/refine.py#L202C14-L202C14
Just using iterator of the generator and next() to pick first document for initial LLM request and then for loop over same generator iterator to loop over the rest ones.
The most important is to provide previous response when iterating next Document.
Some callbacks system will also do, which will allow to decide whether to break from the loop and which will accept next document as response from that callback.
Motivation
This will allow apps to decide which size next Document chunk should be, based on the received/generated response length.
Allowing to develop dynamic chunking based on previous response.
Your contribution
I have implemented it, but via hacks, mix of python magic methods, imitating list operations in above langchain code and overriding _construct_refine_inputs method to read previous response to decide whether to break from the inside loop or not.

Still relevant, because current solution is ugly and more of a hack than official langchain solution.
Currently there is no way to dynamically change next chunk size based on the last refine response.


1HP bug back

Description of the bug
Hello,
when I reached Drezen I noticed the enemies had 1 HP, 0 hit dices.
Things I tried:

Disable toybox
Uninstall toybox
Reinstall toybox
All of the above + using a save before going in Drezen

Nothing worked
Steps To Reproduce
Enter area with enemies
See enemy have 1hp
Expected Behavior
No response
Log Files
No response
Save File
No response
Screenshots
No response
Settings
No response
Toybox Version
1.5.2
Operating System
Windows
What game are you using Toybox on?
Pathfinder Wrath of the Righteous
Game Version
Latest, all DLC
Anything else?
No response

I used to have the more updated version but it stopped working.
Ok it worked once more, I verified, updated it, uninstalled and re-installed respect mod... no idea what happened tbh. Thank you for your time!

From: xADDBx @.>
Sent: Saturday, October 7, 2023 5:56 PM
To: cabarius/ToyBox @.>
Cc: TizTab @.>; Author @.>
Subject: Re: [cabarius/ToyBox] 1HP bug back (Issue #1049)
ToyBox version 1.5.2 is pretty ancient.
Did you maybe miss switching when ToyBox changed its UUID so it's not showing as a new version available? I'd suggest installing the latest version from Owlcat discord pinned in #mod-users-general
—
Reply to this email directly, view it on GitHubhttps://github.com/cabarius/ToyBox/issues/1049#issuecomment-1751744539, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDDROOHZF3V45VZPFYZN7KLX6F3TBAVCNFSM6AAAAAA5XAJQ4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG42DINJTHE.
You are receiving this because you authored the thread.Message ID: @.***>


fix(README): add pacstall instructions

Thank you for packaging this in pacstall!
I merged this externally because I wanted to keep the .deb option for those who don't use pacstall


Update license (first-timers-only)

first-timers-only
This issue is tagged :octocat: first-timers-only. It is only for people who have never contributed to open source before, and are looking for an easy way take their first steps.
Consider this your chance to dip your toe into the world of open-source, and get some bragging rights for helping make drones fly, cars find charging stations, and people and goods get from place to place.
Find more first-timers-only issues here.
Thank you for your help :heart:
What is this project?
DAV (Decentralized Autonomous Vehicles) is a non-profit foundation working to build an open-source infrastructure for autonomous vehicles (cars, drones, trucks, robots, boats, and all the service providers around them) to communicate and transact with each other over blockchain.
As an organization that believes in building a large community of open-source contributors, we often create issues like this one to help people take their first few steps into the world of open source.
Mission Control
The DAV project you are looking at is Mission Control. It is the main component of the DAV network, used to create a DAV network node which connects vehicles, users, services, and infrastructure together.
How you can help
This project is open sourced under an MIT license, but the package.json file accidentally lists the license as 'ISC'. Change it to 'MIT'.
Contributing to Mission Control

[ ] Make sure this issue is labeled up-for-grabs and not labeled claimed, to verify no one else is working on it.
[ ] Comment in this issue that you would like to do it.
[ ] Open the Mission Control GitHub page and click the ★ Star and then ⑂ Fork buttons.
[ ] Clone a copy to your local machine with $ git clone git@github.com:YOUR-GITHUB-USER-NAME/missioncontrol.git
[ ] Code! Code! Code!
[ ] Commit your changes and push your local changes back to github with $ git push -u origin master
[ ] Visit your fork on GitHub.com (https://github.com/YOUR-USER-NAME/missioncontrol) and create a pull request for your changes.
[ ] Make sure your pull request describes exactly what you changed and references this issue (include the issue number in the title like this: #1)
[ ] Please do not fix more than one issue at a time. Your pull request should only fix what is described in this issue.

Asking for help
We appreciate your effort in taking the time to work on this issue and help out the open source community and the foundation. If you need any help, feel free to ask below or in our gitter channel. We are always happy to help 😄
We sometimes feature the work done by the community on our website. If you would like your GitHub user excluded from that, please email<EMAIL_ADDRESS>

I would like to do it.

Thank you @jonathan-hamilton
Please, go ahead 👍

Would like to do it.

Can I try?

@veroca88 - Please, go ahead 👍

Thank you @jonathan-hamilton
Looks great!

@veroca88 This one has already been solved.
But the good news is that we have many other open issues - https://github.com/search?q=first-timers-only+org%3ADAVFoundation+label%3A"up-for-grabs"&state=open&type=Issues


Fix for alignment of stacked checkboxes and radio buttons in Bootstrap 3

Modified layout for checkboxes and radio buttons with Bootstrap 3, so that stacked widgets align with their inline counterparts (as well as other form fields).
The Problem
Stacked and inline fields does not align:

...but with the changes in this commit, they will:

Code used for this example
# Fields
checkbox_inline = forms.TypedChoiceField(
    label=_('Checkbox Inline'),
    widget=forms.CheckboxSelectMultiple,
    choices=((1, 'Inline 1',), (2, 'Inline 2',), (3, 'Inline 3',), (4, 'Inline 4',),)
)

checkbox_stacked = forms.TypedChoiceField(
    label=_('Checkbox Stacked'),
    widget=forms.CheckboxSelectMultiple,
    choices=((1, 'Stacked 1',), (2, 'Stacked 2',), (3, 'Stacked 3',), (4, 'Stacked 4',),)
)

radio_inline = forms.TypedChoiceField(
    label=_('Radio Inline'),
    widget=forms.RadioSelect,
    choices=((1, 'Inline 1',), (2, 'Inline 2',), (3, 'Inline 3',), (4, 'Inline 4',),)
)

radio_stacked = forms.TypedChoiceField(
    label=_('Radio Stacked'),
    widget=forms.RadioSelect,
    choices=((1, 'Stacked 1',), (2, 'Stacked 2',), (3, 'Stacked 3',), (4, 'Stacked 4',),)
)

# Layout Helper
self.helper.layout = Layout(
    InlineCheckboxes('checkbox_inline'),
    'checkbox_stacked',
    InlineRadios('radio_inline'),
    'radio_stacked',
)

The Fix
In accordance with the specifications in Bootstrap (see section Checkboxes and radios) I have moved the .checkbox class to a parent div element for stacked widgets (only), and kept .checkbox-inline for inline elements only.

anyone?

Apologies, @maraujop and I are both busy on paid projects that do not involve continuing development of django-crispy-forms. As much as we love working on open source, paying the bills has to come first.  We're hoping something paid comes our way that allows us to financially justify working on the project. If anyone has any non-time consuming suggestions for resolving this problem, we'll take a look at them.

@pydanny how about asking for more maintainers?

How about doing a kickstarter (like Andrew Godwin did for South migrations)? I'd gladly pay for a properly maintained forms library, and I guess I'm not the only one.

@dessibelle Can you update this to the latest dev? Thanks.

Current coverage is 96.31%

Merging #358 into dev will not affect coverage as of 5f3c9fa

@@              dev    #358   diff @@
=====================================
  Files          26      23     -3
  Stmts        2281    2281
  Branches      206     206
  Methods         0       0
=====================================
  Hit          2197    2197
  Partial        35      35
  Missed         49      49

Review entire Coverage Diff as of 5f3c9fa

Powered by Codecov. Updated on successful CI builds.

@carltongibson Sure thing!

Looks good. Thanks.

Cool, thank you! :sparkles:


Fix for Laravel 5.1

As mentioned in the Upgrade Guide the createMatcher, createOpenMatcher, and createPlainMatcher methods have been removed from the Blade compiler in Laravel 5.1.
Using the Components with Laravel 5.1 thorws an error stating that Blade::createMatcher cannot be called.
To fix this it is migrated to Blade::directive().

Thanks!


[Fix #7826] Add new Layout/SpaceAroundMethodCall cop

This MR adds a cop to for checking dot method calls to not have spaces around them.
It works for multiple method calls in a single line or in multiple lines.
closes https://github.com/rubocop-hq/rubocop/issues/7826

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

I think this cop should be a bit broader and check for all method invocation operators - @rrosenblum already mentioned safe navigation, but there's also ::.  Probably the name should be something like "SpaceAroundMethodCallOperator" or something like this.

@bbatsov I have changed name to SpaceAroundMethodCallOperator. I'll add checks for safe navigation operator & :: too.

Okay, ping me when this is ready for a review again.

@bbatsov This is ready for review.

@saurabhmaurya15 I think you can improve the test suite a bit if you used shared examples there, as the tests for ., :: and .& are mostly the same. Apart from this - it seems to me we're pretty close to finishing the cop.

Thanks!


[Bug]: Batch controlnet broken

What happened?
Use of batch controlnet in img2img. Set the settings, select controlnet, see results:
Openpose - completely blank, black detectmaps, useless
Depth - fried

Cunny - fried

The others are likely similarly broken. I tested on drive and 2 different colab notebooks so far, same results. I asked someone to test in a different notebook (nolan something) and it worked for them as it should, with the same steps I was giving.
Seems like something I'd need help with looking into so pls help
Reported about it previously here in case they knew anything about it, but I feel like this place is more relevant now that I found out that it's not only on the drive instance.
Colab cell output
Loading model from cache: control_v11f1p_sd15_depth_fp16 [4b72d323]
Loading preprocessor: depth_zoe
Pixel Perfect Mode Enabled.
resize_mode = ResizeMode.INNER_FIT
raw_H = 1024
raw_W = 640
target_H = 1024
target_W = 640
estimation = 640.0

Which colab and model(s) were you using when the error occurred?
Any model
but https://civitai.com/api/download/models/36936
Which Public WebUI Colab URL were you using when the error occurred?
gradio.live
If you used HiRes mode when the error occurred, please provide the Hires info
No response

Exact settings and steps to replicate for testing:
Controlnet settings

img2img settings

batch settings

controlnet setup

https://ezgif.com converter problem right?


engine gn scripts fail to build unit tests when building for an Arm CPU

Currently, when you build on an M1 Mac you have to manually specify a gn argument to build for an arm64 CPU. Because of the way that the unit tests are enabled, this will turn off the unit test builds by default unless you manually specify the --enable-unittests command line argument to gn. This problem likely is due to the following line of code:
https://github.com/flutter/engine/blob/d366183c03c9e12b8e0845ed2f35c6c091a29627/testing/testing.gni#L15

This is a sub-component of https://github.com/flutter/flutter/issues/103386. Leaving it open and treating the above as a general umbrella issue.

We now have universal gen_snapshot executables for macOS and iOS targets. Working on the same for Android. Once that work has landed, I'll get back to this issue (which admittedly I haven't reverified in a while) which is part of the broader issue of being able to build in general on Apple Silicon macOS host machines: https://github.com/flutter/flutter/issues/103386

This was resolved in flutter/engine#41215.


[Question]: Unable to see "cube" or "dimension" icons in navigation table

@CurtHagenlocher
I'm trying to create a navigation table with "CubeViewFolder" and "Dimension" icons. But when I run my code I see only "Table" icon.
shared ABC.Contents = (optional message as text) =>
    let
        objects = #table(
            {"Name",       "Key",  "Data", "ItemKind", "ItemName", "IsLeaf"},{
            {"Finance",   "Finance",  GetCubes() , "CubeViewFolder",    "CubeViewFolder",    false},
            {"Sales",   "Sales",  GetCubes() , "CubeViewFolder",    "CubeViewFolder",    false}
        }),
        NavTable = Upwork.ToNavigationTable(objects, {"Key"}, "Name", "Data", "ItemKind", "ItemName", "IsLeaf")
    in
        NavTable;

GetCubes = () =>
    let
        entReportingObjectsHeader = {"Name", "Key", "Data", "ItemKind", "ItemName", "IsLeaf"},
        entReportingObjectsValues =
          {
            {"Fact", "Fact", "", "Table", "Table", true},
            {"DimScenario", "DimScenario", #table({"ID", "Name", "Source"}, {{"Item1","Item1","Item1"}}), "Dimension", "Dimension", true},
            {"DimDate", "DimDate", #table({"Column1"}, {{"Item1"}}), "Dimension", "Dimension", true},
            {"DimOrganization", "DimOrganization", #table({"Column1"}, {{"Item1"}}), "Dimension", "Dimension", true}
          },

        objects = #table(entReportingObjectsHeader, entReportingObjectsValues),
        table = Upwork.ToNavigationTable(objects, {"Key"}, "Name", "Data", "ItemKind", "ItemName", "IsLeaf")
    in
        table;

Here's the output
I need red highlighted as CubeViewFolder and blue highlighted as Dimension icons

Any thoughts how to achieve this?

I had the same issue and found out that the icon actually depends on the Preview.DelayColumn property of the navigation table. When setting it your code works as intended.


update ConnectionString in CsvDataConnection.CsvFile setter

fix #588

Problem will be fixed in version 2024.1.4


Don't quote absolute path helper commands

Quoting treats the full command as the path to binary, which prevents arguments from being provided.
According to the Git documentation arguments should be accepted. This also matches the behaviour of git itself.
I discovered this issue through Cargo's use of this library.

Thanks!


Refactor TestWindow and TestWidgetsFlutterBinding.window for multi-window world

The SingletonWindow these are based on is going away as port of the multi window world. Replacements are FlutterView and PlatformDispatcher. An app can use multiple FlutterViews now. You should still be able to write simple widget tests (unit tests) and not care about windows/views at all.

@pdblasi-google I filed this as a placeholder issue for the work I talked to you about last week. Let's sync up in the new year to figure out the details.

@goderbauer and I went over some of the specifics of this today, here's the summary of the discussion:
New APIs
TestView
We need an API similar to the current TestWindow that people can change view specific properties (such as size of the view) for testing. For this a new TestView which will implement the parts of TestWindow that are not currently covered by TestPlatformDispatcher.
TestPlatformDispatcher will be adjusted so that any views requested by the application return a TestView instead of a regular View.
TestWidgetsFlutterBinding.view & TestWidgetsFlutterBinding.viewOf
For the likely most common case of a single view, we will add a view property to WidgetTester that will return the only view in TestPlatformDispatcher. If there is more than one view, this property will throw an exception.
There will also be a viewOf method that takes a finder and returns the nearest View in the widget tree above the result of the finder. This is intended to be similar to the View.of API for fetching the nearest View while in the app.
Old APIs
TestPlatformDispatcher will be adjusted to return TestViews when a View is requested.
TestWindow and the TestWidgetsFlutterBinding.window property will be deprecated. Usages of these will be pointed to the TestWidgetsFlutterBinding.platformDispatcher and TestWidgetsFlutterBinding.view properties.
Optional Improvements
Since we're deprecating TestWindow, we can take this chance to make setup and teardown of modifiable properties (such as view size) easier. Possibly in a few different ways:

TestPlatformDispatcher could return new views per test, meaning that default values would always be reset.
TestPlatformDispatcher and TestView could store and restore their own modifiable values at the beginning and end of each test respectively.

This had to be reverted due to failures of web tests. Reopening.

Reland was reverted due to failures in google tests. Reopening.

Reland (2) was reverted due to failures in google tests. Reopening.


Dynamic steps

In my scenario, the user should see a step if checks a radio button.
Is this possible?

I'm using this component with dynamic steps by using an ngRepeat. In my scneario I add and remove steps.
<md-stepper flex id="stepper-rematricula" md-mobile-step-text md-linear md-alternative>
        <md-step md-label="{{::step.desc}}" ng-repeat="step in ::$ctrl.steps">


Sysprep count

This article states "You can run the Sysprep command up to 8 times on a single Windows image." However, the linked documentation (https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--generalize--a-windows-installation#limits-on-how-many-times-you-can-run-sysprep) states sysprep can be run either 3 or 1001 times, depending on the version of Windows.  Can you please clarify the number of times sysprep can be run on a single Windows image?

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

ID: 45a82eb4-6023-683b-50ad-eb5d5ffd9f4c
Version Independent ID: 672e6918-aa05-3f03-2497-1d3a6ac1488d
Content: Use Azure Image Builder with an image gallery for Windows VMs - Azure Virtual Machines
Content Source: articles/virtual-machines/windows/image-builder-gallery.md
Service: virtual-machines
GitHub Login: @kof-f
Microsoft Alias: kofiforson

@APEThomas Thank you for bringing this to our attention!  We are investigating and will get back to you shortly.

I just approved changes to the doc to refer to the Sysprep docs for the latest information. Closing the issue for now.
#please-close


Possibility to the the result of the match

HI 👋
As far i understand is not possible to enter the result (scoreboard) to the match.
Should this be added to the fn enterResult() or is the idea to add this as meta ?
This would be nice on the enterResult() to be part of the standings

I am unsure exactly what you are asking. Could you give me a little more detail or an example of what you want?

Hi @slashinfty
No problem. My question is not clear 😅
I'm think a lit bit about the case:

Soccer Tournament
When i add the result with https://slashinfty.github.io/tournament-organizer/classes/Tournament.html#enterResult normally i don't add the Number of wins for player one/two and the Number of draws but u add the scoreboard of the match.
Like:
Player1: scored 2 goals
Player2: scored 3 golas

Result: Player 2 wins the match 3-2
If the score is added to the match, then the results can be added to the standings to display it as well ( like goals difference, how many goals scored, how many conceded )
My question is also based on this, that i'm trying to build with this (amazing) package:

The matches array in the Player object (see here) has objects for each match, including the number of wins and losses in the match (which, in the case of sports, can be points).
Is this what you're looking for?

No.
I'm mean the scoreboard of the match is missing:
Match ID: 01
Player 1 scores 3 goals
Player 2 scored 1 goal
Result: Player 1 wins 3-1
Match ID: 02
Player 1 scores 2 goals
Player 2 scored 2 goal
Result: Draw wins 2-2

You can determine the result from the match information.
If you have two players in a match (example):
[
  Player {
    id: 'LTasmXDtIquJ',
    name: 'Player 1',
    active: true,
    value: 1,
    matches: [ [Object] ],
    meta: {}
  },
  Player {
    id: 'iwgzRFssrMvC',
    name: 'Player 2',
    active: true,
    value: 2,
    matches: [ [Object] ],
    meta: {}
  }
]
Match {
  id: 'N1vjDXxmusjH',
  round: 1,
  match: 1,
  active: false,
  bye: false,
  player1: { id: 'LTasmXDtIquJ', win: 3, loss: 1, draw: 0 },
  player2: { id: 'iwgzRFssrMvC', win: 1, loss: 3, draw: 0 },
  path: { win: null, loss: null },
  meta: {}
}

You can do:
const winner = match.player1.win > match.player2.win ? 1 : match.player2.win > match.player1.win ? 2 : 0;

console.log(`${winner === 1 ? player1.name : winner === 2 ? player2.name : 'Draw'} wins ${winner === 1 ? match.player1.win : match.player2.win}-${winner === 1 ? match.player2.win : match.player1.win}`);

And get:
Player 1 wins 3-1

I'm sure there's a simpler way to do it, but just demonstrating the possibility.

ahhh.
Sorry i had an small mistake. Now i understand it 😅
I'm sorry


No functions support

If table contains function, this happens: " json.lua:130: unexpected type 'function' "

Trying to encode values which are unrepresentable in JSON will never result in type conversion or other magic: sparse arrays, tables with mixed key types or invalid numbers (NaN, -inf, inf) will raise an error

https://github.com/rxi/json.lua#notes


can I use this mod live?

Hello， I'm a creator in a video website, i think the mod is good.Can I use it live in the website?
i can promote the mod in it,and provide the mod address of github. (No any profit purpose)
Thank you.   :D

Yes you can.
Instead of only including the github url include the discord invite too though.(not that it's a problem if you don't, it'd just be nice if you do.)


Does this lib support pino's redact option?

Is there an existing issue for this?

[X] I have searched the existing issues

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Question
Does this lib support redaction from pino?

The reason I ask is whenever I try to redact some values, it doesn't seem to work.

Pino without pino-lambda

pino({redact: [`*.*.accessToken`]}).info(
   {
     event: {
       user: {
         accessToken: `pgaejgpjiae`,
       },
     },
   },
   `pino without pino-lamda`,
);

Pino with pino-lambda
export const createLambdaLogger = ({
  name,
  level = `error`,
  redact = [],
}: CreateLambdaLogger = {}) => {
  const destination = pinoLambdaDestination({});

  return pino(
    {name, level, redact: [...redact]},
    destination,
  );
};

const logger = createLambdaLogger({
    redact: [`*.*.accessToken`],
})
logger.info(
      {
        event: {
          user: {
            accessToken: `pgaejgpjiae`,
          },
        },
      },
      `pino with pino-lamda`,
    );

And these are the logs

{"level":30,"time":1708948201408,"pid":61492,"hostname":"MSI","event":{"user":{"accessToken":"[Redacted]"}},"msg":"pino without pino-lamda"}

{ event: { user: { accessToken: 'pgaejgpjiae' } } } pino with pino-lamda

I cloned the repo and added a specific redact test and managed to see it actually supports it. So I wonder what I could be missing


Readme update: instruction to add exprotobuf to applications list

Exrm seems not to build app correctly, unless exprotobuf is added to applications list.
Adding this installation step to readme

Thanks!


Add Mesa Adaptive Moving Average indicator

Hi! :) I have a code and a tests of 2 technical indicators by John Ehlers. I want to push it into Lean.
The indicators are described in original Ehlers paper
Expected Behavior
Mesa Adaptive Moving Average and Following Adaptive Moving Average indicators are implemented in Lean
Actual Behavior
Indicators aren't implemented
Potential Solution
Create a MesaAdaptiveMovingAverage and FollowingAdaptiveMovingAverage classes and put it into the QuantConnect.Indicators project. Also need add it to QCAlgorithm.Indicators.
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

Duplicated of https://github.com/QuantConnect/Lean/issues/83

There are 2 columns: (Time/Mesa Adaptive Moving Average/Following Adaptive Moving Average)
spy_mama.csv

spy_hurst_exponent.csv
columns: "SPY close" "Mesa Adaptive Moving Average" "Following Adaptive Moving Average"
script:
import talib

qb = QuantBook()

spy = qb.AddEquity("SPY", Resolution.Daily).Symbol

history = qb.History([spy, qqq], datetime(1998, 1, 1), datetime(2023, 2, 23))

close = history.loc[spy].close

mama, fama = talib.MAMA(close)
mama = pd.concat([mama, fama], axis=1).dropna()
mama["spy close"] = close
mama = mama.iloc[:, [1, 2, 0]].dropna()
mama.to_csv("spy_mama.csv", header=False)


[engine] Old PRs breaking fuchsia devices.

Old PR older than a month are running presubmit tests with old versions of fuchsia/run_tests.sh scripts which break fuchsia devices. We may need to fetch/merge to avoid this problem.
This is an example:
https://github.com/flutter/engine/pull/17015
@stuartmorgan @Kurun-pan

Is there a general solution to this problem? We can push a merge to that specific PR, but anyone can submit PRs against any version.
E.g., if there is a know bad range of revisions that break devices, shouldn't the bot infrastructure blacklist them?

I haven't identified a way to prevent the problem but we are expecting any commits after https://github.com/flutter/engine/pull/17716/commits/c52ccd32211cc8b1fadc091f3ec59ae210dd71d8 not to have this problem anymore.

Triage: we haven't seen this happen for a while.


Tnt outgroup

Coverage increased (+0.03%) to 95.35% when pulling 168c4a527f808e15b581764a2e7e695e50a401c0 on tnt_outgroup into 5a003875693f95aec46f6c19a4d0336d64a03dc3 on master.


A small cosmetic change in mass minting

I hope this is a simple request. In case someone decides to sell two and more NFTs please change: List item to List itemS (plural)
I selected two items to be listed and its showing List item not items: (dramatically wrong)

Thank you Lu, it got fixed in #7289

closed by #7289


What do you mean? In addition to runGame.sh? Just having go installed, and runGame.sh should be plenty sufficient.
Related: After I submitted this, I wanted to test building using the worker, however, I can't seem to figure out how that works. I can't even figure out how you are calling the worker. You never load the build code you have there into the container.
There are a few scripts in the worker directory, but a really useful one would be the ability to pass a zip file  location and have the worker container build it, exactly as it would on the server. This would let me people test their bot.zips before they send them to the server.

Nevermind.

We have many worker servers. They run worker.py continuously and query a manager server for tasks. After the running of install.sh, workers are started by running worker.py in a screen session (using startWorkerScreen.sh).

You never load the build code you have there into the container.

What do you mean by build code?

There are a few scripts in the worker directory, but a really useful one would be the ability to pass a zip file location and have the worker container build it, exactly as it would on the server. This would let me people test their bot.zips before they send them to the server.

Totally agree. I'll open up a second ticket.

We can take it from here.


Added image_size to bfio utility

This PR adds the image_size class method to the bfio.BioReader class. The image_size method reads the tiff header to identify the pixel width and height of an image without opening the full image. This reduces the overhead of having to start up the javabridge and load an image using Bioformats. The image_size method is unique from the other methods in bfio.BioReader in that it does not require the javabridge to be started.
This function is useful in some applications, such as the polus-montage-plugin, which currently uses a separate file to perform this operation. Since this is a generally useful tool, it was incorporated into bfio
Note: This PR uses #62 as the base commit.

Fixed typos.

@sunnielyu We could do several things.

We could create an abstract base class that establishes some of the error checking common to both BioReader and BioWriter as well as creates some of the class variables common to each. This would allow us to have a smoother transition to zarr someday if that is the direction we want to go in.
We could make image_size its own method rather than a class method. We already implement a special method of importing czi files in the czi2tif method, and that sits in its own file.

I think for now, the only functional thing we should maybe do is make image_size its own method rather than have it as a class method, because that would be a code breaking change. Since bfio is being rewritten with a compiled backend, I think adding in things like abstract base classes could be done then.


Unite slash commands testing

Coverage increased (+3.9%) to 63.819% when pulling 86fe5eed96b3b868195ee2b56e69f96ccf48d21e on uniteSlashCommandsTesting into 1ead3fb9ca972aba2710b31eb00f435529da91ee on uniteSlashCommands.

Coverage increased (+3.9%) to 63.819% when pulling 86fe5eed96b3b868195ee2b56e69f96ccf48d21e on uniteSlashCommandsTesting into 1ead3fb9ca972aba2710b31eb00f435529da91ee on uniteSlashCommands.


task implement permission_set for azure

For additional context see:

#550
#501
https://github.com/iterative/terraform-provider-iterative/issues/235

To be documented

https://github.com/iterative/terraform-provider-iterative/pull/632#pullrequestreview-1076595190


Consider using an different acronym than "GLM"

I wanted to offer the comment that using a name like "GLM" will likely lead to a lot of confusion since "GLM" has long referred to "Generalized Linear Model" in both the statistics and machine learning communities.  There's nearly a 50 year history of using this term and it's probably the most widely used and referred to "ML" algorithm in existence.
Some alternative ideas:

GPF: "General Pretraining Framework" (in your title)
GPTLM or GPLM: "General Pretraining/Pretrained Language Model"

In your abstract: Empirically, GLM substantially outperforms BERT on the SuperGLUE natural language understanding benchmark with the same amount of pre-training data.
This type of sentence will require constant clarification and disambiguation on your part and on the part of the community, so I hope you will consider a new name for your method that's not already in use.  Thank you for the consideration.

(poster of the original joke about the acronym here): Will it really require constant clarification and disambiguation, though?
I think in any context involving processing variable-length sequences of raw text tokens, like the sentence from the abstract, it's clear that we're not talking about linear models (just like in the context of your "it's probably the most widely used and referred to "ML" algorithm in existence", it was clear that by "ML" you meant "machine learning" and not "maximum likelihood", another overloaded acronym).

Honestly, I think it would help the author's case as well to not be known as GLM -- it'd be the Michael B. Jordan of models. The issue with GLM being an overloaded term is that both the existing GLM and this new model differ in terms of fame (knowledge?) by orders of magnitude; disambiguating would help people remember this mode. ML and MLE are on the same "level' of fame, this and the generalized linear model are... not.

@lorenlugosch In my opinion, yes.  I would say the same if it were called SVM, or any other name of any other existing, very popular ML algo.  My personal opinion is that the namespace of machine learning algorithms should not contain duplicates, for the sake of clarity and communication.

Given how important pretraining appears to be here, it seems like including a P in the acronym would have the dual benefits of preventing this namespace clash and emphasizing the pretrained nature of the model.


Updating a saved object in swift

Hello realmers,
Since I do not wish to delete the object from realm, I want to update a member of that class and save it.
class GItem: Object {
  dynamic var id = ""
  //... other properties
  dynamic var isMoved = false  // I wish to change this member field to true
  override static func primaryKey()-> String? {  return "id" }
}

I have Realm into a Generic Object with CRUD operation (yes the operation works).
let service =  try?  RealmService<GItem>(withRealm:Realm())
First Case, query item, modify field and save it
guard let item = try! service.query().filter ({$0.id == someId }).first else { return }
item.isMoved = true
 try! service.save(object: item, update: true)

I go the following error,

Error when saving directly after change
'Attempting to modify object outside of a write transaction - call beginWriteTransaction on an RLMRealm instance first.'

I read in the docs that realm doesn't operate in the same thread, so wrapped the code around beginWrite & commitWriting would refreshed the object.. (I did try it) nada :(  same error.
Second Case, create a deep copy of that object using Object
Thus in my service object, I have a method that return a new object from the current one ``
func deepCopy(object:T) ->T {  // where T:Object
      let new =  Object.init(value: object)
       return new as! T
 }

so  after I query the item, i create a newItem and modified it
let newItem = service.deepCopy(object: item)
newItem.isMoved = true
try! service.save(object: newItem, update: true)

I go the following error

+[RealmSwiftObject defaultPropertyValues]: unrecognized selector sent to class 0x110a0d0f8
2017-06-09 15:12:40.519 Nesty[69519:1195807] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[RealmSwiftObject defaultPropertyValues]: unrecognized selector sent to class 0x110a0d0f8'

Did you wrap your entire code block within a write transaction? Can you show us the code sample where you attempted to use a write transaction, and the entire body of that method?

service.writting() // beforeWrite()
item.isMoved = false
try! service.save(object: item, update: true)  // i wasn't to sure this, it seems it should create a new
try! service.commit() // commitWritting

Terminating app due to uncaught exception 'RLMException', reason: 'The Realm is already in a write transaction'

I can only guess as to what your helper methods are doing, but save()ing the object after you've changed one of its properties is unnecessary. If you are in a write transaction with an object that you retrieved from a Realm (as you did above, with your queries), and you change any of its property values, the changes are automatically saved once you commit the write transaction.
Furthermore, you can't nest write transactions, and it looks like your save() method starts a write transaction, so that's why you're getting that error.

so you are saying after item.isMoved = true, i should just commitWriting() instead of saving

Yes, exactly. Try that and let us know if it works.

yes sir you just save my life lol and I thank you for your help :) 👍 💯

Awesome!
Just for future reference, our addOrUpdate() method is intended if you want to either add a new object or update an existing object without manually checking to see if it already exists, or if you want to populate an object using something like a JSON dictionary.


Add %husktowns_town_claims% and %husktowns_town_maxclaims% placeholders

Add new Placeholderapi:

%husktowns_town_claims% : This placeholder tells the number of the clams of the team in which he is the player 👍

%husktowns_town_maxclaims% :  This placeholder tells the maximum number of the clams of the team in which he is the player 👍

Added in API expansion v2


get_accelerometer, get_gravity(), get_magnetometer(), and get_gyroscope() don't work on Godot v4.4.dev4.official - Android

Tested versions
Godot v4.4.dev4.officia - Android
System information
Godot Editor; Windows 11 - Build Platform : Android - Godot v4.4.dev4.official - Compatibility - RTX3070
Issue description
The Mobile Sensors Demo doesn't work on Godot v4.4.dev4.official Android, but works fine on Godot v4.3.stable.
These functions in particular returns Vector3.ZERO on android 14:
var acc = Input.get_accelerometer()
var grav = Input.get_gravity()
var mag = Input.get_magnetometer()
var gyro = Input.get_gyroscope()

Steps to reproduce
Using Godot v4.4.dev4.official, download Mobile Sensors Demo project. Run the demo on an android device, then you will notice all 'Input' function return zero.
Minimal reproduction project (MRP)
Run Mobile Sensors Demo.

never mind, I debug the code, it turns out it has to be enabled from project settings. This should be added as a note in the docs.


feat: skip ci for Add delayed job commit

Sorry, I have just notice your PR :( Great job 👍 , I forgot about that possibility and had a special if for that case


Placeholder mismatch

I am trying to train two classifiers in one session. I declared two separate placeholders and pass each of them to different classifiers in run-time. The first one works fine, but the second one does not. The error message tells me that the second classifier is trying to look for the placeholder for the first classifier (instead of its own).
The code is attached below
from __future__ import absolute_import, division, print_function
import os
import prettytensor as pt
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
dataset_name = "data/MNIST"
if not os.path.exists(dataset_name):
    os.makedirs(dataset_name)
dataset = input_data.read_data_sets(
    dataset_name,
    reshape=False,
    one_hot=True
)

########################
# Construct Classifier #
########################
def construct_lenet(lenet_images, lenet_labels):
    images = pt.wrap(lenet_images)
    with pt.defaults_scope(activation_fn=tf.nn.relu, l2loss=0.00001):
        return (
            images
            .conv2d(5, 20)
            .max_pool(2, 2)
            .conv2d(5, 50)
            .max_pool(2, 2)
            .flatten()
            .fully_connected(500)
            .softmax_classifier(10, lenet_labels)
        )

####################
# First Classifier #
####################
classifier_images_placeholder_1 = tf.placeholder(
    tf.float32,
    [
        50,
        28,
        28,
        1
    ]
)
classifier_labels_placeholder_1 = tf.placeholder(
    tf.float32,
    [
        50,
        10
    ]
)

classifier_result_1 = construct_lenet(
    classifier_images_placeholder_1,
    classifier_labels_placeholder_1
)
classifier_optimizer_1 = tf.train.AdamOptimizer(0.01)
classifier_train_op_1 = pt.apply_optimizer(
    classifier_optimizer_1,
    losses=[classifier_result_1.loss]
)

#####################
# Second Classifier #
#####################
classifier_images_placeholder_2 = tf.placeholder(
    tf.float32,
    [
        50,
        28,
        28,
        1
    ]
)
classifier_labels_placeholder_2 = tf.placeholder(
    tf.float32,
    [
        50,
        10
    ]
)

classifier_result_2 = construct_lenet(
    classifier_images_placeholder_2,
    classifier_labels_placeholder_2
)
classifier_optimizer_2 = tf.train.AdamOptimizer(0.01)
classifier_train_op_2 = pt.apply_optimizer(
    classifier_optimizer_2,
    losses=[classifier_result_2.loss]
)

init = tf.initialize_all_variables()
with tf.Session() as sess:
    sess.run(init)
##########################
# Train First Classifier #
##########################
    classifier_training_loss = 0.0
    for i in range(10):
        training_images, training_labels = dataset.train.next_batch(
            50
        )
        _, classifier_runtime_loss = sess.run(
            fetches=[
                classifier_train_op_1,
                classifier_result_1.loss
            ],
            feed_dict={
                classifier_images_placeholder_1: training_images,
                classifier_labels_placeholder_1: training_labels
            }
        )
        classifier_training_loss += classifier_runtime_loss
    classifier_training_loss /= dataset.train.num_examples
    print(classifier_training_loss)
###########################
# Train Second Classifier #
###########################
    classifier_training_loss = 0.0
    for i in range(10):
        training_images, training_labels = dataset.train.next_batch(
            50
        )
        _, classifier_runtime_loss = sess.run(
            fetches=[
                classifier_train_op_2,
                classifier_result_2.loss
            ],
            feed_dict={
                classifier_images_placeholder_2: training_images,
                classifier_labels_placeholder_2: training_labels
            }
        )
        classifier_training_loss += classifier_runtime_loss
    classifier_training_loss /= dataset.train.num_examples
    print(classifier_training_loss)

Error message is attached below
W tensorflow/core/framework/op_kernel.cc:968] Invalid argument: You must feed a value for placeholder tensor 'Placeholder' with dtype float and shape [50,28,28,1]
    [[Node: Placeholder = Placeholder[dtype=DT_FLOAT, shape=[50,28,28,1], _device="/job:localhost/replica:0/task:0/cpu:0"]()]]
Traceback (most recent call last):
  File "stack_overflow.py", line 134, in <module>
    classifier_labels_placeholder_2: training_labels
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 717, in run
    run_metadata_ptr)
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 915, in _run
    feed_dict_string, options, run_metadata)
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 965, in _do_run
    target_list, options, run_metadata)
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 985, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder' with dtype float and shape [50,28,28,1]
     [[Node: Placeholder = Placeholder[dtype=DT_FLOAT, shape=[50,28,28,1], _device="/job:localhost/replica:0/task:0/cpu:0"]()]]

Caused by op u'Placeholder', defined at:
  File "stack_overflow.py", line 44, in <module>
    1
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1332, in placeholder
    name=name)
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 1748, in _placeholder
    name=name)
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 749, in apply_op
    op_def=op_def)
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2380, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/Users/user/Packages/anaconda/envs/tensorflow2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1298, in __init__
    self._traceback = _extract_stack()

InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'Placeholder' with dtype float and shape [50,28,28,1]
     [[Node: Placeholder = Placeholder[dtype=DT_FLOAT, shape=[50,28,28,1], _device="/job:localhost/replica:0/task:0/cpu:0"]()]]

BTW I think it's a bug in your code rather than in TensorFlow.
(when you call AdamOptimizer, it creates an op which optimizes variables of both classifiers, so both sets of placeholders need to be fed)

Sorry. I didn't notice that.
I set a variable scope for two classifiers and minimize the loss with regards to the variables in the scope. That works well. Thanks!

I am trying a simple linear regression using tensorFlow. The first time when I run the program (after kernel starts), it works fine. But when I run it again it gives similar error.


Markdown files for examples

It might be nice to include a markdown file with some information, including instructions and author information for each of the examples (ArduBreak, Floaty Ball) in the library.

Sure, who's writing them? :)

All current examples now have a README.md file.


Create tests scenarios script to generate all uses cases.

Tests all items.
Tests blocks.

Test all modifiers.
Test all items.

Done


Replace or Add Player

Hi, I want to replace Windows Media Player with Groove Music, Or else I want to add Groove Music. Where can I change the code for this?

Hi, it is impossible to communicate between Groove Music and Rainmeter.

okay, Thanks for your support.
On Tue, Mar 23, 2021 at 11:25 PM Jan Joshua Velasco <
@.***> wrote:

Hi, it is impossible to communicate between Groove Music and Rainmeter.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/redsaph/cleartext/issues/12#issuecomment-805108610,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHGJWIPY6OYMCEJHSYACFKDTFDIXTANCNFSM4QF4UAQA
.


feat: 2FA respect after_update param.

https://artsyproduct.atlassian.net/browse/PLATFORM-3340
We are going to redirect partners from CMS to Force to setup their 2FA (if they are required to but haven't yet) like so:
https://www.artsy.net/user/edit?after_update=https%3A%2F%2Fcms.artsy.net%3A%2Fauth%2Fartsy#two-factor-authentication
After they finish setting up 2FA, we would like them redirected to the URL encoded in after_update param (back to https://cms.artsy.net/auth/artsy).
This PR adds a 2FA setup completion modal specifically for these users. On completion, they are informed that they will be redirected to after_update URL.
The URL is sanitized to prevent rogue redirects (such as to www.evilsite.com, ...)
Changes to hokusai/development.yml are to get hokusai dev working.
Screenshots of new modal:

I would like to add tests to confirm the redirect works. Are there existing tests I can borrow from?

Since there's so much new logic, thoughts on adding some tests to cover it?
Thanks @damassi. Definitely should include tests. I will holler if I need help.


Handle batchInsert() with no data to insert.

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
#11693

fix #11693

Thank you!


JS | Optional chaining left hand assignment not detected as syntax error.

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.86.2
OS Version: Windows 11

Steps to Reproduce:

Add this code to a .js file:

let tree = {type: 'none'};
tree?.type = 'apple';

This should be detected as a syntax error. Specifically "Uncaught SyntaxError: Invalid left-hand side in assignment". It is not.

Hi, I have the 1.87 version and i keep getting the same error.  The worst is that code insert ? automatically so I have to remove it manually every time I operate on objects

Are you sure it's not being picked up a syntax error? https://www.typescriptlang.org/play?filetype=js#code/DYUwLgBGBOIhBeCBvMBPADiAXBA5AHYD2BIeAvgNwCwAUDHAPwB06Wi+AhhhqHpUA

Hi looking on internet I read that the chaining operator is not allowed in the left side of assignements. but my problem is still emmet keep inserting ? every time i tab object.method

For now I solved creating the snippets for .textContent and .innerHTML that I use to make assignements.

Are you sure it's not being picked up a syntax error? https://www.typescriptlang.org/play?filetype=js#code/DYUwLgBGBOIhBeCBvMBPADiAXBA5AHYD2BIeAvgNwCwAUDHAPwB06Wi+AhhhqHpUA

Yes. See attached screenshot.

Hi, i found the problem in settings.json, and exactely this line:
"js/ts.implicitProjectConfig.checkJs": true,
putting false or deleting the line the problem disappears

@jakebailey @RyanCavanaugh I don't think this one is actionable. As mentioned above, the problem is reported when the file is checked. While this is a syntax error, TS raises some of them as grammar errors (sorry if my lingo here isn't precise-enough 😉 ) and those are reported by the checker. From the IDE's PoV etc it's nice this code stays parseable in TS. This is no different from a lot of other errors like this one:
// @checkJs: false
// @filename: index.js

class A extends {} // "missing" error: 'extends' list cannot be empty.(1097)


Consolidate cluster-stacks folder structure

Right now we have two cluster-stacks, alpha and scs, it is not clear which one is the mainly maintained cluster-stack. Therefore we should either remove one of them or give it a name that describes the purpose of each cluster-stacks, e.g. stable/unstable/dev.

We can also place an additional explanation file in the folder to explain the purpose and the guarantees of stable and unstable cluster-stacks

Hi @paulphys,
thanks for this issues. The scs Cluster Stack was the first try to represent KaaS v1 stuff in KaaS v2. alpha was the try to use the learnings from scs and clean it up. But I think we can still do better.
My suggestion would be to delete both.

In todays container call i learned that a clusterstack is the sum of all node-definitions, cluster-classes and cluster-addons over all k8s-versions over all providers that share the same clusterstack name.
Therefore i think the following folder-structure would better reflect this relation:
clusterstacks/
└── <cluster_stack_name>/
    └── <provider_name>/
        └── <k8s_major_minor_version>/

instead of
providers/
└── <provider_name>/
    └── <cluster_stack_name>/
        └── <k8s_major_minor_version>/

actual folder names:
cluster-stacks/
└── scs/
    └── README.md/   // describes features, goals, guarantees, tests
    └── openstack/
        └── 1-27/
        └── 1-28/
        └── 1-29/
    └── docker/
        └── 1-27/
        └── 1-28/
        └── 1-29/

Regarding CSO and CSPO this change would not do any harm, as the operators do not care about the git-state (only reading the GitHub releases) and in the release itself there are only assets of the most deeply nested path.
The question is if csctl would have issues with this change. Maybe @janiskemper or @michal-gubricky know?

I have another question:
does the most deeply nested folder (the kubernetes version) that contains cluster-class, cluster-addon and node-image have a name?
providers/
└── <provider_name>/
    └── <cluster_stack_name>/
        └── <k8s_major_minor_version>/  how is this kind of folder called?

@mxmxchere you are 100% correct and there wouldn't be any issues. I strongly recommend to not choose "alpha" as cluster stack name in the future, because "alpha" should be rather "an alpha state of cluster stack xyz", so like a release channel stable, alpha, beta.
The cluster stack names should ideally be independent of both "scs" and anything like "stable", "alpha", etc. to not confuse this.
For example, what do we do if we have beta releases of the "alpha" cluster stack? And what if there is an "scs" cluster stack, but now we want to do a second one? Is that called "scs2" then?

@mxmxchere you are 100% correct and there wouldn't be any issues. I strongly recommend to not choose "alpha" as cluster stack name in the future, because "alpha" should be rather "an alpha state of cluster stack xyz", so like a release channel stable, alpha, beta.
The cluster stack names should ideally be independent of both "scs" and anything like "stable", "alpha", etc. to not confuse this.
For example, what do we do if we have beta releases of the "alpha" cluster stack? And what if there is an "scs" cluster stack, but now we want to do a second one? Is that called "scs2" then?

Hi @janiskemper I chose the name alpha on purpose for exactly the reason that this is probably not stable yet since we still working on good cluster stacks. That's why I suggested to delete alpha and scs again (see https://github.com/SovereignCloudStack/cluster-stacks/issues/56#issuecomment-2048914254) and put our learnings into new Cluster Stacks.


Accessing CrateDB Admin UI behind Ingress

I am running a cluster of 3 CrateDB nodes on Kubernetes.
I have set up an ingress to access the admin UI on path /db. However, I think to access it on this path I probably need to do some configuration so static files are served from the /db path, or the requests are routed on this path. How to do this configuration?

Dear Arjun,
thank you for writing in.
In general, the Admin UI itself can be hosted on any path. However, it has to know about the CrateDB HTTP API endpoint, usually available at /_sql.

I have set up an ingress to access the admin UI on path /db.

I see. So, the HTTP API endpoint of CrateDB itself would also be available at /db/_sql?
At [1], I've referenced the utility function which computes the base URI used to access the database HTTP API. We will have to check if that would need corresponding adjustments.
With kind regards,
Andreas.
[1] https://github.com/crate/crate-admin/blob/83e2a3aa8d7fbeb2dc07ae5255ae67a7ae3bfb7b/app/scripts/services/sql.js#L20-L40

Hi again,
I've added an example at ^1, which outlines how to configure Nginx to reverse-proxy the CrateDB HTTP API endpoint to the /db subdirectory. The nginx.conf is at ^2. Maybe you can use it as an inspiration to configure the K8s Ingress component appropriately.
With kind regards,
Andreas.

Dear Arjun,
are the resources referenced above helpful to you?
With kind regards,
Andreas.


Deploying multiple problems with same name leads to bad state

Bug report:

If two different bundles contain problems with the same sanitized name, neither will work.
They show up in the problem list in Management on the web and when shell_manager status is called, but they don't appear in the actual problem list either on the web or through the api
Trying to query the problem id through the API causes this exception:

Traceback (most recent call last):
  File "/picoCTF/picoCTF-web/api/annotations.py", line 62, in wrapper
    web_result = f(*args, **kwds)
  File "/picoCTF/picoCTF-web/api/annotations.py", line 94, in wrapper
    return f(*args, **kwds)
  File "/picoCTF/picoCTF-web/api/annotations.py", line 171, in wrapper
    return f(*args, **kwds)
  File "/picoCTF/picoCTF-web/api/annotations.py", line 194, in wrapper
    return f(*args, **kwds)
  File "/picoCTF/picoCTF-web/api/routes/problem.py", line 96, in get_single_problem_hook
    problem_info = api.problem.get_problem(pid, tid=api.user.get_user()['tid'])
  File "/picoCTF/picoCTF-web/api/cache.py", line 172, in wrapper
    function_result = f(*args, **kwargs)
  File "/picoCTF/picoCTF-web/api/problem.py", line 710, in get_problem
    raise InternalException("You cannot get this problem")
api.common.InternalException: You cannot get this problem

Replicate and understand this behavior
Possible short-term solution: check existing problem names before deployment and throw an exception before deploying one with the same name
Longer term, can we refactor to avoid using the sanitized problem name as a unique identifier?

After discussing with Max who has changed some Python files for more careful deployment of problems:

One of the biggest issue is that installing problems happens through Linux package manager (apt-get/dpkg)

Right now, problems with the same deb package name (which is different than filename and is referred to by "sanitized name" in shell manager code) immediately overwrite each other with no warning or even report of overwriting
This is intended behavior for APT for packages of high priority.
We could instead have shell manager assign a low priority to problem deb packages so that they never overwrite each other... but this might really trading pros and cons

"A package with a priority ranging between 0 and 100 will only be installed if no other version of the package is already installed." from: https://kali.training/topic/advanced-apt-configuration-and-usage/

@hiliang-cmu and I discussed a better naming convention for problems moving forward, esp. as we anticipate our platform persisting for more than one competition:
sanitized_problem_name_[trimmed_hash_material]

Where [trimmed_hash_material] is the last 7 digits of the result of hashing year, author, organization, etc.
As an example, what is now: buffer_overflow_1 would be buffer_overflow_1_1784gdc

Perhaps the most practical step, would be applying my stated naming convention above to the example problems that come standard in our platform.

Also hashing year, organization or somesuch will be needed in web api too for problemid generation:
https://github.com/picoCTF/picoCTF/blob/2072ac5c7d036eeb4af34a079d732298f3a17d00/picoCTF-web/api/problem.py#L101
If two buffer_overflow_1 exist by same author exist, that'll mess up the web platform too

@hiliang-cmu @dmartin please comment if you like any tweaks to the plan
@MongYahHsieh short summary of our plan for this issue:
We're trying to ensure that problem names are extraordinarily unlikely to be the same. Right now, it's not that surprising that we've already had two problems called "buffer-overflow-1" when our naming scheme is just sanitized_problem_name. Let's implement a new naming scheme, and update the default loaded problems to use it so we avoid name collisions in the future.
design/implementation high points:

Adopt the following naming convention:

sanitized_problem_name_[trimmed_hash_material] where:

[trimmed_hash_material] is the last 7 digits of the result of hashing_function(prob.name, prob.year, prob.author, prob.organization)

hashing_function might be best if it is a fast hashing function like MD5. For this application, we do not need a cryptographically secure hashing function, but we do not want any collisions either. Please do a little research along these lines and propose a hashing function that you want to use.
To explain, we take just the last 7 digits of the hash to avoid annoyingly long problem names (hashes can be very long), but to get repeatable randomness as well. As a sidenote, Git does something similar with commit hashes.

Apply naming convention to example problems loaded with picoCTF platform by default

Apply the naming convention manually to the example problems to get the hang of it
Apply the naming convention automatically with a (Python) script to the example problems so that you know almost exactly what to do for shell manager...

Apply naming convention to shell manager so that packaging a problem uses our new naming convention
(This last step is not high priority) Investigate package priorities to help prevent deployers from overwriting unintended problems in the unlikely scenario that there are duplicate names (after implementing the new naming convention, this will have more to do with our naming convention being manually superseded...)

[trimmed_hash_material] is the last 7 digits of the result of hashing_function(prob.name, prob.year, prob.author, prob.organization)

As mentioned in my post above, problem id (pid) is currently generated on the web server but we might as well have the shell_manager generate it when loading problems. Just use this hash scheme, save it as part of problem metadata (and use those 7 digits as part of packaged problem name), and pass it along to webserver when it loads problems.
The

I've added hashing on the shell side: 3272ce9067716b419414fffca286b609f08c8741
All problems folders are now generated with a seven-character MD5 hash identical to the first 7 characters of the pid the web server generates.
The function generating the hash is get_pid_hash() in /picoCTF-shell/shell_manager/util.py, which is where the fields used to generate the hash is defined.
I've also modified the names of some variables and the documentation of several functions to better show what they actually are/do now.

I've opened a pull request (#320 )


fix: clear subscription on shareReplay completion

Description:
In shareReplay, the subscription needs to be cleared to prevent the implementation holding a reference to the completed source. In Angular, not clearing the reference can lead to components not being garbage collected.
Using the DevTools, I've verified that the fix in this PR is required, but I have no idea how a test could be written for this sort of thing.
Related issue (if exists): #5034

Looks good, thanks for the help.


Failed to create any pod in worker daemonset

Describe the bug
Failed to create any pod in worker daemonset.
Provide more information
Running on k8s v1.23.8
kubeshark/front:v0.8.11
kubeshark/hub:v0.8.11
kubeshark/worker:v0.8.5
To Reproduce
helm install kubeshark .
Expected behavior
Able to create worker pods by daemonset
Logs
│ Events:
│   Type     Reason        Age                    From                  Message
│   ----     ------        ----                   ----                  -------
Warning  FailedCreate  2m25s (x16 over 5m9s)  daemonset-controller  Error creating: pods "kubeshark-worker-daemon-set-" is forbidden: PodSecurityPolicy: unable to admit pod: [spec.securityContext.hostNetwork: Invalid value: true: Host network is not allowed to be used spec.volumes[0]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes[1]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.containers[0].securityContext.capabilities.add: Invalid value: "NET_RAW": capability may not be added spec.containers[0].securityContext.capabilities.add: Invalid value: "NET_ADMIN": capability may not be added spec.containers[0].securityContext.capabilities.add: Invalid value: "SYS_ADMIN": capability may not be added spec.containers[0].securityContext.capabilities.add: Invalid value: "SYS_PTRACE": capability may not be added spec.containers[0].securityContext.capabilities.add: Invalid value: "DAC_OVERRIDE": capability may not be added spec.containers[0].securityContext.capabilities.add: Invalid value: "SYS_RESOURCE": capability may not be added spec.containers[0].hostPort: Invalid value: 8897: Host port 8897 is not allowed to be used. Allowed ports: []]
Screenshots

The describe of daemonset resources for kubeshark worker

No Daemonset pod is created

The PodSecurityPolicy configuration

In my case, hostPath allowPrivilegeEscalation is false by default in PodSecurityPolicy.
How can I modify the values.yaml to cater this problem while the default setting for "volumes" is using hostPath
`
volumes:
- hostPath:
path: /proc
type: ""
name: proc
- hostPath:
path: /sys
type: ""
name: sys
`


Root is drawn improperly and appearing as two strokes of a rectangle when using RTL direction mml with mml3js

If this is specifically about the experimental mml3.js extension, then #1025 might be a better place to file this.
If you want to generally file issues about RTL, that's perfectly fine as well.


Improve the testimonials page

Describe the bug

Add valid content.
To make it authentic
Additional context
Kindly assign me this issue

hi @thestarsahil can i work upon the issue under gssoc

@AkhilaSunesh are you working !

Yes I am...I will finish it today


[docs] Migrate Avatar demos to emotion

[x] I have followed (at least) the PR section of the contributing guide.

The following demos of the Avatar component were migrated:

[x] Image avatar
[x] Letter avatar
[x] Size avatar
[x] Icon avatar
[x] Variant avatar
[x] Fallbacks avatar
[x] With badge + demo

Related to #16947

I think the keyframe of the demo whit badge is not working, I will check it later

Hi @vicasas . I just see now that you also migrated the avatar demos to emotion. I have not seen that, sorry. Next time I'll let you know if I start working on a demo.
Regarding the keyframe. I struggled with that as well. If you replace $ripple by just ripple, then the animation will work fine.

 I didn't see $ripple. I'll try it later. Thanks.


Compilation issue - FreeRTOS task not found

If you follow all the steps as is, the compilations will fail as it is not able to fine FreeRTOS. It will be good to include the freertos related dependencies required for compilation.
Moreover after including FreeRTOS related dependences, the compilation of the code gets through but on loading the firmware, usb serial does not seem to work at all.

I see. Indeed FreeRTOS was added to porting layer in recent update.
I'll put macros to distinguish between FreeRTOS version (to be used in firmware) and non-FreeRTOS (to be used in simple standalone inference). Will be updated in near future.
For now, here is the old porting layer - replace the content of edge-impulse-sdk/porting/raspberry/ei_classifier_porting.cpp with it
/* Edge Impulse inferencing library
 * Copyright (c) 2021 EdgeImpulse Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#include "../ei_classifier_porting.h"
#if EI_PORTING_RASPBERRY == 1

#include "pico/stdlib.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>

#define EI_WEAK_FN __attribute__((weak))

EI_WEAK_FN EI_IMPULSE_ERROR ei_run_impulse_check_canceled() {
    return EI_IMPULSE_OK;
}

EI_WEAK_FN EI_IMPULSE_ERROR ei_sleep(int32_t time_ms) {
    sleep_ms(time_ms);
    return EI_IMPULSE_OK;
}

uint64_t ei_read_timer_ms() {
    return to_ms_since_boot(get_absolute_time());
}

uint64_t ei_read_timer_us() {
    return to_us_since_boot(get_absolute_time());
}

void ei_putchar(char c)
{
    /* Send char to serial output */
    ei_printf("%c", c);
}

/**
 *  Printf function uses vsnprintf and output using USB Serial
 */
__attribute__((weak)) void ei_printf(const char *format, ...) {
    static char print_buf[1024] = { 0 };

    va_list args;
    va_start(args, format);
    int r = vsnprintf(print_buf, sizeof(print_buf), format, args);
    va_end(args);

    if (r > 0) {
       printf(print_buf);
    }
}

__attribute__((weak)) void ei_printf_float(float f) {
    ei_printf("%f", f);
}

__attribute__((weak)) void *ei_malloc(size_t size) {
    return malloc(size);
}

__attribute__((weak)) void *ei_calloc(size_t nitems, size_t size) {
    return calloc(nitems, size);
}

__attribute__((weak)) void ei_free(void *ptr) {
    free(ptr);
}

#if defined(__cplusplus) && EI_C_LINKAGE == 1
extern "C"
#endif
__attribute__((weak)) void DebugLog(const char* s) {
    ei_printf("%s", s);
}

#endif // EI_PORTING_RASPBERRY == 1

After that you'll no longer need FreeRTOS to compile.

Working fine now with modified porting file.

A fix was just merged into our main repository. It will appear in production in a day or two. After that edge-impulse-sdk from C++ library with impulse will be updated with new porting layer. Please do reopen if issue persists after that.


[BUG] Bloxstrap doesn't open but Roblox itself does

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
v2.8.1
What problem did you encounter?

This could be an issue relating to GoodbyeDPI but i'm not certain.
The Roblox original launcher works, i even tried using a different vpn to get through the first loading screen and then switch to GoodbyeDPI (I use this on the normal roblox launcher because some stuff wont load if i dont) but that didn't work.
Any help on this would be appreciated. (If this is any relevant, i haven't made any changes to the launcher.)
Bloxstrap Log
N/A

Upload your configuration and logs please: https://github.com/bloxstraplabs/bloxstrap/wiki/Uploading-your-Bloxstrap-configuration

mine looks like this

but when i use roblox it self it opens

same problem,idc how to fix it


How to create a plugin for Editor.js with another tiptap editor?

Hello. While Editor.js does not have the functionality allowing to place one block in another, for example, to insert pictures and lists into table fields. We decided to make a plugin for Editor.js with another editor inside which supports JSON and which has the necessary functionality. We have a friend in St. Petersburg who talked with one of the Editor.js developers, Georgy Berezhnoy, and told him about our idea of creating a plug-in for Editor.js with another editor inside, that when in the future the necessary functionality appears in Editor.js (and judging by the plans will not be soon), then we can simply convert the data from another editor to JSON format Editor.js and talk about what we think there may be conflicts between the two editors with copy / paste. Georgy said that when we make such a plugin with another editor inside, it will be ready to make the necessary corrections in Editor.js in order to fix such possible conflicts, add a new functionality to the API. But can not help with the implementation of this on Vue.js.
Therefore, dear @yashha and @ChangJoo-Park , I appeal to you with this question :-) We thought of initially introducing a editor for Vue called Tiptap https://github.com/scrumpy/tiptap as a plug-in for Editor.js.
But now we see that there is such complexity in it that it turns out you need to push the Vue editor into the usual JS on which Editor.js is made and then it’s all to be pushed again in Vue :-D And we don’t yet know how to do it correctly.
Let's think about how this can be done? Maybe the tiptap editor may not be suitable for this task. It may be worth looking for another, not a vue editor, but a JSON editor made on a regular JS?

You have to see if you can use tip tap without vue or mount it in a plugin, then you could maybe make it a editor.js plugin. Maybe contact tiptap for this or create an issue there.
This repo here is just a wrapper for editor.js, so this is no issue for this repo.
Please open it here:
https://github.com/codex-team/editor.js/issues


Rename 'fromBytestring'

What this function does is decoding, rather than conversion, and its name should reflect this.

Done with 09d81fb.


Symbolic link of keybindings.json between Windows and WSL2 are not working.

Does this issue occur when all extensions are disabled?: Yes

- VS Code Version:
Version: 1.80.0 (user setup)
Commit: 660393deaaa6d1996740ff4880f1bad43768c814
Date: 2023-07-04T15:06:02.407Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22621
- OS Version:
Edition	Windows 11 Home
Version	22H2
Installed on	10/1/2022
OS build	22621.1848
Experience	Windows Feature Experience Pack 1000.22642.1000.0
PS C:\WINDOWS\system32> wsl --version                                                                                WSL version: <IP_ADDRESS>                                                                                Kernel version: <IP_ADDRESS>                                                                                WSLg version: 1.0.51                                                                                MSRDC version: 1.2.3770                                                                                Direct3D version: 1.608.2-61064218                                                                                DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp                                                        Windows version: 10.0.22621.1848
Steps to Reproduce:

Create a keybindings.json file under your WSL2 $HOME directory
On Windows, change the name of: C:\Users<win-user>\AppData\Roaming\Code\User\keybindings.json
Create a symbolic link to your WSL2 ~/keybindings.json file using an PowerShell w/ Admin rights,

New-Item -ItemType SymbolicLink -Path "C:\Users<win-user>\AppData\Roaming\Code\User\keybingings.json" -Target "\wsl$\Ubuntu\home<wsl2-ubuntu-focal-user>\keybindings.json"

open vsCode in Windows and remote connect to Ubuntu WSL2
open Keyboard Shortcuts (Ctrl+K Ctrl+S)
Make a change (add a new binding or delete a default...)

You will notice that ~/keybindings.json in WSL2 has not changed. Further, you'll notice that listing the contents of "C:\Users<win-user>\AppData\Roaming\Code\User" in PowerShell (or cmd.exe) now shows two keybindings.json file. Doing this with cmd.exe is easier as you can see that one of the two keybindings.json files is the symlink previously create (but not used by vscode) and now there is a new keybindings.json text file that has the changes from step (6).
Expected behavior is for vscode to use the symbolic link to the WSL2 ~/keybindings.json file.
Following these exact same procedure above for "C:\Users<win-user>\AppData\Roaming\Code\User\settings.json" and WSL2 ~/settings.json works like a champ. It's just the keybindings.json file that has the issue.
PS: the "Issue Reporter" in vscode failed for me...
System Information

CPUs
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)

GPU Status
2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled

Load (avg)

Memory (System)
31.79GB (16.27GB free)

Process Argv
--crash-reporter-id da9f2962-5f3c-4410-89cd-106297b105c3

Screen Reader
no

VM
0%

Extensions are disabled
A/B Experiment Info:
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30610678
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
a2ce3375:30757347
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30780429
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496

@ulugbekna any plans to address this in the near future?


Gene structure protein features out of date (based on UniProt sequence)

For any protein stucture we have altered, the sequence will be different from UniProt, which is used by InterPro. So all of the protein feature coordinates will be out of date (as reported by KG earlier this week)
It will take quite a long time for these to become updated because of all the dependencies.

genome resubmission 2) changes to get picked up by UniProt (this might involve a manual step and so could take ages)  3) UniProt release to get picked up by InterPro.

We should probably do something to alert people.
Q Would it be possible to add an alert to the affected pages?
Another option would be to run InterPro locally until the changes have filtered through (I guess this would  be a big pain)
Or, if it takes ages we could just run locally on the subset which have altered sequences?
https://www.pombase.org/status/gene-coordinate-changes

Will be fixed by the ENA resubmission. Out of date


Java library changes for feature flags

Update Java client library's getAllFeaturedFlags and getFeatureFlag methods to call POST /featureflags.
Use the new structure for request / response as defined in #1340
getAllFeatureFlags will internally call POST /featureflags with a similar structure as getAllExperimentConditions(), with userId and context, and will store the list of key strings on the client.
getFeatureFlag should take a string and return true if the flags list contains that flag key, and false if it is not found.

This doesn't seem like it was done, reopening

Closing as done.


[SR-8898] CodeCompletion: Forward references do not show up in top-level module scope

Previous ID
SR-8898

Radar
rdar://problem/44942051

Original Reporter
@AnthonyLatsis

Type
Bug

Environment
Xcode 12.0 beta (12A6159)

Additional Detail from JIRA

Votes
0

Component/s
CodeCompletion

Labels
Bug

Assignee
@rintaro

Priority
Medium

md5: 3b8fc482fb0b9539e17cde7ce92f056a

is duplicated by:

SR-14431 Global completions at top level from module only appear after import statement

Issue Description:
@benlangmuir:

The real problem here is that consumeDecl wants to use IsTopLevel to mean TopLevelCode - i.e. a script or main.swift file, where you cannot make forward references at all - but the caller is passing in TopLevelLibrary as well, where forward references are fine. So we actually have the same bug already in e.g. inheritance completion where we only suggest the names earlier in the file.

Test case for inheritance completion:
$ cat t.swift
class C {}
class E: #^A^# {}
class D {}

$ xcrun swift-ide-test -code-completion -code-completion-token=A -source-filename=t.swift | grep CurrMo
found code completion token A at offset 20
Decl[Class]/CurrModule:             C[#C#]; name=C

This should also find D.

Another similar case once https://github.com/apple/swift/pull/62362 is merged
// RUN: %sourcekitd-test -req=cursor -pos=4:9 %s -- %s
let formatter: DateFormatter = {
let formatter = DateFormatter()
return formatter
}()
struct DateFormatter {}


Simplify LRO

View with navigation: https://github.dev/Azure/autorest.csharp/pull/2010
This PR simplifies generation of  LRO's:

MgmtLongRunningOperationWriter has been generating identical types with different names. They all are replaced with RealArmOperation and RealArmOperation<T> shared types
Instantiation of RealArmOperation and RealArmOperation<T> is delegated to ArmOperationHelpers.ProcessMessage / ArmOperationHelpers.ProcessMessageAsync that accepts HttpMessage.
For fake LRO's ArmOperationHelpers would create instances of FakeArmOperation / FakeArmOperation<T>
MgmtRestClientWriter is decoupled from RestClientWriter to minimize dependency on legacy HLC code.
OperationOrResponseInternals / OperationOrResponseInternals<T> is not required anymore.

This PR is a draft. If it is going to be merged, ArmOperationHelpers and supporting types should be added to the Azure.ResourceManager rather than directly to the Autorest.CSharp.

I don't think we want to incorporate these changes at this time.  Given this is all internal code and not affecting any functionality or performance I prefer to pick this conversation back up after GA if we still feel this is necessary.


Add English Translation on Documentation and Release page

Many of us still confuse figuring out how to use it because some page use chinese language...
Any desire to use English officially?

good advice, i will try to do it.

No English so far for wiki and documentation...


Update Excel.Worksheet.Copy.md

Corrected grammar on description

OPS Build status updates of commit b999793:
:clock10: Preparing: average preparing time is 3 min(s) 18 sec(s)

OPS Build status updates of commit b999793:
:clock10: Incremental building: average incremental building time is 53 min(s) 52 sec(s)

OPS Build status updates of commit b999793:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

api/Excel.Worksheet.Copy.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.