Kill misbehaving children

It can happen that misbehaving module (on EV3) is stuck on blocking IO (e.g. laser waititing for synchronization without running motor properly) and will not know that it's stdin was closed by ev3control.
This way request from ev3control to disable module will wait indefinitely.
Give some timeout for child to close and if it is naughty kill it with a signal.
A child will get SIGINT in IO call and finish gracefully (at least this is what modules already do on SIGINT in most cases).


Can it be highlighted, when cursor under a word?

It would be better for vim mode. Is it possible to do that?

+1
I think this would be great and would bring Atom closer to expected behaviour in IDEs. Could there be an option to highlight on click or double click?

+1

Could you please given me an example?

The possibility of change the event that fire the highlight. (right now: double-click)
Can be possible use one-click or simple mouse over. Example, vim.

As I don't use Vim, is this the correct behaviour?
In Vim:

I use command :set hlsearch
I have a line this is te|st, test test (where | is my cursor)
I press * (by default) and all tree test then become highlighted.

And then within Atom, the binding (*) would be changeable via the user's keymap file.

+1
is it possible to just highlight word under cursor position without depending on any other things (like vim or key binding)?

It would be great, if this would work for a simple click, not just double click.

+1 for this

I don't know if it is a good idea to register a cursor move event. I change the code slightly then it will highlight the word under the cursor. This also works for mouse one click.

Yeah, would be nice if it highlighted on a single click - something I've grown used to in sublime

@toxu can you share this?

This is a much needed setting. Proposed look using radio selection buttons:
Highlight behavior:
- On word selection
- On single-clicking a word

Any updates on this issue?


Allow dedupe statuses when scheduling new orchestration instance

Hi, we wish to achieve idempotence when calling ScheduleNewOrchestrationInstanceAsync with the same orchestration id, so if the orchestration id is already existed (in pending, running or completion state)- the orchestration won't be re-triggered.
In the current implementation, the orchestration is actually being triggered twice, even if the orchestration is in Pending/Running state, and the documentation has no real promises in this matter:

"If an orchestration with the specified instance ID already exists and is in a non-terminal state (Pending, Running, etc.), then this operation may fail silently. However, if an orchestration instance with this ID already exists in a terminal state (Completed, Terminated, Failed, etc.) then the instance may be recreated automatically, depending on the configuration of the backend instance store."

Suggested solution:
To schedule a new orchestration instance, one should call:
    public override async Task<string> ScheduleNewOrchestrationInstanceAsync(
        TaskName orchestratorName,
        object? input = null,
        StartOrchestrationOptions? options = null,
        CancellationToken cancellation = default)

The implementation of this method is in ShimDurableTaskClient.cs and in the end of the methods it calls:
await this.Client.CreateTaskOrchestrationAsync(message);
This method is from azure/durabletask, and it has another overload, with the following signature:
public Task CreateTaskOrchestrationAsync(TaskMessage creationMessage, OrchestrationStatus[]? dedupeStatuses)
When one sending the dedupeStatuses to this method, if an orchestration is existed in one of the given statuses, durabletask throws InvalidOperationException, that could be caught to handle idempotence.
Then, in my opinion, allowing receiving OrchestrationStatus[]? dedupeStatuses in ScheduleNewOrchestrationInstanceAsync() should help to handle the idempotence (or any other solution you have in mind will be appreciated).
Thanks,
Sagi

Hi @sagimar: thanks for reaching out.
I think I need more context here: when you say that "In the current implementation, the orchestration is actually being triggered twice", do you mean that you're seeing the orchestration being triggered twice one after the other, or do you mean in parallel? Just trying to get clarity around the current behavior you're seeing. Any traces that you may share will help me understand your requirements.

Hi, thanks for the response!
I'll further explain the issue:
I'm making the following calls (scheduling the same orchestration id twice):
public async Task ScheduleOrchestrations()
{
    await client.ScheduleNewOrchestrationInstanceAsync("orchestrationId", input, options, cancellationToken).ConfigureAwait(false);

    await client.ScheduleNewOrchestrationInstanceAsync("orchestrationId", input, options, cancellationToken).ConfigureAwait(false);
}

The expected behavior: Creation of one orchestration from the first call, and no-op in the second call (idempotence).
The behavior- this is the logs I see from my service:

Fetched instance status - RuntimeStatus: NotFound
Sending [ExecutionStarted] message, SequenceNumber: 1
Updated instances table and set the runtime status to 'Pending'
Fetched instance status - RuntimeStatus: Pending
Sending [ExecutionStarted] message, SequenceNumber: 2
Updated instance table and set the runtime status to 'Pending'

Logs 1-3 are from the first call and 4-6 are from the seconds call. Same happens also if the orchestration was in 'Running' state.
I would expect that after log number (4)- no-op will occur. This could be achieved using dedupeStatuses functionality from azure/durabletask (it will throw an exception instead of sending ExecutionStarted event and updating the instance table).
Thanks!

Just to confirm, you're saying that you sometimes see an orchestrator already in the Running state get set back to Pending when you call await client.ScheduleNewOrchestrationInstanceAsync?. That seems like a bug to me. The case where Pending is set again to Pending seems safe enough, but the former case is more problematic.

Yes- this is absolutely what happens (even not sometimes, using storage).
But more than that, I would also want to have the ability to control the idempotence level, so for example also if the state is 'Completed' (also 'Pending' in my opinion)- it won't re-schedule the orchestration.

