Systemd service file<EMAIL_ADDRESS>is missing in Debian package

On Debian Jessie, with st2 version 1.5.0-7 from https://packagecloud.io/StackStorm/staging-stable/debian/ and installed via the mrlesmithjr.stackstorm ansible role, I get this behavior:
root@stackstorm01vt:/lib/systemd/system#  /etc/init.d/st2actionrunner status
● st2actionrunner.service - LSB: StackStorm st2actionrunner
   Loaded: loaded (/etc/init.d/st2actionrunner)
   Active: active (exited) since Fri 2016-07-08 13:50:50 UTC; 13min ago
  Process: 6851 ExecStop=/etc/init.d/st2actionrunner stop (code=exited, status=0/SUCCESS)
  Process: 6996 ExecStart=/etc/init.d/st2actionrunner start (code=exited, status=0/SUCCESS)

Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.
Jul 08 13:50:50 stackstorm01vt st2actionrunner[6996]: Failed to start<EMAIL_ADDRESS>Unit<EMAIL_ADDRESS>failed to load: No such file or directory.

And indeed, there is no<EMAIL_ADDRESS>file installed that would allow loading of these services.
root@stackstorm01vt:~# dpkg -L st2|grep -F 'st2actionrunner@'|wc -l
0

Thanks for the report!
The correct stable repo is https://packagecloud.io/StackStorm/stable/ without staging, where debian wheezy/jessie packages absent.
It means for the moment between .deb packages ubuntu trusty is only officially supported.
Making this more productive, possible options:

we assume that systemd uses systemV scripts for backwards compatibility at debian jessie. You can dig into /etc/init.d/st2actionrunner, these scripts worked before under the jessie. See: https://github.com/StackStorm/st2-packages/blob/master/packages/st2/debian/st2.st2actionrunner-worker.init and https://github.com/StackStorm/st2-packages/blob/master/packages/st2/debian/st2.st2actionrunner.init
There are systemd configs that we ship for centos7, you can port them for deb. See: https://github.com/StackStorm/st2-packages/blob/master/packages/st2/rpm/st2actionrunner.service and https://github.com/StackStorm/st2-packages/blob/master/packages/st2/rpm/st2actionrunner%40.service

Whatever option you choose, PR in st2-packages is very welcome!

@armab basing the st2 packages on systemd files would make them incompatible with wheezy/oldstable. Is that an acceptable tradeoff?

@moritz Got you. I think there should be some conditional .deb magic to avoid incompatibilities, like in .rpm example: https://github.com/StackStorm/st2-packages/blob/03b1d151dd1af3d94a3773490ed69d29475a8932/packages/st2/rpm/st2.spec#L79-L101
Needs more researching.
cc @enykeev to keep in mind, since he's working on https://github.com/StackStorm/st2-packages/issues/296 and probably has in plans to ship systemd service units for Ubuntu16.

File is still missing in the packages, even the file is available in the repository (https://github.com/StackStorm/st2-packages/blob/master/packages/st2/debian/st2actionrunner%40.service). On Ubuntu 16.04 I placed this file in /lib/systemd/system and reloaded systemd, afterwards it was possible to start the st2actionrunner service.

Closed via https://github.com/StackStorm/st2-packages/issues/365


pull and sync scrobble progress before playing (or sync often)

the trakt api supports scrobbling progress. you can pull that progress from the site and use that in another program.
so you can start watching something in one client and start from the moment you left off on another client if its synced up.
tested this many times myself with popcorntime and plex where i could start a movie on popcorn and finish it on plex or whatever.
this would allow us to continue on any device that supports it.
plex plugin support is deeply wanted!

Fixed Trakt sync and added scrobble support which will solve this issue :)
Still needs client support for scrobble but My Anime 3 will have it later today and JMMDesktop shortly after where it will send playback status every 15s.


Erase existential thrown error types

When performing a throwing operation on an opened existential, the thrown error type could be dependent on the opened existential type, e.g., if the thrown error type is an associated type of one of the corresponding protocols. In such cases, type-erase the thrown error type at the point where it is thrown so that the opened archetype cannot "escape" the enclosing opened-existential operation via throwing.
There is an alternative approach we could take that has OpenExistentialExpr handle the type erasure of the thrown error type. This would make OpenExistentialExpr a catch node, which would type-erase and then rethrow. This is arguably better, because it could mean fewer places where we do the type erasure and is more in line with the design of opened archetypes. However, it would also be much more invasive, and we should be able to do this later.
Fixes rdar://124273722.

@swift-ci please smoke test


feat(@schematics/angular): update to codelyzer 5

This PR also updates the hello world sample app and migrates its tslint.json file.

LGTM, other than you need to update the yarn.lock


Support end to end TLS: 1.3. Connect to DB: load publicly-available certificates for app to backend service.

Refs: #21566

Now publicly-available certificates can be loaded and used by these steps:
https://github.com/chenrujun/azure-sdk-for-java/blob/1ebbc23337f4f260351431009e566426d6448b93/sdk/spring/azure-spring-boot-samples/azure-spring-boot-sample-load-publicly-available-certificates/src/test/java/com/azure/spring/boot/sample/certificates/AzureDatabaseTest.java#L52
Closing this issue.

Reopen this issue because there is some difference between azure-security-keyvault-jca and azure-spring-boot-starter-keyvault-certificates

Connect to DB successfully by using azure-spring-boot-starter-keyvault-certificates.
Example code: https://github.com/chenrujun/azure-sdk-for-java/blob/azure-spring-boot-sample-load-publicly-available-certificates-for-starter-module/sdk/spring/azure-spring-boot-samples/azure-spring-boot-sample-load-publicly-available-certificates-for-starter-module/src/test/java/com/azure/spring/boot/sample/certificates/AzureDatabaseTest.java#L42


[Bug] Write short description here

Device information
App version: 0.10.9-3159 (standard, 609d8c96, 56)
Android version: 11 (SDK 30)
Android build ID: IN2020_15_210201
Device brand: OnePlus
Device manufacturer: OnePlus
Device name: OnePlus8Pro
Device model: IN2020
Device product name: OnePlus8Pro
Steps to reproduce

Launch app
Refresh Library
Wait for library to update (or cancel update)

Expected behavior
Should update all mangas in the library and give me a notification telling me which mangas updated
Actual behavior
After the library is "refreshed", I get a notification telling me the update failed

The api server seems to be causing issues for some people.  Try clearing your cookies in advanced settings.  Force closing the app.  Then relogging

#458


Request/Response Checksum Behavior Updates

This PR makes the following updates to the botocore flexible checksum behavior:
Request Checksum Calculation

Remove MD5 checksums and make CRC32 the default checksum algorithm.

CRC32 is a suitable default algorithm because it is available with and without the optional awscrt dependency.

When the request_checksum_calculation config is set to when_supported (default value), a checksum will be generated whenever one of the following conditions is true:

An operation applies the httpchecksum trait and defines a requestAlgorithmMember.
An operation applies the httpchecksum trait and defines requestChecksumRequired: true.

When the request_checksum_calculation config is set to when_required, a checksum will be generated only when:

An operation applies the httpchecksum trait and defines requestChecksumRequired: true.

S3 Customizations:

Deprecates existing customizations for MD5 checksums.

Response Checksum Validation

A value set for requestValidationModeMember by the user will be used by the SDK.
If the requestValidationModeMember value is not set by the user, the following behavior is experienced:

When the response_checksum_validation config is set to when_supported (default value), the requestValidationModeMember will be set to ENABLED.
When the response_checksum_validation config is set to when_required, the requestValidationModeMember will not be set and checksum validation is skipped.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (flexible-checksums-v2@2d66b37). Learn more about missing BASE report.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@                   Coverage Diff                    @@
##             flexible-checksums-v2    #3277   +/-   ##
========================================================
  Coverage                         ?   93.06%
========================================================
  Files                            ?       66
  Lines                            ?    14323
  Branches                         ?        0
========================================================
  Hits                             ?    13330
  Misses                           ?      993
  Partials                         ?        0

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

This work is being tracked internally.


Package not published on npm

Package isn't listed in the npm registry, could you please publish it?

Thanks for reporting this, we've added winston-graylog2 to npm a few days ago.


Create ReFrame easyconfig that uses the public repo

Fixed in https://github.com/eth-cscs/production/pull/566


XRay bug fixes

Can your remove the png and replace it with mermaid chart?

Fixed. Please have a look

+1


About page text contrast

https://github.com/forestryio/hugo-theme-novela/issues/29

Fixed in https://github.com/forestryio/hugo-theme-novela/pull/32


Remove autogenerated docs files from repository

Closes #71

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

Comparison is base (13f7e6e) 98.41% compared to head (b30a9d4) 98.41%.

:exclamation: Current head b30a9d4 differs from pull request most recent head 2165a1d. Consider uploading reports for the commit 2165a1d to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #72   +/-   ##
=======================================
  Coverage   98.41%   98.41%
=======================================
  Files           2        2
  Lines          63       63
=======================================
  Hits           62       62
  Misses          1        1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Thanks


bug: Can't open right side-menu when left side-menu has expose-aside-when set

Type: bug
Platform: desktop browser
Currently I have two side menus, the left side menu contains the attr expose-aside-when="large". When the view is larger then 768px the left menu is exposed, but this also causes the right menu to become disabled.

Greetings @JoeKomputer!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

+1 I'm seeing this too

It appears to be an issue inside of the $ionicSideMenuDelegate's toggleRight() method, as calling that directly produces the same buggy behavior

I've implemented a "fix" on my end, seems to be working well, but I'm not exactly clear on how to run tests and generate a new ionic bundle for testing.  I'm going to figure that out soon and then push the fix.

+1 i'm seeing this. Calebhay tried your solution but it doesn't semms to work :/

There's another piece... I add the following code to the main app delegate
	$scope.toggleRight = function() {
	    $ionicSideMenuDelegate.toggleRight();
	};

