Implement delete by word

https://github.com/flutter/flutter/issues/77547
Implements delete by word for RenderEditable
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@justinmc, it works exactly like examples in your table. When there is no selection, it uses existing methods to extend selection to previous/next word (i.e. alt+backspace is equivalent to alt+left, backspace). The shift+arrow+word modifier behavior is already identical to Mac, and thus is deleting the word.

@justinmc, I just noticed that backspace and delete are listed in _shortcutKeys, and thus ctrl+backpace and ctrl+delete are processed as shortcuts on linux and windows. However _handleShortcuts doesn't do anything with these keys, and ctrl+delete and ctrl+backspace should delete words just like alt+delete does on Mac. So I don't think putting backspace and delete in shortcuts is the right thing to do, is it?

Ah good catch.  That makes sense to me.  So keep your code that handles these in _handleDelete, and remove delete and backspace from _shortcutKeys.
That's great that this PR handles all of the cases I wrote out 👍 . Just make sure it's covered in the tests.

The tests are in

I really apologize because I should have noticed this sooner, but there is another PR that makes this one obsolete: https://github.com/flutter/flutter/pull/77172.  I am unfortunately going to have to close this PR, but the good news is that the delete by word functionality should be in Flutter soon anyway.
This is my fault for not realizing that the https://github.com/flutter/flutter/issues/77547 and https://github.com/flutter/flutter/issues/57015 issues are duplicates.  If there is anything in this PR that is not covered by the other one, let me know and we can work on getting that in too.
Thanks for all of your work on this!


Mark underscored properties as internal

These properties look like they were intended to be internal but they were missing the PROPERTY_USAGE_INTERNAL flag.

PackedScene::_bundled
PortableCompressedTexture2D::_data
ImporterMesh::_data

C# also only hides them, so it doesn't break compatibility.

How does this affect extensions? Does the flag affect anything or is the _ already the controlling factor?

Yes, these properties are already excluded from extension_api.json because they are prefixed by _ (see https://github.com/godotengine/godot/issues/64429). Also, AFAIK godot-cpp doesn't generate properties anyway.

Can confirm the API dump skips them already, and it doesn't touch the getter or setter so it won't change anything, so looks good all around

While I do agree in principle, I would be very careful with _bundled. It has been "public" for a really, really long time (even in 3.x).
Documented roughly, it's technically functional, and it's the main thing the reader will see when looking at PackedScene's documentation. Someone, somewhere out there is relying on this property, which will... not be unexposed, per say, but will suddenly look like it has disappeared.
In my opinion it should be deprecated in favour of using SceneState, instead.
However, I would also suggest to take a look at where _bundled is used internally, if it even is.
If SceneState is "less" comfortable to access than the dictionary representation, this property has some reason to be exposed.

OptimizedTranslation also has those properties which don't any make sense when viewed in the inspector:

Should these be marked as internal?

@Calinou If you just want to hide them in the inspector we can use PROPERTY_USAGE_NO_EDITOR. If you also want to hide them from scripting, then we would also use PROPERTY_USAGE_INTERNAL.
However, these properties are added with _get_property_list which means they are already somewhat internal, since properties added this way aren't documented in the class reference and they won't be generated for the C# bindings. So marking them internal probably doesn't do much.

Thanks!

... and another regression where FBX/GLTF don't instance

I think it's really funny that the best way to have people test PRs is to force them to in a dev build, like throwing spaghetti at the wall to see if they stick.


merge from template-sync/template-arlac77-github

.github/pr_labeler.yml

chore(labels): merge from template .github/pr_labeler.yml

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

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.701%

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
78

Relevant Lines:
78

💛  - Coveralls


Install Chromeister at ORG

Tool_id toolshed.g2.bx.psu.edu/repos/iuc/merqury/merqury/1.3+galaxy2
MTS https://toolshed.g2.bx.psu.edu/repository?repository_id=5a89a0b3ecd57228
Install at ORG
EU and AU currently host it.
https://training.galaxyproject.org/training-material/topics/assembly/tutorials/assembly-quality-control/tutorial.html#evaluation-against-reference-genome-with-chromeister

I don't think people keep a systematic eye on this. It's really easy to add tools and maybe less work than opening issues, maybe you could do this yourself ? https://github.com/galaxyproject/usegalaxy-tools#requesting-a-new-tool

Hi -- missed this before -- I'm flattered that you think it is Ok for me to add tools :) but part of this request was routing it to make sure that the tool is appropriate for the server. Would it be Ok to separate that out? Request (usually from a user) versus determining how and if we can support it?

If it's an IUC/bgruening/galaxyp tool it is generally OK, if you're not sure you can do the pull request and then it's one step less for us where we can lose focus.


Fix RpcNep5Tracker for uncollectible chain snapshot & ready for plugin-v2.10.3 release

Fix RpcNep5Tracker for uncollectible chain snapshot & ready for plugin-v2.10.3 release.

I checked with the neo3, and this is for neo2, @erikzhang could you revert my last pull?

Reverted.


Smoke test runner fails or hangs without error

The smoke test runner tends to fail or hangs without error. This is very time costly if you are only do this occasionally.

run the smoke test on a recently cleaned vs code repo without Electron in .build/electron. yarn smoketest exits with exit code 0, no explanation
https://github.com/microsoft/vscode/blob/e7e89e4098985bfee0c9b382b944c8a1c50cbc24/test/smoke/src/main.ts#L107
fail should not only log to the logger, but also the console.

run the web smoke test (yarn smoketest --web) when the port 9000 is already taken
The tests hangs in waitForEndpoint

In the meantime I learned that running with verbose helps getting useful information, such as the server log location.
It would already be helpful to print that information in the beginning.

The first issue was a regression I introduced that is fixed meanwhile. Everything is now logged into a smoke-test-runner.log file so that we can diagnose further in the CI build machine but I forgot that some of these log messages should be printed to the console even when --verbose is not provided.
The second issue is something I never saw but can see how to improve it.

Please try again with my changes.

Maybe @aeschli would be better to look at this, but the second part doesn't seem to be working?
I get this when running yarn smoketest --web (and creating a node app to take up port 9000)

VSCode Smoke Tests (Web)
Search
"before all" hook for "has a tooltp with a keybinding":
Error: [10:48:21] Error: listen EADDRINUSE: address already in use <IP_ADDRESS>:9000
at Server.setupListenHandle [as _listen2] (net.js:1318:16)
at listenInCluster (net.js:1366:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1503:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:8) {
code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '<IP_ADDRESS>',
port: 9000
}
at Socket. (D:\Source\vscode\test\automation\src\playwrightDriver.ts:339:12)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)

VSCode Smoke Tests (Web)
Quick Open
"before all" hook for "quick open search produces correct result":
Error: [10:48:23] Error: listen EADDRINUSE: address already in use <IP_ADDRESS>:9001
at Server.setupListenHandle [as _listen2] (net.js:1318:16)
at listenInCluster (net.js:1366:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1503:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:8) {
code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '<IP_ADDRESS>',
port: 9001
}

Here's the code I used to occupy port 9000 (node app):
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.write('Hello World!');
  res.end();
}).listen(9000);

Yes that is a good result when the port is occupied, my intended fix was not to use a different port but to indicate this error to you instantly and not just hang.

Given your comment I actually think this is verified. Martin can confirm.

Looks good now, thanks!


fix short hand completion

Fix #255
Ping @octref since this is quite common usage.
Next step:

[x] refine @ handling
[x] refine completion item ordering

At VueConf I'll look at it & give feedback later.


Introduce a more suitable prometheus metric for counting number of services/endpoints discovered

The current grafana dashboard displays the total number of services and endpoints that have been discovered. The dashboard computes these numbers based on the event_timestamp metric, which indicates the last time a service or endpoint was updated.
The problem with using this metric for computing the count is that if the discoverer is restarted, the grafana dashboard will display zero until the services/endpoints are updated (because the "event_timestamp" metric will not be set).

I think if we want to graph how many services exist, we should use the metric from the kube-state-metrics that expose those. We can use the Gimbal services/endpoints metrics to help find rates of discovery.

Ah good point! And use the gimbal label to filter the services/endpoints to the ones that have been discovered.

@alexbrand do you think this can be closed or should it be renamed to update dashboard to use kube-state-metrics?

I think updating the issue would be best, so that we track it. Will update.


ES6 import

Hi there, I'm trying to use this package in my ES6 React project. The package was installed successfully to my node_modules. I have tried to import it using ES6 import:
import triangulate from "triangulate-image";
Which gives the error:
Uncaught Error: Cannot find module "triangulate-image"
Is this package currently not compatible with ES6?

hey @petertenhoor thank you for your interest in this project!
this library should support es6 imports. since this library supports running on node as well as in the browser, it is using the module field in package.json to indicate the path for the ES6 module file.
if you're using a module bundler like webpack, please make sure it is configured support the module field.
any chance you could share an example setup of the project for me to look at? i'm mostly interested in the way the project is set up and how exactly the library is imported.
thanks again for your interest and for taking the time to file a report!

False alarm. I got it working with require at first and after a fresh npm install also with ES6 import, so it had to be something on my side.


Change x:-label colours to white

The current colours draw a lot of attention and make it hard to find issues on GitHub for maintainers.
Note that you can overwrite the colours through the .appends file by redefining the label on a per-repo basis.

The previous PR #104 edited the local label file, not the global one.


Add bazel configuration

This works if anyone else is ever interested in using it, but unless there's some more demand I'm not going to add this for now


Dropdown selects first option without selecting anything.

Hello,
For column type:dropdown, when user click on dropdown ,doesn't selects any option and click anywhere else then the dropdown is selected with the first option by default.
Expected behavior: It should select any option when we click on option otherwise it should not select.
Actual behavior: It is selecting first option by default which actually it should not.
Any assistance is highly appreciated.
Thanks & Regards,
Kunal Kakkad

Hi @kunalkakkad,
you can subscribe handsontable/handsontable#4703 to be up to date with the information related to this issue.


Ciryllic chars are replaced in resulting XMLTV file

Please first read the documentation. Problems affecting the client, e.g. Plex or Emby should be reported there in the forum.
Describe the bug
XMLTV guide contains broken programmes titles if they contain ciryllic symbols.
Server