@davidmrdavid - any update on this? this is a blocking bug since it breaks the idempotency. As far as I understand from @sagimar comment above, this is a very easy fix on your side (just to expose the extra parameter and call the the method's overload).
Is there an ETA for the fix?

FYI @jviau - would be good if you could take a look at this one

@jviau  - Any update on this fix? this is a critical bug, and we are blocked on this for a very long time.


Open an existing Wix project with Wax?

Is it possible to open and existing Wix project with Wax? I inherited a large Wix project that now requires changes. There are multiple developers in the repo and I'd rather not make a new project.

Of course, since it only edits existing projects - you even can't create new projects with Wax.
If the project already contains directory and file entries, you just have to setup/confirm the existing mappings and eventually solve ambiguities once.


Long markdown tables are not scrollable horizontally

Gitea version (or commit ref): 1.5.0
Git version: 2.18.0
Operating system: Arch Linux
Database (use [x]):

[x] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes (provide example URL)
[ ] No
[ ] Not relevant

Log gist:

Description
Markdown tables are not scrollable if they are longer than the markdown view container. See:
https://try.gitea.io/null-git/test2/src/branch/master/README.md or screenshot
Expected result: have a scroll bar at the bottom of the table an make it scrollable so that one can read the complete table content in the web view.
Screenshots
https://s8.postimg.cc/hm89vtlh1/Screenshot_at_2018-08-16_21-08-42.png

See #4401


remove cower dependency

Not sure if that is worth implementing, but might be in a longer term perspective.
Although pacaur started as a full cower wrapper, it relies today a loss less on it for various reasons:

the dependency solver is done internally, as cower is somewhat difficult to use in a script to retrieve split package dependencies in the correct order;
the dependency solver also has an edge case that is better handled in the bash side;
the download feature has been entirely replaced by git clone;
the new upcoming RPCv5 features (see #406) would require new code to extend cower search capabilities (#341);
the RPC requests still does not use multiinfo as this was implemented after creation (although performance improvement would be very minimal as cower is threaded);
the exit code of cower -u is unconventional, ad it indicates available updates instead of actual errors. This is fine when using cower in a standalone way, but makes it difficult to catch actual errors such as a new libalpm soname incompatibility (#412, #415);
the info strings actually can't be translated (#329);

Cower is still used in the following areas:

[ ] -Sia
[x] -Qua (done in 86009d635b23844c0f0de1bfe399cf37ce753fab)
[x] -Sua, when quickly checking for available updates (done in c16527eedd1225caa4559b5c67abd7d947b878e8)
[ ] -Ssa, with regex support

Most of these point can be replaced by a few json calls with the help of jshon, available in [community]. Regex support of the search feature is the most difficult to replace. It would likely involve a global search then local filtering. Color output should also be checked, and might allow #213 to be fixed.

Alternatively, get back to full cower and use it instead of jshon/ows code. Would however be great if cower was using multiinfo... Investigate if that can be patched.

The reason pacaur used its own json code was because it moved to RPCv3 (that added dependencies fields) before cower did. It never moved back to using cower mostly because I hoped cower would make use of multiinfo, but this is a very minor inconvenient compared to the advantage brought by cower.
The 2 commits above are an improvement, but they shall be replaced by proper cower --format calls.
Closing as 'wontfix' now.


Remove EOS from Makefile

As we're currently relying on docker-compose to provide a development
environment, this removes the outdated EOS targets from the Makefile.
This will prevent having too many different EOS environments out there
and we can standardize on docker-compose instead.
Later on we can work on new Makefile targets where possible to streamline some of the EOS dev env doc instructions
@butonic as discussed

the git history still lives


Use lint-staged

Cool, lint-staged does not break GitHub Desktop client.

Look @okonet :)

👏

Even better with:
{
    "*.js": ["eslint --fix", "git add"]
}

Updated the PR. @okonet thanks for the tool 👍

LGTM


Contributes to issue #35 XML schema validation

Supports new schemaType in imposter
Supports XSD schema validation
Tests for new functionality
No changes to readme

Continues on : https://github.com/friendsofgo/killgrave/pull/85


refactor(devtools): enhance UI with improvments

🔗 Linked issue

❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[x] 👌 Enhancement (improving an existing functionality)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

improved devtools UI, using NSplitPane and NSectionBlock from devtools-ui

thank you!


buger.eth

Hi! What is your PR about?

[x] Add images for your space
[ ] Add custom domain for your space
[ ] Add alias for migrate your space
[ ] Add or edit a skin
~Edit your space with GitHub?~ (deprecated) Please migrate your space to ENS https://docs.snapshot.page/spaces/migrate
~Create your space with GitHub~ (deprecated) Create your space with ENS instead https://docs.snapshot.page/spaces/create

Your images are missing from you PR.
Your space name directory 空格/buger.eth should be similar to your ENS. Follow this example spaces/buger.eth/logo.png.

Done in #1200


Mixer Conditional Quota

This PR implements conditional quota in the new dispatcher.
This fixes a regression caused when quota moved to the new dispatcher.

If a conditional quota does not apply to the request, Mixer returns what was requested.
If a quota is not found on Mixer, mixer still returns what was requested but logs a warning.
It is expected that quotaSpec, quotaSpecBindings and Mixer rules are applied in various order. We should not deny traffic in the interim.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mandarjog
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

mixer/OWNERS [mandarjog]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mandarjog: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-bookInfoTests-v1alpha3.sh
1633b9e7f0195eef5bc85374f666e1f52ab87135
link
/test e2e-bookInfo-envoyv2-v1alpha3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

I reach a different conclusion. Galley will orchestrate delivery of config
so that no transient failures should emerge.  If there are any
inconsistencies in config, they will be caused by actual errors in the
user-authored config, and not by eventual consistency delivery latency.
On Fri, Jul 20, 2018 at 9:30 AM mandarjog<EMAIL_ADDRESS>wrote:

@mandarjog commented on this pull request.
In mixer/pkg/runtime/dispatcher/session.go
https://github.com/istio/istio/pull/7265#discussion_r204100093:

@@ -194,8 +202,11 @@ func (s *session) dispatch() error {
s.waitForDispatched()

if s.variety == tpb.TEMPLATE_VARIETY_QUOTA && !foundQuota {

log.Errorf("Requested quota '%s' is invalid", s.quotaArgs.Quota)

s.err = multierror.Append(s.err, fmt.Errorf("requested quota '%s' is invalid", s.quotaArgs.Quota))

// If quota is not found it is very likely that quotaSpec / quotaSpecBinding was applied first

// We still err on the side of allowing access, but warn about the fact that quota was not found.

Does it cause outage if virtual service and destination rules are applied
out of order? If there is absolutely no other way then asking for specific
staging is ok.
However if we operate under the assumption of pre validated config that is
validated offline or by galley, then the most likely cause of inconsistency
at runtime is staging, which can be trivially addressed.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/7265#discussion_r204100093, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVucHVwXEfDTMVTC1cXpE8CS55B4OL4cks5uIgWggaJpZM4VXUhI
.

@mandarjog if destination rule and virtual service are applied out of
order, then yes, you may get dangling references. Pilot does not check that
resources have been delivered before using them AFAIK.
On Fri, Jul 20, 2018 at 9:43 AM Martin Taillefer<EMAIL_ADDRESS>wrote:

I reach a different conclusion. Galley will orchestrate delivery of config
so that no transient failures should emerge. If there are any
inconsistencies in config, they will be caused by actual errors in the
user-authored config, and not by eventual consistency delivery latency.
On Fri, Jul 20, 2018 at 9:30 AM mandarjog<EMAIL_ADDRESS>wrote:

@mandarjog commented on this pull request.
In mixer/pkg/runtime/dispatcher/session.go
https://github.com/istio/istio/pull/7265#discussion_r204100093:

@@ -194,8 +202,11 @@ func (s *session) dispatch() error {
s.waitForDispatched()

if s.variety == tpb.TEMPLATE_VARIETY_QUOTA && !foundQuota {

log.Errorf("Requested quota '%s' is invalid", s.quotaArgs.Quota)
s.err = multierror.Append(s.err, fmt.Errorf("requested quota '%s' is
invalid", s.quotaArgs.Quota))

// If quota is not found it is very likely that quotaSpec /
quotaSpecBinding was applied first
// We still err on the side of allowing access, but warn about the
fact that quota was not found.

Does it cause outage if virtual service and destination rules are applied
out of order? If there is absolutely no other way then asking for
specific
staging is ok.
However if we operate under the assumption of pre validated config that
is
validated offline or by galley, then the most likely cause of
inconsistency
at runtime is staging, which can be trivially addressed.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/7265#discussion_r204100093, or
mute
the thread
<
https://github.com/notifications/unsubscribe-auth/AVucHVwXEfDTMVTC1cXpE8CS55B4OL4cks5uIgWggaJpZM4VXUhI
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/7265#issuecomment-406657765, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJGIxj4Hy-5M80b2Y7r7DkGe_X6vMVYZks5uIgi0gaJpZM4VXUhI
.

If virtualservice uses a subset that is not defined by a destinationrule, then that is trivially caught at config ingestion time. If the stable configuration is consistent, then we do not need to worry about any other inconsistency. Given consistent input configuration, it is delivered in a single transaction to  the Envoy.
Quota is more complicated because consistent input configuration can also result in runtime inconsistency, since half the configuration goes to Mixer and other half goes to envoy.
Given this: the question is, do we need to rely on the complex stage config delivery mechanism when we don't need to.

There is no single config snapshot delivery to envoy. If envoy connects to
one pilot, gets clusters there, then connects to another pilot, and gets
virtual services there, you can get a dangling reference.
I understand that this is a problem. But doing anything but fail-close,
will prevent fixing this problem in the future with proper staging
mechanism.
On Fri, Jul 20, 2018 at 10:57 AM mandarjog<EMAIL_ADDRESS>wrote:

If virtualservice uses a subset that is not defined by a destinationrule,
then that is trivially caught at config ingestion time. If the stable
configuration is consistent, then we do not need to worry about any other
inconsistency. Given consistent input configuration, it is delivered in a
single transaction to the Envoy.
Quota is more complicated because consistent input configuration can also
result in runtime inconsistency, since half the configuration goes to Mixer
and other half goes to envoy.
Given this: the question is, do we need to rely on the complex stage
config delivery mechanism when we don't need to.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/7265#issuecomment-406679624, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJGIxivGE6UDrHyuHMoiIm9gbnghBXi_ks5uIhodgaJpZM4VXUhI
.

Mandar and I chatted about this and we'll go with this PR for 1.0.
What we'll do for 1.1 is:

Backend or adapter return INVALID_ARGUMENT if asked about an unknown quota.

Similarly, Mixer will also return INVALID_ARGUMENT if it detects an unknown quota before invoking the adapters.

Proxy will have an option to fail open or fail close for unknown quotas.

/lgtm
/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: geeknoid, mandarjog
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

mixer/OWNERS [geeknoid,mandarjog]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


perf(bench): build each benchmark only with deps it needs

#3221  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite


Fix Delete Invalid Room Test case

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
API changes are not detected in this pull request.


Add useDashboardVariables hook

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.88%. Comparing base (60a57ba) to head (af68f4b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
+ Coverage   76.41%   76.88%   +0.47%
==========================================
  Files          61       62       +1
  Lines        1997     2038      +41
  Branches      518      512       -6
==========================================
+ Hits         1526     1567      +41
- Misses        412      468      +56
+ Partials       59        3      -56

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


Refactor volume attach/detach to fix rwx expansion

The problem is that the expansion call disables the frontend and never enables it again which prohibits the share-manager from controlling the volume. We rely on the attach call to reenable the frontend, this pr reworks the csi + api interaction so that we call attach for each volume type and let the volume-manager do the appropriate stuff :)
depends on this pr https://github.com/longhorn/longhorn-manager/pull/822 for the live migration feature, since there was a lot of overlap in the csi/attach/detach changes.
For the review only the last 2 commits are relevant for the rwx expansion support.
longhorn/longhorn#2181

@shuo-wu the volume expansion is fixed by having the csi driver call attach/detach for each volume type including the shared-volumes. This will now reset the left over disabled Frontend from the expansion call. See this commit
https://github.com/longhorn/longhorn-manager/pull/829/commits/76531b74d8633b3102238e16c3e875c6478a88d2

Closed in favor of https://github.com/longhorn/longhorn-manager/pull/844
Feedback adressed in that pr.


Get-AuthToken fails when mfa is expired?

The Get-AuthToken function returns an error when creating an Azure session.
Get-AzContext is not null or empty, but getting an API token unfortunately fails.
Is there another check we can perform to trigger Connect-AzAccount
https://github.com/nicolonsky/AzureADLicensing/blob/master/AzureADLicensing/AzureADLicensing.psm1#L260
Get-AuthToken : Exception calling "Authenticate" with "7" argument(s): "Failed to acquire token silently as no token was found in the cache. Call method
AcquireToken: AADSTS50078: Presented multi-factor authentication has expired due to policies configured by your administrator, you must refresh your mu
lti-factor authentication to access ''.

To be honest I don't like the approach I implemented with the Get-AuthToken & Test-AuthToken. Would be nicer to leverage all authentication stuff on the Az module and just forward potential auth issues to the client. So instead of using my custom functions just passing a token from the AzContext to the web requests and catching the 401 / 403 exceptions with a nice error message that you need to authenticate in advance.
I guess calling Clear-AzContext would solve your issue. But this PowerShell module needs definitely an update. Feel free to submit a PR if you have an idea - otherwise I'll add this to my "to-do" list when I have a little bit more time to spare! Thanks for the feedback by the way!

Should be fixed with https://github.com/nicolonsky/AzureADLicensing/commit/b02b672ac9ed9d45cba1ea5f3bfd97424b20140f


propose: adding exception handler

Hi!
I was playing a little with the scheduler, it works great for small projects.
An improvement I should have implemented was exception handling when a command fails. Could something like this be integrated?
https://github.com/crhdev/cakephp-scheduler/blob/crhdev-patch-exception_handler/src/Command/ScheduleRunCommand.php#L52

yes, this would be a good idea.
I am just not sure if using the event system to react to exceptions is the correct way here... gotta have to think about that.


Update readme.md

Includes instructions on HOW to update tables for MariaDB

I think it's easier to just edit the migration files from json to blob

Except A) its incredibly unclear how to do that and B)blob is the incorrect data type anyway, it should be binary.


MABS V3 UR1 - Backing up Linux VMs not supported on Hyper-V 2019 (only on 2016 and 2012 R2)

Hi, The MABS v3 UR1 protection matrix says that backing up Linux VMs is not supported on Hyper-V 2019, but only on 2016 and 2012 R2.
My question is, is this a mistake on the web page, or is this an outstanding issue that will be fixed in an upcoming release? If it's an outstanding issue, roughly when should we expect to see it addressed?
Thanks.

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

ID: 52f7582c-c2a6-87bb-d236-2066e727c90c
Version Independent ID: 1cbc7ee7-2518-137a-f6d6-d1d62a1a1bc3
Content: MABS (Azure Backup Server) V3 UR1 protection matrix - Azure Backup
Content Source: articles/backup/backup-mabs-protection-matrix.md
Service: backup
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

@s36e175 Thanks for your comment! We will review and provide an update as appropriate.

@s36e175 Backup of Linux VMs running on Windows Server 2019 Hyper-V is supported. We will get the documentation updated to reflect the same. A pull request has been raised https://github.com/MicrosoftDocs/azure-docs-pr/pull/123106 the changes should go live post content owner review.


Error in update.bat

Hello
Your components look great
I am following step by step installation instructions.
Sorry if I made any silly mistakes
I have executed embarcadero\sydney\10_4_2_2update.bat
The backup is correct (fmx and rtl folders are created in embarcadero\sydney\10_4_2)
But the GIT command gives me the following errors:
132 file(s) copied.
....
Patch the source code
Checking patch embarcadero/sydney/10_4_2/fmx/FMX.Canvas.GPU.Helpers.pas...
error: embarcadero/sydney/10_4_2/fmx/FMX.Canvas.GPU.Helpers.pas: No such file or directory
Checking patch embarcadero/sydney/10_4_2/fmx/FMX.Canvas.GPU.pas...
error: embarcadero/sydney/10_4_2/fmx/FMX.Canvas.GPU.pas: No such file or directory
Checking patch embarcadero/sydney/10_4_2/fmx/FMX.Context.GLES.pas...
error: embarcadero/sydney/10_4_2/fmx/FMX/FMX.Context.GLES.pas: No such file or directory
Checking patch embarcadero/sydney/10_4_2/fmx/FMX.Controls.pas...
error: embarcadero/sydney/10_4_2/fmx/FMX/FMX.Controls.pas: No such file or directory
Checking patch embarcadero/sydney/10_4_2/fmx/FMX.Dialogs.iOS.pas...
error: embarcadero/sydney/10_4_2/fmx/FMX/FMX.Dialogs.iOS.pas: No such file or directory
....
Can't find the files, but I don't know how to indicate that the correct path is before C:\Program Files (x86)
Could you please help me?
Thank you very much

You need to have Alexandria 11.3 with the firemonkey source code included


Make modal close on click outside

Hi! 👋
Firstly, thanks for your work on this project! 🙂
The property that adds modal toggle functionality on an element is data-modal-toggle="popup-modal. Originally it is on a button inside the modal. I added it to the div that is around the modal so that users can just click outside the modal to close.
<button class="..." type="button" data-modal-toggle="popup-modal">
    Open modal
</button>

+ <div data-modal-toggle="popup-modal" id="..." tabindex="-1" class="hidden ..." aria-modal="true" role="dialog">
    <div> modal content
      <button type="button" class="..." data-modal-toggle="popup-modal">
        Close modal
      </button>
  </div>
</div>

However now, when user clicks on the close button, the modal will toggle twice and not close (event bubble).
I used patch-package to patch<EMAIL_ADDRESS>to stop event propagation as follows:
diff --git a/node_modules/flowbite/dist/flowbite.js b/node_modules/flowbite/dist/flowbite.js
index ad19e86..124c786 100644
--- a/node_modules/flowbite/dist/flowbite.js
+++ b/node_modules/flowbite/dist/flowbite.js
@@ -3028,8 +3028,9 @@ document.addEventListener('DOMContentLoaded', function () {
       modal.show();
     }

-    el.addEventListener('click', function () {
+    el.addEventListener('click', function (e) {
+      e.stopPropagation();
       modal.toggle();
     });
   });
 });

This issue body was partially generated by patch-package.

Hi @kkurcz,
Thanks for reaching out. This has actually been fixed for the upcoming v2.0 release, ETA is about 2-3 weeks I would say.
There will be two options: data-modal-static="true" or false, and by default it will close when clicking outside.

Ok great, thanks!


AP => AT Bridged AP accounts when replying to another bridged AP accounts aren't bridged to BSKY

Says what it says on the tin. I replicated it here:
AP side:
https://social.atiusamy.com/notes/9uuxrld97fdf07fi
AT side:
https://bsky.app/profile/atiusamy.social.atiusamy.com.ap.brid.gy/post/3kvlimtstgb72
As you can see here, there's no reply on the BSKY side of things.

Yes! This sounds like https://github.com/snarfed/bridgy-fed/issues/1047 ...?

Woops, I don't know the right terms for it and couldn't find that issue! closing as duplicated


Feature/93 introduce versioned schema engine

Coverage decreased (-0.6%) to 76.131% when pulling 2abfc74910b7a84bd9faeedd850d1f7f7cb91141 on feature/93-introduce-versioned-schema-engine into bb5b4f1683f5253e0882984cc5ccd9f47d72c351 on master.

Coverage decreased (-0.4%) to 76.324% when pulling 7afb002710666d1061bf1d5b16a1f26bddaf5ca9 on feature/93-introduce-versioned-schema-engine into bb5b4f1683f5253e0882984cc5ccd9f47d72c351 on master.

Seems we need to // $COVERAGE-OFF$ some compile-time only code.

Coverage decreased (-0.5%) to 76.176% when pulling e459475b526d05f6c733f3d0e10860c8c88b884f on feature/93-introduce-versioned-schema-engine into bb5b4f1683f5253e0882984cc5ccd9f47d72c351 on master.


Available for modules

Since there is no detail with just the title. ❓
So, now it does not know what is the problem. 😠
I should have written the issue in more detail, sorry.... 😞


Update client to the latest version of Threat Stack V2 Api.

Hello! Today we released significant updates to the Beta of our V2 API.
This PR updates this library to work with these changes.
Changes include:

Adding HAWK authentication
Update methods to always require a param that the api requires
Add new endpoints and modify old ones to be more RESTful
Remove methods for the endpoints that were removed

Please let me know if there are any changes you would like to the PR.
You can check out the updated docs: https://apidocs.threatstack.com/

Hi,
What is the difference between API_TOKEN and api_key?

Hey @tushar-eligible good catch. Looks like I missed something in the docs. API_TOKEN is no longer used here. I'll update this PR in a little bit to reflect that.

I want to use this library and getting stuck here, could you please help me here?

user id is not needed ?

@tushar-eligible You do need to pass in a user id. I've made another change to the readme to reflect this.


Crash on hovering the mouse over a doom stone in the end

No idea why it crashed... all other trinkets seem ok. Here's a crash report.
https://mclo.gs/uv2mBv9

What mod adds such a item?

Oh, I'm sorry... moonfabric
https://modrinth.com/mod/moonfabric

I believe such is a simple fix and a slip up with accessories during the porting process that is allowing this issue


Deprecate 'counter' mode for DynamicMaps

This is issue is a companion to #924 about updating the DynamicMap tutorial. I just want to make sure we have a reminder to deprecate this and give examples of how it can be replaced before 1.7.

Done in https://github.com/ioam/holoviews/pull/1238.


AllFilter with OR, bug fix

What this PR does:
bug: when ALL operator is used inside a OR different condition of ALL are concatenated with OR.
AllFilter should to be AND together seperately
Which issue(s) this PR fixes:
Fixes #749
Checklist

[x] Changes manually tested
[x] Automated Tests added/updated
[x] Documentation added/updated
[x] CLA Signed: DataStax CLA

@Yuqi-Du Can you add a test to check the cql generated has brackets correctly for OR and ALL together?

@Yuqi-Du Can you add a test to check the cql generated has brackets correctly for OR and ALL together?

fixed.


Integration of BIFM node in ReactiveMP

This pull request contains:

A BIFM node with update rules.
A BIFM_helper node with update rules.
A demo notebook, with benchmarking comparison.
The NormalWeightedMeanPrecision node without update rules (to be used just as a prior).
A so-called MarginalDistribution wrapper around a regular distribution, required for performing BIFM smoothing through message passing. It allows to propagate marginals directly over the graph as messages. The prod function used for creating marginals simply only keeps the message of type MarginalDistribution.

Changes with respect to the last version (June 2021):

functional_dependencies of BIFM_helper node updated to work with current master branch.
Update rule towards the input has been changed according to Wadehn 2019.
Code refactored/slightly optimized.

This notebook is based on:
F. Wadehn, “State Space Methods with Applications in Biomedical Signal Processing,” ETH Zurich, 2019. Accessed: Jun. 16, 2021. [Online]. Available: https://www.research-collection.ethz.ch/handle/20.500.11850/344762
H. Loeliger, L. Bruderer, H. Malmberg, F. Wadehn, and N. Zalmai, “On sparsity by NUV-EM, Gaussian message passing, and Kalman smoothing,” in 2016 Information Theory and Applications Workshop (ITA), Jan. 2016, pp. 1–10. doi: 10.1109/ITA.2016.7888168.
Credits to Martin the Quincey for implementation and experiments.

Hi @Martindeq98 ,
Thanks a lot for your time and the review!
Indeed I accidentally merged the variable names from two distinct notations, thanks for the catch. The latest commit changes these variable names throughout the entire demo, but does not affect the inference results.
With respect to the input estimation I agree that there is a discrepancy there, which is both visible in the state estimate and input estimation plots. These discrepancies occur around the same time indices, indicating that one causes another (and vice versa). I double-checked the updates and these seem fine. After running the experiments a couple of times, I also noted that the RTS smoother sometimes fails to infer the latent state correctly as it deviates from the actual hidden state. This also resulted in differences in input estimation. In contract, the BIFM smoother did seem to infer the latent state correctly. As the latent state in the experiments is 25 and we encountered numerical stability issues before, I assume that this is what is causing the discrepancy. However, it is important to note that the RTS smoother is the cause of this.
Besides this I see that I forgot the marginal rules for free energy calculation and tests, these will follow shortly.

Codecov Report

Merging #35 (83ec849) into master (3f0c1f7) will decrease coverage by 4.65%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
- Coverage   42.92%   38.27%   -4.66%
==========================================
  Files         104      108       +4
  Lines        2751     2780      +29
==========================================
- Hits         1181     1064     -117
- Misses       1570     1716     +146

Impacted Files
Coverage Δ

src/ReactiveMP.jl
0.00% <ø> (-33.34%)
:arrow_down:

src/distributions/marginal_distribution.jl
0.00% <0.00%> (ø)

src/marginal.jl
41.46% <ø> (ø)

src/nodes/bifm.jl
0.00% <0.00%> (ø)

src/nodes/bifm_helper.jl
0.00% <0.00%> (ø)

src/nodes/mv_normal_weighted_mean_precision.jl
0.00% <0.00%> (ø)

src/macrohelpers.jl
50.00% <0.00%> (-36.85%)
:arrow_down:

src/nodes/gcv.jl
0.00% <0.00%> (-33.34%)
:arrow_down:

src/score.jl
12.50% <0.00%> (-25.60%)
:arrow_down:

... and 9 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 3f0c1f7...83ec849. Read the comment docs.


Cannot find module 'fs'

Possibly related to https://github.com/Microsoft/TypeScript/issues/5149
I'm getting the above error when trying to compile a node reference. I've set up all the typings correctly I believe, my IDE (webStorm) is comfortable with the module name resolution and the compiled files are correct. However the compiler is still throwing these errors for core node components.
Is this a current issue or am I missing something?

What is your moduleResolution compiler setting?

I wasn't aware of that flag, but I've just added it and put in 'node' as the option and I still get the error.

WebStorm doesn't use the TypeScript language service, so I'd file an issue on JetBrains. I think their issue tracker is located at https://youtrack.jetbrains.com/issues/WEB.

Whoops, misread the original issue and removed my comment.

I'm not able to reproduce the issue. You're saying that you're getting issues at the command line, right? What version of TypeScript are you using? What are you typing on the command line to execute the compiler?

I've isolated the commands and created a new folder etc, and I can't reproduce the issue. Let me see if it's something to do with some other element in the ts file I've created.

Found the issue.
My script has #!/usr/local/bin/node at the top. This causes the issue.

this is bug - we should ignore shebang trivia similar to what we do with other kinds if trivia when processing reference comments

Even tho I installed the latest node @types i get an error when tying to use :
import * as fs from "fs";
How about this one :
const config = require( __dirname+'/../../../config.json');
I tried it with :
import * as config from '/../../../config.json';
But I just get Cannot find module...


udp2raw has stopped working, all the  faketcp, icmp, udp  have stopped working

Recently my ISP has filtered all the udp2raw modes,
From today on I tried following configurations and all of them have failed.
It seems the censorship FW has managed to detect and block all the transport methods when the client is going to establish a connection to the server.
Kindly let me know if there is any fix for the issues.
I have tried following configurations and all have failed,
Faketcp,
-s
-l <IP_ADDRESS>:5337
-r <IP_ADDRESS>:5336
-k ********
--raw-mode faketcp
-a
--cipher-mode xor
ICMP
-s
-l <IP_ADDRESS>:4337
-r <IP_ADDRESS>:4336
-k ********
--raw-mode udp
-a
--cipher-mode xor
UDP
-s
-l <IP_ADDRESS>:3337
-r <IP_ADDRESS>:3336
-k *************
--raw-mode icmp
-a
--cipher-mode xor
For each of the modes (ICMP,UDP,FakeTCP) there is a wireguard docker container with corresponding exposed port to
handle the connection between any client and the server based on their preferred connection method (Three WG docker containers).
Having that said all the modes used to work well until few hours ago, once I have restart the server the clients tried to reconnect.
For the UDP,FakeTCP modes and all of them have failed to complete the second handshake and none made a client_ready.
For the ICMP mode made the client_ready connection was establisehd but after few seconds it gets dropped with the following error/warning
state back to client_idle from  client_ready bc of server-->client direction timeout
As a result the wireguard interface is unable to instantiate with the server remoted docker container and the VPN fails to work.
I have tried following configurations with different modes and all of them failed.
Changing the MTU of the Wireguard interface to 1332,1280,1200,1342 ----> All of them failed
Changing the --seq-mode for both client and server side of the udp2raw to value 2 (--seq-mode 2) for all modes (FakeTCP,UDP,ICMP)   ---> all of them have failed
trying --fix-gro on both server/client sides for all the modes ---> didn't work
I am wondering if there is any configuration that I could try in order to make this tunnel to work properly.
There are some suggestions that the AI of the GFW could detect the connection pattern and block it, therefore it might need some
modifications with the packets such as padding I am wondering if any could recommend any solution to this blockage issue?

I don't think it's the "censorship FW" detecting udp2raw.
The traffic is already obfuscated with AES or XOR, with AES the traffic looks like random bits from outside. If you suspect the obfuscation is detected, you can try different  --cipher-mode and --auth-mode . But I don't think that's really the case
If fakeTCP is detected by censorship,  it's possible since anyway it's not real TCP.  But in your case UDP also stops working.  udp2raw's UDP mode is not fakeUDP, it's completely legit UDP traffic.   Which makes me believe "censorship FW"  is not the case even more.
If all the 3 modes stop working together, it's very likely some bigger problem that's not limited to udp2raw, it's possible your environment's problem.  I would suggest you troubleshoot your enviroment, e.g. try if other tunnels works on your environment.

Could you use your main account if you have one?

@wangyu-
I have checked my server VPS setup from two places,
Let's call my first VPS udp2raw server that used to work fine as udp2raw-server-vps-old
In my first attempt I setup another VPS server abroad which comes with   not-filtered internet, let's name this VPS instance udp2raw-client-vps-new.
That said, I was able to connect from udp2raw-client-vps-new to udp2raw-server-vps-old without any issues (I got server_ready log on the server side and client_ready on the client side) using both udp and icmp modes.
Both modes worked fine with no issue.
So, I confirmed that my udp2raw-server-vps-old server is a functioning server.
In the second scenario I tried to connect my router device that I have setup as my wg+udp2raw client to an unrestricted internet via WAN interface, my router worked fine and connected to udp2raw-server-vps-old for both modes icmp and udp with no issue.
So, I confirmed that my router setup and configuration is working fine too.
I was only suspected to the my ISP-Filternet which has upgraded its restriction rules and has managed to interfere/block/drop my router connections to the udp2raw-server-vps-old server.
In addition I checked whether the VPS provider of the udp2raw-server-vps-old might have blocked connections from my public ISP-Filternet but I was able to ssh and connect to my  udp2raw-server-vps-old server directly from the ISP-Filternet.
In addition I have tried another ISP-Filternet with different public ip and the result were the same.
Furthermore I made another VPS server to work as another udp2raw-server-vps-old server but with different public IP offered from VPS provider since I was suspecting that the VPS provider has blacklisted my_ISP-Filternet_ public ip to connect to my udp2raw-server-vps-old public ip address but even the new instance of the udp2raw-server did not worked.
I am almost certain that the blockage is from the ISP-Filternet side.
I got into conclusion that the censor-FW has managed to interrupt and block udp2raw.
following you could read the logs for the udp mode (on the router when WAN is connected to the ISP-Filternet),
(re)sent handshake1
auto added iptables rules
source_addr is now <IP_ADDRESS>
using port 24640
state changed from client_idle to client_pre_handshake
(re)sent handshake1
(re)sent handshake1
(re)sent handshake1
new packet from <IP_ADDRESS>:51820,conv_id=4f9ab6f1
(re)sent handshake1
(re)sent handshake1
state back to client_idle from client_handshake1
source_addr is now <IP_ADDRESS>
using port 18553
state changed from client_idle to client_pre_handshake
(re)sent handshake1
(re)sent handshake1
(re)sent handshake1
(re)sent handshake1
By the way I have tried your recommendation and done following on the server side,
-s
-l <IP_ADDRESS>:4337
-r <IP_ADDRESS>:4336
-k *******************
--raw-mode udp
-a
--fix-gro
--cipher-mode aes128cbc
--auth-mode hmac_sha1
And I get following logs on the server side, (repeats again and again every five seconds)
created new conn,state: server_handshake1,my_id is 59b35775
changed state to server_handshake1,my_id is 59b35775
received handshake oppsite_id:5b9f06de  my_id:59b35775
oppsite const_id:4c900267
grabbed a connection
got packet from a new ip
created new conn,state: server_handshake1,my_id is c6ff12f2
changed state to server_handshake1,my_id is c6ff12f2
received handshake oppsite_id:556f8467  my_id:c6ff12f2
oppsite const_id:4c900267
grabbed a connection
inactive conn cleared
I would like to hear about any suggestion that could solve this issue.
I am wondering if there could be any solution available for this Filternet censorship.

I think I'm at about the same stage in my issue with censorship, works from a foreign VPS, doesn't work on my machines


fix(core-expand-collapse): prevent tabbing to items while collapsed

Addresses #535.
After experimenting with a couple of different methods for fixing this, this seems like the cleanest solution I have found so far. Along with fixing items being able to be tabbed into while the component is collapsed, it also allows the Reveal animation component to pass in its status to children. While we'll have to update a shared component doing this, it could provide some useful functionality down the road.

Not sure if you saw this, or if its anything new, but I found this page to be very informative: http://developer-guide.access4all.ch/en/examples/hidden_content

Seems like the proposed solution is to remove the panel content from the DOM when the panel is closed, and render it when the panel is opened. Seems like a good strategy overall, a couple comments on the implementation though.
Would a simpler solution be to have the Reveal component itself control the visibility of its children? I feel that the intention is that when Reveal is "closed" then the content should be inaccessible. Is an even simpler solution to have the Reveal component set display: none; when it is closed in addition to or instead of height: 0 and overflow: hidden? Or, if that doesn't work, to have the Reveal component just not render its children when closed?

Also, if we are changing some behaviour, we will need a unit test to change other than snapshots. Maybe we need to add one for new behaviour?

@ryanoglesby08 That was informative! Upon further inspection, this is a viable solution. However, should we implement aria-hidden on the animation level? I think it would be a good idea to make that a default behaviour of the reveal animation, so I'm for your suggestion.

@ryanoglesby08 (Deleted my previous reply, turns out aria-hidden seems to actually not work)
I do agree with making this the default behaviour of Reveal though, so I'll see to implementing it that way. (Unless anyone can think of a reason for not hiding elements while Reveal is closed?)

Re: aria-hidden -- I think having aria hidden in addition to display none is still a good idea. I think its just that not all browsers or screen readers behave the same way (as is the case for lost of a11y stuff). For example, Chrome works now when all we have is aria-hidden. I think its best practice to have it too.
Yeah, I'm not sure of a reason to not hide elements when its closed. This animation is only used for ExpandCollapse right now, so it will be a low impact change.

@ryanoglesby08 Moved the behaviour to Reveal. Is a test necessary for this? I think a screenshot might be enough since all it does is add a CSS class. Also, I was able to use visibility instead of display, which is nice for performance. :)

I think I'll also add the aria-hidden logic to Reveal and remove it from ExpandCollapse, since we're giving Reveal the functionality of hiding everything.

I think a screenshot might be enough since all it does is add a CSS class.

I assume you mean snapshot? As in a jest snapshot test? :) If so, then yeah I suppose, seems like adding the inline style and updating the Reveal snapshot works.
And yep, agree with moving the aria-hidden logic to Reveal. Though for that I think that will need some JS logic, in which case I think a dedicated unit test for it would be good.

@ryanoglesby08 Yeah sorry, that's what I meant. I get those mixed up sometimes haha.
And yep! Working on that now! :)

Added prepr versioning results and merge preference to the body.

To quote DJ Khaled, "I've changed. A LOT. Your pull requests can too."
Or something like that. Anyway, I've updated the PR with the test changes and hopefully we're good to go now. :)


Fixed 'this.warnings is undefined' exception when localStorage disabled

The PR to fix a bug in Firefox when this.warnings is not initialised https://github.com/phenomnomnominal/angular-2-local-storage/issues/15

Thanks @srudenko!


disasm/exec/validate/wasm: trivial typo fixes

Trivial typo fixes noticed while looking through the code base.

Codecov Report

Merging #132 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #132   +/-   ##
=======================================
  Coverage   67.55%   67.55%
=======================================
  Files          41       41
  Lines        4787     4787
=======================================
  Hits         3234     3234
  Misses       1281     1281
  Partials      272      272

Impacted Files
Coverage Δ

wasm/index.go
54.54% <ø> (ø)
:arrow_up:

exec/memory.go
86.32% <ø> (ø)
:arrow_up:

disasm/disasm.go
81.78% <ø> (ø)
:arrow_up:

wasm/section.go
49.28% <ø> (ø)
:arrow_up:

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 c2df253...538e842. Read the comment docs.

needs https://github.com/go-interpreter/license/pull/16.

thanks!


Jesse: Watch greymass.com

Jesse requests the watch of the watch_keyword greymass\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

greymass\.com has been seen in 1 true positive, 1 false positive, and 0 NAAs.

Rejected by Jeff Schaller in Charcoal HQ. Reason: 'too many older posts with that url across SE'


s2i usage prints in odd streams

$ s2i usage punchbag
I1107 14:50:55.488423 08625 install.go:251] Using "usage" installed from "image:///usr/libexec/s2i/usage"
This is the punchbag S2I image:
To use it, install S2I: https://github.com/openshift/source-to-image
...

