[Feature]: Add a flag to pause at Watch Usage menu

🚀 Feature Proposal
I want a new flag to be able to run jest --watch --xyz in such a way that it doesn't automatically start testing, but lets me decide what set of tests should be executed from the Watch Usage menu.
Watch Usage
 › Press a to run all tests.
 › Press f to run only failed tests.
 › Press o to only run tests related to changed files.
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press q to quit watch mode.
 › Press Enter to trigger a test run.

Motivation
Whenever I am creating or updating a test suite I use the --watch flag. By default, this command checks which tests are related to files changed since last commit and runs them all. In large projects that can mean executing lots of unnecessary tests. The only way around is wait for the prompt and press a key to interrupt the run, which is uncomfortable and interrupts my work flow.
Determining test suites to run...

 RUNS  src/test/core/dex/uniForks/dmmMaticPair.unit.ts
 RUNS  src/test/core/dex/dodo/dodoMath.unit.ts
 RUNS  src/test/core/dex/balancerV2/balancerV2Pair.unit.ts
 RUNS  src/test/services/token/pricer.unit.ts

Test Suites: 0 of 8 total
Tests:       0 total
Snapshots:   0 total
Time:        52 s

Say I am updating dodoMath.ts and adding new tests to dodoMath.unit.ts. I may change some file that is referenced in other test suites, but I don't really care about their results until I am ready to commit - when I will run the whole lot to see nothing broke.
Example
package.json scripts: "test:watch": "jest --watch --hold"

> yarn test:watch

Watch Usage
 › Press a to run all tests.
 › Press f to run only failed tests.
 › Press o to only run tests related to changed files.
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press q to quit watch mode.
 › Press Enter to trigger a test run.

notice: Determining tests to run is bypassed.

press p

Pattern Mode Usage
 › Press Esc to exit pattern mode.
 › Press Enter to filter by a filenames regex pattern.

 pattern › dodo

 RUNS  src/test/core/dex/dodo/dodoMath.unit.ts

Pitch
Watch is a core Jest functionality, this feature request builds on it.

Damn

Happy to take a PR here adding --only-watch or something. --watch today implies --only-changed, which is why it starts running tests

Does --watch --only-changed false work?

@SimenB It seems that --watch with --only-changed false still runs the same set of tests as without this flag.
Anyway I just realised how --watch and --watchAll work so I was thinking that perhaps --watchPick would be even a better choice.

https://user-images.githubusercontent.com/2313018/166613061-cb0b3ddd-7b3a-4702-b243-6efca24023e5.mp4
I am not sure if running jest always took this long as I haven't worked on this repo for over a month, but I am sure it did take long enough time to make me think of a way how to bypass it, which resulted in this ticket.
Basically what I am trying to achieve is running the test:watch command and be immediately presented with the "Watch Usage" menu, where I could then press "p" and type a pattern.

Hello, do you need any more details? Do you find the video above enough of a motivation to pass this feature request?

@SimenB Do you think it would be reasonable to add a bug flag to this ticket too? Given the video above, there is over 1 minute of stale time where jest doesn't seem to do anything. I wonder what is happening.

I haven't been working on this project for several months now, but I just tried to update the jest ts-jest babel-jest packages to v28 and the long delay seems to be gone, so the "bug" from above seems to be resolved, however, it still tries to run all tests first, before providing me with the menu.
It would have been so much easier to skip the test runner and go to the Watch Usage menu directly.


C# - GeneratePropertyAction

I'm going to try port GeneratePropertyAction. I see that there are some ignored test for that action, so I'll treat them as starting point.

I think I can't assign myself as I'm not member of this project :)

Yes, that's right. I'll assign myself here to "protect" the issue and you are free to work on it and finally create a pull request.
Thank you for participating!

Just realized... Isn't Roslyn's Encapsule field refactoring (https://github.com/dotnet/roslyn/tree/master/src/Features/CSharp/EncapsulateField) doing the same thing GenerateProperty is supposed to do?
If so, is this issue still relevant?

Ah, you're right: Roslyn's "Encapsulate field" refactoring is doing almost the same. Ok, then I'll close this issue, but there are still more possible refactorings that would need a port :-)


Use Microsoft as a platform to pursue your passion

That's the spirit! But I'd like to leave it out. Thank you!


upload: support different configurations for organizations

PayGate Version: v0.9.0-dev
With a multi-organization setup in PayGate we should support an upload.Agent config for each organization. This involves an array of possible configurations and then a setting on each organization for which to use.
upload:
  ftpConfigs:
    - id: "test"
      hostname: <string>
      # ...
      inboundPath: <string> # moved from ODFI config
  sftpConfigs:
    - id: "my-bank"
      hostname: <string>
      # ...
      inboundPath: <string> # moved from ODFI config

The inboundPath, outboundPath, returnPath configurations would need to move from ODFI over to each upload.Agent as they could be different for each server.  The existing FTP/SFTP configs would move out from ODFI also.
This value would be stored as part of the organization_configuration table we're creating. Perhaps on a column like upload_agent_id and a value like sftp:my-bank? When that value can't match to a configured ftp/sftp config we'd need to error.
I don't think GET/PUT /configuration/transfers should support this value - it's internal for operators and we don't want a client changing it. If we need to support changing it in the future we can include it in the endpoint.
This change allows org1 to use ftp:test while org2 can use sftp:my-bank as different upload configs. Also with https://github.com/moov-io/paygate/pull/596 we're going to be including the hostname for each server as that'll allow us to determine where files/transfers went.

This sounds like a good proposal to me. The only thing I'd add is that it would be useful to include the upload agent ID in upload/download notifications, in addition to the hostname added in #596.


Clipboard should work

What exactly is wrong with it? Last time I tried (after the key events fix), I could copy&paste text inside a Workspace.

might be platform… doesn't work on osx

I mean copying between the OS and the image.

With the SDL2 branch merged, this was fairly easy to do using SDL2 clipboard functions. So this works now.


[Bug]-[688]: JS code on text style does not clear when user turns off the JS mode on text widget causing unexpected behaviour

Description
When JS code on text style is input with an incorrect code and JS toggle is turned off, then the error still stays on debugger and turning on text style via buttons (bold, italics) only adds to the existing JS incorrect JS code.
Steps to reproduce the behaviour:

Add text widget on to canvas and turn on JS code for text colour
Input a code such that an error appears on the debugger
Now turn off the JS code and use bold/italics buttons to define text style - observe the JS error still present on the debugger and any bold/italics value being added to the invalid JS code
toggle back on to JS code and observe that the code was not cleared and selected bold/italics are added to the code

Important Details

Version: Cloud
OS: Win10
Browser: Chrome
Environment: Release

Here, the JS evaluated value is trying to persist between modes. I think this is intended.
@hetunandu can you clarify?

Another thing that's observed is that once JS code is added with keywords bold/italics, then clicking on either Bold or Italics buttons changes text style but does not alter selected buttons. (even though the video is recorded on DP, the behaviour observed on release as well)
https://www.loom.com/share/871584c8d0984eebaee1f8117f795ea1

Here, the JS evaluated value is trying to persist between modes. I think this is intended.
@hetunandu can you clarify?

@somangshu When switching back from 'js' mode, the value should reset and no longer be dynamic.
https://github.com/appsmithorg/appsmith/blob/release/app/client/src/sagas/WidgetOperationSagas.tsx#L274-L283
Looks like the validation does not parse this value correctly.

Stats

Stat
Values

Reach
86

Effort (months)
0.25

We've disabled the JS toggle button unless a proper value is passed to the code. (merged to release)
This issue can't be reproduced anymore.


36 implement subtraction mechanic

Codecov Report

Merging #38 (3bb057c) into main (885bac4) will increase coverage by 0.69%.
The diff coverage is 97.22%.

@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   94.26%   94.95%   +0.69%
==========================================
  Files          16       17       +1
  Lines        1081     1249     +168
==========================================
+ Hits         1019     1186     +167
- Misses         62       63       +1

Impacted Files
Coverage Δ

src/lib.rs
100.00% <ø> (ø)

src/traits/interval/coordinates.rs
96.15% <66.66%> (ø)

src/traits/interval/subtract.rs
99.19% <99.19%> (ø)

src/traits/interval/overlap.rs
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Remove the "Upon refresh" option in scan all policy.

Per the issue: https://github.com/coreos/clair/issues/425
We don't need this option.

Option removed, close issue.


CMake improvements for local build (with static library)

Hello! Thank you, @eyalroz, for continuing the project.
I prefer the fork, since it supports CMake. Likewise, I use it with FetchContent:
function(ProvidePrintfLibrary)

    include(FetchContent)

    set(BUILD_STATIC_LIBRARY ON)
    set(SUPPORT_EXPONENTIAL_SPECIFIERS OFF)
    set(SUPPORT_LONG_LONG OFF)
    set(ALIAS_STANDARD_FUNCTION_NAMES OFF)
    set(DEFAULT_FLOAT_PRECISION "3")
    set(MAX_INTEGRAL_DIGITS_FOR_DECIMAL "3")

    FetchContent_Declare(printf_library
        GIT_REPOSITORY https://github.com/eyalroz/printf.git
        GIT_TAG v5.0.0
    )
    FetchContent_MakeAvailable(printf_library)

    FetchContent_GetProperties(printf_library SOURCE_DIR printf_source_dir)
    target_include_directories(printf PUBLIC $<BUILD_INTERFACE:${printf_source_dir}>)

endfunction()

I would like to address some miscellaneous issues which I had to bypass:

I use the function here to set the local variables to not mutate the parent scope. "Normal variables" are used instead of options. There might be a risk that the name of BUILD_STATIC_LIBRARY may clash with other libraries/dependencies - it's quite general. I would prefer to make the name more specific by adding a PRINTF_ prefix to the options, so the variables could be preset by the user also with the option command.
I had to propagate BUILD_INTERFACE include directory, because using #include "printf.h" causes a compile error, since no include directories are propagated by the library.
Some variables in the config mismatch the names used in the code. One example is PRINTF_INTEGER_BUFFER_SIZE CMake option. In the code, it is PRINT_INTEGER_BUFFER_SIZE. It means that the change to the former doesn't affect the latter.

I will create a PR that addresses the issue.

First, thank you for taking the time to file the issue and even a PR. I'll reply both here and on the PR page.

I am not sure I am too thrilled about the use of the project's CMakeLists.txt via add_subdirectory... but I suppose that's legitimate. I'm certainly willing to cater to such use by prefixing my option/variable names.

"no include directories are propagated by the library" <- when the library itself is built, it doesn't need any include directory, since printf.c and printf.h are located in the same place. But the library does propagate an include directory - when it is installed. That is how I intended for automated use to work. Are you asking me to add the repository's root as an include directory of the printf library target?
... also, I should say that this discussion makes me wonder about the placement of printf.h and printf.c. See #58.

Hmm, that sounds like a bug. I wish you had filed that separately...

PS:

Likewise

Just a phrasing nitpick: I don't think you can use "likewise" like you have in your first paragraph. I think you meant "additionally" or "also"; the second sentence does not discuss something that is like the subject of the first sentence.

What do you mean by not encouraging it in the README.md? Not to document the approach with FetchContent module? I come from embedded systems, writing firmware for small architectures, like ARM Cortex M, where I always cross compile, thus I never install the libraries. It means that FetchContent is the main approach for getting the dependencies to the project. Since the project is tiny, consuming it in such a way is preferable. Moreover, the library is implicitly addressed to such small, bare-metal projects, where it is preferred to get dependencies on the fly, and link them via the build interface. One more thing is, that if we support installation of the project, then supporting it to be used via FetchContent could be one more way to utilize it. Lots of libraries support such approach. I don't want to say that "let's do it, because others do that", but more "let's do it, because it became a standard".
To support that, not really much should be made:

Propagate the BUILD_INTERFACE include directory: https://github.com/eyalroz/printf/pull/57/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR66. The include directory may be the root directory or any. I would prefer to include it like: #include "printf/printf.h". For the installed lib: #include <printf/printf.h>. IMO, it should be supported out of the box.
Prefix the options. When the CMake options and Makefile defines have the same name, then generation of printf_config.h from printf_config.h.in is quite easy. Additionally, it's consistent.
Add PRINTF_ALIAS_STANDARD_FUNCTION_NAMES to compile definitions to support that option for the build interface.

Those changes are included in the PR.
@eyalroz Let's discuss that and later on I can create a PR, or you can add the changes on your own. Whatever you prefer.

P.S. Thanks for that nitpick. I stupidly used the hint from spelling add-on.

@eyalroz what is your opinion on that? :)

