⚠ Issue. The Astro redirect does not work?

I have setup a working example of this recipe here.
https://github.com/marcitqualab/astro-forms/blob/main/htmlForm/src/components/ApiForm.astro
The project is open and ready to test by anyone, it uses dev container to facilitate the dev env setup.
https://github.com/marcitqualab/astro-forms
When I run this example and the form does not have errors then the code attempts to do run the line
return Astro.redirect("/login");

This redirect does not work and this error message appears in the terminal.
The response has already been sent to the browser and cannot be altered.

Has something changed in Astro?

Hi @marcitqualab,
By "this recipe", I guess you are referring to Build HTML forms in Astro pages.
Your reproduction has a slight difference which is causing the problem: the recipe handle the form validation in an Astro page and not in a component! If you move, all the code from components/ApiForm.astro to pages/index.astro, you'll see the redirection now works.
I don't know where this limitation comes from, but it seems to be the expected behavior. There is a reference for this error indicating where the problem comes from:

Making changes to the response, such as setting headers, cookies, and the status code cannot be done outside of page components.

And a redirect is a change in the response... 😉

Hello Armand,
Yes, the error description did not help much and it is a bit confusing.
You are correct, that was the problem. I have refactored the ApiForm into the index page and it works.
However, I might be missing something here.
I am not really sure what is the point if I can not create form components. This means that I need to duplicate the form code to any page where I want the same form? Let's say it is a Call to Action form.
Also I will have to make every page with a form a dynamic page, when I only need the component to be dynamic.
I was expecting to be able to inject the same form component into any page.
Maybe for that I need to implement a component with a framework like React or Vue?

I think this recipe is designed for one time use like a contact form only accessible in a contact page.
In your case, you might be interested in the other recipe: Build forms with API routes which indeed involves UI Framework like React or Vue.
But if you don't want to use React/Vue just for that, you can also build a reusable component for your form using an API route and an Astro component.
In the component, you will need a client-side script to listen for the submit event and forward the data to your API route. You can also use a web component for that which can be more convenient if you want to display errors coming from the API route.
If you need a redirection, you can also handle that in your API route!

Perfect many thanks, I'll check it out :-)
On Fri, Sep 27, 2024 at 7:29 PM Armand Philippot @.***>
wrote:

I think this recipe is designed for one time use like a contact form only
accessible in a contact page.
In your case, you might be interested in the other recipe: Build forms
with API routes https://docs.astro.build/en/recipes/build-forms-api/
which indeed involves UI Framework like React or Vue.
But if you don't want to use React/Vue just for that, you can also build a
reusable component for your form using an API route and an Astro component.
In the component, you will need a client-side script
https://docs.astro.build/en/guides/client-side-scripts/#handle-onclick-and-other-events
to listen for the submit event and forward the data to your API route. You
can also use a web component
https://docs.astro.build/en/guides/client-side-scripts/#web-components-with-custom-elements
for that which can be more convenient if you want to display errors coming
from the API route.
If you need a redirection, you can also handle that in your API route
https://docs.astro.build/en/guides/endpoints/#redirects!
—
Reply to this email directly, view it on GitHub
https://github.com/withastro/docs/issues/9493#issuecomment-2378962288,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWKC4A2MALTHCJ5HTACOP3DZYUXQ3AVCNFSM6AAAAABO4MLYXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZYHE3DEMRYHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Closing this as the immediate problem is resolved, and at this moment there doesn't appear to be anything actionable for docs! 🙌


What about Platform::Array?

How do I port Platform::Array to C++/WinRT?

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

ID: 93d6decd-f437-6bf3-1f32-60cbcd2d0016
Version Independent ID: bfbcfa81-2172-1a97-0e67-40d22f5e8b50
Content: Move to C++/WinRT from C++/CX - Windows UWP applications
Content Source: windows-apps-src/cpp-and-winrt-apis/move-to-winrt-from-cx.md
Product: uwp
GitHub Login: @stevewhims
Microsoft Alias: stwhi

Hi, @anhoavu, thanks for raising this issue. I've just made an update to the topic. You can see the new section here: https://docs.microsoft.com/windows/uwp/cpp-and-winrt-apis/move-to-winrt-from-cx#port-platformarray. Please let me know if the topic needs additional info.
Thanks!
~Steve

@stevewhims Thank for the support, Steve. I am trying to see if Platform::Array is interoperable with array_view i.e. if an C++/WinRT AppService sends an array_view to an C++/CX client, would the latter be able to reassemble the data.

Yes, that sounds good. Let's say you declare this (using C++/CX):
double Class1::PassArrayForReading(const Platform::Array<double>^ arr)

Then that's projected into C++/WinRT like this:
template <typename D> double consume_MYNAMESPACE___IClass1PublicNonVirtuals<D>::PassArrayForReading(array_view<double const> arr) const

So you can call it from C++/WinRT like this:
MYNAMESPACE::Class1 c1;
auto sum = c1.PassArrayForReading({ 99.f, 98.f, 97.f }); // or any other way that uses an array_view.

~Steve

Hi, @anhoavu, I'll go ahead and close this issue now since it's been a while, and it feels resolved. Please reopen if I made a mistake in closing. ~Steve


Any plans to update to 3-0-stable?

Just wanted to reach out to see if this project is still on your radar.  I forked but have not been able to figure out how to get this to work.  Specifically, I am able to index my products, but the Algolia searcher is not being used.

