dev unlocked cvars dont work

Has anyone had any luck getting the unlocked dev cvars to work?
cmd's prefixed ones seem to be ok but most of the interesting debug features do not activate

Im trying to enable some of the debug info to see how the game logic works so mostly ai pathing/corrections/investigation radius:
for example:

ai_botDebug
ai_debugStealthHUD
devgui
ai_navdebug
com_debughud
nav_debug_mesh
r_snow

There are also references to noclip commands but not the command itself, some mods enabled that already, and Im curious if its a simple as a console command.
Also there's listCvars - Help with explanations for each command, if you can dump that qconsole.log instead of simple cvars I believe it would be more easier to navigate

Im trying to enable some of the debug info to see how the game logic works so mostly ai pathing/corrections/investigation radius:
for example:

ai_botDebug

ai_debugStealthHUD

devgui

ai_navdebug

com_debughud

nav_debug_mesh

r_snow

There are also references to noclip commands but not the command itself, some mods enabled that already, and Im curious if its a simple as a console command.
Also there's listCvars - Help with explanations for each command, if you can dump that qconsole.log instead of simple cvars I believe it would be more easier to navigate

I've managed to hook into a Cvar which now displays a prompt for a dev menu on the main title screen but it hangs when pressed on. Will need to do a little further digging as no luck with devui or devmenu just yet.

Think there's still a restriction on cvars being loaded from cfg files too, eg. is_poolCapacity has to be set before game loads, but adding to the .cfg file or .local file doesn't work, despite .local containing is_poolSize from the texture pool size setting, haven't had any luck with using launch args on gamepass ver neither...

Also there's listCvars - Help with explanations for each command, if you can dump that qconsole.log instead of simple cvars I believe it would be more easier to navigate

I've updated the cvar dump to include the help descriptions.
https://github.com/Lyall/GreatCircleFix/blob/master/cvardump.txt

Think there's still a restriction on some cvars being loaded from cfg files too, eg. is_poolCapacity has to be set before game loads, but adding to the .cfg file or .local file doesn't work, despite .local containing is_poolSize from the texture pool size setting, haven't had any luck with using launch args on gamepass ver neither...
E: ah seems those are meant to be set with command-line/launch args, adding this to the read-only cvar hook lets it work:
                    // Clear read-only flag (bit 15)
                    ctx.rax &= ~(1 << 15);
                    // Clear command-line only flag (bit 14)
                    ctx.rax &= ~(1 << 14);

i have gotten launch params to work on a steam version. Are there any cheat cvars? like where i can give indy book upgrades or specific weapons?

Im trying to enable some of the debug info to see how the game logic works so mostly ai pathing/corrections/investigation radius:
for example:

ai_botDebug
ai_debugStealthHUD
devgui
ai_navdebug
com_debughud
nav_debug_mesh
r_snow

There are also references to noclip commands but not the command itself, some mods enabled that already, and Im curious if its a simple as a console command.
Also there's listCvars - Help with explanations for each command, if you can dump that qconsole.log instead of simple cvars I believe it would be more easier to navigate

I've managed to hook into a Cvar which now displays a prompt for a dev menu on the main title screen but it hangs when pressed on. Will need to do a little further digging as no luck with devgui or devmenu just yet. I'll also dump the cvars with descriptions when I can to support with research aswell

there is a cvar that shows the dev menu option in the pause menu

Im trying to enable some of the debug info to see how the game logic works so mostly ai pathing/corrections/investigation radius:

for example:

ai_botDebug

ai_debugStealthHUD

devgui

ai_navdebug

com_debughud

nav_debug_mesh

r_snow

There are also references to noclip commands but not the command itself, some mods enabled that already, and Im curious if its a simple as a console command.

Also there's listCvars - Help with explanations for each command, if you can dump that qconsole.log instead of simple cvars I believe it would be more easier to navigate

I've managed to hook into a Cvar which now displays a prompt for a dev menu on the main title screen but it hangs when pressed on. Will need to do a little further digging as no luck with devgui or devmenu just yet. I'll also dump the cvars with descriptions when I can to support with research aswell

there is a cvar that shows the dev menu option in the pause menu

Still trying to work out how this works in terms of the dev menu in the pause screen. Nothing displays for any state changes in the console or debug logs

the imgui menus is constructed but nothing renders it. in idImGuiHostLocal[14] for its rendering but not sure how to restore it, maybe idstudio have some clues?

Think there's still a restriction on some cvars being loaded from cfg files too, eg. is_poolCapacity has to be set before game loads, but adding to the .cfg file or .local file doesn't work, despite .local containing is_poolSize from the texture pool size setting, haven't had any luck with using launch args on gamepass ver neither...
E: ah seems those are meant to be set with command-line/launch args, adding this to the read-only cvar hook lets it work:
                    // Clear read-only flag (bit 15)
                    ctx.rax &= ~(1 << 15);
                    // Clear command-line only flag (bit 14)
                    ctx.rax &= ~(1 << 14);

i have gotten launch params to work on a steam version. Are there any cheat cvars? like where i can give indy book upgrades or specific weapons?

hello,
I was wondering being the owner of most likely the fastest volt modded XYZ in the world ( it had voltage mod and has eenhas seen 1000w) I would really love to figure out what you mean by all this.. I see the bitwise code... and..I see you're changing the bit or flag... but I've tried to put this code in the console....the local file... everything... and no matter what... even with r_allowpathtracingnonnvidia 1 in the exe shortcut....as launch string.. it isn't on when I log in...can you explain in detail what I'd have to exactly do to get this to work on the patch 1 steam versions ..because even when I charade the path tracing on and it says it's on... and I enable the rt version and blah blah..no loss of fps... no change in picture.... ND I just have no idea by what you mean hooking the read only cat with that code you posted ...
soooo...please I'm new so use little words... but I've been on this for 3 days straight now...and I saw h1468 or w.e his face did post a vid of it working...so please please help a poor soul who just wants to prove to ppl..team red can path trace fine.. team green paid them off to give us far and frame gen late so avoid seeing 4070s getting dunked on and easily holding par with 4080s.....I can't actually believe they put effort into actually making this hard to do past enabling in console......but yeah I'd really love to do this ...and now I've been up so long ... I even found the string in ida... tried to reverse it after editing it ...and it was lame. lol
this CTX is currently beating every 4080 super in speedway, port royal and the lightrtt Vulcan solar bat right now.. in 3fmatk the by far most popular bench took period.... And I'm just so interested to see if it could hold up where ppl have told me I'd only get single fps...I disagree...so please shoot me a msg....I'm willing to do whatever to get this on and working... so we can see the truth...either way . ty ty tu


[BUG] BertUncasedBaseTokenizer ran forever with input "SixGe1−xH"

The Tokenizer is not working when working with input text "SixGe1−xH".
I have looked into the source code. The while loop inside TokenizeSubwords runs forever and never stops.
It can be reproduced by simply running the following unit test.
[Fact]
public void Tokenize_sentence()
{
    var sentence = "SixGe1−xH";

    var tokens = _tokenizer.Tokenize(sentence);
    Assert.Equal(3, tokens.Count);
}

ok, the problem is the dash, which is not a ascii dash. And that dash does not exist in vocab.txt causing the tokenizer run forever.
I would suggest adding a sanitize step to clean the input sentence first before passing it to tokenize.

@darren-zdc it should be the same issue I reported in #26. In the comments there you can also find an alternative library, as this one doesn't seem to be maintained anymore unfortunately


_Inspect_FscArgs does not exist

Ionide fails to read my .fsproj file and therefore can't give proper autocompletion and type hints.

The error encountered is: error MSB4057: The target "_Inspect_FscArgs" does not exist in the project..

And more specifically, found in F# Language Service (added newlines for the sake of readability):
[13:30:57 DEBUG] RES (081) <- {project} in 690 ms: Kind={"error"}
Data="MSBuild failed with exitCode 1 Working Directory: '/Users/abn/microc-to-webassembly/micro-wac' Exe Path: 'dotnet'
Args: 'msbuild /Users/abn/microc-to-webassembly/micro-wac/microwac.fsproj
/p:SkipCompilerExecution=true /p:ProvideCommandLineArgs=true /p:CopyBuildOutputToOutputDirectory=false /p:UseCommonOutputDirectory=true
/t:_Inspect_FscArgs
/p:_Inspect_FscArgs_OutFile=/var/folders/rd/ytfxj23x2xvdpkpx195wlwxr0000gn/T/tmp3f2a37d2.tmp
/t:_Inspect_GetProjectReferences /p:_Inspect_GetProjectReferences_OutFile=/var/folders/rd/ytfxj23x2xvdpkpx195wlwxr0000gn/T/tmp768db84f.tmp
/t:_Inspect_GetProperties
/p:_Inspect_GetProperties_OutFile=/var/folders/rd/ytfxj23x2xvdpkpx195wlwxr0000gn/T/tmp176585b2.tmp
/nologo /verbosity:quiet'

I'm using Mono 4.8.1, dotnet cli 1.0.3, VSC 1.11.2 and Ionide 2.25.10 on a macOS Sierra 10.12.4.
I've got no clue what's going on. A Google search of the _Inspect_FscArgs keyword yielded a stunning: 0 results.

CC: @enricosada

Problem is languages service ( FSAC ) is trying to parse your fsproj like it was of new sdk (.net coreclr sdk) because there is 15 in <Project
Error is https://github.com/fsharp/FsAutoComplete/blob/e8a41b2c922cd158b9b987d795f381fd829f28b7/src/FsAutoComplete.Core/Commands.fs#L122
It should just check If contains "Sdk".
The 15 was to discriminate the old dotnetcore core sdk rc3

Should I post the error on that project instead then? And thank you for the response, that makes sense.

If you can, please just edit that file (online github is enough) and send as PR
Ionide will just use that in next release, right @Krzysztof-Cieslak ?
Sry wth mobile ATM, I cannot do it

Alright @enricosada, added a PR https://github.com/fsharp/FsAutoComplete/pull/163, also removed now redundant documentation, unsure if you want to keep it?

Thx for removing doc!
Merged.
Now is @Krzysztof-Cieslak time :)

Fix released in 2.25.11


This change is continuation of https://github.com/iduetxe/jsonschema…

This change is continuation of https://github.com/iduetxe/jsonschema2pojo
1 - Add complete support for hierarchy with jackson2 annotation JsonTypeInfo combinated values, for example:
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "javaType" : "com.sample.ExampleDTO",
    "additionalProperties": false,
    "deserializationClassProperty":{
        "propertyName":"childType", // Property name support
        "idValueType":"NAME", // id values types support for combinated JsonTypeInfo.Id
        "includeValueType":"PROPERTY", // JsonTypeInfo.As all values for supports
        "children": // chidren declaration
            [
                {
                    "className": "com.sample.ExampleChild1DTO",
                    "value": "Child1"
                },
                {
                    "className": "com.sample.ExampleChild2DTO",
                    "value": "Child2"
                }
            ]
    }
}

