[Question]: I'm getting an empty results probably bc this error: failed to call Analyze RPC: rpc error: code = Unimplemented desc = unknown service schema.v1.Server

Checklist

[X] I've searched for similar issues and couldn't find anything matching
[X] I've included steps to reproduce the behavior

Affected Components

[ ] K8sGPT (CLI)
[X] K8sGPT Operator

K8sGPT Version
v0.3.8
Kubernetes Version
v1.26.5
Host OS and its Version
ubuntu 20.04
Steps to reproduce
kubectl get results -n k8sgpt-operator-system -o json | jq
Expected behaviour
I'm trying to use k8sgpt to help me with an onpremise kubernets, but I'm having an error logged and the results are empty
Actual behaviour
{
"apiVersion": "v1",
"items": [],
"kind": "List",
"metadata": {
"resourceVersion": ""
}
}
Additional Information
I'm having this error many times in the operator log
2023-06-22T06:35:41Z	ERROR	Reconciler error	{"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT", "K8sGPT": {"name":"k8sgpt-sample","namespace":"k8sgpt-operator-system"}, "namespace": "k8sgpt-operator-system", "name": "k8sgpt-sample", "reconcileID": "3751af6e-2ea7-498a-a7da-cf417946a810", "error": "failed to call Analyze RPC: rpc error: code = Unimplemented desc = unknown service schema.v1.Server"}
it seems like issue 98 but it is on an onpremise kubernetes hosted on contabo
I'm just starting with k8sgpt
Here is the yaml:
apiVersion: core.k8sgpt.ai/v1alpha1
kind: K8sGPT
metadata:
name: k8sgpt-sample
namespace: k8sgpt-operator-system
spec:
enableAI: true
model: gpt-3.5-turbo
backend: openai
secret:
name: k8sgpt-sample-secret
key: openai-api-key
noCache: false
version: v0.3.8
I'm using a Personal open ai key

@edilberto-fredcode this should be resolved, are you installing  with helm the latest operator's version 0.19  ?

Hi,
Now I'm installing the 0.19 but having this error:
2023-06-24T09:35:44Z	INFO	starting server	{"path": "/metrics", "kind": "metrics", "addr": "<IP_ADDRESS>:8080"}
2023-06-24T09:35:44Z	INFO	Starting server	{"kind": "health probe", "addr": "[::]:8081"}
I0624 09:35:44.646795       1 leaderelection.go:245] attempting to acquire leader lease k8sgpt-operator-system/ea9c19f7.k8sgpt.ai...
I0624 09:36:03.911598       1 leaderelection.go:255] successfully acquired lease k8sgpt-operator-system/ea9c19f7.k8sgpt.ai
2023-06-24T09:36:03Z	DEBUG	events	release-k8sgpt-operator-controller-manager-7dbbf7487-js7zq_4cf4d0a8-6f21-4211-82c6-6e38bcb1c22f became leader	{"type": "Normal", "object": {"kind":"Lease","namespace":"k8sgpt-operator-system","name":"ea9c19f7.k8sgpt.ai","uid":"74c81d43-7b32-4138-9fcb-890407b7bac1","apiVersion":"coordination.k8s.io/v1","resourceVersion":"5208615"}, "reason": "LeaderElection"}
2023-06-24T09:36:03Z	INFO	Starting EventSource	{"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT", "source": "kind source: *v1alpha1.K8sGPT"}
2023-06-24T09:36:03Z	INFO	Starting Controller	{"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT"}
2023-06-24T09:36:04Z	INFO	Starting workers	{"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT", "worker count": 1}
2023-06-24T09:36:04Z	INFO	Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference	{"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT", "K8sGPT": {"name":"k8sgpt-sample","namespace":"k8sgpt-operator-system"}, "namespace": "k8sgpt-operator-system", "name": "k8sgpt-sample", "reconcileID": "f05534a9-8362-4cda-bbd7-4a3d563cd7ee"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x164244e]

My advice would be to do a complete uninstallation of the operator and its CRDs.
There was a significant change in the CRD structure between 0.0.18, 0.0.19 that would give similar behaviour.
Once that's done if you reinstall and try the latest examples ( as per the readme)  let us know what you get.

feel free to re-open it @edilberto-fredcode if your issues persist


How to handle deletion of relational data ??

Suppose you have a collection of model-person and each person has many bikes .. so each model-person holds a collection of model-bike ... now if you destroy a model-person .. destroy would be called on each model-bike held in which beong to that person .. this would result in a shit-load of unnecessary requests , is there some way to overload destroy to avoid that ??

@kapv89 I've also raised a similar question to @PaulUithol the author of the Backbone.relational library because I encountered some memory management issues with the lifecycle cached models in Backbone.Store when trying to release model attributes in Backbone.Articulation (https://github.com/kmalakoff/backbone-articulation).
@wookiehangover also in relation to my pull request with memory management hooks (https://github.com/documentcloud/backbone/pull/644) also suggested this could be a bigger discussion in terms of hooks for 3rd party library writers.
I would put 1) hooks and 2) memory management as topics to review and be enhanced in Backbone.js now that there is a bigger and more inter-dependent community of 3rd party plugin writers.

@kapv89 can you provide a more detailed test case of what you're describing? Here's an empty template to get you started: http://jsfiddle.net/wookiehangover/h73TF/

There are many ways to handle bulk operations in REST -- but none in particular that are specified.
You can make a special request with the ids of all the things you want to destroy, and remove them on the client side ... you can create a new "bulk" resource/model for this sort of thing, with its own URL ... you can make a shit load of small requests ... and so on.

yeah you can do that .. but i did the project i knockout as i had full control over models in it ... still have to give backbone a try on a heavy project


Increase/Decrease in Number fields is inconsistent

Describe the Bug
When I have a templated Number field, Increasing the number by increase/decrease buttons or the arrow keys is inconsistent. Some inputs "disappear".
Steps to Reproduce

Template a Number field
Focus the Number field
Tab up rhythmically
Sometimes the number does not increase on button press

Expected Behavior
Every button press increases the number
Additional info
This works fine in the bpmn-js-element-templates repo locally. I expect this to be a problem with debounceing or other behaviors from the bundle.
Reported here: https://github.com/camunda/camunda-modeler/pull/4154#issuecomment-1963710867
related to https://github.com/camunda/camunda-modeler/issues/3622
Environment

OS: [e.g. MacOS 10.2, Windows 10]
Modeler version: [e.g. 2.0.0]

@marstamm Happy to await further user feedback on this, what do you think? We could move it to backlog accordingly.

Let's move it to backlog, as it is not urgent


Incorrect definition of table mysql.column_stats: expected column 'hist_type' ...

Description
My database container log grows by about 20 lines of errors with every web request. Many of these appear:
db_1   | 2023-07-18 18:13:11 48 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB').
db_1   | 2023-07-18 18:13:11 48 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).

Seems similar to https://github.com/wallabag/wallabag/issues/6572
Gitea Version
1.20.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.40.1
Operating System
Docker container
How are you running Gitea?
Docker container from gitea/gitea:1 image. Host is 64-bit Ubuntu 22.04 LTS server. Docker version is 20.10.21.
Database is a mariadb 11.0.2 container from the official mariadb image.
Database
MySQL

May not be related to Gitea. See https://community.home-assistant.io/t/mariadb-errors-after-update/424731

Indeed! Great find, thank you!
I found a fix/workaround: run database upgrades.
For Docker: set the MARIADB_AUTO_UPGRADE environment variable for the db container to any nonzero value.

https://github.com/docker-library/docs/blob/master/mariadb/README.md#mariadb_auto_upgrade--mariadb_disable_upgrade_backup
https://github.com/MariaDB/server/pull/2166
https://github.com/MariaDB/mariadb-docker/issues/438
https://jira.mariadb.org/browse/MDEV-28866
https://github.com/docker-library/docs/issues/2164


One step vs two step builtin in a container modification is not equivalent

Sorry for the obscure title, here is a snippet that would explain much better:
var a = [Vector2()]
a[0].x = 42
var b = a[0]
b.x = 43
print(a)  # Returns [Vector2(42, 0)]
# Same behavior with Dictionary and Pool*Array :'-(

I've encountered this behavior while working on Godot-Python (see https://github.com/touilleMan/godot-python/issues/93 for a more in-depth explanation of the reason of this behavior).
I'm not sure this behavior has to be corrected (I would guess the cost would be high given it deals with internal implementation of containers and I didn't see other issue about this...). However we could add a line about this exotic thing in the GDscript documentation when talking about containers.

Indeed, as far as I know this is expected behaviour.

Just read the last line, yeah this could be made clearer in the docs.

Moving to godot-docs.


Update Generator Help

Update the generator help output rails generate react_on_rails:install -h

Change text node-server-hot to express-server.
This was changed in #210
Fix indentation.

Thanks!

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


Added error event

Closes #22

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

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

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/lib/ImageView.ts
1
2
50.0%

Totals

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

Covered Lines:
397

Relevant Lines:
454

💛  - Coveralls


Fix the error when the "train_batch_size" is absent in DeepSpeed config

What does this PR do?

When my deepspeed config does not have train_batch_size , this error will occur
KeyError: 'train_batch_size'

Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


More routines.

Ideas for routines:

Text scrollers

Character mode scroll
Also consider the partial fill character blocks to get 1 pixel horizontal scroll effects

Detune TV / glitch:

Randomly displace each horizontal scanline in relation to the last
Options to leave the exposed areas blank or wrap the other end
Modulation options for effect intensity

Tape Loader:

Use block characters to fill in a border region that flickers like old tape loaders.
Options for sync and load mode.

Superbitmap image display:

Load an image and have a viewport

Classic Texture effects:

Rotozoomer
Tunnel
Textured Polyhedra

Other RGB effects:

Fractals
Rasterbars
Beatpulse
Plasma
Fire

Other:

Voxel flyover

Need to keep tthis open


Privacy switch no longer disables live view

Switching the privacy switch on or off no longer disables the live camera stream.

I just enabled the privacy switch on my cameras, and I'm seeing this as well. Privacy switch doesn't seem to do anything.
I'm using homebridge-camera-ui v5.0.27.

It seems that the switch "at Home" must be set to true for the privacy switch run correctly