I'm not interest in the log line, so I expected that -q would disable it:
$ s2i usage punchbag -q
I1107 14:54:11.321471 12941 install.go:251] Using "usage" installed from "image:///usr/libexec/s2i/usage"

Hm, that's the exact opposite of what I want. Would it be possible to change that behaviour?
One way to solve this is doing:
$ s2i usage punchbag 2>/dev/null
This is the punchbag S2I image:
To use it, install S2I: https://github.com/openshift/source-to-image
...

Which I guess is okay, but I would still prefer a s2i-native solution where I don't have to tinker around my shell.

s2i usage just outputs the usage script from your image.
i'm not seeing the log line that you're seeing, perhaps the log level has been changed in a newer s2i version:
$  s2i usage centos/ruby-22-centos7
This is a S2I ruby-2.2 centos base image:
To use it, install S2I: https://github.com/openshift/source-to-image

Sample invocation:

s2i build https://github.com/sclorg/s2i-ruby-container.git --context-dir=2.2/test/puma-test-app/ centos/ruby-22-centos7 ruby-sample-app

You can then run the resulting image via:
docker run -p 8080:8080 ruby-sample-app

perhaps the log level has been changed in a newer s2i version

Seems so, this s2i from git master.

@TomasTomecek what i ran was master.

Hm, I don't understand then.