... then invoke it directly from the view/menu:
	<ion-nav-buttons side="right">
	  <button class="button button-icon button-clear ion-navicon" ng-click="toggleRight()" >
	  </button>
	</ion-nav-buttons>

Just to be clear, this is not a good fix.  If it were, I would fork and yadda yadda.  It is however, a viable hack if you need it.  I feel your pain, so I want to share what I can to help.
What I did was make the following modifications to the ionic.bundle.js file:

Comment out the following code on or near line 47667:
if (isAsideExposed || !self.right.isEnabled) return;

Comment out the following code on or near line 47667:
if (isAsideExposed || !self.right.isEnabled) return;

That, along with the calling directly via ng-click as aforementioned, did the trick

+1

I really don't want to have to modify the ionic bundle, is there a permanent fix?

Duplicate of #2328 which is now fixed and will be in 1.2


cardano-node: NodeStartupInfo as datapoint.

There is an important information about the node, such as era name, slot length, epoch length and KES period length. This information is required for RTView, and it's convenient to provide it as a datapoint, because RTView may ask for it not only during start.

bors r+

Obsoleted by https://github.com/input-output-hk/cardano-node/pull/4105


Safari E2E installation

Expected Behavior
E2E plugin installation must be as easy as possible.
Current Behavior
Sometimes when install button is pressed CC notifies that it is running installation scripts, but nothing happens. And then CC notifies that E2E plugin was installed. However it was not.
Possible Solution
Need to properly quit Safari before E2E installation.
Steps to Reproduce

Chose Safari as a default browser in CC Settings.
Go to Components and begin Subutai E2E installation.

Possible Implementation
Need to rework Safari quitting script.

Fixed in Master.

Done in Prod.


Adding AWS::Lambda::EventSourceMapping to Lambda

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the
Amplify Console GitHub Issue Tracker

Describe the bug
Tried to add AWS::Lambda::EventSourceMapping to a new Lambda function's CloudFormation template, in order to trigger it when the queue receives the data. At the same time I created a new policy, with needed permissions:
              "Action": [
                "sqs:DeleteMessage",
                "sqs:ReceiveMessage",
                "sqs:GetQueueAttributes",
                "sqs:ChangeMessageVisibility"
              ],

If I try to push the code, I get the error, that Lambda doesn't have proper permissions, even though they're in the CF template:
CREATE_FAILED               LambdaFunctionSQSUserAppEventSourceMapping                                           AWS::Lambda::EventSourceMapping Tue Jul 07 2020 12:07:45 GMT+0000 (Coordinated Universal Time) The provided execution role does not have permissions to call ReceiveMessage on SQS (Service: AWSLambda; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: b627dc3c-3c6e-4a48-bbe0-e830d95657eb)
If I remove the EventSourceMapping, push the permissions first, and then put back the EventSourceMapping code, and push again, everything works fine. Seems, like the order of applying the permissions is after trying to create a resource.
Amplify CLI Version
4.22.0
To Reproduce
Add the following code to functionLambda-cloudformation-template.json, and try to push it:
    "LambdaFunctionSQSEventSourceMapping": {
      "Type": "AWS::Lambda::EventSourceMapping",
      "Properties": {
        "BatchSize": "10",
        "Enabled": "true",
        "EventSourceArn": {
          "Ref": "MyQueueArn"
        },
        "FunctionName": {
          "Ref": "LambdaFunction"
        }
      }
    },

        "PolicyDocument": {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Sid": "",
              "Effect": "Allow",
              "Action": "lambda:InvokeFunction",
              "Resource": "*"
            },
            {
              "Effect": "Allow",
              "Action": [
                "sqs:DeleteMessage",
                "sqs:ReceiveMessage",
                "sqs:GetQueueAttributes",
                "sqs:ChangeMessageVisibility"
              ],
              "Resource": [
                {
                  "Ref": "MyQueueArn"
                }
              ]
            }
          ]
        }

Expected behavior
Should be working the same way, as it works if we do a 2-stage push, permissions first, and then EventSourceMapping.
Desktop (please complete the following information):

OS: [Mac]
Node Version. v14.2.0

Hi @asmajlovicmars, you need to set thedependsOn field to make sure the resources are created in the correct sequence.

Hi @jhockett, yes, basically, a "PolicyDocument" should be created before "LambdaFunctionSQSEventSourceMapping". Could you please show an example how would I set dependsOn between these two, and should it be in a backend-config.json or somewhere else?

Thank you @jhockett


Rebase on master "solidity pack arrays" + fixes

This is a PR https://github.com/ethereumjs/ethereumjs-abi/pull/47 rebased on top of the current master branch with some minor changes to it.
@djrtwo  @holgerd77 please review.

Coverage increased (+0.5%) to 90.634% when pulling 7a0ac949a9b702146eba9df17e07aa137490255f on tabookey:rebase_master_solidityPack-arrays-27_tabookey_AUG2019 into 8431eab7b3384e65e8126a4602520b78031666fb on ethereumjs:master.

Thank you, I was banging my head against the keyboard trying to understand why hashing arrays wasn't working. I had to install this ethereumjs-abi library for it to work it still doesn't work when running web3.utils.soliditySha3() nor with web3.utils.keccak256(). Do you guys know why is that?


Feature Request: add a "Clear all queues" context menu option for Azurite (or emulator) queues

Preflight Checklist

[X] I have installed the latest version of Storage Explorer.
[X] I have checked existing resources, including the troubleshooting guide and the release notes.
[X] I have searched for similar issues.

Problem
When using Azurite or any other emulated service for local development, there might be a lot of test data created. I find myself manually deleting a lot of queue items across several queues.
Desired Solution
It would be helpful to be able to right-click an emulator's entire queue and clear all messages
Alternatives and Workarounds
Manually clear all messages from each queue (possibly deleting generated data files, but haven't tested this)
Additional Context
No response

Hi @codywilliamson for this scenario we would recommend you go with deleting the Azurite data files to accomplish what you are looking for. You should be able to just delete all the files in the queuestorage folder. That will delete all queue related data.

That's a great workaround and I can build some scripts that do this for me. I was more so hoping for a built-in way to do this, but thank you for the direction!

I was more so hoping for a built-in way

Understood. For now this sounds like a pretty niche feature, and one which has the potential to accidentally cause someone a lot of headache if they don't know what they are doing. So for now the self-scripted solution is what we'll recommend. We'll leave this open in our future milestone in case others come along wanting it as well.


Fix GitHub misidentifying *.v files as Coq

This actually does confuse real people looking at language statistics in this repo...

Hm, that doesn't seem to actually have fixed it...

Seems to be cached, a local installation of Linguist identifies:
54.02%  C++
30.18%  Verilog
7.83%   TeX
3.52%   Python
1.18%   Yacc
0.87%   Shell
0.86%   Makefile
0.36%   SystemVerilog
0.36%   C
0.25%   Lex
0.17%   HTML
0.16%   Perl
0.11%   JavaScript
0.03%   Pawn
0.03%   Objective-C
0.02%   OpenSCAD
0.01%   Dockerfile
0.01%   VHDL
0.00%   Ruby

Looks like it has been updated now!


ci: create a new subnetwork for each new GKE cluster

We sometimes hit this issue in the CI for runs involving GKE clusters:
ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=This operation will exceed max secondary ranges per subnetwork (30) for subnet "default", consider reusing existing secondary ranges or use a different subnetwork.

As per the documentation, we can have the gcloud CLI create a new subnet when creating a new GKE cluster with --create-subnetwork. When passed "", it creates a new subnet with a default name and size. The goal here is to make sure that clusters don't conflict with each others in the default subnet when there are too many secondary ranges used at the same time.
The option also requires use of --enable-ip-alias, which should have no impact for us in most cases.
Doc: https://cloud.google.com/sdk/gcloud/reference/container/clusters/create
Note: we don't enable this for the external workloads workflows, because enabling IP aliases requires additional tweaking to enable traffic between the clusters and VMs. Since the issue we are trying to fix happens regularly when many PRs are under test, we merge this ASAP to avoid hitting the issue and will fix external workloads workflows later.

Link to successful workflows:

GKE: https://github.com/cilium/cilium/actions/runs/1854102788
Multicluster: https://github.com/cilium/cilium/actions/runs/1854102799

Since the issue we are trying to fix happens regularly when many PRs are under test, we merge this ASAP to avoid hitting the issue and will fix external workloads workflows later.

Makes sense, but do we have an issue opened to track this?


Does the "basic file" only generate when the perplexity is below a certain level?

First, awesome program but just to see how it works I only trained for 16 epochs and my perplexity only got to 15 or so but in my "results" folder I didn't see a "basic" file just the training logs.
Also, have you experimented with adding more layers, if so, did you observe an improvement in the quality of the conversations or perhaps in increased ability for the program to abstract certain aspects of language?

@DeepLearningBot Yes, the training results are only saved when it reaches the required perplexity. You can see the code here in bottrainer.py:
if train_perp < 1.6 and train_perp < last_record_perp:

You can make changes to it. However, you will see only when the perplexity reaches about this level, the performance (responses of the chatbot) will be nice.
I did try add more layers, including 3 or 4 layers, however, I did not see performance or model capacity improvements. In case you want to accommodate significantly more training data (with much large vocab size), you choice might be to increase the number of unit from 1024 to something like 1200, 1600, or 2048, that will significantly increases the model capacity. However, that also significantly increase the model size and requiring much higher computation power. Google NMT tutorial does claim increased performance for 4 layers big models for translation tasks, but I did not see that in my experiments. I think resnet must be applied anyway.
Hope this answers your question.

Yeah I see much better convergence with just the two layers now. Just curious though, in your experience, could a much larger model be run on a quality GPU that isn't commercial grade? Like I'm running your model on a AWS p2-xlarge instance and I had to cut the batch size down to 128. It takes about 30 mins per epoch on the Tesla K80 so for 60 epochs, its going to take about 30 hours.
For example, let's say I were to build my own machine with the Nvidia GTX 1080 Ti 64 GB (which to my knowledge is the most powerful Tensorflow compatible GPU that isn't like $5000.00), would that be sufficient for a much larger model? Just to make more precise what I mean by "much larger model" lets say 10+GB of reddit comments.  My hope is that I can still run a model like that but perhaps I'd just have to keep the batch size down and be content with the fact that my model might take a week to run. I'm just more from a pure math background so the hardware issues are still making my head spin a bit so I apologize if this is a "rookie" queston.