Thanks, @alexandreghez. That works for me.
The unfortunate side effect of the "at home" button being on is that motion detection (and hence HSV recording) seems to get disabled unless you expose the camera's "exclude" switch and turn that on. But the exclude switch being on also makes the privacy switch not work.
So the end result for my use case is to have some automation that always makes the exclude switch state be the opposite of the privacy switch state. I'd like to hide the exclude switch, but it's part of the camera, so it seems that you can't hide (or move) the exclude switch without hiding (or moving) also the camera and the privacy switch.

Currently working on the next major release, any suggestions here related to privacy/at home/exclude switch?

It would be great if they worked independently.

I second @kerwinf's comment.
My use case is maybe not normal...I actually don't use the camera.ui at all, and solely use this plugin to get my Foscam cameras onto HomeKit and HSV.
My wish would be either to decouple the "at home" button from the privacy mode...OR have the ability to somehow not need that "exclude" button.
I would also like to thank you for your hard work. This plugin has been working very very well for me!

Hello
I would like to know how you dot the at home button ?
Then I would like to have some cam with privacy and other not. How do you achieve that ?
Thanks for helps

@alexandreghez how does one find the 'at-home' switch?

@alexandreghez how does one find the 'at-home' switch?


Put cursor at the last line of selection

This matches the behavior of built-in text object like ip and the original version of this plugin.

Oh damn, sorry for the extremely long wait! There must be something wrong with my notification settings. I'll check out the change and get back to you shortly.

I've merged your commit and pushed it to master. Thank you very much for your contribution, and sorry for the ridiculous wait.


Website: always show version picker, even on mobile

Resolves: https://github.com/risc0/risc0/issues/1541
Context: previously, on mobile you needed to click on

mobile menu

"Back to main menu"

in order to see the version picker:
Before:

This PR makes it so the version picker shows up at all times on medium/small screens:
After:

Sadly, this isn't something that is officially supported by Docusaurus, so we need to roll out our own CSS rules for it.

Will this change be effected by upgrades to docusaurus?

Will this change be effected by upgrades to docusaurus?

Can't guarantee anything, but IMO it'll be fine unless it's a major version change.


PQLite: benchmark with filtering

Performance benchmark experiment
Something like this:

QPS with filtering out 10% data
QPS with filtering out 30% data
QPS with filtering out 50% data
QPS with filtering out 80% data

Adressed here https://github.com/jina-ai/pqlite/pull/69


Update changelog badges

close https://github.com/changesets/changesets/pull/1309
changelogs.xyz doesn't seem to properly show the changelog anymore, so I updated the badge and link it to the CHANGELOG.md file directly.
I also added an npm badge to quickly go to the npm page. Let me know if you don't want that, I'm fine either ways 😄

@emmatown is that service still maintained?

I don't see it going down but also probably won't be spending time making it better. I believe it's not working here because the changelog isn't published to npm
I think the change here makes sense anyway tbh. though the links in the package readmes should probably point to GitHub so they work when viewing the package on the npm website

Huh, I was under impression the CHANGELOGs would always be published regardless of files and all. I even found mentions of that in an old npm blog post but the current docs don't mention this: https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files
So we definitely should fix all package.json#files to include our CHANGELOGs. It would be cool to validate this in manypkg but oh well ;p

It happened since a few years ago I believe. Personally I don't like publishing changelog since you can read it online anyways, and if offline mattered we wouldn't have noticed it only now 😅


Re-Implement Emails (Old 191)

In gitlab by @A-Lawrence on Aug 31, 2015, 01:09
Re-implement emails correctly!

In gitlab by @A-Lawrence on Aug 31, 2015, 01:15
Fixed temp password email issue.  Addresses issue #488538 (191).
ÔåÆ <<cset 6302177f1cf7>>
ALawrence66 - 2015-01-04T13:02:45.307615+00:00

In gitlab by @A-Lawrence on Aug 31, 2015, 01:15
Implemented scopes in the Account qualifications (rather than my longwinded query structure).
Updated the dashboard to use these scopes properly.  Also modified the accessors/mutators (and removed trashed qualifications).
More email updates and improvements - addresses issue #488538 (191)
ÔåÆ <>
ALawrence66 - 2015-01-04T01:53:22.636406+00:00

In gitlab by @A-Lawrence on Aug 31, 2015, 01:15
A whole host of changes.
Removed more old models and enums.
Moved some enums to model classes - addresses issue #488396 (198).
Implemented the emails using Mailgun, properly.  Resolves issue #488538 (191).
Re-implemented the postmaster queue - addresses issue #488538 (191).
Added necessary postmaster commands - addresses issue #488538 (191).
Improved a few migrations (spelling, bad design, etc).
Added VATUK System generation (i.e. if it's deleted, it'll just get re-created).
ÔåÆ <>
ALawrence66 - 2015-01-04T00:16:36.118617+00:00

In gitlab by @A-Lawrence on Aug 31, 2015, 01:15
A whole host of changes.
Removed more old models and enums.
Moved some enums to model classes - addresses issue #488396 (198).
Implemented the emails using Mailgun, properly.  Resolves issue #488538 (191).
Re-implemented the postmaster queue - addresses issue #488538 (191).
Added necessary postmaster commands - addresses issue #488538 (191).
Improved a few migrations (spelling, bad design, etc).
Added VATUK System generation (i.e. if it's deleted, it'll just get re-created).
ÔåÆ <>
ALawrence66 - 2015-01-04T00:16:36.092547+00:00

In gitlab by @A-Lawrence on Aug 31, 2015, 01:15
A whole host of changes.
Removed more old models and enums.
Moved some enums to model classes - addresses issue #488396 (198).
Implemented the emails using Mailgun, properly.  Resolves issue #488538 (191).
Re-implemented the postmaster queue - addresses issue #488538 (191).
Added necessary postmaster commands - addresses issue #488538 (191).
Improved a few migrations (spelling, bad design, etc).
Added VATUK System generation (i.e. if it's deleted, it'll just get re-created).
ÔåÆ <>
ALawrence66 - 2015-01-04T00:16:36.062489+00:00

In gitlab by @A-Lawrence on Aug 31, 2015, 01:15
Added model dependency builder - sort of addresses issue #488535 (194).  Changed some migrations to make a bit more sense.  Modified timeline action keys and added postmaster migrations (and templates).  Partially addresses issue #191.  Also implemented a blade database compiler and guzzle (as pre-req of the Laravel mail classes).  Finally organised the pre/post commands properly too.
ÔåÆ <>
ALawrence66 - 2015-01-01T17:59:48.234805+00:00


preact create take so long time to finish

Do you want to request a feature or report a bug?
I want a feature because I think that I had a bug. So I will first talk about the bug.
What is the current behaviour?
The creation of an app don't finish.
If the current behaviour is a bug, please provide the steps to reproduce.
preact create default name --yarn --git --install  was taking more than two hours. It was take so long that I give up and I was try to delete the generated folder, but I geted the following error rm: cannot remove 'name/node_modules/simplehttp2server'': Device or resource busy.
So the bug is the time left to create an app and the impossibility of remove a folder after the creation fails.

What is the expected behaviour?
was to create the application with the specified name and install dependencies with the yarn flag, in addition to creating a git repository.
If this is a feature request, what is motivation or use case for changing the behaviour?
Would be good loggin the information about process for give an idea about whats going on with the current app creation. Maybe a --verbose flag
Please mention other relevant information.

Node version 9.6.1
npm version 5.6.0
Operating system Windows 10 Falls Creator Update
CLI version 2.1.1

Sorry to hear! I'd try again with this:
$ preact create default name --yarn --git --no-install

Then run yarn yourself manually. This way you'll get the files at least & can restart if needed.
The simplehttp2server is a massive dependency and will likely be removed going forward. It can sometimes get stuck based on npm permissions.
That said, you may need sudo to install.

Thank you @lukeed, with the --no-install flag have worked.
But it seems like an error occurring with installation when I choosie to yarn for manager my dependencies.
With that flag, the only information that appears is i INFO Assuming you meant preactjs-templates / default. and stock in that.
My version of yarn is 1.5.1

Likely a permissions error. Try sudo or just revert to sudo install with npm.

I told before that was worked, but I was just saw the yarn loging and the installetion of dependencies don't work even with npm command.
Since I am on windows, no have a sudo command, but I open windows power shell in administrator mode to execute the preact command. It stil not working.

the creation do not pass of that

This is a duplicate of #406. simplehttp2server is failing to install on your machine.
Try running npm i -g simplehttp2server


Add ability to render html directly

R = @ellell
T = minor

@iefserge I'm not following how this would be used, can you add usage info to the readme?

@kesla updated


The link  "Add a script to your repository " simply refreshes the page

Why have it?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 02b747eb-53c2-dd5f-cd2b-f337c15e0864
Version Independent ID: 04538505-00cd-33ac-8008-4b85cca089e3
Content: Use the visual designer to create a CI/CD pipeline - Azure Pipelines & TFS
Content Source: docs/pipelines/get-started-designer.md
Product: devops
GitHub Login: @andyjlewis
Microsoft Alias: alewis

Ah, sorry about that. That link is supposed to take you to the step labeled "Add a script to your repository" so you don't have to waste time on a "set-up" step that you may have already done. Fixing it now :)

Thanks


Enforcing URI encode seems to break

Since the move to encode URI some issues start to appears.
Rather than always encoding URI it should either be opt-in using an option or done by the one using needle.
Maybe something like :
needle
  .post('https://my.server.com/foo', data, { encode: true })
  .on('end', function() {
    console.log('Ready-o, friend-o.');
  })

See

#183
https://github.com/alexanderGugel/ied/issues/164 fixed in https://github.com/alexanderGugel/ied/pull/165 by downgrading to needle @1.0.0. There are more details in the commit message

Agreed. #171 should be totally rolled back immediately, as it breaks properly encoded urls by double encoding them.
If the developer is trying to fetch a broken URL, that's their problem, not needle's.


The text output is not fluent, need to improve it

See: https://demo.casibase.com/
The output of AI is not very fluent. The user experence is not good. How to improve it?

Fixed by: https://github.com/casibase/casibase/commit/d06e63ab4964409e452ce66b72f46888de12cd74


Adds related spans and error grouping for duplicate identifier errors

Fixes #25324
This adds related spans for cross-file "duplicate identifier" type errors (for up to the first 5 related spans, chosen by fair dice roll, as to avoid cluttering the output too much), and also compacts instances where many of such errors appear across a pair of files down to a single error message (the limit having been arbitrarily chosen as 8 instances).
Examples:

What about the ones in the same file, are you going to add the related info to the binder duplicate diagnostics?


componentWillMount actions

