Longitudinal Project  Setup

Brief description:
This feature is used to test the different settings of a longitudinal project.
User spec:
https://github.com/CCTC-team/redcap_cypress/blob/redcap_val/user_requirement_specification/core/27_longitudinal_project_setup.spec
Feature link:
https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature Tests/B/Longitudinal Project Setup/B.4.27.100 - REDUNDANT.feature
Pre review:

[ ] Script(s) targets the correct feature sufficiently
[ ] The user requirements are met

Post review:

[ ] Script(s) targets the correct feature sufficiently
[ ] Script(s) appropriately tests the feature

Scripts Pre-reviewed:

B.4.27.100 - REDUNDANT
B.4.27.200 - REDUNDANT
B.4.27.300 - Enable & Disable Longitudinal Data Collection
B.4.27.400 - Event Designation
B.4.27.500 -  REDUNDANT

B.4.27.700 - REDUNDANT - says redundant but not tested. The script should test delete event from Define My Events page while in Production. A.6.4.500 tests deleting data in an event in production, which is different.


 There are many little bugs ...

Refer to #2 on stopwords.txt.
Please use the training and validation data from the provided download link and the test data provided in this repo for evaluating. The new released test data consists 6 references (instead of 1 at the time of writing the paper) and was probably preprocessed with stopwords, and hence, needs modification to obtain the new results.


A way to expose limited set of RPC methods

Is it possible to only expose a limited set of RPC methods for diagnosis purpose only? Such like sync progress, block height, health, etc.
Those RPC should be very safe and readonly and cannot be (easily) abused so they can be open to public behind a general rate limiting API gateway.
RPC like submit transaction and query historical state have a larger attack surface so we would like to close them by default.

CC @tomusdrw @ascjones

I'd rather invest some time to make https://github.com/tomusdrw/jsonrpc-proxy more production ready than to build that into substrate. @xlc is that something that would work for you?
The permissioning configuration example can be found here:
https://github.com/tomusdrw/jsonrpc-proxy/blob/master/examples/permissions.json
Basically it's just the matter of running the proxy + pointing to the configuration file.

Yes an easy configurable json rpc proxy will work too.


[HOLD for payment 2023-07-06] [$250] Migrate TransferBalancePage.js to function component

Class Component Migration
Filenames

[ ] src/pages/settings/Payments/TransferBalancePage.js

type: React.Component
has state values: false
has refs: false
has context: false
lifecycle methods: none

Task

We currently have some class components in our codebase that we would like to refactor to a function component.
Here's a link with some general advice on how to refactor a class component to a function component: https://react.dev/reference/react/Component#alternatives
If you need additional guidance, please ask in #expensify-open-source
Test for any regressions and verify that there are no breaking changes

⚠ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

Heads up! The pricing for this issue has been adjusted based on the scope of the work and the fact that no complex bug investigations or proposal are required.

Heads up, I'm taking this issue off HOLD and making it a Daily. If you are unable to work on it please remove your assignment and add the External + Help Wanted labels as per this update.

I'd like to work on this issue when it goes to external

PR is still in review.

PR is still in review, waiting for C+ tests.

This is ready for payment - we'll need to comp @0xmiroslav for reviewing the PR.

Awesome, invite sent for payment here @0xmiroslav https://www.upwork.com/jobs/~0173a8724eb9739e5e

Still waiting for payment

Paid C+ and contract ended! cc @0xmiroslav

Can we close this now @francoisl ?

Yes


Using multiple shapefiles in one leaflet app

Dear All,
I want to use data from 2 shapefiles in ONE leaflet map in R. I have 2 shapefiles. One for a region and one for a subregion in a country. When I hover over a point, the map should highlight the REGION and the tooltip should show the name of the subregion AND region.
I am able to do this separately for region and subregion. I want to do this in ONE leaflet map.
Can some one help me ?
My problem with a MWE in described in detail here :
https://stackoverflow.com/questions/48924514/using-data-from-2-shapefiles-with-leaflet-in-r?noredirect=1#comment84855712_48924514


Add hailin-du's file

Created a branch, created a file and made a commit, and opened a pull request.

This branch has not been deployed


OTA: add delta support in zephyr

Is your enhancement proposal related to a problem? Please describe.
Firmware update over the air is sometime complicated according to limited bandwidth and power consumption.
Delta firmware update is a good candidate for that kind of context.
It requires:

Delta API with "backends" selection to add other algorithms in the future
Add delta backend for bsdiff+heatshrink
Patch generation as script (bsdiff+heatshrink for the first implementation)
Add support for Heatshrink as optional module

Describe the solution you'd like

Add delta API in subsys

Support basic function

delta_configure_memory to select memory inputs and outputs
delta_select_backend to select delta and compression algorithm
delta_patch_apply to process the delta

According to memory footprint, the first backend brings is bsdiff for delta (without bzip2 compression) and heatshrink for compression.

Add python script to generate patch (according to the selected backend): bsdiff+heatshrink python patcher
Add compression library as module (like LZ4): Heatshrink zephyr as external module
Produce delta patch on west build

Describe alternatives you've considered
Link to the presentation (OSS2024)

Note: heatshrink has been rejected from being included in zephyr before, unless there is a big difference in the code as per the reason given for rejection then it is likely this will get the same rejection and reason to use an external module

@nordicjm thanks for your message. You are right, it has been declined because this module was not linked directly to any Zephyr glue.
If a delta API is implemented in subsys, it could be interesting to  provide the heatshrink compression backend as module. Whatever it is an internal or external one.
We will provide more details here in few days with a (draft) PR


Growing memory consumption

When I ran multiple training runs in parallel, some of them started crashing due to running out of cpu memory. The memory consumption of the bmaml code keeps growing during training. The memory profile of running the bmaml_point.py at d563f99c9a372a3a28a2a56dee5bde8aeb6bf78a is presented in the following image. The python environment is from the supplied environment.yml.

The command I ran is the following
python bmaml_examples/point/bmaml_point.py --num_particles=5 --num_parallel=10 --fast_lr=0.1 --meta_step_size=0.01 --fast_batch_size=10 --meta_batch_size=20 --meta_iter=100 --meta_method=trpo --method=svpg --svpg_alpha=1.0
Any ideas on how to fix the issue or work around it?

Hi, vuoristo,
Thank you for your interesting on our work.
I didn't check that before, thus now I don't have any idea for that.
First, I'll check this issue is happened in our side and find/share solution.
Thank you!


fix: use predicate for curve operations

Description
Problem*
Resolves #5045
Summary*
use predicate to set is_infinite to true when side_effects are disabled, to ensure that the curve operation will not fail.
Additional Context
Documentation*
Check one:

[X] No documentation needed.
[ ] Documentation included in this PR.
[ ] [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

[X] I have tested the changes locally.
[X] I have formatted the changes with Prettier and/or cargo fmt on default settings.

Can you move this predicate into flatten_cfg similarly to how we handle ToRadix? We can then add the predicate in SSA rather than ACIRgen

We should also have a test for these EC operations inside of an inactive block.

Yes, I created one but forgot to commit it. It's done now.

Can you move this predicate into flatten_cfg similarly to how we handle ToRadix? We can then add the predicate in SSA rather than ACIRgen.

It's done


OCPBUGS-3371: Defer MCV creation for monitored objects (#381)

Manual cherrypick of #381

/approve

/assign @Missxiaoguo


File size limit specification is different on this page than on other pages

Please clarify file size limit for paid tier.  This page says 500MB.  Other pages (e.g., https://westus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-2/operations/5d986960601faab4bf452005) say 50MB.

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

ID: 867c13a4-259b-5686-3208-9c335cc504c1
Version Independent ID: dad41b97-f678-7807-0837-df9b426e9009
Content: What is Optical character recognition? - Azure Cognitive Services
Content Source: articles/cognitive-services/Computer-vision/overview-ocr.md
Service: cognitive-services
Sub-service: computer-vision
GitHub Login: @PatrickFarley
Microsoft Alias: pafarley

@ejschoen Thanks for the feedback! We are currently investigating and will update you shortly.

Thanks.  I stumbled across some release notes that say the limit was upped to 500MB in May, 2022.  https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/whats-new. So I guess the reference pages are out of date.

@ejschoen Hello Eric, thank you, I have no permit to update the reference page, but I have reached out to the product group to update the numbers.
We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.


Is Vite able to import some component library like PrimeVue?

I tried to use PrimeVue with vite. The module just cannot resolve correctly.
I imported a .vue file of this lib(sidebar.vue) like so:

get error like

because Ripple is imported this way,in the source file of the lib(SideBar.vue)

and feel really hard to integrate.
my package.json

Is there any workaround or any component lib to choose from at this time?
Is this intended to be hard to work with component libs that use webpack?

See https://github.com/vitejs/vite/issues/178#issuecomment-630138450

@underfin  I know I need to import .vue.

But 'Ripple' is just a js file. And trigger error as the Image above. Please look into it carefully.

Oh. Sorry, it caused by Ripple is a common js module. It is not supported by default with vite.
You can add below code into vite.config.js as a workaround, but It's better if you ask the maintainer of primevue export es module.
optimizeDeps: {
    include: ['primevue/components/utils/DomHandler', 'primevue/components/ripple/Ripple'],
  },

@underfin  This works, but it seems I cant use 'primevue/components/**/*'. Is there any wildcard option? Didn't find it in doc.


PEP-8 modifications for TP2

Main changes : (OK vs NOK)

nx = np.array([1, 2.5, 5, 10]) VS x = np.array([1,2.5,5,10])
x[0] = 1 VS x[0]=1
Not sure but : A = np.array([[1, 0, -1], [0, 1, 0], [1, 0, 1]]) VS A = np.array([[1,0,-1],[0,1,0],[1,0,1]])

Thank you for the contributions


Fix FindReplaceBar losing focus too early

Fixes #81441
It doesn't matter if the focus is released immediately or later, so if it fixes the issue... 🤷♂

Thanks!


lookback format

I figured this out, but you might want to document.  Lookback expects a time unit, i.e. 5m for last 5 minutes. Is that right?

Fixed

Fixed


Can you please publish a gradio demo that will take text and video as input and generate output video

That would be amazing and so many people can use it easily with such app
Of course requirements will be installed

Great suggestions! I'll be sure to add them to my to-do list.
Additionally, since several steps in the simulation pipeline (such as surface reconstruction, HDR lighting estimation, and Blender simulation and rendering) can be very time-consuming, I need to carefully consider how to design this app effectively.


Failed to fetch semantic model

Hey,
I redeployed the extension (I couldn't find a bug in my former deploy), and now I'm getting an error as on the screen below:

Did anyone experience a similar error ? How did you handle it ?
I ran out what to change, my .env file looks good. Maybe I wrongly define example_id in examples ? I defines it as
<my_Looker_model_name>:<my_Looker_explore_name> . I don't add .model and .explore .
Thanks !

hey @LukaFontanilla - do you know what can be a reason for that ? thnx!

@antfido was this issue fixed, i am also running into similar issue.
@LukaFontanilla how can we fix the above issue.

Nope, still

Nope, still stucked here @vijayram0690

@vijayram0690 did you solve it ?

Hey,
so here are the screenshots from console:

For the second part - in BQ and in the config files it's defined with one semicolon, I don't know why error adds one more...
Thanks a lot for your help.

hey @LukaFontanilla  - would you be able to look into that one ? Thnx a lot ! :)

I'm having a similar issue. I think its related to my exploreKey having '::' in it instead of the expected ':' the code is looking for.

@dassowmd it's just generic output of the error (defined wrongly) so I wouldnt bother about it. is it working for you know ?

@antfido I think the issue is that the EXPLORE_ID in  the .env file has a single colon, but Looker delimits with a double colon. I didn't catch it, which sent me down a rabbit hole. Once I figured that out it seems to be working fine.
Would it be possible to validate that the EXPLORE_ID set in that file is properly formatted to only have a single colon?

@antfido I tried pushing the feature, but can't on this repo.
But I was thinking something like this in explore-assistant-examples/load_examples.py


add small example scripts

Description

I have added a bunch of small example scripts for utilizing basic aspects of the api, including showing images, markers, and manipulating layers and their properties. This is to address discussion in #123.
Unsurprisingly there is a lot of overlap between the different examples (adding images etc.) but I think that is ok. Right now they are all in one flat folder, but we could imaging breaking them up into folders around displaying images, markers etc. I don't think we need that yet.
I left one notebook example in there which just contains the basic imshow example so someone can see how to use napari in a notebook. We could add more notebook examples - but I think of those more as tutorials and less as examples, and I don't think we are ready for / need tutorials yet.
Finally I havn't done anything to turn these examples into scripts, but that would maybe be something to do next. We can also flesh out some of the examples by calling more of the interactivity from within them (i.e. adjusting dimensions sliders etc.)
What do people thing?
Type of change

[x] New feature (non-breaking change which adds functionality)

How has this been tested?

[x] ran all the .py files in examples and ran the .ipynb notebook

Final checklist:

[x] My PR is the minimum possible work for the desired functionality

Hello @sofroniewn! Thanks for submitting the PR.

In the file examples/add_images.py, following are the PEP8 issues :

Line 21:48: E231 missing whitespace after ','
Line 23:35: E231 missing whitespace after ','

In the file examples/add_markers.py, following are the PEP8 issues :

Line 23:48: E231 missing whitespace after ','

In the file examples/nD_markers.py, following are the PEP8 issues :

Line 26:80: E501 line too long (113 > 79 characters)
Line 27:80: E501 line too long (91 > 79 characters)

In the file examples/reorder_layers.py, following are the PEP8 issues :

Line 22:48: E231 missing whitespace after ','
Line 24:35: E231 missing whitespace after ','
Line 26:34: E231 missing whitespace after ','
Line 28:33: E231 missing whitespace after ','

@jni I have made those changes to the language at the top of the examples. I've also removed the use of  __main__. Your points on the Window / Viewer API are well taken, but should probably wait for a future PR to re-address, we can continue a discussion in #108.

@kne42 I have updated the PR based on your changes. Can you merge once it passes the tests


Flaky test: CreateAsync_checks_for_existence_and_retries_if_no_proccess_until_it_passes

This test fails occasionally with the following error:
System.ArgumentException : Keyword not supported: 'PoolBlockingPeriod'.
   at System.Data.SqlClient.SqlConnectionStringBuilder.Reset(Keywords index)
   at System.Data.SqlClient.SqlConnectionStringBuilder.Clear()
   at System.Data.Common.DbConnectionStringBuilder.set_ConnectionString(String value)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.CreateCreateOperations() in /_/src/EFCore.SqlServer/Storage/Internal/SqlServerDatabaseCreator.cs:line 110
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.<CreateAsync>d__12.MoveNext() in /_/src/EFCore.SqlServer/Storage/Internal/SqlServerDatabaseCreator.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.EntityFrameworkCore.SqlServerDatabaseCreatorTest.<Create_checks_for_existence_and_retries_until_it_passes>d__10.MoveNext() in /_/test/EFCore.SqlServer.Tests/SqlServerDatabaseCreatorTest.cs:line 107
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Can_create_master_connection failed again.

Duplicate of #12706


Add event searching

This should be more complete than the last PR. Hoping the API works the way I think it does.

TOKEN_MISSING error in the checked build. Not sure how the test key would have changed with these updates, but I was running into the same error trying to work with the API on my own before this repo.

looks good 👍
The token missing error is just a security measure that travis ci enforces because I have my yelp API key encrypted in the ci config and running the ci build from another repo will fail.

published to v2.1.0


Can't call components that depend on view helpers outside of controllers / other views

So I got me a component that uses ActionView helpers. It's called outside of a controller, in a job to feed a Turbo update, but the problem can be demonstrated without getting into all of that. Basically, if you don't got a view context set that fails. I found a couple of ways to work around this but I'm not sure what I like. I do think this would be a good thing for the library to handle, instead of either of the hacks represented here. I'mma express it in code:
require "phlex"
require "minitest/autorun"
require "action_view"
require "action_controller"

class Component < Phlex::View
  def template
    p { helpers.select_hour Time.now }
  end
end

module HelperFallback
  def helpers
    ActionController::Base.helpers
  end
end

class HelpedComponent < Component
  include HelperFallback
end

class Tests < Minitest::Test
  def test_no_context
    assert_raises NoMethodError do
      Component.new.call
    end
  end

  def test_helper_fallback
    assert HelpedComponent.new.call
  end

  def test_fake_view_context
    assert Component.new.call(
      view_context: ApplicationController.new.view_context
    )
  end
end

Anyone got an idea of the impact of either of these approaches, or something might be a bit better? Is there any reason to use the view_context of the specific controller that the frame originated from instead of ApplicationController?

One downside of broadly assigning helpers to ActionController::Base.helpers is that you no longer have access to helpers.flash. So maybe as a fallback to @_view_context, but not a replacement.

I think we could do something like this in call.
if view_context
  @_view_context = view_context
elsif defined?(ActionController::Base)
  @_view_context = ActionController::Base.helpers
end

I would like to use the instance variable rather than setting this on the helpers method because I plan to compile that method to @_view_context.


Can't open my Wallet

Hello, I have some problems with my wallet. This error shows all the time up when I try to open the wallet:

This is the whole error code: https://pastebin.com/c9BXpug6
One problem is also that I already send XRB's to the wallet but I didn't write my seed down. So I don't have it. I just have the files from the installation.
At the first day, The wallet worked fine and then I couldn't get in anymore.
I already tried to download the wallet again and the same error showed up again.
What can I do that my funds are not lost?
Thank you for help.
02.01.2018 Update:I think the data.ldb ist the problem if I delete this data the wallet works and creats a new data.ldb. But this didn't solve the problem. I need to open it with the old data.ldb.
02.01.2018 Update: https://github.com/clemahieu/raiblocks/issues/366

This ticket is overtaken by #366


Tests are not launched in VS15 preview 5

Using VS15 preview 5, I can see my tests in the test explorer:

But if try to launch them, it does nothing. "Run selected tests" does nothing. "Run all" seems to think (button switch to Cancel), but nothing happens.
Got a message on TEst output
Cannot discover test extensions installed by NuGet. The NuGet service is not available. Tests may not be found due to missing test adapter extensions.

Microsoft Visual Studio Enterprise 15 Preview 5
Version 15.0.25802.0 PREVIEW
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Enterprise
Visual Basic 15 Preview 5   00369-50000-00000-AA578
Microsoft Visual Basic 15 Preview 5
Visual C# 15 Preview 5   00369-50000-00000-AA578
Microsoft Visual C# 15 Preview 5
ASP.NET and Web Tools 2016   15.0.20908.0
ASP.NET and Web Tools 2016
Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
JavaScript Language Service   2.0
JavaScript Language Service
Microsoft .NET Core Tools   15.0.20908.0
Microsoft .NET Core Tools
Python Tools for Visual Studio   3.0.16266.1
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.
Python Tools for Visual Studio - Cookiecutter Integration   3.0.16266.1
Provides cookiecutter integration.
Python Tools for Visual Studio - Django Integration   3.0.16266.1
Provides templates and integration for the Django web framework.
Python Tools for Visual Studio - Profiling Support   3.0.16266.1
Profiling support for Python projects.
TypeScript   <IP_ADDRESS>
TypeScript tools for Visual Studio

In "Run all" mode, when I click "Cancel" I got:
========== Run test finished: 0 run (0:02:38.880) ==========

Launching my test directly using "Start without debugging" is ok:

Can you try with a new project?  New Python Application, Add New Item->Python Unit Test.
That's working for me with Dev 15 Preview 5.

@huguesv That's working with your scenario

There seems to be an issue with extra text being sent when an error or possibly a warning is raised.
@lmazuel Can you try fixing that deprecation warning and trying again?

There seems to be an issue with extra text being sent when an error or possibly a warning is raised.
@lmazuel Can you try fixing that deprecation warning and trying again?

@zooba That's better, but now I have this output:
------ Run test started ------
Cannot discover test extensions installed by NuGet. The NuGet service is not available. Tests may not be found due to missing test adapter extensions.
Unexpected test result: .
Unexpected test result: .
========== Run test finished: 0 run (0:00:00.924) ==========

For me, discovery is unreliable (sometimes I get them all discovered, sometimes partial, sometimes none).
But when I do get the tests discovered, I get the above error Unexpected test result: . for tests that have an import that fails. For example, the test for commerce mgmt fails because the search path doesn't include the commerce mgmt folder.  But the test for cdn mgmt succeeds, and that one is in the search path.

@huguesv We collect test info from the analyzer now, so when it fails there may be relevant messages in the Diagnostic Info window.

Simple repro:
Create new python application
Add new item, python unit test
Add import foooo at the top of the file
Open explorer and run the test
Result:
The test doesn't 'fail' and the output window shows:
------ Run test started ------
cd c:\users\huvalo\documents\visual studio 2015\Projects\PythonApplication4\PythonApplication4\
set PYTHONPATH=c:\users\huvalo\documents\visual studio 2015\Projects\PythonApplication4\PythonApplication4\
C:\Users\huvalo\AppData\Local\Programs\Python\Python35-32\python.exe "C:\USERS\HUVALO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0EXP\EXTENSIONS\MICROSOFT CORPORATION\PYTHON TOOLS FOR VISUAL STUDIO\3.0\visualstudio_py_testlauncher.py" -t test1.Test_test1.test_A -r 12512
Unexpected test result: .
========== Run test finished: 0 run (0:00:00.7704042) ==========

Running the launcher script directly with the cmd line that was printed above (minus the -r):

C:\Users\huvalo\Documents\Visual Studio 2015\Projects\PythonApplication4\PythonApplication4>C:\Users\huvalo\AppData\Local\Programs\Python\Python35-32\python.exe "C:\USERS\HUVALO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0EXP\EXTENSIONS\MICROSOFT CORPORATION\PYTHON TOOLS FOR VISUAL STUDIO\3.0\visualstudio_py_testlauncher.py" -t test1.Test_test1.test_A
======================================================================
ERROR: test1 (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test1
Traceback (most recent call last):
  File "C:\Users\huvalo\AppData\Local\Programs\Python\Python35-32\lib\unittest\loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "C:\Users\huvalo\Documents\Visual Studio 2015\Projects\PythonApplication4\PythonApplication4\test1.py", line 2, in <module>
    import foooo
ImportError: No module named 'foooo'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)

C:\Users\huvalo\Documents\Visual Studio 2015\Projects\PythonApplication4\PythonApplication4>

While this now works with Python 2.7, it still doesn't work with 3.5.


Update partition.md

Before clicking the "Create pull request" button:
Enter a meaningful title. We suggest using the keywords "New" or "Update" indicating the nature of changes.
Summary, scope, and intent of this PR
Hi. I've added additional recommendations derived from Reactive Principles and Reactive Patterns: https://www.reactiveprinciples.org/
Links to any related work item(s) or supporting detail

[DELETE-OR-REPLACE-THIS-TEXT]
[DELETE-OR-REPLACE-THIS-TEXT]

AFTER YOUR PR HAS BEEN CREATED, expand this section for tips and additional instructions.
These are common guidelines for contributions across the repos managed by the Azure patterns & practices (PnP) content team. Some repositories may have additional specific requirements that are not listed here.
Guidance for all contributors

Topic
Guidance

Draft PR
If your PR will be a work-in-progress for more than a day or two, select the Convert to draft link in the upper right of the page (under Reviewers) to change it to a draft. For future reference, you can also do this using the Create pull request button drop-down during PR creation.

ms.date metadata
Don't update an article's "ms.date" metadata property unless you've done a full freshness review of the content. A full freshness review includes changes required to correct or improve the full technical accuracy of the article.Don't update "ms.date" if you're doing targeted changes to improve non-technical aspects of the article, such as editorial quality, art improvements, article template alignment, etc.If you've changed any "ms.date" properties for work that wasn't part of full review for freshness, please reset them to their previous value.

Placement and linking
If you're creating a new article or articles, include updates to the related TOC.yml file to propose where the article(s) should be placed. Also consider other places within the document set where it would be beneficial to cross-reference and link to your new article(s).

PR build
After you open your PR, and for each successive commit that you push to your branch, the publishing platform will run validation on the files in your pull request. A summary of the build results for each file will be inserted inline into your pull request, which includes any build suggestions/warnings/errors. PRs cannot be merged until all build errors and most warnings are resolved.

Publishing
Following a successful merge, most repos publish to the live site about once per (business) day.

Additional resources
learn.microsoft.com contributor guide

Additional guidance for private repos and internal contributors

Topic
Guidance

PR size
If your PR is more than ~5 lines of changes, or you'd like for the changes to go through editorial or larger review, open a contribution request at https://aka.ms/contribution and include a link to the PR in response #8. Once it's processed, you'll be notified of the next steps.

PR title prefix
Select the Edit button to the right of the PR title if you need to revise it. The following prefixes are reserved for specific contribution types:[Quality Check] - maintenance work related to content quality (edit passes, art improvements, template alignment)[LinkFix] - recurring/adhoc PRs to correct link URLs[Pipeline] - new/updated contributor success pipeline content[WIP] - a work-in-progress draft requiring several days/weeks

PR preview
Following successful build of your PR, publishable files will also include Preview URL links to staged previews of your new/updated articles. Be sure to review these for verification of your intended contributions, or to send to other internal contributors for review.

PR sign-off (public repo)
If an article you own is updated in a public repo PR, you are responsible for sign-off. You will be automatically notified via email. The PR will not be merged until you've had a chance to review and sign-off.

PR sign-off (private repo)
After you've completed your proposed changes, addressed build warnings, and completed all review work, you can begin the sign-off process for review and merge:If your PR is in draft mode, remove "[WIP]" from the title and select Ready for review button at the bottom of the PR.Enter "#sign-off" in a new comment. This comment indicates that you're confident the work meets or exceeds Microsoft's standards for publication, and will trigger the review process.Your PR may be selected for initial review by the PnP content team. Following PnP review, you may receive questions or requests for additional changes. You should have initial feedback from PnP review within a few business days. If you have an urgent request or need to contact the team, please mention @MicrosoftDocs/patterns-and-practices-team-pr-reviewers in your PR and someone will get back to you. After the Azure patterns & practices content review is complete, a PnP #sign-off will be added.Final review/merge is done by the PR review team. The PR team may also respond with feedback, categorized as "Blocking" (requires action from you), or "Non-blocking" (to be addressed in a future PR).

Additional resources
learn.microsoft.com internal contributor guideAuthoring templates: architecture-center-pr, well-architected-prTo contact the Azure patterns & practices team use e-mail, or @mention our GitHub team in your PR comments using: @MicrosoftDocs/patterns-and-practices-team-pr-reviewers

@ckittel thanks for your comments. I've attempted to address them all in my new commit. Just to add: It applies to both horizontal and vertical scaling.
Given your comments, I think this additions are more suitable to this page: https://learn.microsoft.com/en-us/azure/architecture/guide/design-principles/scale-out
So I can close this and create a new and improved PR. What's your advice?


How can I set the Stack Navigator title as an image

How can I set the Stack Navigator title as an image?

try
StackNavigator({
  Screen1: { screen: Screen1 },
  Screen2: { screen: Screen2 }
}, {
  header: {
    title: <Image {..yourPropsHere} />
  }
})

Is the a way to give the Image a value which can be displayed on the back-button?

@Reg1nleifr you can use headerBackButtonTitle to customize the text in the back button

@koenpunt thanks alot that fixed it.
For anybody else wanting to achieve this effect: I think it's important to note that this is only possible inside the Navigator declaration, not inside the navigationOptions of the given screen!

I'm struggling with the headerBackTitle option: I tried to set it to a string, a React element, null... never works.
Tried both in the navigationOptions of the single component and in the StackNavigation declaration.

@pietro909 You probably already figured it out, but: one thing that catches me is that on iOS at least, the stuff in the navigator does NOT refresh when I do a reload. I need to recompile/re-run.

@xaphod I've seen it not working with hot reloading, but on refresh it should always work. Or are you talking about replacing the image?

Hi! In an effort to get the hundreds of issues on this repo under control I'm closing issues tagged as questions. Please don't take this personally - it's simply something we need to do to get the issues to a manageable point. If you still have a question I encourage you to re-read the docs, ask on StackOverflow, or ask on the #react-navigation Reactiflux channel. Thank you!


Connecting to quic reverse proxy always requires 3-RTT

While trying out the quic reverse proxy, I found that the server always replies the my first CHLO with:
RREJ: SERVER_NONCE_REQUIRED_FAILURE
Then the client will send another two requests, making the entire connection establishment 3-RTT.

Which revision of GoQuic are you using? We added 0-RTT connection support from https://github.com/devsisters/goquic/commit/492debe4b7e17bf07fa77950b43562a38bb18b3b (turned off replay protection) and well working with the tip of master & most recent chrome browser.

After updating to the latest code, 0-RTT connection is working. Thanks!


Re-fix #4597 because I borked it again in #4590

Okay not sure what's up.
Done.
rm i18n/*.pot
env/bin/tx pull -a -f --mode=reviewed --minimum-perc=50
Pulling translations for resource gratipay.core (source: i18n/core.pot)
Skipping 'eo' translation (file: i18n/core/eo.po).
 -> nl: i18n/core/nl.po
Skipping 'pt' translation (file: i18n/core/pt.po).
Skipping 'ko' translation (file: i18n/core/ko.po).
 -> de: i18n/core/de.po
Skipping 'tr' translation (file: i18n/core/tr.po).
 -> fr: i18n/core/fr.po
 -> it: i18n/core/it.po
 -> ja: i18n/core/ja.po
 -> es: i18n/core/es.po
Done.
[master 59e0c71] Update i18n files
 6 files changed, 144 insertions(+), 108 deletions(-)
Tag and deploy version 2116? (y/n) y
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
Changes not staged for commit:
        modified:   deploy.sh

Untracked files:
        irs.sql
        log
        match-2015.py
        matches.csv
        transaction_search.csv

no changes added to commit
$ gb
  fix-deploy-again
* master
$ gs
 M deploy.sh
?? irs.sql
?? log
?? match-2015.py
?? matches.csv
?? transaction_search.csv

www/version.txt is still 2116 so I guess echo never ran? yesno failed, is that it?
https://github.com/gratipay/gratipay.com/blob/ee8fa9fc43577c0f61a11ca5f782864e4acef19c/deploy.sh#L72

Maybe I typed y  (extra space) or something?

Wait ... why are we tagging and deploying 2116 when 2116 is already deployed? 😶
Tag and deploy version 2116? (y/n) y

Looking at recent history I see we deployed 2116 a few days ago. Hmm ... 🤔

$ git describe --tags --match '[0-9]*'
2115-16-gee8fa9f
$

$ git tag|grep 211
2110
2111
2112
2113
2114
2115
$

Maybe we failed to tag as part of deploying 2116?

I remember doing some sort of goofy commenting of deploy.sh to finish a crashed deployment (iirc due to the network card flakiness I'm having), but 2116 was @rohitpaulk. Anything irregular about deploying 2116, @rohitpaulk?

Okay I tagged 2e9816e.
$ gp --tags
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:gratipay/gratipay.com.git
 * [new tag]         2116 -> 2116
$

While I'm at it I keep seeing this "new branch" show up all the time. Why all the time?
$ ./deploy.sh
From github.com:gratipay/gratipay.com
 * [new branch]      limit-verifications-in-UI -> origin/limit-verifications-in-UI
Already up-to-date.
...

👍
Tag and deploy version 2117? (y/n)


Images not being shown after sending pdf via express response

Bug Report
Images not being shown after sending pdf from express
Description of the problem
I'm generating pdf files with .png images inside (using canvas) and the latter are shown properly after opening the pdf file on my local machine. When i send a pdf using express, i can open it in the browser but none image is shown,
I've also tried buffering my images using data-uri-to-buffer package but I'm getting the same issue.
I'm downloading the files in the client with js-file-download package
Code sample

// Server
const generatePdf = (canvasDataUri: string, filePath: string, res) => {
    const doc = new PDFDocument({ size: "a4", compress: false }); // compress: true gives me a blank pdf on the browser
    const page = doc.page;
    const pageHeight = page.height;
    const pageWidth = page.width;

    doc.pipe(fs.createWriteStream(filePath));
    doc.pipe(res);
    doc.rect(0, 0, pageWidth, pageHeight).fill("#90AD48");

    doc.image(canvasDataUri);

    doc.end();
}

const pdfGenerateController = (req, res) => {

      const canvasDataUri = magicFunctionForDataUri(); // for example purposes, working fine
      const filePath = magicFunctionForFilePath(); // for example purposes, working fine

      generatePdf(canvasDataUri, filePath, res)

      res.writeHead(200, {
        "Content-Type": "application/pdf",
        "Content-Disposition": `attachment; filename=Untitled.pdf`,
      });
}

// Client
const getMyPdf= async (data) => {
  try {
    const res = await Axios({
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        Accept: "application/pdf",
      },
      url: `/api/generate-pdf`,
      data
    });

    const filename = getFileNameFromHttpResponse(res.headers["content-disposition"]);
    FileDownload(res.data, filename);

    return res;
  } catch (error) {
    return error.response;
  }
};

Your environment

pdfkit version: 0.11.0
Node version: 10.16.3
Browser version (if applicable): Chrome 87.0.4280.88
Operating System: Windows 10

Since is working in local machine, is not pdfkit related. Probably something related to express
If you find a way to trigger the error without express, reopen


'None' is marked as unknown variable when used as return type

With Python extension 2018.9.2 on VSCode 1.28.2 on OS X 10.14:
def f() -> None:
    pass

{
	"owner": "_generated_diagnostic_collection_name_#1",
	"code": "used-before-assignment",
	"severity": 4,
	"message": "unknown variable 'None'",
	"source": "Python (analysis)",
	"startLineNumber": 1,
	"startColumn": 12,
	"endLineNumber": 1,
	"endColumn": 16
}

Fixed upstream (https://github.com/microsoft/python-language-server/issues/335)


API rate limit

What is the API rate limit? just curious. thanks great project!

I'm sorry for the delay in answering. Please check https://github.com/andrieslouw/imagesweserv/issues/83
Let me know if there's anything still unclear.

thanks a lot!!


Ingredients: the Enter button should not save the input

Hi everyone,
On the ingredients' page, when we press the Enter button from the keyboard, the content is saved.
That's not a correct behavior, as on iOS we don't have a wait to only ask to close the keyboard.
At least on iOS, we shouldn't auto-save the content that way.
https://github.com/openfoodfacts/smooth-app/assets/246838/492a80b3-9def-4502-bed3-b95a2d284e3c

@g123k I cannot test on iOS anymore.
What I can see is that in edit_ingredients_page.dart, the TextFieldhas the following parameters:
                        textInputAction: TextInputAction.done,
                        onSubmitted: (_) async => _updateText(),

From what you wrote, I guess that we should be good with
                        textInputAction: TextInputAction.unspecified,
                        // no onSubmitted

Or maybe just remove onSubmitted, while keeping TextInputAction.done.
Would you code and test that?
There's probably also something else to do with MayExitPage, so that we don't escape easily the page with modified text.

Basically the onSubmitted is enough.
The real question is what you do on Android? (which doesn't seem to frustrate users)

The same code is used for Android.
And it looks like the first time that onSubmitted was coded was more than a year ago, when the page was created in #707:
https://github.com/openfoodfacts/smooth-app/blame/3af05bd62b9f1c6b5b24421735aabef52aa18a59/packages/smooth_app/lib/pages/product/edit_ingredients_page.dart

There's no good reason to keep the current behavior because the UX stinks anyway: we should not save the text on the fly from a click on a harmless "OK" button.
That applies to iOS and Android and all targets I guess.


Clarify behavior / docs re Get-Content -Raw -AsByteStream vs. Get-Content -ReadCount 0 -AsByteStream

Updated to reflect the parameter name change from -Encoding Byte to -AsByteStream and to correct the docs link.
According to the documentation, the purpose of Get-Content -Raw is to return a string:

Ignores newline characters and returns the entire contents of a file in one string with the newlines preserved

By contrast, the purpose of -AsByteStream is to return a stream of bytes, without any attempt to interpret them as a string (characters).
As currently documented:

The two parameters seem to be mutually exclusive, but they can be combined (see below).

The documented way to get the entire file contents as a single array of bytes is to use -ReadCount 0 with -AsByteStream:

When reading from and writing to binary files, use a value of Byte for the Encoding dynamic parameter and a value of 0 for the ReadCount parameter. A ReadCount value of 0 reads the entire file in a single read operation and converts it into a single object (PSObject).

As an aside: note that PSObject is somewhat misleading, because it is an [System.Object[]] array that is output as a single object (behind the scenes, that array may be wrapped in [psobject], but that is of no relevance to the end user).
In practice, as of PowerShell Core 6.2.0-preview.1

Get-Content -Raw -AsByteStream - note the combination of -Raw and -AsByteStream returns a [System.Byte[]] array as a single object.

Get-Content -ReadCount 0 -AsByteStream returns a [System.Object[]] array as a single object.

Note that [System.Byte[]] is actually the more efficient way to return the bytes of the file as a single object, so, arguably, that's what Get-Content -ReadCount 0 -Encoding Byte should output too.
Steps to reproduce
'hi' > t.txt

# Based on the current docs, -Raw combined with -Encoding Byte makes no sense.
# Yet, it works, and returns an efficient, strongly typed [System.Byte[]] array.
Get-Content t.txt -Raw -AsByteStream | Measure-Object | % Count
(Get-Content t.txt -Raw -AsByteStream).GetType().Name

'---'

# Based on the current docs, using -ReadCount 0 with -Encoding Byte is the way
# to return all bytes at once, as a single array.
# Returns a [System.Object[]] array.
Get-Content t.txt -ReadCount 0 -AsByteStream | Measure-Object | % Count
(Get-Content t.txt -ReadCount 0 -AsByteStream).GetType().Name

Actual behavior
1
Byte[]
---
1
Object[]

Environment data
PowerShell Core 6.2.0-preview.1

I believe if conclusion in #3911 is "By design" we should follow our code behavior.

@mklement0 Please update the Issue.

@iSazonov, I've updated the issue to reflect the parameter name change from -Encoding Byte to -AsByteStream, corrected the docs link, and I've generally made it clearer what the issue is about.
I don't know how this issue relates to #3911, however.
At this point, let me try to reach a conclusion:

The docs should be updated to mention combining -Raw and -AsByteStream as a meaningful combination that outputs a [byte[]] array as a single object.

In the interest of backward compatibility and because the difference will rarely matter, it's fine to have -ReadCount 0 -AsByteStream issue an [object[]] array instead.

If you agree, we can close this issue.

If you agree, we can close this issue.

I agree but we need to get MSFT team confirmation that it is by design and we can set the label. /cc @SteveL-MSFT
After that we can continue thinking about #3911.


Unable to modify AKS cluster labels/annotations after cluster creation

Setup

Rancher version: v2.6.6
Browser type & version: Firefox 102.0

Describe the bug
Once an AKS cluster is created, it is not possible to modify the cluster objects Labels and/or Annotations. However, you can add these during the initial cluster creation process.
To Reproduce

Create an AKS cluster
Wait until completion
Edit the AKS cluster
Add a Label and/or annotation.
Click on Configure Cluster -> Save

This, however works:

Create an AKS cluster
Whilst specifying initial config information, add labels and/or annotations
Provision cluster

Result

Label and/or annotation added does not persist unless it was part of the initial cluster configuration.

Expected Result

Label and/or annotations to be added after cluster creation

Additional context
When Save is clicked, the only non GET request I can see includes the following request body:
{
	"aksConfig": {
		"linuxAdminUsername": "azureuser",
		"nodePools": [
			{
				"availabilityZones": [
					"1",
					"2",
					"3"
				],
				"count": 1,
				"maxPods": 110,
				"mode": "System",
				"name": "agentpool",
				"orchestratorVersion": "1.23.8",
				"osDiskSizeGB": 128,
				"osDiskType": "Managed",
				"osType": "Linux",
				"type": "/v3/schemas/aksNodePool",
				"vmSize": "Standard_DS2_v2"
			}
		]
	},
	"name": "davidh-aks-test-2"
}

There is no information pertaining to the annotations added.

@David-VTUK was this an RKE1 cluster you had created?

@David-VTUK was this an RKE1 cluster you had created?

@gaktive - No, AKS

Duplicate of https://github.com/rancher/dashboard/issues/7631 (despite it being newer). There's a solution up for QA targetted for 2.7.2


[v1.17.0] API cannot use _csrf token get information

Description
Show The target couldn't be found. or token is required
How use _csrf token to API get data?
API URL: /api/v1/repos/{username}/{reponame}/issues this API problem in mustEnableIssuesOrPulls function show The target couldn't be found.
Gitea Version
1.17.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
systemd
Database
PostgreSQL

From v1.17, web requests are splitter from API/v1. API will not need csrf token. You could just use access token to do that.

Is it possible to use the session that the original browser is logged in to access the API data?, using AJAX


(MAINT) Ping pupperware team for docker/ changes

Related: https://github.com/puppetlabs/puppetserver/pull/2050

Test PASSed


SPIKE: Scanning Tools

As a site engineer, in order to ensure the quality, security and accessibility of our code, I would like to determine which automated scanning tools will work best for our system.
Acceptance criteria:

[ ] Review and determine if any automated scanning tools are appropriate for Challange.gov repos:

[ ] MegaLinter
[ ] SonarQube
[ ] Any other tool?

[ ] If any of the tools are determined as a good fit, discuss with the PO, and create backlog items for integration / configuration of those tools

@r-bartlett-gsa I think the requirements of this ticket are being met:

As a site engineer, in order to ensure the quality, security and accessibility of our code, I would like to determine which automated scanning tools will work best for our system.

For code quality we have rubucop and CodeClimate scans on PRs. For security we have dependabot and Snyk scans. For accessibility with have the WAVE screenshots for UI PRs and the Axe rspec tests running in CI. In my opinion the current scanning more than sufficient and the other tools like MegaLinter and SonarQube offer similar functionality that will duplicate the errors and be more maintenance burden that is not providing ROI. Marking this closed now.

Sounds good! Thank you @stepchud


Bootstrap 5 Scrollspy -  question

Hello,
when I am watching and learn the section Bootstrap from Udemy, in Scrollspy(component) there is a "small" problem.
(It may be something simple but I was educated for 2 hours and I did not get an edge).
So by the Rob's video about v4-alpha bootstrap I did it [(scrollspy(component) builded from the [course)]. --> v4bootstrap scrollspy
I am trying to code it from begin and use bootstrap 5 and the component(scrollspy) do not work correctly. (scrollspy(component) builded from begin in bootstrap  5 but not working correctly). --> bootstrap 5 scrollspy
So I also try the Example in navbar from bootstrap 5 and not working correctly too! (scrollspy(component) Example in navbar builded from begin in bootstrap  5 but not working correctly). --> bootstrap 5 example scrollspy
So where is the problem?
What am I doing wrong?
I believe that I have entered cdn libraries from bootstrap css and javascript correct.
Thank you
Sincerely

Thank you about immediate response and tips.
So I check it and try again and I fixed this.
In scrollspy from bootstrap 5 version I have added in navbar element the pacement :  sticky-top to fix it and working correctly, and also remove the div container with content and attributes and add them only in the body.
Take a look about scrollspy bootstrap5 here
About bootstrap 5 example scrollspy I have added also like previous example in navbar element the pacement :  sticky-top to fix it and working correctly.
After I have added the position-relative class to the body and an attribute data-bs-offset for calculating position of scroll and working correctly.
Take a look about bootstrap 5 example scrollspy here
Sincerely...
devwebbuilder


ARM support

Hello,
As I understand this action does not support ARM since there is amd64 hardcoded in download URLs. Is it possible to make this work with ARM (ideally is should decide the arch based on the arch where it's running)?

@ds-ms - I'm ready to create the same PR here, but it would be cool if this PR https://github.com/Azure/setup-kubectl/pull/13 will be merged first. In that case I'll extend tests with arch cases.

@gtrubach The tests are added: https://github.com/Azure/setup-kubectl/pull/15
You can get started with the changes here :)


Add script to build for ppc64el

As documented here https://fedoraproject.org/wiki/User:Hamzy/phantomjs_ppc64le
This is a new script to build for the PowerPC architecture.  It could
still be merged with the x86_64 one, but the source code release version
numbers needs to be handled.

Landed! Thank you!


space between dropdowns and header gone!

I think this might be because I switched the order they were loaded https://github.com/USGS-VIZLAB/water-use-15/pull/369/commits/bd0bbff64c112de1e8c38a9f60f772dc48f5f385

Not a space, it's because the social icons have moved. There's got to be a way to use the social media template, load it last, but place it where you want it to be in the index.html. For this viz, I'll just move it back. If we look at the analytics and see that the 4 hrs that this change was up on beta is drastically different from reverting back this afternoon (loading the social media icons), then we can work on a different solution.


Add exec onramp (WIP)

Closing this stale PR.
Feel free to reopen, once the work can progress.
We miss you @ernadh !


Installing JSBin Globally

I am trying to install jsbin via npm sudo npm install -g jsbin. I am getting errors on post-install about grunt modules being installed. Is this the best way to install globally so I can run the jsbin command to start the app?
   > grunt build

   >> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
   >> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
   >> Local Npm module "grunt-contrib-concat" not found. Is it installed?
  Warning: Task "concat" not found. Use --force to continue.

  Aborted due to warnings.

I'd say, for now, git-clone this repo and yarn install from there (there's a yarn.lock file included).

I got the same error, but I don't see the yarn.lock file.


Regression: POWERLEVEL9K_DIR_FOREGROUND is not working anymore

As title says. I've set POWERLEVEL9K_DIR_FOREGROUND=white in my config, yet the color is still black. This used to work fine, but the commit cd5b4d0debac05a74131f06efa918172586865ec broke it. Found it using a git bisect. It seems to work again if I change $0_HOME back to $0.

Paging @dritter.
We have a few other items on next, too. Once this gets fixed, I'll make a v0.3.1 patch release.

This is not a bug - it's a feature. :smile: I always wanted to say that.
This is due to a change to the dir segment. It now distinguishes between being inside the home folder and outside of it. These states have effect on the customization variables for this segment. You have to set the variables like POWERLEVEL9K_DIR_HOME_FOREGROUND="white" and POWERLEVEL9K_DIR_DEFAULT_BACKGROUND="green". Note the "state" in the variable name.
I only forgot to mention that change in the CHANGELOG. I opened #180 for that.
Other segments that have state are described here.

:+1:

@dritter - Perfect! Thank you!


Code a custom button to go back to 2D view

Environment
Please provide the following information about your environment:

Development OS: Mac
Device OS & Version: iOS 13
Version: ViroReact version: 2.17.0 and React Native version: 0.59.0
Device(s): iPhone 11 and Huawei Nova 2i

Description
I am trying to code a custom button in the VR 360 video because on Android the "X" button that is on the top left of the VR layout. I tried to accomplish it via the Scene Navigation's replace and pop but nothing worked.
Reproducible Demo
var SomeScreen = require('../screens/RandomScreen');
<ViroButton
            position={[buttonSize + 0.1, -0.75, -2]}
            scale={[1, 1, 1]}
            width={buttonSize}
            height={buttonSize}
            source={require("../images/res/left_arrow.png")}
            gazeSource={require("../images/res/left_arrow_hover.png")}
            tapSource={require("../images/res/left_arrow_hover.png")}
            onClick={this._exitVideo.bind(this)} />

  _exitVideo() {
    // this.props.sceneNavigator.replace({scene:SomeScreen});
    this.props.sceneNavigator.pop()
  }

I think you need to go back with navigation not a scene.
So try to use this.props.navigation.pop()

@jpudysz I changed it from this.props.sceneNavigator.pop() to this.props.navigation.pop() as you suggested and now I am getting the following error

Navigation will be available only for the views registered inside Navigation's Stack.
Apparently your view is nested somewhere so you can use hook useNavigation if you're using v5, if not pass navigation down with props.

Oh, I actually use the VR navigation to go to the VR view:
<ViroVRSceneNavigator {...this.state.sharedProps}
        initialScene={
          { scene: VRVideoScreen, passProps: { videoURL: this.state.videoURL, videoID: this.state.specificVideoID } }} vrModeEnabled={true} onExitViro={this._exitViro.bind(this)}/>

Do you use react-navigation or @react-navigation/native at all?

Nope, these are the dependancies I have on the project:
"dependencies": {
    "expo": "^36.0.2",
    "expo-cli": "^3.16.1",
    "expo-file-system": "^8.1.0",
    "react": "16.8.3",
    "react-native": "0.59.9",
    "react-native-orientation": "^3.1.3",
    "react-native-paper": "^3.6.0",
    "react-native-responsive-fontsize": "^0.4.3",
    "react-native-responsive-screen": "^1.4.1",
    "react-native-unimodules": "^0.7.0",
    "react-native-vector-icons": "^6.6.0",
    "react-viro": "2.17.0",
    "rn-bottom-drawer": "^1.4.3"
  },


docker_compose doesn't support v2 compose file syntax

After a quick look I suppose the following issue exists (fixme if I'm wrong), but haven't actually tried :
https://github.com/garethr/garethr-docker/blob/master/lib/puppet/provider/docker_compose/ruby.rb#L18
Here in the 'exists?' check tries to iterate over top-level keys of the yaml (v1 syntax), since v2 container definitions moved under 'services' key and a 'version: "2"' top-level key-value has been introduced to distinguish between versions.
v1 syntax will be deprecated, the following page mentions "supported up to 1.6.x", although it still works in 1.7.1: https://docs.docker.com/compose/compose-file/#version-1

@garethr Would be great if this could be looked at or merged. I can confirm version 2 syntax compose files do not play nice at the moment and I have to use version 2 for the docker networking.
Info: Checking for compose service version
Info: Checking for compose service services
Info: Checking for compose service networks

I've merged #517 into master so master should now work correctly with v2 compose files. I'll look to get a new release out soon.

Thanks Gareth.
On 11 July 2016 at 17:27, Gareth Rushgrove<EMAIL_ADDRESS>wrote:

I've merged #517 https://github.com/garethr/garethr-docker/pull/517
into master so master should now work correctly with v2 compose files. I'll
look to get a new release out soon.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/garethr/garethr-docker/issues/514#issuecomment-231787530,
or mute the thread
https://github.com/notifications/unsubscribe/AF7WwYs2OBWu5Vl1cMxXkJdFjDLL0W0Xks5qUm7ygaJpZM4IgWxX
.


[fix] allow passing in https certs again

fixes https://github.com/sveltejs/kit/issues/2510

Yes, this has been rolled out. You can see the changelog here: https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md


Add file upload and deletion functionality

This commit adds the ability to upload and delete files in the useDirectusFiles composable. The new functions, uploadFiles and deleteFiles, allow users to upload single or multiple files and delete files by their ID.

Types of changes

[x] New feature (a non-breaking change which adds functionality)

Description
This commit adds file upload and deletion capabilities to the useDirectusFiles composable. The newly added functions are:

uploadFiles: Supports single or multiple file uploads. Additional metadata like title and tags can be added for files.

Single file upload: uploadFiles(file)
Multiple file upload: uploadFiles([file1, file2])
Upload with metadata: uploadFiles(file, { title: 'File Name', tags: ['tag1'] })

deleteFiles: Supports single or multiple file deletion by ID.

Single file deletion: deleteFiles('file-id')
Multiple file deletion: deleteFiles(['id1', 'id2'])

Checklist:

[x] My change requires a change to the documentation.

LGTM. Thanks for your work.


Use cargo-rdme to sync README and documentation root

This was remarkably painless.
I especially appreciate @taiki-e providing an install-action which does 90% of the CI work for us.

Not sure what's up with the "expected check". I guess this is because I renamed one of the CI tasks, but I don't know if that will block a merge or what the proper way to do a rename is.

Some screenshots to feed the discussion:
Masonry README before the change

Masonry README after the change

Doc page with the blurb centered

Doc page with badges and the blurb, both centered

Overall my takeaways are:

Anything centered looks bad in the generated doc.
In the README, having badges below the title and blurb does look better.
I don't think the doc really needs the blurb.

Will create follow-up PR soon based on those takeaways.

New version pushed.
RENDERED.

We're still blocking on the name for the CI check

Changed the name as per your commit. I'd say this is good to merge.


Adding Bigtable Client.copy method.

@tseaver Any other issues?

@tseaver I updated to just re-construct a new instance. PTAL.

LGTM


[Bug] NBT Tag Size Too Big Kicking Me From My Server

What happened?
When Right Clicking Shell Constructor, kicked from server for exceeding NBT Tag size
Mod Compatibility Issue?
Version
mc1.19.2-4.3
Minecraft Version
1.19.2
Fabric API Version
qfapi-4.0.0-beta.30_qsl-3.0.0-beta.29_fapi-0.76.0_mc-1.19.2
Installation Source
Modrinth
Logs
https://pastebin.com/zgntbTXu

Other Mods
No response
Additional Information
Not sure if its a mod compatibility issue or a issue with Sync as it can be reproduced with different mods, and I assume that its bloating the player save when you make a clone. Trying to load a world with a shell inside a constructor after adding these mods creates the same issue.
https://modrinth.com/mod/artifacts
https://modrinth.com/mod/vanity
Had issues with these 2 mods, assume there may be more.

Wow. More than 2 MiB for the NBT. The most memory-intensive part is shell's inventory, so are you sure that the problem is caused by a shell in a constructor, not in a storage?

Oh lord

It was EMI Loot For whatever reason????

The fun part is all of them are minecraft:air.
Welp, my bad. The issue is I misunderstood how the "Trinkets" lib works under the hood. I genuinely thought that its inner inventory should only contain trinkets which are actually equipped on the player, but it seems that the library allocates a slot for every registered trinket in every available trinket group (for some reason). So, in your case it's 41 trinkets per 13 groups, which is equal to 533 (!) slots.
While I really need to add .isEmpty() check to this method to eliminate the "NBT-bomb" on my side:
https://github.com/Kir-Antipov/sync-fabric/blob/e821350f37576909751053ec39fba3f15b852689/src/main/java/dev/kir/sync/compat/trinkets/TrinketShellStateComponent.java#L89-L105
I wouldn't say that the issue is completely on my side.

It was EMI Loot For whatever reason

This may be a problem on "EMI Loot"'s part, because every empty item had emi:[something_something] enchantment on it (why?...). Maybe this is what caused this strange behavior of the "Trinkets" library, but I'm not entirely sure.

Yeah I removed EMI Loot for now as its not nearly as important as Sync lol. But damn that's a lot of air.


Order updates

I know the WebSockets are still a work in progress, but someone here might know how to answer this: is the 0x WebSocket API only streaming ERC20 to ERC20 order updates? Could I possibly hook into that to stream NFT order events?
Thank you!

Also, is there an ETA for the NFT Swap Websockets? @johnrjj


Mbio apps: Relative abundance listvar variable picker

This special variable picker would be used, for example, in mbio for selecting abundance of some number of species, or later in clinepi selecting multiple TAC variables, as values in one variable. See #302 for a more detailed description and slides 19-20 for an example.
In the short term, we'd use this picker in the relative abundance boxplot and scatterplot.
Open questions

What does the picker look like? The mockups get us started but are still confusing.
How does it interact (or not) with the preconfigured ranking methods?

think for mbio has decided to offer only ranked abundances in the abundance app, rather than a user defined set of taxa. that i think moves this concern to a later phase, for the pass app and no longer specific to mbio. removing the mbio phase 1 milestone.


Extends "spo list get" command with VersionPolicies. Closes #5983

Extends spo list get command with VersionPolicies navigation property.
Closes #5983

Thank you, we'll try to review it ASAP!

PR merged succesfully. Thanks for your contribution.


Add type definition

Please, we need this very strongly

Any updates on this?

@Yawmm  I'll be picking this up
Need more time, I can raise PR at around April last week

Alright awesome, really love the library!

Any update on this?

@HelixHEX Will be releasing a new version later this week with type definitions.

Hey @ajayesivan & @HelixHEX any news about the new version with typedefs ? 😇

temporary support with:
// remixicon.d.ts

declare module "react-native-remix-icon" {
  declare const RemixIcon: React.FC<RemixIconProps>;

  declare interface RemixIconProps {
    name: string;
    size?: number | string;
    color?: string;
    [key: string]: any;
  }

  export default RemixIcon;
}


Use the network for detection only

is there a simple way to take a known bounding box and input it to the net and get the classification result only for that bounding box?. is there a simple way to convert it to the roi input?

If you know where is your bbox, you just can use a VGG16 network for example

but then I will need to resize the image
and I want to use this network,there is no other way?


Empty nullable integer columns break

If there is a nullable integer column, and you leave it empty on submit, sacrud tries to put '' (empty string) into it, thus giving an exception.

I fixed it in 0.2.1 version.


CVE-2022-26336 in apache poi 4.1.2

from https://github.com/admin-shell-io/java-serializer/issues/67:
The org.apache.poi:poi dependency has a CVE. Please check the below screenshot for details:

This should be automatically resolved after we've enabled dependabot or similar (cf. https://github.com/eclipse-aas4j/aas4j/issues/35)


Toggling visibility on hamburger menu

It would be nice to have a visibility open on hamburger menu items to hide from people that are not suppose to see instead of just it being disabled for certain users.

I've started working on it and have a question: should Visibility property be added on HamburgerMenuItem or HamburgerMenuItemBase class? In the first case it won't be possible to hide or collapse a menu separator because HamburgerMenuSeparatorItem inherits from HamburgerMenuItemBase. Should the menu separator also be able to be hidden?

Hi @bNobo
Consider this:
Item1
-----------
Item2
-----------
Item3

If you hide Item2 you would have two seperators. So in that case you must be able to hide the seperator as well.
That said please keep in mind that the primary goal is to get v2.0.0 released. this feature might get implemented later.
Happy coding
Tim


Fixed use-after-free in HTTP headers (MLDB-1218)

Fixes Valgrind failures when loading files from http.

+1

(Build failure is known transient failure).


Hide alert setting when sensor doesn't exist

Description:
Some RuuviTags don't have specific sensors.
Please hide Alert in Sensor Settings if sensor doesn't exist.

QA passed


🎉 Announcement: Looking for a maintainer 🎉

Hey!
Based on what I see on the NPM website, there are quite a few users of html-to-react:

Is anyone interested in taking over the maintenance for this package? I have taken on some new responsibilities that keep me busy.
Please let me know.
Thanks,
Mike

I can take over maintenance.

Awesome, thanks @aknuds1! I've made you a collaborator. Happy to discuss any questions you may have.

To close the loop, html-to-react now lives at https://github.com/aknuds1/html-to-react. Thanks @aknuds1 for all your help so far and for taking over the project.


debug/buildinfo: over allocation in Read through xcoff.NewFile

What version of Go are you using (go version)?

$ go version
go version go1.19 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/root/.go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/root/.go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/src/ngolo-fuzzing/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2481516251=/tmp/go-build -gno-record-gcc-switches"

What did you do?
Run https://go.dev/play/p/E57CwnDHHDK?v=gotip
What did you expect to see?
The program finishing and printing Hello, without allocating too much
What did you see instead?
Running go tool pprof --sample_index=alloc_space toto.heap and then top I see
      flat  flat%   sum%        cum   cum%
    6912MB 99.90% 99.90%     6912MB 99.90%  internal/xcoff.NewFile

Found by https://github.com/catenacyber/ngolo-fuzzing with oss-fuzz :
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56326

CC @golang/compiler, @ianlancetaylor.


forge command runs without package naming

While using the "forge" command I didn't specify a name for the new created Poseidon package. No error occurred and the files (.bim, .fam, .bed, .janno, .bib) were created anyhow, but without being named. The package was called "" in the .yml file.

Thanks for reporting that - it should indeed be impossible to create unnamed packages :+1:

I stumbled upon the same issue, but in a slightly different fashion: in trident forge, I did specify a name for the new package, with full path and everything, but erroneously with a '/' in the end. This produced the new folder I asked for, and an unnamed package within it as above (iirc).
Fwiw, I wonder what would have happened, had I similarly typoed an earlier trident init command. A symmetric possibility of error may exist there.

Ugh... I see. So we should i) check that the name is not empty, and ii) check that it results in valid filenames... thanks for reporting.


feat: support class style generator

Checklist

[x] npm test passes
[x] tests and/or benchmarks are included
[ ] documentation is changed or added
[ ] commit message follows commit guidelines

Affected core subsystem(s)

Description of change

Codecov Report

Merging #80 (93ac372) into master (5bfc7a6) will increase coverage by 0.94%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master       #80      +/-   ##
===========================================
+ Coverage   99.05%   100.00%   +0.94%
===========================================
  Files          16         1      -15
  Lines         741        24     -717
  Branches      126         5     -121
===========================================
- Hits          734        24     -710
+ Misses          7         0       -7

Impacted Files
Coverage Δ

register.js
100.00% <0.00%> (ø)

src/generators/auto.ts

src/generators/class.ts

src/generators/config.ts

src/generators/custom.ts

src/generators/egg.ts

src/generators/extend.ts

src/generators/function.ts

src/generators/object.ts

src/generators/plugin.ts

... and 6 more

Continue to review full report at Codecov.

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


DO NOT MERGE: feat: kysely/helpers/sqlite

I have tested the queries in the comments—those SQLite queries work as intended.
Unfortunately, I could not use the PostgreSQL helpers due to Parse error: no such column: agg.  It seems that SQLite still expects column names.
I have also modified the kysely functions to match the SQLite queries.
It should work in theory, but I don’t know how to test it.  I also found that the MySQL functions I based my PR from do not have tests either.
Anyway, if someone could verify it works as intended, that would be awesome!
The schema used in the examples is:
CREATE TABLE IF NOT EXISTS "person" ("id" integer primary key, "first_name" text not null, "last_name" text, "gender" text not null, "created_at" text default CURRENT_TIMESTAMP not null);
CREATE TABLE IF NOT EXISTS "pet" ("id" integer primary key, "name" text not null unique, "owner_id" integer not null references "person" ("id") on delete cascade, "species" text not null, is_favorite boolean);
CREATE INDEX "pet_owner_id_index" on "pet" ("owner_id");

with inserts like:
insert into person (id, first_name, last_name, gender, created_at) values (2, 'joe', 'joel', 'j', '2');
insert into person (id, first_name, last_name, gender, created_at) values (3, 'sue', 'suel', 's', '3');
insert into pet (id, name, owner_id, species, is_favorite) values (1, 'jill', 2, 'j', true);
insert into pet (id, name, owner_id, species, is_favorite) values (2, 'mark', 2, 'm', true);
insert into pet (id, name, owner_id, species) values (3, 'cole', 3, 'c');

Feel free to merge if the json functions work as intended 👍

Nice job, Thank you! Both postgres and mysql helpers are tested here. You can add sqlite tests to the same suite.

You also need to add new export from kysely/helpers/sqlite to package.json. See the section with
    "./helpers/mysql": {
      "import": "./dist/esm/helpers/mysql.js",
      "require": "./dist/cjs/helpers/mysql.js",
      "default": "./dist/cjs/helpers/mysql.js"
    }

@igalklebanov how do I concat in sqlite with kysely?  I saw in another comment in another test that:
return sql`json_object(${sql.join(
    Object.keys(obj).flatMap((k) => [sql.lit(k), obj[k]])
  )})`

should return the concatenation operator || in postgres (and I assume SQLite), but that doesn’t seem to be the case.  I am receiving the error:
SqliteError: no such function: concat

@igalklebanov how do I concat in sqlite with kysely? I saw in another comment in another test that:
return sql`json_object(${sql.join(
    Object.keys(obj).flatMap((k) => [sql.lit(k), obj[k]])
  )})`

should return the concatenation operator || in postgres (and I assume SQLite), but that doesn’t seem to be the case. I am receiving the error:
SqliteError: no such function: concat

The code you provided has nothing to do with concatenation. That SQL snippet should produce
json_object('foo', some_expression, 'bar', some_other_expression, ...)

There's no concatenation anywhere, unless one of the expressions has concatenation in them.
I'm guessing the comment you referred to jus the || doesn't exist on mysql. But it does on postgres and sqlite.

I'm guessing the comment you referred to just meant the || operator doesn't exist on mysql. But it does on postgres and sqlite. Change the test so that || is used on sqlite instead of the concat function.

Replacing the concat function
https://github.com/kysely-org/kysely/blob/5d53ac45316497d29b7c3a63b5b30c7c158f93b8/test/node/src/json.test.ts#L175
with
  full: sql<string>`first_name || ' ' || last_name`

Throws a type error at build
TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null

I assume, because of this https://github.com/WiseLibs/better-sqlite3/issues/907#issuecomment-1324547474
It does work in postgres and mysql (as long as PIPES_AS_CONCAT is set).
What's the best way to approach this for sqlite?

That error makes no sense. That sql isn't binding anything. it's a raw SQL snippet. My guess is that your implementation of jsonBuildObject tries to send the whole sql instance as a parameter for some reason.

The next problem is that sqlite doesn't parse JSON (since there's no JSON datatype). You need to add this
      if (dialect === 'sqlite') {
        db = db.withPlugin(new ParseJSONResultsPlugin())
      }

in the before block. But it seems that ParseJSONResultsPlugin only parses the top level objects. In the nested relations, the data is doubly, triply etc. encoded json and the plugin would need to do the parsing recursively. @igalklebanov

@koskimas yeah, this was good enough for the JSON traversal tests. Maube add an optional flag to recurse?

I can fix the plugin. I don't think there's any need for a flag.

The plugin is now fixed.

Good catch, fixed that typo @koskimas 👍

After the small comment change, I think this is good to go!

Howdy yall @koskimas the sqlite pacakge doesn't appear to be in "kysely": "^0.26.1", ?

@ncrmro follow https://github.com/kysely-org/kysely/issues/628 for updates


keyboard shortcut ctrl+/ wont work in version 1.7.1, need keyboard shortcut for comment

Describe the bug
keyboard shortcut ctrl+/ wont work, need keyboard shortcut for comment
To Reproduce
Steps to reproduce the behavior:
simply type some commands and comment using ctrl+/
it wont work.
Expected behavior
it must comment, comment worked on previous version 1.7.0
Environment (you can view the current version under Settings):

OS: windows
Version 10
surrealist: 1.7.1

Thanks for reporting this issue! My apologies for the inconvenience. I'm currently away however I'll look into this issue as soon as I'm available again in roughly a week to two weeks from now.
If these issues are too distracting it should be safe to run an older version of Surrealist until then

kindly check the commit, whether all your changes are committed or not, because version 1.7.1
https://github.com/StarlaneStudios/Surrealist/commit/6147152857193e422d1d02b03659fcbf5349ba77
has only version change in package.json.
https://github.com/StarlaneStudios/Surrealist/commit/c13146fd8b6e436060c4c3f08a781c64e0ad8485 is the commit for the previous version 1.7.0.
so, kindly check it.

This is likely a logical issue unrelated to the versioning. I already have a few ideas on what could have caused this

This issue should be fixed in the next release, together with significant improvements to the error highlighting

Hey there! I wanted to update this issue with some new information. We are still unaware of what is causing ctrl + / to not work. However a temporary workaround, at least in the newest release v1.7.2, seems to be using ctrl + ' instead.

Ok. Thank you,


Improvements

This issue is used to keep track of possible ideas to enhance the library. If any would be implemented, also create a dedicated issue
Exploit move semantic
Constructor:
Matrix(Matrix && m) noexcept
Assignment:
operator=(Matrix && m) noexcept
Exploit move semantics for faster operation. It is necessary to avoid exceptions (noexcept) in order to not leave m in an invalid state (some compilers require it).
Can combine move constructor and copy assignment operator:
operator=(Matrix m){
    // copy stuff using move semantics, something like
    std::swap(this->v, m.v);
}

This way if m is a movable object, when passed to the operator the move constructor is used, making the process faster. If the m is not movable, the copy constructor is called instead, and then the move semantic is used. This last process is faster than using a normal copy assignment.
It is important to implement the move semantic in this library because one might want to manage large matrices, thus moving would be more efficient.
See #18

Use std::initializer_list for initialization
Signature:
Matrix(int r, int c, std::initializer_list<double> list)
It is possible to access elements of list using iterators


Remove stream usage from JoinPlanBuilder for correlated subqueries

Summary of the changes / Why this improves CrateDB
This is a follow up to https://github.com/crate/crate/commit/9981eba6df08fab8672ce6e60d7ab81223d93a5b removing the java stream usage.
Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

Is there a concrete reason for doing that with explicit iteration? (Not against it, just asking for the reasoning)

Yes, in general we try to avoid the stream usage, as it contains additional overhead. Streams are lazy evaluated, and this leads to additional object creation.


Add title and subtitle in the root-level spec

The title and subtitle should be displayed on top of the tracks.

Use plugin text-track?
https://github.com/higlass/higlass-text#readme


Training time  is huge

the model training time is very very huge, the training iteration itself is fast, however the training load the whole data while training unlike detectron2, the time i needed to train model in detectron2 was 3 days for 300 000 iterations, now i need 3 days for 50 000 iterations.
while training i see the script load the whole training data all again and again which consume time.
can i speed up the training process?
thanks in advance.

@AhmedHessuin could you further describe "load the whole training data all again and again", have you seen any error messages? (D2Go might keep retrying loading the data)

@wat3rBro  the data loading function is called over and over to load the data.
for example i have 300 000 image in 4 folders the custom data loading function open each folder and load the training data from it
while training:
i see the data loading function process again, and again, which mean it load the whole data like the start of the training,
no error message seen except some images contain no text file and i am handling it in my data loading function.

@wat3rBro
DatasetCatalog.register("data_" + name, lambda d=d: get_docs_dicts(data_dir+"/" + d))
get_docs_dicts

get_docs_dicts should only been called once when creating the data loader, is it possible that the data loader is created many many times?

i believe it's getting calls many many time.
i don't know why.

@wat3rBro
sample of my script
print("generate_data")
balloon_metadata,dataset_dicts=get_data_ready_id()
# print("visualize data")
# visualize(dataset_dicts)
print("train")
cfg,runner,pytorch_model=train_id()

def train_id():
    cfg, runner = prepare_for_launch_id()
    print(cfg)
    model = runner.build_model(cfg)
    runner.do_train(cfg, model, resume=False)
    metrics = runner.do_test(cfg, model)
    print("*" * 20)
    print(metrics)
    print("*" * 20)
    model.eval()
    return cfg,runner,model

@wat3rBro  it call the  get_docs_dicts over and over
    data_dir = '/media/machine1/992317707A58AEB3/EXPD2GO/d2go'

    for d in ["train_3"]:
        name="train"
        print("=============>","data_"+name)
        DatasetCatalog.register("data_" + name, lambda d=d: get_docs_dicts(data_dir+"/" + d))

in terminal
front
generating
back
generating
front_new
generating
back_new
generating
front
generating
back
generating
front_new
generating

till there is a leakage in my memory and train stops

ok, after reading the script very good, i found out that you pass the data loading function to the model over and over while training


Generalized choice

I'm trying to model random number generators, which can be done by "generalized choice" mentioned in Section 5.3 of Introduction to the ISO Specification Language LOTOS.
I'm looking for documentations in TorXakis, and only found ## for finite processes: https://github.com/TorXakis/TorXakis/wiki/Choice_Operator
Is generalized choice implemented in TorXakis? Is Wiki the right place I should search for documentations?

Looking at your example code, have you considered
Data ? x [[(0 <= x) /\ (x <= 12345)]]?

Passes parser but doesn't step:
PROCDEF rand [Data :: Int] () ::=
        Data ? x -- with or without [[(0 <= x) /\ (x <= 12345)]]
ENDDEF

TXS >>  input files parsed:
TXS >>  ["q.txs"]
TXS >> stepper Model
TXS >>  unfoldCTbranch: Not unique
TXS >>  Stepper started
TXS >> stepper 10
TXS >>  NoOp : No action

The ## approach could step.

Another attempt:
PROCDEF rand [Data :: Int] (x :: Int) ::=
        Data ! x
     ## rand [Data] (x + 1)
ENDDEF

stepper Model does not return, process txsserver is busy.

The another attempt is an infinite model: causing, as observed, an infinite unfolding in txsserver.

Torxakis assumes (for efficient calculation/limits of problem solvers) that the value communicated over hidden channels must be uniquely solvable. Your model violates this assumption.
When I have access to a pc, I will add a model that does what you want when the range of values is limited, which seems to be the case  in your example where the range is from 0 up to 9.

Today at the lab, so I could also access the article ;-)
TorXakis does not support generalized choice as specified by the Lotos paper.
TorXakis support however at least three alternatives:

using dynamic process creation

PROCDEF q [In :: Int; Out :: Bool] (data :: Int) ::=
        In  ? request
    >-> Out ! request == data
    >-> q [In, Out] (data)
ENDDEF

PROCDEF qs [In :: Int; Out :: Bool] (nr :: Int) ::=
        q [In,Out] (nr)
    ##
        [[nr >= 0]] =>> qs[In,Out] (nr-1)
ENDDEF

PROCDEF server [In :: Int; Out :: Bool] () ::=
    qs[In,Out](9)
ENDDEF

See for the whole file issue952.alt1.txt
Note: that LPE and LpeOps don't support dynamic process creation.

Using a list of different numbers
When request == data is False we don't learn the value of data, we only learn a value that is different to data.

PROCDEF q [In :: Int; Out :: Bool] (data :: Int) ::=
        In  ? request
    >-> Out ! request == data
    >-> q [In, Out] (data)
ENDDEF

TYPEDEF List ::= Nil | Cstr { head :: Int; tail :: List } ENDDEF

FUNCDEF in ( i :: Int; l :: List ) :: Bool ::=
IF isNil (l) THEN False
             ELSE IF head (l) == i THEN True
                                   ELSE in (i, tail(l))
                  FI
FI
ENDDEF

PROCDEF unknown [In :: Int; Out :: Bool] (ds :: List) ::=
        In  ? request
    >-> (  [[ in (request, ds) ]] =>> Out ! False >-> unknown [In, Out] (ds)
        ## [[not (in (request, ds)) ]] =>> (  Out ! True >-> q [In, Out](request)
                                           ## Out ! False >-> unknown [In, Out] (Cstr(request, ds))
                                           )
        )
ENDDEF

PROCDEF server [In :: Int; Out :: Bool] () ::=
    unknown[In,Out](Nil)
ENDDEF

See for the whole file issue952.alt2.txt

Using a test interface

PROCDEF q [In :: Int; Out :: Bool] (data :: Int) ::=
        In  ? request
    >-> Out ! request == data
    >-> q [In, Out] (data)
ENDDEF

PROCDEF server [In :: Int; Test :: Int; Out :: Bool] () ::=
  Test ? data >-> q [In, Out](data)
ENDDEF

CHANDEF ChanDefs ::=
   In  :: Int;
   Out :: Bool;
   Test :: Int
ENDDEF

MODELDEF Model ::=
  CHAN IN  In
  CHAN OUT Out, Test

  BEHAVIOUR server [In, Test, Out] ()
ENDDEF

For the whole file see issue952.alt3.txt
I hope this helps!
If so you can close the issue.

Thanks for the examples! Let me check my understanding:

Supports a finite range of random values, the tester searches for a process within this range that accepts the SUT.
Defines the model from a tester's perspective, modelling the clients' knowledge of the SUT.
Test is specified as a channel provided by SUT. Servers not sending data to Test violate the model.

If so, that solves my question!


encoding not working in Appveyor

The encoding issues in Appveyor have not been resolved by @andrew2net's switch to using UFT-8 in spec; they seem to have gotten worse, in fact. @CAMOBAP795, @andrew2net, I leave this to you two to address.

In progress

Done


Add a note about being able to re-generate public keys purely off YubiKey

Turns out that if you have lost your public keys, you can re-generate them off YubiKey.
https://www.nicksherlock.com/2021/08/recovering-lost-gpg-public-keys-from-your-yubikey/

@nurupo could you please send a PR adding this resource?


IRUP add request

@lpelet I have to close this request without merging, because you requested to add a non-existent domain to this repository: Host eleve-irup.fr not found: 3(NXDOMAIN) Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for your understanding!


Same Project with Obj- C

Hello,
Firstly thanks, for this tutorial, As I have still not started using swift, can you please create a Obj-C version of the project. It would help many people like me, who are maintaining Obj- C projects.
Thanks
Ranjit

Hello @ranjitk-plackal ,
The objective-c version is added in 90d0c5835f1dcac3154b94fe96a3897dfca56592 revision. Now you can feel free to get familiar with Search Mechanism, enjoy.
Regards,
Eugene

Thanks
On 07-Jan-2015 8:53 pm, "Eugene Mozharovsky"<EMAIL_ADDRESS>wrote:

Hello @ranjitk-plackal https://github.com/ranjitk-plackal ,
The objective-c version is added in 90d0c58
https://github.com/Mozharovsky/iOS-Demos/commit/90d0c5835f1dcac3154b94fe96a3897dfca56592
revision. Now you can feel free to get familiar with Search Mechanism,
enjoy.
Regards,
Eugene
—
Reply to this email directly or view it on GitHub
https://github.com/Mozharovsky/iOS-Demos/issues/1#issuecomment-69036488.


Document how developers test their own pr and how team do QA test before go production

Describe the task
Have a team agreement on how developers should test their own prs, and support each other for pr review, and check pipeline status, test in dev. And have a team agreement on how our team do QA test before go production.
Acceptance Criteria

[ ] Document developers' test process for their prs
[ ] Document team QA process
[ ] Include in developer guide

Additional context

Add any other context about the task here.
Or here

Developers should take the responsibility of their ticket:

Understand the requirement
Discuss with team members if there is any concern or question about the implementation, design, UI etc.
Test the changes locally

Test the changes related to the ticket, both success and error cases
Make sure it aligns with the design
If in any case we feel the scope of the ticket increases, could always create a follow up ticket to address. But for the current ticket, we can do adjustment based on the situation, but the changes still need to be good enough to go to production, and won't confuse our users.
Test the rest of the application, make sure the current change won't impact the existing functionality

Create the pr for review
Check Sonar cloud analysis
Check pipeline running for pr opening
Once pr is approved, merge the pr, check the pipeline running for dev deployment
Test in dev environment

Test the changes related to the ticket, both success and error cases
Test the rest of the application, make sure the current change won't impact the existing functionality

Developer review process:

Code review
Test locally if need

Team review process for single ticket:

Whenever a ticket move to QA column

one developer (normally pr reviewer) needs to check the dev environment
one non-technical team member needs to check the dev environment

Team review process for prod release:

If team decided to publish a release in prod environment, deploy the latest code to TEST environment

at least one developer needs to check the TEST environment
PO (I feel PO should check it before go to prod? but maybe we could have another person) needs to check the TEST environment

Once we done the prod release

at least one developer needs to check the PROD environment

geo restriction for doing test in DEV env

Todo:

[ ] rename the title so it aligns the Zenhub board
[ ] add documentation for which pipeline needs to check at each step (pr open, pr merge, release)
[ ] what we do for unit, integrate test in code


nativeCompile fails with too long command line on Windows

When there's a lot of jar files in the path, the nativeCompile task fails on Windows with log file containing:
Output
======
The command line is too long.

This is because all the jars are listed in the classpath given to native-image.cmd and Windows command prompt is very limiting.
A recommended fix would be to use a parameter file, with @some-temp-file-path argument.

Duplicate of https://github.com/gluonhq/substrate/issues/597


docs: fix typo in ./collections/_posts/2023-9-2-layer5-badge-programm…

Description
This PR fixes typo aand -> and
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Thanks for raising PR, Let's discuss this in the Website call today at 5:30 PM IST.
Please add this as your agenda in Docs


Incorrect cursor location after undo

After undo, the cursor should be returned to where it was just before that change was made.  However, this is not the case - the cursor is moved to its location after the previous edit.
I think the cause of this is that there's some confusion over what the Paths in Dag::root_history are supposed to signify - in a snapshot (&'arena Node, Path), the Path should be what Dag::current_cursor_path should be set to when that snapshot is loaded in the undo history, but it's too late at night for me to puzzle this out.
Ideally, we'd store the history as an alternating list of Paths and Roots (always starting and ending with a Path) and then there'd be no ambiguity over what the Paths mean.  Such a datatype would be an interesting but hard project with a fair amount of unsafe.

Duplicate of #77, created by accident.

Duplicate of #77, created by accident.


uvd- and xyz-coordinates

Hi @Blueprintf,
thanks for sharing your great work.
While trying to understand your code, I noticed that you use the uvd-coordinates and not the xyz-coordinates as input for your model https://github.com/Blueprintf/pointlstm-gesture-recognition-pytorch/blob/4f65853aa6e57a30b4620830f021dfcf6ab442e5/experiments/models/motion.py#L42 Did I get that right? If yes, is there a specific motivation to do that?
Thanks

Hi @alexbgl,
Yes, we adopt uvd-coordinates in our final version. We evaluate our methods on public datasets, which did not provide the camera intrinsic parameters, and try both coordinates in our experiments. We adopt the default parameters and as you can see from Figure 1 in our supplemental material, the transformed point clouds are a bit distorted. The transformed point clouds (xyz) also lead to worse performance (about 1~2 percent) compared to uvd-coordinates, so we directly adopted the uvd-coordinates. I believe adopting xyz-coordinates will be more robust if the accurate camera intrinsic parameters can be obtained.
Hope can help you~

Yes, that helps. Thank youe for your quick reply.


Add deps.get to installation instructions

When starting from a fresh copy of the source tree, it's necessary
to run the mix deps.get task.

Thank you :)


Passing Values to Functions with Arguments?

Challenge Passing Values to Functions with Arguments has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

// Example
function ourFunctionWithArgs(a, b) {
  console.log(a - b);
}
ourFunctionWithArgs(10, 5); // Outputs 5

// Only change code below this line.

function functionWithArgs(a, b) {
  console.log(a + b);
}
functionWithArgs(1, 2);

I ran this code in this challenge and it sais that both of the challenges (1 to result in 3 and the other to result in 16) and without passing a second function for 16, it still passed - any chance of a clarification on instructions a bit, these ones are nasty

I don't see anything wrong with this code, @YoungLeo14

The point is that its not the code thats the problem, rather the code "completes" outputting 3 AND 16 @codehakase

You mean it only returns 3 and 16 ?

I just changed the arguments passed, and it logs the correct values

@YoungLeo14

without passing a second function for 16, it still passed

If you mean that with the code you wrote you still complete the functionWithArgs(7,9), well... that's normal.
Our test run some function with the code you wrote and look for the output.
That's the standard behavior.
In this case the page will run a function functionWithArgs and will assign two arguments: 7,9 when you click the run button without the need for you to specify that.
writing in your code:
functionWithArgs(7, 9);

Is a way for you to test it and see the output in the console; useful in later and more complex functions :)


First Aid Kit

What are the necessary basic medicine to include in a first aid kit for a repair cafe?
Let's contribute please.

hydrogen peroxide
panadol
Bandage
Cotton wool
Apair of scisor.

disinfectant
Ointment gel
band-aid/patches


Maybe something wrong with affine paramter in argparse?

First thanks for this work. I just generated some samples using this project with celebA dataset. However, I felt somehow confused when i tried to debug it. As you can see in the first pic, it shows that the default paramter for affine coupling is not correct. It seems that affine paramter keeps false even the default value is true( in variable, watch mini window and also for the cursor).

I think maybe something wrong with argparse, which leads to the default false value for coupling layer.

sorry, i am just confused on the store_true.