When the bottomsheet listview is short, you can drag the sheet misplaced.

I've seen this before as well

https://www.youtube.com/watch?v=HjNkzglZTPE&feature=youtu.be
This is how i repro it.

In BottomSheetLayout.java :: expandSheet() function:
ObjectAnimator anim = ObjectAnimator.ofFloat(this, SHEET_TRANSLATION, getHeight());

Should be replaced with:
ObjectAnimator anim = ObjectAnimator.ofFloat(this, SHEET_TRANSLATION, getMaxSheetTranslation());

This will prevent the sheet from filling the full height of the view and limit its height to the content (if it is smaller) when expandSheet() is called from anywhere in the code.


Controller Validation is wrong if method param has more than 1 Annotation

The validation checks for @Param but only works if this is the only annotation at a method param.

Additional issue: https://github.com/canoo/dolphin-platform/issues/462


Explicitly check projects (versus all) in CLI tests.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

0 of 2 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 62.313%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/client/helpers.go
0
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>9:
-0.2%

Covered Lines:
167

Relevant Lines:
268

💛  - Coveralls

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


flatMapLatest not working

Hey! I can't seem to get flatMapLatest working (the console says it's not a valid function)
Sample code:
 Rx.Observable.create(observer => {
  setTimeout(() => observer.next(1), 500)
  setTimeout(() => observer.next(2), 2500)
  setTimeout(() => observer.next(3), 4500)
}).flatMap ( number => {
  return Rx.Observable.create(observer => {
	setTimeout(() => observer.next(number), 500)
	setTimeout(() => observer.next(number * 2), 1000)
	setTimeout(() => observer.next(number * 3), 1500)
  })
})

flatMapLatest is not available in RxJS 5: Docs


Avoid setting tool to already installed if it exited with errors

Relevant code: https://github.com/containerbase/base/blob/1f550811e427123049b51c0cb30a21c3657eb072/src/cli/command/install-tool.ts#L41-L47
With this example:
install-tool node 10.24.0
install-tool npm 9.5.1
install-tool yarn-slim 1.22.19
install-tool node v18.16.1
install-tool yarn-slim 1.22.19
yarn --version

It should work instead of failed. Today the last install-tool command returns:
$ install-tool yarn-slim 1.22.19
[06:57:14.103] INFO (786): Installing tool yarn-slim v1.22.19...
[06:57:14.152] INFO (786): Preparing legacy tool yarn-slim ...
tool yarn-slim v1.22.19 is already installed

..even though yarn is not installed

with linked PR this will work:
install-tool node 10.24.0
install-tool npm 9.5.1 || true
install-tool yarn-slim 1.22.19
install-tool node v18.16.1
install-tool yarn-slim 1.22.19
yarn --version

#715


first feedback, not working when using the alarmserver proxy

first feedback, not working when using the alarmserver proxy in-between the EVL4 and HA.
The proxy works fine with the stock envisalink integration, but I suspect this new version is also trying to do something else?

I suspect the next step is to enable logging and see whats happening.
So for now I only see:
Logger: root
Source: custom_components/envisalink_new/pyenvisalink/alarm_panel.py:212
Integration: Envisalink_new
First occurred: 6:05:48 PM (2 occurrences)
Last logged: 6:12:44 PM

Panel type could not be determined.

Yup I think it is also connecting to port 80
        try:
            async with aiohttp.ClientSession(auth=aiohttp.BasicAuth(self._username, self._password)) as client:
                url = f'http://{self._host}/2'

Yes, it tries to connect to the EVL on port 80 as well to discover the EVL version, panel type, firmware version and, more importantly, the MAC address of the device.  The latter is used for the unique ID in HA so that the entities can be exposed and managed via the UI.  It can call back to using the config entry ID if the MAC isn't obtainable.
I wanted to try and simplify the configuration as much as possible but could add explicit configuration for the EVL version and panel type back in and make them optional which should allow you to continue to use the alarm server proxy as-is.  It would necessarily fall back to using the config entry ID for the unique ID though.  I think the downside of that is that if you remove the device and then re-add it, it will get a new unique ID so any history on the entities would not be reconnected to the newly created ones because the unique ID would have changed (I'm just speculating on that though).
An alternative might be to add port 80 forwarding support to alarm server proxy.

ok before you go through all that work, I may be in the minority for this. Will look at a work-around which doesn't require port 80 in the alarmserver proxy. I have an idea, which I just need to test out first when I have some time.

A couple other thoughts:

Add a "proxy host" configuration which would be used for one or both of the connections.  That might allow you to forward 4025 to AlarmServer but 80 directly to the EVL.
Add the ability to specify both ports.  While this doesn't magically fix the issue, it would allow you to use a port outside the privileged range (1-1023) which might make proxying easier.  You could use a separate proxy to forward that connection rather than needing to modify AlarmServer.  Not ideal to have to run an additional proxy though.

Alright I was able to get the addon to connect up in parallel with the original addon and this addon at the same time.
On the VM running alarmserver, I already had traefik running on port 80/443 for other containers. I just had to add a manual host for the envisalink and set up dns in my home network for it. The goodnews is, configuring a hostname in the addon works so that was all I needed to do.

Glad you were able to get something working.  I may still add the ability to override port 80 to make it easy to avoid port conflicts if a shared proxy is used where port conflicts may exists.  It would also be useful for my own testing as well against a mock-EVL I've been working on.

@tinuva The latest release accidentally ended up using port 8080 instead of 80 for the discovery.  I'd been using this for local testing against a mock server but it turns out the the EVL is listening on both port 80 and 8080.  Are you able to adjust your setup to use port 8080?  Just checking because I think I'd prefer to leave it at 8080 since it works on the actual EVL hardware and it would avoid me making mistakes (like now) and committing the code with a different port.


Fix HuggingFace notebook link

Description: While reading the docs (https://python.langchain.com/docs/integrations/providers/huggingface), I noticed the notebook linked in https://python.langchain.com/docs/use_cases/evaluation/huggingface_datasets.html was giving back 404. I made a search in the docs to see whether it was available, so this PR updates the link in the docs.
Issue: I haven't opened an issue for this change.
Dependencies: -
Tag maintainer: -,
Twitter handle: -

After deployment the https://langchain-foods6tto-langchain.vercel.app/docs/modules/data_connection/document_loaders/integrations/hugging_face_dataset looks with 404 but https://python.langchain.com/docs/modules/data_connection/document_loaders/integrations/hugging_face_dataset redirects properly

thanks @javi-aranda!


Fix datapackage errors and FERC failures

This PR addresses issues discovered while trying to publish new archives outlined in this issue. Specifically, it addresses problems with the datapackage.json files generated during this run, and problems with the FERC archivers. The datapackage issues arose fromrecent updates that caused us to accidentally overwrite values in the file causing there to be bad links for resources within the archive. The FERC issue came up when we started occasionally getting errors where we would get a webpage that appeared to be a logon while trying to archive taxonomy files. This appears to be a rate limiting mechanism, and by reducing concurrency, we were able to avoid this issue in this archiver run.

Do we know how the bad archives with ID_NUMBER in them got published? I thought we had auto-publish disabled for the production server.

@zaneselvans that's on me, I published them and didn't notice the ID_NUMBER although I definitely should have checked for it given that we knew about this issue.

Do we understand where this intermittent
b'' != b'some other non-empty string'

assertion failure in the unit tests is originating?

Hmm, I hadn't seen this before, but it's happening in our big zenodo sandbox test where we go through a series of archiver runs with fake files and verify that the deposition looks as expected at each stage. For some reason, it looks like when we try to download files to verify their contents after a run, sometimes we're getting an empty string for reasons I don't understand. I'll create an issue.


How to turn off the DEBUG log information?

There're too much log print outs, how to turn off the DEBUG/INFO?
Thanks!

Are you looking for this?
https://stackoverflow.com/questions/7234262/how-to-implement-different-levels-for-specific-modules-in-python

No, it's not what I'm looking for. The repo keeps output something like below, how can I turn off those?
INFO:paperscraper.load_dumps:Loaded biorxiv dump with 281401 entries
INFO:paperscraper.load_dumps:Loaded chemrxiv dump with 19395 entries
INFO:paperscraper.load_dumps:Loaded medrxiv dump with 57042 entries
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:httpx:load_ssl_context verify=False cert=None trust_env=True http2=False
...
DEBUG:charset_normalizer:Encoding detection: ascii is most likely the one.
DEBUG:charset_normalizer:Encoding detection: ascii is most likely the one.
DEBUG:httpcore.connection:connect_tcp.started host='localhost' port=7788 local_address=None timeout=None socket_options=None
DEBUG:httpcore.connection:connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fb9a173b340>
DEBUG:httpcore.http11:send_request_headers.started request=<Request [b'POST']>
DEBUG:httpcore.http11:send_request_headers.complete
DEBUG:httpcore.http11:send_request_body.started request=<Request [b'POST']>
DEBUG:httpcore.http11:send_request_body.complete
DEBUG:httpcore.http11:receive_response_headers.started request=<Request [b'POST']>
DEBUG:matplotlib.pyplot:Loaded backend agg version v2.2.

Mose of those are not outputs from paperscraper but from httpcore, so this is not strictly related to paperscraper. How to set the logging level, you can google it


implemented solving "this" in anonymous class declaration

used for solving calls to methods declared in anonymous class declaration
callees can be other methods declared in said anonymous class declaration

Very good. With an extra test it would have been absolutely perfect :)


Support URLFile in the upload_file function

We would like predict functions to be able to return a remote URL rather than a local file on disk and have it behave like a file object. And when it is passed to the file uploader it will stream the file from the remote to the destination provided.
class Predictor(BasePredictor):
    def predict(self, **kwargs) -> File:
        return URLFile("https://replicate.delivery/czjl/9MBNrffKcxoqY0iprW66NF8MZaNeH322a27yE0sjFGtKMXLnA/hello.webp")

This PR adds an additional check to the upload_file() handler to call fh.seekable() before attempting to seek. This allows instances of io.IOBase that do not support seek (like URLFile) to be uploaded.
We also add a name attribute to URLFile. This is used by the upload_file function to infer the file extension and mime type.

I think we need to limit this to http/https/data URLs for security reasons, as noted in #1987.


feat: recycle connection in broker

(If this PR fixes a github issue, please add Fixes #<xyz>.)
Fixes #16050
(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)
Master Issue: #
Motivation
Explain here the context, and why you're making that change. What is the problem you're trying to solve.
Modifications
Describe the modifications you've done.
Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no / don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)

Documentation
Check the box below or label this PR directly.
Need to update docs?

[ ] doc-required
(Your PR needs to update docs and you will update later)

[x] doc-not-needed
(Please explain why)

[ ] doc
(Your PR contains doc changes)

[ ] doc-complete
(Docs have been already added)

Since it takes a long time and the code differences are too large, I will close this PR.


Fix firefox import domain

The firefox import button isn't working.
This was found in going through the checklist in #289 for Firefox.

This is resolved.


Pull filepaths from the classpath

Lookup file paths from the classpath so we don't have to work around differences in platforms. Removes ability to hot reload these placeholder images at runtime but as far as I can tell that's not a requirement

CI: No security warnings found

CI: No security warnings found


Port to Gatsby

Why?

Gatsby adds a bunch of performance optimizations to make the site load and respond faster
Has built GraphQL data layer to standardize how pages/components receive data, even if our data is in multiple places (firebase, SQL, wordpress, whatever you like)

Follow this guide.

Seems unnecessary at the moment as port will require changing a lot of the folder structure and the site already loads very fast, so gains seem minimal. Closing for now.


Added equalIgnoringOrder assertion

Added equalIgnoringOrder assertion to add flexibility and match the assertions possible in other frameworks.

@caolan Hi Caolan, can you review this PR?


build: fix issue with git and relative dates

If git is set up to display relative dates, the build succeeds but
produces binaries that panic immediately an error like:
panic: parsing time "30 hours ago" as "Mon Jan 2 15:04:05 2006 -0700"

This change forces git to return an RFC2822-compliant date string, and
updates the parser to handle that format.

Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md

The change looks good. Waiting for CLA to merge.
Thanks!

I have to wait for approval to commit to this project. I will resubmit this pull request once I have approval.

FYI I've submitted a similar change with syscall sorting:
https://github.com/google/syzkaller/commit/7fb694ef82d4dace30cf68efba5a6af705c94fa4
Just hit it myself. Thanks.

Thanks! I'm still waiting on approval to contribute to this project.


Collaborative editing

can this be leveraged as a collaborative editor? Then it would be exactly what I am searching for ;)