Is componentWillMount still the best spot for "on load" actions? Or is there any downside to firing them in the mapDispatchToProps before returning the map and keeping every component a function?

mapDispatchToProps is presumed to be pure. Please don't do data fetching there. It may be called multiple times, etc. Yes, componentWillMount is the best way. You can also create a custom higher-order component that would wrap yours, so you can keep yours a function and wrap it.

Hi @gaearon
I'm not sure to understand your answer to @chrishowes .
Can you provide an example of what you mean by creating a custom higher-order component and how to use it.
Thx
Best regards

https://github.com/markdalgleish/redial is a good example of what I mean.

Thx. I'll have a look


Config file not available via NPM

I attempted to install the config file via npm and received the following error message:
npm install -g stylelint-config-10up --save
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "stylelint-config-10up" "--save"
npm ERR! node v5.7.1
npm ERR! npm  v3.6.0
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/stylelint-config-10up
npm ERR! 404
npm ERR! 404  'stylelint-config-10up' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/username/npm-debug.log

This is a private repo, so the installation would only work by installing it as a github repo, e.g. npm install jonathantneal/stylelint-config-10up. I may need to rename this repo if it’s not being actively considered.

FYI, this was published as stylelint-config-dev.


[AutoPR storagesync/resource-manager] Add new version 2018-04-02 for Microsoft.StorageSync Resource Provider

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/3238

(message created by the CI based on PR content)

Codecov Report

Merging #2749 into restapi_auto_storagesync/resource-manager will decrease coverage by 0.42%.
The diff coverage is n/a.

@@                              Coverage Diff                              @@
##           restapi_auto_storagesync/resource-manager    #2749      +/-   ##
=============================================================================
- Coverage                                      56.32%   55.89%   -0.43%
=============================================================================
  Files                                           7459     7215     -244
  Lines                                         157888   151651    -6237
=============================================================================
- Hits                                           88926    84769    -4157
+ Misses                                         68962    66882    -2080

Impacted Files
Coverage Δ

...-batchai/azure/mgmt/batchai/models/resource_py3.py
45.45% <0%> (-54.55%)
:arrow_down:

...i/azure/mgmt/batchai/operations/jobs_operations.py
59.34% <0%> (-11.1%)
:arrow_down:

...mgmt/batchai/operations/file_servers_operations.py
69.37% <0%> (-10.08%)
:arrow_down:

...ure/mgmt/batchai/operations/clusters_operations.py
74.87% <0%> (-7.16%)
:arrow_down:

azure-common/azure/profiles/__init__.py
85.36% <0%> (-4.22%)
:arrow_down:

...t/resource/resources/resource_management_client.py
73.27% <0%> (-3.34%)
:arrow_down:

...mt/reservations/operations/operation_operations.py
93.1% <0%> (-3.06%)
:arrow_down:

...source/azure/mgmt/resource/policy/policy_client.py
68.91% <0%> (-2.8%)
:arrow_down:

...gmt/containerservice/models/managed_cluster_py3.py
29.41% <0%> (-2.59%)
:arrow_down:

...re/mgmt/containerservice/models/managed_cluster.py
29.41% <0%> (-2.59%)
:arrow_down:

... and 318 more

Continue to review full report at Codecov.

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

This PR has been merged into https://github.com/Azure/azure-sdk-for-python/pull/2734


chore: project addition by karthiknadar1204

Add a new project to the list
Want to add a music app
Record

[X] I agree to follow this project's Code of Conduct
[X] I want to work on this issue

This issue has been closed because it has not received any activity in the last few days


Providing a Single Question Based on Filters

Description: The system should provide a single question selected from a set of questions that match specific criteria (e.g., category, difficulty).
Acceptance Criteria:
If multiple questions meet the criteria, the system should randomly select one from the matching set.
The returned question must have details such as title, description, category, difficulty and image (if needed).

Closed due to changed requirements
We are using user's selection of questions instead of randomisation


Included NativeAnimation module on iOS in the starter project

Fixes #10638.
Added NativeAnimation library to the starter project iOS generator. Passing useNativeDriver: true to Animated config will enable the app to tap into the native code for animations.
Test plan
Init a RN project and animate an element. Enable native driver as follows:
Animated.timing(
      this.state.value,
      {
        toValue: 300,  // some value
        useNativeDriver: true
      }
    ).start();

Earlier, this used to crash.

What's the motivation behind this? Does this only prevent crashes for apps that use native Animated?

@hramos Yes, we shipped native animations for touchables and soon NavigationExperimental so we should include it by default now. It is also already included on android.

LGTM, I'll let @hramos ship it.

@janicduplessis Should I squash my commits or something? This is my first contribution to React Native :)

Not needed. the bot will take care of it :)

Great, thanks for your help reviewing this PR, @janicduplessis and @dlowder-salesforce. I can't import it just yet - we're holding off on updating app templates pending an improvement to how react-native upgrade works - but you may consider this PR approved nonetheless. I'll circle back and land it once that related work is finished.

Yes this will likely cause conflicts when people run react-native upgrade and had local changes in the Xcode project file, e.g. when using 3rd-party native modules. The new planned react-native upgrade should help but doing a 3-way merge but it will take a while to ship and the enabling native Animated is pretty important so I think we should ship it even before the new upgrade command is ready.
@facebook-github-bot shipit


Add labels to issues

Bailey:
Not sure if you noticed, but github has the ability to add labels to issues. I went through and added a few and tagged some.
Make sure that as programmers finish, they add the "ready to merge" label to the issue so we know it's ready to go into develop.
Also, any additional labels that you see fit should be added (such as the "help wanted" label on this issue, noting that it requires someone else's attention).
See this for details on creating/modifying them:
https://help.github.com/articles/creating-and-editing-labels-for-issues-and-pull-requests/

Also, need to decide which issues are the highest priority and need to be done first.

Hey Shalmezad (why is this your name I can't spell it) Baily's not here today and we were all confused as to what the lables were till we found this it's me and Brittany right now.


purge fetch directory

The workaround added in https://github.com/fultonj/tripleo-ceph-ansible/commit/59da7fa29e99891d56a1856af52c95678037bc68 must be replaced with something realistic
As per a conversation w/ d0ugal I am going to create tripleo_common/actions/files.py in tripleo-common
It will create actions to make and delete a temp file and I will call before and after I call the ceph_install task

Examples:

https://review.openstack.org/#/c/473586/4/tripleo_common/actions/ansible.py
https://docs.openstack.org/developer/mistral/developer/creating_custom_action.html

I have a patch to do this: https://review.openstack.org/#/c/477541/
Next steps:

use it in the main workflow
get it to pass unit tests

cd /home/stack/tripleo-common/tripleo_common/tests/actions
python -m unittest test_files

I get the same failures in my unit test with python -m unittest test_files as in CI.
http://logs.openstack.org/41/477541/5/check/gate-tripleo-common-python27-ubuntu-xenial/d1ae9dc/testr_results.html.gz

Library to do this merged https://review.openstack.org/#/c/477541
Change added to workflow and is working


How to remove an Attribute / Class link

pjmonks - I realised what I had done wrong in #552.
I was trying to break the link between the Class and the Attribute but actually deleted the Attribute rather than the link.
How do we break the link between the Class and the retired Attribute.
This is important. It is bad enough that it doesn't show the Attribute as retired in Mauro
The profile shows it as retired:

It is very confusing that the Attribute doesn't show as retired in the list so could easily be used incorrectly.
However, the main issue is, how do we remove the  Attribute / Class link?
The Attribute still shows on the Class but doesn't show as retired.

The link just goes to the retired page.

The dictionary website does not show links to retired items and never should.

@pjmonks - we have spoken to @jamesrwelch about this and he says there is a bug in the Orchestrator, which needs fixing.
If an Attribute is retired, it shouldn't display on the Class in the Orchestrator or the live dictionary.
Can you fix this please?

How will this display on the Change Request? Will we be able to see that the link has been removed? This is something that is checked on the Change Request review by other members of the team.

I will update this ASAP. To clarify, I will change the Class page so that the Attributes table does not list any retired attributes.

MauroDataMapper-NHSD/mdm-plugin-nhs-data-dictionary#134

For Change Papers, it will show that the link has been removed. If you think about it, one side of the change will contain a list containing the now retired attribute, then the other side of the change will include the same attribute but not marked as retired. This will then appear as a row deletion.

30/09/24 - Peter has already fixed this. It needs to be deployed and tested.

The fix to this has been deployed to TEST. I have spent a lot of time reviewing the previews/published outputs for retired items to make sure it looks correct when items are retired.
At this point, if an item is retired, that should mean it's link does not appear in another page. Meaning, a retired page link does not appear in:

The "Where Used" section of another page
The "Attributes" table of another Class
The "Attributes" linked list of another Element
The "Elements" linked list of another Attribute

@pjmonks - please see #591.
I've retired GEOGRAPHIC AREA but the link is still there on POSTCODE.
The link on POSTCODE takes you to the retired Class.
I was expecting the Relationship not to appear on the POSTCODE page as you say above "At this point, if an item is retired, that should mean it's link does not appear in another page"

@AngelaFaulding Retired class relationships have been fixed. Looking at CR8009 now, POSTCODE still has a relationship to GEOGRAPHIC AREA:

GEOGRAPHIC AREA is a retired class now:

And the preview of POSTCODE now stops showing GEOGRAPHIC AREA in the relationships:

Angie to check this the preview of CR8009.

The preview is now correct:


Use publish action instead of preview

Fixes call to the publish.json endpoint (the preview.json endpoint was
still being triggered from dist/index.js).

Thank you for your PR @zzamboni and sorry it took so long to merge it. Somehow I missed the notification about it.


Graphql pagination support

Pagination support for entities/events for now, will generalize that logic in followup PR after we've introduced dynamic schema

lgtm - lets merge so I can be on same page


Unable to load sample data in ubuntu

@Dunmail
I am trying to make fhirball work in ubuntu.
Whenever i run node load.js I am getting the following error.
{ [Error: connect ECONNREFUSED <IP_ADDRESS>:1337]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '<IP_ADDRESS>',
port: 1337 }
In my firewall config I have added the port 1337 but still I keep getting this error.

You need to have an instance of fhirball listening on <IP_ADDRESS>:1337 before running load.js


Batch MaxCLI Version Update

Azure Python SDK conversion of operations files to be in private directories causes extension loading break. Will need to release a new extension to support this.

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[x] My extension description/summary conforms to the Extension Summary Guidelines.

@tjprescott any idea why the index verify is failing to register the versions? Otherwise should be good for merge

@bgklein it means that the metadata in your actual published WHL doesn't match what you put in the index. You need to publish the WHL with the matching metadata.

@tjprescott manual inspection of metadata shows bdistwheel 0.30.0
{"classifiers": ["Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "License :: OSI Approved :: MIT License"], "extensions": {"python.details": {"contacts": [{"email"<EMAIL_ADDRESS>"name": "Microsoft Corporation", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/Azure/azure-batch-cli-extensions"}}}, "extras": [], "generator": "bdist_wheel (0.30.0)", "license": "MIT", "metadata_version": "2.0", "name": "azure-batch-cli-extensions", "run_requires": [{"requires": ["azure-batch-extensions (<6.1,>=6.0.0)", "pycparser (==2.18)"]}], "summary": "Additional commands for working with Azure Batch service", "version": "4.0.0"}