All Enums will be validated, if error occurs print a specific message about it.
Special behavior for the value EXTERNAL PROPERTY annotation will be put on field not on class.
2 - Add support for JsonIgnore annotation, for field, setter or getter, for Example:
    "ignore" : true, // put JsonIgnore annotation on field getter and setter
    "ignoreSetter" : true,// put JsonIgnore annotation only on setter
    "ignoreGetter" : true // put JsonIgnore annotation only on getter

    "properties":{
        "signature": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32,
            "ignore" : true,
            "pattern": "^[a-zA-Z0-9]+$"
        },

     ....

This mechanism will enable us to play with the different techniques of serialization

Thanks for publishing these changes publicly (they may well be useful to others), however I'm not interested in bringing these changes into the core.


[Support Request] clasp run fails even though API deployment exists

Expected Behavior
clasp run --dev main runs function main on the most current API deployment.
Actual Behavior
Fails with Script API executable not published/deployed., altough
$ clasp deployments
2 Deployments.
- AKfycbzykaL...qI2EwL1TI @HEAD
- AKfycbw2xHzsTN8...vUq8CE @2 - oneplatform api meta-version

Steps to Reproduce the Problem

Have project and clasp push it
Add version
Deploy version as API executable
Try to run it

Specifications

Node version (node -v): v11.1.0
Version (clasp -v): 1.6.0
OS (Mac/Linux/Windows): Linux

Thanks for the report.
clasp run is pretty fragile right now and so I'll check this when I finish clasp run.
It would be helpful if you provided more specific repro steps. I.e. what code did your files include?

I've revamped the project into an editor add-on now, so the main function is gone. What it did was connect to Sheets and Drive and copy files based on row entries.
I'm not sure I understand correctly what you mean when you say "what code". It's a customer project, so I can't post the code unfortunately, but I can make a list of which services it uses if that helps you. Is that what you need?

It’s hard for me to debug without seeing any code or appsscript.json files.
What does your manifest include? Does is have the correct configuration? Deploy via script.google.com to see what you need in your manifest.

Bump. Can you post some of the appsscript.json?

OK thanks. I'll look into this issue.

Hi, I'm not sure if you have resolved this or not, but I had the same problem of "Script API executable not published/deployed".
The thing that solved if for me is adding the following in the manifest:
"executionApi": {
  "access": "ANYONE"
}

Before adding this, it only worked on non-dev.
The step is now in the Readme.

Was run on the latest clasp
Version (clasp -v): 1.7.0

I got the same Script API executable not published/deployed. error, because the clasp run documentation page didn't mention creating a new API executable deployment. Submitted #1004 to fix this.


Conduct contributing

Adding

Had an issue with the readme, please double check that file for any overwrites.


Parser Rebuild

Overview
EDL can be a tricky format to get right in the details - our original parser worked well in controlled situations, but also had issues like not adopting global_start_time support, not fully baked transition support, and brittleness when sources were in frame rates that didn't match the timeline rate.
This refactor separates the reader code into two separate disciplines:

A parser that yields an edl statement per line with parsed fields but does not resolve timing and represents the facts of exactly what's in the EDL as closely as possible.
The Reader which interprets the statements grouped by event into their resolved timing, converts them to OpenTimelineIO schema objects, and applies them to a timeline

Changes and Enhancements
Adapter Args
The adapter has been updated with new controls on parsing behavior based on our more current knowledge of the format:

ignore_timecode_mismatch is still present, but is always hard-wired True and raises DeprecationWarning when used. Will be removed in a future release.
(NEW!) ignore_invalid_timecode_errors - When a timecode can't be interpreted due to something like Frame rate mismatch.  Timecode '19:13:21:28' has frames beyond 23, the start timecode in the source will be rounded up to zero frames in the next second. This helps address issues that can occur from doing things like using a 30 fps source in a 24 fps timeline without retimes.
(NEW!) discard_unsupported_events - enables a mode where events that can't be interpreted (like KEY edits) are skipped and the event is noted in timeline.metadata["cmx_3600"]["unsupported_events"].

Note that setting ignore_invalid_timecode_errors and discard_unsupported_events to False (the default) will preserve the old behavior of erroring when correctness can't be trusted.
Parsing