OS: Docker compose on linux (https://hub.docker.com/r/fyb3roptik/threadfin)
Version 1.2 (2)

To Reproduce
Steps to reproduce the behavior:

EPG Source must be set to XEPG
Import m3u playlist in corresponding menu (in my case it is a link to my iptv provider)
Import XMLTV playlist in corresponding menu (for my case this is http://epg.g-cdn.app/xmltv.xml.gz)
Download XMLTV file provided by Threadfin from source threadfin_host:threadfin_port/xmltv/threadfin.xml

Expected behavior
TV guide contains texts in ciryllic.
Actual behavior
Cyrillic symbols are replaced by space char.
Screenshots
This is how it looks from Plex perspective:

This is how it looks in xml file

:
Additional context
I tried to reproduce this bug with Xteve, but Xteve managed to handle ciryllic symbols in xmltv guide without any problems. Looks like something is wrong with encoding during guide preparation. Threadfin log does not show any problems at all - everything is fine. Toggle "allow non-ascii" does not take an affect too.

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Glad you got it working!


Item long click not supported?

Hi Stephen, thanks for a great library!
I want to activate multichoice mode upon long click (like ListView did), however
the method "onItemLongClick" in ClickCallback is not overridable (doesn't have "open" qualifier) and is fixed to simply return false.
Is this by design or just an oversight?
Thanks!

Hi @ajenter.
Thanks for reporting this! It is obviously an oversight as there is no value having this method always returning false. Surely an regression while porting from Java to Kotlin. Originally I designed this callback with a default behavior for the long click as we mostly need to implement the onClick method. Btw I did the same mistake in the GestureCallback class to enable an item to be swipable/movable.
Will do a quick fix soon ;)

Stephen, huge thanks for your reply! I've created a pull request to fix the issue so that you need to do less :)
(I'm not very experienced with GitHub yet, so sorry if something is not correct)

Merged and releases ;)

Cool, thanks a lot!
I want to say that I really like the structure of the library, and the documentation is very clear.
Please keep up the good work!


Create profile - groups you can connect to: Languages field should be optional

This should not be required - for example if the languages used by the people I can connect to are English, I don't think it's necessary to add anything.
Also, currently the field has "(required)" on it but it doesn't produce an error when it's not filled in!

@cherylhjli Individual or organization?

Optional for both individuals and organizations


Adding my authorship in the file AUTHORS

Ready. I revised the CHANGES. No errors.
But I think the AUTHORS list should be in alphabetical order because certains persons have difficulty to locate us to contact us.

But I think the AUTHORS list should be in alphabetical order

Sure, but remember we should always update those things as new pull request and usually right before release. Otherwise, it causes further merge conflicts for all other pull requests (no big deal right now... but please keep that in mind).


Revealing item in conditionally active tree view not working

Issue Type: Bug
In an extension, I have a tree view that is registered to one of two view containers based on a setting:
    "viewsContainers": {
      "activitybar": [
        {
          "id": "github-pull-requests",
          "title": "GitHub Pull Requests",
          "icon": "resources/icons/github.svg"
        }
      ]
    },
    "views": {
      "github-pull-requests": [
        {
          "id": "pr",
          "name": "GitHub Pull Requests",
          "when": "!config.githubPullRequests.showInSCM && config.git.enabled && github:hasGitHubRemotes && workspaceFolderCount != 0"
        }
      ],
      "scm": [
        {
          "id": "pr",
          "name": "GitHub Pull Requests",
          "when": "config.githubPullRequests.showInSCM && config.git.enabled && github:hasGitHubRemotes && workspaceFolderCount != 0"
        }
      ]
    },

When the setting is false, I get the error Error: view descriptor pr not found when trying to use the reveal API. Looks like when trying to get the view container, the when context isn't considered and the first match is used:
https://github.com/Microsoft/vscode/blob/5076c35a534f9ee03a4fead0ad5b858fcaa260eb/src/vs/workbench/common/views.ts#L222-L230
VS Code version: Code - Insiders 1.32.0-insider (a75cf6e4b4317de0bf38284af255bdf0089deb68, 2019-02-19T06:15:45.796Z)
OS version: Darwin x64 18.2.0

@RMacfarlane I do not think there is a support for contributing a view with same id (irrespective of contributing to different view containers). View id should be unique across for now.


CSP: add poetry

Codecov Report

Merging #229 (e65fae5) into master (b2ce21e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #229   +/-   ##
=======================================
  Coverage   51.56%   51.56%
=======================================
  Files          68       68
  Lines        6441     6441
=======================================
  Hits         3321     3321
  Misses       3120     3120

Flag
Coverage Δ

unittests
51.56% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 b2ce21e...e65fae5. Read the comment docs.


IE 8 Support

Is there any bootstrap templates which supports IE8 ?

See: https://wrapbootstrap.com/theme/ace-responsive-admin-template-WB0B30DGR


Add py.typed

This should allow mypy to parse flox if it's being imported by for example xarray.

Our current typing is not great. I stopped updating it 6 months ago. Shall we fix the  typing before enabling?

I added it locally so it appears to remove the errors left in https://github.com/pydata/xarray/pull/5734 at least!
Looks to me you've done a good attempt so I don't think there's anything to hold off on. Might go faster finding the left over bugs with this active as well.

There are a bunch of errors if I run mypy in flox/
A  lot seem easy and some seem like bugs =)
flox/core.py:69: error: Value of type "Optional[Any]" is not indexable  [index]
flox/core.py:69: error: Argument "isbin" to "_convert_expected_groups_to_index" has incompatible type "Tuple[bool]"; expected "bool"  [arg-type]
flox/core.py:447: error: Value of type "Optional[ndarray[Any, Any]]" is not indexable  [index]
flox/core.py:550: error: Incompatible default for argument "axis" (default has type "None", argument has type "Union[int, Sequence[int]]")  [assignment]
flox/core.py:605: error: Incompatible types in assignment (expression has type "Tuple[None]", variable has type "Optional[Mapping[Union[str, Callable[..., Any]], Any]]")  [assignment]
flox/core.py:661: error: No overload variant of "zip" matches argument types "Union[Sequence[str], Sequence[Callable[..., Any]]]", "None", "Any", "Any"  [call-overload]
flox/core.py:661: note: Possible overload variants:
flox/core.py:661: note:     def [_T_co, _T1] zip(cls, Iterable[_T1]) -> zip[Tuple[_T1]]
flox/core.py:661: note:     def [_T_co, _T1, _T2] zip(cls, Iterable[_T1], Iterable[_T2]) -> zip[Tuple[_T1, _T2]]
flox/core.py:661: note:     def [_T_co, _T1, _T2, _T3] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3]) -> zip[Tuple[_T1, _T2, _T3]]
flox/core.py:661: note:     def [_T_co, _T1, _T2, _T3, _T4] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], Iterable[_T4]) -> zip[Tuple[_T1, _T2, _T3, _T4]]
flox/core.py:661: note:     def [_T_co, _T1, _T2, _T3, _T4, _T5] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], Iterable[_T4], Iterable[_T5]) -> zip[Tuple[_T1, _T2, _T3, _T4, _T5]]
flox/core.py:661: note:     def [_T_co] zip(cls, Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], *iterables: Iterable[Any]) -> zip[Tuple[Any, ...]]
flox/core.py:665: error: Argument 1 to "is_nanlen" has incompatible type "None"; expected "Union[str, Callable[..., Any]]"  [arg-type]
flox/core.py:802: error: Unsupported left operand type for + ("Sequence[Any]")  [operator]
flox/core.py:804: error: Unsupported left operand type for + ("Sequence[Any]")  [operator]
flox/core.py:809: error: Incompatible return value type (got "Dict[str, Any]", expected "Dict[Union[str, Callable[..., Any]], Any]")  [return-value]
flox/core.py:809: note: Perhaps you need a type annotation for "results"? Suggestion: "Dict[Union[str, Callable[..., Any]], Any]"
flox/core.py:895: error: Incompatible types in assignment (expression has type "Dict[Union[str, Callable[..., Any]], Any]", variable has type "Dict[str, object]")  [assignment]
flox/core.py:911: error: "object" has no attribute "append"  [attr-defined]
flox/core.py:914: error: "object" has no attribute "append"  [attr-defined]
flox/core.py:921: error: Argument "fill_value" to "chunk_reduce" has incompatible type "Tuple[int]"; expected "Optional[Mapping[Union[str, Callable[..., Any]], Any]]"  [arg-type]
flox/core.py:937: error: "object" has no attribute "append"  [attr-defined]
flox/core.py:950: error: Argument "fill_value" to "chunk_reduce" has incompatible type "Tuple[Any]"; expected "Optional[Mapping[Union[str, Callable[..., Any]], Any]]"  [arg-type]
flox/core.py:955: error: "object" has no attribute "append"  [attr-defined]
flox/core.py:957: error: Incompatible return value type (got "Dict[str, object]", expected "Dict[Union[str, Callable[..., Any]], Any]")  [return-value]
flox/core.py:957: note: Perhaps you need a type annotation for "results"? Suggestion: "Dict[Union[str, Callable[..., Any]], Any]"
flox/core.py:1175: error: Argument 1 to "partial" has incompatible type "object"; expected "Callable[..., <nothing>]"  [arg-type]
flox/core.py:1228: error: Item "None" of "Optional[Any]" has no attribute "values"  [union-attr]
flox/core.py:1290: error: No overload variant of "zip" matches argument types "Tuple[Any, ...]", "bool"  [call-overload]
flox/core.py:1290: note: Possible overload variants:
flox/core.py:1290: note:     def [_T_co, _T1] zip(cls, Iterable[_T1]) -> zip[Tuple[_T1]]
flox/core.py:1290: note:     def [_T_co, _T1, _T2] zip(cls, Iterable[_T1], Iterable[_T2]) -> zip[Tuple[_T1, _T2]]
flox/core.py:1290: note:     def [_T_co, _T1, _T2, _T3] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3]) -> zip[Tuple[_T1, _T2, _T3]]
flox/core.py:1290: note:     def [_T_co, _T1, _T2, _T3, _T4] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], Iterable[_T4]) -> zip[Tuple[_T1, _T2, _T3, _T4]]
flox/core.py:1290: note:     def [_T_co, _T1, _T2, _T3, _T4, _T5] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], Iterable[_T4], Iterable[_T5]) -> zip[Tuple[_T1, _T2, _T3, _T4, _T5]]
flox/core.py:1290: note:     def [_T_co] zip(cls, Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], *iterables: Iterable[Any]) -> zip[Tuple[Any, ...]]
flox/core.py:1457: error: Argument 1 to "_validate_reindex" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
flox/core.py:1465: error: Incompatible types in assignment (expression has type "Tuple[bool, ...]", variable has type "bool")  [assignment]
flox/core.py:1478: error: Argument 1 to "_convert_expected_groups_to_index" has incompatible type "Union[Tuple[None, ...], Sequence[Any], ndarray[Any, Any]]"; expected "Tuple[Any, ...]"  [arg-type]
flox/core.py:1490: error: Value of type "Optional[Any]" is not indexable  [index]
flox/core.py:1543: error: Argument 4 to "_initialize_aggregation" has incompatible type "Optional[int]"; expected "int"  [arg-type]
flox/core.py:1567: error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], Any]" has no attribute "chunks"  [union-attr]
flox/core.py:1580: error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], Any]" has no attribute "chunks"  [union-attr]
flox/core.py:1608: error: Incompatible types in assignment (expression has type "List[Union[ndarray[Any, Any], Any]]", variable has type "Tuple[Any]")  [assignment]
flox/xarray.py:19: error: Module "xarray" has no attribute "Resample"  [attr-defined]
flox/xarray.py:231: error: Unsupported right operand type for in ("Optional[Hashable]")  [operator]
flox/xarray.py:237: error: "Hashable" has no attribute "__iter__" (not iterable)  [attr-defined]
flox/xarray.py:240: error: "Hashable" has no attribute "__iter__" (not iterable)  [attr-defined]
flox/xarray.py:248: error: Incompatible types in assignment (expression has type "Union[str, Aggregation]", variable has type "str")  [assignment]
flox/xarray.py:256: error: Argument 1 to "len" has incompatible type "Hashable"; expected "Sized"  [arg-type]
flox/xarray.py:277: error: Argument 1 to "_convert_expected_groups_to_index" has incompatible type "List[Any]"; expected "Tuple[Any, ...]"  [arg-type]
flox/xarray.py:277: error: Argument 2 to "_convert_expected_groups_to_index" has incompatible type "Sequence[bool]"; expected "bool"  [arg-type]
flox/xarray.py:278: error: Incompatible types in assignment (expression has type "Tuple[int, ...]", variable has type "List[None]")  [assignment]
flox/xarray.py:278: error: Item "None" of "Optional[Any]" has no attribute "__iter__" (not iterable)  [union-attr]
flox/xarray.py:301: error: "Hashable" has no attribute "__iter__" (not iterable)  [attr-defined]
flox/xarray.py:314: error: Argument 1 to "set" has incompatible type "Hashable"; expected "Iterable[Any]"  [arg-type]
flox/xarray.py:330: error: Argument 1 to "tuple" has incompatible type "Optional[Any]"; expected "Iterable[Any]"  [arg-type]
flox/xarray.py:339: error: "Hashable" has no attribute "__iter__" (not iterable)  [attr-defined]
flox/xarray.py:342: error: Argument 2 to "zip" has incompatible type "Optional[Any]"; expected "Iterable[Any]"  [arg-type]
flox/visualize.py:4: error: Skipping analyzing "matplotlib": module is installed, but missing library stubs or py.typed marker  [import]
flox/visualize.py:5: error: Skipping analyzing "matplotlib.pyplot": module is installed, but missing library stubs or py.typed marker  [import]

