Am I using yoyo correctly?

I can’t seem to get yoyo: true functioning correctly in the latest mojs version. Example: https://codepen.io/dangodev/pen/JNGOyL.
new mojs.Shape({
  duration: 2000,
  fill: { cyan: 'limegreen' },
  radius: { 10: 25 },
  repeat: 99,
  shape: 'circle',
  x: { 0: '-500%' },
  yoyo: true,
}).play();

Am I missing something, or simply misunderstanding this option? Thanks in advance.

Hey,
Justa change yoyo to isYoyo and it'll work

@mateobadillo youda best! I’ll make a PR to update the docs I was reading.

Right all boolean properties now prefixed with is.

Glad to help!


[Copilot No. Series] Support of JSON mode for chat completion and Tools Calling Results in Message History

Enable JSON mode for chat completion, requiring "json" in messages, and maintain tool call history. This update prepares the system to return valid JSON objects as chat completions, facilitating better integration with tools and enhancing the user experience.

Summary

Adding Json Mode support to the completion
When AOAI respond with tool calling message, this message is saved in the message history, marked as tool. New function implemented to parse tool message response. When tool was called we can now add the tool result back to the chat message history in a correct format, so AOAI will respond back taking into account tool result.

Work Item(s)
Fixes #718
Fixes AB#503148

@darjoo seems you really refactored the tools calling implementation, so this PR is not suitable anymore. I will need to refactor #764 and then update this PR.
@JesperSchulz fyi

Tests added


added abs path to set_data_directory

This fixes #389 by setting the custom data directory as an absolute path.

Thanks!


Introduce ProofSchedule data structure

Work towards evm-semantics#1753
Introduce the ProofSchedule data structure that abstracts a directed acyclic graph (DAG) over several proofs that depend on each other, akin to a "proof build system" or a "proof Excel spreadsheet".
API
Initialization
A ProofSchedule is constructed from a proof_dir holding Pyk JSON-serialized proofs and a list of edges describing the structure of DAG. See ProofSchedule.__init__.
Execution
The ProofSchedule.fire_proof(proof_id: str, kcfg_explore: KCFGExplore) triggers execution of a desired proof in the graph, possible executing its dependencies. If a dependency is PASSED, it will not be re-proven.
Implementation
Internally, the DAG is stored in a igraph.Graph object. The igraph library provides extensive API for graph manipulation which we would not want to implement ourselves. The ProofSchedule already uses topological sorting and subgraph induction implemented by igraph.
Test suite / Examples
The examples are based on almost trivial (only need one simplification) Equality proofs on top of IMP.
See tests/integration/test_proof_schedule.py#test_fire_two_proofs for the most interesting example that exercises a forked DAG case, i.e. one root proof on which two branches depend. The first fire_prove method call solves the proofs 0, 1 and 2:

And the second solves 3 and 4:

This is outdated given the updates to Proof which now has a notion of subproofs.


Reorganize output directory structure

Reorganize output so that optimal_tree puts everything under a common directory with as little depth as makes sense.

Noticed some stuff as I was working on flags. Another commit to add.


Error handling for wrong formatted arguments

Example code
function test_get(req, res, next){
	if ((req.query.shiftnum != undefined)){
		console.log("happy happy happy!")
	} else {
		console.log("So very very very sad :(")
	}
	contract.shiftExist.call(req.query.shiftnum, function(error, output){
		if (error) {
			console.log("error occured")
			res.writeHeader(500, {"Content-Type": "text/plain"})
			res.write("An error occurred in the blockchain")
			res.end()

		} else {
			console.log("no error")
			res.json(output)
		}
	});
	next()
}

the shiftExist takes a uint as an argument. If i call with a string I get the error:
{"code":"InternalError","message":"new BigNumber() not a number: hello"}
and the callback function is not called. Ideally The callback should be called with a non-empty error so it can be handled gracefully.

I'll add a try-catch around the formatting for now. It'll be in the next push. We'll add something more elegant later.
That should solve big number stuff and other common things as well. You'd get an error in the callback.

implemented in 0.10.14 (i believe?). Anyways, it's in. Gonna go into more advanced type checking as well - leaving this open.


"command + shift + x" shortcut does not work on the Web

"command + shift + x" shortcut does not work on the Web

ドキュメントの詳細
⚠ このセクションを編集しないでください。 docs.microsoft.com で必須です ➟ GitHub の問題のリンク。

ID: 41ddf8ce-fda9-ee9d-d96a-801f9a2f66b7
Version Independent ID: 9aa5a49f-c440-95a8-83a1-9d38bdaeda39
Content: Microsoft Teams の既知の問題
Content Source: Teams/Known-issues.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: lolaj

@rararoro thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

@officedocsbot close


AI Robber

Instead of moving robber to the player with the most victory points, maybe move it to the player who has the best chance of getting resources.

I think this is a valid issue to be honest. I'm going to keep it the way it is for now but I think that logic makes more sense and we'll probably implement.
Keeping this issue open to remember this.

Made a note of this on our to do list. Thanks for the feedback.


Update Setup-Guide with new screenshots to reflect class name changes

Closing because the current official documentation doesn't have screenshots.


Translation into Russian and make the installer in Inno Setup.

Hi again! I want help to translate your the program on russian and make the installer in Inno Setup. Is it possible?

Glad you want to help! Translations to other languages are always very welcome. Do you need any help on getting started? You would need to translate the Resources.resx file into your language. If you haven't got much experience with .NET/ Visual Studio, there's this nice tool that you can use (either in Visual Studio or as a standalone app) to translate .resx files.
Regarding the installer: What would be the benefit of using an Inno Setup installer instead of the current MSI installer?

Ok. I installed ResXResourceManager. I have Visual Studio 2015. I only need Resources.resx then.
Inno Setup is a more flexible installer tool. Multilingual. More encrypted from antivirus software. You can combine the portable version of your program with a typical installation in one installer. My example on Inno Setup: Link

Ok. I installed ResXResourceManager. I have Visual Studio 2015. I only need Resources.resx then.

Sure, you can find the Resources.resx file in the Properties folder of the repository. Download the code here from GitHub (with git or as zip package) and load the downloaded folder into the ResX Resource Manager app (no Visual Studio needed). It should load the existing strings of the Resources.resx file into the app's table. Then you can add a new column by clicking 'Add new language'. Please ask if something is unclear.

Russian Translation

Russian Translation

Russian Translation Fix v1.1


Netlink

This will depend on updates to tinygo-drivers:netdev.  I'll send those updates out shortly.

OK I'm merging this as is to reduce noise with future commits. Pending TODOS:

default case after case netlink.AuthTypeWPA2Mixed:  worth it?
RecvEthHandle rename


Ensure 'github.com/sirupsen/logrus' is lower-case

Logrus imports should be all lower-case [1], otherwise users might
encounter errors like:
$ dep ensure
...
master: Could not introduce github.com/bitnami-labs/kubewatch@master due to a case-only variation: it depends on "github.com/Sirupsen/logrus", but "github.com/sirupsen/logrus" was already established as the case variant for that project root by the following other dependers:
(root)

[1] https://github.com/sirupsen/logrus/blob/master/README.md#logrus-

@mkmik added: In the meantime we moved to go modules and there were just too many changes, so I created this new PR and re-applied the original intent.
This PR replaces #119

GH acts silly today; I swear I saw it remapping PRs when a base branch gets merged

merged in #221


Falsely accused from We Do Raids

RuneWatch and We Do Raids does not have a case against me, but We Do Raids listed me as a "Scammer: Other"outside of PVM related content. I killed someone in (Player VS Player) wilderness area and now being accused of scamming for not splitting in PVM? Please fix this as it makes no sense.

Hey! Please reach out to We Do raids and Runewatch. I don't control the lists.

I have and they are refusing to fix it. I don't know who else to contact.

I don't control the list, so I can't help here. Sorry.

The purpose of your program is to do justice and protect people correct? Ignoring this post is the opposite.

I'm not part of runewatch or wdr. I literally can't remove you even if I could. You're asking the wrong dude.

Ok so who is the owner of runewatch so I can contact them?

@69Doug https://runewatch.com/faq


Add support for delete-unmatched

TL;DR
Similar to using gcloud storage rsync <source-folder> <bucket> --recursive --delete-unmatched-destination-objects.
Provide a mechanism to ensure that the destination bucket is an exact replica of the source folder.
Detailed design
Add an input delete-unmatched with a default of false.
Additional information
No response

Hi @craigh1015 - we don't expose every option in this action because otherwise the surface becomes unwieldy. I recommend using setup-gcloud and running that gcloud command directly instead.

Thanks, I just found setup-gcloud and was coming back here to write an update

throwing a reference of how to do it for who gets here
https://stackoverflow.com/a/68374007/10473393


2.1.0 release commit is detached from refs/heads

This is only a minor annoyance, but its detached nature means that it doesn't show up unless you fetch with git fetch --tags.
Having it merged back into 'master' would alleviate this, and also provide more valuable 'Follows' and 'Precedes' information.
We noticed this since we include the dependency using submodules.

Fixed.


Implement context logger for remaining packages

This is a follow up to #93 and implements the context-logger for the remaining packages.
Please don't merge this right now because I want to give this a review tomorrow.

Logging in cbreaker/predicates.go:53 seems possible, as it returns a closure which has access to the CircuitBreaker struct.

@heyLu Right, I have just fixed this.

Ok, the MR is now ready to merge, at least from my side.
Should I squash the commits?

Are there any plans to merge this?

Sorry about that. I just resolved conflicts. If the build passes, I'll merge this in.


(FACT-1616) merge and split identity, os, processor, kernel tests