Transitions now resolve properly according to references in the CMX spec (AcademySoftwareFoundation/OpenTimelineIO#977) (AcademySoftwareFoundation/OpenTimelineIO#895) (maybe AcademySoftwareFoundation/OpenTimelineIO#137)
Uses Timeline.global_start_time rather than Track.available_range to signal the timeline start time (#6) (AcademySoftwareFoundation/OpenTimelineIO#1385) (maybe AcademySoftwareFoundation/OpenTimelineIO#346)
Timeline events are no longer merged if they aren't from the same reel or their source range is discontinuous (in the old parser clips adjacent to transitions could be merged even if they came from separate sources) (AcademySoftwareFoundation/OpenTimelineIO#1328) (AcademySoftwareFoundation/OpenTimelineIO#912)
Includes more contextual information in parsed clips (event numbers, original EDL timecode values, etc)
OTIO clip durations now primarily driven from timeline timecode rather than source timecode (this should avoid A/V sync issues due to potentially accumulating errors)
Adds the ability to use a timing approximation when timecode doesn’t match the provided EDL rate (This is helpful when the source is at a different frame rate than the timeline rate)
Most EDLParseException instances now include more contextual information
Now attempts to fallback to ISO-8859-1 encoding in read_from_file when the operating system default string encoding fails - this has anecdotally been successful in handling some EDLs that would otherwise fail
Video events that overwrite previous events in the timeline are now placed on a video track "above" the previous event's track to simulate an "overwrite". Overlapping audio events still raise an exception. Anecdotally this is most common in EDLs from Adobe Premiere.

TODOs

[ ] Write tests around specific cited issues
[ ] Update README documentation with new adapter args
[ ] Flesh out docstrings in code
[ ] Evaluate whether or not we should cull out parts of code targeted at SMPTE 258M EDL
[ ] Evaluate if using a duration comparison based heuristic (interpret source timecode at all the known timecode rates until we find a source duration that is very close to the timeline duration) we can reliably infer mismatched source rates where we're currently using the ignore_invalid_timecode_errors behavior

@douglascomet Thanks for the feedback!
The M2 issues are with M2 motion effects - see page 20 in the cmx spec.
A docstring pass is a good idea - I need to make sure I share some of the ideas I had behind this stuff to help future us.
The code density stuff is good feedback - we can think about driving sections of this toward being more approachable.
I'll try to carve some time for this to try and get it out in the coming weeks.


Fixed GitHub detection of license in LICENSE.txt file.

Unfortunately licensee also looks at the COPYRIGHT.txt file and detects it as "other".
GitHub therefore still doesn't add the correct license to the project. This is
however a step in the right direction.
Before:
$ licensee LICENSE.txt
License: Other
Matched files: ["LICENSE.txt"]
LICENSE.txt:
Content hash: 8dd7a8f24846f434ce7fdb96f6440909b5469277
Attribution: Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur.
License: Other
After:
$ licensee LICENSE.txt
License: MIT License
Matched files: ["LICENSE.txt"]
LICENSE.txt:
Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3
Attribution: Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur.
Confidence: 100.00%
Matcher: Licensee::Matchers::Exact
License: MIT License

It worked a few months ago... They should loosen their parsing instead of tightening it, the addition of an URL after the license obviously does not invalidate it.

Still doesn't work as it used to in #8682.

Yeah, they have added some logic when they find both a LICENSE.txt and a COPYRIGHT.txt which breaks it. See here: https://github.com/benbalter/licensee/pull/203


Access the current used router

how to get current router from any file, to enable present the root tabviewcontroller for example?

There is no such functionality as of now in XCoordinator. You can, however, use Service Locator / Dependency Injection techniques to solve this issue. There is also no such thing as the "currently used router", as any router in existence might trigger a transition at any time (as is the case with UIKit's UIViewController).


[Feature Request] Support downloading service images with "pull" command

Description
We've encountered users of our system that like to separate the downloading of an update from the applying of an update. I would like to add an optional flag to the docker app pull command to tell it to also pull down each of the app's service images. I have no strong opinion of what the flag would be, perhaps: docker app pull --include-services?
I don't have a complete implementation, but adding logic to pull down the images is pretty simple:
https://github.com/doanac/app/commit/d808721d12d58fba607a54136f0a7611e51fcb67

Hello @doanac , thank you for filling this feature request.
I'll put here some thoughts about it:
This feature will have sense only if you target a single engine with swarm enabled (which is your case I guess), or which would be the case for a developer running the app on her own host.
But regarding a cluster, only one daemon will pull the images, not all the nodes, so this may not be what's expected (as you don't know which node will execute the workload, so all the nodes but the one targeted will pull the images). A workaround would be to run the docker app pull --include-services on all the nodes 🤔.
Another "issue" is when you have 2 contexts (using --installer-context flag), one to execute the invocation image and the one where you actually run the app itself. It means that only the context running the invocation image (usually the local host and the current context) would have pull the images, which is pretty useless 😅 .
That being said, this feature looks a lot like docker-compose pull, and as it's an optional flag and not the default behavior, I guess it's OK to assume the user has the responsibility to check which node is actually pulling the images 👍 Maybe could we make it a little more explicit with an output explaining which node/context is actually pulling? @thaJeztah any thoughts?

Good point about multi nodes and contexts. I guess we have a bit of an edge case. I'm happy to put notes on the flag saying its a little weird. And if its really too awkward for your team to carry this change, I think I could find away to keep this patch in our OE recipe for build docker-app. That said- pushing upstream is always more desirable from my end :)

@doanac Please open a PR with your code changes 👍
It would be great to add a test somehow, maybe and e2e test? Please reach me if need help for that!

i dont know if this links to a problem i am having, but basically when i run the application, the stack is created properly, but the service dont fire up because they dont find their respective images.
The solution is to manually pull each single image for the individual services manually, so i am wondering ... is it possible to automate this process like it would happen normally in swarm? i cannot understand why this does not happen already


[Snyk] Upgrade gettext-extractor from 3.5.3 to 3.5.4

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade gettext-extractor from 3.5.3 to 3.5.4.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released 6 months ago, on 2022-02-12.

Release notes

Package name: gettext-extractor

3.5.4 - 2022-02-12Bugfixes

Add support for empty HTML attribute selectors [attribute=""] #51

3.5.3 - 2020-10-19Improvements

Updated dependencies

    from gettext-extractor GitHub release notes

Commit messages

Package name: gettext-extractor

4fc74a4 Add registry-url to release workflow
dd8c3f7 Bump version to 3.5.4
d3dec46 Add support for empty HTML attribute selectors
f54bf34 Create github workflows
e903f7c Write more e2e tests

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Coverage remained the same at 47.814% when pulling 66c4a290ac0edbb0167d50a496736f66c060adfb on snyk-upgrade-28bcc0c918176e82927d19c243dda5d8 into 91232ab3b575309b2c06fc63a363347da5713739 on master.


Spike govuk frontend

In case anyone is thinking 'this looks terrible', this was my hack to get the new Jinja extension working with Flask, it definitely needs improvement!!


Fixes #24484 -- Add helpful message when running tests with models changes without migrations

This PR adds a check into the test management command which looks for model changes that are not reflected in a migration. If it finds any, it will close the tests with an error.
I think it would be useful to turn this into a system check so it gets run on other management commands. One issue with that though is we would need to find a way to prevent this check from running on the makemigrations command. Let me know if you think that would be useful and I'll look into it.

This code looks like to code in the migrate command and similar to what we do in runserver's check_migrations(). I think it's time for django.utils.migrations to add some utility functions, e.g. django.utils.migrations.has_unmigrated_models(). Something along those lines (draft, untested):
def has_unmigrated_models(loader=None, connection=None, stdout=None):
    if loader is None:
        loader = MigrationLoader(connection)
    autodetector = MigrationAutodetector(loader.project_state(), ProjectState.from_apps(apps))
    has_changes = bool(autodetector.changes(graph=loader.graph))
    if stdout:
        if has_changes:
            stdout.write(...)
        else:
            stdout.write(...)
    return has_changes

@MarkusH Thanks! I'll have a look into that and the test failures later this evening.

You're welcome. I just had another look at Django's internal structure: the utility function are probably better placed in django.db.migrations.utils.

buildbot, test this please.

Looking into the build failure now

I think you can fix that by moving the FK class to module level.

I've tracked down the reason why the builds are failing.
Some tests define temporary models that should be forgotten about after their particular test has finished (https://github.com/django/django/blob/master/tests/one_to_one/tests.py#L158-L164).
Unfortunately, these temporary models are being registered globally in django.apps when defined (https://github.com/django/django/blob/master/django/db/models/base.py#L279) and are never unregistered. This causes a problem when we attempt to create a ProjectState from the models registered in django.apps as some of these models may have been created on the fly in a past test and may reference things such as field classes that are not importable (https://github.com/django/django/blob/master/tests/one_to_one/tests.py#L154-L156), causing an error.
Some possible solutions:

Move the troublesome temporary models (or just the custom fields they reference) to somewhere they can be imported (probably to their respective models.py file)
Figure out a way to prevent temporary models from being registered in django.apps
Tweak the has_unmigrated_models function to use a fake apps registry during tests

Let me know what you think of the above solutions or if you have any other ideas.

Ok, I'd go with moving the models to the models.py file inside each respective test app and, were applicable, reuse existing models.

Thanks :smile:

Just done that cleanup and which unmasks more issues with creating a ProjectState of the test apps.
After I moved those models, this error started popping up:
======================================================================
ERROR: test_bad_test_runner (test_runner.tests.ManageCommandTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/karl/projects/django/tests/test_runner/tests.py", line 152, in test_bad_test_runner
    testrunner='test_runner.NonExistentRunner')
  File "/home/karl/projects/django/django/core/management/__init__.py", line 118, in call_command
    return command.execute(*args, **defaults)
  File "/home/karl/projects/django/django/core/management/commands/test.py", line 75, in execute
    super(Command, self).execute(*args, **options)
  File "/home/karl/projects/django/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/home/karl/projects/django/django/core/management/commands/test.py", line 84, in handle
    if has_unmigrated_models():
  File "/home/karl/projects/django/django/db/migrations/utils.py", line 16, in has_unmigrated_models
    return bool(autodetector.changes(graph=loader.graph))
  File "/home/karl/projects/django/django/db/migrations/autodetector.py", line 43, in changes
    changes = self._detect_changes(convert_apps, graph)
  File "/home/karl/projects/django/django/db/migrations/autodetector.py", line 111, in _detect_changes
    self.new_apps = self.to_state.apps
  File "/home/karl/projects/django/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/karl/projects/django/django/db/migrations/state.py", line 147, in apps
    return StateApps(self.real_apps, self.models)
  File "/home/karl/projects/django/django/db/migrations/state.py", line 222, in __init__
    raise ValueError(msg % ", ".join(labels))
ValueError: Unhandled pending operations for models: geoapp.city

This seems to be fixed by setting the app_label in a model that references it in the same app: 4fb19ef
I'll investigate further later this evening!

A new pull request has been proposed in https://github.com/django/django/pull/5100.


Prefix rich presence

Hello, I have a suggestion for this bot. Its to add a rich presence that shows the prefix of this bot. I think that it's a good idea because there's a lot of people struggling, including me.

By the way, it would be cool the rich presence to be like this: Prefix: {prefix}

I think it may be nicer to copy what Python (the bot) does: Commands: .help
That way, it's consistent, hints at the help command, and still shows the prefix.

I'll grab this one - would be cool to have.


Restart mongo-connector instance

Hi,
When I restart an instance of mongo connector, he don't restart at the last oplog ts, but he check all the documents (I think), because the connector take a lot of time before restarting to syncronize data.
I use the elastic doc manager, my oplog.timestamp file look fine:
[["Collection(Database(MongoClient(['prod-2.mongo.service.consul:27017', 'prod-3.mongo.service.consul:27017', 'prod-1.mongo.service.consul:27017']), 'local'), 'oplog.rs')",<PHONE_NUMBER>262616072], ["Collection(Database(MongoClient(['prod-1.mongo.service.consul:27017', 'prod-3.mongo.service.consul:27017', 'prod-2.mongo.service.consul:27017']), 'local'), 'oplog.rs')",<PHONE_NUMBER>269682689], ["Collection(Database(MongoClient(['prod-1.mongo.service.consul:27017', 'prod-2.mongo.service.consul:27017', 'prod-3.mongo.service.consul:27017']), 'local'), 'oplog.rs')",<PHONE_NUMBER>409562113]]

I tried to restart with or without --no-dump option, same results.
For exemple, I've got a collection with 2.5 millions of docs, the initial dump take around 1h30min, and when i restart the connector, the syncronize restart after 1h30min...
Realy sorry for my bad english, and thanks for yout reply.
Thomas.

Can you please provide debug-level logs for mongo-connector when you try to
start it using your timestamp file?
On Wed, Sep 30, 2015 at 12:53 AM, Perchework<EMAIL_ADDRESS>wrote:

Hi,
When I restart an instance of mongo connector, he don't restart at the
last oplog ts, but he check all the documents (I think), because the
connector take a lot of time before restarting to syncronize data.
I use the elastic doc manager, my oplog.timestamp file look fine:
[["Collection(Database(MongoClient(['prod-2.mongo.service.consul:27017', 'prod-3.mongo.service.consul:27017', 'prod-1.mongo.service.consul:27017']), 'local'), 'oplog.rs')",<PHONE_NUMBER>262616072], ["Collection(Database(MongoClient(['prod-1.mongo.service.consul:27017', 'prod-3.mongo.service.consul:27017', 'prod-2.mongo.service.consul:27017']), 'local'), 'oplog.rs')",<PHONE_NUMBER>269682689], ["Collection(Database(MongoClient(['prod-1.mongo.service.consul:27017', 'prod-2.mongo.service.consul:27017', 'prod-3.mongo.service.consul:27017']), 'local'), 'oplog.rs')",<PHONE_NUMBER>409562113]]
I tried to restart with or without --no-dump option, same results.
For exemple, I've got a collection with 2.5 millions of docs, the initial
dump take around 1h30min, and when i restart the connector, the syncronize
restart after 1h30min...
Realy sorry for my bad english, and thanks for yout reply.
Thomas.
—
Reply to this email directly or view it on GitHub
https://github.com/mongodb-labs/mongo-connector/issues/328.

Hi, I'm going to close this ticket due to inactivity but please feel free to reopen or file a new ticket if you have more problems. Thanks!


Bug: overlay of buttons on other items

Describe the bug
Currently the chatbot button and the new highlight button are displaying over some items like the footer link and the discord icon in the footer

Steps to reproduce

Go to your user profile on opensauced
Scroll to the bottom where the footer is
See error

Browsers
Chrome
Additional context (Is this in dev or production?)
No response
Code of Conduct

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

Contributing Docs

[X] I agree to follow this project's Contribution Docs

.take

@dev-phantom where should I placed those two buttons can we have a design for mobile

I think the approach used here
https://github.com/open-sauced/app/pull/1420
Was better try moving the links and the icon to the left


Showing keyboard with nested MaterialApp breaks view

Steps to Reproduce
The broken app contains the following idea:
The main app contains a BottomNavigation and a body. That body itself again contains a MaterialApp. That way I could use the Navigator to push new pages without affecting the BottomNav.
When I click a button it goes to the second page. That page contains a list and an appbar. That appbar has a TextField to make the content searchable. When the keyboard appears the whole (content of the) listview disappears.
When I make the same page without the nesting of the MaterialApp everything is fine (thus only 1 MaterialApp with the appbar, list and bottomnav).
Screenshots and minimal source code to reproduce the issue:

main.txt
Flutter Doctor
[✓] Flutter (on Mac OS X 10.12.6 16G1036, locale en-NL, channel master)
• Flutter at /Users/rene/flutter
• Framework revision d776f64f4e (20 minutes ago), 2017-11-27 06:56:51 -0800
• Engine revision 93b2179597
• Tools Dart version 1.25.0-dev.11.0
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2)
• Android SDK at /Users/rene/Library/Android/sdk
• Unable to locate Android NDK.
• Unable to locate compiler in Android NDK.

• Platform android-26, build-tools 26.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b05)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.1, Build version 9B55
• ios-deploy 1.9.2
• CocoaPods version 1.1.1
[✓] Android Studio (version 2.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b05)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.2.5)
• Flutter plugin version 18.1
• Dart plugin version 172.4343.25
[✓] Connected devices
• Android SDK built for x86 • emulator-5554                        • android-x86 • Android 6.0 (API 23) (emulator)
• iPhone 8                  • 1B5E7CCE-1E34-48B5-92AB-AE0B0304F927 • ios         • iOS 11.1 (simulator)

@renefloor Having multiple MaterialApps in the widget tree is not the best way to achieve what you want. You also end up having to keep state in two places (outer app needs to know tab selected, inner app needs to know which route is active).
@xster I know we were working on a guide on how to do iOS style navigation. Is that done yet? Could we point him to something?

@mehmetf After I had this issue I found this example (thanks to the mailing list).
https://gist.github.com/collinjackson/77d55628d2e996053e9f17a16905c295
This makes a new navigator and that is probably how I should do it?

Check out the Cupertino navigation demo in the gallery.

Ah I didn't realize that that was already in the gallery as I have the play store version of the gallery on my phone. I'll have a look at that :)
Should I still use the example of Collin Jackson for the Android version or should I open a new screen without the Bottom Navigation when I want to navigate to a new screen?
The Material Spec says it should always be there: "Keep it available as the user descends the hierarchy, either by showing it persistently, or by concealing and revealing it upon scroll.", but for example Google+ just shows a new screen and only shows the bottom nav on the home screen.
The main difference between iOS and Android is that on Android you don't have to keep track of the state of non-visible tabs as they should refresh on the click of the tab, so having a new navigation inside the showing page would be fine.