@KKoovalsky : Oh, sorry, I misread "and later on I" for "later on when I".

tl;dr: Create your PR, please...  I'll accept it.

What do you mean by not encouraging it in the README.md?

I mean, I am hesitant to list that as one of the ways to use the library. There are other ways as well, e.g. using ExternalProject, which I don't list. If I list it, then I'm obligated to support my CMakeLists.txt working in two distinct and possibly slightly contradictory ways.

I come from embedded systems, writing firmware for small architectures, like ARM Cortex M, where I always cross compile, thus I never install the libraries

Installing the libraries does not necessarily mean installing them on the target machine. They can be built for the target machine on a build machine and installed on the build machine, for use withe rest of your code.

Moreover, the library is implicitly addressed to such small, bare-metal projects, where it is preferred to get dependencies on the fly, and link them via the build interface.

Well, on that end of the spectrum - you could just take the two source files: printf.c and printf.h. The point of add_subdirectory() is to employ non-trivial aspects of the library's build mechanism.

Lots of libraries support such approach. I don't want to say that "let's do it, because others do that", but more "let's do it, because it became a standard".

That's what I'm worried/annoyed about. See also the issue I opened about it.
Unfortunately, I guess I just have to live with it. And Kitware is not helping project maintainers authors to cope with the conflicting use cases. Even the most trivial assistance, like a page with basic tips, or a small feature such as allowing for scoping or prefixing the subdirectory's options with its name or project name - is not offered to us.

I would prefer to include it like: #include "printf/printf.h". For the installed lib: #include <printf/printf.h>. IMO, it should be supported out of the box.

We'll see what you put in your PR. Are you worried about conflicts with another printf.h?

Add PRINTF_ALIAS_STANDARD_FUNCTION_NAMES to compile definitions to support that option for the build interface.

It's a CMake option and a value defined in printf_config.h.in - just like all the other options. So I'm not quite sure what you're suggesting here.

@eyalroz I understand your point. Having to support multiple ways of incorporating the library into a project might be inconvenient. I think we should find a sweet point between maintainability and usability. The usability is created by the users. When you go to a shop, you expect from the owner to fulfil your demand. If he doesn't, you simply won't come again. Of course, if you demand something impossible, like buying an elephant for $10, no owner will provide that. This is the sweet point I'm talking about. Supporting multiple ways of incorporating the library in a project won't be hard. Thanks to it, more users could benefit from this particular library. The other question is: do we care to have more users? I think we do, because this is FOSS: the fewer users we have, the less sense there is to maintain the library.
Regarding installation and cross-compiling, I meant that I never install the libraries and use FetchContent instead, because:

When cross-compiling various, architecture-specific compile flags are involved. To properly compile the library for a specific architecture, I have to do it from sources. The compilation flags have to be tweaked sometimes. Redoing all that tweaking separately for each library would be a pain. FetchContent is very convenient, because it reuses the same toolchain file, which is used by the main CMake project.
I didn't mean to install the library on the target machine. There is no point in doing that, because all the executables I compile I link statically. Basically, for such "small" CPUs one uses one executable per device. You only flash the executable, because there is no space for more.
FetchContent is convenient when one wants to incorporate the dependency to the project automatically. I don't have to ask developers, or document, that they need to build and install some dependency.

I will create a PR with fixing the path to installed printf.h after this is merged: https://github.com/eyalroz/printf/pull/65


Failed to send crash report due to a network error: SocketException: OS Error: 信号灯超时时间已到

Failed to send crash report due to a network error: SocketException: OS Error: 信号灯超时时间已到
, errno = 121, address = clients2.google.com, port = 62502
Oops; flutter has exited unexpectedly: "Invalid argument(s): No host specified in URI http://:62501/ws".
A crash report has been written to D:\AndroidProject\flutterproject\flutter_demo1\flutter_01.log.
flutter_01.log

@ihad1102 please check your api server for debugging into what's the problem is. Although you are getting it while running a flutter project , this issue isn't related to flutter.

Hi @ihad1102,
Thanks for filing the issue, Could you please share the output of flutter doctor -v, Along with the exact steps to reproduce the issue and possibly a minimal reproducible code sample  if that's applicable. This will help to better address the issue.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Check for default storage class during install

During installation, we should check to see if the cluster has a default storage class. If it doesn't we should warn the user that the cluster won't be capable of handling persistent volumes correctly.

verified


1.8.7

TBD

Hello @moomindani ! When do you think we could be able to release a new version including the latest changes ?

Thanks for bringing this up.
We will be able to do that around mid December, but let me know if it does not work.

We're looking at deploying some projects in UAT/PROD it would be great if we can have it a bit earlier :)
I can help if there's anything you need to check before the release

Hi @moomindani,
We have the same need on my side :)
Thank you

I understand the needs of this. The current timing is bit tricky for us due to AWS re:Invent, and I have zero capacity on managing this release right now. In my earliest timing, I will try to address this around December 12. Apologizes for delay.

Understood, thank you @moomindani !

Now we have published dbt-glue 1.9.0 including Glue 5.0 by default.
Thank you all for the contributions!

https://github.com/aws-samples/dbt-glue/releases/tag/1.9.0
https://test.pypi.org/project/dbt-glue/1.9.0/
https://test.pypi.org/project/dbt-glue/1.9.0/


Specific Link No Longer Works on macOS using Safari

Describe the bug
I previously use a specific string as my deep link and it was working fine when opened through Safari, however on macOS it suddenly stopped working but other strings still do work when using Safari.  The problematic string works fine from Chrome.
I tested with the example app from this repo and can reproduce the same behaviour, the app works as expected using the link in the example via Safari and any other link I change it to expect for the specific one causing a problem.
I assume this issue is specific to my machine and I could work around it by changing the link in the app or using Chrome however I'm keen to understand why this is happening.
Apologies but I can't provide a test case as the example app works fine except for with one specific string when using Safari (that string also works fine on Windows).
When I use the link in a Safari I get the usual box saying "Do you want to allow this website to open..." and then when I click yes I get a pop up box with the finder image saying "The application ... can't be opened" and an Ok button to dismiss.
Any thoughts would be much appreciated!
My concern is that one the app is published if this happens on a users machine then it's a more major problem.
Thanks!
Does it related to
[ ] App Links (Android)
[ ] Deep Links (Android)
[ ] Universal Links (iOS)
[ ] or Custom URL schemes? (iOS)
macOs
Does the example project work?
[ ] Yes
[ X ] No
[ ] Irrelevant here
Did you fully read the instructions for the targeted platform before submitting this issue?
Yes - and it works fine, except for with one specific string on one machine.
Uploaded your files to webserver, HTTPS, direct connection, scheme pattern setup, ...
[ ] Yes
[ ] No
[ X ] Irrelevant here

Web support is very limited.
There's not much inside, I only take the window.location.href as initial link and propagate it to Flutter app.
The issue seems to be specific to Safari in whatever version not this package.


Compile error re: IScorable when referencing QnAMakerScorable.

When building my app using Microsoft.Bot.Builder 3.5.3 and Microsoft.Bot.Builder.CognitiveServices 1.0.2 (both from nuget), and try to use QnAMakerScorable, I get this error:
Reference to type 'IScorable<,>' claims it is defined in 'Microsoft.Bot.Builder', but it could not be found
It looks like Microsoft.Bot.Builder.CognitiveServices was built against an old (3.3?) Bot.Builder assembly?  Are there plans to update it for the new one?

Yes, we're planning on a release in a few days, as far as I know.
@Andrea-Orimoto for fyi

Thank you for opening an issue against the Bot Framework Cognitive Services repo. As part of the Bot Framework v4 release, we’ve moved all the Luis and QnA work to platform SDK repo. We will continue to support and offer maintenance updates via this repo.
From now on, https://github.com/Microsoft/botframework-sdk repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.
As part of this restructuring, we are closing all tickets in this repo.
For defects or feature requests, please create a new issue in the Bot Framework repo found here:
https://github.com/Microsoft/botframework-sdk/issues
For product behavior, how-to, or general understanding questions, please use Stackoverflow.
https://stackoverflow.com/search?q=bot+framework
Thank you.
The Bot Framework Team


Add simple example with TagDebug

As suggested in #100, this adds a simple example with the TagDebug block to examples/debug.

thanks!


The default window size is too big on MacOS that it's impossible to access settings panel