@DeepLearningBot The vocab size is one of the most important factor to consider, although it is ignored by most people working on this. The big challenge of having a large amount of training data is how to maintain your vocab size under a limit. There is a script called secondcleaner.py in the reddit folder to help you manage the vocab size. This takes long time to run though.
If your vocab size grows to double the size, your model have to grow (say 1200 units at least). Otherwise, the result will not be good because the model just cannot accommodate that much of information. Keep in mind also that the increase of the vocab size itself is a significant growth of the model itself.
Another way is to shorten the sequence length (reduce from 50 to 40 for example). This will increase the model capacity significantly.
If you don't want to sacrifice everything, say, the sequence length, and still want to try more data, my suggestion is to gradually increase the number of training samples, say adding another 100 K to 200 K. I hope you can then manage to control the vocab size to something around 80 K. You probably can increase the number of units to 1200.
Currently I need 10 to 12 hours to train this existing one, after adding all these, it may require at least 60 hours to train as I have to reduce the batch size to at least half, and the training samples doubled, which means 2 * 2 times of the time. And the model increased by a factor of at least 1.5 (2 * 2 * 1.5). This is just a rough guess.

Well I'll keep experimenting with it. As someone trying to build my own model, I can't thank you enough for making this available though. I've been looking through many examples of generative models on the internet and this is by far the best example I've come across.

@DeepLearningBot I am glad to hear that. If you don't mind, please show your acknowledgment by staring or forking this project. If you can refer to others, that would be better. Thank you!

@DeepLearningBot Please open new issues to discuss if you have other questions. Closing this.


[1812] Enable Logit.io for non-prod environments

Trello card URL
Changes in this PR:

Is there anything specific you want feedback on?

Screenshots of UI changes:
Before
After
Next steps:

[ ] Terraform deployment required?

[ ] New development configuration to be shared?

 Onboard services to Logit.io


Wearable Backpacks Compatibility

An idea regarding tinyinv and cross mod features with Wearable Backapacks would be to check rather the player is currently wearing a backpack and limit the inventory size based on the backpack capacity from Wearable Backpacks. Instead of deleting items that are picked up move them to the backpack inventory.
This would allow compatibility where players can still open each others packs in that mod and steal from their inventory while limiting player inventory without one.

Adding to this, it would be awesome if wearing items with inventories would unlock as many slots as the item has and sync your inventory to the item's inventory.
So for example wearing a backpack with 2*9 slots would enable up to 18 slots, and interacting with the first 2 rows of your inventory would effectively mean interacting with the backpack's inventory.

This is now partially addressed in the 1.20.1 version, that allows items to affect the inventory size.

This is now partially addressed in the 1.20.1 version, that allows items to affect the inventory size.

Is it going to be addressed in the 1.19.2 version?


Lazy init for new networking stack

Task/Issue URL: https://app.asana.com/0/488551667048375/1203002043003671/f
Description
Avoid loading the native (new) networking library when using the legacy
one.
Steps to test this PR
Test lazy loading

[ ] install from this branch
[ ] filter logcat by Loading native VPN networking library
[ ] launch the app and enable AppTP
[ ] IF "VPN new networking layer" appears and it's enabled in Settings -> AppTP dev settings -> CONFIG section the logcat should appear, otherwise it should not
[ ] clear data for the app and re-launch
[ ] (repeat clear data and re-launch until Settings -> AppTP dev settings does not have the "VPN new networking layer" option
[ ] launch the app and enable AppTP
[ ] the logcat should NOT appear

Current dependencies on/for this PR:

develop

PR #2289

PR #2290   👈

This comment was auto-generated by Graphite.


Inlay hint for lr wrongly displays before the first comma

Describe the bug
In math, within the parentheses of a call to lr, commas are interpreted as content instead of as argument separators by Typst. However, the extension treats them as argument separators. This causes the inlay hint to appear before the first comma.
To Reproduce

Create a new Typst document.
Write $lr(1, 2, 3)$.
Notice how the inlay hint “: body” appears after 1.

Expected behavior
The hint should appear before the closing parenthesis, after 3.
Package/Software version
tinymist extension version: v0.10.2

I will focus all inlay hints improvements after I finishing Go To Definition/Declaration.

Yes, but only in "smart" mode if I'm not mistaken?

This is probably unintentionally fixed by #51.

This is probably unintentionally fixed by #51.

Because it is in smart mode by default.

This is probably unintentionally fixed by #51.

Oh, I may understand it. I was suggest to place param inlay hints before the params and type inlay hints after some identifier. Do you mean that the wrong position is unintentionally fixed because we will place the hint before the only parameter and after the left bracket anyway?

Yes this is what I meant.

I'll close it regarding to above discussion.


Resulting uf2 does not work on Pico board

Tried the current version. After putting the UF2 on the virtual disc, nothing happens.
I compared the resulting uf2 with the one from SDK and it differs in size and also the contents.

Tried the current version. After putting the UF2 on the virtual disc, nothing happens. I compared the resulting uf2 with the one from SDK and it differs in size and also the contents.

I do not use the SDK.  I've tested this against bare-metal ELF files generated by gcc, and it does produces identical UF2 files compared to the SDK C version.  Can you share the ELF file you tested, as well as the UF2 produced by the SDK utility?  I will see if I can track down the issue.

Here the two uf2 and the original .elf file.
hello.zip

Here the two uf2 and the original .elf file. hello.zip
I use gcc 12.2.1 (if this makes a change). Try 9.1.0, same.

Thank you for the files.  I believe the bug has been fixed.  It should generate an identical UF2.


In the new pull model how does the server know when to send workspace/configuration?

Reading some issues here it seems as if use of workspace/didChangeConfiguration is being discouraged in favor of workspace/configuration. If so how does the server know when to send workspace/configuration?

In the pull model the client will still send workspace/didChangeConfiguration however without any data payload. The client has then to pull configurations. So workspace/didChangeConfiguration is more a notification then a push.
I will close the issue. Please ping back if still unclear.


WIP: Add support for external X12 exporter

I just deleted the branch because I thought we were never going to use it, but would this be an opportunity to use a more generic approach as seen in https://github.com/synthetichealth/synthea/pull/1350 ? We can restore that branch with one click if interested

Closing this PR, using the approach from #1350 instead


math function is not working after the last ComfyUI update

math function is not working after the last ComfyUI update

This was due to an update in ComfyUI that has been rolled back, if you update your main installation it should then be working

thank you, now it is working


Files not tracked if folder doesn't have init.py

Summary
I recently came across this issue and couldn't find anything in the documentation that called it out. I figured that either this is truly a bug, or the documentation should be updated to include a comment on this so that other users aren't caught off guard like I was.
Steps to reproduce

Create the following file structure. Fill each file as shown

app/
├── pages/
│    ├──page1.py
└── main.py

main.py:
import streamlit as st

from pages import page1

st.write('Main')
page1.display()

page1.py:
import streamlit as st

def display():
    st.write('Page 1')

Run streamlit run main.py
Change the text that's displaying in main.py. The streamlit app will offer to rerun in the browser as normal.
Change the text that's displaying in page1.py. The streamlit app will not offer to rerun. Any code changes to this file will not appear unless you restart the streamlit app from the command line.

Expected behavior:
Changing code in any files in subfolders would also be detected by Streamlit.
Actual behavior:
The changes in the subfolder files aren't detected by Streamlit.
Workaround:
Simply adding an empty __init__.py to pages/, killing the app, then restarting it will fix the issue. The working folder structure then looks like this:
app/
├── pages/
│   ├── __init__.py
│   └── page1.py
└── main.py

Is this a regression?
No idea, but probably not.
Debug info

Streamlit version: 0.62.1
Python version: 3.7.4

This issue was fixed by #18. There is a KB article documenting the behavior.


Update _fftconv_faster

Reference issue
Fixes gh-10887, closes gh-10427
What does this implement/fix?
Uses a more correct expression for the complexity and updated big O constants in signal._fftconv_faster. I have also included a new threshold parameter where the  FFT convolution is only used if its predicted speedup is above. This accounts for the higher overhead involved in fftconvolve of a small array.
Additional information
To find the constants I just used the notebook in gh-10427 with the updated complexity expressions. According to the test there this is ~85-95% accurate.
Note this doesn't have specific constants for 1D as I was just using the output from @stsievert's notebook.

I'd also like to see the 1D numbers updated too.

I was just using the output from @stsievert's notebook.

The implementation at https://github.com/stsievert/scipy-convolve-timings/?

I have also included a new threshold parameter ... [that] accounts for the higher overhead involved in fftconvolve of a small array.

I'd like to see validation of this choice. I can't see how well this performs, or verify the implementation; my notebooks don't include it. Could you push the notebooks you used or publish your fork?

Apologies for the delayed response @stsievert. I've noticed a bug in the modifications I made to your testing code and these numbers actually perform very badly in mode="same" and mode="valid" (<70% accuracy).
I'm fairly certain that the formula for fftconvolve is correct as I've looked at that code fairly recently but am less sure about method="direct". I think that min(x.size, h.size) is theoretically correct but it's possible that doesn't match the actual implementation.

Could you push the notebooks you used or publish your fork?

I've pushed the notebooks here

I have also included a new threshold parameter ... [that] accounts for the higher overhead involved in fftconvolve of a small array.

I'd like to see validation of this choice.

I agree that a proper validation would be good. My motivation was that fftconvolve has ~10x more overhead for small sizes but this overhead is just a constant time and doesn't scale with size:
In [4]: x = np.random.rand(2,2)

In [7]: %timeit convolve(x, x, method='direct')
7.57 µs ± 199 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [8]: %timeit convolve(x, x, method='fft')
64.4 µs ± 1.07 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)