I do now: the issue is present in older version and fixed in the new one.


fix: handle unions in phpdoc_types_order

Prevent union types to be replaced.
Not sure it's the optimal way, suggestions welcome!

Duplicate of #6243. Closing


Wall warping

Description
During a round a player was walking in maints and was just warped into a wall. No tables close by or anything other than an Air canister.
Reproduction

Screenshots

Additional context

No round ID? @GalaxyCad

Closing as inactionable until a round ID is provided.


Spelling stdlib/public/concurrency

This fixes some misspellings in Swift documentation, it is split per https://github.com/apple/swift/pull/42421#issuecomment-1101456910

@swift-ci smoke test

Overall, these changes look correct to me.  I've flagged one place where the part of the actual code is being changed.


is npm run build will give fully minified bundle? or Do we need to add any other minifying plugins?

I'm working on reducing the bundle size of create-react-app, please through some lights on how minify works in create-react-app.
Thanks

Your best bet to learn is to read our webpack config and read the docs: https://webpack.js.org/configuration/optimization/


Consider to remove core-image-weston.bbappend

Consider removing core-image-weston.bbappend in favor of creating a meta package with Xen related stuff

https://github.com/xen-troops/meta-xt-common/blob/8c07688e4c647356ba6e4875162eb473739312b6/meta-xt-driver-domain/recipes-graphics/images/core-image-weston.bbappend#L2