The situation is shown on the image above. The one on the left is 0.4.4 which works well, and the one on the right is 0.5.2 which is broken.
My screen is 2560x1600. The window is about two times bigger than my screen so I can't open the settings panel and adjust the size.
There are two solutions to solve this problem.
1. Make the default window size lower.
2. Put the settings button on the top of the window.

There are two ways to interpret the screen size. The old version use 2560x1600, but the new version use 1280x800@2x(or larger). This means that with the same setting, new version should have 2x window size.
Note that both the old version and the new version use the same setting file. This means that you have a 1920x1080 resolution for both version, but they behaves differently. Also, this is not the default resolution.
As a workaround, you can set resolution to the default 1280x720 in old version, and then close the old version and launch the new version.
I won't revert this change since this works better when you move the window between screens with different dpi.


ModuleNotFoundError: No module named 'modules.Heatmap'

Hey, Vince. Think you might want to look into this. When running "python polymerApp.py", this error appears.

Thanks for letting me know - I'll look into this ASAP

Hello, I've pushed a fix to this problem.


Detected blocking call to open inside the event loop

Describe the issue
I am logging the contents of my SpotifyPlus integration manifest.json file for debugging purposes.  After updating to HA 2024.6 releasee, I receive the following warning in the System Log:
Detected blocking call to open inside the event loop by custom integration 'spotifyplus' ...

here's the code in sibinarycontext.py that is opening and reading the manifest file:
    def LoadFromFile(self, fileName:str) -> None:
        if (fileName == None):
            raise SIArgumentNullException("fileName")

        with open(fileName, 'rb') as reader:
            self._InternalLoadFromStream(reader)
...

    def _InternalLoadFromStream(self, stream:BufferedReader) -> None:
        n:int = 0
        buffertmp = bytes(0x2000)

        while True:
            buffertmp = stream.read(len(buffertmp))
            if (len(buffertmp) > 0):
                self._fData.write(buffertmp)
            else:
                break

Reproduction steps

Upgrade to HA 2024.6 release.
Install the SpotifyPlus custom integration.
System Log will contain warnings.

Debug logs
2024-06-06 13:08:11.102 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'spotifyplus' at custom_components/spotifyplus/__init__.py, line 600: _logsi.LogTextFile(SILevel.Verbose, "Integration Manifest File (%s)" % myManifestPath, myManifestPath) (offender: /usr/local/lib/python3.12/site-packages/smartinspectpython/sibinarycontext.py, line 144: with open(fileName, 'rb') as reader:), please create a bug report at https://github.com/thlucas1/homeassistantcomponent_spotifyplus/issues
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component
result = await _async_setup_component(hass, domain, config)
File "/usr/src/homeassistant/homeassistant/setup.py", line 402, in _async_setup_component
result = await task
File "/config/custom_components/spotifyplus/__init__.py", line 600, in async_setup
_logsi.LogTextFile(SILevel.Verbose, "Integration Manifest File (%s)" % myManifestPath, myManifestPath)

Fixed with release v1.0.20 of the SpotifyPlus integration


C++: Support operator new and operator delete in models library

AllocationExpr directly supports new, but for various reasons we also want to model operator new as an AllocationFunction.  Same for operator new[], operator delete and operator delete[].

As far as I can tell, this doesn't seem to introduce any semantic conflicts with #3171. #3171 assumes that malloc expressions are instances of CallAllocationExpr, and that new and new[] are instances of NewAllocationExpr, and NewArrayAllocationExpr respectively. These facts still seem to be the case in this PR.

There are test failures in the IR sanity queries. I took a quick look, and my guess is that they appear because we don't translate allocator calls but now we translate a side effect of those calls.

Fixes:

fixed the unintended consequence upon the IR's TranslatedCall.qll of making operator new and operator new[] an AllocationFunction.
made a PR to accept the changes to the failing internal test: https://git.semmle.com/Semmle/code/pull/36598

The expected result is one test failure remains on this PR (the MISRA test), and none on the corresponding PR (when that goes green, both can be merged at the same time).


MINOR: Updated Quickstart to mention log.dirs

The default server.properties file now contains the log.dirs setting and not log.dir anymore.
Co-authored-by: Mickael Maison<EMAIL_ADDRESS>Co-authored-by: Katherine Farmer<EMAIL_ADDRESS>Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

+1

+1

@mimaison Thanks for the PR, also cherry-picking to 2.0.


fails to update crates.toml after updating installed git package

The package is out of date according to cargo install-update
Package              Installed                                 Latest                                    Needs update
rustup               d9690a846c82d23f53af0f6cec82015d1a387577  22b6cdb8b000f9217af1dd5dd4e73ce032bdb25d  Yes

crates.toml:
"rustup 1.13.0 (git+https://github.com/rust-lang-nursery/rustup.rs#d9690a846c82d23f53af0f6cec82015d1a387577)" = ["rustup-init"]