I think that min(x.size, h.size) is theoretically correct but it's possible that doesn't match the actual implementation.

I see your point. I didn't consider that case a ton in development (and implemented the method option to allow users to circumvent it).
When is this an issue? In your example, choose_conv_method makes the right choice on direct vs fft:
In [13]: from scipy.signal import convolve, choose_conv_method
In [14]: import numpy as np

In [15]: x = np.random.randn(2, 2)

In [16]: choose_conv_method(x, x)
Out[16]: 'direct'

In [17]: %timeit convolve(x, x)
20.7 µs ± 509 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)

In [18]: %timeit convolve(x, x, method="direct")
9.85 µs ± 49.8 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [19]: %timeit convolve(x, x, method="fft")
507 µs ± 57.2 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)

When is this an issue? In your example, choose_conv_method makes the right choice on direct vs fft

This PR uses a completely different performance model so what was true before doesn't carry over. Without it, choose_conv_method would almost always underestimate the size where fftconvolve was faster than direct. Presumably because it is fitting to the asymptotic trend and was not accurate for small sizes.
Now that I think about it again though, a better approach would be to focus on fitting the curve near to the cross-over point as that's the only place where precision is actually important.

a better approach would be to focus on fitting the curve near to the cross-over point as that's the only place where precision is actually important.

Let me know if you want help with that, or any tips.

It would be good to get this in for 1.4.0 if possible, given that our FFT backend has changed.
I would say the bar for that should be that it does better than what we have now, even if it's not perfect (e.g., could be fit near the transition point). @stsievert does it meet this criteria to you? Or is something missing (e.g., 1D updates)?

It would be good to get this in for 1.4.0 if possible, given that our FFT backend has changed.

It looks like the FFT backend will change in 1.4.0. Is that accurate? When do you expect 1.4.0 to be released?

Yes the FFT backend has switched from fftpack to pocketfft in 1.4.0.
We branch 1.4.0 in just under two weeks.

Yes the FFT backend has switched from fftpack to pocketfft in 1.4.0. We branch 1.4.0 in just under two weeks.

Copy. I didn't realize. That puts a new urgency on updating the constants.
I'll try to put in a PR by Monday after completing some work on https://github.com/stsievert/scipy-convolve-timings over the weekend. My goal will be to update the numbers for the new FFT backend (possibly focusing on implementation details https://github.com/scipy/scipy/pull/10904#issuecomment-539701304 but not sampling near the decision boundary https://github.com/scipy/scipy/pull/10904#issuecomment-539886619).

@stsievert that would be great!

Superceded by gh-11031


Flacky test test__055__Connection__connection_request_fails...

Flacky test test__055__Connection__connection_request_fails__on_token_error_while_CONNECTING__reissues_token_and_reconnects
Seemingly unrelated to the new test for #1431 issue:
test__131b__Channel__if_the_channel_receives_a_server_initiated_DETACHED_message_and_if_the_attempt_to_reattach_fails_then_the_channel_will_transition_to_SUSPENDED_state_with_periodic_reattach_with_channelRetryTimeout
but fails if "test__131b..." exists.

https://github.com/ably/ably-cocoa/pull/1520#issuecomment-1320941998


Question: HOC with Typescript

I want to use "useLocation" in my class component with typescript. So far i have gotten to this point with looking at the example at #135
export type UseLoc = {
  useLoc: [
    string,
    (
      to: string,
      options?:
        | {
          replace?: boolean | undefined;
        }
        | undefined
    ) => void
  ];
};

export function withUseLocation<T>(Component: ComponentType<T>) {
  return (hocProps: T) => {
    const useLoc = useLocation();

    // eslint-disable-next-line react/jsx-props-no-spreading
    return <Component {...(hocProps as T)} useLoc={useLoc} />;
  };
}

// in class component
const { useLoc } = this.props as IProps & UseLoc;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [location, setLocation] = useLoc;
setLocation(`/test`);

This is the workaround im using right now im just wondering if there is any better way to do it without so much ugly syntax.

What about trying to use Provider? distribute the exposed capabilities of the wouter uniformly at the top level to avoid using HOC

I can't think of a better way to achieve this than what @cbbfcd has proposed. I'm closing this issue for now, feel free to reopen if you have more questions!


create vm error with csr 1000v image.

python iosxe_iso2vbox.py ~/Downloads/csr1000v-universalk<IP_ADDRESS>b.S.155-3.S4b-ext.iso
==> Check whether "socat" is installed
==> Input ISO is /Users/penxiao/Downloads/csr1000v-universalk<IP_ADDRESS>b.S.155-3.S4b-ext.iso
==> Creating VirtualBox VM
==> Starting VM...
==> Successfully started to boot VM disk image
==> Waiting for IOS XE to boot (may take 3 minutes or so)
Traceback (most recent call last):
  File "iosxe_iso2vbox.py", line 648, in <module>
    main(sys.argv[1:])
  File "iosxe_iso2vbox.py", line 586, in main
    configure_xe(args.verbose < logging.WARN)
  File "iosxe_iso2vbox.py", line 354, in configure_xe
    raise pexpect.TIMEOUT('Timeout (%s) exceeded in read().' % str(child.timeout))
pexpect.exceptions.TIMEOUT: Timeout (600) exceeded in read().

This looks like it is due to the XE image not booting fast enough.
You can try using a more powerful machine, or change this line to have a higher timeout value (like 1200 for 20 minutes, etc.).
https://github.com/ios-xr/iosxrv-x64-vbox/blob/master/iosxe_iso2vbox.py#L259


GUI

Выполнил второе задание из 11 домашки.

А где у Вас скрипт для локальной сборки всего этого добра?

Скрипт сборки падает:
./build.sh
Tool 'fake-cli' (version '5.20.4') was restored. Available commands: fake
Tool 'paket' (version '6.0.7') was restored. Available commands: paket
Tool 'fornax' (version '0.13.1') was restored. Available commands: fornax

Restore was successful.
The last restore is still up to date. Nothing left to do.
run Default
Building project with version: LocalBuild
Shortened DependencyGraph for Target Default:
<== Default
   <== Test
      <== Build
         <== Clean

The running order is:
Group - 1
  - Clean
Group - 2
  - Build
Group - 3
  - Test
Group - 4
  - Default
Starting target 'Clean'
Finished (Success) 'Clean' in 00:00:00.0053116
Starting target 'Build'
Starting task 'DotNet:build'
> "/usr/bin/mono" --version (In: false, Out: true, Err: true)
/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW> "dotnet"  msbuild /version /nologo (In: false, Out: true, Err: true)
<IP_ADDRESS>101
/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW> "dotnet"  build "" --configuration Release /bl:/tmp/tmpNXY1uD.tmp.binlog (In: false, Out: false, Err: false)
Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

/usr/share/dotnet/sdk/5.0.402/MSBuild.dll -consoleloggerparameters:Summary -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/usr/share/dotnet/sdk/5.0.402/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/usr/share/dotnet/sdk/5.0.402/dotnet.dll -maxcpucount -property:Configuration=Release -restore -verbosity:m /bl:/tmp/tmpNXY1uD.tmp.binlog ./SecondSemester.sln
  Determining projects to restore...
/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/src/ArithmGUI/ArithmGUI.csproj : error NU1101: Unable to find package LongArithm. No packages exist with this id in source(s): nuget.org [/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/SecondSemester.sln]
  Failed to restore /home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/src/ArithmGUI/ArithmGUI.csproj (in 1.09 sec).
  6 of 7 projects are up-to-date for restore.

Build FAILED.