Each new screen can embed its own bottom navigation by reusing the same component. Just because something is sticky on the screen does not mean it needs to be sticky in code :-) That has the advantage that each page is self-contained. You don't need to look at 2-3 different places to reason about the behavior of a single page.
I know this is counter intuitive especially if you are coming from Android world but I am so glad I am done with Fragments. They were literally "app-within-an-app" which is actually what you emulated in the first example you have given.
In any case, I am going to close this as WAI. If you need further guidance on Flutter patterns, Stack Overflow and our gitter channel are always there.

Thanks for the feedback! I am used to think in Android patterns, so indeed some things seem strange to me. Flutter is still really easy to learn though, so you do a great job. Will ask somewhere else next time before opening an issue.


Add test for @computed passing in nested property

Per discussion with @rwjblue and another issue, we should expect @computed('foo.bar') to pass the value of foo.bar to the callback function. There is currently no test for this (though there are for attr.models.@each and attr.models.[]).

:+1: to MOAR tests.  From a brief review of the code, I think that the test should pass right off the bat (i.e. no changes should be needed).

Great! I'll make a PR :)


added tomfasano.xyz

The webring link/logo is in the bottom nav bar.

I have a few issues with your website

I can't find your works? I can find 3 tracks, the videos page requires js so I can't visit it now, and comics is a single image.
Almost all topics are empty, unclickable or coming soon.
In your links you point to Luke Smith which is a massive imbecile, and I would be afraid that someone accidentally ends up on their web page coming from the webring.

I'll have a to decline your application, I don't think it's a good fit for the webring in its current state sorry.

Ok, I'll start my own.


just testing

Short description of what this resolves:
MY FIRST PULL REQUEST
Changes proposed in this pull request:

Ionic Version: 1.x / 2.x
Fixes: #
FJFJF

Congrats


Run performance profiling against unit tests

Use asv to determine whether there are any performance bottlenecks that can be addressed.

Fixed with https://github.com/asdf-format/asdf/pull/1500


Modify SQLDatabaseChain prompt to prevent casing errors