@tjprescott  any ideas?

@tjprescott ready for merge, missed that the classifiers were in the metadata.


Misleading installer instruction

I just learned about nvm-windows when googling for a convenient way to update node (on Windows) and it seems to be just what I need!
However, it wouldn't play at first and it took me a while to figure out why. In the installer I changed the default paths to my liking (which I almost always do), but I misunderstood the instruction that says "Select the folder in which Setup should create the symlink" (see screenshot below) and I chose an existing folder.
The installation completed without problems and (after changing some permissions) I could run nvm install latest to install version 0.10.35. Then I tried to run nvm use 0.10.35. It gave me an UAC prompt (like it's supposed to?) and then failed silently - no symlink created!
It wasn't obvious (at least to me) that the reason was that I had entered a path to an existing directory (since I thought that was what the installer asked for). You should really rephrase that instruction in the installer and perhaps also output a descriptive error message if there is a folder in the way when creating the symlink.

Noted, thanks for the suggestion!

Closing due to age. An entirely new installer will be built for "rt" (successor effort).


Case Switching

Hey, thanks a lot for this great tool : ) Just wanted to know if your tool also does case switching?
https://redacted.com/admin -> 403 Forbidden
https://redacted.com/Admin -> 200 OK

Sure !


Proposed change to macro parameter syntax

Proposed change:

Parameter types are no longer grouped in a s-expression (e.g.: (foo int))—the type is annotated on the parameter name (e.g. int::foo)
A grouped parameter is indicated by putting [] around the variable name (e.g. [foo]). When the variable has a type annotation, the type annotation stays with the variable name (e.g. [int::foo]).

@toddjonker's response from #287

Removing the S-expression from parameter type declarations eliminates a critical extension point. As an annotation, there's no good way to do anything but a type-name.

@toddjonker
What sort of parameter modifiers do you anticipate having aside from a type name, grouped-ness, and cardinality?


reMarkable Ferrari not supported

When I use the command ./reSnap.sh I get the message that reMarkable Ferrari is not supported.

Wich reMarkable do you have?
Is it the new paper pro?
The script expects the remarkable version to either be "reMarkable 1.0" or "reMarkable 2.0"
Your tablet seems to be the version "reMarkable Ferrari", which is bizarre ^^
-------- Original Message --------
On 10/13/24 9:39 PM, Lisa Harper  wrote:

When I use the command ./reSnap.sh I get the message that reMarkable Ferrari is not supported.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Yes, it is the paper pro.

I see.
It's not yet supported. And I don't have access to the hardware, so I won't implement support anytime soon.
You could try to get it running with the same settings as for the reMarkable 2 by editing the script. But I doubt that it will work.
If it works tho, could you please open a PR?


server: Fix the issue about RaftCluster cannot be stopped (#1370)

server: fix the issue about RaftCluster cannot be stopped

Signed-off-by: nolouch<EMAIL_ADDRESS>
What problem does this PR solve?
cherry-pick #1370

/run-all-tests tidb=release-2.0 tikv=release-2.0 tidb-test=release-2.0


Decentralize parachain relayer with linear timeout

Context
This is the implementation idea from Alistair, essentially linear waiting time for each relayer to avoid race condition, it's more deterministic/predictable.
So basically we've 2 options

random polling + fixed waiting time in https://github.com/Snowfork/snowbridge/pull/1265
subscribe + linear increased waiting time

The PR here for option 2.

Just to make sure I'm on the same page:
These changes are a "best effort" decentralization that assumes all relayers willingly follow this protocol and wait for their turn, right?
IIUC this will help with deploying multiple instances of these "nice/behaving" relayers, but there is no mechanism that prevents a relayer looking to maximize gains to just step on the other's slots.


model context length configuration

i have ".aider.model.settings.yml" in my home directory with custom context length for specific models, when i run aider in terminal and run those specific models aider recognizes the file and adjusts the context length of the model when using aider composer though it just launches the model with the default 8000 context length and ignores the".aider.model.settings.yml"

aider config file is not supported


Sorry: I'm back! error="apt cache update failed"

Hey, sorry to bother you again, but I have been encountering more and more problems with my nexcloud installation so I figured that it was time to just wipe the drive and start over.
This time I installed Pop OS which is a variant of Ubuntu.
I installed some command line tools, vscode, and hyperterminal, gnome tweaks, and a few gnome extensions but other than that everything is basically the same as a clean install.
And when I run the nextcloud playbook I get a failure as such here:
TASK [prep_letsencrypt : Add an apt key by id from a keyserver] *****************************************************************************
Tuesday 03 December 2019  00:01:44 -0600 (0:00:00.063)       0:00:34.201 ******
ok: [localhost] => (item=7BF576066ADA65728FC7E70A8C47BE8E75BCA694)

TASK [prep_letsencrypt : add additional repos] **********************************************************************************************
Tuesday 03 December 2019  00:01:45 -0600 (0:00:00.498)       0:00:34.699 ******
fatal: [localhost]: FAILED! => changed=false
  msg: apt cache update failed

PLAY RECAP **********************************************************************************************************************************
localhost                  : ok=65   changed=2    unreachable=0    failed=1    skipped=18   rescued=0    ignored=0

Any clue on what might be the cause? It looks like it's some kind of letsencrypt issue.

My guess: The playbook adds a repository to your system according to the major release number of Ubuntu to your system.
https://github.com/ReinerNippes/nextcloud/blob/fd0667543277d964388fc479323f3aa156989eff/roles/prep_letsencrypt/tasks/Ubuntu.yml#L13
If Pop OS doesn't use the same release numbers that won't work. You would have to find all line where {{ ansible_distribution_release }} is used an replace it with the 18. If that's the corresponding Ubuntu release.
You may check this by running sudo apt update on the cli. You should get an error message like repo not found.

@ReinerNippes Thank you for responding. Okay so I went in and I changed the {{ansible_distribution_release}} to 19 since that's the release for Pop OS and is supposed to correspond to the 19 release of Ubuntu.
It did not work.
Does it need the full 19.04 or whatever versioning numbers?

sorry. i made a mistake. i think it's not the number. it's the code name. look here:
http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/

@ReinerNippes  ah cool yeah that makes sense. So Pop OS is version 19.10 which is tagged to Ubuntu 19.1o which is code named Eoan Ermine which I don't see there. Should I just do Disco Dingo? (I'm going to go ahead and try but figured I'd respond here in case you saw it before I got back with whether or not that worked)

if it's the same fun like with fedora: good luck. it's really a mess to mix distro packages.
in fact docker was inventet to solve exactly the trouble. ;-)

It looks like actually my version of Pop is still 19.04 so replacing it with disco hasn't been an issue.
I changed 19 out for disco and I got a lot farther. This time the only problem was with the only office docker. Which gave me this response:
TASK [prep_onlyoffice : start a onlyoffice container] ***************************************************************************************
Thursday 05 December 2019  19:08:55 -0600 (0:00:00.032)       0:06:18.137 *****
fatal: [localhost]: FAILED! => changed=false
  msg: 'Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on pop-os''s Python /usr/bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: No module named ssl_match_hostname'

I'm doing more research on it now but it seems like it's something to do with python and docker.
Here's some more info:
python --version
Python 2.7.17rc1

I think this is related to that bug we found back in August: https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html

Okay now I'm hitting a really weird bug.
I'm doing a reinstallation of Nextcloud for 2 reasons:

because I want to fix some persistent bugs that have been cropping up with my previous nextcloud installation
my old installation of nextcloud was on my previous installation of linux and somehow due to some process of hacky installations etc, I ended up in a situation where my terminal emulator Hyper wouldn't work. I could get by using Gnome terminal but I really like the look and feel of Hyper so considering #1, it seemed like maybe it would be worthwhile to do a complete OS resinstallation and reboot of Nextcloud.

But I just ran the ansible script.... and hyper has stopped working again.
I noticed this a few days ago when I last tried to install nextcloud and I assumed that it was due to me installing an app called komorebi: https://github.com/zeit/hyper/issues/4033
But Hyper just stopped working and I didn't try to install hyper at all. Could perhaps something in the ansible script be breaking the ability for hyper to install?
I could do a reinstallation of Linux again (and I still might) but I was curious if you'd ever heard of something like this?
I'm also wondering if maybe I should forgo the ansible script and try installing this manually on my own. I've learned a lot in the last year so perhaps it wouldn't be so hard?
I'm going to try the python3 symlink trick re quick to see if that changes anything. If nextcloud can install after I do that, then I'm going to reinstall Pop OS from scratch and try running this again, with the disco variable inserted. And then I'll see if it's broken hyper or not.

I'm going to close this issue because I have decided to just use a default Ubuntu installation for now. However, in the process of doing this installation I have found that using this method disables/prevents the use of the [Hyper] terminal emulator which is a problem because I like using that hyper terminal.


DistributedIterator cannot be checkpointed because it is not trackable

Click to expand!
Issue Type
Feature Request
Source
binary
Tensorflow Version
2.10.0-dev20220520
Custom Code
Yes
OS Platform and Distribution
Linux Ubuntu 20.04
Mobile device
N/A
Python version
3.8
Bazel version
N/A
GCC/Compiler version
N/A
CUDA/cuDNN version
11.2/8.1
GPU model and memory
N/A
Current Behaviour?
`DistributedIterator` cannot be checkpointed because it is not trackable

Standalone code to reproduce the issue
ds = tf.data.Dataset.range(100).shuffle(8).batch(7)
ds_it = iter(ds)
print(type(ds_it))
ckpt = tf.train.Checkpoint(ds_it=ds_it)