Save compressed HDR histograms

Save compressed HDR histograms in the output json file.
Provide a command to export them to a standalone file.

Implemented in 0.12.0


Resize Before Upload Using Pica Library

Is this currently possible in the react version of fine-uploader? Do I follow the instructions here?http://docs.fineuploader.com/branch/master/features/scaling.html

Yes, it's possible. Simple specify configuration options as detailed in the doc page you referenced when creating an instance of FineUploaderS3 or FineUploader.

Thank you!

The ES6 class wrappers defined in this project are just that - wrappers around the core Fine Uploader library code. With the exception of UI/DOM specific features (since most of those have been re-implemented here using React constructs), all features are available.


Best way to initialize  transition module without importing

Right now if I want to use the selection.transition function I have to write something like:
import { transition } from 'd3-transition';

even if I'm not directly using the transition function. JShint complains that transition is defined, but never used, so I then have to wrap the above code in /*jshint ignore:start*/.../*jshint ignore:end*/ statements. Is there a better way of doing this with the new modularized approach?

@yads you're probably referencing old docs, the correct way to use transition in D3 v4 is to do this:
import { transition } from 'd3-transition';
...

let t = transition().duration(250).delay(100);
mySelection.attr('foo', 0).transition(t).attr('foo', 1) // etc


[Bug]: share_plus-7.1.0 compile error

Platform
android
Plugin
share_plus
Version
7.1.0
Flutter SDK
3.10.6
Steps to reproduce

up share_plus to 7.1.0
flutter build

Code Sample
No response
Logs
share_plus-7.1.0/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt:10:24
Unresolved reference: Share

Flutter Doctor
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.5 22G74 darwin-arm64, locale en-CN)
    • Flutter version 3.10.6 on channel stable at /Users/dl00021ml/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (5 weeks ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/dl00021ml/Documents/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/dl00021ml/Documents/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 75.1.4
    • Dart plugin version 232.8660.129

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.3)
    • IntelliJ at /Users/dl00021ml/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.78.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

[✓] Proxy Configuration
    • HTTP_PROXY is set
    • NO_PROXY is localhost,<IP_ADDRESS>,::1,<IP_ADDRESS>,unpub.bybit.com,code.bydev.io,jfrog.infra.ww5sawfyut0k.bitsvc.io,cts.byapp.io,apple.com
    • NO_PROXY contains localhost
    • NO_PROXY contains <IP_ADDRESS>
    • NO_PROXY contains ::1
    • NO_PROXY contains <IP_ADDRESS>

[✓] Connected device (3 available)
    • iPhone 14 Pro (mobile) • 7ADBAA0F-DC49-4F48-8A68-BE70F5C1909D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 13.5 22G74 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 116.0.5845.96

[✓] Network resources
    • All expected network resources are available.

• No issues found!

### Checklist before submitting a bug

- [X] I Google'd a solution and I couldn't find it
- [X] I searched on StackOverflow for a solution and I couldn't find it
- [X] I read the README.md file of the plugin
- [X] I'm using the latest version of the plugin
- [X] All dependencies are up to date with `flutter pub upgrade`
- [X] I did a `flutter clean`
- [X] I tried running the example project

It looks like some cache issue. Run flutter clean first and then try to build.

Thanks.
Resolved.


Moving components doesn't trigger import updates

I have a component with two files: .vue and .ts in one folder. When I move the folder, imports are not updated
Example component:
src/my-cool-component/my-cool-component.vue
<template>hi</template>
<script lang="ts" src="./my-cool-component.ts"></script>

src/my-cool-component/my-cool-component.ts
export default defineComponent({
  name: "Name",
  setup() {
    ...
  }
})

@johnsoncodehk imports are still not updated. I have to search for files where I import this component and manually update all imports

I can't reproduce it, please open a new issue and provide minimal reproduction.


[prompt] magicmace: tab-completion screws up prompt some times

Please check the existing issues to make sure you're not duplicating a report.
For bug reports, please provide the following information:

Zim commit ref: 8ac887e8e99a7d6d865fe433291729a3f879eaf2
gist of .zimrc: https://gist.github.com/Tmplt/62fa02066dc28e6601cdd725c7624f2a
Zsh version: zsh 5.2 (x86_64-unknown-linux-gnu)
gist of .zshrc: https://github.com/Tmplt/dotfiles/blob/desktop/zsh/.zshrc
$(uname -mosr): Linux 4.6.4-1-zen x86_64 GNU/Linux

Description
Some times, when using tab-complete for command arguments of flags, the prompt's layout is screwed up, as the image shows:

When removing characters, the new left-most location for the cursor is the wrong one:

Because it should be:

Steps to reproduce

Use the magicmace theme
Utilize tab-completion where it can be used

Images or other information

Does not occur every time.
Clearing the command line with ^L works as intended; the cursor is placed in the correct position.

doing prompt eriner and then prompt magicmace seems to solve this issue. I'll diff the two themes and see if I can find a difference in options or something.

This likely has to do with the definition of a line-draw hook somewhere.

I've never heard the term "line-draw hook". When are these used?

To clarify, I was referring to a possibly missing precmd, but that doesn't seem to be the issue.


Little confused about needing to follow mutliple guides for RDP and whFB to work

I have already implemented this architecture (BTW superb update compares to the instructions  as they were a year+ ago!)
https://docs.microsoft.com/en-us/windows/security/identity-protection/hello-for-business/hello-hybrid-aadj-sso-base
I am confused why i need to do https://docs.microsoft.com/en-us/windows/security/identity-protection/hello-for-business/hello-hybrid-aadj-sso-cert if I want RDP to work with WhFB face / pin creds.
I am confused if all the steps in this doc are needed given I already have a CA.
I am confused what this new scenario is giving me?  I think it might be:

my azure ad joined client needs to get a cert from my CA (is that right?)
optionally we want that to work even when outside my firewall and that's why we use the app proxy. Is that right?
can't i do the same thing by just using the certificate sever web portal to request a cert for each device?

Maybe a bit more documentation upfront on what this scenario is doing and why would help?
Is it ok to layer this solution over the top of my already configured WhFB solution - or will they conflict with each doc.
BTW overall the doc looks super, i am just concerned with implementing it in conjunction with the WhFB setup i have already done (which i need because i have some server devices that only talk kerberos when making NTLM connections)
Or should i tear down my hybrid aadj-sso-base implementation and just do this?
My point being i can't tell from the docs, they need just a tiny amount more contenxt.

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

ID: 9f709fd4-0b5d-b238-4060-222d550cd538
Version Independent ID: fb3f29da-2236-c47d-6bea-8efbcec8d7d3
Content: Using Certificates for AADJ On-premises Single-sign On single sign-on - Microsoft 365 Security
Content Source: windows/security/identity-protection/hello-for-business/hello-hybrid-aadj-sso-cert.md
Product: w10
GitHub Login: @mapalko
Microsoft Alias: mapalko

closing, i am stupid,  there is note right there on the first page to do the base-sso stuff firs

closing, i am stupid,  there is note right there on the first page to do the base-sso stuff firs


chore(ci): Publish to ghcr.io as well

Publish to ghcr.io as well where we have generous free download quota to prevent being rate-limited by dockerhub.

@deploy


name does not appear in full

this is weird, I don't know what causes it, on other devices it works, but on my computer it doesn't work
for css,html and js file types not working, see this

and this when I check with :lspInfo

but for other files like cpp (clangd) it works

this is my config, i coppied it from
local M = {
  "hrsh7th/nvim-cmp",
  commit = "cfafe0a1ca8933f7b7968a287d39904156f2c57d",
  dependencies = {
    {
      "hrsh7th/cmp-nvim-lsp",
      commit = "0e6b2ed705ddcff9738ec4ea838141654f12eeef",
    },
    {
      "hrsh7th/cmp-buffer",
      commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa",
    },
    {
      "hrsh7th/cmp-path",
      commit = "91ff86cd9c29299a64f968ebb45846c485725f23",
    },
    {
      "hrsh7th/cmp-cmdline",
      commit = "23c51b2a3c00f6abc4e922dbd7c3b9aca6992063",
    },
    {
      "saadparwaiz1/cmp_luasnip",
      commit = "18095520391186d634a0045dacaa346291096566",
    },
    {
      "L3MON4D3/LuaSnip",
      commit = "9bff06b570df29434a88f9c6a9cea3b21ca17208",
      event = "InsertEnter",
      dependencies = {
        "rafamadriz/friendly-snippets",
        commit = "a6f7a1609addb4e57daa6bedc300f77f8d225ab7",
      },
    },
    {
      "hrsh7th/cmp-nvim-lua",
      commit = "f3491638d123cfd2c8048aefaf66d246ff250ca6",
    },
  },
  event = {
    "InsertEnter",
    "CmdlineEnter",
  },
}