/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/src/ArithmGUI/ArithmGUI.csproj : error NU1101: Unable to find package LongArithm. No packages exist with this id in source(s): nuget.org [/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/SecondSemester.sln]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:03.88
RestoreTask: /home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/src/ArithmGUI/ArithmGUI.csproj(0,0): error NU1101: Unable to find package LongArithm. No packages exist with this id in source(s): nuget.org
Finished (Failed) 'DotNet:build' in 00:00:05.0706263
Finished (Failed) 'Build' in 00:00:05.0813742

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target     Duration
------     --------
Clean      00:00:00.0028050
Build      00:00:05.0812592   (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
Test       00:00:00           (skipped)
Default    00:00:00           (skipped)
Total:     00:00:05.1969619
Status:    Failure
---------------------------------------------------------------------
Script reported an error:
-> BuildFailedException: Target 'Build' failed.
-> One or more errors occurred. (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
-> MSBuildException: Exception of type 'Fake.DotNet.MSBuildException' was thrown.
Hint: To further diagnose the problem you can run fake in verbose mode `fake -v run ...` or set the 'FAKE_DETAILED_ERRORS' environment variable to 'true'
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.257.0' at the top of your dependencies file (/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/paket.dependencies).
Read https://github.com/fsharp/FAKE/issues/2193 for details.
Hint: The fake-runner has not been updated for at least 6 months. Please consider upgrading to get latest bugfixes, improved suggestions and F# features.
Performance:
 - Cli parsing: 219 milliseconds
 - Packages: 59 milliseconds
 - Script analyzing: 42 milliseconds
 - Script running: 5 seconds
 - Script cleanup: 122 milliseconds
 - Runtime: 6 seconds

Скрипт сборки падает:
./build.sh
Tool 'fake-cli' (version '5.20.4') was restored. Available commands: fake
Tool 'paket' (version '6.0.7') was restored. Available commands: paket
Tool 'fornax' (version '0.13.1') was restored. Available commands: fornax

Restore was successful.
The last restore is still up to date. Nothing left to do.
run Default
Building project with version: LocalBuild
Shortened DependencyGraph for Target Default:
<== Default
   <== Test
      <== Build
         <== Clean

The running order is:
Group - 1
  - Clean
Group - 2
  - Build
Group - 3
  - Test
Group - 4
  - Default
Starting target 'Clean'
Finished (Success) 'Clean' in 00:00:00.0053116
Starting target 'Build'
Starting task 'DotNet:build'
> "/usr/bin/mono" --version (In: false, Out: true, Err: true)
/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW> "dotnet"  msbuild /version /nologo (In: false, Out: true, Err: true)
<IP_ADDRESS>101
/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW> "dotnet"  build "" --configuration Release /bl:/tmp/tmpNXY1uD.tmp.binlog (In: false, Out: false, Err: false)
Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

/usr/share/dotnet/sdk/5.0.402/MSBuild.dll -consoleloggerparameters:Summary -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/usr/share/dotnet/sdk/5.0.402/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/usr/share/dotnet/sdk/5.0.402/dotnet.dll -maxcpucount -property:Configuration=Release -restore -verbosity:m /bl:/tmp/tmpNXY1uD.tmp.binlog ./SecondSemester.sln
  Determining projects to restore...
/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/src/ArithmGUI/ArithmGUI.csproj : error NU1101: Unable to find package LongArithm. No packages exist with this id in source(s): nuget.org [/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/SecondSemester.sln]
  Failed to restore /home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/src/ArithmGUI/ArithmGUI.csproj (in 1.09 sec).
  6 of 7 projects are up-to-date for restore.

Build FAILED.

/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/src/ArithmGUI/ArithmGUI.csproj : error NU1101: Unable to find package LongArithm. No packages exist with this id in source(s): nuget.org [/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/SecondSemester.sln]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:03.88
RestoreTask: /home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/src/ArithmGUI/ArithmGUI.csproj(0,0): error NU1101: Unable to find package LongArithm. No packages exist with this id in source(s): nuget.org
Finished (Failed) 'DotNet:build' in 00:00:05.0706263
Finished (Failed) 'Build' in 00:00:05.0813742

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target     Duration
------     --------
Clean      00:00:00.0028050
Build      00:00:05.0812592   (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
Test       00:00:00           (skipped)
Default    00:00:00           (skipped)
Total:     00:00:05.1969619
Status:    Failure
---------------------------------------------------------------------
Script reported an error:
-> BuildFailedException: Target 'Build' failed.
-> One or more errors occurred. (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
-> MSBuildException: Exception of type 'Fake.DotNet.MSBuildException' was thrown.
Hint: To further diagnose the problem you can run fake in verbose mode `fake -v run ...` or set the 'FAKE_DETAILED_ERRORS' environment variable to 'true'
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.257.0' at the top of your dependencies file (/home/gsv/Projects/IDEs_2sem_2021/Moskalenko/II-Semester-HW/paket.dependencies).
Read https://github.com/fsharp/FAKE/issues/2193 for details.
Hint: The fake-runner has not been updated for at least 6 months. Please consider upgrading to get latest bugfixes, improved suggestions and F# features.
Performance:
 - Cli parsing: 219 milliseconds
 - Packages: 59 milliseconds
 - Script analyzing: 42 milliseconds
 - Script running: 5 seconds
 - Script cleanup: 122 milliseconds
 - Runtime: 6 seconds

Для успешного выполнения билд-скрипта необходимо добавить github source моего напарника. Сделать это можно такой командой:
dotnet nuget add source --username <YOUR_USERNAME> --password  --store-password-in-clear-text --name github "https://nuget.pkg.github.com/m0rphed/index.json"

Открываю IDE. Пишу код:
x = 3

print (x)

x = 1111111
y = 2222222

z = x ^ y

print (z)

Нажимаю "Start". В консоль выдаётся
Processing...
3
Process finished

что, очевидно, не правда, так как ещё должен быть напечатан z.

Кажется это проблема парсера / интерпретатора :disappointed:


Auto play slides

Hi Thanks for this usefull package for RN !
how can auto play this sildes ??

It is not supported out-of-the-box since this component is mainly for user onboarding. If you really want to do it you could do so yourself by doing something like:

const slides = ....;

class App extends React.Component {
  i = 0;
  componentDidMount() {
    this.timeout = setTimeout(tick, 1000)
  }

  componentWillUnmount() {
    clearTimeout(this.timeout)
  }

  tick = () => {
    if (this.i = slides.length - 1) {
      return;
    }
    this.i += 1;
    this.slider.goToSlide(this.i);
  }

  render() {
    <AppIntroSlider ... ref={ref => this.slider = ref} />
  }
}

I haven't checked the code, but hopefully you get the idea.

Please refer to the above code in my repo: https://github.com/durgesh94/expo-explore/commit/8369516886685f8a6a7e4e729762883fb715b6ee


Tuya_v2 added but there are no devices. I can see all my devices in loT Platform

Describe the bug
Tuya v2 has no device. I can see all my devices in loT Platform and old tuya has all devices.
Expected behavior
There should be a list of devices under Tuya_v2
Screenshots

Home Assistant Version

2021.1.5
Tuya v2 - v1.5.0

Logger: homeassistant.config_entries
Source: C:\Users\adver\AppData\Roaming\Python\Python37\site-packages\homeassistant\config_entries.py:264
First occurred: 9:09:27 PM (1 occurrences)
Last logged: 9:09:27 PM
Error setting up entry<EMAIL_ADDRESS>for tuya_v2
Traceback (most recent call last):
File "C:\Users\adver\AppData\Roaming\Python\Python37\site-packages\homeassistant\config_entries.py", line 236, in async_setup
result = await component.async_setup_entry(hass, self)  # type: ignore
File "C:\Users\adver\AppData\Roaming.homeassistant\custom_components\tuya_v2_init_.py", line 295, in async_setup_entry
success = await init_tuya_sdk(hass, entry)
File "C:\Users\adver\AppData\Roaming.homeassistant\custom_components\tuya_v2_init.py", line 207, in init_tuya_sdk
await cleanup_device_registry(hass)
File "C:\Users\adver\AppData\Roaming.homeassistant\custom_components\tuya_v2_init.py", line 224, in cleanup_device_registry
device_registry = hass.helpers.device_registry.async_get(hass)
File "C:\Users\adver\AppData\Roaming\Python\Python37\site-packages\homeassistant\loader.py", line 591, in getattr
value = getattr(self._module, attr)
AttributeError: module 'homeassistant.helpers.device_registry' has no attribute 'async_get'
Additional context
I have removed and installed older version but the issue persists

I have the same with a HA installation on Synology Debian.

Update Home Assistant to lastest version.

I thought it was already up to date. Anyway, I rebuilt my computer and reinstalled everything.
Everything is working as expected. Thank you.


add bing engine

How it works:
Exploits a hidden Bing API, similar to how it was done in copyseeker. I couldn't find any adequate ways to get results directly through parsing.
The Bing module itself sends two requests.

In case of file:

First - uploading the file to Bing and getting bcid, which we'll use to get further information
Second - getting the information itself using Bing's hidden API

In case of URL:

First - ping URL, without which we won't be able to get data through the API
Second - getting the information itself using Bing's hidden API

Then the received information is parsed
What needs to be fixed and why I didn't do it myself:

First and most important is that I couldn't implement the code in engines\bing.py using _make_request.
I tried MANY different things over several days, but I couldn't figure out why a direct request through async client httpx returns code 200, while through _make_request it returns 404
The main problem was that specifically the second request returned 404, although the first one worked fine.
I gave up and decided to leave it as is. I hope you can fix this.

Second and less important, I created additional classes in model\bing.py for easier parsing of received data, as there's a lot of data and I couldn't adequately break down all the data into variables, so I decided to do it this way.

What can be added, what's already added, and some conventions:
Only twice during testing, at an early stage, I noticed that when searching for the same image in Firefox browser it showed 2 results, while in Google it showed 6. I never figured out why this happened. Maybe it's related to user agent or safemode (in the second URL request).
Also images were added:
test07 to demonstrate Travel and several Entities
test08 to demonstrate one Entity
In Bing's API request, I found in body:
"invokedSkills": [
      "ImageById",             --
      "BestRepresentativeQuery",     +
      "Offline",                    -
      "ObjectDetection",         -
      "OCR",                 --
      "EntityLinkingFace",         --
      "EntityLinkingDog",         --
      "EntityLinkingAnimal",         --
      "EntityLinkingPlant",         --
      "EntityLinkingLandmark",     --
      "EntityLinkingFood",         --
      "EntityLinkingBook",        --
      "SimilarImages",             +
      "RelatedSearches",         +
      "PagesIncluding",         +
      "ProductAds",            --
      "SponsoredAds",             --
      "Annotation",             -
      "Recipes",             -
      "Travel"                 +
    ]

+ - implemented
- - couldn't determine what it's responsible for
-- - what I considered unnecessary
Particularly interesting:

OCR - text from image. Considered unnecessary. Displayed on page as Text. Shows text coordinates and the text itself

Recipes - Either I couldn't find such dishes that would return a recipe, or it's an unnecessary parameter
PagesIncluding - Exact match. Displayed on page as Pages with this image

RelatedSearches - Similar searches (image + search query that returns it). Sometimes it shows anime name, source, or place being searched for
BestRepresentativeQuery - Best "similar"(RelatedSearches) search query according to the search engine
Entity - Links to official sources, description, etc. Displayed on page as Looks like

As I understood, EntityLinkingFace, EntityLinkingDog and others combine together in Entity

Is the http2 parameter needed here?
https://github.com/kitUIN/PicImageSearch/blob/d7134b6eb303cdd2d2e0abb07c16161b3968f6f9/PicImageSearch/engines/bing.py#L50
https://github.com/kitUIN/PicImageSearch/blob/d7134b6eb303cdd2d2e0abb07c16161b3968f6f9/PicImageSearch/engines/bing.py#L104

Is the http2 parameter needed here?

No difference

Could you provide the output from running your demo code?
I tried running it myself, but I’m getting an empty result regardless of switching proxies or using different test image files.

Could you provide the output from running your demo code?

tests were performed on these files
bing.zip

I referenced your original test scripts and solved the issue of empty return results.
Furthermore, I discovered that whether http2 is enabled affects the number of return results.  This makes me curious about whether other engines exhibit similar reactions.

I've fixed all the issues you mentioned.
Please check again. If there are no other issues, we can merge this PR, and then create a new release.
Thank you for your contribution.

BTW, for future contributions, please create a separate branch (e.g., patch) before submitting a PR, rather than working directly on your main branch.
A good workflow would be to first sync your main branch with upstream, then create a new branch based on main (e.g., patch) and make your changes there.
This will allow your main branch to stay in sync with the upstream repository without needing updates like Merge branch '[upstream]:main' into main,
and it also helps prevent unnecessary conflict resolution.

Excellent! I probably wouldn't have been able to fix this myself, thank you

Is everything fine?

I wanted to ask what you think about OCR parsing? I believe it shouldn't be added to the parsing results and it's better to leave everything as is.
Otherwise everything is okay

I wanted to ask what you think about OCR parsing? I believe it shouldn't be added to the parsing results and it's better to leave everything as is. Otherwise everything is okay

I don't think it's necessary to add it to the parsed results.  Unless someone submit an issue requesting it.

I checked again and found that I forgot to use _make_request for the request operation, but instead used self.get and self.post.
I need to modify it again.


Does support Tokens.transfer method?

https://interlay.subscan.io/extrinsic/0x9cf2a351e7918b8b03ae4a0cf4245707d8bba9571a950c8d822b33a5486e1adf
take this transaction for example,I want to sign transaction offline.and I find that [txwrapper-core] seems don't support  Tokens.transfer method.
only support the following mathods,right?
export declare const methods: {
    balances: typeof substrateMethods.balances;
    utility: typeof substrateMethods.utility;
    proxy: typeof substrateMethods.proxy;
    democracy: typeof substrateMethods.democracy;
    session: typeof substrateMethods.session;
    staking: typeof substrateMethods.staking;
    system: typeof substrateMethods.system;
    vesting: typeof substrateMethods.vesting;
    multisig: typeof substrateMethods.multisig;
    crowdloan: typeof polkadotMethods.crowdloan;
    assets: typeof substrateMethods.assets;
};

So Is there a change to support Tokens.transfer method

So if I have this correct, Tokens.transfer is an ORML method which would exist within txwrapper-orml. It is currently not in there, but I can add it in.


Go-style signature

The more I think about it, the more I'd like to support:
$ ncc run

and
$ ncc build

We would:

[x] Add support for pkg.main / index.js if no argument is supplied
[ ] run to build to a temporary location and clean it up on a best-effort basis
[x] build to output to a default dist directory if -o is not supplied (in tandem with #30)

To elaborate on this:

clean it up on a best-effort basis

This would imply doing it on beforeExit or a similar process / signal hook.

Done

These are all completed.


how to cancel timer on page change?

it always gives me error saying set state was called from widget which was not visible in the widget tree..
How to fix this and dispose the timer properly on page change (route to another page)
without clicking any button

CountdownTimerController.dispose()

CountdownTimerController.dispose()

when i try this it tells me This method should only be called by the object's owner.

You can refer to this.You need to instantiate CountdownTimerController first .
class _CountdownTimerPageState extends State<CountdownTimerPage>
    with SingleTickerProviderStateMixin {
  late CountdownTimerController controller;
  int endTime = DateTime.now().millisecondsSinceEpoch +
      Duration(seconds: 30).inMilliseconds;

  @override
  void initState() {
    super.initState();
    controller =
        CountdownTimerController(endTime: endTime, onEnd: onEnd, vsync: this);
  }

  void onEnd() {
    print('onEnd');
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: CountdownTimer(
        controller: controller,
      ),
    );
  }

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }
}

i have tried your code and modified it a bit to work in my case now on disposing it i am getting the following errors
`
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
_CustomTimeKeeperState#b7f6c(tickers: tracking 12 tickers) was disposed with an active Ticker.
_CustomTimeKeeperState created a Ticker via its TickerProviderStateMixin, but at the time dispose() was called on the mixin, that Ticker was still active. All Tickers must be disposed before calling super.dispose().
Tickers used by AnimationControllers should be disposed by calling dispose() on the AnimationController itself. Otherwise, the ticker will leak.
The offending ticker was: _WidgetTicker(created by _CustomTimeKeeperState#b7f6c(tickers: tracking 1 ticker))
`

how to dispose the ticker which was generated from the mixin?

Can you provide the code for the minimum run? I can find out what the problem is if I have the code.

Maybe this will be enough for you.  controller.disposeTimer();,Don't with SingleTickerProviderStateMixin
class _CountdownTimerPageState extends State<CountdownTimerPage> {
  late CountdownTimerController controller;
  int endTime = DateTime.now().millisecondsSinceEpoch +
      Duration(seconds: 30).inMilliseconds;

  @override
  void initState() {
    super.initState();
    controller = CountdownTimerController(endTime: endTime, onEnd: onEnd);
  }

  void onEnd() {
    print('onEnd');
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: CountdownTimer(
        controller: controller,
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.stop),
        onPressed: () {
          controller.disposeTimer();
        },
      ),
    );
  }

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }
}