Merge the identity fact tests into a single test file for all OS'
Merge the os, processor, and kernel fact tests into a single test for all OS'
The test will now fail if it doesn't support an operating system or version with an appropriate failure error.
This also updates our supported platforms:
+win7, +win8.1, +fedora23,24,25, +huawei, +cisco, +arista, +cumulus,
-ubuntu10.04,12.04, -centos4, -win2003, -macosx11.9

Tested on everything, including the hardware platforms (here is a subset) arista5-32a, centos7-64a, ciscoxr-64a%7Bhypervisor=vmpooler%7D, cisconx-64a%7Bhypervisor=vmpooler%7D, cumulus25-64a, debian8-32a, fedora25-32a, oracle7-64a, osx1012-64a, redhat7-64a, scientific7-64a, sles12-64a, solaris10u8-64a, ubuntu1610-32a, windows10ent-32a, windows2016-6432a

CLA signed by all contributors.

@johnduarte @LuvCurves I've updated the tests try and get the version stuff or fall back if it's not sure. The only question I have is on the Cisco and if they have anything besides ios_xr and nexus or not.

ping @johnduarte @LuvCurves


[fix] Isolate and improve performance on tagging system

CATEGORY
Choose one

[X] Bug Fix
[ ] Enhancement (new features, refinement)
[ ] Refactor
[ ] Add tests
[ ] Build / Development Environment
[ ] Documentation

SUMMARY

This PR improves the performance experienced with the tagging system, in 3 ways:

Mutations only happen if the feature flag is enabled;
The tagged_object table now has an index to improve queries;
The migration script setting the initial tags is much faster.

TEST PLAN