strategy = tf.distribute.OneDeviceStrategy('cpu')
dist_ds = strategy.experimental_distribute_dataset(ds)
dist_ds_it = iter(dist_ds)
print(type(dist_ds_it))
ckpt = tf.train.Checkpoint(dist_ds_it=dist_ds_it)

Relevant log output
<class 'tensorflow.python.data.ops.iterator_ops.OwnedIterator'>
<class 'tensorflow.python.distribute.input_lib.DistributedIterator'>
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-5-cabcd820a79a> in <module>()
      8 dist_ds_it = iter(dist_ds)
      9 print(type(dist_ds_it))
---> 10 ckpt = tf.train.Checkpoint(dist_ds_it=dist_ds_it)

/usr/local/lib/python3.7/dist-packages/tensorflow/python/training/tracking/util.py in __init__(self, root, **kwargs)
   2015       # v to a Trackable data structure when v is a list/dict/tuple.
   2016       converted_v = getattr(self, k)
-> 2017       _assert_trackable(converted_v, k)
   2018
   2019       if root:

/usr/local/lib/python3.7/dist-packages/tensorflow/python/training/tracking/util.py in _assert_trackable(obj, name)
   1462       obj, (base.Trackable, def_function.Function)):
   1463     raise ValueError(
-> 1464         f"`Checkpoint` was expecting {name} to be a trackable object (an "
   1465         f"object derived from `Trackable`), got {obj}. If you believe this "
   1466         "object should be trackable (i.e. it is part of the "

ValueError: `Checkpoint` was expecting dist_ds_it to be a trackable object (an object derived from `Trackable`), got <tensorflow.python.distribute.input_lib.DistributedIterator object at 0x7fb291849610>. If you believe this object should be trackable (i.e. it is part of the TensorFlow Python API and manages state), please open an issue.

@lightingghost , Could you please move the issue to closed by referring above comment as we don't have any plan as of now to support this feature. Thanks!


Opening a file, it stays inside the small window?

Hi!
I've tried your plugin ranger and neovim is nice, but the problem is that it doesnt open the file into the buffer instead it opens up inside the floating window.
Any way to open it in nvim instead of staiying inside the floating window?

Rnvimr will automatically make ranger to open the file in neovim. I think this is your installation issue. What's your :checkhealth rnvimr output?

Sorry late response
1 health#rnvimr#check
2 ========================================================================
3 ##·OS
4 ··-·OK:·Name:·Linux
5
6 ##·Ranger
7 ··-·OK:·Version:·ranger·1.9.3
8
9 ##·Python

10 ··-·OK:·Version:·3.8.2·(default,·Apr··8·2020,·14:31:25)·[GCC·9.3.0]
11
12 ##·Pynvim
13 ··-·OK:·Version:·0.4.1
14
15 ##·Ueberzug·(optional)
16 ··-·WARNING:·Ueberzug·can·not·calibrate·properly·outside·Tmux.
17 ····-·ADVICE:
18 ······-·If·use·Rnvimr·without·Tmux,·please·upgrade·the·latest·version·of·Ueberzug
19
20 ##·RPC
21 ··-·OK:·Install·lib·for·checkhealth·successfully
22 ··-·OK:·RPC·echo:·Neovim·send·"Give·me·five!"·and·receive·"Give·me·five!"
23 ··-·OK:·Clean·lib·for·checkhealth·successfully
24
~
I dont understand how this should be run. Like in ranger I ran :eval os.getenv('VISUAL')
It didnt give any output.
eval os.getenv('VISUAL')

Hi sorry! It seems to work.
Seems like its not possible to make it work like  tpope vinegar plugin that it start it closes the window when I've opened a file?

:h rnvimr
g:rnvimr_pick_enable
    Default: 0

    Enable Ranger to be hidden after picking a file.
    It will automatically attach file in next |:RnvimrToggle|.

Hi!
Now I get it.. sorry I usually just create new empty files in ranger.
Seems like this works right if the files are not empty. Tho its a bug in that part that it opens up empty files inside the small window.

ranger open file using rifle. Already stated in the readme.

Q: Couldn't open some special type of files by using Enter or l in Ranger.
A: Please follow below steps to solve this issue:
The behavior of openning the file in Ranger depends on rifle.conf. Press r to make sure that the ${VISUAL:-$EDITOR} -- "$@" is the best candidate in Ranger.
If the case 1 is false, change the code in rifle.conf like that:
-!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
+!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|your_file_type = ${VISUAL:-$EDITOR} -- "$@"
execute:RnvimrSync to synchronize the rifle.conf just modified with Rnvimr.

If you want to open an empty file using ${VISUAL:-$EDITOR} -- "$@", you should change your rule of rifle.

OOh thanks. Sorry I somehow didnt get that earlier.
Is there also a way if I have multiple buffer in same window and open a file by rnvimr, is it possible to leave other buffer untouched and only change the current one?

Sorry for my inability to understand what you mean. Please explain clearly to me.

When I make a buffer split with  and open rnvimr to choose a file to open. It open up in the whole window instead of the chosen buffer.

Do you mean all buffers in nvim' window open the same file chose by ranger? If yes, I can't reproduce your issue.
Please try a mini.vim like this:
call plug#begin('~/.config/nvim/plugged')
Plug 'kevinhwang91/rnvimr'
tnoremap <silent> <M-i> <C-\><C-n>:RnvimrResize<CR>
nnoremap <silent> <M-o> :RnvimrToggle<CR>
tnoremap <silent> <M-o> <C-\><C-n>:RnvimrToggle<CR>
call plug#end()

Hi, I have the same issue. When I run rnvimr within nvim and  or  to open the file in neovim,
it opens an instance of nvim in the rnvimr floating window rather than the running instance of nvim.
I am on xubuntu 18.04 with the latest neovim and ranger and a pyenv version of python3.7 in my shell.
When I run :checkhealth, health#rnvimr#check throws an error:
`ERROR: Failed to run healthcheck for "rnvimr" plugin. Exception: function health#check[21]..health#rnvimr#check[2]..154_check_python_ranger, line 7
Vim(let) :E688: More targets than List items.
OK, I have answered the problem as it pertains to myself:
rnvimr finds the apt installed (old) version of ranger and tries to use it. I uninstalled this and installed the python package with pip instead.
I have cloned your git repository and linked to ranger.py to run ranger from the shell (because the Ubuntu Repository ranger is outdated).
Within nvim, the rnvimr looks for ranger and can't find this version --- the symlink to ranger.py is in ~/bin --- but it can find the pip install ranger-fm version which runs within nvim.

Hi, I have the same issue. When I run rnvimr within nvim and try to open the file in nvim,
it opens an instance of nvim in the rnvimr floating window rather than the running instance of nvim.
I am on xubuntu 18.04 with the latest neovim and ranger and a pyenv version of python3.7 in my shell.
When I run :checkhealth, health#rnvimr#check throws an error:
`ERROR: Failed to run healthcheck for "rnvimr" plugin. Exception: function health#check[21]..health#rnvimr#check[2]..154_check_python_ranger, line 7
Vim(let) :E688: More targets than List items.
OK, I have answered the problem as it pertains to myself:
rnvimr finds the apt installed (old) version of ranger and tries to use it. I uninstalled this and installed the python package with pip instead.
I have cloned your git repository and linked to ranger.py to run ranger from the shell (because the Ubuntu Repository ranger is outdated).
Within nvim, the rnvimr looks for ranger and can't find this version --- the symlink to ranger.py is in ~/bin --- but it can find the pip install ranger-fm version which runs within nvim.

Specify your Ranger path to g:rnvimr_ranger_cmd.

g:rnvimr_ranger_cmd
Default: 'ranger'
Use this command to run a process inside the floating window.
It can mix some command of Ranger, such as 'ranger --cmd="xxx"'.


Add Support for "cg" type of galllery

An error occured when trying to download cg gallery, ex url: https://hitomi.la/cg/...
(node:6408) UnhandledPromiseRejectionWarning: HitomiError [REQEUST_REJECTED]: Request to 'https://hitomi.la/artistcg/redacted-xxx.html' was rejected
    at ClientRequest.<anonymous> (/Users/stillmen/Documents/PROJEKT/rej-hitomi/node_modules/node-hitomi/library/index.js:1:1472)
    at Object.onceWrapper (events.js:422:26)
    at ClientRequest.emit (events.js:315:20)
    at HTTPParser.parserOnIncomingClient (_http_client.js:641:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
    at TLSSocket.socketOnData (_http_client.js:509:22)
    at TLSSocket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at TLSSocket.Readable.push (internal/streams/readable.js:223:10)
(Use node --trace-warnings ... to show where the warning was created)
(node:6408) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6408) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

As you can see, the request url changed from cg to artistcg
Thank you.
Edited
My code:
const hitomi = require('node-hitomi').default;

hitomi.getGallery(2006297)
.then(function (value) {
    console.log(value['title']['display'], value['id']);
});

Hmm... I didn't know that Hitomi treats artistcg and gamecg in the same way in URL.
I found what caused the error, and the new release will soon be released with some other bug fix.
Thank you for reporting the issue!

Thank you for fast response. I'm sorry I couldn't be more helpful, I'm not a node programmer :disappointed:
Can't wait for new release!

I tested it out and now it works fine, please check out for package's new release!

Tested and works as expected! Thank you so much.
Closing issue now.


Add Red Pajama conversion script for sample and full dataset

Fixes #155

We'll need to start testing these scripts by mocking some stuff out.

I'll add a howto in a subsequent PR

Ready to review @awaelchli @carmocca


generics: Confusion between interfaces and constraints

Is there any way of using constraints as return types where the value being returned is instantiated in the body of the function?
Or does this fall into Possible future step: permitting constraints as ordinary interface types?
type iors interface {
	type int, string
}

func Bar() iors {
  return int(1)
}

func Foo[T iors]() T {
  return int(1)
}

From https://go2goplay.golang.org/p/S5ppLsCtMPv
type checking failed for main
prog.go2:12:10: cannot use int(1) (constant 1 of type int) as T value in return statement
prog.go2:7:12: interface contains type constraints (int, string)

It's becoming clearer.
The following works.
https://go2goplay.golang.org/p/eGjeoSCo7Ua
type iors interface {
	type int, string
}

func Foo[T iors]() (t T) {
  fmt.Printf("%T\n", t)
  x := 1
  return *(*T)(unsafe.Pointer(&x))
}

func main() {
	a := Foo[int]()
	fmt.Printf("%T(%v)\n", a, a)
}

Related to https://github.com/golang/go/issues/45380
Type switches on return types might be nice.
func Foo[T iors]() (t T) {
	switch t.(type) {
	  ...
	}
}

I don't see any action to take here.
Discussion about the generics proposal should take place on golang-nuts.  Thanks.

@ianlancetaylor thanks for the response / triage.
I'm pushing on using generics as sumtypes, it's clear they're not there yet.

There is some discussion at #45346.  But, yes, support for sum types is intentionally omitted.


One to many item keys contains duplicates

Hi @yfilali
I have made some enhancements to OneToMany serialize and deserialize.

before this modification save a relationship with the same key duplicated were allowed but at resolve() time boto3 will raise an error with "Provided list of item keys contains duplicates"
see commit #64235f9c5731d5b5a1d836f32d422fb052586cca

I've added the uniqueness parameter to OneToMany constructor
if is not set or is set to False if you set a duplicated item in a relation nothing is done
if you set uniqueness='throws' an exception will be raised.
if you set uniqueness='clean' the keys in relation will be deduplicated

Feel free to modify or makes some changes

hi @yfilali any news on this?

Hi @petecocoon,
Thanks for this. The changes look good to me, but my first instinct would have been to not allow duplicates at all and simply de-dupe on the fly which I think makes intuitive sense. I am ok with the behavior you implemented as long as the default is uniqueness='clean'.
Any chance you have time to add a blurb to the readme about this? maybe below Limitations as a new section?
If not, I'll try to find some time this weekend to go through it in more detail and document before merging it in.
Thanks a bunch for the contrib!


Hide empty drives

What feature or improvement do you think would benefit Files?
An option to hide empty drives in the drives-section on the left side (I think File Explorer has this feature).
I've got three hard drives installed in my PC, but for some reason between those drives there is a generic button for "USB-Drive E:".
The folder behind is empty and the hover tooltip shows no info.
I have no partition on any drive with the letter E:
When I insert a USB-drive, it shows up under its own name and partition, but has no tooltip and when I click on the generic E: button, a popup displays with "access denied".
I also tried a thumb drive with a "normal" FAT partition and a RAW partition, but this RAW partition also shows up even though it is empty.
Would be neat, if those partitions would disappear, to reduce clutter in Files.
Requirements

Check if partition is empty before adding it to the drives list being displayed on the left side

Files Version
<IP_ADDRESS>
Windows Version
Windows 11 22H2 25314.1000
Comments
No response

Merging with #10550


Process creation has failed: Access denied.

Hi there,
While this tool looks really promising, I just can't get it to work on my pc (Windows 10 x64).
It's spawning this error for every command I feed into it, even the examples from the readme.
Process creation has failed: Access denied.

ERROR: Process ``ping.exe -n 16 gnu.org´´could not be created!

ping.exe -n 16 w3c.org

Things I've tried:

Running cmd or MParallel as admin: Doesn't work.
Running " in compatibility mode: Doesn't work.
x86 vs x64 exe: Doesn't work.
Older version: Doesn't work.

Any ideas? Thanks in advance!

Hello.
You should not be running in "compatibility mode". And running as "admin" is only needed when whatever processes (tasks) your are creating need to run with "admin" rights.
Please post your complete and exact command-line! I'm on Windows 10 x64 as well and this works fine:

Regards
MuldeR

Thanks for your fast reply!
I tried the same command as yours, but I get the same result:

Disabling ESET doesn't seem to have effect.

Well, so it looks like CreateProcessW(), which is a Windows system function, failed to launch "ping.exe" with Win32 error code 0x5, aka "Access denied". There are like a zillion of reasons why the access to a file might be denied. But, if "ping.exe" starts normally when you run it directly (from the same console window), then something weird is going and I suspect that Crapware (i.e. "anti-virus" software) might be interfering.
To further analyze the problem, you might use the Process Monitor. But, it will probably only show that MParallel called CreateProcessW() with the correct parameters and still CreateProcessW() return with error code 0x05.
Anyway, did you try with some other program than "ping.exe"?
Regards
MuldeR

So, it looks like CreateProcessW(), which is a Windows system function, failed to launch "ping.exe" with error code 0x5 ("Access denied"). There are like a zillion of reasons why the access to a file might be denied. But, if "ping.exe" starts normally when you run it directly, from the same console window, then something weird is going on - in which case I suspect that Crapware (i.e. "anti-virus" software) might be interfering.
To further analyze the problem, you might use Process Monitor. But, it will probably only show that MParallel called CreateProcessW() with the correct parameters, but it returned with error code 0x05.
Under normal circumstances, it should look like this:

Anyway, did you try with some other program than "ping.exe"?
Regards
MuldeR

I checked with Process Monitor, but there weren't any Process Create calls.
I tried on my laptop, and there it worked (with the same "crapware").
I was really puzzled by this, so I just restarted my computer. Now it miraculously works! Even with ESET active.
Really strange...
Thanks for the tool! My tasks are now finished in a matter of seconds instead of a few minutes processing a single queue.

Okay, so I think we can consider this one resolved for now 😼


Add Start and Stop operations for MW Deployments

@miq-bot add_label ui, providers/hawkular, enhancement

LGTM and works like a charm

@miq-bot assign chessbyte

@ammendonca great job


example-01

just a copy of the example from the docs to start off basic examples for users.

Merging for now, will detail it out when I stabilize things a bit more.

Yep that’s what I thought


Error in Deploy Main / Deploymanagement

Encountered during Deploy TRE - Deploy Main / Deploy Management
Initializing provider plugins...

Finding hashicorp/azurerm versions matching "3.12.0"...
Using previously-installed hashicorp/azurerm v3.12.0

Terraform has been successfully initialized!
data.azurerm_client_config.current: Reading...
azurerm_resource_group.mgmt: Refreshing state... [id=/subscriptions//resourceGroups/]
data.azurerm_client_config.current: Read complete after 0s [id=2022-09-23 21:59:23.609348564 +0000 UTC]
azurerm_storage_account.state_storage: Refreshing state... [id=/subscriptions//resourceGroups//providers/Microsoft.Storage/storageAccounts/***]
╷
│ Error: alpha numeric characters only are allowed in "name": ""
│
│   with azurerm_container_registry.shared_acr,
│   on main.tf line 43, in resource "azurerm_container_registry" "shared_acr":
│   43:   name                = var.acr_name
│
╵
╷
│ Error: "name" cannot be less than 5 characters: ""
│
│   with azurerm_container_registry.shared_acr,
│   on main.tf line 43, in resource "azurerm_container_registry" "shared_acr":
│   43:   name                = var.acr_name
│
╵
make: *** [/home/vscode/AzureTRE/Makefile:32: mgmt-deploy] Error 1
Error: Process completed with exit code 2.

duplicate of #20


[bug] Updating menu items not working

Describe the bug
Updating menu items not showing to be updated after calling methods to manipulate them
Reproduction
https://github.com/grzianod/screencrab
Expected behavior
Expected menu items to be selected
Platform and versions
[✔] Environment
    - OS: Mac OS 13.4.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.67.1 (d5a82bbd2 2023-02-07)
    ✔ Cargo: 1.67.1 (8ecd4f20a 2023-01-10)
    ✔ rustup: 1.25.2 (fae52a197 2023-02-01)
    ✔ Rust toolchain: stable-x86_64-apple-darwin (default)
    - node: 18.14.2
    - npm: 9.8.1

[-] Packages
    - tauri [RUST]: 1.4.1
    - tauri-build [RUST]: 1.4.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.2
    - @tauri-apps/api [NPM]: 1.4.0
    - @tauri-apps/cli [NPM]: 1.4.0

Stack trace
No response
Additional context
No response

Seems it's acting weird with multiple windows initialized.


Improve navigation between sections

Problem: Navigation between sections has a lot friction if someone wants to move quickly between lessons or skip some parts. Since the navigation uses a drawer, it forces the users to always EITHER use the lesson interface OR the sidebar navigation.

Proposed Solution:

[x] A sidebar similar to mdbook format where all sections and sub-sections (collapsible) are displayed together.
[ ] It should be possible for the user to continue using the lesson interface with the sidebar open - again, similar to mdbook format.
[ ] Allow hotkeys for navigation (good to have)

https://github.com/dotcodeschool/frontend/commit/44305a012308e36bf9b31f5adf961eac5e19c90c fixes the primary concern
keeping the navbar open and using hotkeys are low impact, hence not a priority


Implement build ID scavenger

Once we start accumulating build IDs in the DB, we'll need a process that will periodically clean up unused build IDs.
Build IDs are stored serialized in a single DB column that is limited in size.

Thank you for reporting this! This is a known issue and we are working on a solution for it. Currently, there is no automatic cleanup process for unused build IDs.
We recommend manually deleting unused build IDs from the database. This can be done by using the temporalctl command-line interface to query for unused build IDs and then deleting them using the temporalctl workflow delete command.
We are working on a solution for this issue that will automatically clean up unused build IDs, but for now, manual deletion is the best workaround.
For more information on managing build IDs, please refer to the documentation: https://docs.temporal.io/

Thank you for raising this important issue. We understand the need to manage build IDs effectively, especially in terms of database storage limitations.
While we don't currently have a built-in cleanup process for unused build IDs, here are some potential workarounds:

Regularly delete unused build IDs: You can implement a periodic task to identify and delete unused build IDs.  This can be achieved through a separate process or a scheduled cron job that interacts with your Temporal database.

Use a dedicated table for build IDs: Consider storing build IDs in a dedicated table instead of the main database table. This can potentially help you optimize database performance and storage management.

Please let us know if you have any further questions or require more specific guidance.

Thank you for reporting this issue!
I understand that you need a process to periodically clean up unused build IDs in your database. Since build IDs are serialized in a single, size-limited database column, you're concerned about potential storage issues as they accumulate.
Could you please provide more information about how you're using build IDs in your Temporal workflow?  Knowing how they are used and how they become "unused" will help me determine the best solution for you.
For example, are you using build IDs to track workflow versions?  If so, is there a way to automatically remove unused build IDs after a certain period of time, or when a new version is deployed?
I'm ready to help you find a solution that addresses your specific needs.


Check input types

We should add explicit type checks to inputs and throw exceptions if they are the wrong type, with an explanation of what’s wrong.
An example of this in GalSim: link.
This has come up recently with a relatively new user building a pipeline and receiving somewhat cryptic errors.
I remember goldenspike being broken last October because some package it used had switched to jax arrays over the previous numpy arrays (we had to add the type check here), so it looks like this may continue being a problem if we don't take the time to address it now.

Thanks for opening this issue, Olivia!  Just to add to this (as I'm part of the project that inspired this issue):
In my experience, users outside of the development team may not always be aware of the right usage for given functions.  Providing the wrong type for the inputs is a really common failure mode.  If you explicitly check and raise a useful error about what's wrong, they can quickly learn the right usage.  If you do not do a type check, they often will get a cryptic error due to the code trying to do something that isn't allowed for their particular input somewhere within the function. While Olivia shared a specific example in GalSim, it was something we tried to do systematically, and it has been quite helpful for users.
I think the issue is relevant not just to tables_io (where it happens to have showed up) but also to the RAIL ecosystem, as DESC members will be using these codes for research projects meant to prepare for cosmological analyses using photo-z, and these checks will support those users' adoption and effective usage of the code.

It would be good to clarify the scope of what you have in mind.   Are you more concerned with container type (I.e., Jax v numpy) or the data type (Ie float v double)? the first is relative straightforward, modolu the fact that python is duck-typed, so sometime “type checking” is not actually a well defined thing, the later is much more involved.On Jul 26, 2023, at 9:45 AM, Olivia R. Lynn @.***> wrote:
We should add explicit type checks to inputs and throw exceptions if they are the wrong type, with an explanation of what’s wrong.
An example of this in GalSim: link.
This has come up recently with a relatively new user building a pipeline and receiving somewhat cryptic errors. I remember goldenspike being broken last October because some package it used had switched to jax arrays over the previous numpy arrays, so it looks like this may continue being a problem.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Obviously I cannot speak for Olivia, but personally I was referring primarily to the case where the inputs are a particular class with methods that the function is going to try to use (like a pandas dataframe versus a qp.Ensemble versus a numpy array versus a list/tuple), rather than e.g. float vs. int.  The manifestation of the issue is the cryptic error that you get when the function tries to use some method of the class it's expecting, and it's preventable through an explicit check of the type.

It’s a bit tricky, b/c in some cases we would very like to be able to handle a panda data frame OR and dictionary of numpy arrays.    That is what I was referring to about duck-typing.
-e

On Jul 26, 2023, at 1:57 PM, Rachel Mandelbaum @.***> wrote:
Obviously I cannot speak for Olivia, but personally I was referring primarily to the case where the inputs are a particular class with methods that the function is going to try to use (like a pandas dataframe versus a qp.Ensemble versus a numpy array versus a list/tuple), rather than e.g. float vs. int. The manifestation of the issue is the cryptic error that you get when the function tries to use some method of the class it's expecting, and it's preventable through an explicit check of the type.
—
Reply to this email directly, view it on GitHub https://github.com/LSSTDESC/tables_io/issues/79#issuecomment-1652484197, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRIGIR2OJRBBMQGZPZK723XSGADNANCNFSM6AAAAAA2Y3UKAM.
You are receiving this because you commented.

Yes, completely understood that in some cases multiple types would work (we've dealt with that situation in GalSim before as well).  I won't be at the meeting next week but I'm happy to answer further questions here asynchronously.

Do we have an example of these cryptic errors that people are receiving, and the data files that generated them.   I think that could help the discussion.
Tables_io is already trying to strike a balance between checking that things really are tables, and being able to support things that effectively act as tables, so it would be really helpful to have additional examples where this isn't working.

The point about some downstream code trying to use some function doesn't exist is particulary tricky here.
The idea tables_io is that it makes it easy to read things that are "table-like" in the sense that provide certain functionality, like have len() and getitem do preditable things.   We haven't been explict about what "table-like" means, and we could clarify that.
On the other hand, some "table-like" classes provide additional functionality like join() or whatever, and in that case the code is going to crash when that function is called on a different type of table that doesn't support that function.
I'm not sure the later case actually something we should be trying to catch in tables_io, as nice as it would be to be able to do that.  We should discuss this more.

That's the screenshot Olivia sent me relating to this issue.
If I understand correctly, the issue is that datafile, which looks be some sort of DataHandle wrapping a qp.Ensemble object got passed to a ColumnMapper stage, which expects a catalog-like table, probably in
It doesn't look like tables_io is involved in this.
The docstring for ColumnMapper says:
    Utility stage that remaps the names of columns.

    Notes
    -----
    1. This operates on pandas dataframs in parquet files.

    2. In short, this does:
    `output_data = input_data.rename(columns=self.config.columns, inplace=self.config.inplace)`

However, the interactive routine, __call__(self, data): doesn't do explicit type-checking, (though it could, since it clearly expects a pandas.DataFrame object, and has an overly vague docstring, that says it tables table-like data, when actually it only takes DataFrames.
Anyway, if this was the source of the somewhat cryptic error messages that triggered this issue, I'm pretty sure the place we want fix is ColumnMapper in  rail_base .

Can we confirm that this issue relates to the screen shot above?   If so, I think we should close it, and instead consider putting checks in the DataHandle classes in rail.


Add ability to start parallel compensation

What would you like to be added:
Typically compensation is done in reverse order once its explicitly triggered.
There are use cases however where all compensation activities are not related to some ordering, but
for sake of performance can be executed in parallel.
Add ability to overwrite the "reverse order" default with ability to define you want compensation to be performed in parallel .
This should be done in the "compensate" definition.
Why is this needed:
Ability to solve cases where compensation can be performed in parallel

@cdavernas @ricardozanini @mswiderski
any issues with this?

@tsurdilo nothing against the idea, which is good imo. I'm just wondering how this could be factored into the spec? As a matter of fact, I'd prefer not to have to choose between sequential or parallel compensation, but would rather prefer having the option to use both on the same pipeline. Being, do example, able to do 3 different compensation in parallel then continue compensation in a sequential fashion. Wdyt?

i think that will get pretty complex. as compensation is modeled in wf def and is part of control flow logic i think we can utilize parallel state as a compensation state, and have the effect you are asking for.
this request is just an all-or-nothing setting that would not affect your compensation control flow logic.
maybe we can start with that and then expand once we have some more complex use cases?

so will that be on the compensation triggering side or compensation handling side? I mean what part of compensation will actually define how it should work?

on trigger, something like
"compensate": true (sequential reversed)
"compensate": { "parallel": true } (parallel)

hmm wouldn't it cause that same logic could be triggered in different ways? Like one compensation event will be parallel and the other sequential? Just thinking out load here but I a not sure we need anything extra to what you described with parallel state. Personally I would not complicate compensation with that but rather let users model their compensation logic with parallel support explicitly.

yeah good point it would also add to possible user errors. do think that top level single time def could work. will do pr and then lets have a look if we want or not. prob not for 0.9 however


Update cpuid

IIRC we had to defer updating this because of a fatal crash on some ARM platforms. https://github.com/caddyserver/caddy/issues/3537
Do you know if that is fixed in the latest version? (Haven't had a chance to check.)

ARM support was disabled/reverted in v1.3.1 then re-introduced with major changes in v2.0.0 https://github.com/klauspost/cpuid/releases


Update CSCW 2022

Which conference does this PR update?

-CSCW
Related URL

-https://cscw.acm.org/2022/submit/papers.html

I see. The history is added now.


Preferred way to add current_user to newly created resource

I'm trying to add current_user to a newly created item.  I could do this is a controller, but seems would result in lots of mucking getting strong params to work.  Docs seem to suggest this type of stuff done in the resources?
So I was thinking of adding in an after_create in the resource file but current_user is not available there.  I thought that doing something like this in base ApplicationController:
def context
{current_user: current_user}
end
would expose current_user in the context in a resource but doesn't seem to be the case.
Suggestions?

It looks like your context method is correct. The context should should be available on the resource. Is it possible the current_user method isn't returning a user?
I assume you are trying to access the current user through the context and not directly as current_user.
One other option, besides the callback, is to override the save method on the resource:
def save
  @model.editor ||= context[:current_user]
  super
end

But again that will require that context is properly being provided to the resource. You should not need to resort to trying to do this in the controller, other than the context method.

Ok think the problem may have been that I had context in ApplicationController, which doesn't include JSONAPI::ActsAsResourceController.  This is in a subclass which is the base class for all controllers which need this.  Moving the context method there  and overriding save as you suggest works.  Thanks!

That makes sense. Importing JSONAPI::ActsAsResourceController is overriding the context method you have defined in your base class. That's a scenario I hadn't considered. I'll at least add a note about this in the readme. Thanks for following up with the cause.

@lgebhardt no problem.  btw the app this relates to is an [example rails api server] (https://github.com/kagemusha/crambear-api) with ember-cli pair of apps.  would love suggestions for improvements in jsonapi-resources usage and feel free to cite it as a somewhat more extensive example than peeps.  In any event, will have more questions for you in near future.

Brilliant, thanks to @lgebhardt for the suggestion and @kagemusha for the example app.

Thanks this helped. Didn't know how to get from the context to the resource model having it.

In the docs, it would be great to note how to set context (in something like your application controller by defining the method). I now know how from reading this thread :-)

@lgebhardt can probably close this issue?

@theirishpenguin It's there, quite far down the readme: https://github.com/cerebris/jsonapi-resources#context

Thanks for the reply @koriroys. The problem is it's a bit late by then and it could use a user friendly 1 line blurb to give a bit of context to the concept of context :smile: just for newcomers to the jsonapi-resources project.
I propose moving it higher up the docs so that readers have an understanding of what context is as they read the remainder of the docs - such as this in PR https://github.com/cerebris/jsonapi-resources/pull/631/files


Add django-rest-framework to requirements.

Coverage remained the same at 92.99% when pulling af2c7e96e01f75118b77ebb632931051981dead8 on akatsoulas:django-rest-requirements into 53ed6a341196e09468b9aaf59504f2e12461167b on mozilla:master.

I am not sure why we need this. We already maintain django-rest-framework dependency in vendor-local.

I would say, with the current setup, just for reference. It's like django-import-export. Although it's installed in vendor-local/lib, it's also in the requirements file.  On the other hand, since there is no actual need for this, feel free to close it.

Let's merge that since this is going to be helpful if we want to start using peep.

r+


Llama Guard models

https://huggingface.co/meta-llama/LlamaGuard-7b

Latest is Llama Guard 3: https://llama.meta.com/docs/model-cards-and-prompt-formats/llama-guard-3/

Hello,
I am trying to use the Llama Prompt Guard with Ollama. However, when I attempt to create the model using the ollama create command, I encounter the following error:
Error: unsupported architecture

Could you please provide guidance on how to resolve this issue or add support for this model in Ollama?
Thank you for your assistance!

Bumping this request up. Would be great to have a llama guard 3 in Ollama!

Llama Guard is now available: https://ollama.com/library/llama-guard3

@dhiltgen Are there any plans to support llama guard 3 11b vision? it's the only safety model with multi-modality. Since ollama already added llama 3.2 11b vision, it should hopefully be much simpler


Include Chatbubble as a part of language scrambling

As a GM, some users may wish to use FVTT's chatbubble during text conversation. Currently, chatbubbles are not affected by polygot. Perhaps a future implementation could include an option to use chatbubbles as well?
Thanks!

Know, still waiting for chat bubbles hooks to be added so I can control them. For now I can't do anything about it. But you did remind me to check and realized there never was an issue on FVTT tracker to remind Atropos to add a hook for chat bubble rendering.


401 and 403 Behavior in CookieAuthenticationHandler

The CookieAuthenticationHandler class always redirects a user on unauthorized and forbidden. It doesn't seem like there is a way to tell it to use the base implementation of sending back a 401 and 403. Is there a way to get that behavior (without a hack) or is there another auth implementation we should be using?

I assume this is for a WebApi or similar? You should be using Bearer, Windows Auth, Basic, etc.. Cookie auth is for user-interactive flows.

It would be a waste of a good cookie :) to use tokens just for that.  This achieves the goal.
services
                .Configure<CookieAuthenticationOptions>(o =>
                {
                    o.Notifications = new CookieAuthenticationNotifications()
                    {
                        OnApplyRedirect = c =>
                        {
                            if (c.Request.IsAjaxCall() && c.Response.StatusCode == 200)
                                c.Response.StatusCode = 401;
                            else
                                c.Response.Redirect(c.RedirectUri);
                        }
                    };
                });

Thanks, guys. I'm going to go with @MaximBalaganskiy on this one.

Dup of https://github.com/aspnet/Security/issues/508.


‘x-ms-mail-application’ workflow identifier not equal to the app or flow ID

Based upon my investigation the Exchange message header attribute ‘x-ms-mail-application’ seems to be NOT equal to the app or flow ID as stated in the documentation. Instead the 'x-ms-mail-workflow' - to be precisely 'x-ms-workflow-name' - is equal to the app or flow ID. In my example code (GUIDs are modified) with value: 0265880c-6253-435a-8621-387d7b587c68
It is equal to the flow ID retreivable from the flow URL:
https://make.powerautomate.com/environments/Default-ac3157f1-6cea-49a4-ab36-88b1f4b4378d/flows/shared/0265880c-6253-435a-8621-387d7b587c68
Moreover, it also contains the Flow Run ID. Therefore, you may even construct the Flow Run URL:
https://make.powerautomate.com/environments/Default-ac3157f1-6cea-49a4-ab36-88b1f4b4378d/flows/shared/0265880c-6253-435a-8621-387d7b587c68/runs/08538796258880721924816453387CU04
Please verify and revise the documentation and extend the sample message header excerpt to include the additional headers as well. Thank you.
Below my example message header
x-ms-mail-application: Microsoft Power Automate; User-Agent:
 azure-logic-apps/1.0 (workflow afa0fb167803450aa650267e95d43287; version
<PHONE_NUMBER>2199532216) microsoft-flow/1.0
**x-ms-mail-operation-type: Forward**
x-ms-mail-workflow: x-ms-workflow-name: 0265880c-6253-435a-8621-387d7b587c68;
 x-ms-workflow-run-id:<PHONE_NUMBER>8880721924816453387CU04;
 x-ms-client-request-id: 77643512-2869-4372-8d9d-b6a710265880;

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: c7d16c2c-fbad-7ed0-ea2d-fd8faee42054
Version Independent ID: 44d87949-1656-7360-e1e5-c8f45e029604
Content: Email exfiltration controls for connectors - Power Platform
Content Source: power-platform/admin/block-forwarded-email-from-power-automate.md
Service: power-platform
Sub-service: admin
GitHub Login: @paulliew
Microsoft Alias: paulliew

@paulliew @bishalgoswami
Any update on this issue?

@paulliew
Any update or confirmation?


Drop PHP5 and HHVM, add more PHP7 versions, upgrade development dependencies

Coverage decreased (-9.5%) to 85.874% when pulling 304dbfcf28d3e1e06ff2f127410a25f024ca5ff6 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-18.4%) to 77.003% when pulling 2059c34cdfa4ecfab314b0382a86db574ed9b43a on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-18.4%) to 77.003% when pulling 530679fbad36fcdc3a0865d6a1c2e39587375aab on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-18.4%) to 77.003% when pulling 7d90526abf7853faa22af1f90893cc5902c5c732 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-18.4%) to 77.003% when pulling 5fba0f2a13685e7f0675b3bc25989eea9e916ec3 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-7.02%) to 88.372% when pulling 2e3fa60c8b0e99bea90ed99461ecb3986fdf87ab on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-3.06%) to 92.334% when pulling f5bf97568374969b96a4487e38ac6d8c563b752a on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-3.06%) to 92.334% when pulling 7a9c2d730b916336b3a408a854acdd06f0ec3094 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-1.08%) to 94.315% when pulling e5498c19956b3129409953d03c35400078480810 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-1.08%) to 94.315% when pulling 7e2cfb10c260e47aee018c20534323a2c64c1787 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-0.5%) to 94.892% when pulling e5c03dfcc26a68af33d3f7c074ac9165db568cca on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-0.5%) to 94.892% when pulling ae328366abb06d940c5f852bae459fd4ad00b037 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-0.5%) to 94.892% when pulling c16884985d4a0d7a6d55f3b6d92e2c09bdc4fd1f on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-0.5%) to 94.892% when pulling<PHONE_NUMBER>f53d27d55433edbb07033019ab09da on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-0.5%) to 94.878% when pulling 90eb0475d32114516ba71619fa12acd7296b9f51 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-0.5%) to 94.878% when pulling 90eb0475d32114516ba71619fa12acd7296b9f51 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.