Minimum run
`class _CustomTimeKeeperState extends State {
late CountdownTimerController controller;
late Map ret;
bool _isInit = false;
@override
void initState() {
ret = RecordedProvider.heavycalc(
widget.schedule,
widget.expire,
);
controller = CountdownTimerController(
endTime: ret['time'],
onEnd: () {
Provider.of(context, listen: false).getData();
},
);
_isInit = true;
super.initState();
}
@override
void dispose() {
controller.dispose();
super.dispose();
}`

the action button cancel timer works but in my application i cant have a button for that.. as imagine it as a premier of something is going to happen and countdown for that is to be displayed so i cant rely on press of a button to cancel the timer,,
And to be clear about my requirements:  while timer is running if i navigate to another page i have to cancel / dispose the timer and free its allocated resources


Wrong memory amount

Hi guys, I am facing some issues in our Openshift cluster.
When I create a query the worker pod does not appear and the following message can be seen in the logs:
2022-12-30T20:04:44,847 ERROR [K8sResourceScheduler-4-1] ResourceScheduler: Wrong memory amount:<PHONE_NUMBER>35360 m
java.lang.NumberFormatException: null

The nodes have 768GB of memory.
I noticed the following log message when the nodes are recognized:
2022-12-30T19:54:44,689  INFO [OkHttp https://kubernetes.default.svc/...] ResourceScheduler: Worker Node joined: compute-12:<PHONE_NUMBER>39360m 95690m true, adjusted Resource = [0MB, 95690m]
2022-12-30T19:54:44,691 ERROR [OkHttp https://kubernetes.default.svc/...] ResourceScheduler: Wrong memory amount:<PHONE_NUMBER>31360 m
java.lang.NumberFormatException: null
        at com.datamonad.mr3.container.k8s.NodesSnapshotStore.memoryUnit(NodesSnapshotStore.scala:203) ~[mr3-tez-1.0-assembly.jar:1.0]
        at com.datamonad.mr3.container.k8s.NodesSnapshotStore.com$datamonad$mr3$container$k8s$NodesSnapshotStore$$parseMemory(NodesSnapshotStore.scala:180) ~[mr3-tez-1.0-assembly.jar:1.0]

Because of this, I think the application consider that no memory is available and the worker pod will never be created.
Also, I made it work in my lab cluster, a single master with 24GB of RAM  and 2 workers with 16GB.
Any ideas?
Best,

mr3master.tar.gz

I found it, after the change in the kubelet memory reservation to a decimal number, the node metric that fabric8 pulls is in a strange format.

Sorry, we haven't checked github issues. For discussion, please MR3 slack or Google group.


add(capture<? extends javax.swing.JButton>) in List cannot be applied to (javax.swing.JButton)

when CodeDialog extends DialogWrapper:

this repo is about gradle plugin, not intellij API. For further questions use https://youtrack.jetbrains.com
won't fix as it's intended. this method is for creating buttons panel, not for populating a list of buttons, you should use com.intellij.openapi.ui.DialogWrapper#createActions instead.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/85962

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/86551


Component Request Fab Menu

This component seems nice to have!
I will standardise it later if you guys don't have time.
https://pasteboard.co/H6O9a3h.png
Ps: Awesome work. keep up the good work

Duplicate of #2851, WIP here: #9539


Support non-SVG snapshots when using MS Edge

Allows non-SVG snapshots when using MS Edge (but not IE).
Adds:

special handling of base64-encoded image data when constructing the blob in filesaver.js
try/catch around canvas.toDataURL invocation in svgtoimg.js and specially handles SecurityError (only anticipated in IE but not Edge); also catches generic errors

Removes:

IE non-SVG format guard in download.js
IE non-SVG format guard in svgtoimg.js

This looks very good! Can we also push it up to the modebar download button? I'm thinking remove this block and instead in the catch look for the IE error we just threw and try again with svg? The downside of that approach is it will make modebar button downloads take longer on IE, because you have to do a lot of the work twice.
I think that may be acceptable, but if we wanted to avoid it we could either a) look for a quick way to trigger that same SecurityError, or b) give the modebar button a tighter definition of IE than the current Lib.isIE that just looks for the presence of msSaveBlob.
Once this includes the modebar button, feel free to make a PR to the main plotly.js repo.