I deleted all tags and tag associations and ran the script. Tags were recreated correctly. This was also tested in staging with real data back in April.
I also verified that the query reported by @graceguo-supercat (https://github.com/apache/incubator-superset/issues/7807) is using the index.
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[X] Requires DB Migration.
[X] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

REVIEWERS
@graceguo-supercat @michellethomas @mistercrunch

@etr2460 I'm thinking tag update/maintenance should just be super cheap OLTP-type database operations executed in milliseconds, we just were missing the index... I think it's ok for them to be inline

@mistercrunch, can you do another pass in this PR?

Codecov Report

Merging #7858 into master will decrease coverage by 0.48%.
The diff coverage is 13.41%.

@@            Coverage Diff             @@
##           master    #7858      +/-   ##
==========================================
- Coverage   65.96%   65.47%   -0.49%
==========================================
  Files         468      469       +1
  Lines       22308    22381      +73
  Branches     2432     2432
==========================================
- Hits        14715    14654      -61
- Misses       7472     7606     +134
  Partials      121      121

Impacted Files
Coverage Δ

superset/models/core.py
81.12% <20%> (-1.9%)
:arrow_down:

superset/cli.py
37.33% <42.85%> (+0.17%)
:arrow_up:

superset/common/tags.py
9.23% <9.23%> (ø)

superset/db_engine_specs/mysql.py
34.88% <0%> (-58.14%)
:arrow_down:

superset/models/tags.py
59.4% <0%> (-30.7%)
:arrow_down:

superset/views/core.py
71% <0%> (-0.22%)
:arrow_down:

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 9b7261f...ed8bc9f. Read the comment docs.


[bug : requestIPReservation] Response structure matches multiple oneOf schemas

In case API : POST /projects/{id}/ips i.e. requestIPReservation function response structure is oneOf response between IPReservation and VrfIpReservation. Response provided by server when we try to reserve public IPv4 throws following error :
Caused by: java.io.IOException: Failed deserialization for RequestIPReservation201Response: 2 classes match result, expected 1. Detailed failure message for oneOf schemas: []. JSON: {"id":"9abf77b3-705f-4d49-84fd-f8f638ec7eb0","address_family":4,"netmask":"<IP_ADDRESS>","created_at":"2022-08-02T15:51:54Z","details":null,"tags":[],"public":true,"cidr":30,"management":false,"manageable":true,"enabled":true,"global_ip":false,"customdata":{},"addon":true,"bill":true,"state":"created","project":{"href":"/metal/v1/projects/d52cf346-cd0e-4d4f-828a-29e4c5e60f72"},"project_lite":{"href":"/metal/v1/projects/d52cf346-cd0e-4d4f-828a-29e4c5e60f72"},"assignments":[],"metal_gateway":null,"requested_by":{"href":"/metal/v1/users/d5c43ee4-676d-4098-b769-23c03626f59d"},"network":"<IP_ADDRESS>","address":"<IP_ADDRESS>","gateway":"<IP_ADDRESS>","available":"/metal/v1/ips/9abf77b3-705f-4d49-84fd-f8f638ec7eb0/available","href":"/metal/v1/ips/9abf77b3-705f-4d49-84fd-f8f638ec7eb0","facility":null,"metro":{"id":"d3d6b29f-042d-43b7-b3ce-0bf53d5754ca","name":"Dallas","code":"da","country":"US"},"type":"public_ipv4"}
        at com.equinix.openapi.metal.v1.model.RequestIPReservation201Response$CustomTypeAdapterFactory$1.read(RequestIPReservation201Response.java:154)
        at com.equinix.openapi.metal.v1.model.RequestIPReservation201Response$CustomTypeAdapterFactory$1.read(RequestIPReservation201Response.java:88)
        at com.google.gson.TypeAdapter$1.read(TypeAdapter.java:199)

JSON response is valid against both schema i.e.IPReservation and VrfIpReservation. In case of VrfIpReservation response structure contains "vrf" param which is not marked required hence above mentioned exception occurs.
Possible fix, VrfIpReservation should be update to have required param :
      "VrfIpReservation": {
         "properties": {
           "address_family": {
             "type": "integer"
           },
           "cidr": {
             "type": "integer"
           },
           "created_at": {
             "format": "date-time",
             "type": "string"
           },
           "created_by": {
             "$ref": "#/components/schemas/Href"
           },
           "details": {
             "type": "string"
           },
           "href": {
             "type": "string"
           },
           "id": {
             "format": "uuid",
             "type": "string"
           },
           "metal_gateway": {
             "$ref": "#/components/schemas/MetalGatewayLite"
           },
           "netmask": {
             "type": "string"
           },
           "network": {
             "type": "string"
           },
           "project": {
             "$ref": "#/components/schemas/Project"
           },
           "state": {
             "type": "string"
           },
           "tags": {
             "items": {
               "type": "string"
             },
             "type": "array"
           },
           "type": {
             "type": "string",
             "example": "vrf"
           },
           "vrf": {
             "$ref": "#/components/schemas/Vrf"
           }
         },
         "required": [
          "vrf"
         ],
         "type": "object"
       },

Bug 2:
Response structure schema exists inline in spec hence generates following model RequestIPReservation201Response to wrap over oneOf over IPReservation and VrfIpReservation.

Related issue post #31 when parsing response after requesting a vrf ip reservation.
Error snippet:
com.google.gson.JsonSyntaxException: java.io.IOException: Failed deserialization for RequestIPReservation201Response: 2 classes match result, expected 1.
Cause: when requesting a vrf IP reservation, Json validation for response containing vrf field succeeds for IPReservation schema as well since additionalProperties is enabled in the spec configuration.


File directory issues

Dear Oisin,
Thank you for your help with my previous issue.
I am now trying to run the code on data stored on a server and have set 'data_dir' to the appropriate pathway. However now when I run the code it seems to stall at the point where the audio files are read.
Is there any reason this may be the case? For example does the data need to be stored locally?
Many thanks and best wishes,
Henry

You could put a print statement in here to see if it's pointing to your files e.g. print(audio_files)


invalid verification_code

test.spdx.txt
sbomasm assemble -n merge -v 1 -t application -o merge.spdx.json test.spdx

merge.spdx.json
pyspdxtools -i merge.spdx.json
ERROR:root:The document is invalid. The following issues have been found:
value of verification_code must consist of 40 lowercase hexadecimal digits, but is:  (length: 0 digits)
value of verification_code must consist of 40 lowercase hexadecimal digits, but is:  (length: 0 digits)

  {
   "name": "464xlat",
   "SPDXID": "SPDXRef-Package-464xlat",
   "versionInfo": "12",
   "supplier": "Organization: ACME",
   "downloadLocation": "https://github.com/openwrt/openwrt/tree/openwrt-21.02/package/network/ipv6/464xlat",
   "filesAnalyzed": true,
   "packageVerificationCode": {
    "packageVerificationCodeValue": ""
   },
   "licenseConcluded": "GPL-2.0-only",
   "licenseDeclared": "GPL-2.0-only",
   "copyrightText": "NOASSERTION"
  }

Why creating a verification code as it does not exist in the original file?

Fixed with https://github.com/interlynk-io/sbomasm/pull/82


dockarized the project

added dockerfile to dockarized the project and also added .dockerignore file

@Vaishnavi-Patil2211  Which issue this PR is targeting for? Please create an issue and provide details on use-case and assign to this PR


InfluxDB component improvements

Description:
This PR includes two improvements to InfluxDB component:

Allows reporting some state attributes as tags to InfluxDB. Some state attributes should really be tags in InfluxDB. E.g. it is helpful to be able to group by friendly_name, or add a custom attribute like "location" and group by that. Graphs in Grafana are much easier to read when friendly names are used, and not node ids.  This commit adds an optional setting to InfluxDB config: 'tags_attributes'. Any attribute on this list will be reported as tag and not as field to InfluxDB.

Allow overriding InfluxDB measurement for each reported item separately. Bundling all items with the same "unit of measurement" together does not always makes sense. For example, both "relatively humidity" and "battery level" are reported as "%", but I'd rather see them as separate measurements in InfluxDB. This commit allows for 'influxdb_measurement' attribute. When set on node, it will take precedence over the global 'override_measurement' and component-specific 'unit_of_measurement'.

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#3054
Example entry for configuration.yaml:

influxdb:
  tags_attributes: [friendly_name, location]

homeassistant:
  customize:
    sensor.master_bedroom_temperature:
      location: 'Master bedroom'
      influxdb_measurement: temperature

Checklist:
If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass

Hi @hageltech,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

@hageltech @MartinHjelmare If this works as explained, I think this is really cool !

@MartinHjelmare thanks, I've added a commit with these small fixes.

@balloob ? That is the first time who a component will try to access to a other abstraction layer. Normaly is that solve with a list inside this component config...

@pvizeli, I've considered doing it with the list inside the component config. However, I think keeping in inside customize is easier to maintain and less brittle. Things like this are possible:
customize_glob:
  sensor.*humidity:
    influxdb_measurement: humidity
  sensor.*battery_level:
    influxdb_measurement: battery

I really think it's better than keeping essentially a list of all sensors inside influxdb config.
Moreover, other things as defined in customize are of the same nature: emulated_hue, homebridge settings, etc.

Moreover, other things as defined in customize are of the same nature: emulated_hue, homebridge settings, etc.

That will never be an argument to do / not do something. Best practices change over time.
I am not a fan of having things live in customize because it actually limits functionality. What if a user would want to have two InfluxDB components exporting to different databases? All of a sudden they will need the same config.
Another reason not to put it in customize is that it will become part of the representation of entities in the state machine. This means that it gets sent to the frontend and any other consumer of this data. None of them actually need this data.
So let's put it under the InfluxDB config. You can use the class that powers the customize with wildcards: EntityValues

@balloob: fair enough.
Thanks for the EntityValues pointer. I've moved the config from 'customize' into 'influxdb' section.  I'll update the docs PR once this one gets approved.

@balloob having two different InfluxDB databases will limit thing you can do with Grafana.
But We can still have 2 influxdb components sending to the same database.
BTW, I think the same is the Home Assistant attributes and InfluxDB format are not very compatible.
To improve that, HA attributes has to be more complex:
One attribute should be defined with a name, a value, a type (int, float, choice, ...) and a unit (and maybe some other stuff).
But I guess this kind of changes could really hard to implement.
Also, I'm an old monitoring (Nagios, Shinken, Zabbix, ...) guy, so maybe, my knowledge and experience are not suitable in home automation concepts.

@hageltech could you tell me when it's ready to test it ? If you want, I can try it on my current installation before the merge.

@titilambert It will be ready most probably tomorrow, or later tonight (EST). I'll add tests to new config options, and it seems current tests' mocked entity ids are incompatible with EntityValues, so that will have to be fixed as well.

@MartinHjelmare, I think the tests are good now.


console: remember recent log sources

I moved err_context from tasks/ into console/ as I wanted to organize code related to WithLogs in the same place and the tasks package couldn't depend on consolesink.

LGTM


[FEAT] - Other config file formats

Is your feature request related to a problem? Please describe.
EDN is pretty Clojure specific and people won't be as likely to know it.
Describe the solution you'd like
Support alternative file formats, like json or yaml for the main config file.
Describe alternatives you've considered
Nothing wrong with EDN, people just aren't as likely to know it, and there's already so many config file formats out there.

I'm leaning towards having all configuration happen through the CLI interface and discouraging direct editing. As such, I don't really see much benefit in supporting several file types, so I'm going to scrap this idea and close the issue.


Is it possible to add HDR tag like 1080p(HDR)

Is it possible to add HDR tittle in the left of the links coz in stremio PC it's hard to see weather the content is HDR or no coz it will scroll through fast
And it will be helpful to show HDR first when sort by quality is selected

I could add it to the left stream title, but I don't think sorting them first makes sense, since any quality can have HDR (720p/1080p/4k), so it would mess up sorting that way.

Left stream tittle should be cool
Sorting will be fine I guess
Many thanks


Soft links to other users' trees cannot be created with fs.symlink

Summary
Problem
The docs suggest that soft links pointed at other users' trees can be created, however the function itself does not take username as an argument, and instead just uses the current user.
Solution
Support passing in an optional username, defaulting to the current user. I've hacked up roughly this locally, and it seems to work as intended.

Fixed in version 0.36.2 @QuinnWilton https://webnative.fission.app/classes/FileSystem.html#symlink referringTo option of symlink now takes an object with an optional username.


Fixes #515 - Make it work with Django 4.1

Easy fix, Django has removed the installed property, but they check if app_config is not None. Took over that check.

Coverage remained the same at 94.485% when pulling 78149ff2f2f7ea90f3d32c49d937e53c989261d7 on marcusaram:main into c39808d0582f9cdd70e3fd4d31f3c68e99162c39 on justquick:main.


Convert to Juju plugin

Certain conventions must be followed for Jockey to become a Juju plugin.
See the Juju docs about managing plugins.
Jockey should be callable with juju jockey.

This seems simple enough if I'm reading right:

Juju will automatically search your $PATH for a file named juju-[command], and attempt to execute it with the given [args]. This mechanism is what makes plugins possible.

Perhaps the install target should generate a symbolic link to the executable -- or, should the target executable just have the juju-jockey name?

For #32, the diff to generate the static binary with a compatible name would be:
diff --git a/pyproject.toml b/pyproject.toml
index 6175c78..be46401 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -119,7 +119,7 @@ disable-upx = true
 post-build = "hooks.pyinstaller:post_build"

 [tool.poetry-pyinstaller-plugin.scripts]
-jockey = { source = "src/jockey/__main__.py", type = "onefile", bundle = false }
+juju-jockey = { source = "src/jockey/__main__.py", type = "onefile", bundle = false }

 [build-system]
 requires = ["poetry-core"]

Slightly pre-mature closing: while it generates a binary following Juju documentation, there's an issue picking it up:
I am following the instructions on creating a plugin for Juju; however, I've been hitting a wall with a snapped plugin:
# which juju-jockey
/snap/bin/juju-jockey

# echo $PATH | grep -o ':/snap/bin:'
:/snap/bin:

# juju jockey --help
ERROR juju: "jockey" is not a juju command. See "juju --help".

Even in the case where it's installed outside of the snap scope, the plugin feature fails to use the program:
# which juju-jockey
/home/jlettman/.cache/pypoetry/virtualenvs/jockey-Msi6Fc7k-py3.10/bin/juju-jockey

# juju jockey --help
ERROR juju: "jockey" is not a juju command. See "juju --help".

I've asked the Juju team for advice here.

Juju plugins are broken with the snap for Juju:
https://github.com/juju/juju/blob/3.6/snap/snapcraft.yaml#L29
They're using strict confinement.

Possible alternative route:
https://github.com/juju/juju/blob/52b8f17e45ab17ac31e5d9e5b07ebdd54428e272/snap/snapcraft.yaml#L327-L330

Hitting a snag, opened a bug: https://bugs.launchpad.net/juju/+bug/2077486

Technically, this is resolved, but the Juju snap is cooked for using plugins. There's no good way to provide the plugin to the Juju snap context because of the strict confinement Juju uses.
Unless Canonical fixes that, there does not seem to be any way to do this for the Juju snap. Otherwise, the raw Juju binary does pick up Jockey.

Good point.  I will close this issue.
Jockey will function fine as a standalone snap.  This makes Juju and Jockey less coupled, so it may make sense to switch from juju-jockey back to jockey.
The way I had imagined Jockey interacting with COS is also affected by this realization.  If I understand correctly, all you need to interact with Prometheus is logs.  But if Jockey remote options are used, logs would appear on the local machine.  Assuming I am understanding things here correctly, I wonder if it would be possible to leave a log on a remote machine when a remote Jockey command is run against that machine.


Fix incorrectly public functions in Cloudformation module

Using Kernel.apply in the Cloudformation module look to have cleaned up a lot of boilerplate code for the transforms, but unfortunately also exposed many helper functions to the public interface that should not be used directly. This pull request fixes that issue by replacing apply with function patern_matching.
Also added tests for build_indexed_params.

Good choice.

Jesus you're fast.

Wow you're fast. Where the heck are you getting your coffee from?


Tab close button area

Click area for close (x) buttons on tags too wide, while dealing with files with small names it is very easy to constantly close tabs wile switching from one to the other.

Thanks for reaching out!
We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.
Thanks for understanding and meeting us half way :grinning:


⚠ IMAP has degraded performance

In 739f053, IMAP (https://news.ycombinator.com) experienced degraded performance:

HTTP code: 200
Response time: 7298 ms

Resolved: IMAP performance has improved in 4511b67 after 5 minutes.


Check --file-name directory exists before writing

This is to prevent the situation where the entire walk is performed only to throw an error at the end when writing is attempted.

Implemented by #14


Particles are offset quite a bit on Linux i3

@jakemayeux can you describe your issue? maybe a screenshot

Closing issues on old versions of this package.
Open again if the problem persists with the latest release.


Fix/examples

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

Project coverage is 34.45%. Comparing base (ac1c567) to head (803e5fd).

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4506       +/-   ##
===========================================
- Coverage   81.45%   34.45%   -47.01%
===========================================
  Files         110      110
  Lines       53460    53460
===========================================
- Hits        43548    18418    -25130
- Misses       9912    35042    +25130


Fail to deploy .net core function app using az functionapp deployment source config-zip

az feedback auto-generates most of the information requested below, as of CLI version 2.2.0

Describe the bug

When deploying a .net core function app to Azure Functions on Windows App Service Plan, the deployment fails if it requires changes in app settings.
There's a race condition here:

If the app settings are changed before or after the deployment is initiated, the build fails.
If the app settings are not changed before the deployment is initiated, the build succeeds.

To Reproduce

Create a .Net Core 2.2 Function App in Windows Standard App Service Plan
Prepare a simple function app content, and compress it into a zip file.
Run the command to change the appsettings az functionapp config appsettings set -n $functionAppName -g $resourceGroupName --settings APPINSIGHTS_INSTRUMENTATIONKEY=$instrumentationKey
Run the command az functionapp deployment source config-zip -g $resourceGroupName -n $functionAppName --src <local_zip_file>
Wait a while and will see the deployment failure error

Expected behavior

The deployment should succeed.
Environment summary

DevOps Hosted Agent: Ubuntu 16.04
Azure CLI Task
Shell Type: bash
CLI Version:
azure-cli 2.2.0
command-modules-nspkg 2.0.3
core 2.2.0
nspkg 3.0.4
telemetry 1.0.4
Extensions:
azure-devops 0.17.0
Python location '/opt/az/bin/python3'
Extensions directory '/opt/az/azcliextensions'
Python (Linux) 3.6.5 (default, Mar 6 2020, 14:41:35)
[GCC 5.4.0 20160609]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context

thanks for reporting, routing to appropriate team

@rohank-proarch Can you please share with us the error message as well as your app name? Thanks. https://github.com/Azure/azure-functions-host/wiki/Sharing-Your-Function-App-name-privately

App Name: pa-dw-funcapp-dev
Error Message:
WARNING: Setting SCM_DO_BUILD_DURING_DEPLOYMENT to false
WARNING: Waiting SCM site to be updated with the latest app settings
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: HTTPSConnectionPool(host='pa-dw-funcapp-dev.scm.azurewebsites.net', port=443): Read timed out. (read timeout=3)
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "/opt/az/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/opt/az/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/opt/az/lib/python3.6/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/opt/az/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/opt/az/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 317, in recv_into
raise timeout('The read operation timed out')
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/opt/az/lib/python3.6/site-packages/urllib3/util/retry.py", line 368, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/opt/az/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 307, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pa-dw-funcapp-dev.scm.azurewebsites.net', port=443): Read timed out. (read timeout=3)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 608, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 666, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 659, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 636, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 306, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/init.py", line 493, in default_command_handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 335, in enable_zip_deploy_functionapp
remove_remote_build_app_settings(cmd, resource_group_name, name, slot)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 467, in remove_remote_build_app_settings
should_contain=app_settings_should_contain)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 805, in validate_app_settings_in_scm
scm_settings = _get_app_settings_from_scm(cmd, resource_group_name, name, slot)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/utils.py", line 62, in call
raise exception
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/utils.py", line 58, in call
return func(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 834, in _get_app_settings_from_scm
response = requests.get(settings_url, headers=headers, auth=(username, password), timeout=3)
File "/opt/az/lib/python3.6/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/adapters.py", line 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='pa-dw-funcapp-dev.scm.azurewebsites.net', port=443): Read timed out. (read timeout=3)

Looks like the app was still restarting after changing the app setting when you started the deployment command. Can you either wait until the restart completes or change the setting after deployment is complete?

Even if I update the appsettings later after deployment it fails with same error. It started to fail after azure cli was updated to latest version on azure DevOps hosted agent

We are also seeing this issue on both v2.2.0 and v2.3.1 when deploying function apps

Also getting this issue when used from our yaml pipeline - very strange.
We actually switched to using Azure CLI for deploying functions from using the AzureFunctionApp@01 task in yaml due to a separate bug - only to find that we're faced with this issue!

I have a very similar issue, is there any consistently working way of deploying Azure functions through the CLI?

Having the same issue.
Also found this SO question which describes similar situation: https://stackoverflow.com/questions/60770160/azure-function-deployment-failed-with-azure-cli-2-2-0-updates-in-azure-pipeline

Reported here as well https://github.com/Azure/azure-cli/issues/13655


Update user-agent string

This include to provide an option to add custom user-agent string in the request instead of default one i.e. Dalvik

👍  good, thanks


SublimeLinter: generate_color_scheme: Preferences.sublime-settings invalid, aborting

I'm seeing this error in my sublime console recently.
checked my sublime Preferences.sublime-settings file and it's ok. I even validated the json using an online tool and it says it's all valid and good.
Don't know why SublimeLinter is complaining about it. checked the source code and it probably cause by sublime.decode_value(json). It might be caused by some UTF-8 characters I have in my ignored_words settings.
	"ignored_words":
	[
		"☐",
		"✔",
		"✘"
        ]

What linters are you using, what does your Preferences.sublime-settings look like, and what is your entire console output?
All this will help me piece together what's going wrong. sublime.decode_value is working fine for me with your unicode characters so there may be another pain point.

Here is my Preferences.sublime-settings
https://github.com/aziz/sublimeText3-Userfiles/blob/master/Preferences.sublime-settings
and here's a list of my linter plugins:
https://github.com/aziz/sublimeText3-Userfiles/blob/master/Package Control.sublime-settings#L72

SublimeLinter
SublimeLinter-coffeelint
SublimeLinter-jshint
SublimeLinter-json
SublimeLinter-rubocop
SublimeLinter-ruby
SublimeLinter-shellcheck


Frontier [production run] - 3b - 8m - 16 patch size

Estimated FNH to complete: 974 hr (3.89% of allocation)
Nodes used: 92 (not set yet)

Done


Shorter component method

It might be worth either renaming the component method or giving it a short alias. A few options that come to mind:

comp, com or even c
render or draw
view

Another option might be to define a method for the component class name.
def template
  NavComponent do
    NavItemComponent "Home", "/"
    NavItemComponent "About", "/about"
    NavItemComponent "Contact", "/contact"
  end
end

One downside with this is you would need to use an empty set of parens if you weren't passing any arguments or blocks to the component.
def template(&)
  head { ... }
  body {
    HeaderComponent()
    content(&)
    FooterComponent()
  }
end

I'm not sure how performant it is, but you should be able to define const_missing on the Phlox::Component class such that:
def template(&)
  head { ... }
  body {
    HeaderComponent
    content(&)
    FooterComponent
  }
end

could work (with const_missing taking the name of the constant, getting the class object, and then calling () on it).
However, if that noticeably hurts performance, Component() or Component[] isn't bad.

I’m pretty sure it won't be missing though as the constant will exist.

Ah. I was presuming that Ruby would sort-of walk up the lexical scopes, and so if Bar was defined on the global scope, but called within a method inside of Foo, then Foo.const_missing would be called before then finding Bar in the next scope up.
However, I just did a quick test in a console and that isn't true. Disregard.

@alexandreruban and I worked on this and got it basically finished before we realised symbols can't contain :.

I wonder if we should do this to stay really consistent with ViewComponent and ActionView.
def template
  render NavComponent.new {
    render Nav::ItemComponent.new("Home", "/")
    render Nav::ItemComponent.new("About", "/about")
    render Nav::ItemComponent.new("Contact", "/contact")
  }
end

I tried the above and it didn't work because we can't easily capture the context for the Phlex::Block. Let's just stick with component for now.


[Query Language] for retrieving blocks

Similar to Page Query Language, but for blocks.
Could be used for tasks like: getting random block, getting blocks with specified refs, getting blocks under certain parent, agile filtering of blocks, etc.
If you are waiting for this feature to be available:

Please add 👀 reaction so I can prioritise it over other features.
Subscribe for notifications on this issue to keep track of it's progress.

Yes. Getting a random block with a specified tag would be amazing.


[PFPurchase addObserverForProduct:] callback not called

Hello,
I have an app that is using v1.2.19 of the SDK and I want to update it to v1.12.0 to be able to migrate to a self-hosted Parse Server.
Everything works fine, except for In-App Purchases (consumable and non-consumable). [PFPurchase buyProduct:] correctly prompts the user to enter his Apple ID credential, ask to confirm the purchase and I receive the "Your purchase was successful" alert, but the associated block callback on [PFPurchase addObserverForProduct] is never called when the transaction succeed. Same thing for restoring an In-App Purchase.
If I revert back to the old version of the SDK, the block is correctly called so I know it's not a sandbox account issue or anything related to Apple servers.
I have the following log when the device is prompted to enter the credential and when I confirm the purchase:
Apr  6 16:39:14 iPad-Air akd[118] <Warning>: success
Apr  6 16:39:15 iPad-Air akd[118] <Warning>: success
Apr  6 16:39:15 iPad-Air accountsd[92] <Warning>: AIDA Notification plugin running
Apr  6 16:39:15 iPad-Air akd[118] <Error>: libMobileGestalt MGBasebandSupport.c:60: _CTServerConnectionCopyMobileEquipmentInfo: CommCenter error: 1:45 (Operation not supported)
Apr  6 16:39:15 iPad-Air akd[118] <Error>: libMobileGestalt MGBasebandSupport.c:189: No CT mobile equipment info dictionary while fetching kCTMobileEquipmentInfoIMEI
Apr  6 16:39:15 iPad-Air akd[118] <Error>: libMobileGestalt MGBasebandSupport.c:60: _CTServerConnectionCopyMobileEquipmentInfo: CommCenter error: 1:45 (Operation not supported)
Apr  6 16:39:15 iPad-Air akd[118] <Error>: libMobileGestalt MGBasebandSupport.c:189: No CT mobile equipment info dictionary while fetching kCTMobileEquipmentInfoMEID
Apr  6 16:39:15 iPad-Air akd[118] <Error>: libMobileGestalt MGBasebandSupport.c:60: _CTServerConnectionCopyMobileEquipmentInfo: CommCenter error: 1:45 (Operation not supported)
Apr  6 16:39:15 iPad-Air akd[118] <Error>: libMobileGestalt MGBasebandSupport.c:189: No CT mobile equipment info dictionary while fetching kCTMobileEquipmentInfoICCID
Apr  6 16:39:15 iPad-Air MobileGestaltHelper[776] <Error>: libMobileGestalt MobileGestalt.c:281: server_access_check denied access to question UniqueDeviceID for pid 862
Apr  6 16:39:15 iPad-Air syncdefaultsd[862] <Error>: libMobileGestalt MobileGestaltSupport.m:151: pid 862 (syncdefaultsd) does not have sandbox access for re6Zb+zwFKJNlkQTUeT+/w and IS NOT appropriately entitled
Apr  6 16:39:15 iPad-Air syncdefaultsd[862] <Error>: libMobileGestalt MobileGestalt.c:542: no access to UniqueDeviceID (see <rdar://problem/11744455>)
Apr  6 16:39:16 iPad-Air itunesstored[98] <Warning>: Could not load library [21]
Apr  6 16:39:16 iPad-Air itunesstored[98] <Warning>: Could not load library [21]
Apr  6 16:39:16 iPad-Air itunescloudd[472] <Warning>: Updating media purchase history for initial load...
Apr  6 16:39:16 iPad-Air limitadtrackingd[345] <Warning>: Current store account has changed from (null) to 489711460.
Apr  6 16:39:16 iPad-Air itunescloudd[472] <Warning>: Updating media purchase history for initial load...
Apr  6 16:39:16 iPad-Air itunescloudd[472] <Warning>: Updating media purchase history for initial load...
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  clearing all local changes that had been scheduled for push
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  reseting sync anchor to 0, and scheduling pull from server
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  target sync date from client: 2016-04-06 14:39:22 +0000 (in 4.99 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  setting target date to: 2016-04-06 14:39:22 +0000 (in<PHONE_NUMBER>2.72 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  scheduling sync (via BackgroundTaskJob) 4.990217 seconds from now...
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  clearing all local changes that had been scheduled for push
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  reseting sync anchor to 0, and scheduling pull from server
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  target sync date from database: 2016-04-06 14:39:22 +0000 (in 4.95 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  scheduling sync (via BackgroundTaskJob) 4.946218 seconds from now...
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  clearing all local changes that had been scheduled for push
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  reseting sync anchor to 0, and scheduling pull from server
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  target sync date from database: 2016-04-06 14:39:22 +0000 (in 4.91 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  scheduling sync (via BackgroundTaskJob) 4.912434 seconds from now...
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  clearing all local changes that had been scheduled for push
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  reseting sync anchor to 0, and scheduling pull from server
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  target sync date from database: 2016-04-06 14:39:22 +0000 (in 4.89 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  scheduling sync (via BackgroundTaskJob) 4.889297 seconds from now...
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  clearing all local changes that had been scheduled for push
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  reseting sync anchor to 0, and scheduling pull from server
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  target sync date from database: 2016-04-06 14:39:22 +0000 (in 4.85 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  scheduling sync (via BackgroundTaskJob) 4.850278 seconds from now...
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  clearing all local changes that had been scheduled for push
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  reseting sync anchor to 0, and scheduling pull from server
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  target sync date from database: 2016-04-06 14:39:22 +0000 (in 4.70 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  scheduling sync (via BackgroundTaskJob) 4.702794 seconds from now...
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  clearing all local changes that had been scheduled for push
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  reseting sync anchor to 0, and scheduling pull from server
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  target sync date from database: 2016-04-06 14:39:22 +0000 (in 4.69 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  scheduling sync (via BackgroundTaskJob) 4.692428 seconds from now...
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  clearing all local changes that had been scheduled for push
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  reseting sync anchor to 0, and scheduling pull from server
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  target sync date from database: 2016-04-06 14:39:22 +0000 (in 4.65 sec)
Apr  6 16:39:17 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  scheduling sync (via BackgroundTaskJob) 4.652937 seconds from now...
Apr  6 16:39:22 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDDomainSyncedStorageController]  running synchronizeImmediatelyWithCompletionHandler: now
Apr  6 16:39:22 iPad-Air storebookkeeperd[128] <Warning>: [StoreBookkeeper] -[SBKUniversalPlaybackPositionStore _onQueueRunTaskWithName:taskCompletionHandler:runTaskBlock:] _onQueueSync - beginning synchronize operation...
Apr  6 16:39:22 iPad-Air storebookkeeperd[128] <Warning>: [StoreBookkeeper] -[SBKUniversalPlaybackPositionStore _onQueueLoadBagContextWithCompletionHandler:] _onQueueLoadBag - load bag operation beginning...
Apr  6 16:39:22 iPad-Air storebookkeeperd[128] <Warning>: [StoreBookkeeper] __81-[SBKUniversalPlaybackPositionStore _onQueueLoadBagContextWithCompletionHandler:]_block_invoke413 _onQueueLoadBag - load bag completed.
Apr  6 16:39:22 iPad-Air storebookkeeperd[128] <Warning>: [StoreBookkeeper] __89-[SBKUniversalPlaybackPositionStore _onQueueSynchronizeImmediatelyWithCompletionHandler:]_block_invoke _onQueueSync - synchronize operation beginning...
Apr  6 16:39:23 iPad-Air storebookkeeperd[128] <Warning>: [StoreBookkeeper] [SBKTransactionController.m:447] Transaction Failed: <SBKSyncTransaction: 0x134db2520> domain = com.apple.upp, SYNC: anchor=0 -- Error: <SBKStoreError:0x136077180> "Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)"
Apr  6 16:39:23 iPad-Air storebookkeeperd[128] <Warning>: [StoreBookkeeper] __96-[SBKUniversalPlaybackPositionStore _onQueueRunTaskWithName:taskCompletionHandler:runTaskBlock:]_block_invoke281 _onQueueSync - synchronize completed.  ERROR = 'Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)'.
Apr  6 16:39:23 iPad-Air storebookkeeperd[128] <Warning>: [UPP-SBDJobScheduler]  Could not synchronize domain 'com.apple.upp' (<SBKStoreError:0x13607d850> "Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)").  Synchronization will be re-attempted when the network connectivity, or account status has changed.

Hey @iOSassou, thanks for reporting, let's debug this together and find the reason behind it:

Is the block for PFPurchase.buyProduct() called or the same happens here - it's not called in the same way the observer for a product is not?
Did you try using the latest SDK with the same server your old SDK is using or only with open source Parse Server?
Any chance you can instrument your app with our Network Debug Tool from this guide and console log for network requests that happen when you are making the purchase here?

[PFPurchase buyProduct] block is called, I use it for error checking and my error message is displayed if I cancel the transaction for example.
I'm not using open source Parse Server. I'm updating to the latest SDK to prepare the migration, but I'm still hitting still api.parse.com
No problem, I will be able to instrument the app tomorrow if it's needed

Sounds good - looking forward to see the logs here.

I followed the guide, but nothing gets logged during the purchase. I tested with other parts of my app and I can see the Parse URL/Methods/Header/etc. in my console, but nothing logged during the Apple authentification and purchase of a product.
I've also added extra NSLogs and I can confirm that the [PFPurchase buyProduct] block is called, but not the one for [PFPurchase addObserverForProduct].
Deployment target is iOS 8.0 and I'm using the latest version of Xcode (7.3) with iOS 9.3 Base SDK.

@iOSassou, very strange, since I've just tested on iOS 9.3 and it works just fine.
Any chance you can trace PFPaymentTransactionObserver class on a PFPurchaseController?
The part that I am explicitly looking for is whether it has registered blocks when addObserverForProduct:block: is getting registered.
Also, few more questions - are you setting up the observer for the product before calling into buyProduct or after? If after - there is a chance that it registers in a wrong way.

I set up all my observers in the AppDelegate, so it's very early in the app lifecycle. However, after your comment I tried to change the order of my setup and I was able to make PFPurchase work.
In v1.12.0, you must set up PFPurchase observers after [Parse setApplicationId:XXX clientKey:XXX]. It was not the case in v1.2.19 so some changes made the two classes dependent on each other.
Thank you for your help

Right, glad you found it.
The current version of the SDK requires for any interaction with the SDK to be performed only after you set ApplicationId and ClientKey.
Let me know if you run into anything else.


Deploy Node to serverless environment on Azure (HTTP and Websockets, if possible)

We want to be able to deploy a Node in a serverless environment to Azure. This should include the Flask API in both HTTP and Websocket form, if possible (we don't know if Azure can deploy a serverless Websocket server). Make sure that your Node has the ability to communicate with its various Workers.
A note about code organization: we're going to be writing this type of code often and for many providers. Do you best to create a series of functions that can be run to manage our deployment.

No longer possible until PySyft is fully decoupled from PyTorch. Closing for now and removing from the roadmap.


Fix issue where hyper {command} fails

This is an attempt at fixing #3500. I am not super familiar with this codebase but I logged out the values here and found that when this was failing, it needed to be grabbing values from the other index on body. This is a relatively naive approach since I don't fully understand what's going on, but it does fix the issue as far as I was able to test. I don't really know how it even gets in a state where this fails, but as I said this seems to do the trick. Definitely open to feedback or other approaches...
cc: @chabou since he is assigned to the open issue

Hey thanks for that! Hopefully someone will have time to review this, I am pretty busy with work at the moment.

Happy to do it. No worries man, totally understand. Honestly that’s the same reason it took me this long to get a PR up for this.

I think this was implemented in a much more robust manner in #4086, so we can close this out


electron No GSettings schemas are installed on the system

In element-desktop, clicking on a picture to open it externally, crashes the application:

(electron:190114): GLib-GIO-ERROR **: 12:40:06.281: No GSettings schemas are installed on the system
Trace/breakpoint trap (core dumped)

#254423

The pre-built is using wrapGAppsHook https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/electron/binary/generic.nix
So it should be a ok solution for the source built too.

It already was using that (see pkgs/development/tools/electron/wrapper.nix), but the hook did not work properly and additional buildInputs were missing.


Property margin doesn't seem to be configurable

👋🏼 first off, thanks for the component. It's a huge time saver.
I just wanted to bring up the fact that AFAICT there's no margin configuration even though the README docs say so

Thanks for noticing. I'm glad somebody uses this library and finds bugs.
In version 2.0.0 margin prop was renamed to gap, but I forgot to update the docs. Now in release 2.0.3, documentation reflects that change.


TypeError: 'coroutine' object is not iterable

(toks) 11:59 ~/code/toks (master)$ python
Python 3.8.0 (default, Nov 14 2019, 22:29:45)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> from tiktokpy import TikTokPy
>>>
>>>
>>> async def main():
...     async with TikTokPy() as bot:
...         user_feed_items = TikTokPy().user_feed(username="bfeldman89", amount=5)
...         for item in user_feed_items:
...             print("Plays: ", item.stats.plays)
...             print("Shares: ", item.stats.shares)
...             print("Likes: ", item.stats.likes)
...
>>>
>>> asyncio.run(main())
2021-07-17 12:01:13 | INFO | 🥳 TikTokPy initialized. Version: 0.8.9
2021-07-17 12:01:14 | INFO | 🔧 Settings successfully loaded
2021-07-17 12:01:14 | INFO | 🛑 Cookies not found, anonymous mode
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 108773488/108773488 [00:00<00:00, 264727549.24it/s]
2021-07-17 12:01:27 | INFO | 🥳 TikTokPy initialized. Version: 0.8.9
2021-07-17 12:01:27 | INFO | 🔧 Settings successfully loaded
2021-07-17 12:01:27 | INFO | 🛑 Cookies not found, anonymous mode
2021-07-17 12:01:27 | INFO | ✋ TikTokPy finished working. Session lasted: 14 seconds
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete
    return future.result()
  File "<stdin>", line 4, in main
TypeError: 'coroutine' object is not iterable

I know this is old but for anyone still facing this problem the problem is the TikTokPy().user_feed is async and has to be awaited like this: user_feed_items = await TikTokPy().user_feed(username="bfeldman89", amount=5)


what is ESPF?

Checkout this one: https://github.com/kexinhuang12345/ESPF

Checkout this one: https://github.com/kexinhuang12345/ESPF

Checkout this one: https://github.com/kexinhuang12345/ESPF

Checkout this one: https://github.com/kexinhuang12345/ESPF


Tensorflow for Kotlin Multiplatform

Currently Tensorflow supports Javascript, Java, and C. These are all the target programming languages of Kotlin Multiplatform. Therefore, it would be theoretically possible to port Tensorflow to be a Kotlin Multiplatform Library by just reusing the existing APIs.
Are there any plans for this? If not, what do you think about the idea?

duplicate #27064


downgrade orbax + minor doc update + other fixes

What does this PR do?

Downgrades orbax to fix the use_checkpointing notebook.
Adds dill as a requirement to fix some tests
Fixes some warning errors
Slightly improve the documentation and CI by installing all and testing requirements with a single:

pip install -e .[all,testing]

Codecov Report

Merging #2961 (53e5704) into main (dacf003) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2961   +/-   ##
=======================================
  Coverage   81.86%   81.86%
=======================================
  Files          55       55
  Lines        5923     5923
=======================================
  Hits         4849     4849
  Misses       1074     1074

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


Deleting a SpriteFrames Animation does not update owning AnimatedSprite's Animation property to an existing Animation

Godot version:
v3.1.1.stable.official
OS/device including version:
Windows 10 Home
Version: 1803
Build: 17134.706
Issue description:
When I delete a SpriteFrame Animation, the Inspector shows that the Animation is still selected and testing through gdscript reveals that the owning AnimatedSprite's Animation property continues to hold the string name of the deleted Animation until it is manually changed. When changed, the name of the deleted Animation vanishes.
Expected: when I delete a SpriteFrame Animation, the program should update the Inspector to an existing Animation and set the owning AnimatedSprite's Animation property to that Animation's name.
Steps to reproduce:

Open Godot (see version at top)
Create a new project.
Create an AnimatedSprite node.
Select the AnimatedSprite node.
In the Inspector tab, go to Frames and create a new SpriteFrames asset.
If the SpriteFrames asset is not already selected, select the SpriteFrames asset in the Inspector.
If the Animation window is not already open, select the SpriteFrames option on the bottom of the Godot viewport.
Create 2 new animations. Note that when you create a new animation, the inspector will update to select that animation by name.
Delete the currently assigned animation. Note that when the currently assigned animation is deleted, the inspector does not update the Animation property to an existing animation.

Additional Steps:
10. Attach a new empty script to the AnimatedSprite node and insert the following code.
var animation_names = PoolStringArray() # holds string names of frame sequences
var animation_dictionary = Dictionary() # maps animation names to booleans

func _ready():
	animation_names = self.frames.get_animation_names() # get the current animation names
	for animation_name in animation_names: # for each name
		animation_dictionary[animation_name] = false # map false to it
	test()

func test(): # testing block to execute error method
	if is_locked():
		print("locked")
	else:
		print("unlocked")

func is_locked(): # method that will cause error
	return animation_dictionary[self.animation] # get current boolean for a given animation name

Save the script.
Run the scene.

Result: the debugger will inform you that you have provided an invalid index to the dictionary, whose string name matches the name of the Animation you deleted.
Cause: when you create a new Animation, it is automatically switched to in the Inspector for the AnimationSprite node; however, if you delete that same Animation, the AnimatedSprite node continues to hold the string name of the deleted Animation until you manually select a new one in the Inspector.
Minimal reproduction project:
AnimatedSpriteTest.zip

Still valid in 3.2.3 rc3

Fixed by #49495.


etcd2: memory leak in proxy mode?

I'm running a 3 node etdc2 cluster with an etcd2 proxy on the master node of a kubernetes cluster.
The members in the cluster are using about 42MB RAM but the proxy seems to slowly leak memory (the kuberenetes master ran out of memory yesterday).
member
$ cat /proc/$(pidof etcd2)/status
Name:   etcd2
State:  S (sleeping)
Tgid:   560
Ngid:   0
Pid:    560
PPid:   1
TracerPid:      0
Uid:    232     232     232     232
Gid:    232     232     232     232
FDSize: 128
Groups: 232
VmPeak:   177840 kB
VmSize:   177840 kB
VmLck:         0 kB
VmPin:         0 kB
VmHWM:     48956 kB
VmRSS:     42576 kB
VmData:   165168 kB
VmStk:       136 kB
VmExe:      3032 kB
VmLib:      1896 kB
VmPTE:       144 kB
VmPMD:        20 kB
VmSwap:        0 kB
Threads:        8
SigQ:   0/3894
SigPnd:<PHONE_NUMBER>000000
ShdPnd:<PHONE_NUMBER>000000
SigBlk:<PHONE_NUMBER>000000
SigIgn:<PHONE_NUMBER>000000
SigCgt: ffffffffffc1feff
CapInh:<PHONE_NUMBER>000000
CapPrm:<PHONE_NUMBER>000000
CapEff:<PHONE_NUMBER>000000
CapBnd: 0000003fffffffff
Seccomp:        0
Cpus_allowed:   1
Cpus_allowed_list:      0
Mems_allowed:   00000000,00000000,00000000,00000001
Mems_allowed_list:      0
voluntary_ctxt_switches:        69
nonvoluntary_ctxt_switches:     20

proxy
$ cat /proc/$(pidof etcd2)/status
Name:   etcd2
State:  S (sleeping)
Tgid:   549
Ngid:   0
Pid:    549
PPid:   1
TracerPid:      0
Uid:    232     232     232     232
Gid:    232     232     232     232
FDSize: 16384
Groups: 232
VmPeak:  1020584 kB
VmSize:  1020584 kB
VmLck:         0 kB
VmPin:         0 kB
VmHWM:    672524 kB
VmRSS:    672524 kB
VmData:  1003688 kB
VmStk:       136 kB
VmExe:      2720 kB
VmLib:      1984 kB
VmPTE:      1408 kB
VmPMD:        20 kB
VmSwap:        0 kB
Threads:        10
SigQ:   0/3894
SigPnd:<PHONE_NUMBER>000000
ShdPnd:<PHONE_NUMBER>000000
SigBlk:<PHONE_NUMBER>000000
SigIgn:<PHONE_NUMBER>000000
SigCgt: ffffffffffc1feff
CapInh:<PHONE_NUMBER>000000
CapPrm:<PHONE_NUMBER>000000
CapEff:<PHONE_NUMBER>000000
CapBnd: 0000003fffffffff
Seccomp:        0
Cpus_allowed:   1
Cpus_allowed_list:      0
Mems_allowed:   00000000,00000000,00000000,00000001
Mems_allowed_list:      0
voluntary_ctxt_switches:        63
nonvoluntary_ctxt_switches:     19

The following appears in the log every five minutes. Dont know if it is related:
May 13 13:06:51 localhost kube-controller-manager[673]: E0513 13:06:51.851413     673 replication_controller.go:172] error from watch during sync: 401: The event in requested index is outdated and cleared (the requested history has been cleared [137418/115570]) [138417]

@serbaut This is a known issue. There was a fd leak. It has been fixed.

Great! In what version? I am running 2.0.8.

@serbaut We will release 2.0.11 this week which will contain that patch.

Ok, thank you!


Adapt example R script to use the nursery dataset

reproducing the examples used in the python script

There is an open branch addressing this issue


[$1000]  On the first message of a thread the added reactions appear only after page refresh

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to any message
Start a thread
Add a reaction

Expected Result:
Reaction should appear immediately
Actual Result:
Reaction appears only after a refresh of the page
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/fcf41766-46ff-4e7b-a508-9da3c7de312f
Expensify/Expensify Issue URL:
Issue reported by: @AndrewGable
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684264413560439
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01f93ea0ecd14b3161
Upwork Job ID:<PHONE_NUMBER>240760320
Last Price Increase: 2023-05-19

Reproduced on web:
https://github.com/Expensify/App/assets/54866469/25d80b7c-6b86-483d-a7d0-f5be802607d2

@stitesExpensify I think this will be internal right?

Yes it will be internal cc @chiragsalian

Proposal
Please re-state the problem that we are trying to solve in this issue.
On the first message of a thread the added reactions appear only after page refresh
What is the root cause of that problem?
the first message of a thread data comes from the parent action
https://github.com/Expensify/App/blob/2182d0cb6eee479fa1c4d6f3fd9dd9cc9e97adbf/src/pages/home/report/ReportActionItemParentAction.js#L44
when we toggle the reaction Item we use the current reportID which won't update the parentID
https://github.com/Expensify/App/blob/2182d0cb6eee479fa1c4d6f3fd9dd9cc9e97adbf/src/pages/home/report/ReportActionItem.js#L179
What changes do you think we should make in order to solve the problem?
we can check if the ReactionItem Rendered through ReportActionItemParentAction we use the parentID else we use the current reportID
https://github.com/Expensify/App/blob/2182d0cb6eee479fa1c4d6f3fd9dd9cc9e97adbf/src/pages/home/report/ReportActionItem.js#L179
What alternative solutions did you explore? (Optional)
merging the parentAction with the current report action
https://github.com/Expensify/App/blob/2182d0cb6eee479fa1c4d6f3fd9dd9cc9e97adbf/src/pages/home/report/ReportActionItemParentAction.js#L44

@YousefKhawaga Thanks for the proposal. But this is going to be handled internally.

Next step here is for @danieldoglas to begin a PR!

Working on this soon, probably tomorrow or wed

Great, ty!

PR is pending here.

Pull requests are ready, awaiting for reviews/deploy.

Adding an additional BZ assignee as I'm OOO next week (and will be returning on June 5th). Both PRs for this issue are in review, so the next step here is to just watch the issue in case anything comes up until I'm back.

Adding an additional BZ assignee as I'm OOO next week (and will be returning on June 5th). Both PRs for this issue are in review, so the next step here is to just watch the issue in case anything comes up until I'm back.

Update:
We found another bug in threads that blocks this. Both PRs are ready, once that bug is fixed we can just merge main into my branches and review.

I'm back from vacation, so removing your assignment @isabelastisser , thanks for covering!

Sounds good!

@danieldoglas I saw both internal PRs are now out on production. Is anything else still needed here?

No, this is done!


Showing refresh icon while unmounting a screen in Android.

Description
If a component have refresh control or flatlist with refreshing and onrefresh props , then showing white circle on the top of the screen while navigating back. if i disable refresh control or remove the onrefresh and refreshing prop from  flatlist then this white circle won’t come while navigating back.
Version
0.70.0
Output of npx react-native info
System:
OS: macOS 12.6
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 25.20 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.19.0 - /usr/local/opt/node@14/bin/node
Yarn: Not Found
npm: 6.14.16 - /usr/local/opt/node@14/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.0 => 0.70.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
I have attached the sample code here , run the same in any android device . while navigating back from the profile screen it showing a white circle on the top just below the header bar.
Please give me a solution for the same.
Thanks
Snack, code example, screenshot, or link to a repository
import * as React from 'react';
import { Button, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
function HomeScreen({ navigation }) {
return (
<View style={{ flex: 1, backgroundColor : "black" ,alignItems: 'center', justifyContent: 'center' }}>
<Button
title="Go to Profile"
onPress={() => navigation.navigate('Profile')}
/>

);
}
import { SafeAreaView, FlatList, StyleSheet, Text, StatusBar } from 'react-native';
const DATA = [
{
id: 'bd7acbea-c1b1-46c2-aed5-3ad53abb28ba',
title: 'First Item',
},
{
id: '3ac68afc-c605-48d3-a4f8-fbd91aa97f63',
title: 'Second Item',
},
{
id: '58694a0f-3da1-471f-bd96-145571e29d72',
title: 'Third Item',
},
];
const Item = ({ title }) => (

{title}

);
const ProfileScreen = () => {
const renderItem = ({ item }) => (

);
return (

<Text  style={{color : 'white' , alignSelf : 'center'}}>Heading
<FlatList
data={DATA}
renderItem={renderItem}
keyExtractor={item => item.id}
onRefresh={()=>{}}
refreshing={false}
/>

);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor : 'black'
},
item: {
backgroundColor: '#f9c2ff',
padding: 20,
marginVertical: 8,
marginHorizontal: 16,
},
title: {
fontSize: 32,
},
});
const Stack = createNativeStackNavigator();
function MyStack() {
return (
<Stack.Navigator
screenOptions={{
animation : "slide_from_right",
}}>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Profile" component={ProfileScreen} />
</Stack.Navigator>
);
}
export default function App() {
return (

);
}

I've also been experiencing this on version 0.68.2

I've also been experiencing this on version 0.68.2

Have u got any solution for the same?

Same issue in 0.69.6

Same issue in 0.69.6
Quick workaround if you are using react navigation

note: this is just a workaround. Not a fix. This issue should be fixed upstream.

The workaround below works for my use case.
const selectHook = <T>({ useIos, useAndroid }: { useIos: T; useAndroid: T }) => {
  return Platform.select({
    default: useIos,
    android: useAndroid,
  })
}

/**
 * Quick workaround for refreshing issue on Android:
 * The refresh control is showing up above the header when unmouting the screen.
 * Note: It's happening when using a custom header component, but not when using
 * native header from the native stack.
 */
const useProgressViewOffset = selectHook({
  useAndroid: () => {
    const navigation = useNavigation()
    const [progressViewOffset, setProgressViewOffset] = useState<undefined | number>(undefined)
    const goBackEventWasHandled = useRef(false)

    // prevent the navigation event and hide the refresh indicator
    useEffect(() => {
      const unsubscribe = navigation.addListener('beforeRemove', (event) => {
        // Handle GO_BACK event only, because it fits my use case, please tweak it to fit yours
        if (event.data.action.type === 'GO_BACK' && !goBackEventWasHandled.current) {
          event.preventDefault()
          goBackEventWasHandled.current = true
          setProgressViewOffset(-1000) // set to a ridiculous value to hide the refresh control
        }
      })

      return unsubscribe
    }, [navigation])

    // perform the navigation with the hidden refresh indicator
    useEffect(() => {
      if (progressViewOffset !== undefined) {
        navigation.goBack()
      }
    }, [navigation, progressViewOffset])

    return progressViewOffset
  },
  useIos: () => undefined,
})

Usage
// ...
const progressViewOffset = useProgressViewOffset()
// ...
<RefreshControl
  {...refreshProps}
  progressViewOffset={progressViewOffset}
/>

It's been a while, is there any news about this issue?
Although, might sound silly but is there any sort of performance impact when adding these refreshProps?

Same problem here.. (version 0.70.5)

Can confirm the same issue in v0.71.7

Can confirm the same issue in v0.71.7

Same for me

Can confirm the same issue in v0.71.7

Same for me. But noticed that it doesn't happen anymore after you interact with it once.

That's true. But still, it's ugly that it appears if you don't interact.
For instance, I had to use a helper in my FlatList to prevent it
// Prevent showing refresh icon on nav back
const progressViewOffset = useProgressViewOffset();

<FlatList
      data={data}
      ...
      // Need to use refreshControl to prevent showing refresh icon on nav back
      refreshControl={
          <RefreshControl
              refreshing={loading}
              onRefresh={forceFetch}
              progressViewOffset={progressViewOffset}
          />
      }
      ...
  />

// Imports
import { useNavigation } from "@react-navigation/native";
import { useEffect, useRef, useState } from "react";
import { Platform } from "react-native";

// App Imports

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// https://github.com/facebook/react-native/issues/34718#issuecomment-1295919690
// Custom hook to prevent refresh icon from showing when navigating back
// Usage:
//      useProgressViewOffset({...});
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

const selectHook = <T,>({ useIos, useAndroid }: { useIos: T; useAndroid: T }) => {
    return Platform.select({
        default: useIos,
        android: useAndroid,
    });
};

const useProgressViewOffset = selectHook({
    useAndroid: () => {
        const navigation = useNavigation();
        const [progressViewOffset, setProgressViewOffset] = useState<undefined | number>(undefined);
        const goBackEventWasHandled = useRef(false);

        // prevent the navigation event and hide the refresh indicator
        useEffect(() => {
            const unsubscribe = navigation.addListener("beforeRemove", (event) => {
                // Handle GO_BACK event only, because it fits my use case, please tweak it to fit yours
                if (event.data.action.type === "GO_BACK" && !goBackEventWasHandled.current) {
                    event.preventDefault();
                    goBackEventWasHandled.current = true;
                    setProgressViewOffset(-1000); // set to a ridiculous value to hide the refresh control
                }
            });

            return unsubscribe;
        }, [navigation]);

        // perform the navigation with the hidden refresh indicator
        useEffect(() => {
            if (progressViewOffset !== undefined) {
                navigation.goBack();
            }
        }, [navigation, progressViewOffset]);

        return progressViewOffset;
    },

    // No need to do anything on iOS
    useIos: () => undefined,
});
export default useProgressViewOffset;

That's true. But still, it's ugly that it appears if you don't interact.
For instance, I had to use a helper in my FlatList to prevent it

@micktg is there any difference compared to https://github.com/facebook/react-native/issues/34718#issuecomment-1295919690?

That's true. But still, it's ugly that it appears if you don't interact.
For instance, I had to use a helper in my FlatList to prevent it

@micktg is there any difference compared to #34718 (comment)?

Oh excuse me. My fault.
I didn't scroll up for the last answer.
This is of course exactly the same.

Facing the same issue @PedroBern for my use case the solution did not worked. The main point is that this issue needs to be fixed by the core team. As FlatlList is a core component so it should not be behaving in such a manner.

not stale

Not stale

put progressViewOffset={-1} and it will fix the issue. It has done it for me.


Question about the PVNet result

Hi,
Thank you for your excellent work!
I am a little confused about the PVNet's initial pose for LINEMOD and LINEMOD Occlusion. How could I find them?
Also, for the initial pose result in YCB-V based on PoseCNN you used, how could I find it?
Best,
Rui

Hi Rui!
Thank you for your interest in our work!

I am a little confused about the PVNet's initial pose for LINEMOD and LINEMOD Occlusion. How could I find them?
You can get the initial pose simply by running the pre-trained model provided in the clean-pvnet repository.

Also, for the initial pose result in YCB-V based on PoseCNN you used, how could I find it?
I think I downloaded the result from this link in the DeepIM-Pytorch. I confirmed that the result corresponded to the one in the paper, but I recommend you to do it yourself again just in case.

Best,
Shun

Hi,
Could you please report the result when the initial pose is from the PoseCNN?
Best,
Rui

Hi Rui!
Unfortunately, I don't have the numbers using the initial poses from the PoseCNN.
I think the follow-up work of this paper reported the numbers. Nevertheless, no experimental details are given and the performance of RePOSE largely changes depending on the initial poses they're training on, so I can not assure their numbers are correct.
Best,
Shun


I updated Japanese language profiles about additional items

Purpose
I Updated Japanese language profiles for ember-osf-web about additional items.
Summary of Changes
I modified app/locales/ja/transcriptions.ts
Reviewer Checklist

[*] easy to understand

Coverage remained the same at 29.397% when pulling 1ec607bec99934b518757b1ba98eb9292ac70e95 on RCOSDP:develop into 14e1e43d46866e35fea65321a041278c72849b23 on CenterForOpenScience:develop.


Update target mbedos5 README.

You need to use mbed-js-gulp instead of make to generate a main.cpp.
JerryScript-DCO-1.0-Signed-off-by: Marko Fabo<EMAIL_ADDRESS>

@akosthekiss updated.

@janjongboom @thegecko please check.

LGTM


Implement wobbly windows

Maybe use this https://github.com/smspillaz/libwobbly ?

Resolved in master.


Rename ReceiptClaimLib.from to ReceiptClaimLib.ok

Rename ReceiptClaimLib.from to ReceiptClaimLib.ok to match recent API changes to risc0.
https://github.com/risc0/risc0/blob/c393f590b68cfd1dd0d8d167b9d6833ef832d428/risc0/zkvm/src/receipt_claim.rs#L68-L73

@capossele, could you take a look at this? This is something I'd like to get in before 1.0, or simply drop it. Just a smaller API change to match my more recent changes to the risc0 API.


Typing first letter of the label of autocomplete inside a menu closes the autocomplete

Steps to reproduce
Link to live example: (required)
Steps:

Put an autocomplete inside a menu
open the menu and type first letter of the label of the renderInput
autocomplete closes

in the provided example typing any letter as the first letter except M works fine, but as soon as you type letter m as the first letter it closes the autocomplete
Current behavior
if we put an autocomplete inside a Menu component, and then type into the autocomplete to search for an option, if we type the first letter of the label of the autocomplete (TextField label of the renderInput) as the first letter we want to search for, the autocomplete closes unexpectedly. in the example we have the same autocomplete in two places, one inside a Menu component and one not, and the label is Multiple values if we type any letter into autocomplete except 'm' it works fine, but if we type m into the autocomple inside the Menu, it closes.
Expected behavior
autocomplete should not close, and should show options with current letter types
Context
No response
Your environment

  System:
    OS: Windows 11 10.0.22631
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
    Edge: Chromium (122.0.2365.66)
  npmPackages:
    @emotion/react: ^11.11.1 => 11.11.1
    @emotion/styled: ^11.11.0 => 11.11.0
    @mui/base:  5.0.0-beta.23
    @mui/core-downloads-tracker:  5.14.17
    @mui/icons-material: ^5.11.16 => 5.14.16
    @mui/material: ^5.13.5 => 5.14.17
    @mui/private-theming:  5.14.17
    @mui/styled-engine:  5.14.17
    @mui/system:  5.14.17
    @mui/types:  7.2.8
    @mui/utils:  5.14.17
    @mui/x-data-grid:  6.18.1
    @mui/x-data-grid-premium: ^6.9.0 => 6.18.1
    @mui/x-data-grid-pro:  6.18.1
    @mui/x-date-pickers:  6.18.1
    @mui/x-date-pickers-pro: ^6.10.2 => 6.18.1
    @mui/x-license-pro: ^6.9.0 => 6.10.2
    @types/react: ^18.0.37 => 18.2.37
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    typescript: ^5.0.2 => 5.2.2

Search keywords: Autocomplete, close, Menu

@ako-v
Have you tried using Popover instead of menu ?
Check this example with popover and it is working fine - https://codesandbox.io/p/sandbox/charming-architecture-8xmh5m
Is there any specific use case of using menu ?

@ako-v
Have you tried using Popover instead of menu ?
Check this example with popover and it is working fine - https://codesandbox.io/p/sandbox/charming-architecture-8xmh5m
Is there any specific use case of using menu ?

Thanks for reply, but the sandbox is not found!
I will check using popover, thanks.

@ako-v  damn...
My codesandbox account reached at maximum sharable links.
Anyways I am attaching the screenshot of my code


One CSSID Selector Unimplemented

I will implement the final CSSID Selector so we satisfy requisite for the project!

In a new branch...


support annotation syntax

in crystal 0.25 added annotations:
require "json"

class A
  include JSON::Serializable
  @[JSON::Field(ignore: true)]
  property bla : Int32
end

Inspecting 1 file.

F

1.cr:5:9
Syntax: expecting token ']', not '::'

Finished in 14.49 milliseconds

1 inspected, 1 failure.

nvm, i recompile bin/ameba in 0.25 and now it works.


FLAX_PROFILE=1 changes the computation

Problem you have encountered:
run.py:
print(nn.Dense(1, use_bias=False).init({'params': jax.random.PRNGKey(0)}, np.ones((1, 1), np.float32)))

FLAX_PROFILE= python run.py -> -1.4588
FLAX_PROFILE=1 python run.py -> 1.3333

What you expected to happen:
I would expect a profiling option like FLAX_PROFILE to not change any computation.

Ah yes the RNGs get split differently as a side effect of named_call we should definitely fix that

Thanks!


Display the name of a user who created a payroll run

This updates the PayrollRun model to refer to a user in the database, rather than a simple Dfe Sign-In user ID. This also allows the name of a user to be shown like so:

 Display the name of the service operator who took an action


Limit rows count

Hi
how can i limit rows count of a table?

Hey, stackoverflow.com should be place to ask questions. I want to limit this to bug and feature requests. you can do it via limit() on a query object.


Hide password in logged amqp uri

On connection errors, the amqp uri is logged unfiltered, leaking the users (possibly) sensitive password.

nice catch! +1


not running

Traceback (most recent call last):
File "/opt/tools/osint/photo/Face_Checker_io/Face_Checker_io/GUI.py", line 196, in
root.iconbitmap(r's.ico')
File "/usr/lib/python3.10/tkinter/init.py", line 2109, in wm_iconbitmap
return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "s.ico" not defined

Make sure all files are in one place :)
The ICO file format is an image file format for program icons


Updated .hljs-comment, .hljs-string color

Fixes the source file so that using the highlightjs, won't require to change the colors separately.

Context?  Why are these colors changing?

If the Atom theme recently change please provide us a link to confirm/cross-check, otherwise I'm not sure what is happening here.

Closing this without additional context.  If context is provided this can always be reopened.

@yyyc514, check this PR. @marcoscaceres told me to make the same changes as I did in that PR.

Ok, this context is a start... but I'm still a bit confused.  Is this theme intended to be a match for the Atom One Light theme (from the Atom editor) or not?  If so then I'd expect it to be correct when it matches that theme.  Many of our themes make questionable choices with colors/contrast IMHO, but that's why we have so many - there is something for everyone.
So has the official Atom One theme recently made changes to their color scheme that we should follow?  Otherwise I'm not sure we should just be changing the theme because not everyone agrees with the contrast. Am I missing something here?
@marcoscaceres


Work on location and data storage model

@jtweed this includes an example of the storage model. Your orginal file updated to reflect new model.


Bumped 1.20-4 dev

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/unhold


Width not working

Hello,
<Radar width={300} height={300} data = {this.state.radar_data} options={{ maintainAspectRatio: false }}/>
I tried to set the width : 300px.
But not working.
Can you help me?

it's work


Added extract bundle method to ArtifactBundle

Description
Added extract bundle method to ArtifactBundle
The backup bundle, when uploaded, already is extracted (in documentation has this description).
The extract method (for already backup uploaded) is not necessary if user use only the Ruby SDK, because when backup is did, the extraction of artifacts already occurs). Anyway, this PR solve the #196 issue.
Issues Resolved
Fixes #196
Check List

[x] New functionality includes testing.

[x] All tests pass ($ rake test).

[ ] New functionality has been documented in the README if applicable.

[x] New functionality has been thoroughly documented in the examples (please include helpful comments).

[x] Changes are documented in the CHANGELOG.

Seems fine, but I have no way to test it. Can someone else verify?

@jsmartt , I can. I will do now.

the environment described by wiki  it's ok for test this.

@jsmartt , I perfomed the integration tests and examples and everything was perfomed without problems.