function M.config()
  local cmp = require "cmp"
  local luasnip = require "luasnip"
  local snip = luasnip.snippet
  local node = luasnip.snippet_node
  local text = luasnip.text_node
  local insert = luasnip.insert_node
  local func = luasnip.function_node
  local choice = luasnip.choice_node
  local dynamic = luasnip.dynamic_node

  require("luasnip.loaders.from_vscode").lazy_load{}

  local check_backspace = function()
    local col = vim.fn.col "." - 1
    return col == 0 or vim.fn.getline("."):sub(col, col):match "%s"
  end

  local kind_icons = {
    Text = "",
    Method = "",
    Function = "",
    Constructor = "",
    Field = "",
    Variable = "",
    Class = "",
    Interface = "",
    Module = "",
    Property = "",
    Unit = "",
    Value = "",
    Enum = "",
    Keyword = "",
    Snippet = "",
    Color = "",
    File = "",
    Reference = "",
    Folder = "",
    EnumMember = "",
    Constant = "",
    Struct = "",
    Event = "",
    Operator = "",
    TypeParameter = "",
  }

  cmp.setup {
    snippet = {
      expand = function(args)
        luasnip.lsp_expand(args.body) -- For `luasnip` users.
      end,

      luasnip.add_snippets(nil,{
        cpp = {
          snip({
              trig = "scout",
              name = "std::cout",
              dscr = "ouput to screen",
            },{
              text "std::cout<<",
              insert(1,""),
              insert(0,";"),
          }),

          snip({
              trig = "scin",
              name = "std::cin",
              dscr = "input from user",
           },{
              text "std::cin>>",
              insert(1,""),
              insert(0,";"),
          })
        }
      })
    },

    mapping = cmp.mapping.preset.insert {
      ["<C-k>"] = cmp.mapping.select_prev_item(),
      ["<C-j>"] = cmp.mapping.select_next_item(),
      ["<C-b>"] = cmp.mapping(cmp.mapping.scroll_docs(-1), { "i", "c" }),
      ["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(1), { "i", "c" }),
      ["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }),
      ["<C-e>"] = cmp.mapping {
        i = cmp.mapping.abort(),
        c = cmp.mapping.close(),
      },
      -- Accept currently selected item. If none selected, `select` first item.
      -- Set `select` to `false` to only confirm explicitly selected items.
      ["<CR>"] = cmp.mapping.confirm { select = true },
      ["<Tab>"] = cmp.mapping(function(fallback)
        if cmp.visible() then
          cmp.select_next_item()
        elseif luasnip.expandable() then
          luasnip.expand()
        elseif luasnip.expand_or_jumpable() then
          luasnip.expand_or_jump()
        elseif check_backspace() then
          fallback()
        else
          fallback()
        end
      end, {
        "i",
        "s",
      }),
      ["<S-Tab>"] = cmp.mapping(function(fallback)
        if cmp.visible() then
          cmp.select_prev_item()
        elseif luasnip.jumpable(-1) then
          luasnip.jump(-1)
        else
          fallback()
        end
      end, {
        "i",
        "s",
      }),
    },
    formatting = {
      fields = { "kind", "abbr", "menu" },
      format = function(entry, vim_item)
        vim_item.kind = kind_icons[vim_item.kind]
        vim_item.menu = ({
          nvim_lsp = "",
          nvim_lua = "",
          luasnip = "",
          buffer = "",
          path = "",
          emoji = "",
        })[entry.source.name]
        return vim_item
      end,
    },
    sources = {
      { name = "nvim_lsp" },
      { name = "nvim_lua" },
      { name = "luasnip" },
      { name = "buffer" },
      { name = "path" },
    },
    confirm_opts = {
      behavior = cmp.ConfirmBehavior.Replace,
      select = false,
    },
    window = {
      completion = cmp.config.window.bordered(),
      documentation = cmp.config.window.bordered(),
    },
    experimental = {
      ghost_text = true,
    },
  }
end

return M

Hi,
I am discovering Neovim so I may be wrong.
My though is that the full completion is brought by the lsp client, not the snippet engine.
I have no issue with lunar vim but with nvim I had to be explicit and add something like
require'lspconfig'.ccls.setup{}
For LunarVim according to the doc I think this means add cssls to the Mason server block  ( alongside with all the lsp clients you need)
-- lua/utils/init.lua
M.servers = {
	"lua_ls",
	"cssls",
	"html",
	"tsserver",
	"pyright",
......
}

Hope this can help

The problem has been solved, I just installed vim from scratch, at first I
installed it via snap, thank you
On Sat, Jun 3, 2023, 23:01 erizo-dev @.***> wrote:

Hi,
I am discovering Neovim so I may be wrong.
My though is that the full completion is brought by the lsp client, not
the snippet engine.
I have no issue with lunar vim but with nvim I had to be explicit and add
something like
require'lspconfig'.ccls.setup{}
For LunarVim according to the doc
https://github.com/LunarVim/nvim-basic-ide I think this means add cssls
to the Mason server block ( alongside with all the lsp clients you need)
-- lua/utils/init.lua
M.servers = {
"lua_ls",
"cssls",
"html",
"tsserver",
"pyright",
......
}
Hope this can help
—
Reply to this email directly, view it on GitHub
https://github.com/rafamadriz/friendly-snippets/issues/305#issuecomment-1575040104,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATM3O72BDMNQUYQO4DQJD2DXJNNXNANCNFSM6AAAAAAYVNMOWU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Kerberos and KerberosSampler unexpected sampler selection

Our docs make it appear that Kerberos and KerberosSampler should pick up the solver from the config file.
See:
https://docs.ocean.dwavesys.com/projects/hybrid/en/latest/reference/reference.html#hybrid.reference.kerberos.KerberosSampler
qpu_sampler (dimod.Sampler, optional, default=DWaveSampler()):
Quantum sampler such as a D-Wave system.
Unfortunately under the hood feature selection is used first, so config is never considered.
We should either change behaviour or change docs.
It seems like a behaviour change would make the behaviour more intuitive.

The problem appears to come from hybrid/samplers.py, line 80.  This line does a
qpu_sampler = DWaveSampler(solver=dict(qpu=True))

instead of querying the configuration file.  I haven't yet checked the DWaveSampler code, but based on my observations, the above appears to be returning the alphabetically first solver instead of the solver that appears first in dwave.conf.  The following replacement code returns the sampler I'd expect:
with Client.from_config(client="qpu") as client:
    qpu_sampler = client.get_solver()

I'm thinking that DWaveSampler is perhaps at fault here.  Given a set of filters, it should return the first match in the configuration file, not an arbitrary match.

The solver=dict(qpu=True) part is actually a (temporary) fix for currently unexpected (unwanted) behavior of DWaveSampler (see https://github.com/dwavesystems/dwave-system/issues/288) -- by default it will not filter-out non-QPU solver.
Nevertheless, the configuration file is queried (unless explicitly skipped with config_file=False on Client construction), it's just that solver definition is overridden. However, ordering of profiles (after first) is not relevant, since the first profile is used by default, unless explicitly specified with profile on Client construction or DWAVE_PROFILE env var.
With introduction of feature-based solver filtering (check examples at the end), ordering of solvers is determined with order_by argument in get_solver/get_solvers (defaulting to pick the solver with least avg_load).
In short, by specifying client type (in code or config) and not specifying solver (in code), solver can be defined via config or environment. (That the behavior we'll have in DWaveSampler after https://github.com/dwavesystems/dwave-system/issues/288).

Nevertheless, the configuration file is queried (unless explicitly skipped with config_file=False on Client construction), it's just that solver definition is overridden. However, ordering of profiles (after first) is not relevant, since the first profile is used by default, unless explicitly specified with profile on Client construction or DWAVE_PROFILE env var.

It looks like what's actually happening is that my first profile is chosen, but the solver specified in that profile is being ignored.  Is that what you mean by "that solver definition is overridden"?  It's possible that my least loaded solver is what's getting selected—above I had guessed alphabetically first—but in my case it's least loaded because it's an inferior solver (a D-Wave 2X compatibility mode solver).  Setting DWAVE_API_SOLVER in my environment doesn't seem to help.  Will this be fixed with  dwavesystems/dwave-system#288?

Yes, solver kwarg overrides DWAVE_API_SOLVER env var, which overrides solver read from config files. Same rule applies to other variables as well (token, endpoint, client, etc).
https://github.com/dwavesystems/dwave-system/issues/288 will eliminate the need to supply solver kwarg if you need a QPU solver, in turn allowing environment or config file variable to determine the solver used (BTW, it will still be possible to fail with SolverNotFoundError exception if solver from config is non-QPU, when DWaveSampler will implicitly use client="qpu").
In the meantime, I'll patch Kerberos to use:
qpu_sampler = DWaveSampler(client="qpu")

effectively simulating https://github.com/dwavesystems/dwave-system/issues/288, and resolving this issue.
Config subsystem in dwave-cloud-client/Ocean is quite different from the one in the old SAPI client. It's layered and hierarchical with profiles across multiple config files being inherited/extended, environment overriding config file, and code overriding everything. I hope Client.from_config and client configuration section provide enough details (if not, please let us know).


Update the new preliminary population data from the 2021 census

As our idea in the update is to update the new preliminary population data from the 2021 census so that we can make further updates quickly once the full census data is published.
For now, the plan is the populate the NepalMap with preliminary data.
TODO

[x] Make sure the old datasets are removed
[x] Go to https://opendatanepal.com/dataset/preliminary-data-of-national-population-and-housing-census-2021 to obtain the data
[x] Update the NepalMap with new datasets
[x] Submit PR for the review

Done with #13


Ticket type admin

issue #84

Current coverage is 91.75% (diff: 100%)

Merging #94 into master will increase coverage by 0.52%

@@             master        #94   diff @@
==========================================
  Files            21         21
  Lines           422        449    +27
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            385        412    +27
  Misses           37         37
  Partials          0          0

Powered by Codecov. Last update 2f6d9dc...9cf8b01

@kisso will you have a chance to do the suggested improvements (in near future)? I have done some work on ticket_type model (other sections), so just let me know if you will update the code, or shall i merge your branch into mine and I will do the improvements as part of mine PR. Thanks.

@ricco386 I think better way will be that you will merge branch, I am 2nd week at school and we got a lot of tasks to program, so I can't do it right now. Sorry, but when I will be available I will work on project :)

@kisso Thanks.
I have merged the changes into my branch and will be part of different PR.


Julia LateLowerGCFrame Assertion

When running
using Enzyme
using ComponentArrays

const x = ComponentVector(; a=1.0)
const u = ComponentVector(; a=1.0, b=1.0)

Enzyme.gradient(Enzyme.ForwardMode(), p -> sum(copy(x)), u)

on: Intel MacOS 12.6, Julia 1.8.2, Enzyme v0.10.12, ComponentArrays v0.13.4
I get:
signal (11): Segmentation fault: 11
in expression starting at ~/mwe.jl:7
_ZN16LateLowerGCFrame13NumberAllBaseER5StatePN4llvm5ValueE at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-codegen.1.8.dylib (unknown line)
_ZN16LateLowerGCFrame10NumberBaseER5StatePN4llvm5ValueE at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-codegen.1.8.dylib (unknown line)
_ZN16LateLowerGCFrame6NumberER5StatePN4llvm5ValueE at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-codegen.1.8.dylib (unknown line)
_ZN16LateLowerGCFrame9LocalScanERN4llvm8FunctionE at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-codegen.1.8.dylib (unknown line)
_ZN16LateLowerGCFrame13runOnFunctionERN4llvm8FunctionE at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-codegen.1.8.dylib (unknown line)
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libLLVM.dylib (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libLLVM.dylib (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libLLVM.dylib (unknown line)
LLVMRunPassManager at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libLLVM.dylib (unknown line)
LLVMRunPassManager at ~/.julia/packages/LLVM/WjSQG/lib/13/libLLVM_h.jl:4898 [inlined]
run! at ~/.julia/packages/LLVM/WjSQG/src/passmanager.jl:39 [inlined]
#109 at ~/.julia/packages/Enzyme/7ekWs/src/compiler/optimize.jl:501
#ModulePassManager#64 at ~/.julia/packages/LLVM/WjSQG/src/passmanager.jl:33
unknown function (ip: 0x10a16eafa)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
ModulePassManager at ~/.julia/packages/LLVM/WjSQG/src/passmanager.jl:30
post_optimze! at ~/.julia/packages/Enzyme/7ekWs/src/compiler/optimize.jl:498 [inlined]
post_optimze! at ~/.julia/packages/Enzyme/7ekWs/src/compiler/optimize.jl:492 [inlined]
_thunk at ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6339 [inlined]
_thunk at ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6315
unknown function (ip: 0x108f9c1a9)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
cached_compilation at ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6359
unknown function (ip: 0x108f74ea1)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
#s836#163 at ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6419 [inlined]
#s836#163 at ./none:0
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
GeneratedFunctionStub at ./boot.jl:582
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
jl_call_staged at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
ijl_code_for_staged at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
get_staged at ./compiler/utilities.jl:114
retrieve_code_info at ./compiler/utilities.jl:126 [inlined]
InferenceState at ./compiler/inferencestate.jl:284
typeinf_edge at ./compiler/typeinfer.jl:868
abstract_call_method at ./compiler/abstractinterpretation.jl:647
abstract_call_gf_by_type at ./compiler/abstractinterpretation.jl:139
abstract_call_known at ./compiler/abstractinterpretation.jl:1716
abstract_call at ./compiler/abstractinterpretation.jl:1786
abstract_call at ./compiler/abstractinterpretation.jl:1753
abstract_eval_statement at ./compiler/abstractinterpretation.jl:1910
typeinf_local at ./compiler/abstractinterpretation.jl:2386
typeinf_nocycle at ./compiler/abstractinterpretation.jl:2482
_typeinf at ./compiler/typeinfer.jl:230
typeinf at ./compiler/typeinfer.jl:213
typeinf_edge at ./compiler/typeinfer.jl:877
abstract_call_method at ./compiler/abstractinterpretation.jl:647
abstract_call_gf_by_type at ./compiler/abstractinterpretation.jl:139
abstract_call_known at ./compiler/abstractinterpretation.jl:1716
abstract_call at ./compiler/abstractinterpretation.jl:1786
abstract_call at ./compiler/abstractinterpretation.jl:1753
abstract_eval_statement at ./compiler/abstractinterpretation.jl:1910
typeinf_local at ./compiler/abstractinterpretation.jl:2360
typeinf_nocycle at ./compiler/abstractinterpretation.jl:2482
_typeinf at ./compiler/typeinfer.jl:230
typeinf at ./compiler/typeinfer.jl:213
typeinf_ext at ./compiler/typeinfer.jl:967
typeinf_ext_toplevel at ./compiler/typeinfer.jl:1000
typeinf_ext_toplevel at ./compiler/typeinfer.jl:996
jfptr_typeinf_ext_toplevel_18218.clone_1 at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
jl_type_infer at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
jl_generate_fptr_impl at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-codegen.1.8.dylib (unknown line)
jl_compile_method_internal at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
#gradient#30 at ~/.julia/packages/Enzyme/7ekWs/src/Enzyme.jl:582
unknown function (ip: 0x108f4f968)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
gradient at ~/.julia/packages/Enzyme/7ekWs/src/Enzyme.jl:578
unknown function (ip: 0x108f4f20e)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
do_call at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
eval_body at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
jl_interpret_toplevel_thunk at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
jl_toplevel_eval_flex at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
jl_toplevel_eval_flex at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
ijl_toplevel_eval_in at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
eval at ./boot.jl:368 [inlined]
include_string at ./loading.jl:1428
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
_include at ./loading.jl:1488
include at ./Base.jl:419
jfptr_include_45928.clone_1 at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
exec_options at ./client.jl:303
_start at ./client.jl:522
jfptr__start_36967.clone_1 at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
true_main at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
jl_repl_entrypoint at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
Allocations: 33356866 (Pool: 33318358; Big: 38508); GC: 34

Context: this discourse thread,

So this error doesn't actually come from Enzyme, but Julia itself (and perhaps this would be best moved to Julia).
In essence what appears to be happening is that we have a function argument as follows:
[2 x { {} addrspace(10)* } addrspace(11)*] %"'"

The particular error occurs here: https://github.com/JuliaLang/julia/blob/master/src/llvm-late-gc-lowering.cpp#L917
for an extractvalue:
  %3 = extractvalue [2 x { {} addrspace(10)* } addrspace(11)*] %"'", 1, !dbg !33

Tracked.Size() == 0 from auto Tracked = TrackCompositeType(EVI->getAggregateOperand()->getType()); since TrackCompositeType only recurses on addrspace10: https://github.com/JuliaLang/julia/blob/54e68997108d33a6478bc1bfbbc2b7d1ea072202/src/llvm-late-gc-lowering.cpp#L429
However, on the other end of the assertion:
# called now with the argument
auto BaseNumbers = NumberAll(S, EVI->getAggregateOperand());
# becomes
auto tracked = CountTrackedPointers(CurrentV->getType());

This call is fine with any form of special pointer: https://github.com/JuliaLang/julia/blob/54e68997108d33a6478bc1bfbbc2b7d1ea072202/src/llvm-late-gc-lowering.cpp#L392 including the addrspace11 at the outside, causing it to return 2 -- hence the mismatch.
@keno @vtjnash which is the correct behavior?

Special pointers in FCA is often incorrect IR, since this pass would need to know how to make a shadow object and trace it, and derived pointers are prohibited by the language semantics from appearing as fields. But it should count as a trackable pointer, since it is required to be tracked

Yeah the rough semantics we're emitting here is to coalesce several arguments passed by reference as { {} addrspace(10)* } addrspace(11)* into a single register. So in this case the caller would've had a rooted object that it passes here.

The fix was merged into Julia proper, closing here. You will need a version of julia with the fix.

Thanks for the Julia fix, but when running the above example with: Julia version 1.9.0-DEV.1680 (commit 42563aac30) I get:
ERROR: Enzyme compilation failed.
Current scope:
; Function Attrs: mustprogress willreturn
define double @preprocess_julia__3_3595_inner.1({ {} addrspace(10)* } %0) local_unnamed_addr #7 !dbg !194 {
entry:
  %1 = alloca { {} addrspace(10)* }, align 8
  %2 = bitcast { {} addrspace(10)* }* %1 to i8*
  call void @llvm.lifetime.start.p0i8(i64 noundef 8, i8* noundef nonnull align 8 dereferenceable(8) %2) #8
  %3 = call {}*** @julia.get_pgcstack() #8
  %ptls_field.i3 = getelementptr inbounds {}**, {}*** %3, i64 2
  %4 = bitcast {}*** %ptls_field.i3 to i64***
  %ptls_load.i45 = load i64**, i64*** %4, align 8, !tbaa !12
  fence syncscope("singlethread") seq_cst
  %5 = getelementptr inbounds i64*, i64** %ptls_load.i45, i64 2
  %safepoint.i = load i64*, i64** %5, align 8, !tbaa !16, !invariant.load !11
  %6 = load volatile i64, i64* %safepoint.i, align 8
  fence syncscope("singlethread") seq_cst
  %7 = load atomic {} addrspace(10)*, {} addrspace(10)** inttoptr (i64<PHONE_NUMBER> to {} addrspace(10)**) unordered, align 16, !dbg !195, !tbaa !169, !nonnull !11, !dereferenceable !30, !align !31
  %8 = call nonnull {} addrspace(10)* @ijl_array_copy({} addrspace(10)* nonnull %7) #8, !dbg !199
  %.fca.0.gep = getelementptr inbounds { {} addrspace(10)* }, { {} addrspace(10)* }* %1, i64 0, i32 0, !dbg !200
  store {} addrspace(10)* %8, {} addrspace(10)** %.fca.0.gep, align 8, !dbg !200
  %9 = addrspacecast { {} addrspace(10)* }* %1 to { {} addrspace(10)* } addrspace(11)*, !dbg !200
  %10 = call fastcc double @julia__mapreduce_3598({ {} addrspace(10)* } addrspace(11)* nocapture nofree noundef nonnull readonly align 8 dereferenceable(8) %9) #7, !dbg !200
  call void @llvm.lifetime.end.p0i8(i64 noundef 8, i8* noundef nonnull %2) #8, !dbg !209
  ret double %10, !dbg !210
}

; Function Attrs: mustprogress willreturn
define double @preprocess_julia__3_3595_inner.1({ {} addrspace(10)* } %0) local_unnamed_addr #7 !dbg !194 {
entry:
  %1 = alloca { {} addrspace(10)* }, align 8
  %2 = bitcast { {} addrspace(10)* }* %1 to i8*
  call void @llvm.lifetime.start.p0i8(i64 noundef 8, i8* noundef nonnull align 8 dereferenceable(8) %2) #8
  %3 = call {}*** @julia.get_pgcstack() #8
  %ptls_field.i3 = getelementptr inbounds {}**, {}*** %3, i64 2
  %4 = bitcast {}*** %ptls_field.i3 to i64***
  %ptls_load.i45 = load i64**, i64*** %4, align 8, !tbaa !12
  fence syncscope("singlethread") seq_cst
  %5 = getelementptr inbounds i64*, i64** %ptls_load.i45, i64 2
  %safepoint.i = load i64*, i64** %5, align 8, !tbaa !16, !invariant.load !11
  %6 = load volatile i64, i64* %safepoint.i, align 8
  fence syncscope("singlethread") seq_cst
  %7 = load atomic {} addrspace(10)*, {} addrspace(10)** inttoptr (i64<PHONE_NUMBER> to {} addrspace(10)**) unordered, align 16, !dbg !195, !tbaa !169, !nonnull !11, !dereferenceable !30, !align !31
  %8 = call nonnull {} addrspace(10)* @ijl_array_copy({} addrspace(10)* nonnull %7) #8, !dbg !199
  %.fca.0.gep = getelementptr inbounds { {} addrspace(10)* }, { {} addrspace(10)* }* %1, i64 0, i32 0, !dbg !200
  store {} addrspace(10)* %8, {} addrspace(10)** %.fca.0.gep, align 8, !dbg !200
  %9 = addrspacecast { {} addrspace(10)* }* %1 to { {} addrspace(10)* } addrspace(11)*, !dbg !200
  %10 = call fastcc double @julia__mapreduce_3598({ {} addrspace(10)* } addrspace(11)* nocapture nofree noundef nonnull readonly align 8 dereferenceable(8) %9) #7, !dbg !200
  call void @llvm.lifetime.end.p0i8(i64 noundef 8, i8* noundef nonnull %2) #8, !dbg !209
  ret double %10, !dbg !210
}

; Function Attrs: mustprogress willreturn
define internal [2 x double] @fwddiffe2julia__3_3595_inner.1({ {} addrspace(10)* } %0, [2 x { {} addrspace(10)* }] %"'") local_unnamed_addr #7 !dbg !211 {
entry:
  %"'ipa" = alloca { {} addrspace(10)* }, align 8
  %1 = insertvalue [2 x { {} addrspace(10)* }*] undef, { {} addrspace(10)* }* %"'ipa", 0
  %"'ipa5" = alloca { {} addrspace(10)* }, align 8
  %2 = insertvalue [2 x { {} addrspace(10)* }*] %1, { {} addrspace(10)* }* %"'ipa5", 1
  store { {} addrspace(10)* } zeroinitializer, { {} addrspace(10)* }* %"'ipa", align 8
  store { {} addrspace(10)* } zeroinitializer, { {} addrspace(10)* }* %"'ipa5", align 8
  %3 = alloca { {} addrspace(10)* }, align 8
  %_replacementA = phi i8*
  %4 = call {}*** @julia.get_pgcstack() #8
  %ptls_field.i3 = getelementptr inbounds {}**, {}*** %4, i64 2
  %5 = bitcast {}*** %ptls_field.i3 to i64***
  %ptls_load.i45 = load i64**, i64*** %5, align 8, !tbaa !12
  fence syncscope("singlethread") seq_cst
  %6 = getelementptr inbounds i64*, i64** %ptls_load.i45, i64 2
  %safepoint.i = load i64*, i64** %6, align 8, !tbaa !16, !invariant.load !11
  %7 = load volatile i64, i64* %safepoint.i, align 8
  fence syncscope("singlethread") seq_cst
  %8 = load atomic {} addrspace(10)*, {} addrspace(10)** inttoptr (i64<PHONE_NUMBER> to {} addrspace(10)**) unordered, align 16, !dbg !212, !tbaa !169, !nonnull !11, !dereferenceable !30, !align !31
  %9 = call nonnull {} addrspace(10)* @ijl_array_copy({} addrspace(10)* nonnull %8) #8, !dbg !216
  %"'dual_phi2" = phi [2 x {} addrspace(10)*] , !dbg !217
  %.fca.0.gep = getelementptr inbounds { {} addrspace(10)* }, { {} addrspace(10)* }* %3, i64 0, i32 0, !dbg !217
  %".fca.0.gep'dual_phi" = phi [2 x {} addrspace(10)**] , !dbg !217
  store {} addrspace(10)* %9, {} addrspace(10)** %.fca.0.gep, align 8, !dbg !217
  %10 = addrspacecast { {} addrspace(10)* }* %3 to { {} addrspace(10)* } addrspace(11)*, !dbg !217
  %"'dual_phi3" = phi [2 x { {} addrspace(10)* } addrspace(11)*] , !dbg !217
  %11 = call fastcc double @julia__mapreduce_3598({ {} addrspace(10)* } addrspace(11)* nocapture nofree noundef nonnull readonly align 8 dereferenceable(8) %10) #7, !dbg !217
  %"'dual_phi4" = phi fast [2 x double] , !dbg !226
  call void @llvm.lifetime.end.p0i8(i64 noundef 8, i8* noundef nonnull %_replacementA) #8, !dbg !226
  ret double %11, !dbg !227

allocsForInversion:                               ; No predecessors!
}

in Mode: ForwardMode
cannot handle unknown instruction
  fence syncscope("singlethread") seq_cst

Stacktrace:
  [1] julia_error(cstr::Cstring, val::Ptr{LLVM.API.LLVMOpaqueValue}, errtype::Enzyme.API.ErrorType, data::Ptr{Nothing})
    @ Enzyme.Compiler ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:3498
  [2] EnzymeCreateForwardDiff(logic::Enzyme.Logic, todiff::LLVM.Function, retType::Enzyme.API.CDIFFE_TYPE, constant_args::Vector{Enzyme.API.CDIFFE_TYPE}, TA::Enzyme.TypeAnalysis, returnValue::Bool, mode::Enzyme.API.CDerivativeMode, width::Int64, additionalArg::Ptr{Nothing}, typeInfo::Enzyme.FnTypeInfo, uncacheable_args::Vector{Bool})
    @ Enzyme.API ~/.julia/packages/Enzyme/7ekWs/src/api.jl:137
  [3] enzyme!(job::GPUCompiler.CompilerJob{Enzyme.Compiler.EnzymeTarget, Enzyme.Compiler.EnzymeCompilerParams, GPUCompiler.FunctionSpec{var"#3#4", Tuple{ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}}}}}, mod::LLVM.Module, primalf::LLVM.Function, adjoint::GPUCompiler.FunctionSpec{var"#3#4", Tuple{BatchDuplicated{ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}}, 2}}}, mode::Enzyme.API.CDerivativeMode, width::Int64, parallel::Bool, actualRetType::Type, dupClosure::Bool, wrap::Bool, modifiedBetween::Bool, returnPrimal::Bool, jlrules::Vector{String})
    @ Enzyme.Compiler ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:4774
  [4] codegen(output::Symbol, job::GPUCompiler.CompilerJob{Enzyme.Compiler.EnzymeTarget, Enzyme.Compiler.EnzymeCompilerParams, GPUCompiler.FunctionSpec{var"#3#4", Tuple{ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}}}}}; libraries::Bool, deferred_codegen::Bool, optimize::Bool, ctx::LLVM.ThreadSafeContext, strip::Bool, validate::Bool, only_entry::Bool, parent_job::Nothing)
    @ Enzyme.Compiler ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:5854
  [5] codegen
    @ ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:5524 [inlined]
  [6] _thunk
    @ ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6321 [inlined]
  [7] _thunk(job::GPUCompiler.CompilerJob{Enzyme.Compiler.EnzymeTarget, Enzyme.Compiler.EnzymeCompilerParams, GPUCompiler.FunctionSpec{var"#3#4", Tuple{ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}}}}})
    @ Enzyme.Compiler ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6315
  [8] cached_compilation(job::GPUCompiler.CompilerJob, key::UInt64, specid::UInt64)
    @ Enzyme.Compiler ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6359
  [9] #s859#163
    @ ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6419 [inlined]
 [10] var"#s859#163"(F::Any, Fn::Any, DF::Any, A::Any, TT::Any, Mode::Any, ModifiedBetween::Any, width::Any, specid::Any, ReturnPrimal::Any, ::Any, #unused#::Type, f::Any, df::Any, #unused#::Type, tt::Any, #unused#::Type, #unused#::Type, #unused#::Type, #unused#::Type, #unused#::Any)
    @ Enzyme.Compiler ./none:0
 [11] (::Core.GeneratedFunctionStub)(::Any, ::Vararg{Any})
    @ Core ./boot.jl:599
 [12] thunk(f::var"#3#4", df::Nothing, ::Type{BatchDuplicatedNoNeed}, tt::Type{Tuple{BatchDuplicated{ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}}, 2}}}, ::Val{Enzyme.API.DEM_ForwardMode}, ::Val{2}, ::Val{false}, ::Val{false})
    @ Enzyme.Compiler ~/.julia/packages/Enzyme/7ekWs/src/compiler.jl:6452
 [13] autodiff
    @ ~/.julia/packages/Enzyme/7ekWs/src/Enzyme.jl:312 [inlined]
 [14] gradient(::EnzymeCore.ForwardMode, f::Function, x::ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}}; shadow::Tuple{ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}}, ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}}})
    @ Enzyme ~/.julia/packages/Enzyme/7ekWs/src/Enzyme.jl:582
 [15] gradient(::EnzymeCore.ForwardMode, f::Function, x::ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(a = 1, b = 2)}}})
    @ Enzyme ~/.julia/packages/Enzyme/7ekWs/src/Enzyme.jl:578
 [16] top-level scope