D'oh, I hadn't tested the download button yet as I'm using a custom button directly invoking downloadImage.
Doing the work twice is not likely to be a huge penalty in time performance, but I wonder if the statefulness will be tricky to manage -- in order to avoid a "Snapshotting in progress..." situation on the second attempt. I'll try it and see.
Option A seems like a better approach over browser sniffing. It might be worth adding a predicate to Lib such as canExportFromCanvas(mimeType) that quickly constructs a scratch canvas off-screen, draws a trivial graphic and tries toDataURL(mimeType) on it. It would save us entering the whole download machinery and would test only the relevant feature rather than browser.
The other question is whether to DWIM by falling back to SVG automatically, or to raise an error as is the current situation. There could be a middle path by defaulting to raising an error (predictable and consistent behaviour), plus a new user-configurable flag like fallbackToSVG:true passed through to toImage which activates the DWIM behaviour.

D'oh, I hadn't tested the download button yet as I'm using a custom button directly invoking downloadImage.

No worries, that's what reviews are for! Anyway the downloadImage part is the more important (and harder) part, the button is just the interface.

It might be worth adding a predicate to Lib such as canExportFromCanvas(mimeType) that quickly constructs a scratch canvas off-screen, draws a trivial graphic and tries toDataURL(mimeType) on it.

If that's easy to do, then absolutely, sounds like the best route!

Quick question: does Plotly.toImage work in Edge?

Was any more headway ever made on this issue? Would be nice to export non-SVG for Edge browser


Add unencrypted secure variables to jobs and stages

@macdiesel I pulled your commit from edx/gomatic#2.

@clintonb this was covered in this PR https://github.com/gocd-contrib/gomatic/pull/20. =/

Doh!

Yes - I haven't gotten back around to that PR. @clintonb Do you plan to make changes to that PR and get it across the line? If so, let me know when you proceed.

It seems this has been merged already as part of a different PR.


DOI button disappears in publication view if the publication has no URL

Publications that have only the DOI button / label in the publications page will not show it when opened. For instance:

The first looks all good in the publication view:

The latter has no more DOI button unfortunately. I suspect a bug?

In the reverse case (i.e. only PDF button present), it works as expected.

Not sure why this was closed. This is a bug in my opinion. And I gather from https://sourcethemes.com/academic/docs/update/ that bug reports should go here.

I modified my original post to clarify.

😊 OK. Now I get it... https://github.com/gcushen/hugo-academic/commit/b5a05867d85bb40ad61d84986e2a95e6fb7a7240 fixes this... Sorry for the troubles.


Can I use Spring Data Redis for updating Spring Boot application running on multiple pods in EKS cluster ?

Hi, I am new to Spring Data Redis. Actually, I am working on a Spring boot application, where my requirement is something like the following:
On update of certain DB tables through an API, I would like to publish and "REFRESH" event to REDIS. I have 3 pods in the AWS EKS cluster and in each of the POD,  my Spring Boot application is running. So, I would like each of these PODs will receive the event and refresh beans associated with the table.
I have been able to achieve this by running a scheduler at a fixed rate inside the application instance running on each POD, which is working fine.
But I would like to do this in an event-triggered way. So in this context, I found Spring Data Redis. But I am not sure, it would suffice my purpose.
Could anyone please help here with some pointers? Thanks.

That question is better asked on Stack Overflow, which the Spring Redis experts monitor.


[feature] Linux support!!!

Make it work in linux
Needs:

boot2docker/native detection
terminal launching
graphics are messed up

fixed in 0.2.1 -- be sure to install kivy and docker first, then run python main.py as there is no kivy executable in the path on linux


storage: refactor file cache code for coming fscache

Move code to manage cached file object from filecache/cache_entry.rs
into cachedfile.rs, so it could shared by fscache subsystem later.
Signed-off-by: Liu Jiang<EMAIL_ADDRESS>

Is output.dtb used for test? If so, should we move it to crates/dbs-boot/test?

looks good


Using Select with react-hook-form not setting SelectValue

I am having an issue with Shadcn react library's Select component when using it with react-hook-form. It seems that "dynamically" generated SelectItem is causing an issue where they are not displayed in the SelectValue box when selected.
I am using Zod validation library with the hoosk form as suggested by the documentation. I am supposed to select from available types of properties. The selection works and Zod is getting the value. But the selected item is not being displayed in the SelectValue box. It is just showing empty.
Here is a sample replication in codesandbox:
sample code
    <FormField
    control={form.control}
    name="type"
    render={({ field }) => (
    <FormItem className="grid grid-cols-4 items-center gap-4">
       <FormLabel className="sm:block sm:text-right">
          Type
       </FormLabel>
       <Select
          disabled={isSubmitting}
          onValueChange={field.onChange}
          defaultValue={field.value}
          >
          <FormControl>
             <SelectTrigger className="col-span-4 sm:col-span-3">
                <SelectValue placeholder="Select a property type"/>
             </SelectTrigger>
          </FormControl>
          <SelectContent className="SelectContent">
             {propTypes.map((type) => (
             <SelectItem key={type.id} value={type.id}>
                {type.name}
             </SelectItem>
             ))}
          </SelectContent>
       </Select>
    </FormItem>
    )}
    />

I am not seeing the value selected:

However, Zod is getting the value successfully:

Now, if I replace the dynamically generated values with static values as below, it will work, and I will be able to see what I selected:
    <SelectContent>
       <SelectItem value="m<EMAIL_ADDRESS>       <SelectItem value="m<EMAIL_ADDRESS>       <SelectItem value="m<EMAIL_ADDRESS>    </SelectContent>

Something is wrong when we generate the SelectItem dynamically. It seems that I need to manually type the SelectItem myself which doesn't make sense.
Any idea what is wrong here or how to fix it?
Thank you all.

Try use value={field.value} instead of defaultValue={field.value}

Try use value={field.value} instead of defaultValue={field.value}

I did. It's not working. Can you check my code sample? sample

The value prop in SelectItem should be a string Codesandbox

The value prop in SelectItem should be a string Codesandbox

You're kidding?? Omg! how the h*** did I miss that?? That worked! Thanks a lot. I have been struggling for days!

@joaom00 figured out the issue that I had. Many thanks


[BUG] - Block producer fails to check leadership when doing ledger snapshot

Internal/External
External   SECUR stakepool operator.
Area
Block minting
Summary
In normal operations of a stakepool, the block producing node is consistently missing a few seconds whenever it is logging TraceLedgerEvent.TookSnapshot
Steps to reproduce
Steps to reproduce the behavior:

Normal block producing operations
Search for TookSnapshot in the logs
Inspect log statements before and after it

Expected behavior
A continued stream of TraceStartLeadershipCheck log statements of one per slot (second)
System info (please complete the following information):

OS: AWS2 (ECS optimized AMI
Version: amzn2-ami-ecs-hvm-2.0.20210514-x86_64-ebs
Node version: 1.27.0 but noticed it on 1.26.2 as well
Running on AWS r5.large instance
Ledger files are backed by EFS

Screenshots and attachments

screenshot of logs and CPU/Mem at corresponding timestamp

I'm going to get more granular cpu stats to see if it maxes out.

This is a custom metric counting the number of leadership check log statements per minute for four BP pools over the past three hours. Count of 60 is expected. You can see that there are dips to 53, meaning a blackout of 7 seconds in the minute.
Note that an r5.large has 2 CPU with a boost of 3.1Ghz and 16GB of memory. Will also be trying with an image with more CPU to check if that resolves the issue

Yes we started to notice such "blackouts" a while ago and it should be fixed ASAP.

I did a test here on my machine in a QEMU-VM (not docker) now for a day, i don't see any leaderSlotCheck failures at all.

There would be an errorline if there is a step greater than 1 on the slotNumber. So i guess it has something to do with your r5.large instance?

This is second-level CPU statistics on a relay that is resource-starved (running on t3.small), but has 2 CPUs available, during the moment when the relay is making a snapshot (as found in the log file).
We can see that the CPU I/O wait time is at 100% meaning that there is CPU available, but the process is waiting for I/O. Translating this to the issue at hand, it looks like the Forge thread is waiting for the thread that is making the snapshot. Can this be the case? And if so, why does this need to be the case?
https://veithen.io/2013/11/18/iowait-linux.html

I managed to work around this issue by provisioning an EBS based SSD disk instead of network attached storage (EFS). The snapshots are now not causing io_wait anymore so the slot leadership check occurs on time.

Are there any other solutions to this problem?
My Server is not AWS, but it has 6Core 16GB specs, but I am getting CPU spikes when TraceLedgerEvent.TookSnapshot log is generated, and at the same time slotMissedNum is increasing.

Are there any other solutions to this problem? My Server is not AWS, but it has 6Core 16GB specs, but I am getting CPU spikes when TraceLedgerEvent.TookSnapshot log is generated, and at the same time slotMissedNum is increasing.

Maybe you can check the memory usage/GC status arround the time of snapshot. I suspect you'll see an increase in memory usage and some major GC's during/after he snapshot.

Closing this. If this is still relevant please reopen.


Emoji Search Swift UI frontend

We have (finally) confirmed that Swift UI works and we should land a frontend for emoji search into this repo using Swift UI.

https://github.com/cashapp/redwood/pull/628


Automated Package Upgrade

:tada: This PR is included in version 27.1.46 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Migrate analytics to use numbered values.

In order to save space on analytics requests we now use numbers instead
of strings.
Also, we now store the names of events as their enum name in all
caps instead of lowercase.

@jiayliu @chuckhays

Done.

PTAL


Add missing log4s badge at top of Logging.md

Same issue as #353, another missed spot
@budziq noticed - thanks :)

Thanks!


Xmatch psql