I manually updated it
 cargo install --git https://github.com/rust-lang-nursery/rustup.rs
    Updating git repository `https://github.com/rust-lang-nursery/rustup.rs`
  Installing rustup v1.13.0 (https://github.com/rust-lang-nursery/rustup.rs#22b6cdb8)
   Compiling libc v0.2.42
   Compiling cfg-if v0.1.4
[...]
   Compiling download v0.4.0 (https://github.com/rust-lang-nursery/rustup.rs#22b6cdb8)
   Compiling rustup-utils v1.13.0 (https://github.com/rust-lang-nursery/rustup.rs#22b6cdb8)
    Finished release [optimized] target(s) in 5m 57s
  Installing /home/matthias/.cargo/bin/rustup-init

however the new git hash is not updated in crates.toml:
"rustup 1.13.0 (git+https://github.com/rust-lang-nursery/rustup.rs#d9690a846c82d23f53af0f6cec82015d1a387577)" = ["rustup-init"]

Wasn't that just fixed a month ago or so?
cargo 1.29.0-nightly (506eea76e 2018-07-17)
release: 1.29.0
commit-hash: 506eea76edbf7198258265ddabcf320365bc4c5c
commit-date: 2018-07-17

rustc 1.29.0-nightly (6a1c0637c 2018-07-23)
binary: rustc
commit-hash: 6a1c0637ce44aeea6c60527f4c0e7fb33f2bcd0d
commit-date: 2018-07-23
host: x86_64-unknown-linux-gnu
release: 1.29.0-nightly
LLVM version: 7.0

Previous ticket: https://github.com/rust-lang/cargo/issues/4582
Previous fix PR: https://github.com/rust-lang/cargo/pull/5564

Ok this seems to be tied to rustup git in some strange way, I was able to update alacritty git and the crates.toml was updated properly.
I also noticed that cargo did not ask for --force when "reinstalling" the crate which seems suspicious to me, reinstalling with --force did not make a difference though.

I tried to play around a bit more, is there a way to install a git crate via --git without pushing it to the internet?
cargo install --git /tmp/aa does not seem to work error: invalid url `/tmp/aa`: relative URL without a base which is strange since git itself has not problem with cloning repos via local paths, like git clone /tmp/foo  /tmp/bar

is there a way to install a git crate via --git without pushing it to the internet?

You can use a path URI:  cargo install --git file:///path/to/repo

I think it's related to the broken Ord trait: https://github.com/rust-lang/cargo/issues/4582#issuecomment-390179630
In https://github.com/rust-lang/cargo/pull/5564 I've added workaround for upgrade procedure (when binary is installed and we install newer version on top of it).
It doesn't work here because cargo thinks you are installing new binary (no idea why).
Similar workaround could be added before line where Ord trait is used but I think it would be better to fix cargo to detect it as an upgrade instead of a new installation. Reduced test case would be helpful.

This just happened to me again, with the rustup git repo.
I wonder if there is something strange with that repo in particular that confuses cargo :confused:

Ok, cargo corrupts its cache when binaries change names :(

I believe this issue doesn't exist anymore.  If you can make a reproduction on latest Cargo, feel free to reopen with instructions.  Since this issue was written, hashing/comparison of PackageId's have changed (they now use exact source_id comparison), and install-tracking has been completely rewritten (which has explicit handling for git hash changes).


Update InstructLab_SLACK_GUIDE.md

Updated broken links to moderation guide, updated to do to add pointer to community email list to get help with issues joining Slack workspace.

@cybette PTAL


fixing code formatting

Was looking at this topic (https://docs.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer#adding-startup-parameters) and noticed the code was all so badly formatted that it wasn't even readable.

This should be ready for another review after build finishes @GuardRex.

@mairaw Cool ... but I'm putting the interpolated strings into one of the PR's I'm working. That's an option here, too. ... Either way, it's :shipit: good! :smile:


Update macOS system surface so it can work with multiple surfaces

:umbrella: The latest upstream changes (presumably cc9947d4a805b0903b20c3638e3effd054f54b00) made this pull request unmergeable. Please resolve the merge conflicts.


Fix issue #131

New behaviour: If duplicate persons are encountered when importing, update duplicate persons using imported data.

Codecov Report
Base: 65.60% // Head: 66.00% // Increases project coverage by +0.40% :tada:

Coverage data is based on head (e0f9f85) compared to base (323a451).
Patch coverage: 92.50% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #171      +/-   ##
============================================
+ Coverage     65.60%   66.00%   +0.40%
- Complexity      628      633       +5
============================================
  Files           101      101
  Lines          2346     2371      +25
  Branches        291      292       +1
============================================
+ Hits           1539     1565      +26
  Misses          699      699
+ Partials        108      107       -1

Impacted Files
Coverage Δ

.../java/seedu/address/logic/commands/AddCommand.java
92.30% <ø> (ø)

...c/main/java/seedu/address/model/person/Income.java
63.63% <ø> (ø)

...va/seedu/address/logic/commands/ImportCommand.java
91.11% <86.95%> (-0.56%)
:arrow_down:

.../java/seedu/address/model/meeting/MeetingDate.java
85.71% <100.00%> (+17.29%)
:arrow_up:

.../java/seedu/address/model/util/SampleDataUtil.java
83.87% <100.00%> (+1.11%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Problem with brunch build --production

Hi!
I'm developing an application with Phoenix, which uses Brunch as a build tool. I'm using emojionearea inside an input, and everything works fine on development. But when I run brunch build --production to test the application on production, there's a problem. When the user moves to the next input, the emojis are reverted back to native emojis, in my case, emojis from the macOS, instead of using Emoji One emojis.
However, this problem only happens when I use brunch build --production (instead of brunch build), and only when I use the NPM version of emojione, instead of dynamically fetching it from the CDN.
Below are the related files:
package.json:
{
  "repository": {},
  "license": "MIT",
  "scripts": {
    "deploy": "brunch build --production",
    "watch": "brunch watch --stdin"
  },
  "dependencies": {
    "bootstrap": "^4.0.0",
    "emojione": "^3.1.2",
    "emojionearea": "^3.4.1",
    "jquery": "^3.3.1",
    "jquery-textcomplete": "^1.8.4",
    "phoenix": "file:../deps/phoenix",
    "phoenix_html": "file:../deps/phoenix_html",
    "popper.js": "^1.12.9"
  },
  "devDependencies": {
    "babel-brunch": "6.1.1",
    "brunch": "2.10.9",
    "sass-brunch": "^2.10.4",
    "clean-css-brunch": "2.10.0",
    "uglify-js-brunch": "2.10.0"
  }
}

brunch-config.js:
exports.config = {
  files: {
    javascripts: {
      joinTo: "js/app.js"
    },
    stylesheets: {
      joinTo: "css/app.css",
      order: {
        after: ["css/app.scss"] // Concat app.css last.
      }
    },
    templates: {
      joinTo: "js/app.js"
    }
  },

  conventions: {
    assets: /^(static)/
  },

  paths: {
    watched: ["static", "css", "js", "vendor"],
    public: "../priv/static"
  },

  plugins: {
    babel: {
      ignore: [/vendor/]
    },

    sass: {
      options: {
        includePaths: ["node_modules/bootstrap/scss", "node_modules/emojionearea/dist"],
        precision: 8 // Minimum precision required by Bootstrap.
      }
    }
  },

  modules: {
    autoRequire: {
      "js/app.js": ["js/app"]
    }
  },

  npm: {
    enabled: true,
    globals: {
      $: 'jquery',
      jQuery: 'jquery',
      bootstrap: 'bootstrap'
    },
    static: []
  }
};

app.js:
import "phoenix_html"

import { addEmojiPicker } from "./emoji_form"
addEmojiPicker('#emoji_content')

emoji_form.js:
export function addEmojiPicker(inputSelector) {
  activateEmojiPicker(inputSelector)
}

function activateEmojiPicker(inputSelector) {
  require('jquery-textcomplete')
  require('emojione') // Without this line it works with brunch build --production
  require('emojionearea')

  $(document).ready(() => {
    $(inputSelector).emojioneArea({
      pickerPosition: "right",
      searchPlaceholder: 'Search',
      shortcuts: false
    })

    $(inputSelector).data('emojioneArea').editor.focus()
  })
}

So I would like to use my hosted version of emojione on production, instead of fetching it from the CDN. But it only works this way.
Thanks in advance.

It does not work with brunch, it uses custom gulp builder


@pandacss/config package includes node_modules

Description
The distribution of @pandacss/config includes node_modules directory which contains preset-base and preset-panda. Those packages depend on @pandacss/types with version workspace:* and it causes the error below on npm i.
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:*

ref: https://www.npmjs.com/package/@pandacss/config/v/0.3.1?activeTab=code
Link to Reproduction
https://www.npmjs.com/package/@pandacss/config/v/0.3.1?activeTab=code
Steps to reproduce

npx create-next-app@latest --use-npm
npm install -D @pandacss/dev

JS Framework
No response
Panda CSS Version
0.3.1
Browser
No response
Operating System

[ ] macOS
[ ] Windows
[ ] Linux

Additional Information
No response

@astahmer Could this be because of the bundledDependencies field in package.json?
Can we get rid of it?

Can't say for sure as I didnt try it yet (i'm away this weekend) but this might be the issue yes
The point of having bundledDependencies here is to make the extension working in the IDE even if a user didnt yet install node_modules (with pnpm i or something similar) in the opened workspace
But I also remember putting that bundledDependencies directly in the vscode package at some point so, we will have to test it to confirm that this one (in the config package) is necessary

in the meantime, since in the npmrc we already have those:
link-workspace-packages=true
prefer-workspace-packages=true

another fix might be to use versions instead of workspace dependencies

Removed the bundledDependencies from the config package since it's already listed in the vscode package


beacon: ignore votes on proposals unknown to the node

Motivation

Closes #3102

Changes

ignore votes on proposals that are not in the node's initial proposals received during the proposal phase
Test Plan

unittest, system tests
DevOps Notes

[x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
[x] This PR does not affect public APIs
[x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
[x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)

bors merge

bors merge

bors merge


Test: ExtensionHost debugging

Test https://github.com/Microsoft/vscode-node-debug2/issues/4
Complexity: 2

[ ] Windows @weinand
[ ] Mac @bpasero
[ ] Linux @joaomoreno

EH debugging is now powered by node2 and the inspector protocol. Debug an extension, play around with it, and look for any oddities.

Even space oddities?


Hide Youtube videos you already watched

What filter does this issue target?
https://letsblock.it/filters/youtube-watched
What changes should be made?
When "Hide watched videos on the subscriptions and channel pages" is NOT checked, watched videos on a channel's "videos" page are hidden.
Did you write a uBlock filter solving this?
No response
Additional notes
No response

Thanks for the report @3DWORX-SA !
My guess is that the rule for "Hide watched videos on the homepage " is also matching channel pages, we'll need to make these more specific. I'll look into thisa Tuesday.

Thank you for your effort! I hope that my constructive feedback is helpful.
Regards
From: Xavier Vello @.>
Sent: Sunday, November 13, 2022 10:48 AM
To: letsblockit/letsblockit @.>
Cc: 3DWORX-SA @.>; Mention @.>
Subject: Re: [letsblockit/letsblockit] Hide Youtube videos you already watched (Issue #304)
Thanks for the report @3DWORX-SAhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2F3DWORX-SA&data=05|01||c9adc97ade0649dd925c08dac553b58e|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638039260552879344|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=tuVcTaw6HDk5TSUk%2BEnXQkBMW%2BmxJeVSxWaXh4FlD%2Fs%3D&reserved=0 !
My guess is that the rule for "Hide watched videos on the homepage " is also matching channel pages, we'll need to make these more specific. I'll look into thisa Tuesday.

Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fletsblockit%2Fletsblockit%2Fissues%2F304%23issuecomment-1312674651&data=05|01||c9adc97ade0649dd925c08dac553b58e|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638039260552879344|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=4l4s6JoRbO1y7dO7dvUb%2Bcq1Rcn9BjuGgfQ6H0m5dcA%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH3GLKIZT5RB4H6JBMJCZL3WICTKLANCNFSM6AAAAAAR6LZ57E&data=05|01||c9adc97ade0649dd925c08dac553b58e|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638039260552879344|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=11CrtJ%2FpcvB9tSeG1HmP%2BNJdOYN4hOSGFJzQPsYw7h0%3D&reserved=0.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Heya, thanks for your patience. This is fixed in today's deploy.
The issue is that the homepage rule was not specific enough, and matching the channel page too. This is why I could not reproduce this issue.

Hey, thanks Xavier! This has made the YouTube experience so much better. I have even found videos on some of my favourite channels that I'd missed. FYI, I check the following settings:

Only hide fully-watched videos (keep partially-watched videos)
Hide watched videos on the homepage

I prefer it unchecked for the subscriptions and channel pages, so that I can look through and find some videos to watch again or send to other people.
Thanks for your effort - very much appreciated!
From: Xavier Vello @.>
Sent: Sunday, January 8, 2023 8:10 PM
To: letsblockit/letsblockit @.>
Cc: 3DWORX-SA @.>; Mention @.>
Subject: Re: [letsblockit/letsblockit] Hide Youtube videos you already watched (Issue #304)
Heya, thanks for your patience. This is fixed in today's deploy.
The issue is that the homepage rule was not specific enough, and matching the channel page too. This is why I could not reproduce this issue.

Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fletsblockit%2Fletsblockit%2Fissues%2F304%23issuecomment-1374894323&data=05|01||f7bebb2cfea54f765ae308daf1a3803a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638087981769760635|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=3zBUv234neihQIxpQXQj7MUtOgPWODAT55N7a15cmH4%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH3GLKLYVLIIRCZQ3EHK3MLWRL7F7ANCNFSM6AAAAAAR6LZ57E&data=05|01||f7bebb2cfea54f765ae308daf1a3803a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638087981769760635|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=4z9ecVkj3uFO49HLnz3JMjV7LSxozJ72PSk2t16JIxg%3D&reserved=0.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>


Fix ROR Service

Fixes #507.
Changes proposed in this PR:

Update the ROR Service's downloader logic to accommodate for change to Zenodo

Merging this now, will review with @jupiter007 when she returns from vacation. Minor changes to a Rake task that runs via CRON on the first of the month.
I deployed this code and manually kicked off the job on stage and can see that it is updating the table.
Deploying to prod today to take advantage of the job that will run tonight. Need to check the registry_orgs table to verify it ran in the morning.


Map Healthcare Facilities nearby

Is your feature request related to a problem? Please describe.
Show nearby hospitals on map.
Describe the solution you'd like
Show hospitals closest to me on the tracker page (by @ashish199820) which also shows the cases near me.
Describe alternatives you've considered
Current substitute of the essentials page?
Additional context
Add any other context or screenshots about the feature request here.

(PS: screenshot taken using data from https://github.com/planemad/india_health_facilities/blob/master/map/public_health_facilities_nic.geojson , would need to change to a more relevant, upto date source from ICMR)

Where would the data for this be available?
If it's available, a user-generated custom map on Google Maps solve this requirement?

Ive just modified the dataset. ICMR has a list of hospitals and private labs. heres a working version (with the rest of the elements stripped off)
aswaathb.github.io/covid19india-react

Also only static maps are free via google maps. You need to pay for it beyond a certain point (only on web, not on mobile)

This request seems like they already have the workflow setup: https://github.com/covid19india/covid19india-react/issues/837 Might be interesting to have a look at this once.

Hi @aswaathb, our platform covidmaps.in is solving a similar problem. We need developers, designers and content writers (for localization). You can also contribute to it :)

Thanks for the link @bee-rickey @Siddharth11 .
I'll try contribute where I can! :D
P.S. I think this project also has or is trying to implement a similar feature, it'd be great if everyone shared the data!

Closed by #1383


Add drink atmos

https://streamable.com/sjyw2o

We did it, atmos is in.

damn, he beat me to it :pensive:


Android Java: 9.0 Integrating Firebase with Android studio.

Detailed steps of integrating firebase to the Android studio, using 2 ways.

@VikasPandey121  can I work on this issue?

@Priyanshirathore yes you can work on this.

okay, sir thankyou.

Please keep these steps in mind while creating a pull request:

use git fetch and git pull commands before pushing commit it to the remote repository.
Your Contributing file should be in this directory Android_Development/Java/ with the file name starting from 9.0 for instance 9.0 Integrating Firebase with Android studio
Note:- If you have multiple files to commit then add a tag at the beginning of your file name like 9.0.1, 9.0.2 etc
Create a new branch and push your PR on Android_Development_With_Java branch.
Pull request should contain only one commit
Note: If you have multiple commits then squash your commit.

Can I also work on this issue?

@ishivamgupta9, It has been already assigned to another contributor please look up any other issue.

@Priyanshirathore  can you please give a progress update about the issue and if you are facing any problem feel free to ask.

@Priyanshirathore can you please give a progress update about the issue and if you are facing any problem feel free to ask.

No sir, i will do it....i suppose we can complete our issues till December,  right? I am just having exams in my college right now.

@Priyanshirathore can you please give a progress update about the issue and if you are facing any problem feel free to ask.

No sir, I will do it...I suppose we can complete our issues by December, right? I am just having exams in my college right now.

I am unassigning this issue right now to give this opportunity to someone else as you are busy with your exams.
All the best.


Add additional info to Yii2 assets guide

The guide http://www.yiiframework.com/doc-2.0/guide-structure-assets.html could benefit from covering the following topic: is it supported/recommended to modify $js / $css and $jsOptions / $cssOptions of already published assets bundle?
Example: MyWidget can be configured to require 1.js OR 2.js. Some page may only use instances of MyWidget configured for 1.js, other page may only use instances of MyWidget configured for 2.js and yet another page may use several instances of MyWidget configured for 1.js and at the same time several instances of MyWidget configured for 2.js.
Solution 1:
class MyWidgetAsset1 extends \yii\web\AssetBundle
{
	public $sourcePath = 'somepath';
	public $js = ['1.js'];
}
class MyWidgetAsset2 extends \yii\web\AssetBundle
{
	public $sourcePath = 'somepath';
	public $js = ['2.js'];
}
class MyWidget extends \yii\base\Widget
{
	public function run()
	{
             if($this->config['type'] == 1)
                    MyWidgetAsset1::register($this->getView());
             else
                    MyWidgetAsset2::register($this->getView());
        }
}

Solution 2: (needs confirmation if supported/recommended by Yii2):
class MyWidgetAsset extends \yii\web\AssetBundle
{
	public $sourcePath = 'somepath';
	public $js = [];
}
class MyWidget extends \yii\base\Widget
{
	public function run()
	{
             $bundle = MyWidgetAsset::register($this->getView());
             if($this->config['type'] == 1 && !in_array('1.js', $bundle->js))
                    $bundle->js[] = '1.js';
             else if(!in_array('2.js', $bundle->js))
                     $bundle->js[] = '2.js';
       }
}

It's recommended to create separate bundles in this case.

Nice, thanks for the clarification!
Another unclear moment. Is it supported/recommended for two different asset bundles to require the same resource (.js for example) from the same ($sourcePath)?
For example, consider MyWidget example above implemented through Solution 1 (with separate bundles) but now MyWidget also always requires some base.js script. That base.js script does not have any functionality that can be used on its own, it is assumed base.js should only be used in pair with 1.sj or 2.js. Taking this into account, which variant is supported/recommended:
class MyWidgetAsset1 extends \yii\web\AssetBundle
{
    public $sourcePath = 'somepath';
    public $js = ['base.js', '1.js'];
}
class MyWidgetAsset2 extends \yii\web\AssetBundle
{
    public $sourcePath = 'somepath';
    public $js = ['base.js', '2.js'];
}

class MyWidgetBaseAsset extends \yii\web\AssetBundle
{
    public $sourcePath = 'somepath';
    public $js = ['base.js'];
}
class MyWidgetAsset1 extends \yii\web\AssetBundle
{
    public $sourcePath = 'somepath';
    public $js = ['1.js'];
    public $depends = [MyWidgetBaseAsset::class];
}
class MyWidgetAsset2 extends \yii\web\AssetBundle
{
    public $sourcePath = 'somepath';
    public $js = ['2.js'];
    public $depends = [MyWidgetBaseAsset::class];
}

P.S. The examples are taken from a real world case - a JavaScript charting library AmCharts, that has a base (common) script amcharts.js that is supposed to be paired with specific chart type scripts, for ex.:
for X-Y chart:
<script src="amcharts/amcharts.js" type="text/javascript"></script>
<script src="amcharts/xy.js" type="text/javascript"></script>

for Pie chart:
<script src="amcharts/amcharts.js" type="text/javascript"></script>
<script src="amcharts/pie.js" type="text/javascript"></script>

etc.

Another unclear moment. Is it supported/recommended for two different asset bundles to require the same resource (.js for example) from the same ($sourcePath)?

It will be registered once if both bundles are used at the same time and isn't really recommended. It's much better to move base.js into separate bundle.
It does not matter much if you're combining your assets into a single file though.

Another problem, what if MyWidget supports translation into different languages and for each language has a separate .js file for inclusion (fr.js, ru.js etc.). There can be many such languages (for ex., AmCharts supports 32 languages) and creating a separate bundle for EVERY language seems unreasonable:
class MyWidgetFrAsset extends \yii\web\AssetBundle
{
    public $sourcePath = 'somepath';
    public $js = ['fr.js'];
    public $depends = [MyWidgetBaseAsset::class];
}
class MyWidgetRuAsset extends \yii\web\AssetBundle
{
    public $sourcePath = 'somepath';
    public $js = ['ru.js'];
    public $depends = [MyWidgetBaseAsset::class];
}
// ...

Does Yii2 supports the reconfiguration of asset bundles (i.e. additional .js/.css files added/removed to bundle $js and $css arrays) AFTER the bundle is registered through AssetBundle::register() static method?
If yes then the solution could be:
class MyWidgetLangAsset extends \yii\web\AssetBundle
{
    public $sourcePath = 'somepath';
    public $js = [];
    public $depends = [MyWidgetBaseAsset::class];
}
class MyWidget extends \yii\base\Widget
{
    public $language;
    public function run()
    {
         $assetBundle = MyWidgetLangAsset::register($this->getView());
         $langJs = $this->language . '.js';
         if(!in_array($langJs, $assetBundle->js))
             $assetBundle->js[] = $langJs;
    }
}

Does Yii2 supports the reconfiguration of asset bundles (i.e. additional .js/.css files added/removed to bundle $js and $css arrays) AFTER the bundle is registered through AssetBundle::register() static method?

See https://github.com/yiisoft/yii2-jui/blob/master/DatePickerLanguageAsset.php#L41

@klimov-paul

See https://github.com/yiisoft/yii2-jui/blob/master/DatePickerLanguageAsset.php#L41

Very interesting.
The comment for DatePickerLanguageAsset::$autoGenerate says:

If this is false, you should explicitly specify the language js files via [[js]].

Which means (correct me if I am wrong please) the code like the following in one of user views:
echo \yii\jui\DatePicker::widget([/* ... */]);

$assetBundle = \yii\jui\DatePickerLanguageAsset::register($this);
$assetBundle->autoGenerate = false;
$assetBundle->js = ['ui/i18n/datepicker-ru.js', 'ui/i18n/datepicker-fr.js'];

But the code above is a prime example of bundle reconfiguration AFTER it was registered. So Yii2 supports such reconfiguration after all?
Next question is: what is the point of having DatePickerLanguageAsset::$autoGenerate at all? Why not implement it the way I showed for MyWidget/MyWidgetLangAsset above? Currently, the code:
echo \yii\jui\DatePicker::widget([
	'model' => $model,
	'attribute' => 'x1',
	'language' => 'fr',
]);
echo \yii\jui\DatePicker::widget([
	'model' => $model,
	'attribute' => 'x2',
	'language' => 'ru',
]);

would produce two DatePickers with 'ru' language which is quite surprising and not obvious why.

But the code above is a prime example of bundle reconfiguration AFTER it was registered. So Yii2 supports such reconfiguration after all?

Of course it does - why not?
However any overriding at the level of AssetManager including 'asset compress' feature will fail to handle any bundle reconfiguration after it has been registered.

Next question is: what is the point of having DatePickerLanguageAsset::$autoGenerate at all?

autoGenerate will compose the translation file using the general convension assuming it is present at the jui repository. You may want to use language, which is missing in standard repo or use localization different from the main one.

would produce two DatePickers with 'ru' language which is quite surprising and not obvious why.

This is JS limitation - there is nothing we can do about it. You may report your concern to JQuery UI, to provide better localization support.

However any overriding at the level of  AssetManager  including 'asset compress' feature will fail to handle any bundle reconfiguration after it has been registered.

Does this mean the current implementation of DatePickerLanguageAsset is incompatible with  'asset compress' feature (because the current interaction between DatePiceker and DatePickerLanguageAsset classes perform just that - reconfiguration of DatePickerLanguageAsset bundle after its registration with AssetBundle::register())?

autoGenerate will compose the translation file using the general convension assuming it is present at the  jui  repository. You may want to use language, which is missing in standard repo or use localization different from the main one.

Good point. The part in bold would really help in the description of autoGenerate.

This is JS limitation - there is nothing we can do about it. You may report your concern to JQuery UI, to provide better localization support.

The following code will produce two DatePickers each with its own language on the same page without problems:
echo \yii\jui\DatePicker::widget([
    'model' => $model,
    'attribute' => 'x1',
    'language' => 'fr',
]);
echo \yii\jui\DatePicker::widget([
    'model' => $model,
    'attribute' => 'x2',
    'language' => 'ru',
]);
$assetBundle = \yii\jui\DatePickerLanguageAsset::register($this);
$assetBundle->autoGenerate = false;
$assetBundle->js = ['ui/i18n/datepicker-ru.js', 'ui/i18n/datepicker-fr.js'];

So I don't think its a JUI limitation, the problem rather lies in the implementations of DatePicker and DatePickerLanguageAsset. User shouldn't have to reconfigure the DatePickerLanguageAsset bundle manually to have two DatePickers with different languages if the languages are supported by JUI.

Does this mean the current implementation of DatePickerLanguageAsset is incompatible with 'asset compress' feature

Does this mean the current implementation of DatePickerLanguageAsset is incompatible with 'asset compress' feature

Perhaps, since sourcePath will be overriden after compression. You may check it out to be sure.
However this asset bundle is a dinamic one and thus is seprated from any other. It is unlikely it will be used for asset compression.
Also there is a posibility the config for asset/compress command can be composed with this bundle covered and still be compressed in correct way.

Good point. The part in bold would really help in the description of autoGenerate.

Feel free to open a PR for this. My opinion: it is obvious.

the problem rather lies in the implementations of DatePicker and DatePickerLanguageAsset

If you have an idea for the improvement - feel free to open a PR.
I do not consider this is a crucial, since it is unlikely you will use several date pickers with different languages at the same page.

Just did a test to see if DatePickerLanguageAsset can be reconfigured at the level of AssetManager (following http://www.yiiframework.com/doc-2.0/guide-structure-assets.html#customizing-asset-bundles guide which menations nothing about autoGenerate):
at app config:
		'assetManager' => [
			'bundles' => [
				yii\jui\DatePickerLanguageAsset::class => [
					'js' => [
						'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/i18n/datepicker-fr.js',
					]
				],
			],
		],

at view:
echo \yii\jui\DatePicker::widget([
	'model' => $model,
	'attribute' => 'x1',
	'language' => 'fr',
]);

And as expected it didn't work properly: the page included:
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/i18n/datepicker-fr.js"></script>
<script src="/assets/5877e356/ui/i18n/datepicker-fr.js"></script>

instead of only including .js file from https://ajax.googleapis.com. Setting autoGenerate to false does produce correct result though:
		'assetManager' => [
			'bundles' => [
				yii\jui\DatePickerLanguageAsset::class => [
					'autoGenerate' => false,
					'js' => [
						'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/i18n/datepicker-fr.js',
					]
				],
			],
		],

Yet, if my app supports language switching, how am I supposed to reconfigure DatePickerLanguageAsset bundle at the level of AssetManager to include language .js file from 'https://ajax.googleapis.com for current \Yii::$app->language?

@klimov-paul

You may want to use language, which is missing in standard repo or use localization different from the default one.

Lets say I want to use existing JUI languages while replacing ru.js and adding X.js. I tried to do that using autoGenerate and don't really see how it can be possible without one of the following:
a) putting my overridden (ru.js) and new (X.js) language files inside @vendor folder (@vendor\bower\jquery-ui\ui\).
b) copying all the existing content of @vendor\bower\jquery-ui\ui\ into web-accessible folder and putting my files (ru.js and X.js) there too.
Both variants introduce a maintainance nightmare (ideally I would want to configure DatePickerLanguageAsset at AssetManager level in a way that it would pick standard JUI languages from @vendor\bower\jquery-ui\ui\ and my overridden and new .js files from some other totally unrelated folder). How it was supposed to be done when autoGenerate was introduced?

Lets say I want to use existing JUI languages while replacing ru.js and adding X.js. I tried to do that using autoGenerate and don't really see how it can be possible without one of the following

You should not use autoGenerate in this case. That is what I was saying to you here:
https://github.com/yiisoft/yii2/issues/12017#issuecomment-236143996

You should not use  autoGenerate  in this case. That is what I was saying to you here:
#12017 (comment)

Can you please provide an example how it could be done (since your reply implied that a way to do it is supposed to exist) with or without autoGenerate?

Resolved by commit 65c60a0c2477117d07a64f45af8fa6c58f3edf62


Fix CI

fix #17
/gcbrun

@KonradSchieban has this been closed?

Has not been closed yet. I will need some time to fix this. However, you can still submit PRs, no worries. They will have to be reviewed manually without CI until this is fixed.


Local route for ipv6 must be added for vip segments

When a vip segment is used, e.g. 1000::1:a00:10/124, it is not enough to assign it to the lo device for ipv6. A local route must also be added in the target PODs;
ip -6 ro add local 1000::1:a00:10/124 dev lo

This is not needed for ipv4.

See also https://github.com/Nordix/mconnect#many-source-addresses

This issue is irrelevant because segments doesn't work at all at the moment; #198.
Keep it for future updates.


How to read and write data to the excel sheet using protractor

Hi there!
Your question is better suited for StackOverflow or Gitter. Please ask a question there with the 'protractor' tag or post in the Gitter Channel to get help.
From the the getting help section of the README:

Please ask usage and debugging questions on StackOverflow (use the "protractor" tag) or in the Angular discussion group. (Please do not ask support questions here on Github.)


production - set mainnet as default network

What would you like to be added:
On production builds, set mainnet as default network. On preview, we can keep playground as default
Why is this needed:

I will re-open this for now as we need to re-enable them once we're go for production.


Update sbt-scalafix to 0.9.29

Updates ch.epfl.scala:sbt-scalafix from 0.9.17 to 0.9.29.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "ch.epfl.scala", artifactId = "sbt-scalafix" } ]

labels: sbt-plugin-update, semver-patch

Superseded by #253.


Missing every font-awesome icons

Hi,
I used the npm install procedure and tested the example provided in the documentation. Still, I'm missing every font-awesome related icons: No dropdown arrow, no magnifying glass in the search field, and no X button to close filters.
What am I missing here? On inspection, the css ":before" stylings are missing somehow, and I see no way of overriding the css from my parent component.

Wrong multiselect dropdown, sorry for the disturbance.


Can't install Yii2 RBAC Extension

I'm trying to install RBAC Extension on yii2 advanced template but it throws error. How to I install RBAC?
$ ls
composer.phar   yii
$ which composer
/usr/local/bin/composer
$ composer global require --prefer-dist yii2mod/yii2-rbac "*"
Changed current directory to /Users/imac/.composer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1 - yii2mod/yii2-rbac 1.0 requires yiisoft/yii2-jui * -> satisfiable by yiisoft/yii2-jui[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7].
....
Installation request for yii2mod/yii2-rbac * -> satisfiable by yii2mod/yii2-rbac[1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.9.1, 1.9.2, 1.9.3, 2.0, 2.1, 2.2, 2.2.1, 2.3].
Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details. - It's a private package and you forgot to add a custom repository to find it
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
Installation failed, deleting ./composer.json.

I'm trying to install RBAC Extension on yii2 advanced template but it throws error. How to I install RBAC?
$ ls
composer.phar yii
$ which composer
/usr/local/bin/composer
$ composer global require --prefer-dist yii2mod/yii2-rbac "*"
Changed current directory to /Users/imac/.composer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1 - yii2mod/yii2-rbac 1.0 requires yiisoft/yii2-jui * -> satisfiable by yiisoft/yii2-jui[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7].
....
Installation request for yii2mod/yii2-rbac * -> satisfiable by yii2mod/yii2-rbac[1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.9.1, 1.9.2, 1.9.3, 2.0, 2.1, 2.2, 2.2.1, 2.3].
Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details. - It's a private package and you forgot to add a custom repository to find it
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
Installation failed, deleting ./composer.json.

try to updated fxp/composer-asset-plugin to latest version and try again.


Fixed variable scoping

Fixed up the variable scoping as per your suggestion

Wow, that was quick.  Cheers.

:metal:
You have contributor rights to Home Assistant. I'm fine with you merging these kind of fixes yourself.

Awesome, thanks very much.


Multiple rendering cycles in table code

When rendering a table using the ChordTableApp,jsx code, there is a total of four re renders that occur when an individual is clicked on the main table. This is likely due to the many side effects present within the TableApp function. This code should be refactored into smaller components to reduce the render cycles.

After reading more into React's hooks, the double renders (resulting in four total due to the way the data is loaded) are to be expected due to the way useEffect works (applying after a render, which causes a second one to trigger). Switching from useEffect to useLayoutEffect for the sub table generation allows for only one render while still allowing the tables to process the data.
This is evident in the alert section: using useEffect causes flickering for a moment between the two renders while useLayoutEffect removes the flicker when the tables load in. This change is currently being applied in https://github.com/CanDIG/cancogen_dashboard/tree/dash_useEffect_rework

After reading more into React's hooks, the double renders (resulting in four total due to the way the data is loaded) are to be expected due to the way useEffect works (applying after a render, which causes a second one to trigger). Switching from useEffect to useLayoutEffect for the sub table generation allows for only one render while still allowing the tables to process the data.
This is evident in the alert section: using useEffect causes flickering for a moment between the two renders while useLayoutEffect removes the flicker when the tables load in. This change is currently being applied in https://github.com/CanDIG/cancogen_dashboard/tree/dash_useEffect_rework


retrieve selected date on button click

Hi,
I wish to retrieve selected date range on button click , please help me as i am new with js.

Hi there,
I'm not sure if you're trying to get the dates on some custom buttons or on confirm.
Anyways i will explain both:
To retrieve from anywhere in your application:
let datepicker = new Datepickk(); let dates  = datepicker.selectedDates //you could do this from anywhere in your code
To retrive on confirm (part of datepickk):
let datepicker = new Datepickk(); datepicker.onConfirm = function(){   //this.selectedDates };


Unique descriptor name validator

Can we add a note like "Descriptor names must be unique and are case sensitive." on the "Add New Descriptor" page? Otherwise LGTM

LGTM! Merging


Can't download HD live streams from YouTube

youtube-dl -F [live-url] only lists the 360p streams.
I'm not sure if there'll be a stream up when you look at this bug, but http://www.youtube.com/user/arminvanbuuren/featured may have some 720p livestreams for the next few days.

i try for examle the nasa live stream and youtube-dl list 720p in the formats:
youtube-dl -F https://www.youtube.com/watch?v=OX9I1KyNa8M
[youtube] OX9I1KyNa8M: Downloading webpage
[youtube] OX9I1KyNa8M: Downloading video info webpage
[youtube] OX9I1KyNa8M: Extracting video information
WARNING: video doesn't have subtitles
[youtube] OX9I1KyNa8M: Downloading formats manifest
[youtube] OX9I1KyNa8M: Downloading DASH manifest
[info] Available formats for OX9I1KyNa8M:
format code  extension  resolution note
140          m4a        audio only DASH audio  144k , m4a_dash container, aac  @128k (48000Hz)
141          m4a        audio only DASH audio  272k , m4a_dash container, aac  @256k (48000Hz)
160          mp4        256x144    DASH video  124k , avc1.42c00c, 15fps, video only
133          mp4        426x240    DASH video  258k , avc1.4d4015, 30fps, video only
134          mp4        640x360    DASH video  616k , avc1.4d401e, 30fps, video only
135          mp4        854x480    DASH video 1116k , avc1.4d401f, 30fps, video only
136          mp4        1280x720   DASH video 2216k , avc1.4d401f, 30fps, video only
151          mp4        72p        HLS
132          mp4        240p       HLS
92           mp4        240p       HLS
93           mp4        360p       HLS
94           mp4        480p       HLS
95           mp4        720p       HLS  (best)

Since it seems to be working now for live streams, I'm closing the issue. Feel free to comment here if you have any problem and we'll reopen the issue.


Start using range-v3

I believe the usage of the C++ standard template library is going to be massively affected by the introduction to range-v3 library and all the capabilities they provide.  I'd like to start using that as soon as possible for no other reason than personal gain.  :)

It was a quick discovery.  I learned a lot, much of which was that it was going to take much more than just tinkering with my project to understand the std::ranges library.


Frameit. Replace iPhone 5S images with iPhone SE

Hi, team. Thank your for your great products.
After iPhone SE came to the world, Apple replaced iPhone 5S images with images of SE on their App Store Marketing page.
We need a little update of frameit to use these new resources.

Hi @win2l Thanks for reaching out about this. We are working on this and you should see these changes soon 👍

@win2l done with https://github.com/fastlane/fastlane/pull/4411 check it out and let me know what you think!


Email - template for html email body doesn't render well on some clients

The html generated by the email template for tickets does now render well on some email clients.

cleaned up the layout and added links to the ticket


Getter or Check for the DLC hash of a model

Something like model.DlcHash or model.IsInDlc(string dlcName).
The purpose would be to get all of the models of a specific type and filter those on specific DLCs (example: get all peds and filter those from The Doomsday Heist).
Might be useful to also add model.IsBaseGame or similar to check if a model is not part of any DLC.

My quick guess: Rockstar make the game's code keep DLC name info associated with model info instances.
I searched code of CModelInfo, CExtraContentManager, CExtraContentManager, CMountableContent, fwArchetypeManager, CVehicleFactory, and CFileLoader, but I haven't found any clue that some classes hold DLC name info associated with model info instances.
Maybe it might as well close this issue as not planned if any relevant proofs aren't provided that some classes hold such data in about 1 week.

What made me request this feature was the presence of natives like GET_DLC_VEHICLE_MODEL, GET_DLC_WEAPON_DATA, IS_DLC_VEHICLE_MOD, etc.
Maybe it's specific to those natives?

Do these snippets convincing to you? None of GET_DLC_VEHICLE_MODEL, GET_DLC_WEAPON_DATA, IS_DLC_VEHICLE_MOD accesses to any data types that have specific DLC info per element. Hope courts won't consider these copyrightable so T2 won't have right to take down these.
<!-- in `ExtraMetaDataDefs.psc` -->

  <!-- WEAPON ITEMS -->
    <structdef type="ShopWeaponComponent" base ="BaseShopItem">
        <string name="m_componentName" type="atHashString" />
        <string name="m_componentDesc" type="atString" init ="INVALID"/>
        <u16 name="m_id"/>
    </structdef>
    <structdef type="WeaponShopItem" base="BaseShopItem">
        <s32 name="m_ammoCost" init="50"/>
        <string name="m_nameHash" type="atHashString" />
        <string name="m_weaponDesc" type="atString" init ="INVALID"/>
        <string name="m_weaponTT" type="atString" init ="INVALID"/>
        <string name="m_weaponUppercase" type="atString" init ="INVALID"/>
        <array name ="m_weaponComponents" type="atArray">
            <struct type="ShopWeaponComponent"/>
        </array>
        <bool name="m_availableInSP" init="false"/>
    </structdef>

    <!-- VEHICLES -->
    <structdef type="ShopVehicleData" base="BaseShopItem">
        <string name="m_modelNameHash" type="atHashString" />
        <array name ="m_vehicleMods" type="atArray">
            <struct type="ShopVehicleMod"/>
        </array>
        <bitset name="m_vehicleFlags" numBits="32" type="fixed32" values="eVehicleFlags"/>
    </structdef>

// in `commands_extrametadata.cpp`
int CommandGetDLCVehicleModel(int index)
{
	return EXTRAMETADATAMGR.GetShopVehicleModelNameHash(index);
}

bool CommandIsDlcVehicleMod(s32 identifier)
{
	const atArray<ShopVehicleMod*>& modArray = EXTRAMETADATAMGR.GetGenericVehicleModList();
	for(int i=0;i<modArray.GetCount();i++)
	{
		if(modArray[i]->m_nameHash.GetHash() == static_cast<u32>(identifier))
			return true;
	}
	return false;
}

bool CommandGetDLCWeaponData(int index,  scrShopWeaponData* out_Values)
{
    const WeaponShopItem* pWeaponItem = EXTRAMETADATAMGR.GetDLCWeaponShopItem(index);
    if (scriptVerifyf(pWeaponItem, "GET_WEAPON_SHOP_DLC_ITEM_DATA - pWeaponItem is NULL for idx [%d]", index))
    {
	// set values to members of `out_Values`, no need to write in here
        return true;
    }

    return false;
}

// in `ExtraMetadataMgr.cpp`
int CExtraMetadataMgr::GetShopVehicleModelNameHash(int idx) const
{
	const ShopVehicleData* vehicleData = GetShopVehicleData(idx);

	if(vehicleData)
		return vehicleData->m_modelNameHash;

	return 0;
}

const atArray<ShopVehicleMod*>& CExtraMetadataMgr::GetGenericVehicleModList()
{
	return m_vehicleGenericModsLookup;
}

const WeaponShopItem* CExtraMetadataMgr::GetDLCWeaponShopItem(int idx) const
{
	if((u32)(idx) < (u32)(m_weaponShopItemsLookup.GetCount()))
		return m_weaponShopItemsLookup[idx];
    return NULL;
}

I'm not exactly sure what the objective of the request is, but in BTTFV we have a sanity check for whether the user has The Doomsday Heist (a required DLC for our mod) installed. It is quite simply this:
if (!new Model("deluxo").IsInCdImage)
            {
                Screen.ShowHelpText("~r~ERROR:~s~ ~y~BackToTheFutureV~s~ is ~o~not~s~ compatible with the currently installed version of GTAV.~n~Please ~b~update~s~ your game to version ~g~2372~s~ or newer.");
                Abort();
                return;
            }

So if the idea is to be able to catch users who are either running outdated versions, running pirated versions, or have completely screwed up their install following some braindead """tutorial""" on YouTube, that check should be sufficient.


Encrypting realm db is causing the app to crash

Whenever I try to encrypt the realm db I'm getting a crash on iOs. I'm getting the following error:
Fatal Exception: RLMException
Realm at path `` already opened with different encryption key

I've already had a realm db on the same phone before trying to encrypt the db. I have also tried to run a migration with new schema but nothing worked.

This is actually the intended behavior. You can't convert an unencrypted Realm to use encryption while you're still accessing it, because encrypting a Realm has to rewrite every single block of the file on disk to be encrypted (which is kind of the point).
Since Realm memory maps the database file, allowing to change the encryption key on a file while accessing it would cause some bad accesses.
So you're best off either encrypting the file at the very start of your application life cycle, or copying the Realm file to a new location with a new encryption key and using that new file if you must encrypt a file late in your app's life cycle.

Hi @raulzito234! I hope that answered your question!
Since this looks resolved, I'm closing the issue now. If you have additional questions, please feel free to re-open it! :)


Add support for xsimd::tranpose

Fix #107 (6 years old!)

Note: WIP PR, currently only supports 32bits scalar types for SSE

We now have support for float and double on all platforms except riscv \o/
I'll merge that one and open bugs to keep track of the remaining bits


Android Basics: Viewmodel and State in Compose

https://developer.android.com/codelabs/basic-android-kotlin-compose-viewmodel-and-state?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-4-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-viewmodel-and-state#7
Task 8: Update score and Word Count
Part 5 gives the following instructions:

Add another variable for the count in the GameUiState. Call it currentWordCount and initialize it to 1.

but the code is shown as:
data class GameUiState(    val currentScrambledWord: String = "",    val currentWordCount: Int = 0,    val score: Int = 1,    val isGuessedWordWrong: Boolean = false, )
currentWordCount in the code is initialized as 0, while the score is initialized as 1

duplicate


FeatureLayer.ClearSelection / SelectAll only work when FeatureLayer is selected in Legend

This issue was imported from CodePlex
jany_ wrote 2014-03-28 at 14:06
I have tried to use Dotspatial.Symbology.FeatureLayer.ClearSelection and Dotspatial.Symbology.FeatureLayer.SelectAll in code.
I found out that they work, if I have selected the FeatureLayer, from which I want to clear the selection / select all features, in the legend. But they don't work if I have selected another layer in the legend.
I don't see a reason why the layer should be selected in legend if I want to select its features in code.
By looking at the sourcecode of Dotspatial.Symbology.FeatureLayer I think the functions InvertSelection, Select and Unselect might have the same problem.
mogikanin wrote 2014-05-06 at 10:32
I think you can set in code IsSelected=true before calling these methods. And then select back another layer.
jany_ wrote 2014-05-06 at 17:36
May be. But I don't see a reason why one should have to do that. If I use a function that belongs to a certain layer, I expect it to always work with that layer not only if that layer is selected in legend. I mean wouldn't you expect featureLayer.selectAll
to selectAll features, if there is nowhere written, that it selects the features only if the layer is selected in legend?
If it has to be selected in legend I would name the function accordingly or add an according function-description. Else it makes no sense and one has to look at the code to know why the code is not working as expected.
I have no idea why the code is written that way. In my own version I simply removed the part that checked for the legend selection and it worked.
mogikanin wrote 2014-05-06 at 18:08
Agreed. I'll add additional functions documentation in which will be documented that functions works only when layer selected.
ModernaTider wrote 2015-02-23 at 10:05
For me this does not work, selected features remain selected:
private void unselectAll() { foreach (var layer in _map1.Layers) { layer.IsSelected = true; layer.ClearSelection(); layer.IsSelected = false; } _map1.Refresh(); }

FeatureLayers ClearSelection, Select, InvertSelection, Unselect, SelectAll and UnSelectAll now work based on SelectionEnabled properties of FeatureLayer and its categories.


Installed Scarb version must match Cairo version

For the language server to work properly, the system Scarb version must match the project's Cairo version.
I don't know if that should be on Setup 2. Install Scarb Package Manager or Config
The syntax for installing a specific Scarb version according to swmansion is:
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh  -s -- -v 2.4.0

Let's inlcude this in the https://book.dojoengine.org/getting-started/quick-start


Add MemoryMappedDataSetIterator

Idea: Things like shuffling are different with presaved datasets. Caching is also an issue.
Often when we are doing gradient descent we need to do shuffling among other things.
If we had a memory mapped file, we could identify records at offsets and index in to 1 memory mapped file for assembling datasets on the fly.
This would solve a few things: a class balance problem we often run in to, shuffling in near constant time, and sampling.

Possibly use a MemoryMappedOutputStream http://stackoverflow.com/questions/20495278/memory-mapped-output-stream-produces-an-output-file-with-trailing-zeros in addition to dataset.save/load?
We will still need to track offsets here.

I very much like the general strategy of using a memory mapped file to back iterators.
Some issues that this approach may solve:

Avoid parsing data multiple times (i.e., parse CSV every epoch, read and resize images multiple times, etc)
Shuffling between epochs (not currently possible/easy with CSV, for example)

Shuffling between epochs: has a performance (accuracy) hit, but is hard to do with current functionality
Implementing shuffling at the RecordReader level: end up writing the same functionality over and over...

Simplifies data set preprocessing/persistence in binary form - i.e., reuse the MM file contents multiple times
Solves the 'how many examples' and 'how many DataSets' issues (i.e., export first -> known size)

Some design thoughts and issues:

The data for each example should be stored separately, not batched. Internally, could just be INDArrays. Storing batches should be possible, but has some downsides:

Less efficient reads of arbitrary examples (i.e., shuffling), unless strides are exactly right for contiguous memory access
Less efficient storage, in the case of time series (need mask arrays, and store masked values)

Could store data in compressed format (to minimize disk space, total disk read, number of page misses)
We should provide persisted and non-persisted options

Sometimes reuse of the data is desirable, sometimes we don't (manually having to delete a file in the latter case isn't ideal)
When persisted: allow people to load and use it again easily

Current metadata functionality should be considered here too (i.e., store metadata also when present)

Say I have a test set: evaluation from MM file -> which examples were classified incorrectly?

I don't think this is really usable for HDFS/Spark for exporting (the format is fine, but random HDFS reads is the problem). Unless we can find a workaround? (Might be better than a million separate DataSet files on HDFS for the export step)

Some thoughts on how this could work: 2 implementations

One that replaces RecordReaderDataSetIterator -> load and persist one example at a time from a RecordReader
One that simply wraps other DataSetIterators -> same underlying implementation as above, but this one does the splitting into separate examples first, if necessary

Side note: could we use the same underlying storage format for Keras?
Suppose your training data is in python -> export to file -> read in DL4J as MM file

@AlexDBlack Yup that would simplify things - currently I'm just dumping data to HDF5 format just before starting learning and send the path of the file to dl4j. Hacky test script for reference: https://github.com/pkoperek/keras-dl4j/blob/master/mnist_example_full.py

Another thing that a memory mapped file has going for it is that while still being off-heap, the data doesn't have to be moved over to cuda if it isn't actually used.
I used that for word vector loading when I found the default way to be too slow (see this 4 month old gist: https://gist.github.com/treo/f5a346d53f89566b51bf88a9a42c67c7Z). Only one thing you should notice: While the file can be larger than 2GB, you can't actually index directly into it without splitting it into chunks as Java doesn't allow integers that are that large.

Additional thought: having the ability to use this to perform sampling (in the case of imbalanced data sets - over-sample infrequent classes, under-sample frequent classes) would be a nice addition.


Issue making chart editor unusable

Describe your bug here.
When I use the keyboard onscreen I can’t make it go resulting in the chart unusable when trying to change a name of a song in chart editor.
Crash Log or logcat logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
iOS
Which psych engine version you're on?
DevBuild
Did you edit anything in this build? If so, mention or summarize your changes.
No

that's a won't fix but editors will be re-ported so maybe u can try ur luck after that


Bibliopixel has symbols in top-level util. namespace.

Third-party code that also improvidently makes the same bad decision ;-) will collide with yours and will have no good way to resolve it.

I believe recent commits make this moot ?

  I think we still have that util subdirectory,
but who cares?
On 19 December 2016 at 00:03, Dread<EMAIL_ADDRESS>wrote:

I believe recent commits make this moot ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ManiacalLabs/BiblioPixel/issues/42#issuecomment-267853801,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPdsmqU63zy249B7lZ52lMcbcmy1JAFks5rJbvWgaJpZM4H0fE4
.

--
/t
http://radio.swirly.com - art music radio 24/7 366/1000


Error: ENOENT: no such file or directory, stat '/client/dist/index.html'

I pull the lastest version, but when I excute docker-compose up, and open the web, it logs as follow:
api_1          | Error: ENOENT: no such file or directory, stat '/client/dist/index.html'

I solve the problem by excuting the following command:
docker-compose up --build

I solve the problem by excuting the following command:
docker-compose up --build

Thanks! I will change the instructions based on this since we are actively updating this


Possible to update counter cache using update_all

I have an application which has many millions of records in multiple tables.  Operations are done to avoid extra database calls on these large tables.  One operation I tested with counter_culture is "reschedule!" and found the counter column was not updated.  My guess is this is because I'm performing an update_all operation on the _id column directly.  Is it still possible to use this gem to avoid having to perform #count operations on these massive tables?
class JobStatus < ActiveRecord::Base
  has_many :job_queues, foreign_key: :job_status_id

  def self.not_started
    find_by_name('Not Started')
  end
end

class JobQueue < ActiveRecord::Base
  belongs_to :status, class_name: 'JobStatus', foreign_key: 'job_status_id'
  counter_culture :status

  def self.reschedule!
    update_all(proc_id: nil, job_status_id: JobStatus.not_started.id, results: nil)
  end
end

> JobStatus.not_started.job_queues_count
  JobStatus Load (0.2ms)  SELECT  `job_statuses`.* FROM `job_statuses`  WHERE `job_statuses`.`name` = 'Not Started' LIMIT 1
 => 20091818
2.1.2 :012 > j = JobQueue.failed.limit(1)
  JobQueue Load (0.5ms)  SELECT  `job_queues`.* FROM `job_queues` INNER JOIN `job_statuses` ON `job_statuses`.`id` = `job_queues`.`job_status_id` WHERE `job_statuses`.`name` = 'Failed' LIMIT 1
 => #<ActiveRecord::Relation [#<JobQueue id: 310, batch_id: 1, page_id: 57295557, job_status_id: 6, created: nil, last_update: nil, results: "SLURM JOB 1021256: PageCorrector Failed: Command t...", work_id: 140721, proc_id: "20150209224901037", tries: 0>]>
> j.reschedule!
  JobStatus Load (0.4ms)  SELECT  `job_statuses`.* FROM `job_statuses`  WHERE `job_statuses`.`name` = 'Not Started' LIMIT 1
  SQL (35786.5ms)  UPDATE `job_queues` SET `job_queues`.`proc_id` = NULL, `job_queues`.`job_status_id` = 1, `job_queues`.`results` = NULL WHERE `job_queues`.`id` IN (SELECT id FROM (SELECT  `job_queues`.`id` FROM `job_queues` INNER JOIN `job_statuses` ON `job_statuses`.`id` = `job_queues`.`job_status_id` WHERE `job_statuses`.`name` = 'Failed' LIMIT 1) __active_record_temp)
 => 1
2.1.2 :025 > JobStatus.not_started.job_queues_count
  JobStatus Load (0.3ms)  SELECT  `job_statuses`.* FROM `job_statuses`  WHERE `job_statuses`.`name` = 'Not Started' LIMIT 1
 => 20091818

counter_culture, just like simple Rails counter caches, work through Rails callbacks. So you need to make sure that any operation that changes the counter cache value triggers callbacks, otherwise there is no way for counter_culture to know anything changed. So I think the answer to your question is no.

@magnusvk Thanks for the response.  I figured the answer was no, but wanted to be sure.  The use of this gem may have a net benefit greater than what I'd lose by no longer using #update_all, so will test that and see.


Clang format for distributed module

I suggest format the code in distributed module first, so that the changes in future PR can be tracked more easily.

updated on 2/11 using the google style setting in clang-formatter
"clang-format.language.cpp.style": "google"


_posts/0000-01-02-jburger69.md

learned commit, branches, pull requests, assign myself as master

name of file changed


Added pre-commit Black rules compatible with python 3.12

Added Pre-commit Black rules compatible with python 3.12

/lgtm


External DNS stack fails in non-commercial regions

The External DNS IAM policy currently hardcodes the aws partition for its route53 resource. This results in the stack failing in non-commercial regions like GovCloud.

There is also ~30 other occurrences of aws partition in IAM policies or resource ARNs (ex.: velero, cert_manager, etc..)


Post resuming

Currently posts can't be resumed at all, it would be nice if they could be.

[ ] Change how Message-IDs are generated:

Add a global/SecretKey option, arbitrary length string to use when generating Message-IDs
Hash a string consisting of something like "{GPS start time}|subject|secretkey"
Message-ID = "{hash}@gopoststuff" or something similar

[ ] Log the {GPS start time} when starting up
[ ] Add ability to override the {GPS start time} parameter with a command line option
[ ] If overridden, send "IHAVE messageid" commands to server for every article before posting

Any idea on when this might be implemented? The header check comes in handy.


Ghidra cannot recognize some VFP instructions

Describe the bug
Ghidra cannot recognize some VFP instructions such as vmul.f32
To Reproduce
here's a sample that multiplies the floats in s22 and s0 then put the result in s22 (armeabi-v7a):
00 ba 2b ee     vmul.f32 s22, s22, s0

however Ghidra will translate it as:
00 ba 2b ee     cdp        p10,0x2,cr11,cr11,cr0,0x0

Environment (please complete the following information):

OS: Ubuntu 19.10
Java Version: 11.0.6
Ghidra Version: 9.1.2

Yeah, some of those neon instructions look broken.  Looks like those instructions were developed in SLEIGH to only accept as unconditional instructions (cond=15), and you have always (cond=14).

optimal

Thanks for your explanation! But i couldn't find a way to edit the instruction... If i choose 'Patch instruction', nothing would change after entering the same instruction again (cdp p10,0x2,cr11,cr11,cr0,0x0). And the ByteViewer forbids editing to any instruction.

Fixed by #2677