maybe through https://firepad.io/ ?


Nav bar shrinks, overlaps logo on sponsor app and registration pages

https://staging-pycon.python.org/2016/sponsors/apply/
https://staging-pycon.python.org/2016/registration/register/
On these two pages, the nav bar appears smaller than usual and overlaps the logo.

This has been fixed.


Introduce the Main nav from VF, for three items - Home / About and Add a Project

I think it's a good idea to actually introduce a nav just below the header area, because that way a user doesn't just depend on the links on home for accessing About and Add a project.
The component is in the VF and maybe easy to introduce? We can also remove this sentence already, if we have the navigation.
Sorry for jumping things on the  sprint, let me know if makes sense! (and certainly this is for after we have the projects in)
Gabs

For a glimpse on how this looks, a nav like this (Home Downloads etc):

Work for #360 can be combined with this work on the add-nav branch @MightyAx


perf: Disable memballon driver on KVM control and compute nodes

Exclude the memory balloon device, because this is recommended in the OCP docs (chapter: "Recommended host practices for IBM Z & IBM LinuxONE environments".

:tada: This PR is included in version 2.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


update packing pdf definitions

Coverage remained the same at 67.634% when pulling c28d0aee07fc175e56893af10b9d91bd6151d8b6 on leslieaula:dev into 1ae986a641c60e5c9f9a7c5a4e66f3adcd60ac27 on danliris:dev.


currentFileChange listener error leads into a maximum call stack size exceeding RangeError

Been running into this lately. Sometimes when you go and which the file in working tree or in file tree, Brackets hangs for a long while (seconds to minutes to forever). After it recovers you'll, console is filled with errors:
// First error
Exception in 'currentFileChange' listener on Object {...}
RangeError: Maximum call stack size exceeded RangeError: Maximum call stack size exceeded
    at incErrorCount (file:///Applications/Brackets.app/Contents/dev/src/extensions/default/DebugCommands/ErrorNotification.js:95:9)
    at Console.window.console.error (file:///Applications/Brackets.app/Contents/dev/src/extensions/default/DebugCommands/ErrorNotification.js:124:13)
    at Object.trigger (file:///Applications/Brackets.app/Contents/dev/src/utils/EventDispatcher.js:235:25)
    at _notifyActiveEditorChanged (file:///Applications/Brackets.app/Contents/dev/src/editor/EditorManager.js:165:17)
    at _handleCurrentFileChange (file:///Applications/Brackets.app/Contents/dev/src/editor/EditorManager.js:182:9)
    at Object.trigger (file:///Applications/Brackets.app/Contents/dev/src/utils/EventDispatcher.js:233:40)
    at setActivePaneId (file:///Applications/Brackets.app/Contents/dev/src/view/MainViewManager.js:399:21)
    at _activeEditorChange (file:///Applications/Brackets.app/Contents/dev/src/view/MainViewManager.js:461:21)
    at Object.trigger (file:///Applications/Brackets.app/Contents/dev/src/utils/EventDispatcher.js:233:40)
    at _notifyActiveEditorChanged (file:///Applications/Brackets.app/Contents/dev/src/editor/EditorManager.js:165:17)
    at _handleCurrentFileChange (file:///Applications/Brackets.app/Contents/dev/src/editor/EditorManager.js:182:9)
    at Object.trigger (file:///Applications/Brackets.app/Contents/dev/src/utils/EventDispatcher.js:233:40)
    at setActivePaneId (file:///Applications/Brackets.app/Contents/dev/src/view/MainViewManager.js:399:21)
    at _activeEditorChange (file:///Applications/Brackets.app/Contents/dev/src/view/MainViewManager.js:461:21)
    at Object.trigger (file:///Applications/Brackets.app/Contents/dev/src/utils/EventDispatcher.js:233:40)
    at _notifyActiveEditorChanged (file:///Applications/Brackets.app/Contents/dev/src/editor/EditorManager.js:165:17)ErrorNotification.js:125 window.console.error

// Subsequent errors
Exception in 'currentFileChange' listener on Object RangeError: Maximum call stack size exceeded RangeError: Maximum call stack size exceeded
    at t (file:///Applications/Brackets.app/Contents/dev/src/thirdparty/lodash.js:6:249)
    at Function.<anonymous> (file:///Applications/Brackets.app/Contents/dev/src/thirdparty/lodash.js:28:229)
    at file:///Applications/Brackets.app/Contents/dev/src/language/CodeInspection.js:185:34
    at Array.reduce (native)
    at getProvidersForPath (file:///Applications/Brackets.app/Contents/dev/src/language/CodeInspection.js:184:61)
    at run (file:///Applications/Brackets.app/Contents/dev/src/language/CodeInspection.js:380:42)
    at file:///Applications/Brackets.app/Contents/dev/src/language/CodeInspection.js:530:21
    at Object.trigger (file:///Applications/Brackets.app/Contents/dev/src/utils/EventDispatcher.js:233:40)
    at setActivePaneId (file:///Applications/Brackets.app/Contents/dev/src/view/MainViewManager.js:399:21)
    at _activeEditorChange (file:///Applications/Brackets.app/Contents/dev/src/view/MainViewManager.js:461:21)
    at Object.trigger (file:///Applications/Brackets.app/Contents/dev/src/utils/EventDispatcher.js:233:40)
    at _notifyActiveEditorChanged (file:///Applications/Brackets.app/Contents/dev/src/editor/EditorManager.js:165:17)
    at _handleCurrentFileChange (file:///Applications/Brackets.app/Contents/dev/src/editor/EditorManager.js:182:9)
    at Object.trigger (file:///Applications/Brackets.app/Contents/dev/src/utils/EventDispatcher.js:233:40)
    at setActivePaneId (file:///Applications/Brackets.app/Contents/dev/src/view/MainViewManager.js:399:21)
    at _activeEditorChange (file:///Applications/Brackets.app/Contents/dev/src/view/MainViewManager.js:461:21)
...

For some reason Brackets goes into an endless loop of setActivePaneId:s and which lead to _activeEditorChanges.  Quite possibly an splitViewSameDoc error.
/cc @swmitra

Haven't seen this one in a while


"component" plugin doesnt wait for queued promises on a context before creating instance of a view-model

When following config is provided to a Route class, ComponentViewModel instance is created before promises queued on Context are finished. Results in error in VM constructor if trying to access properties of the Context that would have been set by a callback from a promise.
component: {         viewModel: ComponentViewModel,         template: template     }

When you say queued, you mean passed to ctx.queue, right? If so, it does not wait for those. You will need to unqueue them if they are needed by the component, or use the init plugin.

Yes I've meant ctx.queue. Thank you, for such a detailed explanation and guidance!


Bug report: Can't get AND to work as expected

Describe the bug
I have a character, 'A' in this case, which I convert to binary, I send this via AND.
To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:
https://gchq.github.io/CyberChef/#recipe=To_Binary('None')AND({'option':'Binary','string':'00001111'})&input=QQ
Expected behaviour
I would expect the output to be "00000001".
Please let me know if I need to do something differently.

The output of ToBinary is actually a string so each 1 and 0 is a separate character. Your AND operation operates on each of those characters rather than the single A.
For what you need:
https://gchq.github.io/CyberChef/#recipe=AND(%7B'option':'Binary','string':'00001111'%7D)To_Binary('Space')&input=QQ


Support for private Git repositories

Today, the GitHub code constructs a repository URL from a base that's hard-coded. If a user could specify a full URL to a repository, it seems like it would be easy for StackEdit to support publishing to other Git repository hosts like Bitbucket or even a corporate instance of Stash.

Thanks for the alternatives.

Closing this as too old.


installation issue

Hello Andrea,
I am learning to use jetset by working with the user guide. Most of the commands work well without any problem including MCMC fitting. However, I got an error when trying to generate the external photon field energy density along the jet. The input was:
fig = plt.figure(figsize=(8,6))
ax=fig.subplots(1)
N=50
G=1
R_range=np.logspace(13,25,N)
y=np.zeros((8,N))
my_jet.set_verbosity(0)
my_jet.set_par('R_BLR_in',1E17)
my_jet.set_par('R_BLR_out',1.1E17)
for ID,R in enumerate(R_range):
my_jet.set_par('R_H',val=R)
my_jet.set_external_fields()
my_jet.energetic_report(verbose=False)
it threw the following error:
An exception has occurred, use %tb to see the full traceback.
SystemExit: JetkerneltException (line 111): the jetkernel failed
exception message: enegetic name thisown not understood
I also have a physics question: when computing EC with the BLR, does it take into account the Klein-Nishina effect? Also, is the absorption of gamma-rays due to pair production with the BLR photons taken into account for the EC calculation? I guessed it because Donnea03 paper deals mainly with the gamma-ray absorption. If so, could you please add a small example about how one can plot the BLR opacity for gamma-gamma absorption as a function of photon energy or distance along the jet.
Thanks.

Hi @andreatramacere,
When you have some time, please update the documentation for 1.2.0 so that a user can start playing with the latest updates, especially temporal evolution ;)

Hi @astro-fermi, I will do a zoom meeting to show all the new features, I will post a doodle on the FB page :)


graph/{multi,simple,testgraph}: add support for ID-specified node addition

I'm not sure about the placement of the NodeWithIDer interface. Given that we need to have it in testgraph, I'm thinking that maybe it should just go in graph.
Please take a look.
Updates #1582.
/cc @mattConn

Codecov Report

Merging #1584 (380f515) into master (14aa307) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1584      +/-   ##
==========================================
+ Coverage   72.67%   72.68%   +0.01%
==========================================
  Files         481      481
  Lines       57936    57968      +32
==========================================
+ Hits        42105    42136      +31
  Misses      13430    13430
- Partials     2401     2402       +1

Impacted Files
Coverage Δ

graph/multi/directed.go
92.30% <100.00%> (+0.24%)
:arrow_up:

graph/multi/undirected.go
91.30% <100.00%> (+0.25%)
:arrow_up:

graph/multi/weighted_directed.go
94.96% <100.00%> (+0.12%)
:arrow_up:

graph/multi/weighted_undirected.go
93.10% <100.00%> (+0.16%)
:arrow_up:

graph/simple/directed.go
90.36% <100.00%> (+0.48%)
:arrow_up:

graph/simple/undirected.go
88.09% <100.00%> (+0.59%)
:arrow_up:

graph/simple/weighted_directed.go
91.75% <100.00%> (+0.35%)
:arrow_up:

graph/simple/weighted_undirected.go
90.56% <100.00%> (+0.36%)
:arrow_up:

graph/flow/control_flow_lt.go
87.50% <0.00%> (-8.93%)
:arrow_down:

optimize/listsearch.go
72.22% <0.00%> (-1.86%)
:arrow_down:

... and 1 more

Continue to review full report at Codecov.

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

What do you think about placing interface in graph? As it is, it needs to be defined in at least one more place (the use package) since referring to testgraph feels very wrong.

What do you think about placing interface in graph? As it is, it needs to be defined in at least one more place (the use package) since referring to testgraph feels very wrong.

I'm fine with placing the interface in the graph package.

PTAL


Adding querying sys.tables as an alternative to OBJECTPROPERTY

The value of large_value_types_out_of_row table option cannot be queried using OBJECTPROPERTY.
Also found a space before a comma.

@SvenAelterman - thanks for the update.
#sign-off


layers: GH1244, Fix Compressed BufferImageCopy False Positive Validation Errors

CmdCopyBufferToImage and CmdCopyImageToBuffer were validating compressed image attributes against the valid usage conditions for uncompressed images. Added check for compressed images and skipped this validation, and added TODO for future compressed VU addition.  Fixes #1244.

Pushed to Master.


externally custom tagged enum

Hello!
I want to deserialize some bytes to enum. The first byte describe enum variant and other bytes contains a some structure. Is it possible generate this case by serde_derive and external tag feature?
For example:
enum Packet {
    #[serde(tag = 0xAABBCCDD as u32)]
    Requset(Request),
    #[serde(tag = 0xEEFFEEFF as u32)]
    Response(Response)
}

struct Request {....}
struct Response {....}

Hi @nnovikov, sorry that no one was able to provide help here. If this is still an issue, you could try taking this question to any of the resources shown in https://github.com/serde-rs/serde#getting-help.


Update WritingTests.md

Another change, same day! :)
found another little hiccup earlier, and I mentioned it in the PR
in the response promise:
fetchTodosSuccess(json.body)

should be
fetchTodosSuccess(json)

based on the setup, it might be more appropriate to change the whole line from:
.then(json => dispatch(fetchTodosSuccess(json.body)))

to
.then(body => dispatch(fetchTodosSuccess(body)))

Thanks!


Errors in test generation when there is variable hiding in src code

Description
When we generate tests for a class with a field that hides field from superclass, incorrect tests are generated.
To Reproduce
Launch the plugin on class C in the following example:
class A {
    public int f;
    void setF(int val) { this.f = val; }
    int getF() { return this.f; }
}

class B extends A {
    public int f;
}

public class C {
    boolean foo(B b) {
        return b.getF() == b.f + 1;
    }
    boolean bar(B b) {     // replace body with return b.getF() == b.f and test generation will work ok
        if (b.getF() == b.f)
            return true;
        else
            return false;
    }
}

Expected behavior
Correct tests with complete coverage are generated.
Actual behavior
For function bar plugin generates incorrect test testBar_BGetFEqualsBF (assertEquals in this test fails when launching).
For function foo there is no testcase in which return value would be true.
Both problems disappear if we rename field in class A to any other name.
Visual proofs (screenshots, logs, images)
Incorrect test generated:
    @Test
    @DisplayName("bar: BGetF -> return true")
    public void testBar_BGetFEqualsBF() {
        C c = new C();
        B b = new B();
        b.f = 1;

        boolean actual = c.bar(b);

        assertFalse(actual);

        int finalBF = b.f;

        assertEquals(0, finalBF);
    }

Environment
plugin, Java11
Additional context
The problem also happens if we mark the field in class B as private: in some of the generated tests there will be accesses to this private member, so generated tests are not even compilable. Try launching test generation on C.baz() in this example:
package inheritanceIssues;

class A {
    public int f;
    void setF(int val) { this.f = val; }
    int getF() { return this.f; }
}

class B extends A {
    private int f;
}

public class C {
    boolean baz(B b) {
        return b.getF() == 1;
    }
}

The issue is related to engine and codegen. Engine part of the issue should be resolved in #627. Codegen part is WIP, see comment for more details.

The issue is now split to engine part (#647) and codegen part (#646). It will be closed after solving both.

Fixed by #627 and #763


[wdr] New extractor "wdr:elefant" for videos of "Sendung mit dem Elefanten"

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[x] New extractor
[ ] New feature

Description of your pull request and other information
New extractor "wdr:elefant" (sub-extractor of "wdr") to support videos of the "Sendung mit dem Elefanten" (a children's show) at http://www.wdrmaus.de/elefantenseite/ . See commit message for technical details.

Hi, is there any way I can help to get this merged? Or will it just take some time for someone to review?

Note: This PR solves issue #5731.

@dstftw : Would you consider reviewing this PR? I'd love for this to get merged - it's for a very popular children's TV show page.


Binary files

files.sync, files.put and possibly files.template can't handle binary data.

@uggedal This should now be supported for files.sync and files.put as of https://github.com/Fizzadar/pyinfra/commit/1b1e5afb163de9b07992dff21dc9a2ddb0053216.


Poor Sampling Behaviour?

I am probably doing something wrong but I tried this
myStdNormal :: RealFloat a => [a] -> a
myStdNormal [x] = recip (sqrt (2 * pi)) * exp (-(x * x) / 2)
myStdNormal _   = error "myStdNormal"

gStd :: [Double] -> [Double]
gStd = grad myStdNormal

bStd :: Target [Double]
bStd = Target myStdNormal (Just gStd)

results <- withSystemRandom . asGenIO $ chain 10000 0.05 8 [0.0] bStd

But I get
sum $ concatMap chainPosition results

-88654.39040183097

I just tried the Rosenbrock example in the repo and AFAICT it gets nowhere near the minimum (1,1) - see https://en.wikipedia.org/wiki/Rosenbrock_function
main :: IO ()
main = do
  xs <- withSystemRandom . asGenIO $ chain 10000 0.05 20 [0, 0] rosenbrock
  putStrLn $ show $ sum $ map (!!0) $ drop 5000 $ map chainPosition xs
  putStrLn $ show $ sum $ map (!!1) $ drop 5000 $ map chainPosition xs

3307.1528055591994
3405.753360195919

There are a few issues or potential issues here:

You should be averaging -- not summing -- the chain positions, in order to get a Monte Carlo estimate of the expectation.  At present you're adding together a bunch of positions, which does not produce a particularly meaningful statistic.

MCMC is useful for estimating expectations, not optima.  The chain itself should spend time in a given region of parameter space in proportion to its density -- if I run the Rosenbrock example and plot the chain positions, I see that the chain indeed spends plenty of time wandering around near the maximum (note maximum: this is not the Rosenbrock function, but the Rosenbrock density).

Hamiltonian Monte Carlo is annoying and hard to use.  Setting the step size and number of leapfrog iteration parameters correctly is difficult, and "bad" values will lead to bad samples.

(There could also certainly be a bug in my implementation, but I am fairly confident that I at least had it right at some point, so I'd need more evidence that something is awry before I delve into it too deeply.)

Oh so I should have done this?
myStdNormal :: RealFloat a => [a] -> a
myStdNormal [x] = recip (sqrt (2 * pi)) * exp (-((x - 0.1) * (x - 0.1)) / 2)
myStdNormal _   = error "myStdNormal"

gStd :: [Double] -> [Double]
gStd = grad myStdNormal

bStd :: Target [Double]
bStd = Target myStdNormal (Just gStd)

main :: IO ()
main = do
  let l = 10000
  results <- withSystemRandom . asGenIO $ chain l 0.005 8 [0.1] bStd
  let ps :: [[Double]]
      ps = map chainPosition results
      vs :: [Double]
      vs = map chainScore results
      es = zipWith (*) (concat ps) vs
  putStrLn $ show $ (*(recip (fromIntegral l))) $ sum es

That doesn't seem to give quite the right answers though. Running main a few times gives
-7.12510699922022e-2
5.56138665233156e-2
4.826710569086873e-2
-5.573019117343454e-3

I would have hoped it would be nearer to 0.1.
As you say HMC is hard to tune hence NUTS.
Actually all I want is to be able to sample a distribution and I happen to have the gradient. Any suggestions would be warmly received.

Right, I took a look at your example:

Your target needs to be a log-density.  Instead of
recip (sqrt (2 * pi)) * exp (-((x - 0.1) * (x - 0.1)) / 2)

Use:
-((x - 0.1) * (x - 0.1)) / 2

(you can ditch the multiplicative constant term here)

You don't want to weight each term by the score (which is not a probability, but the logarithm of something proportional to a probability).  Instead just use the empirical measure, i.e. a direct average of the points you've observed:
ps = map chainPosition results
ex = sum ps / fromIntegral (length ps)

Your step size might be too small, and your number of leapfrog iterations too low.  Again, as you point out, this is just a matter of HMC tuning annoyance.  But using 0.05 and 20, I got the following on a few runs:

*Main> foo
0.10512744981232493
*Main> foo
0.10637706671733922
*Main> foo
7.84747400680845e-2
*Main> foo
0.11026280202297518

Actually all I want is to be able to sample a distribution and I happen to have the gradient.

HMC will certainly do this for you, if you can get the tuning parameters right.  I do actually have an old (and very carefully-implemented) NUTS implementation coded up, but it is possibly in need of some TLC.  You can give it a shot, though.  Some examples are here.
Alternatively you can try the affine-invariant ensemble sampler, which is pretty reliable and very easy to use, or the eminently-reliable slice sampler.  Neither requires a gradient, but are very handy.


Automatic Type Acquisition re-write and now available as a separate package

ATA works, but there's an awful lot of edge cases. This comes from my original foundations being shaky, but usable. I replicated a bunch of work which TypeScript does to emulate TypeScript running locally, but that's the wrong angle to look at the problem.
This changes ATA to use different conceptual primitives, what ATA used to do was:

Did our regexes for import/require/etc catch a module? if so continue
Are they absolute? If so, query algolia search API
Check Algolia search results for whether types are included or on DT
Resolve the 'main' DT import, look inside it for relatives/absolute imports, keep track of the current file for doing relative imports
Recurse all of the above

This was made possible because we added enough info to the algolia npm search API so that ATA isn't making a lot of potentially failing requests to figure out what/if the main .d.ts exists. Then we can use unpkg to download each file.
What ATA does now:

Use the TypeScript API to get all file references in source code
Use the jsdelivr API to get the full file list of the npm module contents for any absolute modules

Are there any .d.ts files? If so download them all
If there are no .d.ts files? Try download them from  @types/[modulename]

Recurse

This means the worst case (a module with no types) makes 2 API calls to jsdelivr, any DT request only makes 1 un-useful API call and any lib shipping DT types makes no redundant calls.
The user then puts the files in the right places of their vfs, and the in-memory copy of TypeScript will treat the files no different from on the local FS and that should cover all of the weird edge cases - if it works in your editor, it should work on the playground.

I also added a way to declare a specific npm tag /cc @yyx990803 - right now that is via:
import {xy} from "xyz" // version: beta

but I think I'll probably change the syntax to:
import {xy} from "xyz" // types: beta

so that people don't think ATA is bundling the JS.

I wanted to do this to write more tests for this, but instead I ended up watching Downton Abbey oops. There's still time.

Just got to figure out why the sandbox isn't building and this is shippable

@orta I'm working on migrating a project to this new approach. Something I noticed; for the code import { VegaLite } from "react-vega";, the v2 does 719 requests (to jsdelivr) vs 212 previously (to unpkg).
I suppose this has to do with the fact that now, all .d.ts files are downloaded, instead of recursively resolving local references from the main .d.ts file, correct?
Are we sure this is the right approach? a 3x increase in requests seems quite a heavy cost


Add push-manifest into all target in the image-user Makefile

Fixes #310
Signed-off-by: Nitesh Konkar<EMAIL_ADDRESS>

/lgtm


What dose "system_time" in rosbag file save by realsense Viewer stands for ?

I open the metadata in rosbag file in matlab, and find the variable "system_time".
Is it the exact time when this frame was recorded in computer OS?
If it is computer time of this frame, it marks the arrival of this frame or time of accomplishing saving it?

I also plotted the system_time, which is not a straight line, maybe bacause OS delay.

So looking forward to having this confusion solved!!

I check the real time metadata and found that "system_time" is equal to "time of arrival" and backend timestamp. But<PHONE_NUMBER>.255 seconds is 50 years. What's going on here ?

@FancyBrush , the system time is host-generated timestamp of frame when it was captured by the SDK and measured in Unix's EPOCH that actually applies to MS as well.
Documentation link - https://intelrealsense.github.io/librealsense/doxygen/classrs2_1_1frame.html#a25f71d45193f2f4d77960320276b83f1.
Also see #2188

Hi @FancyBrush,
Do you need any further clarifications regarding this topic?
Thank you!

@RealSenseCustomerSupport
Problem solved, you may close this issue.


Feature request: protect member access of optional fields

It would be amazingly helpful if there was a rule that could detect situations like this:
interface Person {
  address?: {
    line1: string
  }
}

let person = getPerson();
console.log(person.address.line1); // `person.address` might be null or undefined here

but would allow:
if (person.address) {
  console.log(person.address.line1);
}
// or
console.log(person.address && person.address.line1);

and, of course, would allow the access of members of required fieds, no questions asked.

related to, if not the same as, #326

Ah, I didn't see that one, it is very similar - although that rule seems to be focused on preventing an implicit cast of optional to required values; my suggestion focuses on preventing inline TypeErrors in chained access. They could very well be the same rule, though; they have the exact same mechanism of detecting unprotected use of an optional value. Should I move this suggestion to a comment on #326?

Feel free to comment in the other thread, I think both these cases should be encompassed into one rule, perhaps something like safe-nullable-access or safe-optional-access. Probably best to keep it all in one issue.
As a side note, TypeScript has a proposal for an operator to accomplish this!


After 5 calcs, remove old frames

Since damage calcs currently seem to pile up and this impacts the performance on web browsers, stick to a fixed number of damage calcs and remove the other frames.

Closed since calc api is deprecated


Running wm.py on macOS

I am trying to run wm.py on macOS. I ran pip3 install pygame but I still receive the error "ImportError: No module named pygame"
Is there anything else I need to do to get this running?

Pygame and pygame GUI are 2 packages required to run the window manager.
I've sent a pull request that adds this explanation to a readme in snakewm, along with the other pip packages you need.
Run:
python3 -m pip install pygame
And
python3 -m pip install pygame-gui

I just realised I misread the part where you installed the packages. Sorry if my reply seemed condescending.

Not at all! I have pygame and pygame-gui installed, but wm.py still returns
Traceback (most recent call last):
  File "wm.py", line 11, in <module>
    import pygame, pygame_gui
ImportError: No module named pygame

@sdubois  as you write that you are using MacOS:
can it be that you have pygame installed for python2, but not for python3 ?
As far as i understand each MacOS has an python2 on board.
You can check by typing in a terminal:
python
(make sure it says python version 3 something) and then
import pygame
If you still get an error than pygame was installed for python2.

 I was able to get it working by using the python3 command.

Slightly related: I see the instructions say use the left winkey to open the app menu. Is there a way to do that on mac OS?


Revamp active_stations and detector_status models once VDS metadata lands

The int_clearinghouse__active_stations and int_diagnostics__detector_status models are key models for determining which stations are deployed and considered reliable on any given day. Unfortunately, we have a few concerns about the data quality around for detectors (cf. some discussion in #217 ).
Once we have the VDS metadata from #115, we should revamp those models with the following constraints:

No gaps in dates, no null values
No gaps in stations, no null values
No gaps in detectors/lanes, no null values
No rows detectors/lanes that don't exist (i.e., the eighth lane in a highway that only has two lanes)

Once this is done, the int_clearinghouse__real_detectors model in #209 can be removed.

Starting with int_diagnostics__detector_status

Finished reviewing issue and relevant datasets.
Next Steps
Use Date_spine  (DBT UTIL)  to create sample date column with all dates
Use int_vds__detector_config to generate Station_id/Detector_ID/District/Lane data
Combine with INT_DIAGNOSTICS__SAMPLES_PER_DETECTOR to restore missing records

Used date_spine to to create date column
Added detector metadara from int_vds__detector_config  to int_diagnostics__detector_status
Next Steps
Resolve duplicate records showing in output

I noticed there are many instance of TRANSFORM_PRD.VDS.INT_VDS__DETECTOR_CONFIG with a lane value of null. I was wondering if that is expected output? or if it something that is supposed to be resolved as part of this issue?

Interesting. What do those rows have for the status column? Could this be related to #273 ?

The status for the all of the lanes with value null is '0'. I'll review 273 and see if I can find out more. Thanks Ian!

It may be as simple as filtering out those detectors in the intermediate model. If so, we could fix #273 at the same time as this.

I reviewed TRANSFORM_PRD.VDS.INT_VDS__DETECTOR_CONFIG and discovered every single instance of status = 0  has a null lane value.  Based on that I have filtered out status =0 when adding metadata from TRANSFORM_PRD.VDS.INT_VDS__DETECTOR_CONFIG to int_diagnostics__detector_status which resolved the issue I had will null lane values.

Discovered that int_diagnostics__det_diag_set_assignment has  stations that are not present in INT_VDS__DETECTOR_CONFIG.  When we looked yesterday there was about 300 missing stations. When I checked today there are 6.2K missing stations. Any idea what could have caused that change?
Query used
select distinct station_id from TRANSFORM_PRD.diagnostics.int_diagnostics__det_diag_set_assignment
minus
select distinct station_id from TRANSFORM_PRD.VDS.INT_VDS__DETECTOR_CONFIG;
Result set is attached.
missing_stations.csv

Per @ian-r-rose the additional missing stations are likely due to ongoing issues with the metadata being brought over from the data relay server.

Reopening this issue as some additional follow-on work is needed.

Updates:
updated detector_status to add missing sample data and remove nulls using pull request #318. Currently resolving CI errors prior to review and merging.


use code frames for errors for babel plugin

What changed / motivation ?
Using code frame errors will show the dev generally where the problem is:
Additional Context

I'm not familiar with the repo. Wouldn't be offended if you close the PR and replicate with preferred style.

Screenshots, Tests, Anything Else

Pre-flight checklist

[x] I have read the contributing guidelines
Contribution Guidelines
[x] Performed a self-review of my code

Thank you so much @EvanBacon
I was about to start working on this task myself, and your solution is honestly better than what I had in mind.
There is probably further improvements that can be made further down the line, but this should already be a huge improvement in the meantime.

@nmn I think you should drive this. I just took a guess at where the errors are but I'm still getting used to stylex so I'm not sure what the DX should feel like. Specifically we point to the general path object when things go wrong, which is already an improvement, but it's possible that we could assert on the precise dynamic variables that are triggering the errors.
Will continue to brush up on stylex and the repo though so I can be more helpful in the future.

@EvanBacon Thank you for putting this up and getting it so far! I'll drive it from here.


[Feature Request] Progress indeterminate

I think it would look cool for the progress have an indeterminate CSS animation, kind of like this.
Not sure if you like this kind of feature in your CSS framework, so if you don't that's fine :)

Wow, very cool! Thank you @guastallaigor, that's an awesome addition :)


[bug] IPC doesn't work in ^2.0.0-alpha.11

Describe the bug
Per Discord chat...
After upgrading from next to ^2.0.0-alpha.11, all IPC calls starting responding to client as 400 on macOS and Android:

This is also happening on dev branch. I referenced a local copy of tauri, and did a git bisect, and it looks like this is first commit where this error occurs:
https://github.com/tauri-apps/tauri/commit/fbeb5b9185baeda19e865228179e3e44c165f1d9
Reproduction
made a branch here:
https://github.com/bpevs/tauri_deno_mobile_sample/tree/ipc-error-repro
You can ignore references to Deno in this branch; I committed the built files and modified the references, so it should work as a vanilla js project without a build step.
More detailed readme in that file explains repro steps, but basically, adding any invoke/ipc call or the like should throw the pictured error.  For example:
import { arch } from '@tauri-apps/api/os';
(function() {
  const archName = await arch(); // expect 400
})()

Expected behavior
For the example repo, I expect the invoke to run, and replace the shown text with a greeting.  It does not show a greeting when running tauri off of the dev branch, because the invoke fails and responds with the pictured 400 error.
The linked repo DOES work correctly when running off the next branch, or when locally referencing the last good commit: 85efd0ae436e0a2556f20c53a7a0a49ef7a1d31b
Platform and versions
[✔] Environment
    - OS: Mac OS 13.4.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.70.0 (90c541806 2023-05-31)
    ✔ Cargo: 1.70.0 (ec8a8a0ca 2023-04-25)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.11
    - tauri-build [RUST]: 2.0.0-alpha.8
    - wry [RUST]: 0.31.1
    - tao [RUST]: 0.22.2
    - @tauri-apps/api [NPM]: not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.11

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../src-www
    - devPath: ../src-www

Stack trace
No response
Additional context
No response

From my experience, this happens when you are still using the older version of the JS packages.
Can you check that your frontend uses
"@tauri-apps/api": "2.0.0-alpha.6"
and that any plugin you use is also to their latest published version?

yuuuuuuup that's what it was 🫣
I didn't specify version (intending to be "latest"), but forgot that would be latest stable, not latest alpha.
Thanks for the tip!


Queues are not passed via command line

This fixes #180 on Django 1.10

can this be merged into base branch?

Thanks!

Can a new release be created for this change? Or is there a different way of specifying queues for the rqworker command? I upgraded to Django 1.10, but can't start the worker for specific queues now.

you can specify the git repo in the requirements.txt and run pip install -r requirements.txt --upgrade until a release exists.
[Wilson Wingston Sharon]
On Wed, Aug 24, 2016 at 11:39 AM, Helmut<EMAIL_ADDRESS>wrote:

Can a new release be created for this change? Or is there a different way
of specifying queues for the rqworker command? I upgraded to Django 1.10,
but can't start the worker for specific queues now.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ui/django-rq/pull/181#issuecomment-241982260, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIj5PN45y4nnvm5n1iSWMqTDphSl_TNks5qi_UhgaJpZM4JhiTg
.

Ok, just wanted to check if there's another way, since I'd prefer not to do it that way on a production server. Thanks!

Thanks for fixing it!

It does not work in Django==1.9

Indeed it does not work on Django 1.9

@eriktelepovsky mind opening a PR to fix this on Django 1.9? The easiest way would be to check the Django version and falls back to the old mechanism for Django < 1.10

@selwin I am not familiar with the old mechanism or the difference between Django 1.9 and 1.10 command management. Maybe @hendi will know better.

I'll have a look!

@starenka Fixed in #199


custom redirect_uri

I want to use a custom redirect uri:
redirect_uri: location.origin + location.path + "#gitalk-container"

So that page is still at gitalk component after redirected from github.
Is it possible?

It can be done. See here.

I'm sorry to say that I cannot understand it.
I just saw this line, so I want to modify it to:
      // Set the hash property
      location.hash = "gitalk-container";
      var query = {
        client_id: clientID,
        redirect_uri: location.href,
        scope: 'public_repo'
      };

Am I making the correct change?

Try it.

‘’‘’


Abstract .card from post author section

There is a css pattern we could reuse, but right now it only appears on the author section within posts.

Just the outer wrapper will do (border, margin, padding, shadow). Not the media object.

This could be used later for asides/sidebars within posts.

Maybe we could incorporate some floating behavior to asides/sidebars within posts?
Like this:
http://codepen.io/nickisnoble/pen/c9ae9bb4602eb74528ffe37905889b21


[FEATURE REQUEST] Add support for other package managers like Homebrew, Snap or Flatpak

Please confirm these before moving forward

[X] I have searched for my feature proposal and not found a work-in-progress/duplicate/resolved/discarded issue.
[X] This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template

Describe the new feature
Hi, I'm a WingetUI user and I'd like to suggest a new enhancement that I think could extend the scope and usefulness of the app. It is about adding support for other package managers that are popular on other platforms or operating systems, such as Homebrew, Snap or Flatpak.
The idea is that the application can detect and integrate the packages available in these managers, as well as install, update and uninstall them from the WingetUI interface. In this way, the user could access a greater variety and quantity of software, without having to change the application or console.
The improvement could be implemented by adding an option in the configuration to enable or disable support for these managers, as well as a tab or a filter in the interface to show the packages corresponding to each one. The user could see the basic information about each package, such as the name, version, description, etc. And of course, you could install, update or uninstall the packages from the same interface.
Describe how this new feature could help users.
I think this enhancement could help users in several ways:
It would allow them to access software that is not available in current drivers, such as Linux or Mac-only applications, or applications that have security, performance, or portability benefits.
It would make it easier for them to have compatibility and interoperability between different platforms and operating systems, as they could use the same software on different devices or environments.
It would offer them more options and alternatives when it comes to choosing the software that best suits their needs and preferences, since they could compare and try different versions or formats of them.
It would make them feel more free and flexible with the application, since they could customize and configure the support for the managers that interest or suit them the most.
I hope you take this proposal into account and give me your opinion on it. Thank you for your attention and for your excellent work with WingetUI. 😊

This is the same proposal as #1241, right?

This is the same proposal as #1241, right?

possibly, but here he mentions snap and flatpak.
Maybe an integration with WSL would be nice as well

Please open a new feature request for WSL implementation

Hello,
I am afraid WingetUI will not be compatible with other platform support in the near future

Marticliment, thank you for your responses. I'm pleased that many of my suggestions for wingetui have been considered, or now unigetui. How can we ensure that this proposal is carried out in the future and not forgotten? @marticliment

If they are here, they have not been forgotten


pointerEvents="none" doesn't work for all SVG elements, weird behaviour for the SVG elements touch accessibility

Bug
Scenario 1:
pointerEvents="none" doesn't work with react-native-svg SVG elements.
For example, when we have rectangle on top of all elements and want to disable touchable behaviour for it to get an access to inner SVG elements we can't click on any SVG element, because Rectangle still blocks clicks.
Scenario 2:
For example, we are trying to find a workaround for Scenario 1 to run touch events on elements under the top SVG Rectangle, and we just drow 4 Lines to emulate Rectangle.
Lines should not block click events, as it is not a complete shape. But 4 Lines still block clicks.
Even if we draw 2 Lines (top and right side) we can't click on SVG element on the top-right area on this SVG element. Looks like 2 Lines block click events on top-right triangle area.
I'm using PanResponder, not just simple onPress events.
Both issues are available on iOS/Android.
pointerEvents="box-none" doesn't work toо and even throws an exception.
Unexpected behavior
react-native init CleanProject
cd CleanProject/
yarn add react-native-svg
cd ios && pod install && cd ..
modify App.js -> run the app

Use this code in App.js:
Scenario 1 with simple onPress callbacks:
    <G>
      <G>
        <Image
          onPress={() => { alert('<Image> onPress'); }}
          x={50}
          y={50}
          width={400}
          height={400}
          href={{ uri: 'https://interactive-examples.mdn.mozilla.net/media/examples/grapefruit-slice-332-332.jpg' }}/>
      </G>
      <G pointerEvents="none">
        <Rect
          pointerEvents="none"
          onPress={() => { alert('<Rect> onPress'); }}
          x={0}
          y={0}
          width={500}
          height={500}
          strokeWidth={10}
          stroke="#ccc"
          fill="transparent"/>
      </G>
    </G>

Scenario 1 with PanResponser callbacks:
  <G>
      <G>
        <Image
          onStartShouldSetResponder={() => true}
          onMoveShouldSetResponder={() => true}
          onMoveShouldSetPanResponderCapture={() => true}
          onStartShouldSetPanResponderCapture={() => true}
          onResponderGrant={() => alert('<Image> Grant')}
          onResponderMove={() => alert('<Image> Move')}
          x={50}
          y={50}
          width={400}
          height={400}
          href={{ uri: 'https://interactive-examples.mdn.mozilla.net/media/examples/grapefruit-slice-332-332.jpg' }}/>
      </G>
      <G pointerEvents="none">
        <Rect
          pointerEvents="none"
          onStartShouldSetResponder={() => false}
          onMoveShouldSetResponder={() => false}
          onResponderGrant={() => alert('<Rect> Grant')}
          onResponderMove={() => alert('<Rect> Move')}
          x={0}
          y={0}
          width={500}
          height={500}
          strokeWidth={10}
          stroke="#ccc"
          fill="transparent"/>
      </G>
    </G>

Scenario 2: (Only bottom-left triangle area on Image is clickable)
   <G>
      <G>
        <Image
          onStartShouldSetResponder={() => true}
          onMoveShouldSetResponder={() => true}
          onMoveShouldSetPanResponderCapture={() => true}
          onStartShouldSetPanResponderCapture={() => true}
          onResponderGrant={() => alert('<Image> Grant')}
          onResponderMove={() => alert('<Image> Move')}
          x={50}
          y={50}
          width={400}
          height={400}
          href={{ uri: 'https://interactive-examples.mdn.mozilla.net/media/examples/grapefruit-slice-332-332.jpg' }}/>
      </G>
      <G pointerEvents="none">
        <Line
          pointerEvents="none"
          x1={0}
          y1={0}
          x2={500}
          y2={0}
          strokeWidth={10}
          stroke="#ccc"/>
        <Line
          pointerEvents="none"
          x1={500}
          y1={0}
          x2={500}
          y2={500}
          strokeWidth={10}
          stroke="#ccc"/>
      </G>
    </G>

Environment info
React native info output:
System:
    OS: macOS 10.15.3
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 1.57 GB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.14.1 - /usr/local/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.13.4 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 25, 26, 27, 28
      Build Tools: 27.0.3, 28.0.3
      System Images: android-24 | Google Play Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8<IP_ADDRESS>10548
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  npmPackages:
    @react-native-community/cli: 3.0.4 => 3.0.4
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5
  npmGlobalPackages:
    react-native-cli: 2.0.1

Library version: 11.0.1
Steps To Reproduce

Click on image on all scenarios.

Describe what you expected to happen:

Image should be clickable in all scenarios with simple onPress or PanResponder callbacks.

@msand Could you please check this issue?
I know that pointerEvents issues were added and closed many times, but this is the very important feature on complex SVG panes with dynamic touch interactions with PanResponder mechanism.
We have 6 places in our project with workarounds for broken pointerEvents, but now for current case we can't do anything else. Thanks a lot.

Is this library still maintained? Looks like no...

I'm too busy at work at the moment. Feel free to step in and make a pr with a fix. This library is certainly in need of more maintainers.

Hello @msand, it's OK, just it was interesting for me is it still maintained.
Ok, no problems :)
I really want to help with this library, but I'm only know the JS and other Front-End frameworks...
Java and Swift are not covered yet..

Hmm yeah, we use pointerEvents="box-none" quite a bit in our SVG code, works fine on Android but on iOS it's giving this error:

UIView base class does not support pointerEvent value: box-none

Seems to be from here: https://github.com/facebook/react-native/blob/master/React/Views/RCTViewManager.m#L248
So I guess we need to implement setPointerEvents on iOS 🤔I've been using Objective C for about 5 minutes though so I can't promise anything PR-wise.

Hi @mjmasn Thanks for your response, yes, maybe Mr @msand could check this issues when he will not be too busy 👍

@oleksandr-dziuban I realised for our use case it was enough to do e.g.
const pointerEvents = Platform.OS === 'android' ? {pointerEvents: 'box-none'} : null;

return <G {...pointerEvents}> ... </G>

Your use case seems different though.
There is also another bug preventing onPress from working on iOS which is to do with scale transforms :thinking: Will create a reproduction / submit a new bug report later today or tomorrow.

@mjmasn Hi, for me event the Android doesn't work

Hi @msand , I see some activity in this repo, maybe you have 30 mins to check this issue, could you please check, because out project is blocked because of this issues on 4 places... Thank you

@oleksandr-dziuban Can you try the latest commit from the develop branch? I'm not sure what else will break because of this change. Especially with regards to gesture responders.

Ok, will do in a hour, thanks a lot, and sorry for interruption

@msand I have checked latest develop code. I'm using PanResponder events system and there is no changes when I apply pointerEvents="none" or "box-none" on iOS or Android. Just we don't have error now that "box-none" value us not supported.
But , ,  elements still clickable and blocks click SVG elements on lower layer

Hmm, strange, for me all three of your examples work. Did you rebuild the native code?

Looks like a few guys have same issues

import * as React from 'react';
import Svg, {Rect, Image, G} from 'react-native-svg';
export default class App extends React.Component {
  render() {
    return (
      <Svg viewBox="0 0 500 500">
        <G>
          <G>
            <Image
              onPress={() => {
                alert('<Image> onPress');
              }}
              x={50}
              y={50}
              width={400}
              height={400}
              href={{
                uri:
                  'https://interactive-examples.mdn.mozilla.net/media/examples/grapefruit-slice-332-332.jpg',
              }}
            />
          </G>
          <G pointerEvents="none">
            <Rect
              pointerEvents="none"
              x={0}
              y={0}
              width={500}
              height={500}
              strokeWidth={10}
              stroke="#ccc"
              fill="transparent"
            />
          </G>
        </G>
      </Svg>
    );
  }
}

import * as React from 'react';
import Svg, {Rect, Image, G} from 'react-native-svg';
export default class App extends React.Component {
  render() {
    return (
      <Svg viewBox="0 0 500 500">
        <G>
          <G>
            <Image
              onStartShouldSetResponder={() => true}
              onMoveShouldSetResponder={() => true}
              onMoveShouldSetPanResponderCapture={() => true}
              onStartShouldSetPanResponderCapture={() => true}
              onResponderGrant={() => alert('<Image> Grant')}
              onResponderMove={() => alert('<Image> Move')}
              x={50}
              y={50}
              width={400}
              height={400}
              href={{
                uri:
                  'https://interactive-examples.mdn.mozilla.net/media/examples/grapefruit-slice-332-332.jpg',
              }}
            />
          </G>
          <G pointerEvents="none">
            <Rect
              pointerEvents="none"
              onStartShouldSetResponder={() => false}
              onMoveShouldSetResponder={() => false}
              onResponderGrant={() => alert('<Rect> Grant')}
              onResponderMove={() => alert('<Rect> Move')}
              x={0}
              y={0}
              width={500}
              height={500}
              strokeWidth={10}
              stroke="#ccc"
              fill="transparent"
            />
          </G>
        </G>
      </Svg>
    );
  }
}

import * as React from 'react';
import Svg, {Line, Image, G} from 'react-native-svg';
export default class App extends React.Component {
  render() {
    return (
      <Svg viewBox="0 0 500 500">
        <G>
          <G>
            <Image
              onStartShouldSetResponder={() => true}
              onMoveShouldSetResponder={() => true}
              onMoveShouldSetPanResponderCapture={() => true}
              onStartShouldSetPanResponderCapture={() => true}
              onResponderGrant={() => alert('<Image> Grant')}
              onResponderMove={() => alert('<Image> Move')}
              x={50}
              y={50}
              width={400}
              height={400}
              href={{
                uri:
                  'https://interactive-examples.mdn.mozilla.net/media/examples/grapefruit-slice-332-332.jpg',
              }}
            />
          </G>
          <G pointerEvents="none">
            <Line
              pointerEvents="none"
              x1={0}
              y1={0}
              x2={500}
              y2={0}
              strokeWidth={10}
              stroke="#ccc"
            />
            <Line
              pointerEvents="none"
              x1={500}
              y1={0}
              x2={500}
              y2={500}
              strokeWidth={10}
              stroke="#ccc"
            />
          </G>
        </G>
      </Svg>
    );
  }
}

All three of those give me alerts with Image like this:

@msand Could you please deploy npm version then, and I will try to retest all cases. Thank you for you quick response!

:tada: This issue has been resolved in version 12.0.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

@msand Hello, I have tested latest deployed v12.0.3, it is working perfectly on iOS and Android! Thanks lot, I'll close this issue 👍 🥇

Path and G still ignore pointerEvents prop.


mac os 10.13.3, exec ./eosio_build.sh failed

I just exec:
git clone https://github.com/eosio/eos --recursive
and exec:
cd eos
./eosio_build.sh
then, error occured, what should I do next?

Can you run the following commands and paste the result here?
find /usr -name libintl* -print 2>/dev/null
brew list --versions gettext
brew list
Thank you.

I get the same error

@pacificcode

Here is the result，what should I do to figure out the problem??

It looks like home-brew did not symlink get text properly. run the following commands.
brew unlink gettext && brew link --force gettext
find /usr -name libintl* -print 2>/dev/null
The output should now show:
/usr/local/include/libintl.h
/usr/local/lib/libintl.dylib
/usr/local/lib/libintl.8.dylib
/usr/local/lib/libintl.a
/usr/local/Cellar/gettext/<IP_ADDRESS>/include/libintl.h
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.dylib
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.8.dylib
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.a
/usr/local/Cellar/gettext/<IP_ADDRESS>/share/gettext/intl/libintl.rc

@pacificcode I encountered the same issue here, tried the solution above, but with no luck, are there any other possible reasons mac build will fail? thanks!
1. build script log
❯ ./eosio_build.sh

	Beginning build version: 1.2
	Wed  2 May 2018 09:09:58 UTC
	git head id: 0a04ff86a6b8ab97a76dce4c9846a9f5c7b0b274
	Current branch: * dawn-v3.0.0

	ARCHITECTURE: Darwin

	OS name: Darwin
	OS Version: 10.13.4
	CPU speed: 220.00Ghz
	CPU cores: 4
	Physical Memory: 16 Gbytes
	Disk space total: 233G
	Disk space available: 37G

	Checking XCode installation
	XCode installation found.

	Checking Ruby installation
	Ruby installation found.

	Checking Home Brew installation
	Home Brew installation found.

	Checking dependencies.
	Checking automake ... 		 automake found
	Checking Libtool ... 		 Libtool found
	Checking OpenSSL ... 		 OpenSSL found
	Checking llvm ... 		 llvm found
	Checking wget ... 		 wget found
	Checking CMake ... 		 CMake found
	Checking Boost ... 		 Boost found
	Checking GMP ... 		 GMP found
	Checking gettext ... 		 gettext found
	Checking MongoDB ... 		 MongoDB found
	Checking Doxygen ... 		 Doxygen found
	Checking Graphviz ... 		 Graphviz found
	Checking Python3 ... 		 Python3 found

	No required Home Brew dependencies to install.

	Checking MongoDB C++ driver installation.
	Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.

	Checking secp256k1-zkp installation.
	secp256k1 found at /usr/local/lib/

	Checking LLVM with WASM support.
	WASM found at /usr/local/wasm/bin/

>>>>>>>> ALL dependencies sucessfully found or installed . Installing EOS.IO

-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   filesystem
--   system
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
--   iostreams
-- Configuring Eos on OS X
CMake Error at /usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindThreads.cmake:223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  externals/binaryen/CMakeLists.txt:96 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/Users/wangshijun/Develop/blockchain/eos/build/CMakeFiles/CMakeOutput.log".
See also "/Users/wangshijun/Develop/blockchain/eos/build/CMakeFiles/CMakeError.log".

	>>>>>>>>>>>>>>>>>>>> CMAKE building EOSIO has exited with the above error.

2. CMakeError.log
Determining if the include file pthread.h exists failed with the following output:
Change Dir: /Users/wangshijun/Develop/blockchain/eos/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_32239/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_32239.dir/build.make CMakeFiles/cmTC_32239.dir/build
Building C object CMakeFiles/cmTC_32239.dir/CheckIncludeFile.c.o
/usr/local/bin/clang     -o CMakeFiles/cmTC_32239.dir/CheckIncludeFile.c.o   -c /Users/wangshijun/Develop/blockchain/eos/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/wangshijun/Develop/blockchain/eos/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'pthread.h' file not found
#include <pthread.h>
         ^~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_32239.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_32239/fast] Error 2

3. gettext seems proper symblinked
❯ find /usr -name libintl* -print 2>/dev/null
/usr/local/include/libintl.h
/usr/local/lib/libintl.dylib
/usr/local/lib/libintl.8.dylib
/usr/local/lib/libintl.a
/usr/local/Cellar/texi2html/5.0/share/texi2html/lib/libintl-perl
/usr/local/Cellar/gettext/<IP_ADDRESS>/include/libintl.h
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.dylib
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.8.dylib
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.a
/usr/local/Cellar/gettext/<IP_ADDRESS>/share/gettext/intl/libintl.rc

@wangshijun can you run:
find /usr -name pthread.h -print 2>/dev/null

@pacificcode appreciate your help!
❯ find /usr -name pthread.h -print 2>/dev/null
/usr/include/pthread/pthread.h
/usr/include/pthread.h

@wangshijun The header file cmake is looking for is clearly located @
/usr/include/pthread/pthread.h
/usr/include/pthread.h

I would recommend checking your $PATH
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Reboot your computer and clear your parameter ram
https://support.apple.com/en-us/HT204063
I would also run the following:
cd /path/to/eos
rm -rf /path/to/eos/build
git pull
git submodule update --init --recursive
./eosio_build.sh

Capture the output of the script and if you run into any further issues send the output and your CMakeError.log.

@gavinwyf It looks like you have boost and llvm issues. Try running the following:
brew remove --force boost
brew remove --force llvm
cd /path/to/eos
rm -rf build/
git pull
git submodule update --init --recursive
./eosio_build.sh
Capture the output of the script and if you run into any further issues send the output and your CMakeError.log.

@pacificcode
$ find /usr -name libintl* -print 2>/dev/null
/usr/local/Cellar/gettext/<IP_ADDRESS>/include/libintl.h
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.dylib
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.8.dylib
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.a
/usr/local/Cellar/gettext/<IP_ADDRESS>/share/gettext/intl/libintl.rc
$ brew list --versions gettext
gettext <IP_ADDRESS>
$ brew list
argtable		curl			gmp			jsoncpp			libmicrohttpd		libyaml<EMAIL_ADDRESS>autoconf		doxygen			go			lcov			libplist		libzip			pkg-config
automake		ethereum		gperftools		leveldb			libpng			llvm@4			python
berkeley-db		fontconfig		graphviz		libffi			libtasn1		makedepend		readline
boost			freetype		hiredis			libgpg-error		libtiff			miniupnpc		snappy
<EMAIL_ADDRESS>gd			icu4c			libidn2			libtool			mongodb			sqlite
cmake			gdbm			ideviceinstaller	libimobiledevice	libunistring		ninja			usbmuxd
cocoapods		gettext			ios-deploy		libjson-rpc-cpp		libusb			node			webp
coreutils		git			jpeg			libksba			libxml2			openssl			wget

@hoopslb
brew unlink gettext && brew link --force gettext
find /usr -name libintl* -print 2>/dev/null
Your output should be (and you should be good to go):
$ find /usr -name libintl* -print 2>/dev/null
/usr/local/include/musl/upstream/include/libintl.h
/usr/local/include/libintl.h
/usr/local/lib/libintl.dylib
/usr/local/lib/libintl.8.dylib
/usr/local/lib/libintl.a
/usr/local/Cellar/gettext/<IP_ADDRESS>/include/libintl.h
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.dylib
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.8.dylib
/usr/local/Cellar/gettext/<IP_ADDRESS>/lib/libintl.a
/usr/local/Cellar/gettext/<IP_ADDRESS>/share/gettext/intl/libintl.rc

@pacificcode now the build succeed! thank you so much! 👍


install.php not reachable

Thanks for the script.
Traefik works fine.
For this docker image of dokuwiki, How do you set up the admin and ACL since install.php isn't available?

Thanks! And that doesn't seem right. The install page has been available to me in the past with this image at: https://sub.domain.tld/install.php

I just gave it a go again through this script and it appears fine for me. If you're still having this issue, could you please give me information such as:
What distro are you using?
What is the output of: cat /etc/selinux/conf
What is the output of: docker logs dokuwiki
The DokuWiki website gives some installation related debugging help as well here: https://www.dokuwiki.org/installer

I got it figured out.  It was persistent volumes that prevented a clean new container.  one of the perils of docker-compose up  and ctrl-c.  I appreciate your help.

Glad you got it working!


Rule 183: Adding email to the range of values of the X-Frontend-Type header

Please check if the PR https://github.com/zalando/restful-api-guidelines/pull/635 introduces changes which are relevant to the Zally project.

No changes are required.


ttl may be undefined

Which Class is this bug report for?

EnkaManager

Issue feature description
The ttl returned from enkaNetwork is sometimes undefined, causing problems with nextShowCaseDate.
Sample Code
const enkaData: EnkaData = {
      uid: uid,
      playerInfo: new PlayerInfo(result.playerInfo),
      avatarInfoList:
        result.avatarInfoList?.map(
          (avatarInfo) => new AvatarInfo(avatarInfo),
        ) ?? [],
      nextShowCaseDate: new Date(new Date().getTime() + result.ttl * 1000),
    }

Version
0.1.4
Issue priority
High

change to new Date(Date.now() + (response?.ttl || 60) * 1000)


Cannot find module 'gradient-parser'

When building a typescript project that rely on pixi.js and pixi-filters, I get the following error:
Error: node_modules/pixi-filters/lib/color-gradient/CssGradientParser.d.ts:1:122 - error TS2307: Cannot find module 'gradient-parser' or its corresponding type declarations.

1 import { AngularNode, ColorStop as CssColorStop, DefaultRadialNode, DirectionalNode, ExtentKeywordNode, ShapeNode } from 'gradient-parser';

I'm using:

pixi.js ^8.1.0
pixi-filters ^6.0.0

Added a PR to address, workaround is to install @types/gradient-parser into your project.


Clipper 2 C++ crash

I was trying to do a boolean operation on a very large polygon array that runs fine on Clipper 1 C++, but takes around 3min.
When I tried the same operation with the same settings (Intersection, closed polygons (Path64), NonZero, polytree output) the code is crashing in the following function:
inline bool IsOuter(const OutRec& outrec)
	{
		return (outrec.state == OutRecState::Outer);
	}

It seems to be trying to read outrec even though it is set to NULL.
I realize a minimum working example would be nice. But I have this pretty integrated into much larger code that reads the polygons off a GDS file. So I'm not sure how to share the polygon structures with you. (If you have any preferences let me know)
PS. When running the operation on a smaller set of polygons, there are no issues.

Thanks for the feedback. Yes, I'm aware of a bug directly related to outrec == NULL.
I have a fix ready to upload, I've just been tidying up the sample utility which is now almost done before uploading.
I'll probably post the new revision within the next 30mins.

That's awesome. I was already trying to come up with a test case for you.
I appreciate your hard work. This algorithm is a bit beyond me. But, if you need any C++ testing help I would be glad to contribute. I'm currently using this as part of an automated layout tool for integrated circuit design. So I process large polygon arrays through it (1M+ polygons).

However 😜 ...
I'm somewhat sureprised you're seeing this via IsOuter(). I can't see how you get there with an unassigned outrec. Could you give the next couple of functions up the call stack? That would really help.
So far, I have only fixed unassigned outrecs in CleanCollinear().

I'm sorry, I copied the wrong function...
it's crashing at:
inline bool IsFront(const Active& e)
Call stack:

inline bool IsFront(const Active& e)
OutPt* ClipperBase::AddLocalMaxPoly(Active &e1, Active &e2, const Point64 pt)   on the first if statement
void ClipperBase::DoHorizontal(Active &horz)    *on: else if (IsHotEdge(horz)) AddLocalMaxPoly(horz, max_pair, horz.top);
bool ClipperBase::ExecuteInternal(ClipType ct, FillRule ft)     *on: while (PopHorz(e)) DoHorizontal(e);

Once any bugs have been squashed, I think you'll notice a significant performance improvement.

That's what got me all excited and made me take the plunge into incorporating Clipper 2

OutPt* ClipperBase::AddLocalMaxPoly(Active &e1, Active &e2, const Point64 pt) on the first if statement
void ClipperBase::DoHorizontal(Active &horz) on: else if (IsHotEdge(horz)) AddLocalMaxPoly(horz, *max_pair, horz.top);

Again, I'm somewhat perplexed 🤔.
The preceeding IsHotEdge(horz) simply tests for an outrec assignment.
So in the subsequent AddLocalMaxPoly(horz ...), the first IsFront() can reasonably assume outrec assignment.
However, it's conceivable that the error is actually in the second IsFront() call.
It shouldn't happen but I suspect this is what is happening.
It would be really helpful if you could send me the problem sample (address at to of this page).

it is the second one.
it's *max_pair that has the NULL outrec.

Let me figure out how to de-couple things and send you an example set that crashes.

Working example with crash sent...

btw...
I needed to add the const keyword to the following functions in both the declaration and definition:
void ClipperOffset::DoRound(PathGroup& group, const PointD& pt, const PointD& norm1, const PointD& norm2, double angle)
Without it there is a compiler error.

Should be fixed now 😁.

The problem with the clip operation seems to be fixed but it's failing to build the output Polytree. I'm opening a new Issue since it seems unrelated.


Pod Groups: Driver contains information about remaining Pods

What would you like to be added:
https://github.com/kubernetes-sigs/kueue/tree/main/keps/976-plain-pods#story-3
Queue a pod group using information about workers provided by a driver Pod.
Why is this needed:
In some frameworks, like Spark, worker Pods are created by a driver Pod. So we might not have the shape of a worker Pod until the driver runs.
Completion requirements:
This enhancement requires the following artifacts:

[x] Design doc
[x] API change
[x] Docs update

The artifacts should be linked in subsequent comments.

/remove-lifecycle stale

/remove-lifecycle stale


Custom metadata

Is your feature request related to a problem? Please describe.
As user I would like to add custom traits to the attributes array.
Describe the solution you'd like
Have button along with to add custom metadata

Hi @vikiival I am willing to work for this tasks. :)

@vikiival @yangwao  where should I add the button for metainfo ?

Currently to we pass tags to the metadata (check example here) which is basically Attribute[].
The goal here is to have a Collapse with an additional form which will contains all properties of the Attribute (display_type, trait_type, value). After submit a form should be cleared and the "new" tag should be added to the existing <TagInput/>
Checks:

[ ] create separated component (Attribute Form)
[ ] create separated component (Attribute form within Collapse)
[ ] on submit clear attribute form and add the tag to the tag input values
[ ] make sure that it is pinned correctly

Related https://github.com/kodadot/nft-gallery/issues/417

Closed by a36283484470f1cea1b444ca09eb8ac34709ee62


java.lang.RuntimeException: Unable to start activity ComponentInfo{com.trackofield.tracker/sdk.chat.ui.activities.PostRegistrationActivity}: android.view.InflateException: Binary XML file line #22 in com.trackofield.tracker:layout/activity_post_registration: Binary XML file line #22 in com.trackofield.tracker:layout/activity_post_registration: Error inflating class

Is the bug present in the demo Chat SDK project?

What modifications have you made to the Chat SDK?

Android Version:

Steps taken to reproduce the problem:

Expected result:

Actual result:

Comments:

Please follow the issue template.


Updated pitest and pit-dashboard-reporter

See also https://github.com/szpak/gradle-pitest-plugin/issues/337


Create a predefined object for every book of the Bible

Does this go in index.ts?

Does this go in index.ts?

Nope

bro what do you mean nope

It should go in its own folder

Is this right or are each of the object going to be in it's own file

You're close. Why don't you open a PR and we can discuss this?


Prometheus / Graphana

I saw in a post somewhere that you were working on easy integration with logging, prometheus and graphana. How have things come along with that? Are there any samples on how to do that? I'm not experienced with using prometheus so I figured I might give it a go with Tye if it's something you've worked at.

I am having trouble when I try to integrate prometheus. I use prometheus docker image.
tye.yml (related parts)
- name: prometheus
  image: prom/prometheus
  bindings:
    - port: 9090
  volumes:
    - source: prometheus.yml
      target: /etc/prometheus/prometheus.yml

- name: saas-service
  project: saas/src/SaasService.HttpApi.Host/SaasService.HttpApi.Host.csproj
  bindings:
    - protocol: https
      port: 44381

prometheus.yml
global:
  scrape_interval: 10s
scrape_configs:
  - job_name: 'saas-service'
    scheme: https
    static_configs:
    - targets: ['saas-service:44381']
      labels:
        alias: "saas-service"

(I also tried 'localhost:44381', '<IP_ADDRESS>:44381')
Prometheus UI

It seems that Prometheus can not access to my service (that is running locally).
So, Question is: How an application in a container can access to the service URL that is added as project?


Environment variable support

Much like docker and pack, you should be able to provide environment variables that will be available to the build.
I am thinking they can be supplied with the flag
--env "NAME=value" EXTERNAL

In the NAME=value case, the variable NAME is set to "value". In the second case, the variable EXTERNAL is provided from the calling environment.

Perhaps also specify a .env file that could be loaded?


Justified text is not possible in Firefox

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Applying	text-align: justify; on a block via a class name returned from the blockStyleFn function has no effect in Firefox.
It looks like this is because the white-space: pre-wrap; rule applied to .public-DraftStyleDefault-block, which is preventing the justified alignment in Firefox 50.1.0. The same problem does not exist in Chrome 55.0.2883.87.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.
Apply text-align: justify; to a block type class name. See example https://jsfiddle.net/rxycutze/2/
What is the expected behavior?
It should be possible to apply the text-align: justify; CSS rule to a block without side effects.
Perhaps Draft.js should investigate the substitution of white-space with   and
 to avoid the need to apply white-space: pre-wrap;.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Draft.JS 0.9.1
Firefox 50.1.0

I actually got this issue on PhantomJS because of the white-space: pre-wrap css property rule.

I actually made a workaround using the blockRenderFn to always return a class that overide white-space to normal.

@Okazari surely that would break double-spacing and soft line breaks though?

@si13b double-spacing works fine for me, since each line break create a new div in draftjs. I don't really know what is "soft" line breaks :thinking:

hi @Okazari , sorry I didn't explain myself well in my last post.
By double spacing, I meant that with white-space: normal;,  browsers will collapse successive white space characters (new line ,space, tab etc) into a single space. e.g. "foo       bar" will be presented as"foo bar".
In draft JS, pressing return key will create a new div (block). There is also the concept of a soft line break (https://facebook.github.io/draft-js/docs/api-reference-rich-utils.html#insertsoftnewline). Soft line break in traditional text editors is usually Shift+Return, this is the equivalent of a \n character.
With white-space: 'normal' soft line breaks will be stripped out, e.g. "hello
there" will become "hello there". I think this is why Draft.js uses white-space: pre-wrap.
Other editors solve this problem by substituting spaces and tabs with html entities such as   and new line with
 and so on.

Hmm, juste tried double spaces with my workaround and it looks like it works fine. I don't know how to try soft line break :confused:

@si13b Hmm, juste tried double spaces with my workaround and it looks like it works fine. I don't know how to try soft line break :confused:

@Okazari you can use RichUtils.insertSoftNewline(editorState) to insert a soft newline.
If you have a jsfiddle of your workaround, that would be awesome.

@si13b IWould be something like this : https://jsfiddle.net/qj2n080k/4/ (i just added white-space: normal to the .align-justify .public-DraftStyleDefault-ltr css

@si13b Would be something like this : https://jsfiddle.net/qj2n080k/4/ (i just added white-space: normal to the .align-justify .public-DraftStyleDefault-ltr css

Thanks @Okazari , that workaround seems to work, although I don't understand why as it seems to be still preserving the white-space (white-space: pre-wrap), despite using white-space: normal;. It could even be a bug in Firefox.

Sorry, I have to re-open as I didn't test insertSoftNewline properly.
See; https://jsfiddle.net/qj2n080k/5/
Steps to reproduce:

type text
Press Enter+Return

Outcome:
Space inserted
Expected:
Soft newline (\n) should be inserted (without creating another block).

I also ran into the same problem on Firefox and Safari. Adding white-space:normal causes the collapse of double white spaces on both.
draft-js 0.10.0 with Firefox 52.0, Safari 10.0.3. Option to align justify is relatively important for us since we're building a publishing platform.

We found that adding white-space: normal caused other issues, so please be aware of this.
E.g. cursor jumping unexpectedly while editing in Firefox:

Delete any text
Type a few characters, hit space
The cursor will jump to the beginning of the line

There were also some uncaught errors in mobile Safari while making edits.
For now we're opting to not allow justify-aligned text in Firefox.

@PeterDekkers

We found that adding white-space: normal caused other issues, so please be aware of this.
E.g. cursor jumping unexpectedly while editing in Firefox:

Delete any text
Type a few characters, hit space
The cursor will jump to the beginning of the line

There were also some uncaught errors in mobile Safari while making edits.
For now we're opting to not allow justify-aligned text in Firefox.

I am currently facing the same issue, having to choose between 'allowing justified text' and 'allowing typing a space at the end of a line'... I currently found no way to achieve both.
Did anyone find a solution for this?


Deprecate sprite.vars.* in favor of using class properties directly?

Right now, Leopard targets (sprites and the stage) have a .vars object. Projects converted via sb-edit have all the Scratch variables converted to key/value pairs on the vars object.
When I edit Leopard projects manually, I am constantly annoyed by this and choose to just assign things directly to the sprite itself instead, like so:
// Current
this.vars.n = 5;

// What I prefer
this.n = 5;

This gives a far more "normal" JavaScript development experience, which I think is better for Leopard users who are learning to write JS code.
The only argument I can think of in favor of vars is that it provides a namespace so that you can, for example, have this.vars.x be a variable and this.x be the sprite's x-position. In my opinion, it would be better to stop using this namespace and instead have sb-edit convert to this.var_x and this.x or similar.

Love it. We can bikeshed the naming collision situation as much as we want. I'm happy with this._x because it feels like it nicely denotes the "private" x that this sprite has as opposed to its public x coordinate. Or this.xVar or this.varX help users clearly understand which is the variable and which is the position.
And yes, terrifying static analysis is absolutely a good idea, once we build up the courage. Anything that can be a local variable should be a local variable. (Maybe at some point in the future we'll revise this statement, but I think it's at least mostly correct.)

I like the "private" thought, but I want to mention that it sort of conflicts with the this.sprites.MySprite._x syntax for the "(attribute/variable) of (sprite)" Sensing block. Maybe not fundamentally, but I do think there's a bit of an inconsistency if we don't name all for-this-sprite-only variables with an underscore. And that's just not JavaScript-y—JS has private class fields (i.e. private identifiers) to that end, and a sprite might expose that with get xPosed() { return this.#x }... (Bad pun...)
Incidentally, this._x is already a taken name by Leopard internals, but that's neither here nor there.

Alright, I think that's a good enough reason not to choose the underscore syntax.
Personally, between this.varX or this.xVar, I vote for varX. No clear reason why. I just find it easier to read in my brain. It helps me narrow in that first I'm thinking about a variable, and then that I'm thinking about the x variable specifically (kind of like how a YYYY/MM/DD format progressively narrows in a date). Although, to be honest, you could make the exact opposite argument as well, so it's really just my unfounded personal preference.

OK, so we just wrote up https://github.com/leopard-js/sb-edit/issues/138#issuecomment-2132171014 and found that _x and _y are not in the list of names Leopard actually internally uses! So... clearly the TypeScript compiler and/or a minifier is optimizing those private names out. We would not be conflicting with them by using _x, _y etc. But yeah, it's still not very idiomatic, especially if other sprites read it.
Anytime verbiage could go one way or another and the world wouldn't end either way, we tend to not worry too badly about the outcome, LOL. Between this.varX and this.xVar we're happy either way.

varX is "nicer" and aligns with how we write our Scratch code (where all variables are sorted alphabetically, so generally, prefix-based notation is useful)...
...although it's not necessarily common JS flavor (const kMaximumBananaVelocity = 413 is something you see in C++ code and in JS code written by C++ programmers).
xVar offers symmetry with ArraySprite...
...and doesn't provide undue weight on prefix-based notation...
...although Scratch likes prefixes, and your own code might have lots of prefixes...
...although maybe we don't want to introduce external meaning in the same language space as your own prefixes...
...but xVar does read more as an "afterthought", like, "um, no, I'm not talking about the innate property x, I'm talking about the variable xVar," which reflects the fact of the matter quite directly, and encourages you to rename the variable to something more specific...
...but renaming exposed properties is pretty awkward in frankly all JavaScript, and certainly prone to bug-breeding if the user isn't very thorough in editing every place it is accessed...
...but that goes for varX anyway, and frankly all variable renaming in a text-based programming language, c'est la vie. (Until your IDE, e.g. the Leopard editor, specifically aids you, but that's rarely a given.)
Also, your YYYY/MM/DD point is good and we like it, no matter if it's absolutely perfectly applicable or not.

Note that (the other way around) this.x and this.xVar look like they correspond to e.g. 2022 and 2022/11 respectively, but we would argue they closer correspond to 11 and 11/13 more closely. You can figure out that "11/13" means "the thirteenth day of November" no problem, but good luck telling if "11" on its own is a month or a day or even a year (did they just forget the apostrophe!? iMovie '11!?).

Bikeshedding is fun but also boring, so if you're conflicted and would like an outside decision to help you move on (we've been there lol), we vote varX.


[JBEAP-4727] Inconsistency between WSProvide and WSConsume to show stacktrace

JBEAP: https://issues.jboss.org/browse/JBEAP-4727
Upstream not required

I have made the changes.