Coverage decreased (-0.3%) to 95.056% when pulling 4ac99349f8568fdeae79c2f1779d629ac141c108 on versions into f20a99b2bff1fe30723af1fbaeffd86411154a44 on master.


locale resource does not set LC_ALL

Description
locale resource does not set LC_ALL
Chef Version
$ chef-client --version
Chef: 14.6.47

Platform Version
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.5 LTS
Release:	16.04
Codename:	xenial

Replication Case
when my recipe includes
locale 'set locale' do
  lang 'en_US.utf8'
  lc_all 'en_US.utf8'
end

after convergence examine the locale, the LC_ALL is not set
$ locale
LANG=en_US.utf8
LANGUAGE=
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

$ cat /etc/default/locale
LANG=en_US.utf8

$ locale -a
C
C.UTF-8
en_US.utf8
POSIX

Client Output
        * locale[update locale] action update[2018-11-09T11:48:46+00:00] INFO: Processing locale[update locale] action update
           * execute[localectl set-locale LANG=en_US.utf8] action run[2018-11-09T11:48:46+00:00] INFO: Processing execute[localectl set-locale LANG=en_US.utf8] action run (/opt/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.6.47/lib/chef/resource/locale.rb line 41)
        (skipped due to not_if)
       [2018-11-09T11:48:46+00:00] DEBUG: Skipping execute[localectl set-locale LANG=en_US.utf8] due to not_if ruby block
            (up to date)