Add
Also wrap each column name in double quotes (") to prevent casing errors.

To the prompt so that the query doesn't fail when querying postgres for columns that may contain capital letters.
Mixed case column names were made common by Prisma ORM.

Unfortunately I think this is inconsistent across dialects, so this change would break some dialects. Are you using postgres? It folds column names to lowercase if not wrapped in identifiers. Double quotes in MySQL-type dialects for example denote strings, so something like SELECT "column" FROM TABLE will just return the string "column", whereas backticks would do what you need.
Given this and a bunch of other dialect-specific issues we've been running into, I've been thinking that the approach we should take is to have dialect-specific prompts, and conditionally pass in the appropriate prompt on the detected dialect. For SQLAlchemy's supported dialects, this would result in 6 prompts that can be adjusted individually as needed. Perhaps 5 since MySQL and MariaDB don't need to differ. I was going to take a crack at that at some point but if someone else wants to get to it sooner, I'm happy to review/assist as well.

that sounds pretty reasonable to me, would be cool to get that in. even with only 2/3/4 different prompts, the framework would let others add easily

stale, seems we've introduced dialogue-specific prompts. closing, let me know if i'm missing anything!


unable to stop single quote warning

in tsx file, it warn me:
[tslint] ' should be " (quotemark)
Tried different options in tslint.json and still unable to hide this warning in latest vscode. Please help
The below setting was working, but not now
"lintConfig": {
// Opt-in to Lint rules which help to eliminate bugs in JavaScript
"rules": {
"quotemark": [true, "single"]
}
}
Thanks
Peter

Duplicate of https://github.com/Microsoft/vscode-tslint/issues/354

Closing as duplicate


plugins:link fails to compile plugins that have typescript as a dependency

Summary
Since oclif/plugin-plugins#517 the plugins:link command will always try to run tsc on plugins that contain a dependency of typescript.  This breaks linking plugins that have a dependency of typescript installed via NPM or Yarn, since modules published to NPM will in most cases not contain their typescript source code nor their tsconfig.
Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.

yarn add --dev sfdx-cli sfdmu
yarn sfdx plugins:link ./node_modules/sfdmu

Expected result
SFDX links the sfdmu plugin and I am able to call
sfdx sfdmu
Actual result
sfdx tries to compile the source code in the sfdmu module and fails because there is no tsconfig and no typescript code to compile.
yarn run v1.22.17
$ /Users/klink/Tingle/sfdx-action-container/node_modules/.bin/sfdx plugins:link ./node_modules/sfdmu
sfdx-cli: linking plugin sfdmu... ⣻
sfdx-cli: linking plugin sfdmu... !
    Error: yarn run tsc -p . --incremental --skipLibCheck exited with code 1
error Command failed with exit code 1.

System Information

Which shell/terminal are you using? (e.g. bash, zsh, powershell 5, powershell 7, cmd.exe, etc.)
bash
If you are using sfdx

Run sfdx version --verbose --json

If you are using sf

Run sf version --verbose --json

Paste the output here

Additional information
see
https://github.com/oclif/plugin-plugins/issues/559
and
https://github.com/oclif/plugin-plugins/pull/517

@Daniel-Webster the plugins:link is meant to be used as a developer tool when working on a plugin, not a means to register a plugin add via yarn.
Why not just install sfdmu?

We are using plugins:link to install the plugin in a Docker container build.  The container is being built by x86 architecture for both x86 and ARM images.  During that build using plugins:install results in extremely poor build times (hours) when executing in ARM emulation mode.  To get around this we are installing plugins via yarn and copying over the node_modules into the container that we wish to use for sfdx plugin commands executed by the container.
Anecdotally, plugins:link used in this way has been much more reliable for me for many years since when I first started using this was back when there was no support to install plugins from internal NPM repositories / proxy configuration problems back in the day.

Let's use oclif/plugins#559 to track this.


Netlify Dev output for one line progress output is spammed on newlines

Describe the bug
Using Netlify Dev the underlying command logs are different from direct output. I see multiple issues with output from Prisma, like incorrect linebreaks and color escape sequences but this might all be caused by the way logs are passed through. So to start with a concrete issue: the webpack progress bar output is spammed on newlines instead of being contained in one line.
To Reproduce
I've made a default vue-cli project and combined it with Netlify Dev, steps to reproduce the behavior:

Run git clone git@github.com:Siilwyn/netlify-dev-cli-output-issue.git
Navigate to the cloned repository
Run netlify dev
See that the Webpack progress is spammed instead of taking up one line.

Configuration
  System:
    OS: Linux 5.4 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz
    Memory: 552.14 MB / 7.70 GB
    Container: Yes
    Shell: 3.1.2 - /usr/bin/fish
  Binaries:
    Node: 12.18.4 - ~/.cache/volta/tools/image/node/12.18.4/bin/node
    Yarn: 1.22.4 - ~/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/.bin/yarn
    npm: 6.14.6 - ~/.cache/volta/tools/image/node/12.18.4/bin/npm
  npmPackages:
    netlify-cli: ^2.63.2 => 2.63.2

Expected behavior
When running vue-cli directly webpack progress is contained and updated in one line.
CLI Output
A snippet of the first lines being logged:
 INFO  Starting development server...
<s> [webpack.Progress] 0% compiling
<s> [webpack.Progress] 10% building 0/0 modules 0 active
<s> [webpack.Progress] 10% building 0/1 modules 1 active multi /home/siilwyn/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/webpack-dev-server/client/index.js?http://<IP_ADDRESS>:8081&sockPath=/sockjs-node /home/siilwyn/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/webpack/hot/dev-server.js ./src/main.js
<s> [webpack.Progress] 10% building 1/1 modules 0 active
<s> [webpack.Progress] 10% building 1/1 modules 0 active
<s> [webpack.Progress] 10% building 1/2 modules 1 active multi /home/siilwyn/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/webpack/hot/dev-server.js /home/siilwyn/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/webpack-dev-server/client/index.js?http://<IP_ADDRESS>:8081&sockPath=/sockjs-node ./src/main.js
<s> [webpack.Progress] 10% building 2/2 modules 0 active
<s> [webpack.Progress] 10% building 2/3 modules 1 active /home/siilwyn/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/webpack-dev-server/client/index.js?http://<IP_ADDRESS>:8081&sockPath=/sockjs-node
<s> [webpack.Progress] 10% building 2/4 modules 2 active /home/siilwyn/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/webpack/hot/dev-server.js
<s> [webpack.Progress] 10% building 3/4 modules 1 active /home/siilwyn/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/webpack/hot/dev-server.js
<s> [webpack.Progress] 10% building 4/4 modules 0 active
<s> [webpack.Progress] 10% building 4/5 modules 1 active /home/siilwyn/codeground/a-sandbox/vue-cli-netlify-dev/vue-cli-netlify-dev-output/node_modules/webpack/hot sync nonrecursive /^\.\/log$/

Update: This issue persists with up-to-date dependencies<EMAIL_ADDRESS>

Closing as stale. Please re-open if needed


Configure eslint

Description
I Added eslint for syntax consistency in our code.
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Checklist:

[ ✓] This pull request follows our contribution guidelines
[ ✓] I have performed a self-review of my own code
[ ✓] I have commented on my code, particularly in hard-to-understand areas
[✓ ] I have made corresponding changes to the documentation (postman and swagger)
[ ✓] I have written tests for the code
[✓ ] I have updated .env.example file for new .env variables

What is current behavior?

Closes #4
What is new behavior?
From now code is written in a consistent manner.
Breaking Changes?

Additional information

@shivamvishwakarm I am closing this PR because there are a lot of conflicts and also, please create new branch
for this issue you are making changes in your old branch and also update the main branch on your PC


Copying and pasting in textbox does not work (at least on windows)

When pressing "ctrl+v" on windows inside the textbox, the text "\u{16}" is inserted. I am not sure where this exactly comes from but the event "Event::Paste" is never raised and therefore clipboard code never ran. Instead the code execution goes into BasicTextInput's handle_event() and the is_printable() if-check.
Pressing "ctrl+c" and "ctrl+x" both deletes the text inside the textbox when only "ctrl+x" should delete it. The text is never copied to the clipboard in both cases.

I think this boils down to flaws in key handling at lower levels, which is on our radar. Thanks for the report, we'll keep it open.

I had to add and Edit menu in order to get copy/paste/cut to work on Windows.  Haven't gone too deep on other platforms.

If I'm experiencing issues with the crochet TextBox, that's probably because of druid, right? I think I'm experiencing a similar / related issue on Linux (none of the usual keyboard shortcuts do anything except reset the cursor blink cycle).

If I'm experiencing issues with the crochet TextBox, that's probably because of druid, right? I think I'm experiencing a similar / related issue on Linux (none of the usual keyboard shortcuts do anything except reset the cursor blink cycle).

Yes, that's druid; the textbox is finicky and doesn't play super well with crochet. :(

Yes, that's druid; the textbox is finicky and doesn't play super well with crochet. :(

@konkers can you explain  what workaround did you do ? Any docs?

@konkers can you explain  what workaround did you do ? Any docs?

@konkers can you explain what workaround did you do ? Any docs?

I had to add a menu to the window with the text box with actions for cut, copy, and paste along with their shortcuts.  No docs really, just got the menu setup.

@konkers can you explain what workaround did you do ? Any docs?

I had to add a menu to the window with the text box with actions for cut, copy, and paste along with their shortcuts.  No docs really, just got the menu setup.

@konkers hmm is there any snippets of code that do this.

@konkers hmm is there any snippets of code that do this.

Here's how I did it.  It's old-ish code, so it may not work with current versions of Druid:
https://github.com/konkers/pollendina/blob/9841cdd2a485207ab24bf3ca0b806d1a7d93164b/src/main.rs#L114
https://github.com/konkers/pollendina/blob/9841cdd2a485207ab24bf3ca0b806d1a7d93164b/src/main.rs#L415

Here's how I did it.  It's old-ish code, so it may not work with current versions of Druid:
https://github.com/konkers/pollendina/blob/9841cdd2a485207ab24bf3ca0b806d1a7d93164b/src/main.rs#L114
https://github.com/konkers/pollendina/blob/9841cdd2a485207ab24bf3ca0b806d1a7d93164b/src/main.rs#L415

Can confirm the bug on Linux. The @konkers's solution works. But I don't need a menu to be shown. Is there a way to hide it?

Can confirm the bug on Linux. The @konkers's solution works. But I don't need a menu to be shown. Is there a way to hide it?

There's a slightly annoying way: You can manually add a controller in front of your textbox that handles the shortcuts you want, and then dispatches the same commands that are dispatched by the menus; see here: https://github.com/linebender/druid/blob/master/druid/src/menu.rs#L464.

There's a slightly annoying way: You can manually add a controller in front of your textbox that handles the shortcuts you want, and then dispatches the same commands that are dispatched by the menus; see here: https://github.com/linebender/druid/blob/master/druid/src/menu.rs#L464.

I hope I'm not adding noise as I'm very new to the code base, but there is an EditAction called Paste(String) but it doesn't have keyboard shortcut defined like the others in the following file:
https://github.com/linebender/druid/blob/master/druid/src/text/text_input.rs
It feels to me like that file is missing a shortcut for it? Something like:
            k_e if (HotKey::new(SysMods::Cmd, KbKey::V)).matches(k_e) => {
                EditAction::Paste(SomeHowGetItFromClipboard())
            }

Yea paste is sort of a funny case. The original rationale was that paste works a lot like things like drag and drop, and we wanted to support those too. In any case, how it works: the user (normally a menu) sends the PASTE command to the root, and then druid handles this. and sends Event::Paste. This event sends a handle to a clipboard object that can be used to retrieve the contents of the system clipboard, but there's no real reason we couldn't make this available in other ways.

There's a slightly annoying way: You can manually add a controller in front of your textbox that handles the shortcuts you want, and then dispatches the same commands that are dispatched by the menus; see here: https://github.com/linebender/druid/blob/master/druid/src/menu.rs#L464.

Thank you for reply. Only today I've got a notification on my email :)
The approach works, even if the controller is placed in a root widget of a window:
use druid::{
    commands, widget::Controller, Data, Env, Event, EventCtx, HotKey, SysMods, Target, Widget,
};

pub struct CopyCutPasteController;

impl<T: Data, W: Widget<T>> Controller<T, W> for CopyCutPasteController {
    fn event(&mut self, child: &mut W, ctx: &mut EventCtx, event: &Event, data: &mut T, env: &Env) {
        match event {
            Event::KeyDown(key_event) => match key_event {
                k_e if (HotKey::new(SysMods::Cmd, "c")).matches(k_e) => {
                    ctx.submit_command(commands::COPY.to(Target::Auto));
                    ctx.set_handled();
                }
                k_e if (HotKey::new(SysMods::Cmd, "x")).matches(k_e) => {
                    ctx.submit_command(commands::CUT.to(Target::Auto));
                    ctx.set_handled();
                }
                k_e if (HotKey::new(SysMods::Cmd, "v")).matches(k_e) => {
                    ctx.submit_command(commands::PASTE.to(Target::Auto));
                    ctx.set_handled();
                }
                _ => (),
            },
            _ => (),
        }
        child.event(ctx, event, data, env);
    }
}

That works in Windows 10, I think it should be added automatically somehow if the user doesn't have menus. Many applications in Windows don't have menus.
The examples right now feel a bit broken for a newbie when the copy & paste doesn't work out of box, which I think is not ideal for first impression of this great library.

My priority with the textbox right now is to rewrite it on top of the patch adding IME support; that's going to change how a lot of these interactions are wired, and then we can revisit this.
IME tracking: #1308
initial impl: #1378
this was intended to be my main goal for this week, but I've ended up being waylayed a few times already... 😒


Fixes #1073, #1058, #480 #1049. Provides more automation to the ScrollBarView, allowing easily implement on any view.

Requires just a little code to implement.
Ideal for views that already have key and mouse scrolls implementation.
The views must provides properties for the top row and total of lines for the vertical scroll bar. The top row must be writable.
The views must provides properties for the left column and maximum visible length line for the horizontal scroll bar. The left column must be writable.
Added right and left scrolling feature to the ListView.

This is a huge PR.
We have no unit tests for any of this, right? Did you consider how you could add some as part of this PR?

I included a unit test file https://github.com/migueldeicaza/gui.cs/pull/1081/files#diff-c9a88e56f88e0a9ee5ca5566c1581c0cb11b51a3cb99e712e8b3f1991649823f. I also changed three UICatalog scenarios to demonstrate his functionality.

This is a huge PR.
We have no unit tests for any of this, right? Did you consider how you could add some as part of this PR?

I included a unit test file https://github.com/migueldeicaza/gui.cs/pull/1081/files#diff-c9a88e56f88e0a9ee5ca5566c1581c0cb11b51a3cb99e712e8b3f1991649823f. I also changed three UICatalog scenarios to demonstrate his functionality.

Sorry, i didn't notice the unit tests file! Well done!

Sorry, i didn't notice the unit tests file! Well done!


Pull all column header strings into variables

So that others can see which columns the code depends on.

Hardcoded titles are in lawyer-client-matching.gs . Titles (with appropriate field names) should be put into client-column-metadata.gs in the v2 side of the if/then.


Linked from message in terminal to install .NET prerequisites. Not referenced in the page of how to do this Windows 11 22H1

[Enter feedback here]

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

ID: 1eeab451-820f-de42-983e-4d0d5764f6ab
Version Independent ID: d11d0d14-8a03-50e4-5c00-9a4417ad4d0a
Content: Install .NET on Windows - .NET
Content Source: docs/core/install/windows.md
Product: dotnet
Technology: dotnet-install
GitHub Login: @adegeo
Microsoft Alias: adegeo

Hello. Can you give me more information? What link were you given? What are you trying to do? If you're trying to install .NET, this page should have all of the info you require.

This is the 1st comment I have received on the issue. No request for further details was emailed to me hence no response.
Keep this closed as experience has shown that many links point to generic responses that lack the detail needed, some even referring to differing languages from that in the question.
In most cases they say what is wrong, and what should be done but with so little detail it requires more searches which often lead you in a circular route,
I would have thought that the feedback would have included details of what I was commenting on rather than being a generic input form.
Best Regards
Charles Cartmel
@.***
From: github-actions[bot] @.>
Sent: 08 November 2022 22:10
To: dotnet/docs @.>
Cc: hairagon @.>; Author @.>
Subject: Re: [dotnet/docs] Linked from message in terminal to install .NET prerequisites. Not referenced in the page of how to do this Windows 11 22H1 (Issue #31977)
This issue has been automatically closed due to no response from the original author. Please feel free to reopen it if you have more information that can help us investigate the issue further.
—
Reply to this email directly, view it on GitHub https://github.com/dotnet/docs/issues/31977#issuecomment-1307892828 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AG4HAAFMO6FA4EFKG4OT7QDWHLFUHANCNFSM6AAAAAARL2A7QM .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AG4HAACCQNBWKGHHDJZTMELWHLFUHA5CNFSM6AAAAAARL2A7QOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSN6TOFY.gif Message ID: @.*** @.***> >
This email has been scanned by BullGuard antivirus protection.
For more info visit www.bullguard.com http://www.bullguard.com/tracking.aspx?affiliate=bullguard&buyaffiliate=smtp&url=/

Closing per OP's previous comment.


log file on perisitent volume

is there a way to get the log file onto a peristent volume?

Nothing simple at the moment. You could use custom tinyproxy.conf so you can control the LogFile option or somehow configure logging on docker level (or journald/syslog). I'll probably  add an env variable for LogFile at some point.

ok, can I simply link the tinyproxy.conf outside the container with docker-compose and edit it?

Yes, with bind mounts. See: https://github.com/kalaksi/docker-tinyproxy#configuration


add some validations

add validations to some inputs like filename and file path (should contain a file extension), this might cause the file URL to be invalid

True...let's create a new bifrost error code called ErrInvalidParameters so we have something like
return nil, &errors.BifrostError{
	Err:       err,
	ErrorCode: errors.ErrInvalidParameters,
}

Resolved


Failed to import dwave.inspector because the file _minorminer.cp313-win_amd64.pyd from the minorminer package is flagged as a virus.

Description
Failed to import dwave.inspector because the file _minorminer.cp313-win_amd64.pyd from the minorminer package is flagged as a virus.
To Reproduce
Run the following command: import dwave.inspector
Expected behavior
The import should work without any issues.
Environment:

OS: [window 11]
Python version: [3.13.1]
Ocean SDK version: [8.1.0]

Additional context

I have same issue: ImportError: DLL load failed while importing _minorminer

@darkmatter2000, what error message are you getting? I see you're using Python 3.13. Would it be possible to check if it also happens with 3.12? And if so, does this happen with only minorminer==0.2.16 or also with minorminer==0.2.15?
@Jacck , I suspect the DLL load fail might be different. But similar question, can you post the full traceback? And does it happen only with one version of minorminer or with all? What version of Python are you using?


qrcode: ECI regression fix (PR #179 [88510ab])

Fixes regression introduced by PR https://github.com/bwipp/postscriptbarcode/pull/179 not taking into account ECIs - needs to exclude isECI also in numBs/nextBs calculation loop (sigh).

No just me burning the midnight oil then... :-)

Ha trying to ship next version of Zint!


[SPARK-45507][SQL] Correctness fix for nested correlated scalar subqueries with COUNT aggregates

What changes were proposed in this pull request?

We want to use the count bug handling in DecorrelateInnerQuery to detect potential count bugs in scalar subqueries.  it It is always safe to use DecorrelateInnerQuery to handle count bugs, but for efficiency reasons, like for the common case of COUNT on top of the scalar subquery, we would like to avoid an extra left outer join. This PR therefore introduces a simple check to detect such cases before decorrelate() - if true, then don't do count bug handling in decorrelate(), and vice-versa.
Why are the changes needed?

This PR fixes correctness issues for correlated scalar subqueries pertaining to the COUNT bug. Examples can be found in the JIRA ticket.
Does this PR introduce any user-facing change?

Yes, results will change.
How was this patch tested?

Added SQL end-to-end tests in count.sql
Was this patch authored or co-authored using generative AI tooling?

No.

Pinging for first round of reviews :-) @jchen5 @agubichev

@cloud-fan Failed tests in build. I think the first one is unrelated to the PR, but not sure about the second one

Docker integration tests:

[error] Error during tests:
[error] 	org.apache.spark.sql.jdbc.v2.OracleIntegrationSuite
[error] 	org.apache.spark.sql.jdbc.OracleIntegrationSuite

pyspark-mllib

Error: The operation was canceled.

can we retrigger the failed test jobs via GitHub UI?

@cloud-fan Retried, looks like only the Docker integration tests are failing now.

OK that's definitely unrelated. I'm merging it to master, thanks!


Updated sea height query URL

Amended URL for sea height query, following FMI stopping provision of OAAS as part of phasing out Hirlam weather models.

Hi @anand-p-r , have you had a chance to look at that PR?  What do you think?

Hi again @anand-p-r .  Do you think this PR could be merged, to update the URL for sea level data?

I have been running this for a year now, and have had no issues.  The old query for sea height does not work, because FMI changed the underlying models.  Could this be merged in @anand-p-r?

Thanks a lot!
This PR included here https://github.com/fmi-hass/fmi-hass-custom


command 'zig.zls.startRestart' not found

Hi, I have a fresh installation of zig on my mac 0.11.0, and installed zls through the vscode market place v0.4.3.
The documentation says that it should work out of the box, but any zls command I try to trigger such as start server results in an error.

I have zig installed
I have zls installed
I have the zig language extension installed.
Documentation says everything should work out of the box but it does not. Either documentation with the correct steps need to be written, or there is a bug.

Same

Do you have zig.zigPath, zig.zls.path and zig.zls.enabled set? Are you seeing any output from "Zig Language Server"?

There are two problems here:

Lack of automation. This extension requires manual steps to get it working. It would be nice if the extension would just work out of the box.
Lack of documentation. If an extension requires manual configuration before it is useful, the bare minimum steps need to be documented somewhere obvious. I've raised this issue here https://github.com/ziglang/vscode-zig/issues/142.

Automation requires some careful thought. What are the sane defaults?

Should zig or zls be installed automatically?
Should the extension find zig or zls in PATH and use those?
Should zig and zls be treated differently? (How does zls offer compatibility with a particular zig version?)

Setup only requires answering two questions:

what zig to use

install zig
select path to zig
use zig in PATH

what zls to use

do not use zls
install zls
select path to zls
use zls in PATH

Everything else is automatic.

A new version of the extension has been published, please try running through the setup with it.

Got into the same problem today with v0.5.2. Is this a regression?

Nobody actually confirmed if this was fixed so I don't know. Could you give details on your installation process and setup?

I am running on a mac but I am using flake to install all the dependencies.
VSCode terminal recognizes the zls and zig
Starting zls manually and VSCode seems to be able to connect to it directly(go to definition...)
I wonder if there is an error somewhere that stops the commands from being registered

The only reasonable way it wouldn't get registered is the initial setup failing; do you have zig.initialSetupDone set in your global config?

I checked mine and it is not set.
Hm, I recently starts to manage the settings with home-manager(nix) which would make the global settings readonly. Does the plugin set the option and use that as an indicator to register command?
I also tried to set the same option in workspace settings to true but that would not work

I wasn't able to reproduce your issues by setting the settings readonly and changing the workspace settings should have the same effect as global settings. Are you getting a modal asking you to select which zig to use? Is there anything logged in the Output view under zig?

Can you try if 0.5.3 fixed this for you?

I think the main problem is documentation.
It's unclear from the docs or setup that these settings need to be set:

zig.initialSetupDone
zig.path
zig.zls.path

Sorry for the delay in reponse. A couple of busy days at work. Will check it later today and report back

I think the main problem is documentation.
It's unclear from the docs or setup that these settings need to be set:

They need to be set but the extension sets them for you.

@Vexu

Can you try if 0.5.3 fixed this for you?

I am on the 0.5.3 branch and unfortunately this does not work.

Are you getting a modal asking you to select which zig to use?
There used to be a modal until I set zig path inside my workspace settings:

  "zig.path": "/nix/store/0qglrgn4flkqdavxkw4snvr3zn5496y7-zig-0.12.0-dev.2327+b0c8a3f31/bin/zig",
  "zig.zls.path": "/nix/store/q9f3k6djhc6nfyj63249nda1qk5v4zkg-zls/bin/zls",
  "zig.formattingProvider": "zls",
  "zig.initialSetupDone": true,
  "zig.zls.checkForUpdate": false

There was a modal that pop-up every time I open VSCode about error writing to readonly file. I double checked if this is caused by the extension by disable the extension and it would stop

Maybe the extension crashes after failing to set the settings? Would it be possible for the extension to set the workspace settings instead or use an alternative method to store init state?
There are also no zig output:

By "0.5.3 branch" you mean the extension reports version 0.5.3? Can you try setting zig.checkForUpdates to false? It's the only other setting I can think of that it could be trying to set.

I think the main problem is documentation.
It's unclear from the docs or setup that these settings need to be set:
* zig.initialSetupDone

* zig.path

* zig.zls.path

I agree, which is why I created #142. Unfortunately, this was closed without any documentation being added. I would have been happy to open a pr to address this if I thought the maintainers would be receptive to it.
I think the maintainers have a philosophy about software development that UX alone should be good enough to make documentation unnecessary. I agree that this is a good goal that we should all pursue. But it is not realistic to assume that it can always be reached 100%, especially when the software is just a plugin with UX that is tightly constrained by another application.
I occasionally set up new vscode instances with this extension and in my experience, these settings often do not get configured. I dealt with this as recently as last week. There are supposed to be prompts to ensure these are configured, but I don't think this approach is very reliable.
I already know that they need to be set, so I manually go into the config file and edit the values when necessary. For new users who don't have this knowledge yet, it could be useful to have a simple explanation to help them troubleshoot when these values are not set correctly, so they don't need to go through github issues to figure it out. It would also be useful for anyone who needs to make changes to their zig tooling after the initial setup of this extension.

I don't want users to have to read documentation to use the basic funcionalities of the extension and I think the initial setup is now good enough to accomplish that. If you make a PR that adds some documentation describing the key configuration values and some troubleshooting tips then I'll gladly merge it.


node-redis 4.0.0 support

I tried upgrading node-redis to 4.0.0 but the redis-adapter stopped working. it is not a huge issue as downgrading to 3.1.2 fixed it. in the meantime we could add a notice to the readme to make it clear.

For future readers, support for redis@4 was added in 7.1.0.
The only difference is that you now need to call redisClient.connect():
const { Server } = require('socket.io');
const { createClient } = require('redis');
const { createAdapter } = require('@socket.io/redis-adapter');

const io = new Server();
const pubClient = createClient({ host: 'localhost', port: 6379 });
const subClient = pubClient.duplicate();

io.adapter(createAdapter(pubClient, subClient));

Promise.all([pubClient.connect(), subClient.connect()]).then(() => {
  io.listen(3000);
});

See also: https://github.com/redis/node-redis/blob/master/docs/v3-to-v4.md


Implement User update

https://api.cloudflare.com/#user-update-user

@Tenzer Can this be closed? Thanks

It can!


mod Variable

Hi,
is it possible to add a variable in the update warn message to show which mod is going to be update ?
For exemple : Serveur is restarting to update the mod $modname
Thanks

i.e. something like the following?
msgWarnReason="This ARK server will shutdown for {reason} in {time}"
msgTimeMinutes="{minutes} minutes"
msgTimeSeconds="{seconds} seconds"
msgReasonUpdateApp="an update to the game"
msgReasonUpdateMod="an update to mod(s) {modnamesupdated}"
msgReasonUpdateAppMod="an update to the game and an update to mod(s) {modnamesupdated}"
msgReasonRestart="a restart"

where

{reason} is replaced by the reason selected from the msgReason* variables
{time} is replaced by the time string selected from the msgTime* variables
{minutes} is replaced by the number of minutes remaining
{seconds} is replaced by the number of seconds remaining
{modnames} is replaced by the comma-separated list of mod names

Would be perfect yep !

Is it possible to impliment that ?

@klightspeed  ?

Are you happy with the options added with 1.6-dev?

Closing old requests


File extension?

I'm interested to evaluate the product but what has really put me of the lack of extension type.
Are we talking bananas, apples, kind of fish birds? Or just nonsense?
Is it too much asking to add the extension type? TAR. GZ, ZIP, RPM . . . or you have never heard of those?
I wonder the "millions" of downloads you claim or are the possible permutations to open the file?
###########################
Thank you for having dismissed a simply frustrating question from a customer so easly.
Typical french attitude! and you are publicising this tool as innovative?
REVIEW OF TOOL = MINUS 5000
SUPPORT = MINUS <IP_ADDRESS>.000.000

@MarioColuzzi Could you please tell us which extension should have a binary ?
As clearly stated in the documentation (https://docs.traefik.io/#the-official-binary-file), downloads available at https://github.com/containous/traefik/releases are binaries compiled for each arch / os. It's not hidden in the documentation, it's on the Getting Started page.
Did you previously succeeded to have people help you with such bad behavior ?
Note: I'm in no way affiliated with Traefik or Containous.io, just a user.

When you talk about package you identify a:
.rpm to be a RedHat Package Manager
.deb is Debian Package Manager
.zip a ZIP Compressed file
.tar a Tape ARchive
. . .
I hope they teach this things in IT French Schools
But you evidently are oblivious of such name convention as you live in your world and expect people to read minds.
I lived in France I did find this attitude very common because you always expect people to understand you . . . "traefik_linux-386" is a RPM and "traefik_linux-amd64" is TAR . . . really? . . .  where the frack is the extension????????

Hello @MarioColuzzi,
The binaries are executable binaries (like an .exe on Windows) as describe in the documentation and they are not packages. There is no extension for executable binaries for Linux, BSD, or MacOS.
We always appreciate constructive criticism, but this is not the case here.
Your speech is defined by law (US and EU at least) as racial discrimination.
This kind of behavior coming from a contributor or any kind of people is unacceptable and forbidden by all OSS projects.
This kind of behavior and aggressive speech also violate GitHub’s Terms of Service:

content-restrictions
conduct-restrictions

We respect the law and GitHub’s Terms of Service, so the issue is now locked.


fetch(withRelated) where.

Hi,
I've just started using bookshelf and I looked through many of the similar issues. I apologize in advance if the question was already answered elsewhere.
I have a user and account model:
var Account = Bookshelf.Model.extend({
  tableName:        'account',
  user: function() {
    return this.hasMany(User);
  }});

var User = Bookshelf.Model.extend({
  tableName:        'user',
  account: function() {
    return this.belongsTo(Account);
  }});

account has a name column and user has an email column.
I want to find a single user where email = X belonging to an account with name = Y.
I'm able to return the users belonging to an account with relation, but I'm uncertain how to query for a specific user.
exports.findUserByEmailInAccount = (email, name) => {
  return Account.forge({name: name})
  .fetch({withRelated: ['user']})
  .then((account) => {
    if (account) {
      return users = account.related('user');
      //find a specific user from the relation
      } else {
      return null;
    }
  })
  .error((err) => {return err;});
};

Either of these will work:
Account.forge({name: accountName}).fetch().then(account =>
  account.related('users').where('email', email).fetch({ require: true })
).then(user =>
  console.log('Found a user', user))
).catch(User.NotFoundError, error =>
  console.error(`Unable to find user with email ${email} in account ${accountName}`)
);

Account.where({ name: accountName }).fetch({withRelated: {
  users: query => query.where('email', email)
}}).then(account => account.related('users')).then(_.first).then(user =>
  console.log('Found a user', user)
);

I tried these, but kept getting this error:
Unhandled rejection TypeError: Cannot read property 'where' of undefined
at null.<anonymous>

It's in reference to ```account.related('user').where('email', email)

Oh, sorry... It should be account.related('user').query('where', 'email', email)

Ok that got it to work.
Thanks for helping me out so quickly.

hi @rhys-vdw  please help me.
i found all data from the database in 1st tabel name is Car
it linked with 2nd withrelated table(engine)  have a fuel type. if it is petrol then show me all data which have a petrol type . if condition is wrong then no need to display that tabel.
my problem is
table has displayed but if condition is wrong its return a empty object....
please help me

Try putting something inside the first argument to .where().

Try putting something inside the argument to the first .where().

that is not the case @ricardograca . the case needs to filter the engine. if there is not engine available which I search  then I no need that car detail too.


Are cogs supported? If so how can i load them?

Are cogs supported? If so how can i load them?
I was not able to load them the normal way.

They're in progress, currently some things are broken and they're different to discord.py implementation. Once I've fully completed it and error free I'll add an example to the wiki.


Update packages

@kiuka thanks for the update! Would you try running npm run build.prod.exp and verify that everything works fine there too? I'll include this in the CI build script pretty soon.

It failed with NodeJS 4.6, but according to this https://github.com/mgechev/angular-seed/issues/1402#issuecomment-250381386 it worked nicely after updated to the current 6.8 version.

@kiuka merged, thanks for the PR!


Whitespace character filtering

This is a new issue to discuss whitespace character filtering as mentioned in #15 and #27
The implementation will probably depend on density of whitespace characters.

few occurrences, not grouped together (e.g. one new line every 80 characters): update error handling to filter those characters (easy, fast, tested on my end).
few occurrences of group of whitespace (e.g. one new line + n spaces every 80 characters): update error handling to filter those characters by skipping multiple characters at a time (not tested at all on my end).
many occurrences: a preprocess step might be more suited. This is still quite slow (1st implementation was based on code snippet from #15, changed that with a LUT for the shuffle mask):
SSE4.2 implementation

while (srclen >= 32U) {
	// Characters to be checked (all should be valid, repeat the first ones):
	const __m128i whitespaces = _mm_setr_epi8(
		'\n','\r','\t', ' ',
		'\n','\r','\t', ' ',
		'\n','\r','\t', ' ',
		'\n','\r','\t', ' '
		);

	static const uint8_t lut[][16] __attribute__((aligned (16))) = {
		{   0U,   1U,   2U,   3U,   4U,   5U,   6U,   7U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U },
		{   1U,   2U,   3U,   4U,   5U,   6U,   7U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U },
		...,
		{ 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U, 255U }
	};

	static const uint8_t ipopcnt_lut[] = {
		8U, 7U, 7U, 6U, 7U, 6U, 6U, 5U, 7U, 6U, 6U, 5U, 6U, 5U, 5U, 4U,
		7U, 6U, 6U, 5U, 6U, 5U, 5U, 4U, 6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U,
		7U, 6U, 6U, 5U, 6U, 5U, 5U, 4U, 6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U,
		6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U, 5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U,
		7U, 6U, 6U, 5U, 6U, 5U, 5U, 4U, 6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U,
		6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U, 5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U,
		6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U, 5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U,
		5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U, 4U, 3U, 3U, 2U, 3U, 2U, 2U, 1U,
		7U, 6U, 6U, 5U, 6U, 5U, 5U, 4U, 6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U,
		6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U, 5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U,
		6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U, 5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U,
		5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U, 4U, 3U, 3U, 2U, 3U, 2U, 2U, 1U,
		6U, 5U, 5U, 4U, 5U, 4U, 4U, 3U, 5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U,
		5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U, 4U, 3U, 3U, 2U, 3U, 2U, 2U, 1U,
		5U, 4U, 4U, 3U, 4U, 3U, 3U, 2U, 4U, 3U, 3U, 2U, 3U, 2U, 2U, 1U,
		4U, 3U, 3U, 2U, 3U, 2U, 2U, 1U, 3U, 2U, 2U, 1U, 2U, 1U, 1U, 0U
	};

	__m128i c0 = _mm_loadu_si128((const __m128i*)(src +  0));
	__m128i c2 = _mm_loadu_si128((const __m128i*)(src + 16));
	src += 32;
	srclen -= 32U;

	__m128i wm0 = _mm_cmpistrm(whitespaces, c0, _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_BIT_MASK);
	__m128i wm2 = _mm_cmpistrm(whitespaces, c2, _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_BIT_MASK);

	unsigned int mi0 = (unsigned int)_mm_cvtsi128_si32(wm0);
	unsigned int mi2 = (unsigned int)_mm_cvtsi128_si32(wm2);

	if (mi0 | mi2) {
		unsigned int i0 = ipopcnt_lut[mi0 & 255U];
		unsigned int i1 = ipopcnt_lut[mi0 >> 8];
		unsigned int i2 = ipopcnt_lut[mi2 & 255U];
		unsigned int i3 = ipopcnt_lut[mi2 >> 8];

		__m128i c1 = _mm_srli_si128(c0, 8);
		__m128i c3 = _mm_srli_si128(c2, 8);

		c0 = _mm_shuffle_epi8(c0, _mm_load_si128(lut[mi0 & 255U]));
		c1 = _mm_shuffle_epi8(c1, _mm_load_si128(lut[mi0 >> 8]));
		c2 = _mm_shuffle_epi8(c2, _mm_load_si128(lut[mi2 & 255U]));
		c3 = _mm_shuffle_epi8(c3, _mm_load_si128(lut[mi2 >> 8]));
		_mm_storel_epi64((__m128i*)dst, c0);
		dst += i0;
		_mm_storel_epi64((__m128i*)dst, c1);
		dst += i1;
		_mm_storel_epi64((__m128i*)dst, c2);
		dst += i2;
		_mm_storel_epi64((__m128i*)dst, c3);
		dst += i3;
	}
	else {
		_mm_storeu_si128((__m128i*)(dst +  0), c0);
		_mm_storeu_si128((__m128i*)(dst + 16), c2);
		dst += 32;
	}
}

Here are the timings. All throughputs are given for the output buffer which is the same for all variants.
decode: valid base64 input
decode-s: one whitespace every 80 characters (we can see the choice of 80 has an impact on AVX2 decoder for method 1 because it's a multiple of 16 but not 32)
decode-s8: 8 whitespace every 80 characters
decode-d: 1 whitespace before each valid character.
Method 1 seems to be the best for sparse whitespace characters except for AVX2 decoder (that could/should be fixed to handle 8/16 bytes valid input). For handling sparse group of characters or very dense whitespace characters, Method 3 is better.
Real world data analysis would be good to know what case we want to optimize.
For Method 1:
Filling buffer with 10.0 MB of random data...

We are looking into adopting this library, and ran into an issue with some keys we expect to decode have \n characters.

@izoroth Short answer: not currently, no.
Long answer: Well, it's not really a PR, it's a series of sketches of what a despacing algorithm might look like. There's no definite patchset to merge, and if there was, the patches would probably not apply on top of the current master branch. There would also be API changes to consider. And there is a discussion to be had about whether to optimize for sparse whitespace or dense whitespace.
I think that whitespace filtering could make sense in this library as an opt-in feature, but it's not fleshed out enough yet.


Support for AD file writer CreateDirectory PV

AreaDetector file writer plugins (TIFF, HDF5, ...) are intended to write the image buffer to a directory and file.  The plugin can create the directory path, given certain parameters.  One parameter that is not yet interfaced in ophyd is the CreateDirectory PV which can, if set to a negative value, create up to that many subdirectory levels.  It's default setting is zero (no directories created).  This PV will fix #728.

Is there a way to set a default value?  We have found (at APS) that -5 is a reasonable default for us.

The stage_sigs are the place to put the configuration you want the detector to be in during data collection.

So this must come before the stage sig for the file path.  Got it.

Sorry, on a plane that is starting to land so no time, have a look at the PR where @klauer added those classes for how to use them.
The stage_sigs are an ordered dict exactly to support this sort of sequenced staging.

Thanks.  Happy landing.  Great support, even at 30k'!

Yes, this is addressed in the other PR as @tacaswell mentions. We need to keep the PVs separated by version in their respective classes, so I'm afraid we can't merge this.


gulp command is not running

I have installed gulp globaly on my windows and locally in my project however when i run the gulp command i get this error :
module.js:341
throw err;
^
Error: Cannot find module 'gulp-sass'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (C:\wamp(php5.6)\wamp64\www\dento\Denteo\src\Denteo\Bu
ndle\PatientBundle\Resources\public\gulpfile.js:2:23)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
Deos anyone knows what could be the source of this problems:
Thanks for answering.

Support questions should be directed to StackOverflow.


[pulsar-broker] Optimize message replay for large backlog consumer

Motivation
It address #3731.
Modification

Introduce ConcurrentSortedLongPairSet that helps broker to avoid random read across multiple managed-ledgers. It still uses ConcurrentLongPairSet to avoid object allocation for message-ids.
introduce <T> Set<T> items(int numberOfItems, BiFunction<Long, Long, T> longPairConverter) method  in LongPairSet to avoid creating temporary LongPair objects.
this change will not impact to normal usecase where topic doesn't have backlog and doesn't have many active managed-ledgers.

Note
I have done performance testing on GrowablePriorityLongPairQueue which I had introduced sometime back but its insert/remove is super slow and CPU intensive so, we can't use it in this scenario.

rerun java8 tests

rerun java8 tests

rerun java8 tests

rerun java8 tests

rerun java8 tests

rerun integration tests


Fix MacOS builds

Bug
Errors occurring when attempting to install tkextrafont
Requirement already satisfied: pip in /Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages (23.0.1)
Collecting pip
  Obtaining dependency information for pip from https://files.pythonhosted.org/packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl.metadata
  Downloading pip-23.3.1-py3-none-any.whl.metadata (3.5 kB)
Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 23.7 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.0.1
    Uninstalling pip-23.0.1:
      Successfully uninstalled pip-23.0.1
Successfully installed pip-23.2.1
Collecting gitpython (from -r requirements.txt (line 1))
  Downloading GitPython-3.1.40-py3-none-any.whl.metadata (12 kB)
Collecting filetype (from -r requirements.txt (line 2))
  Downloading filetype-1.2.0-py2.py3-none-any.whl (19 kB)
Collecting tkextrafont (from -r requirements.txt (line 3))
  Downloading tkextrafont-0.6.1.tar.gz (656 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 656.8/656.8 kB 12.5 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Installing dependency cmake... Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-52w4vt39/tkextrafont_c6eed893e5fc4d1ca15a7412b331e576/setup.py", line 63, in <module>
          sp.call(["pacman", "--needed", "--noconfirm", "-S", "mingw-w64-x86_64-{}".format(dep)])  # , stdout=sp.PIPE)
        File "/Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/subprocess.py", line 345, in call
          with Popen(*popenargs, **kwargs) as p:
        File "/Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/subprocess.py", line 971, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/subprocess.py", line 1863, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'pacman'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

System Information

OS: macos-latest
Python Version: 3.10

Yes, tkextrafont has been in maintained for quite some time.

@Moosems according to the tkextrafont docs, for the linux support of library they have specified some prerequisites

This example is given for Ubuntu 20.04, change the names of packages and commands as required for your distribution of choice.
sudo apt install python3-dev tcl-dev tk-dev \
    fontconfig libfontconfig1 libfontconfig1-dev \
    cmake cmake-data extra-cmake-modules build-essential
python -m pip install scikit-build
python setup.py install

https://github.com/TkinterEP/python-tkextrafont?tab=readme-ov-file#linux
They have not mentioned about macos support though. But what all would be the prerequisites for macos to compile the library?

No idea. Depends on how the library works.

merging issue #86 as both mention same problem

Was trying to install it on macos and faced the same problem. Made an issue here: https://github.com/TkinterEP/python-tkextrafont/issues/14


Update pick-right-solution.md

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remember to delete this note before submitting your pull request.
For pull requests on 1.17 Features: set Milestone to 1.17 and Base Branch to dev-1.17
For pull requests on Chinese localization, set Base Branch to release-1.16
Feel free to ask questions in #kubernetes-docs-zh
For pull requests on Korean Localization: set Base Branch to dev-1.16-ko.<latest team milestone>
If you need Help on editing and submitting pull requests, visit:
https://kubernetes.io/docs/contribute/start/#improve-existing-content.
If you need Help on choosing which branch to use, visit:
https://kubernetes.io/docs/contribute/start#choose-which-git-branch-to-use.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/assign @awkif

/lgtm

There is no equivalent English-locale page
This change is an addition to the French localised pages, and not a localisation of the original content.
/hold

@KYamani do you need to declare an interest here?

@sftim I would like to add this cloud provider in this french page
I just did another PR for the english equivalent page: https://github.com/kubernetes/website/pull/18421

This PR needs a rebase.
I'm not an approver for French.
/uncc

@KYamani this PR is out of date and does not meet the requirements of the content guide.
I'm going to close it.
/close


Use CSS, divs, etc, for central now-playing cover

Using divs within divs will allow a "object-fit:contain" like display, and he nallow pure CSS to be used for rounding. This will then negate issues with transparent PNGs.

Implemented for 3.5.0


Also detect plugins during development

fixes pestphp/pest#77

Thanks!

v0.2.1 contains this feature


LCAM-393|End point to get Contribution Calc Parameters

What
Link to story
Created an end point to retrieve Contribution Calc Parameters for an effective date as per get_contribs_parameters stored procedure in the contributions package.
Checklist
Before you ask people to review this PR:

[ ] Tests should be passing: ./gradlew test
[ ] Github should not be reporting conflicts; you should have recently run git rebase main.
[ ] Avoid mixing whitespace changes with code changes in the same commit. These make diffs harder to read and conflicts more likely.
[ ] You should have looked at the diff against main and ensured that nothing unexpected is included in your changes.
[ ] You should have checked that the commit messages say why the change was made.

@venkat980 Just a quick note about reducing the boilerplate code, You could use @MaatApiReadErrorResponses as per this commit. https://github.com/ministryofjustice/laa-maat-court-data-api/pull/749/files.


Fix package.json

my last commit had an incorrect merge and ended up skipping the publish

@constanzauanini @nickgraz getting this in I messed up a rebase/merge which ended up skipping the npm publish

Ugh, that didn't work. Not sure what I messed up. Trying again.


Add 0.08em padding above \sqrt

This way, any browser imprecision on the parent span.height will not encroach on the ink of the \sqrt top line.

I'll regenerate the screenshots this weekend.

Swiping the Raisebox screenshots shows that the surd has come down a bit, but using texcmp it looks like it's closer to what LaTeX.

@ronkok I'm happy with how things are looking in Firefox when the font is 12px.  I'm not seeing any of the clipping I was seeing before.  I generated the screenshots before you merged in master so I will have to regenerate them.

Hmm... I tried regenerating the screenshots in question based on 32682b4, but there's no change.  Maybe merge with master again.

I tried another merge here, too. I'm getting messages about multiple image file conflicts. I'm sorry about this, but I really don't know what to do next.

@ronkok to resolve conflicts in binary files use git checkout --ours -- path_to_file or git checkout --theirs -- path_to_file.  In this case it doesn't matter which one you pick b/c I'm going to regenerate the screenshots.  See https://stackoverflow.com/questions/278081/resolving-a-git-conflict-with-binary-files.

Closing here. Will reopen elsewhere.


Context menu (pop and click) doesn't focus the window

Issue Type: Bug

using macOS. Preferably with 2 or more displays.
Open a VSCode window (let's call it "first") with any project and the (file) Explorer opened on a side bar.
Focus some other ("second") window (e.g. a browser or another VSCode window)
Back in the first window (without first focusing it), open a file or folder's context menu and select something that requires typing (new file, new folder, rename...).
Type a file or folder name on your keyboard.

Expected behaviour: keyboard input goes into the highlited input field.
Actual behaviour: window doesn't focus and keyboard input goes into the second window.
macOS behaviour (in Finder): main window doesn't focus but keyboard input goes into its input field.
VS Code version: Code 1.66.2 (Universal) (dfd34e8260c270da74b5c2d86d61aee4b6d56977, 2022-04-11T07:49:20.994Z)
OS version: Darwin x64 20.2.0
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-3635QM CPU @ 2.40GHz (8 x 2400)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
8.00GB (0.10GB free)

Process Argv
--crash-reporter-id c45ad719-2498-406c-9421-8cd79d6b01c2

Screen Reader
no

VM
0%

Extensions (21)

Extension
Author (truncated)
Version

vscode-css-formatter
aes
1.0.2

svelte-intellisense
ard
0.7.1

vscode-tailwindcss
bra
0.8.2

bracket-pair-colorizer
Coe
1.0.62

dart-code
Dar
3.38.2

flutter
Dar
3.38.1

vscode-great-icons
emm
2.1.86

vsc-material-theme-icons
equ
2.2.1

json-to-dart
hir
3.5.7

vscode-github
Kni
0.30.7

dart-import
lua
0.3.1

svelte-format
mel
0.0.7

fluent-icons
mig
0.0.17

awesome-flutter-snippets
Nas
3.0.3

svelte-autoimport
piv
1.0.4

material-icon-theme
PKi
4.16.0

vscode-yaml
red
1.6.0

svelte-vscode
sve
105.16.0

icons
tal
3.1.0

vscode-icons
vsc
11.11.0

vscode-todo-highlight
way
1.0.5

(1 theme extensions excluded)

I am sorry but I do not know the exact duplicate issue number. But please search for "electron context menu focus" and you should be able to find it. Thanks


How to use protectvm.py

Hey Idan.
I want to learn how to use protectvm.py
For example:
protectvm.py -s XXX.XXX.XXX.XXX
Could you give me an example
Or give me some explanation
Protectvm.py - h I didn't understand
Thank

Check out the new revision of the script, run with -h to see some quick examples, and let me know if you need anything else.