Hmm, those doesn't seem to propagate when I run it on xarray:
!mypy C:\Users\J.W\Documents\GitHub\xarray\xarray --ignore-missing-imports
Documents\GitHub\xarray\xarray\core\concat.py:447: error: Incompatible types in assignment (expression has type "None", variable has type "Variable")
Documents\GitHub\xarray\xarray\tests\test_variable.py:9: error: Library stubs not installed for "pytz" (or incompatible with Python 3.9)
Documents\GitHub\xarray\xarray\tests\test_variable.py:9: note: Hint: "python3 -m pip install types-pytz"
Documents\GitHub\xarray\xarray\tests\test_variable.py:9: note: (or run "mypy --install-types" to install all missing stub packages)
Documents\GitHub\xarray\xarray\tests\test_variable.py:9: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 2 errors in 2 files (checked 137 source files)

What could this mean?

What could this mean?

No idea. Maybe it's only looking at the external interface (xarray.xarray_reduce?)


Update puppet.md

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Thanks, @scjane !


order of hosts within a group

Currently hosts are displayed in order they are created. It would nice to be able re-order them by drag & drop ideally, or by changing their order up and down..

Yeah I can see that being useful, I will have to think about how to implement it.
Right now you can switch the ordering on a per-folder basis with these buttons

between alphabetical and last-used orders, but yeah these do not apply to individual connections and do not allow for custom ordering.

I thought really hard about this and implemented the most straightforward solution I came up with in the latest PTB: https://github.com/xpipe-io/xpipe-ptb
I also experimented with more sophisticated ordering options but in practice these were too complicated and too tedious. I think in practice, being able to pin certain connections covers many cases. Especially when new connections are always added, having a more fine-grained ordering isn't very fun to use.

This is now released in xpipe 10


cmd/link: dsymutil also mangles __debug_info sometimes

Found while investigating this: https://github.com/golang/go/issues/21945
When calling dsymutil with the verbose option a number of warnings like this are emitted:
while processing /tmp/testdir/go.o:
warning: could not find referenced DIE
    in DIE:

0x00306e5f:       DW_TAG_array_type [14] *
                    DW_AT_name [DW_FORM_string] ("[62]testing.InternalTest")
                    DW_AT_type [DW_FORM_ref_addr]       (0x00000000003061b0)
                    DW_AT_byte_size [DW_FORM_udata]     (1488)
                    DW_AT_Unknown_2900 [DW_FORM_data1]  (0x11)

the corresponding DIE is fine in go.o but mangled (missing the DW_AT_Type attribute) in the final binary:
 <1><18af46>: Abbrev Number: 27 (DW_TAG_array_type)
    <18af47>   DW_AT_name        : (indirect string, offset: 0x195b72): [62]testing.InternalTest
    <18af4b>   DW_AT_byte_size   : 1488
    <18af4d>   Unknown AT value: 2900: 17

See issue https://github.com/golang/go/issues/21945 for more details on how to reproduce this. This problem was originally observed in this old bug.
cc @heschik @hyangah