after posting this on the locale cookbook and migrating to chef built-in resource, i raise it here.

Related to this: https://github.com/chef-cookbooks/locale/issues/33

@y0y0z I'm going to close this out at this time. We dug into this one a bit and the usage of LC_ALL is actually discouraged and non-functional on some distros. We're deprecating that to avoid further confusion and instead we added support for all the various LC_ variables which should allow you to set all the ones you need instead.


Multicursor intellisense only shows up on the first instance

Have some code like
let a = "";
a.

a.

Except imagine that the two as are more than a page apart. From the first one, use cmd+d to add a second cursor to the second. It scrolls to bring the second in view. Now if you press ctrl+space, you get the intellisense popup on the first one, which is off screen, so you don't see it.

@jrieken You can reveal the primary position of the editor when intellisense is requested.


Preserve git information in Cloud Build

The Cloud Build configuration file just calls Docker (or Kaniko, but the  behavior is the same):
https://github.com/googleapis/storage-shared-benchmarking/blob/8ea3257b0cce3e0bede0f03526fdf2e220dffb8c/.gcb/cloudbuild.yaml#L23-L33
This works, and keeps the configuration "simple", but it loses all the git version information, as the commands inside the Dockerfile do not have access to the .git/ directory.
We may want to COPY .git/ . or use a different cloud build step that preserves the git information.