According to Felipe, the changes he made to target_selection/xmatch.py should be kept, and the documentation he added should be kept. It looks like those are the only changes on this branch? So I think it safe to merge, and it is worth merging.

Hi Jon and everyone,
thanks for doing this, and sorry for the linting errors, they were hidden within the errors E501 for lines with length between 79 and 99, but I got to see them when ignoring that error. I change the codes catalog_to_catalog.py and xmatch.py to fix that but now the review is failing in isort with codes catalog_to_catalog.py and v1_duplicates_table_creation.py, and I am not sure why. I am using isort 5.2.0 on all 3 codes but for some reason it works for xmatch.py but not for the other 2. Any ideas on why this might be happening?
Cheers and thanks

I don't think we should spend too much time worrying about isort linting errors.

Let me know if you think this is ready to merge, and I'll bypass the failed tests. We should then tag and make sure the tag for v1 in the database matches this.
Then I think we may want to revert some of the changes to xmatch.py; I don't want the PSQL to be needed long-term, but maybe that's something to worry about for v2.

From a not-super-thorough review yesterday, the changes I saw are what Felipe said we should merge. So I think it's ready?
If we're going to tag "V1" I think the PSQL should be included. And as you can we can worry about fixing it for V2. Maybe. Eventually.

Yes, v1 should be tagged with the code that was used to generate, PSQL included. I'll merge.


🐛 [cloud_firestore] FirebaseException/PlatformException.

Bug report
Version 0.16.0
Describe the bug
Until recently, errors like "unavailable" (which happens on a spotty internet connection, and using runTransaction) would throw a FirebaseException. Now a PlatformException is thrown instead.
Is this a regression or intentional?
Stacktrace:
PlatformException: PlatformException(firebase_firestore, UNAVAILABLE: End of stream or IOException, {code: unavailable, message: The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.}, null)
  File "message_codecs.dart", line 582, in StandardMethodCodec.decodeEnvelope
  File "platform_channel.dart", line 159, in MethodChannel._invokeMethod
  File "<asynchronous suspension>"
  File "platform_channel.dart", line 359, in MethodChannel.invokeMapMethod
  File "<asynchronous suspension>"
  File "method_channel_transaction.dart", line 45, in MethodChannelTransaction.get
  File "<asynchronous suspension>"
  File "transaction.dart", line 26, in Transaction.get
  File "<asynchronous suspension>"
  File "preparation_block_repo.dart", line 66, in PreparationBlockRepository.claim.<fn>
  File "<asynchronous suspension>"
  File "firestore.dart", line 167, in FirebaseFirestore.runTransaction.<fn>
  File "<asynchronous suspension>"
  File "method_channel_firestore.dart", line 210, in MethodChannelFirebaseFirestore.runTransaction.<fn>

Steps to reproduce
Steps to reproduce the behavior:

Turn off internet on device
Use runTransaction

Alternatively, there seems to be a test for this exact scenario.
Expected behavior
I expect a standard for exceptions thrown by the plugin.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.13.6 17G14042 darwin-x64, locale en-DK)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
[!] Android Studio (version 4.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.53.2)
[✓] Connected device (1 available)

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Doesn't work anymore:
The ".dart_tool/package_config.json" file is not recognized by "pub" version, please run "pub get".

My catch handlers now have to look like this:
    try {
      await FirebaseFirestore.instance.runTransaction(myHandler);
    } on FirebaseException catch (err) {
      if (err.code == 'unavailable') {
        // handle offline
      } else {
        rethrow;
      }
    } on PlatformException catch (err) {
      if (err.details['code'] == 'unavailable') {
        // handle offline
      } else {
        rethrow;
      }
    }

@markusaksli-nc Sorry, but this is not a question, is a regression.

@markusaksli-nc Seems to have been caused by this PR: https://github.com/FirebaseExtended/flutterfire/pull/4209 and specifically this commit: https://github.com/FirebaseExtended/flutterfire/commit/b4386b33c6f573fbee80a877cf8a630861f424ae
A lot of code that used to convert PlatformExceptions into FirebaseFirestoreExceptions have been removed.

@ened Thoughts?

@larssn oh no, sorry if #4209 caused issues for you.
You said there is an existing test which covers this - so it should be easy enough to devise a fix.
I'll try to make time this week to look at solutions.
In general, this probably should be a FirebaseException. @rrousselGit @Salakar do you agree?

@ened No worries, these things happen. 🙂
We caught it pretty quickly.

In general, this probably should be a FirebaseException
Well it used to. It was introduced in 0.14: "Any Firestore specific errors now return a FirebaseException"

I'm in favour of it still doing that.

@ened Did you ever get around to try and fixing this?

@larssn no, but looks like @rrousselGit is working on it right now.

Thanks for the report on this, this should have been solved now by #5783 as mentioned above. This will be released in the next couple of days.

No, #5783 is separate
I'll deal with this issue but it isn't fixed yet

It appears so. All the tests we run for Firestore CI are checking for FirebaseException as can be seen here, here & here.


Add better messaging in terminal

Current dependencies on/for this PR:

main

PR #219   👈

This comment was auto-generated by Graphite.


Suggestions for Azure DevOps integration

Product and Version [VS/VSCode]: VS
OS Version [macOS/Windows]: Win10
IntelliCode Extension Version:  <IP_ADDRESS>495
Target Platform or Language [e.g. Node.js]: C#
Steps to Reproduce / Scenario:

Assuming a team
Training a model via IntelliCode by one developer
Share the model with the team (copy the link, share the link, add the link for all members)
Security - (Everybody who has the link can gather informations?)
Manually retrain the model
Same model is used for different branches

Suggestions

Integrate the link to the ai-model in a seperate file (".intellicode") at solution root
Implement that IntelliCode prefers the ".intellicode" file at root level if exists
Add a setting for IntelliCode where a developer can decide if he wants to benefit from team ai-model or use an own ai-model on solution level.
Security - automatically sharing permissions over VS TeamExplorer connected to Azure DevOps project the permission to use this ai-model
Automatacly train the ai-model: add an option to periodically update the ai-model (daily, weekly, monthly, yearly or every build). Considering a team the ai-model should be possible to generate from a specific branch (e.g. "master") and the model should be created only once in a while! If you have an idea of implementing this easily then go on. My idea was a possibility of using Azure DevOps and a IntelliCode build-pipeline task -> the team can then decide how often they would like to update the model, e.g. every build on master or a seperate build that triggers by schedule.
"GitFlow" integration: use different ai-model for different branches. (e.g. versioning IntelliCode ai-model by git branch / commit)

Thanks for the great work so far!

Thanks for the suggestion! Several of these ideas are things we are actively exploring. Stay tuned for more details!

normalizing labels. @elgorro +kudos for great feedback.

This feature has been succeeded by https://devblogs.microsoft.com/visualstudio/upgrading-from-intellicode-custom-team-completions-models-to-deep-learning/


Set image_source

Part of osism/openstack-image-manager#332
Signed-off-by: Christian Berendt<EMAIL_ADDRESS>

@sihensel Can you please add/fix the unit test.


[BUG] Overflow of quotes content for large quotes in mobile view.

🙁 Actual behavior
Overflow of quote content over footer.

🙂 Expected behavior
Div container should be flexible when quote content is more it should increase container size to avoid content overflow.
🔢 Steps to Reproduce the Problem
No response

can i word on this? please assign

can you please assign me?

@NawinKumarSharma Yes sure,  please pick this up.

@eht-ck  Hey, I have made changes and it is fixed now .please review my Pull Request.
Final look:

https://github.com/gita/gita-frontend-v2/pull/225


Remove unused external dependencies

Current coverage is 93.49% (diff: 100%)

Merging #10 into master will not change coverage

@@             master        #10   diff @@
==========================================
  Files             2          2
  Lines           523        523
  Methods           0          0
  Messages          0          0
  Branches        114        114
==========================================
  Hits            489        489
  Misses           34         34
  Partials          0          0

Powered by Codecov. Last update 8e43998...f619852


Detect hardware type and revision and make available via Hardware trait

From https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-revision-codes
We can detect the exact HW on a Pi...and we can do something equivalent on Linux/PC/Mac HW... and make it available to the GUI by adding to the Hardware trait
"Raspberry Pi revision codes
Each distinct Raspberry Pi model revision has a unique revision code. You can look up a Raspberry Pi’s revision code by running:
cat /proc/cpuinfo
The last three lines show the hardware type, the revision code, and the Raspberry Pi’s unique serial number. For example:
Hardware    : BCM2835
Revision    : a02082
Serial      :<PHONE_NUMBER>5fc593
NOTE
All Raspberry Pi computers report BCM2835, even those with BCM2836, BCM2837, BCM2711, and BCM2712 processors. You should not use this string to detect the processor. Decode the revision code using the information below, or cat /sys/firmware/devicetree/base/model.
"

When hardware is "none" (working on a different host), maybe show a drop-down to select the HW type and revision, so the correct config options are shown...

agreed!


Use JSDoc comment for Deprecated interfaces

Using @deprecated JSDoc comments helps editor to mark those visually.

Coverage remained the same at 96.999% when pulling 7b5a62fe3505dd10664c3b986b2bd56a7a61018c on MunifTanjim:tweak-types into 260b284a1cbfb044991894c5a3cf3dedc8ce7267 on Vincit:master.

Deprecated methods have been removed.


Issue with parquet format file while converting into json.

I ran s3_uploader.py file and got this kuksa_2023-Dec-01_14_47_38.928506.parquet file and then I tried to convert this file into json format by using some online converter that's giving me an error.
That error message:
Error: Invalid Input Error: No magic bytes found at end of file 'kuksa_2023-Nov-29_05_47_41.617482.parquet'
could you please suggest me to convert this file into a json format.

We are about to archive this repo soon. If you consider this issue as important please file a new issue at one of the new Kuksa repos at https://github.com/eclipse-kuksa