I built dsymutil from source and debugged it today. I didn't get all the way through but wanted to write down findings so far.
The problem occurs when dsymutil applies relocations here:
https://github.com/llvm-mirror/llvm/blob/f1ff67e5f1d9bba6d4a95deef0a72ab888158c60/tools/dsymutil/DwarfLinker.cpp#L2749
.debug_info contains relocations to multiple sections. In the instance I was looking at, the DW_AT_type that was getting lost relocated to some offset X within .debug_info. It so happened that a prior function DIE's DW_AT_high_pc had the same offset X, but that's a relocation into .text. Something somewhere conflated the two relocations, and it ended up using the function's address where it should have used the type DIE's.
Right now I think there are two possibilities: either dsymutil is busted somewhere, or the Go toolchain is producing a bad debug map. (I don't know exactly what a debug map is, but it seems to contain relocations, and it's what's fed to the RelocMgr above.) I'll try to figure out which at some point.

Okay. I don't like it, but I think I understand what's happening now.
In a normal .debug_info, you can get away without a relocation within the same CU using the CU-relative forms of reference (DW_FORM_refN) but for references to a different CU or a different section (.debug_loc, .debug_ranges) you need a DW_FORM_ref_addr and a relocation. This allows the linker to adjust the pointers as it merges the debug information from all the object files.
Mach-O C++ object files don't seem to have any relocations to their DWARF at all. Instead, they rely completely on the existence of dsymutil to do a content-aware linking step without the benefit of any relocations. It walks over all the DIEs in the input and emits referenced ranges and location lists, updating the references as it goes. (https://github.com/llvm-mirror/llvm/blob/f1ff67e5f1d9bba6d4a95deef0a72ab888158c60/tools/dsymutil/DwarfLinker.cpp#L2871, https://github.com/llvm-mirror/llvm/blob/f1ff67e5f1d9bba6d4a95deef0a72ab888158c60/tools/dsymutil/DwarfLinker.cpp#L838).
Dropping the relocations from the output seems to work. I'll mail a WIP CL.

Some notes for posterity. There's still a bunch I don't understand here though.
The crux of the problem is the way that dsymutil finds entries in the debug map. It assumes that all relocations are absolute addresses, and reads the addend of the relocation (which in Mach-O is in the instruction text, see https://github.com/llvm-mirror/llvm/blob/f1ff67e5f1d9bba6d4a95deef0a72ab888158c60/tools/dsymutil/DwarfLinker.cpp#L1936). It uses that to get the final address and replace the relocation with it. This breaks with our R_DWARFREF relocations, which are section-relative, not absolute addresses. When they happen to collide with an absolute address in the debug map, we get this issue.
There's a debug map for each object file, formed from two pieces of information: STAB entries in the main binary, which map a symbol name to its final value, and the object's symbol table, which maps that to the addend that dsymutil can recognize -- its location in the object file.
It's not clear to me how the Go linker produces an object whose relocations' addends match the position they end up in the object file. @crawshaw suggests that this might be because the linker mostly thinks it's linking the final binary, and so it thinks it knows the load address of the object. I'm mostly just confused.


rpi-sdimg file not found

A quick question about sdimg file after building meta-raspberrypi. I have got rpi-hwup-image-raspberrypi-20170405083420.rootfs.tar.bz2 and bcm2835-bootfiles folder. I cannot see any file which says sdimg.
Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "raspberrypi"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2"
TUNE_FEATURES     = "arm armv6  vfp arm1176jzfs callconvention-hard"
TARGET_FPU        = "hard"
meta
meta-poky
meta-yocto-bsp    = "master:e016eb10b075e280b4e78a04e47b59a173386421"
meta-raspberrypi  = "master:da32aac453da278e254d37b816602410af85d162"
local.conf:
MACHINE ??= "raspberrypi"
DISTRO ?= "poky"
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "
STOPTASKS,${TMPDIR},1G,100K
STOPTASKS,${DL_DIR},1G,100K
STOPTASKS,${SSTATE_DIR},1G,100K
STOPTASKS,/tmp,100M,100K
ABORT,${TMPDIR},100M,1K
ABORT,${DL_DIR},100M,1K
ABORT,${SSTATE_DIR},100M,1K
ABORT,/tmp,10M,1K"
CONF_VERSION = "1"
IMAGE_FSTYPES = "tar.bz2 ext3.xz"
The image files in tmp/deploy/images/raspberrypi, after building successfully are as follows:
modules-1-4.9.13+git0+28ea32b9af-r0-raspberrypi-20170405083420.tgz
rpi-hwup-image-raspberrypi-20170405083420.rootfs.ext3.xz
rpi-hwup-image-raspberrypi-20170405083420.rootfs.tar.bz2
bcm2835-bootfiles (folder).
I am not sure which mailing-list I can post this question/issue, therefore please let me know if it is a known issue or if this may not be a suitable place to post this issue. Thanks.

I have found a problem and fixed it.

What was the issue?


Page down

https://qrank.wmcloud.org/ seems to be down:

I still had an qrank.csv file on my machine from November 2022.
If anyone wants to download it you can get it here:
https://pub-726b01260c98468a9387cc0dfcb7386b.r2.dev/qrank-2022-11-23.csv

Thanks for the report, fixed.
Also, I’ve set up free uptime monitoring so I should get alerted in the future when the server goes down. Hopefully, their alert emails won’t get filtered out by my spam filter.


Higher order components?

I have a higher order component which handles protecting authenticated pages. It looks something like this:
export default function requireAuthentication(Component) {
  componentWillMount() {
    // check if user is logged in. redirect to login page if not
  }

 render () {
   const userIsLoggedIn = // something
   return (
     <div>
      {userIsLoggedIn ? <Component {...this.props} /> : null}
    </div>
   )
 }
}

Then, in routes.js I have:
return (
   ...
  <Route component={requireAuthentication(MyComponent)} path="/foo" />
  ...
)

When I use this requireAuthentication function, my asyncConnect promise is never called. When I remove the requireAuthentication, it is called. Is there a way I can get this to work?

Use onEnter hook to check for authenticated user, async props can only be loaded for components that are returned from react-router during route matching

On 19 May 2016, at 18:23, Jason Marmon<EMAIL_ADDRESS>wrote:
I have a higher order component which handles protecting authenticated pages. It looks something like this:
export default function requireAuthentication(Component) {
componentWillMount() {
// check if user is logged in. redirect to login page if not
}
render () {
const userIsLoggedIn = // something
return (

{userIsLoggedIn ? <Component {...this.props} /> : null}

)
}
}
Then, in routes.js I have:
return (
...

...
)
When I use this requireAuthentication function, my asyncConnect promise is never called. When I remove the requireAuthentication, it is called. Is there a way I can get this to work?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Ah got it, thank you!


Add unit tests (Patrick)

This PR currently covers the following files

arg_parser.py: 44/51 lines (86.3%) -> 51/51 (100%)
models/model_custom.py: 20/24 (83.3%) -> 24/24 (100%)
compos/exp/exp_main.py: 19/36 (52.8%) -> 34/36 (94.4%)
tasks/task_folder: 34/47 (72.3%) -> 43/47 (91.5%)

Total line coverage added: 35

Some of the above tests are hackey, so I am happy for any suggestions of changes:

arg_parser.py: this requires manually resetting the "command line" arguments via sys.argv
models/model_custom.py: this just tests for NotImplementedErrors so needs to create a class that inherits from AModelCustom and then tries to call those functions.
compos/exp/exp_main.py: as far as I can see, Models are currently tested via exp.trainer.tr_epoch(0). I changed that for test_dann() to exp.execute() with --epos=2 (default). I am unclear if this has any performance implications or whether this could be changed for all model tests.

Codecov Report

Merging #43 (6e4a27d) into master (4adf1a7) will increase coverage by 1.12%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
+ Coverage   91.02%   92.15%   +1.12%
==========================================
  Files          99       99
  Lines        3032     3032
==========================================
+ Hits         2760     2794      +34
+ Misses        272      238      -34

Flag
Coverage Δ

unittests
92.15% <ø> (+1.12%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

domainlab/models/model_custom.py
95.83% <0.00%> (+12.50%)
:arrow_up:

domainlab/arg_parser.py
100.00% <0.00%> (+13.72%)
:arrow_up:

domainlab/tasks/task_folder.py
91.48% <0.00%> (+19.14%)
:arrow_up:

domainlab/compos/exp/exp_main.py
94.44% <0.00%> (+41.66%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

I have merge this with some introduced issues of codacy since codacy does not support pytest fixtures, does anyone know how to escape codacy check with pytest fixtures?


destination filesystem does not support xattrs

Description of the bug
ERROR ~ Error executing process > 'NFCORE_RAREDISEASE:RAREDISEASE:CALL_MOBILE_ELEMENTS:RETROSEQ_DISCOVER (13)'
Caused by:
Failed to pull singularity image
command: singularity pull  --name docker.io-clinicalgenomics-retroseq-1.5_9d4f3b5-1.img.pulling.1718117494807 docker://docker.io/clinicalgenomics/retroseq:1.5_9d4f3b5-1 > /dev/null
status : 255
message:
INFO:    Converting OCI blobs to SIF format
INFO:    Starting build...
INFO:    Fetching OCI image...
INFO:    Extracting OCI image...
2024/06/11 16:51:47  warn xattr{var/cache/apt/archives/partial} ignoring ENOTSUP on setxattr "user.rootlesscontainers"
2024/06/11 16:51:47  warn xattr{/tmp/build-temp-1374007653/rootfs/var/cache/apt/archives/partial} destination filesystem does not support xattrs, further warnings will be suppressed
FATAL:   While making image from oci registry: error fetching image to cache: while building SIF from layers: packer failed to pack: while unpacking tmpfs: error unpacking rootfs: unpack entry: opt/conda/pkgs/certifi-2019.9.11-py37_0/lib/python3.7/site-packages/certifi-2019.9.11-py3.7.egg-info/PKG-INFO: link: unpriv.link: unpriv.wrap target: no such file or directory
Command used and terminal output
nextflow run nf-core/raredisease -r "patch" -profile test,singularity,pdc_kth --outdir test_rev_patch_out --project naiss2024-22-481

Relevant files
No response
System information
Nextflow version 23.10.1
HPC,PDC-Dardel
slurm
Singularity
SUSE Linux Enterprise Server 15 SP5
nfc-rd version "patch"

related to #575 ?

Yes, should this one then be closed?

Closing


fix(analytics-browser): should track file download when with url params

Summary

Jira: AMP-111576
File download should also track when url contains url parameters.
Checklist

[ ] Does your PR title have the correct title format?
Does your PR have a breaking change?:

amazing!


Struct was being called call on ds_map function

In regards to scribble typist event adding:
ds_map_exists was being called on a struct. Changed to proper exists check for struct type.

Thank you for your PR!


Improve prompting for diffusers default snippets

Addressing comments left on #907, specially for LoRAs

looking great!
regarding this line:
prompt = "${get_prompt_from_diffusers_model(model) ?? diffusersDefaultPrompt}"
I think there can be edge case where user supplied prompt has quote like ", which means we need to escape  ".
Otherwise, there is a danger of producing broken python code like:
prompt = "Astronaut holding sign that says "Hello""


fix: test npm run build for docker services

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@techsavvyash logging factory file used to have only code to generate the docker files.
So we don't require to call logging via the stencil generate command right?

Yes @Savio629

Opened a new pr #10


Add github action for commitlint

First runs may fail
Due to certain permissions of github, it is likely that the first execution fails, to find a correct execution, certain settings must be modified in terms of the permissions of the actions.
Repo settings > Actions > Workflow permissions

Ok, looks good!


General purpose links extractors

One of the problems I am constantly seeing is a need to extract new URLs. And I am looking for a way to simplify it for me and other people as well.
I am thinking of writing a code which will:

take a page body,
extract all links from it
filter these extracted links by a list of patterns provided by us.

For the end-user it would mean. I want my crawler to follow everything which has: "/blog" or "/product" on a given website. So you don't have to write request extractors (which is time-consuming).
Of course, I understand that extracting all links from a page and filtering them, is not ideal from the performance point of view. However, I would still want to have a helper like this.
Problems:

If we want to build it, we need to bring floki back to our project, which I would want to avoid if possible.
it will be hard to switch from Floki to Meeseeks in the case if our Helpers will have Floki based code

Any advises?

@Ziinc in general I am quite close to the idea of bringing Floki back here... It can simplify these concerns quite a bit. From one side, I want to be independent, on the other hand, we can write quite a few pre-defined things:

Automatic login form
Auto new links extractions
Maybe auto items extractions, etc

We can use the dependency injection pattern to avoid adding a specific html parser as a dep.
On the dev side, we set Floki/meseeks as a dev dependency, and on the user side, the user has to define a module containing callbacks that is is required.
For example, if the user wants to use automatic link extraction using glob patterns , we can construct an xpath based on a given glob pattern on the Crawly side and pass the final xpath to the ParserInterface.list_xpath/1 callback, where the user must set the reference to ParserInterface in the config.
If much work is going to be done in this these magic features, I think defining a protocol like how Plug.Conn does would give tremendous benefits

Yes, I was thinking about it. It looks like it requires quite a lot of work to have adapters for two parsers we have now (as their APIs are different, e.g. functions names, XPath support, etc). It sounds like a bit of work. And still we need to add one of the backends.
I can play with something like Code.loaded? Floki to either allow using a parser or to raise an exception. However I don't see benefits comparing to just including Floki to the list od deps.

The onus for managing the html parsing dep should be on the end user, as managing adaptors for both libraries would be too much work on our side and too restrictive on the user side.
If we go with user defined adaptors, we won't have to manage conditional dep compilation, which seems quite tricky and troublesome when I did a forum search. It also makes these an opt in feature, which for many people they might not even use

Sorry not quite understood you

I see three possible way to implement such helpers:
1. Through a user-defined parsing interface that implements required parsing callbacks
 # User's config

     config :crawly,
         parser: MyHtmlParser
         # ...

 # Crawly source code
 defmodule Crawly.Extractors do
     def extract_urls(body, glob) do
        # Crawly has no html parser dependency, obtain user definedmodule and try to extract urls
        # obtain the parser module, defined in config with `parser: MyHtmlParser`
        parser = Crawly.Utils.get_settings(:parser)
        xpath = parse_glob_pattern(glob)
        # call function based on mfa at runtime, return requests
        apply(parser, :list_xpath,[xpath])
        |> build_requests()
     end
 end

 # User's source code
 # User's app depends on Floki/Meeseeks or Jason/Poison
 defmodule MyHtmlParser do
     @behaviour Crawly.Parser
     import Floki
     import Jason
     @impl true
     def list_xpath(bla), do: Floki.parse(bla)
     @impl true
     def find_json(bla), do: Jason.parse(bla)
 end

 # User's spider
 defmodule MySpider do
     def parse_item(response) do
     requests = Crawly.Extractors.extract_urls(response.body, "/products/*")
     [requests: requests]
     end
 end

Pros:

most freedom
less maintenance

Cons:

user has to implement the callbacks that they want (but is it really a drawback though? more control over parsing process)

2. Through Crawly-defined parsing interface that uses a Crawly-decided html parser
 # Crawly source code
 defmodule Crawly.Extractors do
     def extract_urls(body, glob) do
        # Crawly has dependency on Floki, use directly, do floki related stuff. Simplifying with example functions
        glob
        |> parse_glob_pattern()
        |> Floki.find_urls_from_given_pattern()
        |> build_requests
     end
 end

 # User's spider
 defmodule MySpider do
     def parse_item(response) do
     requests = Crawly.Extractors.extract_urls(response.body, "/products/*")
     [requests: requests]
     end
 end

Cons:

stuck with 1 html parser, user has no option to override with different html parser (e.g. meeseeks)

3. Through Crawly-defined parsing interface that uses a user-decided html parser
    config :crawly,
        html_parser: Meeseeks,
        json_parser: Jason
        # ...

 # Crawly source code
 defmodule Crawly.Extractors do
     def extract_urls(body, glob) do
        # Crawly has no Meeseeks/Floki, need to check which html parser is given
        xpath = parse_glob_pattern(glob)

        # this may not actually compile on the user side, since they might not have Floki/Meeseeks
        # will need to do some conditional compilation magic to ensure code can compile
        cond do
            Code.loaded?(Floki) ->
                # floki specific code
                Floki.find_urls_from_given_pattern()
            Code.loaded?(Meeseeks) ->
                # meeseeks specific code
                Meeseeks.find_urls_from_given_pattern()
            true ->
                Logger.error("No supported html parser is provided and compiled.")
                []
        end
        |> build_requests
     end
 end

 # User's spider
 defmodule MySpider do
     def parse_item(response) do
     requests = Crawly.Extractors.extract_urls(response.body, "/products/*")
     [requests: requests]
     end
 end

Cons:

need to maintain library-specific code = more work for us
conditional compilation required

In my replies, i was talking about why option 1 is preferable as compared to 2 and 3.

Heh :(.
Actually I don't want to force people writing any extra code. E.g. adapters or anything like that. In any case the conversation was quite useful, as I think I will follow the hybrid idea.
So I see it done like this:
if Code.loaded?(Floki) do
   do_extract_urls(page)
else
  Logger.error("General purpose extractor relays on Floki")
end

I think it will be quite simple to start with. Then we can play a bit more with the idea of having builtin parsers.

No issues with the hybrid approach, it is what quite a few frameworks use for handling json parsing (phoenix for example, off the top of my head).
I only worry about maintenance, like the what-if scenario where there are breaking api changes in a library between versions. Then we'd have to maintain two different pieces of code for one library plus check for the api version to know which piece of code to use

I will close this one, as it's been open for years, and no one has had time or need to lead the work.


remove selected qf element

Is your feature request related to a problem? Please describe.
Remove selected QF entry - with dd (or other key)
Describe the solution you'd like
Here is code that should work. I wish this was build-in function in bqf - so we could easily remove selected elements
https://stackoverflow.com/a/48817071/13588868

Use <tab> to sign the single or multiple items, and then press zN. I think this filter way is better than the link you provide.
BTW, You can remap zN to dd.

Hi,
I tried zN and lua require('bqf.filter.base').run(true) and nothing seems to happen.

Hi, I tried zN and lua require('bqf.filter.base').run(true) and nothing seems to happen.

No idea why, but work for me. Open a new issue with mini.lua


Feature loading old data second iteration

Made changes into header.hpp, header.cpp, imagesHeader.hpp, languages.hpp, main.cpp, style.cpp and style.hpp to implement the feature mentioned in the Loading old data, second iteration #160 issue.
code cleanup, refactoring and improvements

Testing the application a second bug occures. When taking a measurement and also having an old file selected, this file is listed as a device in the saving menu.


Is this endpoint still valid? It returns 404

Kindly take a look at it,

https://nubaoi.com/verify or the one with code same error copied from your documentation, but the test on your try it works, which endpoint is that one pointing to

Hey there, could you kindly take a look at this documentation on how to get started?
You can find it at https://maylancer.org/docs/nuban/2.0/introduction/getting-started.

Tried the endpoints in the tutorial and got the error above
This page isn’t workingnubapi.com redirected you too many times.
[Try deleting your cookies](https://support.google.com/chrome?p=rl_error&hl=en-GB).
ERR_TOO_MANY_REDIRECTS

Hey there, could you kindly take a look at this documentation on how to get started? You can find it at https://maylancer.org/docs/nuban/2.0/introduction/getting-started.

Good day, the link(s) from the Documentation link don't seem to be working no more

https://nubapi.com/register returns...
"
Secure Connection Failed

An error occurred during a connection to nubapi.com. Peer reports it experienced an internal error.
Error code: SSL_ERROR_INTERNAL_ERROR_ALERT
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.

"
the others too return the same


Pr for Issue #15

@Sonali12920
Pr for issue #15 .
Output:

It looks nice but it will be great if you can shift main items of the navbar to the left, right after the logo, leaving some space between the logo and the main items.

@Sonali12920
Edited the navbar accordingly kindly check


Use simple implementations for some weak ref table funnctions

So I can't explain this one well...  However on the 1.9 branch, on our android devices we had a bunch of memory corruption issues in the arc weak reference table.  I managed to track a few of them down by compiling and running our software under Addresses Sanitizer on armv7-a arch devices.
There seemed to be a hash table bug, and perhaps something related to these functions.  I swapped out the the implementations with what's suggested in the arc spec and stability improved.  I'm not sure what the performance impact was however.

I added the text relocation fix as well to msgSend on arm32.  I'm not 100% sure but it may only work on ELF assemblers..


Chinese word convert issue

When i convert my JSON  to CSV, if the header is chinese word, it will become garbled. This really confuse me.

Could you give an example which causes your problem?
the parser should work under utf8 encoding which should support Chinese words no problem.
~K

Maybe i use wrong method dealing with Chinese word, now i can work it in right way.
3q~

i use the code like below,
//const csv=require('csvtojson')
//csv()
//.fromFile(csvFilePath)
//.on('json',(jsonObj)=>{
//  console.log(jsonObj)
//})
//.on('done',(error)=>{
//	console.log('end')
//})
my csv is like below
地区,电话数,程序数,网购数,总数
北京市，100,200,300,400
石家庄,101,201,301,401
天津市，2,2,2,2
唐山市3,3,3,3

Hi,
It looks like your csv data mixed Chinese comma with normal commas. I would suggest you to process your data with following code:
const csv=require('csvtojson')
csv()
.preRawData((csvRawData,cb)=>{
	var newData=csvRawData.replace('，', ',')
	cb(newData);
})
.on('json',(jsonObj)=>{

});

You will need to keep your delimiter consistent across the csv data.
~Keyang


Show user name and profile image

I installed the plugin and works fine, but I have a question, could I show the user profile image and name?
You could write me in spanish too.
thanks you

Sorry for the late response!
At this moment the library does not have that functionality, but let me know your specific use case and I can help you with a workaround to accomplish that.
I mean, do you want to show the user profile image and name under every photo, or just show the profile image and name, not the photos.
Thank you!

Hello. Trying to get the plugin to work but keep getting an error: Uncaught TypeError: Cannot read property 'length' of undefined
Any help is appreciated.

Hi @thedesigncore
Please make sure you have followed this steps:
How to get Instagram API access token and fix your broken feed
Also replace your accessToken, clientID and username in this Codepen to see if is working:
Example Codepen
If is not working save it and share it here.
Regards,

Thanks for your reply!
I followed all of the directions except I used http://instagram.pixelunion.net http://instagram.pixelunion.net/ to generate the access token.
Will that not give me the same results?

Danny

On Aug 7, 2017, at 6:42 PM, Adrian Quevedo<EMAIL_ADDRESS>wrote:
Hi @thedesigncore https://github.com/thedesigncore
Please make sure you have followed this steps:
How to get Instagram API access token and fix your broken feed https://github.com/adrianengine/jquery-spectragram/wiki/How-to-get-Instagram-API-access-token-and-fix-your-broken-feed
Also replace your accessToken, clientID and username in this Codepen to see if is working:
Example Codepen http://codepen.io/adrianengine/pen/YNRvyV
If is not working save it and share it here.
Regards,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/adrianengine/jquery-spectragram/issues/59#issuecomment-320809948, or mute the thread https://github.com/notifications/unsubscribe-auth/AAky3D5t6_V5vktLv6Pibu2_YXrLGG1gks5sV6DhgaJpZM4OX_gc.

I got it working!
Apparently http://instagram.pixelunion.net http://instagram.pixelunion.net/ will not do the trick.
Thanks for your help and sorry to bother you.

On Aug 7, 2017, at 6:42 PM, Adrian Quevedo<EMAIL_ADDRESS>wrote:
Hi @thedesigncore https://github.com/thedesigncore
Please make sure you have followed this steps:
How to get Instagram API access token and fix your broken feed https://github.com/adrianengine/jquery-spectragram/wiki/How-to-get-Instagram-API-access-token-and-fix-your-broken-feed
Also replace your accessToken, clientID and username in this Codepen to see if is working:
Example Codepen http://codepen.io/adrianengine/pen/YNRvyV
If is not working save it and share it here.
Regards,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/adrianengine/jquery-spectragram/issues/59#issuecomment-320809948, or mute the thread https://github.com/notifications/unsubscribe-auth/AAky3D5t6_V5vktLv6Pibu2_YXrLGG1gks5sV6DhgaJpZM4OX_gc.


added a the clamp method in an extension to closedrange

...and use it dynamicsprocessor

Awesome, love stuff like this, keep them coming!


Update site-design-rest-api.md

Category

[x] Content fix

What's in this Pull Request?
Content fixes & improved formatting of "Notes".

Docs Build status updates of commit 0dd788f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/declarative-customization/site-design-rest-api.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit cf3d04d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/declarative-customization/site-design-rest-api.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Removed in_connectivity_shutdown from RR

It's redundant. In addition, p->shutdown had to be set to true when the policy shutdown due to all its subchannels going into SHUTDOWN. Previously, only p->in_connectivity_shutdown was set, but wasn't being checked as part of the rr_connectivity_changed_locked, which would cause crashes if that callback function were invoked after the policy had shutdown due to all subchannels going into SHUTDOWN.

[microbenchmarks] Performance differences noted:
Benchmark                                                                               atm_cas_per_iteration    cpu_time    real_time
--------------------------------------------------------------------------------------  -----------------------  ----------  -----------
BM_PumpStreamClientToServer<InProcess>/256k                                                                      -10%        -10%
BM_PumpStreamClientToServer<InProcess>/32k                                                                       -13%        -13%
BM_PumpStreamClientToServer<InProcessCHTTP2>/32k                                                                 -7%         -7%
BM_PumpStreamServerToClient<InProcess>/32k                                                                       -6%         -6%
BM_StreamingPingPong<InProcess, NoOpMutator, NoOpMutator>/256k/2                        +6%
BM_StreamingPingPong<InProcess, NoOpMutator, NoOpMutator>/32k/1                                                  +5%         +4%
BM_StreamingPingPong<InProcessCHTTP2, NoOpMutator, NoOpMutator>/256k/2                                           +4%
BM_StreamingPingPong<MinInProcess, NoOpMutator, NoOpMutator>/32k/2                                               +5%         +6%
BM_StreamingPingPongMsgs<InProcess, NoOpMutator, NoOpMutator>/32k                                                +9%         +10%
BM_StreamingPingPongMsgs<MinInProcess, NoOpMutator, NoOpMutator>/32k                                             +8%         +8%
BM_StreamingPingPongWithCoalescingApi<InProcess, NoOpMutator, NoOpMutator>/256k/1/1                              +14%        +14%
BM_StreamingPingPongWithCoalescingApi<InProcess, NoOpMutator, NoOpMutator>/32k/1/1                               +12%        +12%
BM_StreamingPingPongWithCoalescingApi<InProcess, NoOpMutator, NoOpMutator>/32k/2/1                               +8%         +8%
BM_StreamingPingPongWithCoalescingApi<MinInProcess, NoOpMutator, NoOpMutator>/256k/1/1                           +5%         +5%
BM_UnaryPingPong<InProcess, NoOpMutator, NoOpMutator>/0/2M                                                       +11%        +11%
BM_UnaryPingPong<InProcess, NoOpMutator, NoOpMutator>/0/32k                                                                  +4%
BM_UnaryPingPong<InProcess, NoOpMutator, NoOpMutator>/32k/32k                                                    +7%         +7%
BM_UnaryPingPong<MinInProcess, NoOpMutator, NoOpMutator>/32k/32k                                                 +4%         +5%

Corrupt JSON data (indicates timeout or crash):
    bm_fullstack_trickle.BM_PumpStreamServerToClient_Trickle_2M_32k.opt.new: 1

[trickle] No significant performance differences

Issues #12307 #12312 #12313


Synthesized accessor cleanup

While finishing up my patch to avoid circular declaration checking, I noticed some crazy validateDecl() recursion while validating accessors. This patch tries to clean that up.

@swift-ci Please smoke test


HA with Thanos using Receive

Still under testing

Check this for load balancing https://pspdfkit.com/blog/2018/how-to-use-docker-compose-to-run-multiple-instances-of-a-service-in-development/


Update README

New screenshot, running instructions, e.t.c.

Finalized in commit https://github.com/timothy-makobu/githubstars/commit/1e7d43447920c8bc5a0ab6c9fbc82b86a81f9d0b


Fix behavior of schemaForClassName: and objectSchema

Addresses https://github.com/realm/realm-cocoa/pull/4039#issuecomment-244513503.
@jpsim

This looks ok to me, but I'd feel more comfortable if @tgoyne signed off.

@tgoyne what do you think we should do with this?

Bump @tgoyne.

Closing as it's not clear we actually want this.


Some metrics are missing from https://paperswithcode.com/sota/question-answering-on-squad11

Similar to https://github.com/paperswithcode/sota-extractor/issues/25, check https://paperswithcode.com/sota/question-answering-on-squad11, but found:

Now it gets fixed, closed :)


Update (bulk delete and touch) relationships atomically

I have an example schema like this:
definition user {
    relation isin: domain
}

definition domain {
}

In this schema a user is only allowed to be in a SINGLE domain at a time!
Let's say I have the following relationship existing in the database:
user:u1#isin@domain:d1

Then my application generates an event, that u1 now should belong to d2 so I want to update my spicedb relations accordingly in an atomic way.
This could be done simply, by calling: (pseudocode for grpc)
PermissionService.WriteRelationships({
    operations: [
        { operation: DELETE, relationship: "user:u1#isin@domain:d1"},
        { operation: TOUCH, relationship: "user:u1#isin@domain:d2"},
    ]
})

Of course only if you know the previous domain id when you are creating the grpc request for the delete. But my application cannot be absolutely sure that spicedb is fully in sync with it's previous state, so the above can result in an error if for some reason "user:u1#isin@domain:d1" was not there in spicedb. Maybe some other subsystem modified it in spicedb and the caller did not know about it.
My intention is that I want to set spicedb to the new state whatever the old state was in it. So I have 2 options:

read the previous relationships first with ReadRelationships and then generate the DELETE + TOUCH operations using the result of the READ as the input of the DELETE(s), but the READ operation could be slow and it would not be atomic anymore
BULK_DELETE with a RelationshipFilter "user:u1#isin@domain:*" so it deletes all isin relations for this specific user then perform just a TOUCH for the new state

PermissionService.DeleteRelationships({
    relationshipFilter: "user:u1#isin@domain:*"
})
PermissionService.WriteRelationships({
    operations: [
        { operation: TOUCH, relationship: "user:u1#isin@domain:d2"},
    ]
})

Is there a way to put a RelationshipFilter expression into the WriteRelationships somehow so it could be atomic? Is this maybe planned?
Something like this maybe?
PermissionService.WriteRelationships({
    operations: [
        { operation: BULK_DELETE, relationshipFilter: "user:u1#isin@domain:*" },
        { operation: TOUCH, relationship: "user:u1#isin@domain:d2"},
    ]
})

What do you think?

@henkosch 👋🏻 thanks for bringing this to our attention. What datastore are you using? A few options occur to me:

make DELETE in the WriteRelationships idempotent, so that if the relationship does not exist it does not fail
have you application do a DELETE+TOUCH using one or more Precondition that makes sure the domain exists (or that it does not, if that was determined in a previous non-atomic read). If it does not, application would need to retry operation, doing a READ again and adjusting the WriteRelationships request.

Enabling a bulk delete operation sounds like a potential interesting addition, although it may be challenging . We already support that in DeleteRelationships RPC method. We could explore adding a RelationshipFilter to RelationshipUpdate, or a new type of RelationshipUpdate_Operation. @josephschorr thoughts? I guess if we implemented such a thing, there wouldn't need to mantain DeleteRelationships RPC anymore?

@vroldanbet Thank you! We're using PostgreSQL, so as I saw it in the source code it uses the Serializable transaction isolation level inside the WriteRelationships RPC service. As for the first two options, you have mentioned, those would only solve the problem partially, so that the new relationship would be surely written to the database whatever the previous value was, but it would not clean up any remaining old relationships from there, to keep the constraint that a specific user should have only one isin relation at a time to a domain.
An other option could be to create BeginTransaction / Commit / Rollback RPC calls to manage transaction boundaries from the caller application, but I doubt that it would be worth keeping a db connection alive across multiple RPC calls, not to mention a lot of challenges it would bring to the architecture.
Adding the RelationshipFilter to the RelationshipUpdate RPC sounds really good to me! That would allow all sorts of data modification operations to run in a single database transaction without introducing too much complexity. Do you see any challenges with it?

those would only solve the problem partially, so that the new relationship would be surely written to the database whatever the previous value was, but it would not clean up any remaining unknown old relationships from there for the same user, to keep the constraint that a specific user should have only one isin relation at a time to a domain.

right, my assumption was application code would be responsible to identify the domain the user belongs to, and then turn that into a Precondition. Because all of this happens transactionally, if between the app reads the state and the SpiceDB tx is executed anything changed the Preconditions would catch it:
1. Make sure domain A exists
2. Delete Domain A
3. Create Domain B

If any other competing transaction tries to do the same, it would have to also attempt to delete the current domain, and it would case other transactions to fail and make the client retry. If client app does not keep track of domains, then it gets tricky, you are right.
Idempotent deletes would indeed not work here, as you cannot prevent any other competing transaction from deleting the domain first, leaving the second transaction attempting to delete a transaction no longer exists.

An other option could be to create BeginTransaction / Commit / Rollback RPC calls to manage transaction boundaries from the caller application, but I doubt that it would be worth keeping a db connection alive across multiple RPC calls, not to mention a lot of challenges it would bring to the architecture.

We've been exploring this option as a solution to the "dual-write problem" by implementing X/OpenXA spec or our own 2PC API. This could help you indeed, although I don't think we can pull this off any time soon in a small PR 😄

Adding the RelationshipFilter to the RelationshipUpdate RPC sounds really good to me! That would allow all sorts of data modification operations to run in a single database transaction without introducing too much complexity. Do you see any challenges with it?

I don't see any challenges but I'm new to the codebase so I may be overlooking something 😅 I like the idea because I feel the most common case would be transactional operations that combine writes and deletes, and it would allow us to use a single API method. Let's wait for other folks from the authzed team to chime in

Could also use a oneof, but that would break the generated code (while maintaining API-level compatibility). The other consideration is overlap in the transaction: what happens if you add a relationship in an update, then delete it via the bulk filter?

what happens if you add a relationship in an update, then delete it via the bulk filter?

I think that is why the OPERATION_DELETE's are executed before the OPERATION_CREATE and the OPERATION_TOUCH in the current implementation. See: https://github.com/authzed/spicedb/blob/53c75a218daed0b5ea8d2ccd2fa21c780dbe963b/internal/datastore/postgres/readwrite.go#L125
The final order could be:

Transaction start
Bulk deletes
Individual deletes (+ Touch)
Creates (+ Touch)
Transaction end

Actually, that's just an implementation detail. In the current code, if you set an update over the same relationships, an error is raised: https://github.com/authzed/spicedb/blob/main/internal/services/v1/relationships.go#L166
This would have to change for the filter-based approach and we'd have to determine what the ordering meant, if any.


feat: implement automatic retry for resumable uploads

Plumb through the necessary items to allow retrying to take place in WriteStrategy.FlushOnEveryFlusher#flush.
Update corresponding builders along with this to pass through the necessary items.
Refactorings

Move {Unbuffered,Buffered}{Direct,Resumable}UploadBuilder classes to be nested in their logical "parent builders" to allow closing over fields set at the higher level
Move GrpcTransformPageDecoratorTest.java#retryingDeps -> TestUtils#defaultRetryingDeps

Thanks for the review!


Update Check Enforcer dependencies.

This PR updates the dependencies for Check Enforcer. My primary goal was to eliminate dependency errors from Azure Identity but it was time to do a refresh across all our dependencies. Doing this as a feature branch so we can test in staging to make sure there are no issues on a live function host.

/check-enforcer reset

/check-enforcer reset

/check-enforcer reset

/check-enforcer reset

/check-enforcer evaluate

Been running smoothly for 24 hours. Merging.


add nth angle calculator

With reference to issue #1604
Added nth angle calculator

@sairish2001 Idk why i cant solve merge conflicts kindly help

Thank you very much @sairish2001


Investigate jQuery 3

It would be easier to do this first on here than on the main site, I think.

This is unnecessary, as the main site is already running jQuery 3.x at this point and we could just copy whatever it's doing if we could get the front end codebase to be more similar.


registered request linked to ushahidi

@naveenpf  - can we use a toplevel project management repo where we report the issues ? ie like this https://github.com/raksha-life/Project-Management/

So all issues across multiple repos will be in one location
Further when we add more micro-services, it will make our life easier

suggestions welcome ...


V1 gatsby-node __refresh

Hi,
I'm trying out V1 as I hoped it may solve a problem I was having with master whereby content generated when gatsby-node runs does not get updated when the __refresh url is called, but it looks like this hasn't changed in v1.
Normal pages do get updated when the __refresh endpoint is called, which is great as it means we can have a simple "refresh" button in the dev version of the site, and see changes in prismic data straightaway. But, content generated by gatsby-node whilst updated in the .cache/json folder does not reflect the changes in the app.
Also, if I force a refresh in the app by hitting the "refresh" button which in turn calls the __refresh endpoint and then re-run a query in graphql IDE it does show the updated content - it's just not reflected in the rendered page.
Ofc, if I re-run gatsby develop then the content is updated in the app.
I have tried this approach with gatsby-contentful-source plugin against a CF space using the preview API and the above works. I can be within the app, running on gatsby develop and hitting the __refresh endpoints re-fetches the content and updates the page to show the changes.
Am I missing something? Is this by design? Or, is this something that may be added later?
Many thanks
JR

Good to hear everything is working. 👍
I actually had no idea the __refresh endpoint was available! I was able to manually POST to the endpoint, but where is that button you mentioned?

Hi,
I know, I was surprised when I found the __refresh endpoint, I'd been after a solution for our content authors to see the site with fresh content and didn't really want to use the prismic token + cookie preview approach so was very pleased when I found this
As for the button, all I've done is add a button in the layout page that on click just calls the endpoint. You have to have the ENABLE_GATSBY_REFRESH_ENDPOINT=true env variable set when you launch gatsby develop for it to work, but then all you need is:
<button onClick={() => { fetch('/__refresh', { method: 'post' }) }}>
 refresh
</button>

Loving the new V1 features btw - awesome work 👍


Tracking Token Usage

Is your feature request related to a problem? Please describe.
I need to keep track of my various client's token usage. The OpenAI output has completetion_tokens in the following format:
“prompt_tokens”: 123,
“completion_tokens”: 55,
“total_tokens”: 178
And it would be super cool if those could be in the output variables.
Describe the solution you'd like
program()["completion_tokens"] = 81 etc.
Describe alternatives you've considered
Tokenizing the input and output. Could not find a way to get the raw input and output going to OpenAI to count the tokens.
Additional context

any updates?

I need this as well.

Great suggestion! Out of curiosity, if guidance needs to make multiple API calls across a program, would you prefer a granular per-call breakdown or just a simple aggregation of all the calls?

I would like to have this feature as well.  I tried to see if I could add it myself, but to my surprise in chat complete streaming mode, when I print the results of the openai response, the 'usage' object is missing.
So then I tried a second approach (kind of bad): calculating the tokens using the prompt and final response (probably not what everyone wants, but would work for me) but I was unable to figure out how to return the data in streaming.
Any hints on how to do this?

+1, would love to also be able to get the prompt_tokens prior to executing, so that we can detect how many tokens the completion could have (for error handling)

100% agree that this would be super useful. I wonder if it would be useful to have a callback that is called after each new LLM call. This way you can keep track of a running total, and can bail on the execution if needed.

Bump. This would be very useful to have.

+1, would be mega-useful!

+1 here too, i'm trying to track latency and token counts to compare different prompts guidance programs

Has there been any progress?
I skimmed pull requests and found nothing.


question about multi variants/versions

Hello,
I have a question about variants,I don't know how to set the variants in packages.py when the plugin have more than 1 version/variant.
For example,I have a plugin have  version 1.0 and 2.0 and also this plugin works for maya2015 and maya2016,and I also need the platform as variants.
current disk structure:
/rez/packages/foo
|-- 1.0
|   |-- platform-windows
|   |   |-- arch-AMD64
|   |   |   |-- os-windows-6.1.7601.SP1
|   |   |   |   |-- maya2015
|   |   |   |   |-- maya2016
|-- 2.0
|   |-- platform-windows
|   |   |-- arch-AMD64
|   |   |   |-- os-windows-6.1.7601.SP1
|   |   |   |   |-- maya2015
|   |   |   |   |-- maya2016
I don't know how to set the packages.py or what is the best way to setup the disk structure.
Thanks,
Lu

I'm just another user, but I can speak to what we've done.
Our disk structure is basically the same, though personally I'd change the maya version strings:
$REZ_PACKAGE_PATH/
    [package name]/
        [package version]/
            platform-[platform type]/
                arch-[cpu architecture]/
                    os-[os release version]/
                       maya-[maya version number]

And the package.py file would include this:
name = [package name]
version = [package version]
variants = [
    [
        'platform-[platform type]',
        'arch-[cpu architecture]',
        'os-[os release version]',
        'maya-[maya version number]',
    ],
    [
        [other variants ...]
    ],
]

Basically you're saying that "this version of my package runs inside the cumulative environment created by this variant, and does not run in any other."

@michaelmovies
Thanks for you reply.
Yes,our disk structure and package.py are the same,but on windows when I type
"rez-env package-version",I will get the error:"rez: PackageFamilyNotFoundError: package family not found: maya".If I remove the maya version in my disk structure,it works fine.

Ahh. My only guess for how that happens is if you do you not have Maya itself installed as a package.  Is that the case?
If it is, each part of a "variant" is, by definition, a package.  The Platform, Arch, and OS packages are given to you "for free" because Rez knows how to suss them out from the environment (that's why you can "rez bind" them), but unless you install Maya as its own package and with its own versions then Rez cannot know about the "maya" package family, hence it cannot resolve a solution for you.
I was assuming you'd already installed maya as a Package and your disk structure was specific to a new package with variants.  Your disk structure should then look like so:
/rez/packages/maya/
    2015/
       package.py
       [...]
    2016/
        package.py
        [...]
/rez/packages/foo
    1.0/
        package.py
        platform-windows/
            arch-AMD64/
              os-windows-6.1.7601.SP1/
                  maya-2015/
                     [...]
[... and so on ...]

Does that help?

The maya package.py, by the way, would only need variants for platform, arch, and os ... because any given Maya .exe file will have been compiled against those three things. In other words giving Rez the ability to know which "variant" of Maya to use (and therefore where to install the actual .exe files) means letting Rez "know" about the context of platform + arch + os ... but any given plugin of Maya is also dependent / related / compiled to a specific version of Maya that is also within that os ... which is why we add the extra maya-version level to the variant encapsulation.  The point is that the "variants" describe a file structure of where executable files that will work in the context of that variant are to be found.

@michaelmovies
Thank you very much,It's really helpful。
Now I have create a "maya" package with platform\arch\os and only put the shortcut inside it,everything works fine now.

Closing; please direct any future questions to the google group, thx: https://groups.google.com/forum/#!forum/rez-config


getsystemlanguage doesn't work for me

getSystemLanguage() is not working for me, at all (i'm on linux ubuntu)
even on the demo page http://clientjs.org/ it says
Your Result: and it's empty
sad :(

This is fixed in the current master version.

Please try out the new release (https://github.com/jackspirou/clientjs/releases/tag/v0.2.0). Feel free to reopen this ticket if you still have problems.


Remove GoogleUtilities from repo

Removes GoogleUtilities from the repo now that it has been moved to https://github.com/google/GoogleUtilities
Pre-release integration testing with Firebase should now be done via the SpecsStaging repo or path specifications in Podfiles.
#no-changelog

TODO: figure out cmake rule adjustments to find GoogleUtilities headers and solve failures like https://github.com/firebase/firebase-ios-sdk/runs/1714309783?check_suite_focus=true#step:6:3169

TODO: figure out cmake rule adjustments to find GoogleUtilities headers and solve failures like https://github.com/firebase/firebase-ios-sdk/runs/1714309783?check_suite_focus=true#step:6:3169

Rebased after #7324 addressed the cmake build transition

Rebased after #7324 addressed the cmake build transition


Adding support for SSD1306 OLED display with 7-pin I2C/SPI

The existing code only supports SSD1306 display with 4-pin.
But there is a version with 7-pin I2C/SPI. For this version it is necessary to initialize the pin - RES.

Description
Adding support for SSD1306 OLED display with 7-pin I2C/SPI for only I2C.
Description will be available on June 13-17 at the link - post (rus).

Motivation and Context

Fixes

How Has This Been Tested?

VS 2019 Community Edition on Windows 10
ESP-WROOM-32

Screenshots

Types of changes

[x] Improvement (non-breaking change that improves a feature, code or algorithm)
[ ] Bug fix (non-breaking change which fixes an issue with code or algorithm)
[x] New feature (non-breaking change which adds functionality to code)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Config and build (change in the configuration and build system, has no impact on code or features)
[x] Dependencies (update dependencies and changes associated, has no impact on code or features)
[ ] Unit Tests (add new Unit Test(s) or improved existing one(s), has no impact on code or features)
[x] Documentation (changes or updates in the documentation, has no impact on code or features)

Checklist:

[x] My code follows the code style of this project (only if there are changes in source code).
[ ] My changes require an update to the documentation (there are changes that require the docs website to be updated).
[x] I have updated the documentation accordingly (the changes require an update on the docs in this repo).
[x] I have read the CONTRIBUTING document.
[ ] I have tested everything locally and all new and existing tests passed (only if there are changes in source code).
[ ] I have added new tests to cover my changes.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: devdotnetorg sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@devdotnetorg any chance you can resume work on this? It can get a bit behind the develop branch and it's more work... 😉

@josesimoes Yes, I will finish the work, but only at the end of this week.

@devdotnetorg as we're now a bit more than the end of the week you mentioned, any chance to move it forward? Thanks!

@Ellerbach I will likely close the change-ssd13xx branch and create a new one to avoid merge issues

@devdotnetorg are you still working on this? Any help needed?

@Ellerbach I created a theme Adding support for SSD1306 OLED display with 7-pin I2C/SPI V2.


Lapack and fortran packages

I noticed that the installation procedure stops because of lapack and fortran packages are missing if
git clone https://github.com/wroscoe/donkey donkeycar
pip install -e donkeycar

You can get them with:
sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install gfortran

Thanks. This shouldn't be happening if you're using the disk image on the Pi. Reopen this if you run into it again.


refact: add muxer for ivf, this is a start point for other muxer like mp4, webm

Coverage decreased (-0.2%) to 83.114% when pulling d23ad063f2ae89e45b6b45766386a1c911ade286 on xuguangxin:ivf into c3c35e944c1768ec0cae0834f3f508bfbe8a2365 on xiph:master.


dev: Improvement to the environment

This PR addresses issues with

The reavaluation of the dev shell with direnv when modifying flake modules
The refactor of the tests command

@Mergifyio queue


Fix #839: for each of declaration with auto-let

Looks like the Node loaders update is becoming a priority 😬


Duplicates infotons

On new dataPath found duplicate infoton.
One infoton with two "current":true. with different UUID.

duplicate of #465


create a user-page view

Based on user story: https://github.com/sopra-fs22-group-36/screw-your-neighbor-server/issues/15

On the main user page is button to see my performance.
When the player is logged in, he has the option of clicking on his profile which opens a window that lets him see his game performance (minimum: Games won, games lost) and important account information (minimum: username and Creation date).

Invalid, while #14 and #15 closed. Further information there.


Error when use mmdet.ops.dcn.DeformConv. RuntimeError:  invalid spatial size of offset, expected height: %d width: %d, but got height: %d w idth: %d25385076

Hi, I define my own block in mmdet/models/backbones/resnet.py and I use mmdet.ops.dcn.DeformConv as follows:
from mmdet.ops.dcn import DeformConv

self.conv2 = DeformConv(planes, planes, kernel_size=3, stride=stride, padding=1, dilation=1)
def forward(self, x):
    ...
    ...
    out = self.conv2(out, offset)

I get an error when run out = self.conv2(out, offset).
Error traceback:
 File "/data2/mmdetectionV2/mmdet/models/backbones/resnet.py", lin
e 795, in forward
    out = self.conv2(out, offset)
  File "/home2/anaconda3/envs/mmdet2/lib/python3.7/site-packages/torch/nn/modules/module
.py", line 550, in __call__
    result = self.forward(*input, **kwargs)
  File "/data2/mmdetectionV2/mmdet/ops/dcn/deform_conv.py", line 251, i
n forward
    self.dilation, self.groups, self.deformable_groups)
  File "/data2/mmdetectionV2/mmdet/ops/dcn/deform_conv.py", line 58, in
 forward
    cur_im2col_step)
RuntimeError: invalid spatial size of offset, expected height: %d width: %d, but got height: %d w
idth: %d25385076

I have checked the input of DeformConv:
out.shape is torch.size([2, 512, 50, 576)
offset.shape is torch.size([2, 18, 50, 76])
When forward DeformConvFunction in deform_conv.py, the offset.shape is still [2, 18, 50, 76] before line 58.
I want to know what is the meaning of '%d25385076' ?  '5076' seems represent the h and w dimension of offset and the number will change with the shape of offset.

@pancong18 I have the same problem,Did you solve it?

same error, please help.

same error! how to solve it ?

I meet the same error, please help.

same error! how to solve it ?


chore: remove unused network cdp command

We have migrated away from plain CDP devtools network events and using PW events, so removing it as its not used.

LGTM


DoneJS: Introduction to Component Concepts for docs.

We need to point out component concepts (best practices)

http://andrewhfarmer.com/react-ajax-best-practices/#2-container-components

we should also some how list diffrent methods for sharing data fully and partial between components.

@frank-dspeed, I think it makes more sense for this issue to be in either the main CanJS repo or the can-component repo, depending on whether this would be a guide or in the can-component docs.


Test-ReturnFormat doesn't drill into result with no results

Current Behavior:
The Test-ReturnFormat private function is meant to ensure that it removes the parent "data" json from a number of API responses. This works only if results are returned. If results are not returned (IE, Data is null or empty) then it returns the full total/data/hasmore result.  This then gets processed through the Object TypeName and then zero results turns into a count of 1.  This is causing undesirable results. This will in turn fail if passed to -DetailedObject
PS C:\Users\mwpreston> Get-RubrikScvmm -PrimaryClusterID local

Name Account to run as Status SLA Domain ID
---- ----------------- ------ ---------- --

PS C:\Users\mwpreston> Get-RubrikScvmm -PrimaryClusterID local | Measure-Object

Count    : 1
Average  :
Sum      :
Maximum  :
Minimum  :
Property :

Expected Behavior:
Steps to Reproduce:
Run any Get-RubrikSCVMM -primaryclusterid local on a cluster which doesn't have a SCVMM server - you will get a count of 1

Closing this based on PR #566. Reopen if needed.


InfluxQL: FormatDuration uses "u" for microsecond units

Previously, it was formatting microsecond durations without any units.
Currently, all durations must have units explicitly specified.

+1

Rebased due to merge conflict in CHANGELOG, but the code didn't change. Still waiting on a second +1 before merging.

+1


How to unsubscribe?

Hi,
The subscriber.cpp example shows how to make an infinite loop that receives messages, but how do I break out of that loop?
I'm running the subcriber in a separate thread, with a connection that is not being used for anything else.
Whenever the get_reply() function returns, it always returns 3 elements: {"message", channelname, content }. But how do I make it stop?
I tried the following in the main thread:
conn->run(command("UNSUBSCRIBE") << channelname);
That is, using the same connection that is being used by the subscriber thread. After this line of code is executed, the get_reply() function in the subscriber thread returns this: { "unsubscribe", channelname, "" }.
So, I found a way for the subcriber thread to unblock and know when to break out of the loop and return: it just needs to check if the first element of the reply is "message" or "unsubscribe".
However, now the call to the unsubscribe command in the main thread blocks forever! How am I supposed to do this then?
Thank you very much!

You can try to use append instead of run on the main thread. It should work.
About your approach, I'm just unsure about the multi-thread safety of using the same connection from multiple threads, but for sure since the subscriber is blocked on get_reply there is now other way than using another thread, an alternative can be to add some sort of get_reply_with_timeout equivalent, so the subscriber has a way to unlock itself.

I tried both approaches and had no success.

The approach with 'append' had no effect. I'm not sure how I could have done something wrong here.
To implement the timeout, I added a method 'set_timeout' to the connection class that calls 'redisSetTimeout'. Using this method after creating the connection, the get_reply() function always returns {"", "", ""} before the timeout even elapses.

Maybe I did something wrong?
Anyway, I figured out another way to do it: I just send a PUBLISH command from some other thread to wake up the subscriber thread.


[Enhancement] : the twitter logo is not updated

The logo of the twitter is not
It is the previous logo that was used by twitter before.
Expected behaviors
The logo of the twitter should be updated .

I don't recognize the screenshot yet. Feel free to contact us through Slack so we can have a chat about the logo and the problems you are encountering.

Ah I found the place! It is at the bottom of https://owasp.org/www-project-wrongsecrets/ right? Unfortunately this is something that cannot be fixed in this project/repo. It is part of the OWASP website itself, which we do not control. I will flag this with @hblankenship who is managing this.
Closing this issue as it is not part of our own project.


Docker Swarm storage layer recommendations

Hi Guys,
I was wondering how are you solving the storage layer when using docker swarm on cloud servers that don't provide any shared storage like ebs, efs or the likes.
I'm trying to avoid going to k8s but it looks like there is no simple solution to the storage problem for this particular case.
Hoping to get your thoughts

I usually I don't recommend running a postgres container.  Instead use a Cloud service provided option or a traditional postgres instance with backups etc...  for other file types leverage something like S3 or run a ceph cluster.
You can also mount network file servers within the containers directly.
I don't use docker swarm so maybe someone has some other suggestions for that specifically.

@chris-allnutt I was wondering about this also recently.
I've never deployed a cluster before. One of the thing I am worrying about would be deploying the backend and the database on different services. What do you think?
My hope would that I could use the approach here to deploy a docker swarm on Linodes (for example) as I need them.

@danieljfarrell for my current deployments I use an amazon RDS database with autoscaling and deploy my containers on ECS with autoscaling too so I don't have to worry about it.

Here's the thing. A shared storage layer, like a bucket, would normally not have enough performance to be used by databases.
If you need fault tolerance then it would probably be better to use a distributed DB, like MongoDB, CouchDB, Couchbase, ArangoDB, etc. If you need a SQL-like, then probably something like CockroachDB or TiDB.
But when using a standard SQL DB (e.g. PostgreSQL or MySQL) then I would make then run in a specific node using a label, so that they can always use the same volume.
Then you would add backups to that, maybe to the whole node or to the DB using a dump tool.
If it's not for DBs but for general files, then I would use MinIO.
Have in mind that Kubernetes doesn't solve that problem by itself. You would still add a layer of something on top, probably running on Kubernetes.