See #216 for the first round of changes.

Fixed by @BenWhitehead in #219 and 218


chore: bump alloy-eip7702

alloy-eip7702 now has logic for authority recovery implemented as it should happen in EVM https://github.com/alloy-rs/eips/blob/e712799f4318634bc978d0749cfcd59ff9a59459/crates/eip7702/src/auth_list.rs#L234
This PR updates it to latest version and replaces RecoveredAuthority type with one from alloy-eip7702.
There's also now no need for authority list validity check as this is done on decoding

@rakita tests are failing on release/v47 branch even before my commits, so I guess this is fine?

@rakita tests are failing on release/v47 branch even before my commits, so I guess this is fine?

Let me check what is going on, i didn't check it previously as it was just a primitives bump


Replace all firstref instances with OS names

This documentation contained several references to codenames - replaced these with the OS's official release names.

I had accidentially chosen the pull request to target "live" instead of "master." I've changed it, but I'd also be happy to rebuild this very small PR on master if preferred.

@get-itips @tseward
Peer review needed for this PR. Thanks.

It looks ok @rdbahm
@DaniHalfin with all these changes... what is the target branch that should be used against this repo? Thanks

Can you reword?

If RSS is disabled, network traffic is processed on a single processor core. This may impact network performance as the process utilization increases.

Something like that. You shouldn't need to mention the OS as RSS is a current feature in 2019, as well.

Docs Build status updates of commit 029d493:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/netadapter/set-netadapterrss.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

No Acrolinx or staging link.