I'm not working on a 3-0 shop and therefor don't have plans to upgrade this gem. If I would upgrade I think I'd remove the search logic from Spree (this gem adds a searcher class that powers ransack) and use Algolia's Instasearch.js (https://github.com/algolia/instant-search-demo) instead.

Thanks for the advice @Willianvdv.  I have a lot of experience with instant search, but minimal with spree and searcher classes so I think that's the route I will take.  Thanks!


Support > 2 asset pools

It seems our trade ui config does not currently handle > 2 asset pools well. This will become common with stableswap.
https://app.osmosis.zone/pool/679

Not actually a bug, related to missing ibc asset config


ability to use custom COUCH_HOST

I found this very useful during testing.

something broke, checking...

whoops, forgot to remove the cloudant-based env variables. should be good now

self-+1ing out of necessity

5ddee4e9be4b3fee51483aef50e7ee129ec07d19


Gulp 4: Watch task is executed per each matched file during startup

My versions:
gulp -v
[21:59:43] CLI version 0.4.0
[21:59:43] Local version 4.0.0-alpha.1

I have a watch task to run unit tests defined like this:
gulp.task('unit', function () {
  // piping files to gulp-mocha here
  ...
});

gulp.task('watch:unit', function () {
  gulp.watch(['app/**/*.js', '!app/**/*.spec.js'], gulp.parallel('unit'));
});

The strange behavior I'm seeing now is that when I run the gulp watch:unit task first time it tries to run the unit task for each matched *.js file (see the output below). I don't recall having this issue before.
$ gulp watch:unit
[22:02:20] Using gulpfile ~/projects/web-services/data-api/gulpfile.js
[22:02:20] Starting 'watch:unit'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...

  0 passing (1ms)
  ․
  ․․․[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'parallel'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
[22:02:20] Starting 'unit'...
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
  0 passing (0ms)
․․․․․․․․․․
  7 passing (156ms)
  7 passing (125ms)

We just switched the watcher for chokidar.  Paging @es128

Oops did we forget to set ignoreInitial: true?
I'm still AFK and on my phone, otherwise I'd prepare a quick PR.

PR that should fix this is up. @demisx would be great if you could try it and confirm the issue is resolved on your end.

:+1:  I am confirming that this PR is fixing the reported issues. Thank you for such a quick turnaround!

Fixed!


Accounts.csv has duplicate IDs

But id is different!

Something I've found with this software is, when you delete the rows (by selecting them and pressing delete), the rows are still actually there. Right click on the last couple empty rows and delete them:

Note that this issue will be resolved in the next version as the script will check for blank rows in the csv file and remove them to remedy this mistake being made in the csv file.

thx, it works!


AddCryptographyClient documentation states incorrectly that it adds a KeyClient

Type of issue
Typo
Description
The docs state:

Registers a KeyClient instance with connection options loaded from the provided configuration instance.

But the method adds a CryptographyClient (like the name suggests).
Page URL
https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.azure.keyclientbuilderextensions.addcryptographyclient?view=azure-dotnet&devlangs=csharp&f1url=%3FappId%3DDev17IDEF1%26l%3DEN-US%26k%3Dk(Microsoft.Extensions.Azure.KeyClientBuilderExtensions.AddCryptographyClient%2560%25601)%3Bk(DevLang-csharp)%26rd%3Dtrue
Content source URL
https://github.com/Azure/azure-docs-sdk-dotnet/blob/master/xml/Microsoft.Extensions.Azure/KeyClientBuilderExtensions.xml
Document Version Independent Id
1053cb0e-b8b1-1800-b133-1364f0f5257b
Article author
@azure-sdk
Metadata

ID: 0914cdec-6fdf-9e88-7f46-d76782c0b08d

Hi @ChristophHornung.   Thank you for bringing this to our attention.   We'll get the docs updated to reflect the correct type.

fixed by #45500

Fix has been merged and will publish to MS Learn with the next Key Vault release in early September.


Passing Crossbeam channel into ThreadPoolBuilder

I have a program that passes items to be processed by threads in a thread-pool via the crossbeam-channel crate.
I'm trying to use Rayon's ThreadPool to manage the worker threads.
My problem is that I can't figure out how to pass the channel receiver into the ThreadPoolBuilder's start_handler.
    // Create channels for stream-handler to worker threads.
    let (sender, receiver) = crossbeam_channel::bounded::<String>(CHANNEL_CAPACITY);

    // Start worker thread-pool.
    let _pool = rayon::ThreadPoolBuilder::new()
        .num_threads(NUM_THREADS)
        .thread_name(|index| format!("worker-thread-{}", index))
        .start_handler(|_| {
            let w_receiver = receiver.clone();
            worker_func(w_receiver);
        })
        .build()
        .expect("Failed to instantiate thread-pool.");

error[E0373]: closure may outlive the current function, but it borrows `receiver`, which is owned by the current function
  --> src/server.rs:34:24
   |
34 |         .start_handler(|_| {
   |                        ^^^ may outlive borrowed value `receiver`
35 |             let w_receiver = receiver.clone();
   |                              -------- `receiver` is borrowed here
   |
note: function requires argument type to outlive `'static`
  --> src/server.rs:31:17
   |
31 |       let _pool = rayon::ThreadPoolBuilder::new()
   |  _________________^
32 | |         .num_threads(NUM_THREADS)
33 | |         .thread_name(|index| format!("worker-thread-{}", index))
34 | |         .start_handler(|_| {
...  |
37 | |             worker_func(w_receiver);
38 | |         })
   | |__________^
help: to force the closure to take ownership of `receiver` (and any other referenced variables), use the `move` keyword
   |
34 |         .start_handler(move |_| {
   |                        ^^^^^^^^

Now, I know why what I'm trying to do will not work.
But I don't know how to do it correctly.
How can I pass something like this channel or an Arc into my worker threads?

@stjepang, that does work.
I was under the impression that if I move'd the variable into the closure, then the first thread to spawn would take ownership of the receiver and subsequent threads would not be able to start.
I guess I don't understand how the start_handler works.
Thanks!

The move keyword only changes how values are captured, so they are owned in the closure environment rather than referenced (with some lifetime). But if the closure body only uses those values by reference, it will still implement Fn that can be shared and called multiple times.

Rayon doesn't restart its threads, but it does guard for panic safety. Calls like install, join, and scope will propagate panics to the caller, allowing the pool to continue to other tasks. Unscoped spawn will call the panic_handler if set, otherwise abort.
I suppose you could use that handler to spawn a new channel listener. But if you've got all threads waiting on a channel, then they won't be participating in task-stealing, which defeats most of the point of rayon over simpler thread pools. I'm suggesting that instead of the channel, you could use direct spawns for each of your items, and rayon can spread that work around.
(An actual crash in a thread will take down the whole process, which rayon can't help you with.)


feat: Increase visibility of printKeysAndValues() method

Description
This PR makes printKeysAndValues() public so we can use it anywhere.
Why this needs to be changed:
I have a use case where I need to display the contents of the $options property in a command file.
It's easier to reuse the existing printKeysAndValues() than make a new function with similar behavior. This will help us show more details in our commands.
For example: if you type spark optimize -h or just some random stuff like spark optimize asdf, it'll either show you all the possible options or tell you there's a problem and then show you all the options anyway.
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[x] User guide updated
[x] Conforms to style guide

@kenjis so, this PR doesn't need a test?

Yes, it needs test code.
All public methods should be tested unless it is impossible to write test code.
Test code is kind of documentation. It shows how to use the method clearly.

The method seems to be for only promptByKey().
Keys are surrounded by [ ] and are green.
It is not very versatile and maybe should not be made public.

If so, i think we should create a new one function to achive this purpose. i believe it very useful to improve our command.
Especially when we have a lot of options, implementing --help or -h flags would significantly enhance user experience and efficiency.

--help is already implemented.
$ ./spark optimize --help

CodeIgniter v4.5.4 Command Line Tool - Server Time: 2024-07-31 20:57:11 UTC+00:00

Usage:
  optimize

Description:
  Optimize for production.

Hha, shame on me. I didn't expect that to exist! 😅
Thanks for letting me know.


Bug: Error Handling in Deployment Template

📜 Description
An optional check is required since upon failure of the preceding api calls can return response objects without the result property field.
Users will get TypeError: Cannot read properties of undefined (reading 'isLockConfigError')
👟 Reproduction steps
If the while saving the deployment template the fetch api calls fail we will get a TypeError.
👍 Expected behavior
No TypeError (No crash)
👎 Actual Behavior
TypeError (crash) and a ticket on sentry
☸ Kubernetes version
NaN
Cloud provider
NaN
🌍 Browser
Chrome
🧱 Your Environment
Chrome: 120.0 Linux
✅ Proposed Solution
Add an optional chaining check
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Potential duplicates:

[#4709] Bug: Error Handling in CI Pipeline (70%)

Potential duplicates:

[#4709] Bug: Error Handling in CI Pipeline (70%)

Potential duplicates:

[#4709] Bug: Error Handling in CI Pipeline (70%)

Potential duplicates:

[#4712] Bug: Error Handling in Bulk Edit (75%)

[#4709] Bug: Error Handling in CI Pipeline (70%)


Insert comma when adding to export block

Given:
libs/index.js
import Foo from './foo';

export {
  Foo
}

the following command
mantra g collections bar

changes the file into:
import Foo from './foo';
import bar from './bar';

export {
  Foo // Syntax error (need comma)
  bar
}

Also note that bar must be capitalized to follow the convention.

Fixed at 95c86d789ef97533fd92ef9d0d84d54b27321389, d1803dc26fa4bf4e5feb47d1a318b3e182aa324c


Missing Remove this widget case and wrongly removing const

Repro:
import 'package:flutter/material.dart';

Widget f() {
  return const Center(
    child: Scaffold(
      body: Column(
        children: [
          Text('Hello World!'),
        ],
      ),
    ),
  );
}

Wrongs:

If you remove Text the option to Remove this widget is gone from Column
At Center you have the option to Remove this widget but it does remove const

If you remove Text the option to Remove this widget is gone from Column

How often does this situation arise? I wouldn't think it happens very often, so it doesn't seem like a high priority issue, but if you know differently ...
What should the result be of removing Column in that case? I ask because as a general principle we don't support refactorings / assists when they would produce diagnostics that didn't exist before. Removing Column seems like it would have that characteristic, which probably explains why we don't support it.

At Center you have the option to Remove this widget but it does remove const

That seems like a clear bug.

With this you also can't remove the Text:
Center(
  child: Text(''),
)

What should the result be of removing Column in that case?

Or the Text in this case.
I would suggest the assist to look if the parameter is positional (not optional) or required to decide this and then if it can be safely removed, simply remove the full parameter.

How often does this situation arise?

I'm not sure. I do get to this some of the time when I have custom widgets in different places on my screen and I'd like to remove it from one of those places.

I wouldn't think it happens very often, so it doesn't seem like a high priority issue

I do agree this is definitely not a high-priority issue. I just think it would be nice to have the assist do this for us. Some of the time there can be lots of inner parameters and this would lessen the job of selecting the full range of lines.

I just think it would be nice to have the assist do this for us.

I agree, but we need to focus on the higher priority issues first.


Entities and devices are getting mixed when there are more than one main module linked to account

Hi, huge thanks for forking this project and taking care of it !!!
I have setup with dual L8 modules (one is for ground floor and the second for upper one). During setup, the integration discovers both modules and allow for puling info from them. But the entities are getting mixed between modules. For example:

only one module shows the battery sensors for controllers.

I have a single outside temp sensor connected to ground floor L8 module (called "Dol"), but the integration shows it in both hubs. The other one shows constant -200 deg C.

I believe somehow the IDs from one hub are mixed with IDs from the other

For example above GarderobaD -> is room downstairs connected to "Dol" hub, but the sensor names jasiek_temperature, jasiek_battery are mixed with the upper floor room called "jasiek" ("Gora" hub)

Not sure what logs (and how) i could gather to help narrowing this problem

Ok, looks like device naming is not unique enough.
So first of all, please use the newly released version 2 from official, upstream repo: https://github.com/mariusz-ostoja-swierczynski/tech-controllers
I will close the issue here, and please open again over there.
Enable debug logs in home assistant:

remove the hubs, add again. Disable debug logs and attach in the issue.
And ideally also capture json response from emodul: https://github.com/anarion80/tech/issues/5#issuecomment-1999394111

done


'$0 Service Fees' accordion does not open again once is closed

In the web site's home page, when looking at the 'For Free. No Risks' section, if you close the '$0 Service Fees' accordion by opening another one, you are not able to open it again.
Note: the chrome's console shows a js error when clicking these accordions:
TypeError: undefined is not a function

Would it be accepted if I add UI-Bootstrap by AngularUI in order to fix accordions issues?


Added log to file

Hey, some quick & dirty file logging functionality was recently discussed here:
https://github.com/andrejsstepanovs/kint/commit/fabefe26e84aa61fb951f6de2d15d5b6b9a815df#commitcomment-11426012

Since I will not merge Magento-specific code, nor deprecated code, I am closing this.


⚠ Bofrost.es has degraded performance

In 63aec0e, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1571 ms

Resolved: Bofrost.es performance has improved in f2a5959 after 14 minutes.


WIP TextField prefix/suffix events

Description
In both Material and Cupertino, taps on a prefix or suffix in a text field are received by the text field itself as well as the prefix/suffix.  This causes unexpected behavior when a button is in the prefix/suffix or even exceptions when clearing text.
The root cause of this problem is TextSelectionGestureDetector, which allows listening to all events, not just events given to it by the gesture arena.  This is necessary, however, because it needs to listen to gestures that happen on top of the selection handles.
Cupertino Solution
CupertinoTextField already solves this problem for its built-in clear button.  It uses a GlobalKey to check if a tap hits the clear button and ignores the tap if so.  I've taken the same approach to solve this for prefix/suffix.
I added two parameters to enable this solution.  Here is a typical use case:
CupertinoTextField(
  prefix: IconButton(...),
  prefixGesturesIgnored: true,
  suffix: IconButton(...),
  suffixGesturesIgnored: true,
)

Read more in the code and docs here.
Material Solution
This is still a work in progress.  I'm trying to take the same approach, but prefix and suffix are passed into InputDecoration, so I can't directly give them GlobalKeys and access them in TextField's TextSelectionGestureDetector.  I'm trying to work around that.
Related Issues
https://github.com/flutter/flutter/issues/36324
https://github.com/flutter/flutter/issues/39376
Closes https://github.com/flutter/flutter/issues/39376
Tests
TODO

@justinmc Do you still have plans for this PR?

Yes, but it seems like I haven't gotten back to this in a long time!  I'll close it for now and make a note to myself to reopen when I have time to work on it.

SOLUTION
Here's the solution for a suffix or prefix taps
Solution Link


Using it in TableView

Hello Josh!
Cool project, first step in bringing technologies from React Native to real native code, without js! I wonder if this can be used to calculate layout of reusable cells in table view. It seems to be nice fit there since you have to provide height of cell before you provide actual cell to table view. Also, it enables easy caching of cells layout and simple reuse model where views and layout of views already separated from each other.
My question is there any way to calculate height with fixed width? Cells can have different heights that depends on content size (text size in my case) so in first we have to have some way to provide information about text size then calculate height and other stuff then apply in to view hierarchy.
As I see I should calculate text size by hand, then create Node hierarchy with that sizes and then ask about final height. Any thoughts how can it be?

My question is there any way to calculate height with fixed width?

The short answer is not really. css-layout works at the point where you already know1 the size of the nodes, but want to know how they should be positioned. This makes the algorithm extremely general, but it also means it's not the whole piece of the puzzle. Somewhere, something has to tell it how big nodes should be.
1That's kind of a lie because flex will size the major axis if you want, but it's not dependent on the content.

As I see I should calculate text size by hand, then create Node hierarchy with that sizes and then ask about final height.

Right. It'd be nice to include a general "size this text" algorithm in SwiftBox, but sizing text is pretty infamously terrible.


Input field not automatically activated + weird Enter behavior

Problem: if you press Command + Shift + G on MacOs, the input field is not automatically activated for typing and Enter will submit.
Expected behavior: I would expect the app to automatically activate the field for typing so that I can start writing straight away after pressing Command + Shift + G. Also, I would expect Enter to result in a line break and CMD + Enter to Submit.

thanks, i agree both of these are design goals

the input field is not automatically activated

you're right, we should fix that. cc @seanoliver

Also, I would expect Enter to result in a line break and CMD + Enter to Submit.

this is a setting introduced in #28 . can you double check that you turned this option off?


Contact Form not working on Safari

Fine on Chrome, Firefox, IE.

Fixed with css in whg-modal.css


Update ReadMe.md

Added docs for this project.
The shield currently says "NuGet Inaccessible", but this will resolve itself in a few hours.

Thanks, merged!


[Meta] Improve error experience

Currently users can get report errors if they try hard enough, usually shapes that are too large or complex for a given report.  The error messages are usually technical/vague, with no direction on what to do.  Reports that don't complete will stay in the loading state forever.  We can do better.

[ ] ErrorBoundary doesn't seem to catch client runtime errors, in production (e.g. accessing object that is undefined)
[ ] Sync function on timeout will display "Failed to fetch".  Catch this and give a better message.
[ ] Async function will just show loading forever if it doesn't return.  if gp function doesn't return in timeout + X seconds, it likely won't ever return, client can report "Did not complete, this can happen with large or complex plans."
[ ] useFunction or maybe ResultCard could show a nicer error, or start with "Something went wrong with this report"
[ ] Improve error logging with separation by project ID.  Gathers client and server side error metrics.
[ ] Warn user if plan size/complexity is greater than a specific amount

Here's the result of us-east-1 going down, can't even fetch the metadata.


Default value of bringing your whole army to hideout

Due to the brigand boss scene, an army of size bigger than 100 will crash the game when trying to teleport in a circle around the final boss.
Set the default value to 90.

Thanks for the heads up! I'll set a maximum value on that.


Fix render tests when updating gl-js to 274d2

On the update-gl-js-to-274d215be3b7bb1af15a0bfa3c28ad7822f3251b branch I bumped MapLibre GL JS to 274d215be3b7bb1af15a0bfa3c28ad7822f3251b.
When I run the render tests (on macOS) with
./build/mbgl-render-test-runner --manifestPath metrics/macos-xcode11-release-style.json

I get the following result:
16 failed (1.2%)
12 errored (0.9%)

These should be fixed before merging.

Change of plans https://github.com/maplibre/maplibre-gl-native/pull/938


Phillip Muniz Assignment Day 1

https://github.com/LambdaSchool/DS-Unit-1-Sprint-1-Dealing-With-Data/commits?author=36921

https://colab.research.google.com/github/36921/DS-Unit-1-Sprint-1-Dealing-With-Data/blob/master/module1-afirstlookatdata/LS_DS_111_A_First_Look_at_Data.ipynb


install with /silent asks for reboot

I'm trying to install using a puppet manifest.
Everything seems to be okay and after install i can exec a .reg file with my settings no problem.
However when installing i'm using /silent which still asks for a reboot yes/no dialog. I want to skip this portion and handle the reboot with the puppet "reboot" module instead after install.
Tried the /verysilent option and this unfortunately just reboots without any regard for the rest of my puppet code. So i'm kind of stuck between an install that just reboots and disregards the rest of my puppet manifests or a single interaction from the user.
Did i miss something obvious ?
Also thanks for continuing to work on this nice piece of software ! :)

pGinaSetup-....exe" /VERYSILENT /SP- /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /RESTARTEXITCODE=3010 /LOG=%SystemDrive%\bla.log
its an inno setup
http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline

Fantastic!
Thanks for that amazing quick answer @MutonUfoAI


Fix YAML document separator

According to http://yaml.org/spec/1.2/spec.html#id2760395 the separator between 2 documents is '---', not '--'

@silvin-lubecki Looks like we need a followup to add the fix to the root README and the hello-world example README


No generated code for console app

@jlaanstra could this PR https://github.com/microsoft/cppwinrt/pull/774 have broken the "Windows Console Application" project template? It no longer generates any headers. The "Windows Runtime Component" project template still works.
It's the only msbuild-related change since 2.0.201017.1 where this project template still works.

@kennykerr This is possible. For a console application, I don't think the C++ tooling automatically adds WinMD references. I think we should update the project template to add them. I'll add submit a PR today.

This also happens for Win32 DLL and GUI projects


updateCommunityWallet() Function

This function updates the community wallet in the contract.

Here is that function in my old contract standard:
    function updateCommunityFundWallet(address _communityFundWallet)
        external
        onlyOwner
    {
        require(_communityFundWallet != address(0), "ERC20: Address 0");
        address oldWallet = communityFundWallet;
        communityFundWallet = _communityFundWallet;
        emit communityFundWalletUpdated(communityFundWallet, oldWallet);
    }


YAML Schema

CC @ijpulidos
We need to define in some documentation what the schema for the yaml files are for example:
https://github.com/openforcefield/protein-ligand-benchmark/blob/main/data/tyk2/00_data/ligands.yml#L1-L10
What is allowed for type keys?

From current set we have the following types in the corresponding ligands.yml data files
❯ grep " type:" **/*.yml | awk '{print $NF}' | sort -u
dg
dh
ic50
ki
pic50
tds


[FLINK-6892][table]Add L/RPAD supported in SQL

In this PR. have Add L/RPAD supported in SQL,For Example:
LPAD('hi',4,'??') -> '??hi'
LPAD('hi',1,'??') -> 'h'
RPAD('hi',4,'') -> 'hi'
RPAD('hi',1,'??') -> 'h'

[x] General

The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
The pull request addresses only one issue
Each commit in the PR has a meaningful commit message (including the JIRA id)

[ ] Documentation

Documentation has been added for new functionality
Old documentation affected by the pull request has been updated
JavaDoc for public methods has been added

[x] Tests & Build

Functionality added by the pull request is covered by tests
mvn clean verify has been executed successfully locally or a Travis build has passed

I'll Rebase code and add doc after FLINK-6960 & FLINK-6925.

I had rebase the code and update the PR.

Hi, @twalthr Thanks for your reviewing.
For performance reasons I have not using String.format(). I have a simple test using String.format() and PR approach. run 100000 times. The result as follows:
str.concat(String.format("%" + (length - str.length()) + "s", "").replace(" ", car)); : 1345ms
The PR lpad : 145ms. So I think we should not using String.format(). Please tell me if there are any mistake.
Thanks, Jincheng


help me to execute

hi..can u pls provide step by step clear explantion of decaptioning  code execution...so many  python files are here
i'm new to python..kindly help me

If you are working on this please mail me<EMAIL_ADDRESS>I am also working on same project.

even i am running in colab


How to pass user-defined props to markers?

First off thank you for porting the cluster plugin to react land.
According this PR I'm under the impression that it's possible to pass custom props to markers and retrieve them in onMarkerClick(marker) event.
I produce an array of markers as per the example with one additional index property in hope of passing it along to some UI event in onMarkerClick handler.  Unfortunately the marker object in the callback looks like a leaflet object minus the custom property.
render() {
const markers = geojsonData.map(
   (feature, index) => {
      return {
         lat: ...,
         lng: ...,
        options: ...,
         index: index  // my custom property
      }
   }
)

return (   <MarkerClusterGroup
                        markers={markers}
                        onMarkerClick={onMarkerClickHandler}
         />)

...
const onMakerClickHandler = (marker) => {
   console.log(marker.index);  // index is undefined
}

You can actually pass custom data to each marker via the options property (see leaflet L.Marker) though it's not very well-documented in Leaflet.  I'm documenting the solution here for those who may come across this issue.
render() {
  const markers = geojsonData.map(
     (feature, index) => {
        return {
           lat: ...,
           lng: ...,
           options: {
               myDataIndex: index,  /* this will be available in onMakerClick() callback */
               icon: myIcon, /* other L.Marker options */
            },
       }
    }
 );
...

@vietnugent I'm encountering the same issue... How can we pass an object into the options property of the <Marker /> React component?
I am using TypeScript (and new to it) and it appears that the options property is not defined for the Marker component. For example, we get the missing options property error when we have
<MarkerClusterGroup iconCreateFunction={createCustomClusterIcon}>
{
    markers.map((marker, index) => (
        <Marker
            position={[marker.lat, marker.lon]}
            key={index}
            options={{ count: marker.count }}   // <===== property does not appear to be defined?
        />
    ))
}
</MarkerClusterGroup>


Basic load testing record

Basic load testing. Mainly to know where we break and capture improvements between now and next launch

you can use fortio load -qps X url to generate constant traffic

This wont lead to a new release candidate therefore moving to 0.3/
@costinm please could you update this issue with the number

same as #995


Resolve issue #1514 from coreos/bugs

This solves the issue #1514 from coreos/bugs, related to the execution of coreos-cloudinit on VMWare environments.
Now when the environment is vmware cloudinit flow is executed twice, and lets the userdata configuration to the last execution, after the network configuration.

This feature is out of scope for coreos-cloudinit. Sorry I wasn't able to comment on that issue earlier.

@crawford couldn't understand this comment. What's the issue with this PR? As VMWare Guest Info is a feature of coreos-cloudinit, I think this feature is scope of the program :)
Thanks!

Sorry, I probably shouldn't use GitHub from my phone ;)
coreos-cloudinit has always been a victim of a networking chicken-and-egg problem: the program is capable of configuring the network, but requires the network to fetch the config. This limitation has just been accepted as "design" and we've worked around it in other ways (two-stage configs, auxiliary helpers, Ignition). This guest variable feature was designed with a very particular use-case in mind: the environment was expected to have a working networking stack (probably via DHCP). Since we treat these guest variables as metadata and userdata (to borrow terms from the cloud providers), we can't actually use this information to create the environment in which coreos-cloudinit runs.
The proper solution here is to break this network-configuration into a separate stage. My workaround uses Ignition as that separate stage.


Add EntityBuilder DSL methods to add extra mouse event handlers, similar to existing onClick

Discussed in https://github.com/AlmasB/FXGL/discussions/1099

Originally posted by francescvc September  2, 2021
On entityBuilder() I can  setup an  onClick((ent)-> { ... })  but on the click code I can't make difference upon the button clicked, that is the left one or right one.  ¿How can I attach different events to both mousebuttons, or how can I distinguish wich one was clicked?

how about a general method of mouse event
like
entityBuilder.onMouseEvent((entity, event) -> {...});

?


Hold middle mouse button and drag for spaces swap

Discussed in https://github.com/linearmouse/linearmouse/discussions/396

Originally posted by lambegraham March 25, 2023
Hi,
Currently LinearMouse has every function I am looking for except one. When in fullscreen in an app, I use another app called 'Magic Mouse Fix' to enable me to scroll out of the fullscreen app to my desktop. To do this I hold the middle mouse button and swipe left to right on my screen and it brings me out of the fullscreen app to my desktop. This is an incredibly useful feature to work with fullscreen apps and may consider being implemented in the future?

I would just like to chime in with my desire for gestures to be added. I have 2 side buttons on my mouse. If each supported gestures (click + hold + drag in a direction) then these would become 8 individual commands - What a superpower this would be! You could also include a movement threshold where the command would repeat with continued motion, now we're talking!!


Sybli resistance in a decentralized relay network

Hey everyone,
Note: I didn't know any other place to put this to discussion. If it doesn't belong in this repository please let me know and I'll delete it. The goal is to discuss some of the proposed solutions, put forth new ideas, etc.
Challenge
When a user publishes a meta transaction to a decentralized relay network, there'll be a competition among the relayers to submit the transaction first, and thus get the reward. As only the first submitter gets a reward, everyone else's transaction reverts and they lose gas, and this inefficiency would cause the relayers to demand a higher price.
Possible solutions
Stake by users and relayers

User publishes intent for a meta transaction to a pubsub channel
Relayers would respond that they're interested in submitting this tx to network
User acknowledges the request of one relayer, who in turn submits the tx and is rewarded
To prevent relayers from showing interest, but not submitting the tx, they put a stake, that would be slashed in case of misbehaviour (not submitting within a time frame).
To prevent users from acknowledging the request of multiple relayers, the user is also required to put a stake.

Considerations
There are however some edge cases to consider in this approach. For example, how to require a newly registered user to put a stake, and doesn't that affect UX? Can the user grief relayers by responding late so the relayers don't have enough time to submit the tx? Can user be caught when doing this? Generally, it seems to me somewhat difficult to distinguish between malicious act and network delays.
PoW

User publishes meta transaction to a pubsub channel.
Relayers try to solve a PoW challenge, and the first one who solves the challenge gets to submit the transaction. This acts as a kind of rate-control mechanism.

Considerations
This approach would probably need a dynamic PoW difficulty. Cost of energy needs to be factored in, which results in relayers asking a higher price. Requires on-chain validation of the proof, which means it requires modifications to the existing identity proxies.
Simplified PoS
Relayers register as such on-chain, and a psuedo-random number generator selects a relayer or a committee of relayers to submit transactions in a timeframe. I'm still doing research on this.

This is a perfect place to put this and the first thing everyone talks about when I get on the phone and start talking meta transactions!
The current solution in my head is the first thing you listed. A node announces they are going to submit and they have some stake on the line that can be slashed if they fail.
At first I wanted to look through the pending transaction pool but that isn't always going to be complete and it would require a lot of work/resources from the relayer.
Which leads to my point against PoW... It would be great to run these relayers on very cheap hardware. So far the only requirement is basically an internet connection. If we start to put the need for hash crunching on these devices, costs could shoot up and our pool of miners would be smaller. Maybe that's still the solution and I'm all about finding the best answer.
I would love to hear how others are solving this or are planning on solving this!

And to directly contradict myself, what if we went with a PoW + batched meta transactions model?
Relayers package up a bunch of meta transactions into a "block" and mine for a leading zeros nonce. Once they have it, they submit it as a single transaction to a relayer contract that verifies, splits, and relays meta transactions.

I think the answer to this is like many in the metatx space right now; it depends on the app. Let's try to come up with and a flexible standard that can effectively handle different use-cases. I think I will start a new issue for flexible rewards and we can use this thread to create a narrative behind relay collision prevention. Dynamic Gas Rewards: https://github.com/austintgriffith/meta-transaction-format-share/issues/4

We designed ours with staking and slashing in mind. Currently exploring the ability to stake various amounts so that Tx distribution is based off on how much is staked/risked.

I would also like to rename this issue to "Meta-tx propagation", sybil isn't the right descriptor. It is not about spam attack but rather about how to select which service nodes gets which tx, what is determinate of it and how frequently.
Was thinking that different service nodes could potentially have their own means of queing and meta-tx prioritisation as opposed to having the logic exist on the network layer.

Another aproach I was thinking about is to create some algorithm for allocation of the relayers to users. Simplest idea:

All known relayers register with a service (public list of all relayers)
User ask the service for a relayer which gets picked by the algo
User submits the tx to provided relayer

Challenges:

Make it trustless
Tweak the algo for low fee relayers

This thread has some ideas for the same problem, but a different context. To quote:

I believe most of these concerns are addressed by having an operator or close set of operators and a deposit/withdraw queue.

One option would be to require relayers to reserve the chain for a period of 2 blocks (possibly <30000 gas cost) before they can submit a block.

I include them here, so we can consider them in the discussion.

@radek1st I think an approach like the one you suggested definitely works around some of the challenges quite elegantly. As you mentioned, making it trustless is a challenge however. Here are a few thoughts about difficulties we might face when designing such a system:

Relayers can register many accounts to increase their chance of getting picked. To prevent this, some stake could be required.
Assuming unique relayers list, it's really difficult to securely pick one randomly. On the bright side, this is being heavily investigated for casper.

We can also combine this with batched txes:
Randomly pick a relayer who submits all the txes that have been published to the relay network, but not submitted on-chain recently, in a batch (block). The reward system might get more complex as a consequence of this however.

Previous chat logs about this issue https://hackmd.io/kJISew3BS3KqFAhLjT7yow

@kosecki123 @lsaether ^

I've thought about a fews ways which have different assumptions on how the meta-tx data gets passed to relayer services.

Decentralized / permissionless / near total data availability. Anyone can become a relayer and everyone has access to the data (delivered for example by Ethereum state or event logs). This is essentially what the TimeNode network on the Ethereum Alarm Clock looks like now. The major problem is transaction collisions which if you're not familiar with the term just means more than one relayer attempting to execute the tx during the same block and all but the first one to get mined will be reverted. We've patched this in EAC by doing a check in the transaction pool for other transactions of the same data. This is an imperfect solution because network latency will always cause a lag in the transaction pool data and therefore leak transaction collisions. A true solution would be running consensus among relayers, which either imply trust (traditional consensus models / PoA) or basically require a sidechain (PoW / PoS). I could be wrong about this though.

Decentralized / permissionless / selective data availability. Relayers would run their own services. These services can be closed services, or services running their own consensus internally (akin to relayer pools). Users would pass their signed messages "selectively" to a relayer. The main problem here is the lack of data redundancy, so if the selected relayer fails to publish the meta-tx, the transaction won't go through. This is a problem most notably for time sensitive transactions that need to go through during  a specific window of time. Another attack regarding this model: User can send their meta-tx to many relayers. If the relayers don't communicate with each other, they will each attempt the publish of the meta-tx. We hit transaction collision.

Thanks @PhABC :) Saw the tag go up live-- was literally typing this up when you posted.

@jamesray1 thanks for the comment. I will take a look at pokt.
I was also thinking about RANDAO for the source of randomness, but then I wondered if something simpler, like parent's block hash could also be utilized. I'd appreciate your comment on this, if you can see any attack vectors for example.

@jamesray1 Yeah exactly, I'm also wondering if forgoing the block reward makes sense for miners, given that the reward they'd get from meta txes are probably much lower.
Can you please elaborate on collusion of proposers?

What if the block reward reduces to near zero as is planned/proposed with a max supply cap? I don't think you understand. By foregoing the block reward they can manipulate the entropy in their favour to make it more likely that they will be selected in future, and they can increase their profits and power incrementally and potentially take over the whole network, bit by bit. I'll try to find a link on ethresear.ch on Monday.
https://ethresear.ch/t/verifiable-delay-functions-and-randao-manipulability/3777
A proposer could form a cartel whereby they may collude with the next proposer, and so on, in order to increase their chances of being drawn. FMI see https://ethresear.ch/t/rng-exploitability-analysis-assuming-pure-randao-based-main-chain/1825/2 and https://ethresear.ch/search?q=collusion randao.


Improve onnx conversion instructions in readme

Creation and activation of venv onnxconversion
Installation of requirements.txt
Short explanation of huggingface URL model identifiers

I thought a short note on how to use the conversion script might be useful for non-Python users. I used venv (and not e.g. conda) as it's built-in.

Thanks for the PR! I think it's useful to mention the requirements in the requirements.txt, but I'm a little hesitant to increase the complexity otherwise (since it should be up to the user whether they want to create a venv). Also, the /bin/activate is only available on linux/mac. Afaik, it's /Scripts/activate.exe on windows, so if we will add something like this, we'd have to account for both cases...
I think a better option would be to just create a HF space for this (which is something I've just put off doing since I haven't really had time yet).

I'm not too familiar with the concept of HF spaces but if it offers space for some more detailed explanation why not. Feel free to edit as you need or close this PR!
On Windows it should be:
onnxconversion/scripts/activate
(last time I actually used venv on Windows)
But there might be more ways to activate it. Usually I try to avoid Windows and instead prefer WSL (if I'm forced to work on a Windows machine) as it's less error-prone. I can verify if you need, just let me know.

Of course, when pushing to my main branch I didn't consider the other open PR. Also, feel free to close this one here too to unclutter the PRs.
I'll go ahead now and create a PR with a different branch, that's probably the easiest solution.


Add user-customisable divisions for component states

At the moment, a Component state can be divided into a vector (e.g. useful for soil layers) through the use of the key 'divisions' in _parameters_info. The value for this key is expected to be an integer. This dictionary is expected to be created/modified by a component contributor, but some components may support a customisable value (e.g. customisable number of soil layers) which would directly impact on the memory to be allocated for this component state.
This could be modified by setting this integer value as a component constant. However, the way the default value for a constant is set at the moment (i.e. as a keyword argument in component's run method) is problematic because it is not easy to communicate this value to the component for its _instantiate_states method. So maybe it would be better to make it a component parameter, but the distinction between paramater and constant in the framework has always been that the former is subject to tuning while the latter is not, but I wonder if e.g. the number of soil layers should not be subject to tuning?
These two options try to reuse existing concepts/functionality, if none is suited for this purpose, a third option adding a new concept and potentially requiring new functionalities could be required.

After discussing this with Rich, it actually makes more sense to have the custom number of divisions as a component paramater rather than a component constant.
So, if a state can be given a customisable number of divisions (e.g. customisable number of soil layers), 'divisions' in _parameters_info could be given a string with the parameter name to use, if a state can only be used a fixed number of divisions, 'divisions' in _parameters_info could be given an integer as is currently the case.
A corollary to this is that if the number of divisions is customisable, because it is a parameter, it cannot be given a default value. So if a default value exists, it should be documented somewhere, but the user will have to explicitly provide the value (even if they are using the default value).

Also, it is conceivable that the divisions could be multiple, e.g. HRUs and soil layers, so a tuple of values (either strings or integers or both) should be supported (or expected in place of string/integer) to support this.
HRUs would not be considered subgrid heterogenity if the standard is already used to support different vegetation/land cover tiles. If HRUs are use din a subsurface component, the component would need to map from the vegetation/land cover tile to the HRU tile. Indeed, if we don't want to lose information by aggregation tiles together, it makes sense to prioritise vegetation over HRUs, since vegetation is effectively crossing the interface (i.e. vegetation in surfacelayer, but roots in subsurface). HRUs are typically a combination of vegetation and some soil properties, so it would be given information about vegetation types through the interface, and it can work out soil types for itself (since such information is inherent to subsurface).


Add vc-region-history?

Would you mind add the git log -L <start>,<end>:<file> feature into the magit? select a region, then magit-status, and l to check the region of history.

The logging functionality in vscode-magit leaves a lot to be wanted atm.
I've put "more logging features" on the roadmap, and will include region-history in this initiative.
I will probably make it possible to launch from the magit file popup (alt+x alt+g). And detect if there is a selection.
Not sure how it would work from the status view, I'm not able to do this with my Emacs setup.


Fixed missing domain name support for services.

The services routine that parses domain names is missing a \- in the regex that the container version has. This prevents services with domain names containing hyphens from being properly parsed. i.e. a service with Host('service.foo.bar') is parsed and registered correctly, but Host('service.fo-o.bar') fails and is returned as null.
Hope this helps!

Thank you!


JSON_MERGE error

Seem that Json merge is not working
Notice: Undefined property: Syslogic\DoctrineJsonFunctions\Query\AST\Functions\Mysql\JsonMerge::$firstJsonPathExpr
Since this is in line 64 of JsonMerge
The variable is wrong, maybe this is $this->firstJsonDocExpr not $this->firstJsonPathExpr

Yes you are right.
I changed line 64 from
$this->jsonDocs[] = $this->firstJsonPathExpr;
to
$this->jsonDocs[] = $this->firstJsonDocExpr;
and suddenly it works ;-)

@hayrie Thanks for the fix!


Adds a SchemaBuilder type for modular schema creation

This adds a SchemaBuilder, which enables much more modular schema creation. By breaking up the schema definition, different parts of the schema could be created in different functions, files, or even packages.

Are these additive changes? Didn't have enough time to properly look into it, yet.

Yup, purely additive.

Have you tried implementing it using result builders? I think it fits better with Swift when comparing it to fluent builders.

Can you split up result builder definitions or do they always need to be defined in a single contiguous block?
I'll admit, I'm not a result builder expert. My goal with this was to allow schemas to be defined over a number of different functions, files, or even packages, because my schema definitions get REALLY huge and unwieldy when I have to keep them in a single block. Builders like Vapor's RouteBuilder or SQLKit's SQLPredicateBuilder achieve that goal pretty well. For example, we could have a project with the 3 files below, where functionality is separated effectively:
# API.swift

let builder = SchemaBuilder<Res, Ctx>()
addHello(to: builder)
addGoodbye(to: builder)
let schema = try builder.build()

# Hello.swift

extension Res {
    func hello() -> String {
        "world"
    }
}
func addHello(to builder: SchemaBuilder<Res, Ctx>) {
    builder.addQuery(
        Field("hello", at: Resolver.hello)
    )
}

# Goodbye.swift

extension Res {
    func goodbye() -> String {
        "for now"
    }
}
func addGoodbye(to builder: SchemaBuilder<Res, Ctx>) {
    builder.addQuery(
        Field("goodbye", at: Resolver.goodbye)
    )
}

I didn't know how to accomplish something like this with a resultBuilder pattern. If there is one, could you provide me a quick example?

Hey, Jay! Sure, I'll give you an update this week!

Hey @paulofaria, any updates on this? I'd be happy to make the changes if you can get me an example of the multi-file result-builder schema construction!

Sorry! I'm moving to a new house, so things are chaotic around here. I'll try to find the time, though. Should be straight forward.

Hey, @NeedleInAJayStack. Can you please check you reddit DMs? 😁

Any updates on this?

I think @paulofaria was going to send me an example of a distributed ResultBuilder

Really sorry about the delay. @NeedleInAJayStack can I update this PR directly, with the result builder approach? I think it's easier.

@paulofaria No worries! Sure, feel free to edit this directly or on your own branch of my work.

Hey, I’m really sorry about this. I think it’s best to merge this as is and improve later, if necessary.

Awesome, thanks Paulo! Mind approving again after my rebase?

@NeedleInAJayStack thank you very much for this, Jay!


Component element causing layout issues

The wrapping element is breaking some of my layouts. For example, if the parent of the transitioned element has display: flex, the transitioned element is no longer the direct child. Is it possible to have the ability to add inline styles to the component element?

If you use the style property in the wrapper element like <Transition style={...}> you should be able to apply styles to it so you can make the wrapper display: flex.

Yes, that solves the issue, thanks.


[Q] Resources support?

Is there an easy way to load an embedded resource with JSIL? The GetCallingAssembly() (I need to load the resource from the caller in a library method) is not implemented in JSIL. I have noticed that JSIL compiles RESX files to RESJ files. I want to embed a XML file as an embedded resource and load it at runtime. How can I accomplish this or something similar?
Thanks for the help!

GetCallingAssembly is impossible to implement in JS because it doesn't offer stack-walking. You can get the executing assembly, however, or extract an Assembly from a type object.

Thanks, resource loading works now. I now have an error about a not-implemented SelectMany call. I'll try to look into it myself.


Removal of white space and raw data graphs. Tentative fix for inf errors on linear normalization

Also restored the ability to pass desired measurement value (e.g "s12) which was accidentally removed.

I think the confidence interval calculation was one-sided, so it would pass -inf for left-sided interval calculations. So now instead of just redirecting to circle normalization, the code will ignore the -inf confidence intervals, which would only appear on the first iteration through monte-carlo fitting. I believe this fixes the linear preprocessing error I've been hunting for so long


"Șerbănești', "Buda", "Corbița","Izvoarele", "Largășeni", "Ocheșești","Rădăcinești","Tuțu", "Vâlcelele" are listed in the drop-down menu

"Șerbănești', "Buda", "Corbița","Izvoarele", "Largășeni", "Ocheșești","Rădăcinești","Tuțu", "Vâlcelele" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Preconditions : the website (https://peviitor-ro.github.io/ui.orase/) is up and running. After every step delete the text you typed from the search bar.

Step 1
Write in the search bar "Șerbănești"

Expected results
The location appears in the drop-down menu as "SatȘerbănești  , VRANCEA (Corbița)"

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Șerbănești"

Expected results
The location appears in the drop-down menu as "Sat Buda  , VRANCEA (Corbița)

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Izvoarele"

Expected results
The location appears in the drop-down menu as "Sat Izvoarele  , VRANCEA (Corbița)

Step 8
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 9
Write in the search bar "Largășeni"

Expected results
The location appears in the drop-down menu as "Sat Largășeni  , VRANCEA (Corbița)

Step 10
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 11
Write in the search bar "Ocheșești"

Expected results
The location appears in the drop-down menu as "Sat Ocheșești  , VRANCEA (Corbița)

Step 12
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 13
Write in the search bar "Rădăcinești"
Expected results
The location appears in the drop-down menu as "Sat Rădăcinești  , VRANCEA (Corbița)

Step 14
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 15
Write in the search bar "Tuțu"

Expected results
The location appears in the drop-down menu as "Sat Tuțu  , VRANCEA (Corbița)

Step 16
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 17
Write in the search bar "Vâlcelele"

Expected results
The location appears in the drop-down menu as "Sat Vâlcelele  , VRANCEA (Corbița)


Failed to bind properties under 'spring.datasource.password' to java.lang.String

Boot 2.3.2, jasypt 3.0.3 and 2.1.2 regardless of iv-generator-classname NoIvGenerator or RandomIvGenerator
`jasypt:
encryptor:
password: fubar
iv-generator-classname: org.jasypt.RandomIvGenerator
spring:
password: ENC(yaddayaddayadda)
`
With or without @EnableAutoConfiguration
@SpringBootApplication @EnableAutoConfiguration
Currently working in boot 2.2.4, jasypt 3.0.2 with encryptor.password in database

I got the same error.
It seems jasypt-spring-boot is not compatible with the new release of spring boot.

same to me!

After painful research I changed the debug level on spring and found that the issue was jasypt couldn't decrypt the password that I had encrypted using the online tool.
Using jasypt 3.0.3 there is no command line CLI in the jar. The online tool doesn't work.
Added:
            <plugin>                 <groupId>com.github.ulisesbocchio</groupId>                 <artifactId>jasypt-maven-plugin</artifactId>                 <version>3.0.3</version>             </plugin>
Run:
mvn jasypt:encrypt-value -Djasypt.encryptor.password="the password" -Djasypt.plugin.value="theValueYouWantToEncrypt"


erlang fails to build on macOS

Describe the bug
The current version of erlang fails to build on macOS. From the error message it sounds like it believes the current macOS version is 10.10. The error message in question, from the configure phase:
  You are natively building Erlang/OTP for a later version of MacOSX
  than current version (10.10). You either need to
  cross-build Erlang/OTP, or set the environment variable
  MACOSX_DEPLOYMENT_TARGET to 10.10 (or a lower version).

I suspect this was caused by https://github.com/NixOS/nixpkgs/pull/64458 which bumped our MACOSX_DEPLOYMENT_TARGET to 10.12. I have no idea why Erlang thinks the current macOS version is 10.10 (I'm running macOS 10.14).
To Reproduce
Steps to reproduce the behavior:

On macOS, run nix-env -iA nixpkgs.erlang, or from a nixpkgs checkout run nix-build -A erlang .

Expected behavior
It should build.
Additional context
Add any other context about the problem here.
Metadata

system: "x86_64-darwin"
host os: Darwin 18.7.0, macOS 10.14.6
multi-user?: no
sandbox: no
version: nix-env (Nix) 2.2.2
channels(lily): "nixpkgs-19.09pre188239.c0e56afddbc"
nixpkgs: /Users/lily/.nix-defexpr/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: erlang
# a list of nixos modules affected by the problem
module:

This is explicitly a problem with erlang. I found the following in R19.nix, R20.nix, R21.nix, and R22.nix:
  prePatch = ''
    substituteInPlace configure.in --replace '`sw_vers -productVersion`' '10.10'
  '';

So at least it isn't a larger issue with Darwin. We should probably fix this to use MACOSX_DEPLOYMENT_TARGET. I'll work on a patch.


Report Issues doesn't work

VSCode Version: 1.8.1
OS Version: Windows 10.0.14393

Steps to Reproduce:

Press Help - Report Issues (or trigger it via F1)

Result: nothing happens. Nothing shows up in the Dev Tools console.

@Leon99 It works for me in both VS Code stable and insiders version. Can you please try again or try by disabling all extension and provide any helpful information?
Thanks

@Leon99 does it work eventually when you wait long enough? we do some integrity checking before opening a browser and that can take up to 10 seconds or more.

Doesn't work with all extensions disabled either. Search Feature Requests works and opens in a browser almost instantly. No workspace opened, I even tried to remove all the user settings with no success.

@Leon99 how about waiting longer?

@bpasero 4 hours now and counting :)

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: http://code.visualstudio.com/Download#insiders

Works fine with 1.9.0-insider.

@Leon99 when you install all the extensions you have in stable to the insiders version, does it then fail again? I still wonder if an extension could cause this. Would also help to know which extension you have installed.

I synced using Shan.code-settings-sync, the Insiders ver was still fine after that. Here is the GIST ID I used: ece838568ac438cee805a66359b6437d


Add RetryDuration in client

Is it worth exposing this on a per-request basis? So I could get the Sender and call Do() or DoWithRetryInterval(someInterval). For requests that I know get done faster than the RP says to retry on, but without affecting the entire client?
Might not be worth it.
This change LGTM either way.


Ninemanga issue

When I open the app It tells me there is an error and doesn't load any manga. This happens in the ninemanga expansion. Did I do something?


int8 ERROR when I run convert_tflite.py

I run this command:
python convert_tflite.py --weights ./checkpoints/yolov4-416 --output ./checkpoints/yolov4-416-int8.tflite --quantize_mode int8 --dataset ./coco_dataset/coco/val207.txt
And occur:
calibration image /home/soc507/darknet/data/coco/images/val2014//COCO_val2014_000000183693.jpg
calibration image /home/soc507/darknet/data/coco/images/val2014//COCO_val2014_000000150834.jpg
calibration image /home/soc507/darknet/data/coco/images/val2014//COCO_val2014_000000140270.jpg
I0907 13:29:51.712005<PHONE_NUMBER>74016 convert_tflite.py:48] model saved to: ./checkpoints/yolov3-tiny-int8.tflite
Traceback (most recent call last):
File "convert_tflite.py", line 76, in
app.run(main)
File "/home/aluds/anaconda3/envs/tf230/lib/python3.5/site-packages/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/aluds/anaconda3/envs/tf230/lib/python3.5/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "convert_tflite.py", line 72, in main
demo()
File "convert_tflite.py", line 52, in demo
interpreter.allocate_tensors()
File "/home/aluds/anaconda3/envs/tf230/lib/python3.5/site-packages/tensorflow/lite/python/interpreter.py", line 243, in allocate_tensors
return self._interpreter.AllocateTensors()
RuntimeError: tensorflow/lite/kernels/dequantize.cc:61 op_context.input->type == kTfLiteUInt8 || op_context.input->type == kTfLiteInt8 || op_context.input->type == kTfLiteInt16 || op_context.input->type == kTfLiteFloat16 was not true.Node number 64 (DEQUANTIZE) failed to prepare.
Question:
Can someone give me some suggestion?  Thank you.

Answers to this issue? I'm having the same one

Answers to this issue? I'm having the same one

Can someone give me some suggestion? Thank you.

A similar issue occurred to me, I use yolov3. Any suggestions?

A similar issue occurred to me, I use yolov3. Any suggestions?

Fix in
https://github.com/hunglc007/tensorflow-yolov4-tflite/issues/214
worked in converting yolov3-tiny to TF-Lite int8.
I had to comment out lines in save_model.py and add the lines to detect.py.


Error on Output_layer in custom image data training using folders

@mk-minchul and @ZonePG  I was trying for long time to fine tuning the model using a custom folder with 8568 images, following all steps and the issue solution and suggestions that I found, but I still had been gotten the same error on output_layer of the backbone, So I can not training because that.
RuntimeError: mat1 and mat2 shapes cannot be multiplied (5x2984448 and 25088x512)

Please can you give some ideas or method to deal with

@otsebriy Not yet, but if you want we can schedule a meeting to see our code, and maybe together with all the information of our trials,  could find a way to run. this is my email<EMAIL_ADDRESS>

@otsebriy Not yet, but if you want we can schedule a meeting to see our code, and maybe together with all the information of our trials, could find a way to run. this is my email<EMAIL_ADDRESS>
In my case, the problem was in the input image shape.

@otsebriy Not yet, but if you want we can schedule a meeting to see our code, and maybe together with all the information of our trials, could find a way to run. this is my email<EMAIL_ADDRESS>
In my case, the problem was in the input image shape.

@otsebriy So is the MTCNN image crop not enough or is it that some images exceeded that size?
Could you give me some additional details about how youe achieve this?
Anyway I am already changing the dataset so that you keep the fixed size 112x112.

@otsebriy Not yet, but if you want we can schedule a meeting to see our code, and maybe together with all the information of our trials, could find a way to run. this is my email<EMAIL_ADDRESS>
In my case, the problem was in the input image shape.

@otsebriy So is the MTCNN image crop not enough or is it that some images exceeded that size?
Could you give me some additional details about how youe achieve this?
Anyway I am already changing the dataset so that you keep the fixed size 112x112.

That was the solution, changing the image size in the dataset


Statement execute variadic overloads

Support
statement.execute("hello", "world", 42);
statement.async_execute("hello", "world", 42, use_future);

Causes issues for async functions, especially when default completion tokens are used. As of d04f2662ba161710f4602f9406884f15e9d3f4b3, a new tuple-like syntax is available that should be almost equivalent to this.


Magnum support

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

ok to test

add to whitelist

recheck_all

recheck_all

ok to test

add to whitelist

ok to test

ok to test

add to whitelist

It looks like there's an issue with the role dependencies now that we're using ansible-role-requirements.yml.  We can either try including the following roles:
apt_package_pinning
pip_install
galera_client

Or we need to find a different way of doing this.

The way I see it, we have two options:

Add the magnum role to the OSA ansible-role-requirements file and live with the fact that in-tree files will be modified as part of the deployment process.

Ignore linting test for the magnum playbook - example: https://github.com/rcbops/rpc-openstack/blob/master/scripts/linting-ansible.sh#L36

I like option #2. It's a shame that the playbook won't run the linting test, but I'd rather not modify in-tree files.

And this is only a Mitaka/temp issue right?  So in Newton, it's all proper.

@claco Correct.  Newton has all this baked in, so we don't have to fight it

recheck_ceph

recheck_upgrade

recheck_upgrade

recheck_ceph

recheck_swift


issue with dep ensure

i get the following error when trying to add a dependency. the github repo is private.
i already had an issue with dep init, so i created the .toml file manually...
$ dep init -v
Getting direct dependencies...
Checked 58 directories for packages.
Found 19 direct dependencies.
Root project is "github.com/abc/integration/test-driver/integration-test"
 32 transitively valid internal packages
 29 external packages imported from 19 projects
(0)   ✓ select (root)
(1)	? attempt github.com/armon/go-metrics with 1 pkgs; 1 versions to try
(1)	    try github.com/armon/go-metrics@master
(1)	✓ select github.com/armon/go-metrics@master w/1 pkgs
(2)	? attempt github.com/hashicorp/go-immutable-radix with 1 pkgs; 2 versions to try
(2)	    try github.com/hashicorp/go-immutable-radix@master
(2)	✓ select github.com/hashicorp/go-immutable-radix@master w/1 pkgs
(3)	? attempt github.com/hashicorp/golang-lru with 1 pkgs; 2 versions to try
(3)	    try github.com/hashicorp/golang-lru@master
(3)	✓ select github.com/hashicorp/golang-lru@master w/1 pkgs
(4)	? attempt github.com/op/go-logging with 1 pkgs; 2 versions to try
(4)	    try github.com/op/go-logging@v1
(4)	✓ select github.com/op/go-logging@v1 w/1 pkgs
(5)	? attempt github.com/abc/intell-go-common with 3 pkgs; 6 versions to try
(5)	    try github.com/abc/intell-go-common@master
(6)	✗   github.com/abc/intell-go-common@master depends on github.com/op/go-logging with master, but that's already selected at v1
(5)	    try github.com/abc/intell-go-common@OPTO-1060-AddAWSHelpers
(5)	✓ select github.com/abc/intell-go-common@OPTO-1060-AddAWSHelpers w/3 pkgs
(6)	? attempt github.com/satori/go.uuid with 1 pkgs; 4 versions to try
(6)	    try<EMAIL_ADDRESS>(6)	✓ select<EMAIL_ADDRESS>w/1 pkgs
(7)	? attempt github.com/mailru/easyjson with 4 pkgs; 2 versions to try
(7)	    try github.com/mailru/easyjson@master
(7)	✓ select github.com/mailru/easyjson@master w/4 pkgs
(8)	? attempt github.com/guregu/null with 1 pkgs; 14 versions to try
(8)	    try<EMAIL_ADDRESS>(8)	✓ select<EMAIL_ADDRESS>w/1 pkgs
(9)	? attempt github.com/ulule/deepcopier with 1 pkgs; 2 versions to try
(9)	    try github.com/ulule/deepcopier@master
(9)	✓ select github.com/ulule/deepcopier@master w/1 pkgs
(10)  ? attempt github.com/google/flatbuffers with 1 pkgs; 20 versions to try
(10)      try<EMAIL_ADDRESS>(10)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(11)  ? attempt github.com/stretchr/testify with 2 pkgs; 14 versions to try
(11)      try<EMAIL_ADDRESS>(11)  ✓ select<EMAIL_ADDRESS>w/2 pkgs
(12)  ? attempt github.com/davecgh/go-spew with 1 pkgs; 3 versions to try
(12)      try<EMAIL_ADDRESS>(12)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(13)  ? attempt github.com/pmezard/go-difflib with 1 pkgs; 3 versions to try
(13)      try<EMAIL_ADDRESS>(13)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(14)  ? attempt github.com/jinzhu/gorm with 1 pkgs; 7 versions to try
(14)      try<EMAIL_ADDRESS>(14)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(15)  ? attempt github.com/jinzhu/inflection with 1 pkgs; 1 versions to try
(15)      try github.com/jinzhu/inflection@master
(15)  ✓ select github.com/jinzhu/inflection@master w/1 pkgs
(16)  ? attempt github.com/abc/integration with 1 pkgs; 14 versions to try
(17)      try github.com/abc/engine@master
(18)  ✗   github.com/abc/engine at master has problem subpkg(s):
(18)    	github.com/abc/engine/mm/delphi is missing; required by (root).	github.com/abc/engine/mm/delphiinternal is missing; required by (root).
(17)      try github.com/abc/engine@OPTO-1266-GRPCAgain
(18)  ✗   github.com/abc/engine at OPTO-1266-GRPCAgain has problem subpkg(s):
(18)    	github.com/abc/engine/mm/delphi is missing; required by (root).	github.com/abc/engine/mm/delphiinternal is missing; required by (root).
(17)    ← no more versions of github.com/abc/engine to try; begin backtrack
(16)  ← backtrack: no more versions of github.com/abc/integration to try
(15)  ← backtrack: no more versions of github.com/jinzhu/inflection to try
(14)  ← backtrack: no more versions of github.com/jinzhu/gorm to try
(13)  ← backtrack: no more versions of github.com/pmezard/go-difflib to try
(12)  ← backtrack: no more versions of github.com/davecgh/go-spew to try
(11)  ← backtrack: no more versions of github.com/stretchr/testify to try
(10)  ← backtrack: no more versions of github.com/google/flatbuffers to try
(9)	← backtrack: no more versions of github.com/ulule/deepcopier to try
(8)	← backtrack: no more versions of github.com/guregu/null to try
(7)	← backtrack: no more versions of github.com/mailru/easyjson to try
(6)	← backtrack: no more versions of github.com/satori/go.uuid to try
(5)	← backtrack: no more versions of github.com/abc/intell-go-common to try
(4)	← backtrack: no more versions of github.com/op/go-logging to try
(4)	  ? continue github.com/op/go-logging with 1 pkgs; 1 more versions to try
(4)	    try github.com/op/go-logging@master
(4)	✓ select github.com/op/go-logging@master w/1 pkgs
(5)	? attempt github.com/mailru/easyjson with 4 pkgs; 2 versions to try
(5)	    try github.com/mailru/easyjson@master
(5)	✓ select github.com/mailru/easyjson@master w/4 pkgs
(6)	? attempt github.com/ulule/deepcopier with 1 pkgs; 2 versions to try
(6)	    try github.com/ulule/deepcopier@master
(6)	✓ select github.com/ulule/deepcopier@master w/1 pkgs
(7)	? attempt github.com/abc/engine with 3 pkgs; 15 versions to try
(7)	    try<EMAIL_ADDRESS>(8)	✗   github.com/abc/engine at 0.1 has problem subpkg(s):
(8)	  	github.com/abc/engine/mm/delphi is missing; required by (root).	github.com/abc/engine/mm/delphiinternal is missing; required by (root).
(7)	    try github.com/abc/engine@master
(8)	✗   github.com/abc/engine at master has problem subpkg(s):
(8)	  	github.com/abc/engine/mm/delphi is missing; required by (root).	github.com/abc/engine/mm/delphiinternal is missing; required by (root).
(7)	    try github.com/abc/engine@circleci
(8)	✗   github.com/abc/engine at circleci has problem subpkg(s):
(8)	  	github.com/abc/engine/mm/delphi is missing; required by (root).	github.com/abc/engine/mm/delphiinternal is missing; required by (root).
(7)	  ← no more versions of github.com/abc/engine to try; begin backtrack
(6)	← backtrack: no more versions of github.com/ulule/deepcopier to try
(5)	← backtrack: no more versions of github.com/mailru/easyjson to try
(4)	← backtrack: no more versions of github.com/op/go-logging to try
(3)	← backtrack: no more versions of github.com/hashicorp/golang-lru to try
(2)	← backtrack: no more versions of github.com/hashicorp/go-immutable-radix to try
(1)	← backtrack: no more versions of github.com/armon/go-metrics to try
  ✗ solving failed

Solver wall times by segment:
     b-list-versions: 27.305979378s
         b-list-pkgs:   12.3737487s
              b-gmal:  2.953867963s
     b-source-exists:  1.447277993s
         select-root:     5.80917ms
             satisfy:    3.547506ms
         select-atom:     1.72893ms
            unselect:     1.09343ms
            new-atom:     886.164µs
  b-deduce-proj-root:     157.126µs
           backtrack:     123.388µs
               other:     110.625µs
           b-matches:       5.949µs
          b-pair-rev:       1.577µs
      b-pair-version:         549ns

  TOTAL: 44.094338448s

init failed: unable to solve the dependency graph: Solving failure: No versions of github.com/abc/engine met constraints:
	0.1: Could not introduce<EMAIL_ADDRESS>due to multiple problematic subpackages:
	Subpackage github.com/abc/engine/mm/delphi is missing. (Package is required by (root).)	Subpackage github.com/abc/engine/mm/delphiinternal is missing. (Package is required by (root).)
	master: Could not introduce github.com/abc/engine@master due to multiple problematic subpackages:
	Subpackage github.com/abc/engine/mm/delphi is missing. (Package is required by (root).)	Subpackage github.com/abc/engine/mm/delphiinternal is missing. (Package is required by (root).)

What version of dep are you using (dep version)?
$ dep version
dep:
 version     : v0.4.1
 build date  : 2018-01-27
 git hash    : 37d9ea0
 go version  : go1.9.3
 go compiler : gc
 platform    : darwin/amd64

What dep command did you run?
$ dep ensure -add github.com/abc/engine --package=format
Fetching sources...

Failed to add the dependencies:

  ✗ could not infer project root from dependency path: --package=format: "--package=format" is not a valid import path

adding dependencies failed

-->
What did you expect to see?
no error
What did you see instead?
adding dependencies failed

--package=format is not a parameter of dep's. Not sure what you're trying to do there. All you can pass is paths to be incorporated; dep's telling you that it's trying to interpret that extra arg as a path, and failing to do so.


Can I use my custom trained model?

or is it just toonyou, Counterfeit, Realistic Vision and the others on the notebook?

yep