That's a separate issue, it looks like 1.9 is now introducing new instructions which we don't handle. Open a new issue (@vchuravy for what that is doing here).


[10.x] Add Str::betweenAll Method

Introduces Str::betweenAll Method.
Useful for extracting all occurrences of text between specified delimiters from a given string.
Usage:
$result = Str::betweenAll('[1] bla bla [2]', '[', ']');  // Output: ['1', '2']

$html = 'Page 1 Page 2';
$links = Str::betweenAll($html, 'href="', '"');
// Output: ['https://example.com/page1', 'https://example.com/page2']

$logData = '[2023-01-01 12:34:56] - [INFO] - System started
[2023-01-01 12:35:00] - [ERROR] - Connection lost';
$timestamps = Str::betweenAll($logData, '[', '] - [');
// Output: ['2023-01-01 12:34:56', '2023-01-01 12:35:00']

I don't agree 👎
Laravel has a lot of methods, you can move this method to a package or use Macro!

I don't agree 👎 Laravel has a lot of methods, you can move this method to a package or use Macro!

@milwad-dev we already have between and betweenFirst methods in the Str class.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


New comer here. How to inspect the example?

Hi, I just started trying out redux-form, and couldn't find out how to handle submit function on the website. When I try to run the example to examine the code, it doesn't allow me to use console.log. Could someone help me?

Can you provide some code and ask the same question on Stackoverflow and send me the link, I'll be happy to help ? That would we easier for other people to find the answer in the future.

@vnctaing is right. If you can provide evidence of a documentation problem, feature request or bug report, please open a new issue.
And, if you do this, please follow the issue template.