Render the next not yet visible page in the background

By rendering the next page in the background before the user scrolls to it, it looks like PDF.JS is "fast" enough to render the page just in time. Otherwise, the user sees how the page builds up in front of him.
This doesn't work if the user scrolls to fast, but from my experience this is still pritty good^^

This works pretty well for light pdfs, gets a little choppy on the more image intensive ones.  I wonder if we could also improve things by making it possible to request a page be parsed but not sent to the viewer e.g. the page would stay in the worker but be ready when requested.

This works pretty well for light pdfs, gets a little choppy on the more image intensive ones.  I wonder if we could also improve things by making it possible to request a page be parsed but not sent to the viewer e.g. the page would stay in the worker but be ready when requested.

This is possible, but I'm not sure if it will make things less choppy. At one point the page has to be rendered and this is choppy right now. The question is if we are choppy once we face the page or while we render the page in the background. But if we render the current page and are choppy because of that one or because we render the next page and are choppy of that one comes out to be the same.
Does that argument sounds good to you or do I miss something?

This was indeed an improvement in the sense that it made the next page elements render all at once.
However in my tests the choppiness was about the same as before. I think the reason is that even though page N+1 is already pre-rendered, when we scroll to that page we then pre-render page N+2, which introduces the same choppiness as before.
I think that in these matters of choppiness, if we want to perform DOM operations in the background we need to monitor scroll events and keep rendering pages while the user is sitting still (or scrolling slowly).
Re:Brendan's suggestion, if I understand Julian's response correctly, I agree that having the page ready on the Worker might not necessarily reduce the choppiness since the UI hangs are presumably due to the (synchronous) DOM calls.
It's ugly, but I don't know if we can get around choppiness without monitoring scroll events. If we decide to go that route, we can mitigate the user experience by displaying an animated loading icon for every page that hasn't been rendered yet - something like this:
http://devaldi.com/adaptiveui/
(try scrolling fast)

#963 makes the experience less choppy. On Chrome, the choppies are very less noticeable, but on Firefox you still feel them sometimes or see that scrolling slows down a little bit. It's also the problem that #963 doesn't seem to work on Chrome and I don't know how to add feature detection for it :/
If we want to have no choppy feeling at all, I agree there is no better way right now then stopping any action during scrolling and display some loading icon (which requires making the page processing more interruptable then it is right now, which should be doable).

At the scope of this pull request, I think the choppiness doesn't get worse then it is already (in agreement with @arturadib).
@brendandahl, not sure about your comment. Do you think we shouldn't land this patch as you have the feeling the choppiness gets worse or were you just raising a question on how things might be improveable (by keeping the data in the worker)?
In short, can we land this pull request (assuming the code looks good to you) or does the choppiness has to get fixed first?

At the scope of this pull request, I think the choppiness doesn't get worse then it is already

I agree. I like the improvement since it only adds extra work/choppiness when loading the first page (as it will load pages 1 + 2); after that there's no extra work done since it simply renders page N+1 instead of page N. (The argument is the same when there are multiple visible pages).
As to the implementation, I've noticed that preDraw does not do a cache.push(page.view) (which the other pages do), and the logic was a bit hard to follow. How about modifying getVisiblePages() to take on an argument, say numAdditional, that specifies how many additional pages to return in addition to the visible ones?
That way you'd have the full {id: ..., view: ..., y: ...} object for the page so you can hook into the existing code in updateViewArea() by simply adding an argument like var preDrawNum = 1; var visiblePages = getVisiblePages(preDraw);.

@jviereck It was more just a comment for something we should start thinking about.  I don't think the choppiness should hold back the PR.

As to the implementation, I've noticed that preDraw does not do a cache.push(page.view) (which the other pages do), and the logic was a bit hard to follow. How about modifying getVisiblePages() to take on an argument, say numAdditional, that specifies how many additional pages to return in addition to the visible ones?

The last changeset I've pushed adds the page object after each time draw() is called and returns true.
The preDraw function is called not only within the updateViewarea function but also pdfViewLoadOnAfterDraw function. The last one doesn't make any call to getVisiblePages(), so adding the functionality to getVisiblePages() is not that simple possible.

+1 for me. (I think this got git-rotten after #990)

Rebased due to changes in #990.
Added a new function Page.drawingRequired() to determ if a page is required to get drawn.

@pdfjsbot lint


Feb 4 - LWDG Coding Challenge

Event Information

Category
Details

Stream Date
Feb 4, 2021

Stream Time
1-2p

Title
In Development

Description
In development

Speaker
---------

SharePoint ID
12690

SharePoint Status
Published

Additional Resources:

Event Checklist
10 Weeks Prior

[ ] Title & Description Finalized
[ ] Tracking Links/Short links
[ ] Title Card
[ ] Survey Card
[ ] Info Sheet
[ ] Published
[ ] Calendar Invite

This stream has been delivered, data has been recorded


Upgrading to newer version - cant get dragging to work

I've upgraded today from a version I took in the beginning of the month, and I can't get the dragging to work.
It works fine if I return to the older version.
Old Version: http://pastebin.com/5pQs1Fqz
I've minimized my settings to be as default as I could (works in the older version):
http://pastebin.com/2pkuX28i
Any help will be appreciated..
Thanks

This is fixed on latests master.  I will make a new release tag soon.


Allow print_report to take report data & update fake report

Updates the print_report tool to accept report data as input which passes onto fetchSnpAttestation()
Pass the hash of a test key as report data and get a fresh attestation, paste into the fake attestation report

System testing: https://github.com/microsoft/privacy-sandbox-dev/actions/runs/8207221010

@KenGordon yeah Ronny and I had a call to clarify and we're happy with the fake report having the key hash baked in and the tests having the test key hardcoded


Support for Azure Workload Identity

The documentation describes deploying promitor with Azure Pod Identity, but Microsoft advises Azure Workload Identity now. Is it possible to use workload identity? Can this be described in the documentation?

Not yet, Promitor needs to be updated first for why I'm open to review contributions


[test] Remove grpc core podspec module map

This is only for test, it does fail now, but for the earlier PR with the same changes, it succeeded without "Basic Tests ObjC Examples" being executed.


Update pngquant using git submodules

Update pngquant (2.3.0 → 2.11.7)
Before : 7 303 876 octets
After : 7 109 436 octets
In #134 the licence change was an issue.
But, as @behdad suggested, I'm now pulling down pngquant using git submodules, and pngquant is no more hosted directly in-tree.

CLI merged; I guess that doesn't get picked up.


401 Unauthorized Error using HTTPLocust

@heyman I have created a test using the scenario of a user which should login, then get a list of orders from an API endpoint. My test will login and extract the authToken (verified by printing in console), but any subsequent requests get an error 'HTTP Error(u'401 Unauthorized for this url')'. Everything I've read suggests session persistence is built into the HttpLocust class. I have tried changing the order of the requests, combining them into a single task, etc. Can you provide some direction on this? Here's my code:
`from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet):
def on_start(self):
    print 'Login'
    response = self.client.post('/authendpoint/', {'username': 'username', 'password': 'password'})
    authToken = response.json()['auth_token']
    print authToken

@task(5)
def getOpenOrders(self):
    print 'Get Open Orders'
    self.client.get('/api/getOrdersEndpoint')

class User(HttpLocust):
host = 'http://localhost:3000'
task_set = UserBehavior
min_wait = 5000
max_wait = 10000`
Note: I did try making the authToken global and changing the second request to 'self.client.get('/api/getOrdersEndpoint', {'auth_token': authToken}). I also tried extracting the cookies using response.cookies, then inserting into the second request in a similar fashion. These only got me a new error (get() allows only 2 parameters, 3 were supplied).

I'm actually looking for an example of how to test endpoints behind OAuth2, as well.  I'm very new to the tool, but I'm getting the 401 as well and it's not obvious how to get around it.  Thanks!

@tiffanywilson: Locust persists cookies between requests, which is the most common way for web apps to keep track of users' sessions. However, if the web app that is being tested doesn't rely on cookies for sessions, the auth token must be provided in the way that the app expects.
@sweeneyb Very hard to say what might be causing it, but it's most likely not an issue with Locust.
Closing this issue, but feel free to re-open it if you have indications that there's some kind of bug or other issue in Locust.


GPII-3591 - Delete the DNS AWS zones of the deprecated GPII AWS

This PR is part of GPII-3591. This PR deletes the aws.gpii.net and aws.test1.gpii.net zones and their NS records in the parent domains.
Changes for common-stg
[...]
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

google_dns_managed_zone.main: Refreshing state... (ID: gcp-test1-gpii-net)
aws_route53_zone.main: Refreshing state... (ID: Z3CZ4X01NHJQ3U)
aws_route53_zone.main: Refreshing state... (ID: Z5PA0UC6SKSF1)
aws_route53_record.main_ns: Refreshing state... (ID: Z1T3NF8J9WVBSP_gcp.test1.gpii.net_NS)
aws_route53_record.main_ns: Refreshing state... (ID: Z1T3NF8J9WVBSP_aws.test1.gpii.net_NS)

------------------------------------------------------------------------

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  - module.aws_zone.aws_route53_record.main_ns

  - module.aws_zone.aws_route53_zone.main

Plan: 0 to add, 0 to change, 2 to destroy.

------------------------------------------------------------------------
# terragrunt state show module.aws_zone.aws_route53_record.main_ns
[...]
id                 = Z1T3NF8J9WVBSP_aws.test1.gpii.net_NS
allow_overwrite    = true
fqdn               = aws.test1.gpii.net
health_check_id    =
name               = aws.test1.gpii.net
records.#          = 4
records.1108397575 = ns-505.awsdns-63.com
records.2118373385 = ns-589.awsdns-09.net
records.255805746  = ns-1707.awsdns-21.co.uk
records.2990341214 = ns-1168.awsdns-18.org
set_identifier     =
ttl                = 60
type               = NS
zone_id            = Z1T3NF8J9WVBSP

# terragrunt state show module.aws_zone.aws_route53_zone.main
[...]
module.aws_zone.aws_route53_zone.main
id                = Z3CZ4X01NHJQ3U
comment           = Managed by Terraform
delegation_set_id =
force_destroy     = false
name              = aws.test1.gpii.net.
name_servers.#    = 4
name_servers.0    = ns-1168.awsdns-18.org
name_servers.1    = ns-1707.awsdns-21.co.uk
name_servers.2    = ns-505.awsdns-63.com
name_servers.3    = ns-589.awsdns-09.net
tags.%            = 1
tags.Terraform    = 1
vpc.#             = 0
vpc_id            =
vpc_region        =
zone_id           = Z3CZ4X01NHJQ3U

Changes for common-prd
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

google_dns_managed_zone.main: Refreshing state... (ID: gcp-gpii-net)
aws_route53_zone.main: Refreshing state... (ID: Z26VOXVJXXG9QQ)
aws_route53_zone.main: Refreshing state... (ID: Z29SXC5CAHOH1D)
aws_route53_record.main_ns: Refreshing state... (ID: Z26C1YEN96KOGI_aws.gpii.net_NS)
aws_route53_record.main_ns: Refreshing state... (ID: Z26C1YEN96KOGI_gcp.gpii.net_NS)

------------------------------------------------------------------------

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  - module.aws_zone.aws_route53_record.main_ns

  - module.aws_zone.aws_route53_zone.main

Plan: 0 to add, 0 to change, 2 to destroy.

------------------------------------------------------------------------
# terragrunt state show module.aws_zone.aws_route53_record.main_ns
[...]
id                 = Z26C1YEN96KOGI_aws.gpii.net_NS
allow_overwrite    = true
fqdn               = aws.gpii.net
health_check_id    =
name               = aws.gpii.net
records.#          = 4
records.1401333002 = ns-1627.awsdns-11.co.uk
records.2368443323 = ns-497.awsdns-62.com
records.3487276393 = ns-690.awsdns-22.net
records.3936386861 = ns-1503.awsdns-59.org
set_identifier     =
ttl                = 60
type               = NS
zone_id            = Z26C1YEN96KOGI
bash-4.4# terragrunt state show module.aws_zone.aws_route53_zone.main
[...]
id                = Z26VOXVJXXG9QQ
comment           = Managed by Terraform
delegation_set_id =
force_destroy     = false
name              = aws.gpii.net.
name_servers.#    = 4
name_servers.0    = ns-1503.awsdns-59.org
name_servers.1    = ns-1627.awsdns-11.co.uk
name_servers.2    = ns-497.awsdns-62.com
name_servers.3    = ns-690.awsdns-22.net
tags.%            = 1
tags.Terraform    = 1
vpc.#             = 0
vpc_id            =
vpc_region        =
zone_id           = Z26VOXVJXXG9QQ

LGTM

lgtm


Gopkg.lock is not in sync with vendor

I wanted to check what modifications have been made in the packages in vendor/. Gopkg.lock references non-public sources or something and dep ensure is not happy.
Are the modifications in the vendored dependencies required?
[joneskoo@grant twirp-codegens]$ dep ensure
Solving failure: No versions of github.com/twitchtv/twirp met constraints:
	Xe/feat/make-gen-public: unable to update checked out version: fatal: reference is not a tree: e3dd5a1b97420399abc3b5e2d80aab102aa9330e
: command failed: [git checkout e3dd5a1b97420399abc3b5e2d80aab102aa9330e]: exit status 128
	v5.0.0: Could not introduce github.com/twitchtv/twirp (from<EMAIL_ADDRESS>as it is not allowed by constraint Xe/feat/make-gen-public from project github.com/Xe/twirp-codegens.
...

Yes, this code is based on a fork of internals of twirp. I need to fix these generators to use https://github.com/twitchtv/protogen instead of the hacked up copy of twirp I used to get this prototype out of the door.


'mode' in max_pool_2d()

Hi,I am getting such problem:
def cnn():
data, label = load_data()
print(data.shape[0], ' samples')
label = np_utils.to_categorical(label, 10)

model = Sequential()

model.add(Convolution2D(4, 5, 5, border_mode='valid', input_shape=(1, 28, 28)))
model.add(Activation('tanh'))

model.add(Convolution2D(8, 3, 3, border_mode='valid'))
model.add(Activation('tanh'))
model.add(MaxPooling2D(pool_size=(2, 2)))

model.add(Convolution2D(16, 3, 3, border_mode='valid'))
model.add(Activation('tanh'))
model.add(MaxPooling2D(pool_size=(2, 2)))

model.add(Flatten())
model.add(Dense(256))
model.add(Activation('tanh'))

model.add(Dense(10))
model.add(Activation('softmax'))

sgd = SGD(l2=0.0,lr=0.05, decay=1e-6, momentum=0.9, nesterov=True)

model.compile(loss='categorical_crossentropy', optimizer=sgd, class_mode="categorical")

model.fit(data, label, batch_size=100, nb_epoch=100, show_accuracy=True)

json_string = model.to_json()

json_file = open('/Users/chenyoake/Desktop/json_model','w')

json_file.write(json_string)

model.save_weights('/Users/chenyoake/Desktop/model_weight.h5')

Using Theano backend.
42000  samples
Traceback (most recent call last):
File "cnn.py", line 94, in
main()
File "cnn.py", line 91, in main
cnn()
File "cnn.py", line 62, in cnn
model.compile(loss='categorical_crossentropy', optimizer=sgd, class_mode="categorical")
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 372, in compile
self.y_train = self.get_output(train=True)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/containers.py", line 73, in get_output
return self.layers[-1].get_output(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 512, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 681, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 512, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 681, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 591, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/convolutional.py", line 323, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 512, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/convolutional.py", line 212, in get_output
X = self.get_input(train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 102, in get_input
return self.previous.get_output(train=train)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/convolutional.py", line 327, in get_output
dim_ordering=self.dim_ordering)
File "/usr/local/lib/python2.7/dist-packages/keras/backend/theano_backend.py", line 594, in maxpool2d
mode='average_exc_pad')
TypeError: max_pool_2d() got an unexpected keyword argument 'mode'
How can I solve this problem? Thank you!

max_pool_2d() is a Theano function, which does expect a keyword argument mode. Can you run:
from theano.tensor.signal.downsample import max_pool_2d
import theano.tensor as T
import numpy as np
X = T.matrix()
X_in = np.asarray(np.random.rand(10, 10), dtype="float32")
max_pool_2d(X, (2, 2), ignore_border=True, mode="average_exc_pad").eval({X: X_in})

without an error?

Update Theano (see the FAQ, also CONTRIBUTING.md)

do you solve the problem?


Modlog: properly trim and sanitize search string

@asgdf this conflicts with xfix's changes; how much of yours doesn't overlap with his?

Should be fine now.


chore: clarify disruption candidate conditional

Fixes #N/A
Description
Updates the conditional check for erroring when creating a disruption candidate to improve readibility.
How was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

9 of 10 (90.0%)  changed or added relevant lines in 2 files are covered.
9 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.08%) to 80.631%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/controllers/state/statenode.go
4
5
80.0%

Files with Coverage Reduction
New Missed Lines
%

pkg/utils/termination/termination.go
2
92.31%

pkg/controllers/provisioning/scheduling/preferences.go
7
86.52%

Totals

Change from base Build<PHONE_NUMBER>3:
-0.08%

Covered Lines:
8925

Relevant Lines:
11069

💛  - Coveralls

/assign @jonathan-innis


[21.05] nixos/bitwarden_rs: fix startup on 32 thread machines

Motivation for this change
Backport #124225 to 21.05
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[ ] Fits CONTRIBUTING.md.

cc @Mic92
cc maintainer @msteen

@GrahamcOfBorg test bitwarden


[Question] Create an AP on the camara itself?

Not sure if possible, but I want to check if is possible or planned at all.
I've reviewed the configuration to connect to an AP, and it looks like it is doing some "black magic" by writing the configuration on some specific block of the block devices, so I discard the possibility of using those scripts to try to bring an AP up.
I think that this could be a cool feature, allowing us to use the camera without requiring us to connect it to the internet or an external AP.
Thx you in advance

I already tried to implement this feature but there is an annoying process that periodically checks the wifi configuration and resets it if different from what YI expects. And I can't remove this process.
I failed.


add 'deleteWordEntire' command

This PR fixes #109510
We added a new shortcut key ‘deleteWordEntire’.
‘deleteWordLeft’ or ‘deleteWordRight’ commands already exist. However, it is rare that we want to delete letters in only one side from the cursor.
This ‘deleteWordEntire’ command can be executed by pressing ‘ctrl + Shift + U’ (on Linux). This command deletes a word the cursor is pointing to. Even if the cursor is in the middle of the word, we can delete the whole word (not only left or right side of the cursor). Furthermore, this command also deletes the following whitespace. For example,

aaaaa _ bbb|bb _ ccccc  ->  aaaaa _ ccccc ('|' means the cursor)

So this command is convenient and will definitely improve our development efficency.

I have this through an extension, and find the feature to be very useful.

Thank you.
I am sincerely sorry, but I'm not confident in test code (wordOperations.test.ts). Do I have to change this file?
And when the branch updated, the automatic check failed. What caused this error?

Thank you!


Allow to use another version of Vagrant

Should display a warning in case API is not compatible.

See also: #14


fix: fix a small typo which may cause assert error in l0module.

The example is wrong, which will cause this problem:

Thanks for the fix!


Use of import vs. System.import in examples?

Since import() support has landed in webpack (#3098), and System.import is considered deprecated, would it make sense to upgrade all examples to use import()?
Examples using import():

https://github.com/webpack/webpack/tree/master/examples/code-splitting-native-import-context

Examples using System.import():

https://github.com/webpack/webpack/tree/master/examples/chunkhash
https://github.com/webpack/webpack/tree/master/examples/code-splitting-harmony
https://github.com/webpack/webpack/tree/master/examples/harmony

Why can't I use the import () the grammar? I use a webpack compile-time error, then I can use in webpack2 System. Import.
Would you please tell me the import () what is the running environment, I have already had the webpack2, but still an error

It would make sense to update that. @simon04 That would be fine. Interop should be identical.
@TongDaDa Please check gitter.im/webpack/webpack and submit a stack overflow question so that it can be answered. Our issues list is strictly for bugs or feature requests.

@TheLarkInn Don't understand your meaning, can say detailed point?


IE 9/10 Issues

We have experienced a number of issues with the accordion, tabset, and typeahead directives that all result in the same incorrect behavior in IE9/10. Rather than getting the expected behavior for each directive the user is re-directed to the home page when clicking on accordion link, tab, or in the typeahead drop-down,
we have solved this problem by making sure that the directive templates do not have undefined or empty href properties. Instead we have added href="javascript:" and that seems to do the trick.
Questions:
Is this a valid workaround?
Can anyone think of any reason why we shouldn't do this?
Are there any plans to address IE10 compatibility issues?
cheers,
Florian Hehlen

A new issue #6262 has been raised with a Plunker scenario.


[MATLAB][Packaging] Add script for uploading Release Candidate (RC) MLTBX packages for the MATLAB bindings to the Apache Arrow GitHub Releases area

Describe the enhancement requested
This is a follow up to #38660 and this mailing list discussion.
We would like to upload the MLTBX packages for the MATLAB bindings to the GitHub Releases area for the Apache Arrow GitHub project.
Using GitHub Releases will enable tight integration with the MathWorks File Exchange, which should make it easy for users to discover and install the MATLAB interface using MATLAB.
To make this possible, we need to update the release scripts under /dev/release to upload the MLTBX packages built by crossbow to the GitHub Releases area.
Component(s)
MATLAB, Packaging

take


server - add / remove a project

As a user, I want to add or remove a project in rhmhcp server so I could connect my mobile app to a specific project

[x] Add project
[x] Remove project
[x] List project

implemented:
POST /project -- create a project
DELETE /project -- remove a project
GET /project -- list app projects


Feat: Guest Mode

Problem:
When users are not logged in, there's currently no option for them to engage in conversations through the chat in the open web UI without their interactions being put in history, like in the Single User mode where all history is still recorded so it can't be used simultaneously by many users.
Solution:
Introduce a "Guest Mode" within the open web UI, where users can access chat functionality without the need to create personal accounts. Upon choosing the "No Login" option, users are automatically provided with predefined login credentials (e.g., username and password) generated by the system. In this Guest Mode, the sidebar displaying chat history is hidden, ensuring that no conversation records are stored. The guest mode should be in addition to the multi-user sign in rather than an either-or scenario.
Alternatives:
Consider allowing users to access limited chat functionality without logging in, with the option to create an account for accessing more features and retaining chat history.

**FIX i implemented locally - potentially useful input for the maintainers/devs of OpenWebui: **

Create an iframe html in static folder, and connect it with the src/routes/auth/+page.svelte, as well as setting the safe origin for requests.
Create a Guest user with some credentials whatever<EMAIL_ADDRESS>root password)
Create a redirect button with JS to do the following: authenticate the user with the hardcoded sigin details.
Fetch Token, insert it via iframe into the origin of the openwebui (cross-origin set LocalStorage token key)
if logged in user is Guest, then hide the content of the sidebar. As well as other buttons which give access to chat history, or account settings.

Additional stuff:
a) create a new chat before redirecting to that specific chat.
TO DO from my side:
Generate the response to that new chat's query using the selected Pipeline.
From what im seeing there's no API endpoint for generation given a modelname, chatid, and userid.

This is basically similar to https://chat.openai.com where you can use ChatGPT without login and history is gone once you refresh or close browser

maybe more like https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web ,  guest user auto signup and can login by cookie

OK. I have finished it by trusted header.

In your docker-compose.yaml:

environment:
  - WEBUI_AUTH=True
  - ENABLE_SIGNUP=true
  - ENABLE_AUTO_AUTH=true
  - AUTH_TRUSTED_EMAIL_HEADER=true
  - WEBUI_AUTH_TRUSTED_EMAIL_HEADER=X-User-Email
  - WEBUI_AUTH_TRUSTED_NAME_HEADER=X-User-Name

In backend/open_webui/apps/webui/models/auths.py

import logging
import uuid
import jwt
from datetime import UTC, datetime, timedelta
from typing import Optional, Union, List, Dict
from fastapi import Request, HTTPException, status

from open_webui.utils.misc import parse_duration
from open_webui.apps.webui.internal.db import Base, get_db
from open_webui.apps.webui.models.users import UserModel, Users
from open_webui.env import SRC_LOG_LEVELS,ENABLE_AUTO_AUTH,WEBUI_SECRET_KEY
from pydantic import BaseModel
from sqlalchemy import Boolean, Column, String, Text
from open_webui.utils.utils import verify_password

SESSION_SECRET = WEBUI_SECRET_KEY
ALGORITHM = "HS256"

log = logging.getLogger(__name__)
log.setLevel(SRC_LOG_LEVELS["MODELS"])

    # Other Code
    def auto_auth(self, request: Request):
        log.debug("Starting auto auth process")

        random_id = str(uuid.uuid4())[:8]
        auto_email =<EMAIL_ADDRESS>        auto_name = f"Auto User {random_id}"
        auto_password = str(uuid.uuid4())

        try:
            log.info(f"Creating auto user with email: {auto_email}")

            user = self.insert_new_auth(
                email=auto_email,
                password=auto_password,
                name=auto_name,
                role="user",
            )

            if not user:
                log.error("Failed to create auto user")
                raise HTTPException(
                    status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
                    detail="Failed to create auto user",
                )

            log.info(f"Successfully created auto user with ID: {user.id}")

            def create_token(data: dict, expires_delta: Union[timedelta, None] = None) -> str:
                payload = data.copy()

                if expires_delta:
                    expire = datetime.now(UTC) + expires_delta
                    payload.update({"exp": expire})

                encoded_jwt = jwt.encode(payload, SESSION_SECRET, algorithm=ALGORITHM)
                return encoded_jwt
            token = create_token(
                data={"id": user.id},
                expires_delta=parse_duration("-1"),
            )

            return {
                "status": True,
                "token": token,
                "user": {
                    "id": user.id,
                    "name": user.name,
                    "email": user.email,
                    "role": user.role,
                },
            }
        except Exception as e:
            log.exception(f"Auto auth failed: {str(e)}")
            raise HTTPException(
                status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
                detail=f"Auto auth failed: {str(e)}",
            )

    def authenticate_user_by_trusted_header(self, request: Request) -> Optional[UserModel]:
        # log.info(f"authenticate_user_by_trusted_header: {email}")
        # try:
        #     with get_db() as db:
        #         auth = db.query(Auth).filter_by(email=email, active=True).first()
        #         if auth:
        #             user = Users.get_user_by_id(auth.id)
        #             return user
        # except Exception:
        #     return None
        if ENABLE_AUTO_AUTH:
            log.info("Auto auth enabled, creating new user")
            auth_result = self.auto_auth(request)
            if auth_result and auth_result["status"]:
                user = Users.get_user_by_id(auth_result["user"]["id"])
                log.info(f"Created new auto user: {user.id}")
                return user
        return None

Because I have change functionauthenticate_user_by_trusted_header, So
In backend/open_webui/apps/webui/routers/auths.py
change
user = Auths.authenticate_user_by_trusted_header(trusted_email)
to
user = Auths.authenticate_user_by_trusted_header(request)

DO NOT FORGET config open_webui.env  to get ENABLE_AUTO_AUTH.


[$500] Fab -  App disables CTRL+K / CTRL+SHIFT+K shortcuts on FAB menu option pages

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

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697011802723769
Action Performed:

Open the app
Click on green plus and click on any FAB menu option eg: 'save the world'
Click 'CTRL+K' or 'CTRL+SHIFT+K' and observe that it does not work

Expected Result:
App should not disable CTRL+K / CTRL+SHIFT+K shortcuts
Actual Result:
App disables CTRL+K / CTRL+SHIFT+K shortcuts on FAB menu option pages
Workaround:
Unknown
Platforms:

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

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/93399543/cc38432a-364e-4d59-ba78-94967c041053
https://github.com/Expensify/App/assets/93399543/58b9f0ae-3088-4512-a7f9-5261b179ce31
https://github.com/Expensify/App/assets/93399543/a0bb4794-b516-4b37-88c3-9c69f4aad4d7

MacOS: Desktop

https://github.com/Expensify/App/assets/93399543/fd1b54b0-40cc-4f7f-8b05-aa520477b835

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~015979bf65c1172e21
Upwork Job ID:<PHONE_NUMBER>604538880
Last Price Increase: 2023-10-11

Proposal
Please re-state the problem that we are trying to solve in this issue.
App disables CTRL+K / CTRL+SHIFT+K shortcuts on FAB menu option pages
What is the root cause of that problem?
when popovermenu open we are setting closemodal
https://github.com/Expensify/App/blob/b820046287b7c4c162e11b1c3b6876256d49d2e2/src/components/PopoverWithoutOverlay/index.js#L48
so here when close modal is present its doesn't onModalCloseCallback trigger
https://github.com/Expensify/App/blob/b820046287b7c4c162e11b1c3b6876256d49d2e2/src/libs/actions/Modal.ts#L17
What changes do you think we should make in order to solve the problem?
https://github.com/Expensify/App/blob/f5578523a10653b03de827e38f99f3ba54241a69/src/components/PopoverMenu/index.js#L81
here when once popover menu selected we should clear the modal
Modal.setCloseModal(null)

Proposal
Please re-state the problem that we are trying to solve in this issue
Fab - App disables CTRL+K / CTRL+SHIFT+K shortcuts on FAB menu
What is the root cause of that problem?
Certainly! It seems that using the keyboard shortcuts CTRL+K or CTRL+SHIFT+K should open a search modal. However, if you've already opened a modal using the FAB menu, these shortcuts won't trigger the search modal again.
https://github.com/Expensify/App/blob/f5578523a10653b03de827e38f99f3ba54241a69/src/libs/Navigation/AppNavigator/AuthScreens.js#L185C8-L198C11
        this.unsubscribeSearchShortcut = KeyboardShortcut.subscribe(
            searchShortcutConfig.shortcutKey,
            () => {
                Modal.close(() => {
                    if (Navigation.isActiveRoute(ROUTES.SEARCH)) {
                        return;
                    }
                    return Navigation.navigate(ROUTES.SEARCH);
                });
            },
            searchShortcutConfig.descriptionKey,
            searchShortcutConfig.modifiers,
            true,
        );

What changes do you think we should make in order to solve the problem?
To ensure the CTRL+K or CTRL+SHIFT+K shortcuts activate the search modal, make sure to close any currently open modals beforehand through  Modal.setCloseModal() function.
this.unsubscribeSearchShortcut = KeyboardShortcut.subscribe(
            searchShortcutConfig.shortcutKey,
            () => {
             if (!Navigation.isActiveRoute(ROUTES.SEARCH)) {
                    Modal.setCloseModal()
                  }
                Modal.close(() => {
                    if (Navigation.isActiveRoute(ROUTES.SEARCH)) {
                        return;
                    }
                    return Navigation.navigate(ROUTES.SEARCH);
                });
            },
            searchShortcutConfig.descriptionKey,
            searchShortcutConfig.modifiers,
            true,
        );

result
https://github.com/Expensify/App/assets/47495619/80ddad48-3610-4dc5-9e0f-0e13c1c7a39f
What alternative solutions did you explore? (Optional)
NA

Proposal
Please re-state the problem that we are trying to solve in this issue.
App disables CTRL+K / CTRL+SHIFT+K shortcuts after the modal is closed.
What is the root cause of that problem?
https://github.com/Expensify/App/blob/64d3e39a676715b17f2e1deee2335f7e45b31c14/src/components/PopoverWithoutOverlay/index.js#L42-L46
The purpose of this code block is to prevent setting closeModal function to null when the component is invisible the first time it is rendered.
It's not correctly working because !firstRenderRef.current.
What changes do you think we should make in order to solve the problem?

 if (firstRenderRef.current || !props.isVisible) {
     firstRenderRef.current = false;
     return;
 }

Results:
29341.webm

The root cause of this issue is the wrong condition here
https://github.com/Expensify/App/blob/0c7f390b81833f51f18115763c5047bce1c92a39/src/components/PopoverWithoutOverlay/index.js#L43-L48
This looks weird. This should be updated like this
        if (firstRenderRef.current && !props.isVisible) {
            firstRenderRef.current = false;
            return;
        }
        firstRenderRef.current = false;
        Modal.setCloseModal(props.isVisible ? () => props.onClose(props.anchorRef) : null);

If agreed, I'll create a PR shortly.

@ntdiary can you review the above proposals plz?

@ntdiary Could you review my proposal?

@dukenv0307
when the first time the component is rendered with isVisible prop as false. This condition is enough with this?
if (firstRenderRef.current && !props.isVisible)

I'm not sure why you used such complex condition
if (prevIsVisible === props.isVisible && (!firstRenderRef.current || !props.isVisible))

prevIsVisible was removed because it has negative effect. We should remove that.

@parasharrajat @dukenv0307
What do you think about this https://github.com/Expensify/App/issues/29341#issuecomment-1760749357?
Or should we find the totally new solution?

@parasharrajat
We need to prevent setting closeModal function to null when the first time the component is rendered with isVisible prop as false
The code is for the condition: first render with isVisible props
Anyway, I agree that we should fix the root cause of the original issue

Coming from slack, created an issue for this one so we have it in regression suite sooner than later https://github.com/Expensify/Expensify/issues/328177

Thanks @mountiny!
I'm a bit unsure about payments here.

We should definitely pay out @dhanashree-sawant for the bug report (Offer sent)
@ntdiary it doesn't look like you reviewed any PRs, but you did review proposals and write the regression test steps. Do you think it's fair to pay you 50% of the base price for your work here, or were you thinking otherwise?

Hi @sakluger, by mistake you have sent me an offer of 500$ instead of 50$, can you rectify it once you are available?

@dhanashree-sawant good catch! Thank you for letting me know, I've updated the offer 🙇
@ntdiary thanks for confirming, I send you an offer.

Thanks @sakluger, it shows offer is withdrawn, can you check once you are available?

@dhanashree-sawant in order to modify an offer that hasn't been accepted yet, I had to withdraw the offer and send a new one. Here is the new offer link, not sure if that offer works for you, but you should be able to find the new offer in your Upwork inbox. Can you let me know once you've accepted?
@ntdiary your payment is completed, thanks!

Thanks @sakluger, this is what it is displaying, not sure how we can solve it.

@dhanashree-sawant here's the offer link on my side: https://www.upwork.com/nx/wm/offer/27395089
Can you check your Upwork messages and see if there's a message from me on or around Thu, Oct 26 containing an offer? For you, it might be on Friday, Oct 27 because of the time zone difference.

No sorry I couldn't find any offer in the messages. If you check the URL in the screenshot, It seems like upwork is displaying offer not available for the same offer link. I think offers on this job won't work and may need a new job.

Alright, new job post, let's try this again! https://www.upwork.com/jobs/~0133af5efe5e763c64
Please let me know if that still doesn't work for you.

Thanks yes now I was able to accept the offer.

Great, thank you for your patience while we got that figured out 🙇
All done now, closing!


look into microsoft's api extractor to combine all emitted typp def files into a single one

See #50


model

where torch.distributed.nn.all_gather in model_longclip.py 453

sorry, i don't understand your question

sorry, i don't understand your question

Thanks, I have solved the problem by adding 'functional' as 'nn.' in 453 rows in model_longclip.py

sorry, i don't understand your question

Thanks, I have solved the problem by adding 'functional' as 'nn.' in 453 rows in model_longclip.py

Hello,I meet the same problem, Can you tell me what does line 453 look like after your change?

sorry, i don't understand your question

Thanks, I have solved the problem by adding 'functional' as 'nn.' in 453 rows in model_longclip.py

Hello, I met the same problem,can you tell me how did you fix it?

sorry, i don't understand your question

Thanks, I have solved the problem by adding 'functional' as 'nn.' in 453 rows in model_longclip.py

Hello, I met the same problem,can you tell me how did you fix it?

my torch version is 2.1.2
just change the codes like this
        # image_feat_all_long = torch.cat(torch.distributed.nn.all_gather(image_features_long), dim=0) #gather with grad
        # image_features_all_short = torch.cat(torch.distributed.nn.all_gather(image_features_short), dim=0)
        # text_feat_all_long = torch.cat(torch.distributed.nn.all_gather(text_features_long), dim=0)
        # text_feat_all_short = torch.cat(torch.distributed.nn.all_gather(text_features_short), dim=0)
        image_feat_all_long_      = [torch.ones_like(image_features_long)]*torch.distributed.get_world_size() #list
        image_features_all_short_ = [torch.ones_like(image_features_short)]*torch.distributed.get_world_size()
        text_feat_all_long_       = [torch.ones_like(text_features_long)]*torch.distributed.get_world_size()
        text_feat_all_short_      = [torch.ones_like(text_features_short)]*torch.distributed.get_world_size()
        torch.distributed.all_gather(image_feat_all_long_,image_features_long) #gather with grad
        torch.distributed.all_gather(image_features_all_short_,image_features_short)
        torch.distributed.all_gather(text_feat_all_long_,text_features_long)
        torch.distributed.all_gather(text_feat_all_short_,text_features_short)
        image_feat_all_long      = torch.cat(image_feat_all_long_, dim=0) #cat
        image_features_all_short = torch.cat(image_features_all_short_, dim=0)
        text_feat_all_long       = torch.cat(text_feat_all_long_, dim=0)
        text_feat_all_short      = torch.cat(text_feat_all_short_, dim=0)


Update gdnsuppress file

Which issue this PR addresses:
Fixes: https://dev.azure.com/msazure/AzureRedHatOpenShift/_workitems/edit/12613527
What this PR does / why we need it:
It appears that cluster-predeploy.json was renamed and modified to cluster-development-predeploy.json and thus the suppression file no longer worked.  This updates the signature and file name in the .gdnsuppress file so that SDL scans can proceed without error
Test plan for issue:
https://dev.azure.com/msazure/AzureRedHatOpenShift/_build/results?buildId=49042994&view=results
Is there any documentation that needs to be updated for this PR?
N/A

/azp run ci

Green ci - merging


Flaskr fails being run from cli

Expected Behavior
According to this README the Flaskr example application should run after doing following:
pip install --editable .
flask initdb
export FLASK_APP=flaskr.factory:create_app()
Actual Behavior
Flaskr fails running throwing a NoAppException.
NoAppException: The file/path provided (flaskr.factory) does not appear to exist.  Please verify the path is correct.  If app is not on PYTHONPATH, ensure the extension is .py

Environment

Python version: 2.7
Flask version: 0.12.2
Werkzeug version: 0.12.2

Can anyone reproduce this or is it me? I was looking for a way to run my own application (also using an app factory) and stumbled over the Flaskr example which doesn't work for me either. Is the way of running an app like described in the linked README still valid?

You have to export FLASK_APP before running flask.

Oh sorry that was just wrongly pasted. I did the import before running the flask command - so basically I tried this:
pip install --editable .
export FLASK_APP=flaskr.factory:create_app()
flask initdb
flask run
the last two commands both fail.


Support Jinja2 templating in config

Description
With the advent of reusable modular pipelines and namespacing (but even previously with dynamic pipeline creation), it's common to need near-duplicate catalog entries. For example, with primary data models for COVID-19 data in Europe, Asia, and Africa, I may want to reuse the same feature generation and master table creation pipeline, resulting in the following (subset of the) data catalog:
europe.case_counts:
  type: pandas.CSVDataSet
  filepath: data/04_feature/europe/cases.csv

europe.death_counts:
europe.demographic_data:
europe.master_table:

asia.case_counts:
  type: pandas.CSVDataSet
  filepath: data/04_feature/asia/cases.csv

asia.death_counts:
asia.demographic_data:
asia.master_table:

africa.case_counts:
  type: pandas.CSVDataSet
  filepath: data/04_feature/africa/cases.csv

africa.death_counts:
africa.demographic_data:
africa.master_table:

Having to write it out explicitly is inconvenient (borderline painful) and error-prone. Being forced to use the code API to define configuration is not ideal, either.
Context
Jinja2 is a widely-used templating language, already supported by the backend technology used by Kedro for configuration parsing, anyconfig. Turning it on lets (power) users leverage templating without affecting existing functionality. The above config would become:
{% for continent in ['europe', 'asia', 'africa'] %}
{{ continent }}.case_counts:
  type: pandas.CSVDataSet
  filepath: data/04_feature/{{ continent }}/cases.csv

{{ continent }}.death_counts:
{{ continent }}.demographic_data:
{{ continent }}.master_table:
{% endfor %}

Possible Implementation
https://github.com/quantumblacklabs/kedro/pull/578
Possible Alternatives
Individual users can make this change themselves, but it's annoying. Since anyconfig is imported in _load_config, it can't be easily monkeypatched and requires redefining/retesting a lot of functionality. For example, from my current project:
src/package_name/run.py:
...

def _load_config(config_files: List[Path]) -> Dict[str, Any]:
    """Recursively load all configuration files, which satisfy
    a given list of glob patterns from a specific path.

    Args:
        config_files: Configuration files sorted in the order of precedence.

    Raises:
        ValueError: If 2 or more configuration files contain the same key(s).

    Returns:
        Resulting configuration dictionary.

    """
    # for performance reasons
    import anyconfig  # pylint: disable=import-outside-toplevel

    config = {}
    keys_by_filepath = {}  # type: Dict[Path, AbstractSet[str]]

    def _check_dups(file1: Path, conf: Dict[str, Any]) -> None:
        dups = set()
        for file2, keys in keys_by_filepath.items():
            common = ", ".join(sorted(conf.keys() & keys))
            if common:
                if len(common) > 100:
                    common = common[:100] + "..."
                dups.add("{}: {}".format(str(file2), common))

        if dups:
            msg = "Duplicate keys found in {0} and:\n- {1}".format(
                file1, "\n- ".join(dups)
            )
            raise ValueError(msg)

    for config_file in config_files:
        cfg = {
            k: v
            for k, v in anyconfig.load(config_file, ac_template=True).items()
            if not k.startswith("_")
        }
        _check_dups(config_file, cfg)
        keys_by_filepath[config_file] = cfg.keys()
        config.update(cfg)
    return config

class ProjectContext(KedroContext):
    ...

    def _create_config_loader(self, conf_paths: Iterable[str]) -> TemplatedConfigLoader:
        import kedro.config.config

        kedro.config.config._load_config = _load_config
        return TemplatedConfigLoader(conf_paths, globals_pattern="*globals.yml")

src/tests/test_run.py:
@pytest.fixture
def project_context(mocker):
    # Don't configure the logging module. If it's configured, tests that
    # check logs using the ``caplog`` fixture depend on execution order.
    mocker.patch.object(ProjectContext, "_setup_logging")

    return ProjectContext(str(Path.cwd()))

def _write_yaml(filepath: Path, config: Dict, preamble: str = "", postamble: str = ""):
    filepath.parent.mkdir(parents=True, exist_ok=True)
    yaml_str = yaml.dump(config)
    filepath.write_text(preamble + yaml_str + postamble)

@pytest.fixture
def conf_paths(tmp_path):
    return [str(tmp_path / "base"), str(tmp_path / "local")]

@pytest.fixture
def param_config():
    return {
        "boats": {
            "type": "${boat_data_type}",
            "filepath": "${s3_bucket}/${raw_data_folder}/${boat_file_name}",
            "columns": {
                "id": "${string_type}",
                "name": "${string_type}",
                "top_speed": "${float_type}",
            },
            "rows": 5,
            "users": ["fred", "${write_only_user}"],
        }
    }

@pytest.fixture
def template_config():
    return {
        "s3_bucket": "s3a://boat-and-car-bucket",
        "raw_data_folder": "01_raw",
        "boat_file_name": "boats.csv",
        "boat_data_type": "SparkDataSet",
        "string_type": "VARCHAR",
        "float_type": "FLOAT",
        "write_only_user": "ron",
    }

@pytest.fixture
def proj_catalog_param(tmp_path, param_config):
    proj_catalog = tmp_path / "base" / "catalog.yml"
    _write_yaml(proj_catalog, param_config)

@pytest.fixture
def proj_catalog_param_w_jinja2_for(tmp_path, param_config):
    proj_catalog = tmp_path / "base" / "catalog.yml"
    _write_yaml(
        proj_catalog,
        param_config,
        "{% for boat_type in ['house', 'paddle'] %}\n{{ boat_type }}.",
        "{% endfor %}\n",
    )

@pytest.fixture
def proj_catalog_globals(tmp_path, template_config):
    global_yml = tmp_path / "base" / "globals.yml"
    _write_yaml(global_yml, template_config)

class TestProjectContext:
    def test_project_name(self, project_context):
        assert project_context.project_name == "Engineering Reimagined - Schedule"

    def test_project_version(self, project_context):
        assert project_context.project_version == "0.16.4"

    @pytest.mark.usefixtures("proj_catalog_param", "proj_catalog_globals")
    def test_create_config_loader(self, project_context, tmp_path, conf_paths):
        """Test parameterized config with globals yaml file"""
        (tmp_path / "local").mkdir(exist_ok=True)

        catalog = project_context._create_config_loader(conf_paths).get("catalog*.yml")

        assert catalog["boats"]["type"] == "SparkDataSet"
        assert (
            catalog["boats"]["filepath"] == "s3a://boat-and-car-bucket/01_raw/boats.csv"
        )
        assert catalog["boats"]["columns"]["id"] == "VARCHAR"
        assert catalog["boats"]["columns"]["name"] == "VARCHAR"
        assert catalog["boats"]["columns"]["top_speed"] == "FLOAT"
        assert catalog["boats"]["users"] == ["fred", "ron"]

    @pytest.mark.usefixtures("proj_catalog_param_w_jinja2_for", "proj_catalog_globals")
    def test_create_config_loader_w_jinja2_for(
        self, project_context, tmp_path, conf_paths
    ):
        """Test parameterized config with globals yaml file"""
        (tmp_path / "local").mkdir(exist_ok=True)

        catalog = project_context._create_config_loader(conf_paths).get("catalog*.yml")

        for boat_type in ["house", "paddle"]:
            assert catalog[f"{boat_type}.boats"]["type"] == "SparkDataSet"
            assert (
                catalog[f"{boat_type}.boats"]["filepath"]
                == "s3a://boat-and-car-bucket/01_raw/boats.csv"
            )
            assert catalog[f"{boat_type}.boats"]["columns"]["id"] == "VARCHAR"
            assert catalog[f"{boat_type}.boats"]["columns"]["name"] == "VARCHAR"
            assert catalog[f"{boat_type}.boats"]["columns"]["top_speed"] == "FLOAT"
            assert catalog[f"{boat_type}.boats"]["users"] == ["fred", "ron"]

    @pytest.mark.usefixtures("proj_catalog_globals")
    def test_lots_of_duplicates(self, project_context, tmp_path, conf_paths):
        """Check that the config key starting with `_` are ignored and also
        don't cause a config merge error"""
        data = {str(i): i for i in range(100)}
        _write_yaml(tmp_path / "base" / "catalog1.yml", data)
        _write_yaml(tmp_path / "base" / "catalog2.yml", data)
        (tmp_path / "local").mkdir(parents=True, exist_ok=True)

        conf = project_context._create_config_loader(conf_paths)
        pattern = r"^Duplicate keys found in .*catalog2\.yml and\:\n\- .*catalog1\.yml\: .*\.\.\.$"
        with pytest.raises(ValueError, match=pattern):
            conf.get("**/catalog*")

This is awesome!  There are very few pipelines that I write that do not have a super repetative pattern in the catalog.  I often create mine through a python script.  Pardon my lack of understanding jinja.  Can you use things like itertools.product within the template?
I often need something along the lines of
continents = ['europe', 'asia', 'africa']
layers = ['raw', 'pri', 'int']
for continent, layer in itertools.product(continents, layers):
     ...

Often I am also using this in the place that I am making nodes as well and will import them so that I am using the same lists.  Is it possible to access the same lists from both jinja and my nodes easily?

@WaylonWalker I think it's possible to use Python module code in Jinja2 templates (see https://stackoverflow.com/a/11856935/1093967), and I don't see any reason why anyconfig wouldn't allow it (looking at https://github.com/ssato/python-anyconfig/blob/9d1be86bed695c89fb8438c5c23262f6049a93d9/src/anyconfig/api.py#L298-L299 and https://github.com/ssato/python-anyconfig/blob/9d1be86bed695c89fb8438c5c23262f6049a93d9/src/anyconfig/template.py), but it would be worth actually trying it out to be sure.

Another proposal may be something like following config template (somewhat inspired by terraform):
case_counts:
  variables:
    geo:
      - africa
      - asia
      - europe
  for_each:
    - var.geo
  type: pandas.CSVDataSet
  filepath: data/04_feature/{each.key}/cases.csv

I believe this has been now addressed in https://github.com/quantumblacklabs/kedro/commit/c466c8aa36488c8fa8d1fe6bb3d5bcde81100e4a - TemplatedConfigLoader will support Jinja2 syntax starting with version 0.17.0, so I will close this issue. Thanks everyone for sharing your thoughts on this!


backport xdmf+boost patch

from upstream: https://bitbucket.org/fenics-project/dolfin/pull-requests/555/fix-xdmffile-string-merging-with-h5
patch modified to remove bundled boost.patch changes that was bundled in the PR
@jorgensd do you have a simple test we could add?

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

from upstream: https://bitbucket.org/fenics-project/dolfin/pull-requests/555/fix-xdmffile-string-merging-with-h5
patch modified to remove bundled boost.patch changes that was bundled in the PR
@jorgensd do you have a simple test we could add?

Its quite hard to test it, as we would have to parse an output file (xdmf-file, and check the validity of some paths there).


Add and delete options without restarting HA

Fixes #31 and #49
Many hours but only a few lines of code...
There are still some activities on deleted entities in the debug log but they don't result in any errors. They dissapear after restart of HA. I will try to fix later.

Great!  You can create branches directly in this repo

Yes, I know. But I am a bit careful in the beginning.


Cassandra fails with static VM's

I pre-installed for cassandra_stress and cassandra_ycsb on a local machine, which I then tested with the static_vm_file method. The json file listed the machine's IP 6 times.
They both fail with the message "Failed to start Cassandra cluster".  Logs attached
cassandra_stress_pkb.log.txt
cassandra_ycsb_pkb.log.txt

Where you able to run Cassandra  stress without PKB?  It looks like there is some setup still missing...  This is from the error logs you shared.
JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
ERROR 13:12:30 Error starting local jmx server:
java.rmi.server.ExportException: Port already in use: 7199; nested exception is:
java.net.BindException: Address already in use
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:340) ~[na:1.7.0_101]
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:248) ~[na:1.7.0_101]
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411) ~[na:1.7.0_101]
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147) ~[na:1.7.0_101]
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:211) ~[na:1.7.0_101]
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:123) ~[na:1.7.0_101]
at sun.rmi.registry.RegistryImpl.(RegistryImpl.java:99) ~[na:1.7.0_101]
at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:239) ~[na:1.7.0_101]
at org.apache.cassandra.service.CassandraDaemon.maybeInitJmx(CassandraDaemon.java:100) [apache-cassandra-2.1.15.jar:2.1.15]

@GitVail if i understand you correctly, you are using a single local machine and pretend having multiple servers, clients?
All cassandra servers listen on same ports, configs shown in perfkitbenchmarker/data/cassandra/.
In your case, only the first copy of cassandra server will be able to start, the remainings will fail due to "address already in use".
If you only have 1 physical machine as cassandra server, you can add --num_vms=1.
Multiple clients running on same machine should be fine, but probably not necessary. Both benchmarks can increase thread count.

@GitVail Let me know if you still need help. Closing it now, feel free to reopen


Not creating App_Plugins folder

Not sure if this is an issue on my end.
Installed this package to a .net8 Umbraco 13.3.2 website and noticed it just didn't really seem to be doing anything on build or clean. No messages are being triggered at all on build / clean and no App_Plugins folder is created.
Nugets didn't seem to connect to the .targets file as it's not in the imports section like other packages.
Tried again on a .net7 Umbraco 11.4.2 website and it's the same story.
Tried installing through NuGet direct and through the PM console commands for the marketplace.
Tried restarting VS, Admin and clearing NuGet Cache to no success.
Any idea on what the issue could be?

Hi, I will check and get back to you

That's fixed it! Many thanks!
Just as an aside, noticed it saves the appsettings.json with the encoding Unicode (UTF-8) with signature.
Is this necessary or could it be possible to stick to without signature? As it's touched a few other lines during the process, like ValidElements or for us the PreviewBadge
Don't think it'll be a deal breaker but thought i'd ask anyways!

HI,
There is no specific reason, I will remove the encoding. I have also worked out how to get it saved without all the pointless escaping so will roll that into a new version, should be ready tomorrow

I have posted an update which removes the file encoding and uses different escaping when writing back to appsettings
https://www.nuget.org/packages/Umbraco.Community.RTEStyleFormatter/1.0.3


[W7.7][T14-B4] Contact Plus Pro

@ang-zy Sorry but isn't our repo name is 'main' now?

Right. Mixed up your repo with the other team's. Ignore that comment.

Also, your codacy and coveralls badges are not updated. Please change them to point to your own repository.

Also, try to include more diagrams in your developer guide, especially at the implementation details.


Leak in VACM context table

Hi Ilya,
are there any considerations from your side to fix the following leak?
https://github.com/etingof/pysnmp/blob/0ab27d2c38559e81f480d264a7b0f1ccc854c675/pysnmp/entity/config.py#L451
Regards,
Andreas

Hey, thanks for your nitpicking! ;-)
Do you actually notice this leak? It leaks noticeably when you register a whole lot of different context names.
The problem here is that SNMP-VIEW-BASED-ACM-MIB::vacmContextTable does not define RowStatus column which would let us remove the unwanted rows. Perhaps we could add that column into the Python module and introduce the delContext() call accordingly.
But my question is if there is actually a use-case where it makes a difference?

Hi Ilya,
I actually got in to trouble with this leak. I recently sent you an email with my application description on March 28th. Maybe you remember the SNMP agent proxy ...
The proxy is an accessor for IoT nodes in a meshed network topology. The nodes appear dynamically using some kind of IPv6 neighbor discovery. Each node has an UID, which is used also as SNMP context identifier.
If now a branch of the network is removed, the VACM and related entries are remaining in the MIB tree...

Let's try #155, the same fix is also committed to the 4.4.5 branch.

Thanks, this helps to get rid of outdated context table entries.
The next potentially leaky code section might be in addVacmUser(...), resp. delVacmUser(...).
The latter has no parameter for the context name, which is why the entries in the VACM Access Table are not completely cleared.


Can't run karma with Electron

Description
Given this karma configuration file:
config.set({
    frameworks: ["jasmine"],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ["Electron"],
    singleRun: true,
    concurrency: Infinity,
});

and these dependencies in package.json:

"karma": "4.4.1",
"karma-electron": "^6.3.0",
"karma-electron-launcher": "^0.3.0",
"karma-jasmine": "^4.0.1",
"karma-jasmine-diff-reporter": "^2.0.0",
"electron": "^11.2.1",
"jasmine": "^3.5.0",
"jasmine-core": "^3.4.0",

I would expect GitHub Actions to launch Karma with Electron successfully but I get:
 $ karma start --single-run
02 02 2021 05:41:00.368:INFO [karma-server]: Karma v4.4.1 server started at http://<IP_ADDRESS>:9876/
02 02 2021 05:41:00.371:INFO [launcher]: Launching browsers Electron with concurrency unlimited
02 02 2021 05:41:00.376:INFO [launcher]: Starting browser electron
02 02 2021 05:41:00.833:ERROR [launcher]: Cannot start electron

02 02 2021 05:41:00.833:ERROR [launcher]: electron stdout:
02 02 2021 05:41:00.834:ERROR [launcher]: electron stderr:
02 02 2021 05:41:00.839:INFO [launcher]: Trying to start electron again (1/2).
02 02 2021 05:41:01.097:ERROR [launcher]: Cannot start electron

02 02 2021 05:41:01.097:ERROR [launcher]: electron stdout:
02 02 2021 05:41:01.098:ERROR [launcher]: electron stderr:
02 02 2021 05:41:01.099:INFO [launcher]: Trying to start electron again (2/2).
02 02 2021 05:41:01.360:ERROR [launcher]: Cannot start electron

02 02 2021 05:41:01.360:ERROR [launcher]: electron stdout:
02 02 2021 05:41:01.360:ERROR [launcher]: electron stderr:
02 02 2021 05:41:01.364:ERROR [launcher]: electron failed 2 times (cannot start). Giving up.
error Command failed with exit code 1.

Area for Triage:
JavaScript and Node.js
Question, Bug, or Feature?:
Bug
Virtual environments affected

[ ] Ubuntu 16.04
[x] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11.0
[ ] Windows Server 2016 R2
[ ] Windows Server 2019

Image version
20210123.1

Hello, @DamienCassou
Could you provide link to your workflow and/or some repro steps ?
Thank you

@andy-mishechkin I created a repository with a PR showing the problem: https://github.com/DamienCassou/2021-01-github-actions-karma/pull/1.
In this project, there is an error message that doesn't appear in my real project:

The futex facility returned an unexpected error code.

You solved my problem, thank you very much! You may close the issue.

Thank you @DamienCassou. You're welcome


:bug: [client] Fix update error propagation

Fixes a bug where updateGeneric discarded a PeerRejectedError and replaced it with a different error.
Signed-off-by: Matthias Geihs<EMAIL_ADDRESS>

LGTM. You will have to rebase to latest dev and then I can approve it.


unable to save the file when illegal characters exist in the email title & client.Select prompt error

1、go.mod add go-imap-id dependency.
2、imap ProcessMessage function add eml file save. & unable to save the file when illegal characters exist in the email title. 3、imap processInboxMessages client.Select fails, close the channel.
4、when using 163 personal mailbox, client.Select prompt error

lgtm and works, thank you!


Suggest upgrade to RESP3 as possible solution to error

It is easy to forget to upgrade to resp3 before starting sending commands. This leads to error messages that are not very informative, like the one discussed in this issue https://github.com/boostorg/redis/issues/73.  To avoid that, the library could improve the error message from

Can't convert string to number.

to

Can't convert string to number. (forgot to upgrade to RESP3?)

Fix: https://github.com/boostorg/redis/commit/d01a9acf3b5b8f6a942cc8339f2308e9b85889e5


why --config test/config.toml can't use?

Describe the bug
eunomia server --config test/config.toml can't use
config value don't get from toml file
After add two enabled_trackers,
[[enabled_trackers]]
name = "memleak"
export_handlers = [ ]
args = [ ]
[[enabled_trackers]]
name = "syscall"
export_handlers = [ ]
args = [ ]
always output default:
process
files
tcpconnect
To Reproduce
eunomia server --config test/config.toml
or ./build/test/config_test_Tests
Expected behavior
[2024-03-18 14:04:50.014] [warning] run_selected use default value
[2024-03-18 14:04:50.014] [warning] enabled_trackers use default value
[2024-03-18 14:04:50.014] [warning] tracing_selected use default value
[2024-03-18 14:04:50.014] [warning] tracing_target_id use default value
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [ubuntu22]

eunomia-bpf doesn't support loading configuration in this way. Please specify all properties in the command line

How to load the command line? if I want to run multiple bpf, such as files, memleak, bindsnoop ？
thanks!

How to load the command line? if I want to run multiple bpf, such as files, memleak, bindsnoop ？
thanks!

Run ecli-server. See ecli-server -h for details
use ecli client to run things on the server


istioctl waypoint: consider a way to enroll the namespace

Maybe we should have a --enroll-namespace, possibly even on by default, flag to istioctl x waypoint apply to label the namespace with istio.io/use-waypoint=<name>. This could help ease a common mistake of not enrolling workloads

Do we mean to add a label or instead add an annotation like:
istio.io/use-waypoint:<name>

Yep annotation, got it mixed up with label. Another reason to automate it for people :slightly_smiling_face:


fix(deps): bump provider for fix

Description
Provider 1.68.0 has a regression which is fixed in 1.68.1. Require 1.68.1 and remove workaround.
Release required?

[ ] No release
[x] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

Looks like, we need to skip upgrade test

TestRunUpgradeCompleteExample 2024-08-14T11:00:46Z logger.go:66: ╵
TestRunUpgradeCompleteExample 2024-08-14T11:00:46Z retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷
│ Error: Unsupported attribute
│
│   on ../../main.tf line 190, in resource "ibm_database" "postgresql_db":
│  190:       connectionstrings, # https://github.com/IBM-Cloud/terraform-provider-ibm/issues/5546
│
│ This object has no argument, nested block, or exported attribute named
│ "connectionstrings".
╵}
tests.go:713:
Error Trace:	/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.36.0/testhelper/tests.go:713
/__w/terraform-ibm-icd-postgresql/terraform-ibm-icd-postgresql/tests/pr_test.go:111
Error:      	Expected nil, but got: retry.FatalError{Underlying:(*shell.ErrWithCmdOutput)(0xc00191aa50)}
Test:       	TestRunUpgradeCompleteExample
Messages:   	Terraform Apply on Base branch has failed

We do
│ Error: Unsupported attribute
│
│   on ../../main.tf line 190, in resource "ibm_database" "postgresql_db":
│  190:       connectionstrings, # https://github.com/IBM-Cloud/terraform-provider-ibm/issues/5546
│
│ This object has no argument, nested block, or exported attribute named
│ "connectionstrings".
╵}

is because the main branch is broken when using the latest provider to run the upgrade.

/run pipeline

:tada: This issue has been resolved in version 3.16.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


remove obsolete code in HO for reconciling HCP components

Since 4.12, the CPO deploys the autoscaler, machine approver, and ignition server.  HO only supports n-2, so it is safe to remove this.
Because we don't support CPO being newer than the HO, it is safe to remove the labels from the CPO image as well.
Do not backport.

closing in favor of https://github.com/openshift/hypershift/pull/2607


I want to add or Remove Objects?

Hi,
I want to add or Remove Objects How i can Edit the Code Any Procedure?
Thanks

The app is hardcoded for 20 classes and for the tiny-yolo network final output layer. You can check the following code if you want to change this:
https://github.com/natanielruiz/android-yolo/blob/master/app/src/main/java/org/tensorflow/demo/TensorflowClassifier.java
The code describes the interpretation of the output.
The code for the network inference pass is written in C++ and the output is passed to Java. The output of the network is in the form of a String which is converted to a StringTokenizer and is then converted into an array of Floats in line 87 of TensorflowClassifier.java
You can work from there and read the papers to transform the new yolo model output into something that makes sense. (I did it only for one bounding box and also obtained the confidence of this bounding box). This part of the code is commented by me so you can understand what I did. Also read the paper here: https://arxiv.org/abs/1506.02640


Kubernetes Kubeconfig service connection not working

I have the same issue as: https://github.com/MicrosoftDocs/azure-devops-docs/issues/7142
However I cannot turn off the New Service Connection experience:

And I can't setup a Azure Subscription connection as it is not able to see the namespaces in the private cluster:

Could you please advise how to get the Kubeconfig option to work?

@robduncan-novia - Thanks for your question. This looks like a support question (and a thorny one, looking through this and the linked issue), rather than an issue with the documentation. Please consider these resources:

Azure DevOps Services
Azure DevOps Support Bot
Azure DevOps on Stack Overflow

Hi,
We are also getting the same issue. Is there any fix for it?
/Qaiser

@robduncan-novia, @qaiserali -- Rob, Qaiser, are you following a particular learn.microsoft.com article?  This repo is solely for documentation issues.


Properly open new browser windows

Not sure how you guys are doing it, but it doesn't use the default browser on linux.
At least for linux in think you need to use xdg-open.
This repo can be used as an example. Or you could just import it and use it for all external browser calls.
https://github.com/pwnall/node-open

We're using what the electron doc's state open's a url in the users default browser:

If it's really not working, I suppose we could experiment with something else.
@SamPatt Since you use Linux, can you confirm whether v2 external links open in your default browser (assuming your default browser is different than the OS default)?

I don't think the documentation is accurate for linux.

@cpacia Do want to experiment and confirm if the library you proposed would work as you expect when call via Electron? We don't have a lot of bandwidth right now to investigate this.
FWIW, shell is just an Electron module that I believe behind the scenes on Linux is using xdg-open.


Discussion: Stuck implementing OAuth Client for GitHub Actions CI/CD

Hey Tailers,
I noticed you guys have deprecated the 'authkey' input in favor of an OAuth API client. Sounds good, but I'm a bit stuck trying to switch over.
From your action's readme, I picked up that I should use "tag:ci" in the GitHub Action. Cool, got that. But then, when I'm setting up the OAuth Client, things get a bit foggy. I picked "devices:write" for my client's scope. Wasn't quite sure about that, some more info might help which scopes are required for the action?
Next step, adding a tag since it's required for "devices:write". I'm guessing I need "tag:ci" here too, right? But when I click "Manage tags in Access Controls" it's like "bye-bye progress". A bit of a bummer, but hey, let's roll with it. Now, I'm thinking I should declare a tag so I can go back and select it for my OAuth Client.
Here's the part that's got me scratching my head:
// Define the tags which can be applied to devices and by which users.
"tagOwners": {
    "tag:ci": [?]
},

Which user should I put here? Then, I remembered your readme said this:
"At least one tag is required: an OAuth client is not associated with any of the Users on the tailnet, it has to Tag its nodes."
That left me a bit puzzled.
Hope you guys can help me sort this out. The switch from 'authkey' to OAuth Client isn't quite the walk in the park I hoped it'd be.
Thanks!

I went ahead and tested it with scope device:write and this:
"tagOwners": {
    "tag:ci":        ["autogroup:admin"],`
},

Works fine but I'm unsure about my choice of autogroup:admin.

The recent addition of autogroup:tagged seems like a perfect fit for this.
https://tailscale.com/changelog/#2023-07-31-service
Is this meant for this or it's just a coincidence it was added recently? 😁

that should be ok. However, you don't need to specify a tag owner for this as the OAuth client will automatically assign tags to the ephemeral devices.
For example, this should also work:
"tagOwners": {
    "tag:server": []
  }

tag owners allows the owners to assign tags to devices (https://tailscale.com/kb/1068/acl-tags/#defining-tag-owners). In this case, the device will be tagged automatically.
You can make use of the tag in your ACLs for more fine-grained permissioning if desired.

@peteretelej thanks, removing "autogroup:admin" from tag:ci works!
However, I checked the documentation on ACL tags and that's the same as having the autogroup:admin specified. :D

A shorthand notation, [], is available for autogroup:admin. - https://tailscale.com/kb/1018/acls/#tag-owners


Update the game over message

Update the game over message so people know how to play again!

I have completed my technical on boarding.


Add simple CI test

This patch adds a simple CI workflow to test if the dependencies can be downloaded and the project actually builds.

@lkiesow, would this be ok to be merged now?

The build still fails with warnings. We need to fix that first

Could we add this with CI=false so we at least know it builds, and when we remove all warnings, we can set CI=true? So we can get gradually more CI.

And it already found a build error... :D
Will be fixed by #404

But as they are unrelated I will merge this now.


Problems loading voice file for training

When processing the file this error appears:
start preprocess
['trainset_preprocess_pipeline_print.py', '/content/drive/MyDrive/dataset', '40000', '2', '/content/Retrieval-based-Voice-Conversion-WebUI/logs/VexModel', 'False']
/content/drive/MyDrive/dataset/OLAF2.zip->Traceback (most recent call last):
File "/content/Retrieval-based-Voice-Conversion-WebUI/my_utils.py", line 134, in load_audio
ffmpeg.input(file, threads=0)
File "/usr/local/lib/python3.10/dist-packages/ffmpeg/_run.py", line 325, in run
raise Error('ffmpeg', out, err)
ffmpeg._run.Error: ffmpeg error (see stderr output for detail)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/content/Retrieval-based-Voice-Conversion-WebUI/trainset_preprocess_pipeline_print.py", line 84, in pipeline
audio = load_audio(path, self.sr, DoFormant, Quefrency, Timbre)
File "/content/Retrieval-based-Voice-Conversion-WebUI/my_utils.py", line 141, in load_audio
raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: ffmpeg error (see stderr output for detail)
end preprocess
I need help I'm blocked!!! please.

请尝试重新安装ffmpeg


added antiDiagonalPattern.cpp

added antiDiagonalPattern.cpp code. This is one of the most important algo which covers questions of the matrix like Diagonal sort of matrix etc.

Please merge my PR. I am new as contributor. I can contribute my best part of cp.


Bug fix Github actions out of disk error

Github runners currently have ~15 GB disk space, and we run out of disk when building some of the base Docker images, as it will result in rebuilding many derived images. This PR adds the --prune-after-each-image to build_docker invocation to decrease disk usage. This flag was used in the Test Images Build job but missing from the Publish job, which is a bug.
The inconsequential change on the samtools-cloud/Dockerfile is to trigger building and publishing samtools-cloud docker image and all the derived images since the Publish job had failed on #574, and the images were not published.

Thanks for the prompt review, @mwalker174.

Is there any way to increase the runner disk size?

There are larger runners under the paid plans; we can discuss how these can be useful moving forward as we currently have little headroom in disk size on current runners.


New device Ty0201  _tz3000_bjawzodf

Temperature and humidity reporting is working
Battery reporting not working or at least nothing reported yet
Not possible to configureAttributeReporting for powerConfiguration
similar to lcdtemphumidsensor but without the back leg.
Was not possible to pair device unless i removed configureAttributeReporting from lcdtemphumidsensor
response on configureAttributeReporting is "INVALID_DATA_TYPE"

2023-12-19T20:48:34.735Z zigbee-clusters:cluster ep: 1, cl: powerConfiguration (1) configured reporting [   ConfigureReportingResponse {     status: 'INVALID_DATA_TYPE',     direction: 'reported',     attributeId: 33   } ] 2023-12-19T20:48:34.738Z zigbee-clusters:cluster ep: 1, cl: powerConfiguration (1) configure reporting [   {     direction: 'reported',     attributeId: 33,     attributeDataType: 32,     minInterval: 65535,     maxInterval: 0,     minChange: 0   } ] 2023-12-19T20:48:34.739Z zigbee-clusters:cluster ep: 1, cl: powerConfiguration (1) send frame ZCLStandardHeader {   frameControl: [],   data: powerConfiguration.configureReporting { reports: [ [Object] ] },   cmdId: 6,   trxSequenceNumber: 3 } 2023-12-19T20:48:34.862Z zigbee-clusters:endpoint ep: 1, cl: undefined (57346), error while handling frame cluster_unavailable {   meta: { dstEndpoint: 1 },   frame: ZCLStandardHeader {     frameControl: Bitmap [ directionToClient, disableDefaultResponse ],     trxSequenceNumber: 23,     cmdId: 10,     data: <Buffer 0b e0 30 01>   } } 2023-12-19T20:48:34.902Z zigbee-clusters:cluster ep: 1, cl: powerConfiguration (1) received frame configureReporting.response powerConfiguration.configureReporting.response {   reports: [     ConfigureReportingResponse {       status: 'INVALID_DATA_TYPE',       direction: 'reported',       attributeId: 33     }   ] } 2023-12-19T20:48:34.902Z zigbee-clusters:cluster ep: 1, cl: powerConfiguration (1) configured reporting [   ConfigureReportingResponse {     status: 'INVALID_DATA_TYPE',     direction: 'reported',     attributeId: 33   } ] 2023-12-19T20:48:34.903Z [err] [ManagerDrivers] [Driver:lcdtemphumidsensor] [Device:e52365ec-4312-4687-97de-9271f7d13a81] Error: configuring attribute reporting (endpoint: 1, cluster: powerConfiguration) {   batteryPercentageRemaining: { minInterval: 65535, maxInterval: 0, minChange: 0 } } Error: INVALID_DATA_TYPE     at PowerConfigurationCluster.configureReporting (/app/node_modules/zigbee-clusters/lib/Cluster.js:516:17)     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)     at async Promise.all (index 0)     at async lcdtemphumidsensor.onNodeInit (/app/drivers/lcdtemphumidsensor/device.js:14:4)     at async /app/node_modules/homey-zigbeedriver/lib/ZigBeeDevice.js:957:11 2023-12-19T20:48:34.904Z [err] [ManagerDrivers] [Driver:lcdtemphumidsensor] [Device:e52365ec-4312-4687-97de-9271f7d13a81] Error: 'onNodeInit()' failed, reason: Error: INVALID_DATA_TYPE     at PowerConfigurationCluster.configureReporting (/app/node_modules/zigbee-clusters/lib/Cluster.js:516:17)     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)     at async Promise.all (index 0)     at async lcdtemphumidsensor.onNodeInit (/app/drivers/lcdtemphumidsensor/device.js:14:4)     at async /app/node_modules/homey-zigbeedriver/lib/ZigBeeDevice.js:957:11 2023-12-19T20:48:34.905Z [err] [ManagerDrivers] [Driver:lcdtemphumidsensor] [Device:e52365ec-4312-4687-97de-9271f7d13a81] Error: could not initialize node Error: INVALID_DATA_TYPE     at PowerConfigurationCluster.configureReporting (/app/node_modules/zigbee-clusters/lib/Cluster.js:516:17)     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)     at async Promise.all (index 0)     at async lcdtemphumidsensor.onNodeInit (/app/drivers/lcdtemphumidsensor/device.js:14:4)     at async /app/node_modules/homey-zigbeedriver/lib/ZigBeeDevice.js:957:11

The battery is the reason i closed the pull request but perhaps not the most important part of the device.
but om not really sure if this device then should be bundled with the other that report the  temp and humidity in the same way or if it should be considered a separate device. There isnt really a clear direction (that i can see) in the code or any discussions the i have seen how to handle this.

This is now quite a frequently sold device (tz3000_bjawzodf). It would be good to see it in this app. The code works for me (but doesn't really report the battery).

The battery is the reason i closed the pull request but perhaps not the most important part of the device.
but om not really sure if this device then should be bundled with the other that report the temp and humidity in the same way or if it should be considered a separate device. There isnt really a clear direction (that i can see) in the code or any discussions the i have seen how to handle this.

Hi @obetsak, Open it again and I will merge it. We can have a look at the battery part later. Sadly battery issues are quite common on Tuya devices.


Group Costs: show which apps do not have cost entries

Similar to how the measurable view allows users to see a list of which app have not alignment to a taxonomy this would allow users to see which apps are missing costs.

with orgUnitIds as (
        select id
        from entity_hierarchy
        where kind = 'ORG_UNIT'
        and ancestor_id = 10),
     appsInScope as (
        select id
        from application
        where organisational_unit_id in (select id from orgUnitIds)),
     appsWithCosts as (
         select entity_id as id
         from cost
         where cost_kind_id = 5
         and entity_kind = 'APPLICATION'
         and year = 2021)
select *
from appsInScope
    except
    (select id from appsWithCosts);

with orgUnitIds as (
        select id
        from entity_hierarchy
        where kind = 'ORG_UNIT'
        and ancestor_id = 10),
     appsInScope as (
        select id
        from application
        where organisational_unit_id in (select id from orgUnitIds)),
     appsWithCosts as (
         select entity_id as id
         from cost
         where cost_kind_id = 5
         and entity_kind = 'APPLICATION'
         and year = 2021)
select *
from appsInScope
    except
    (select id from appsWithCosts);


console: kconfig: Put 'menuconfig CONSOLE_SUBSYS' in top-level menu

The 'Console' menu contains just 'config CONSOLE_SUBSYS' and its
indented children.
Remove one menu level by removing the 'Console' menu and turning
CONSOLE_SUBSYS into a 'menuconfig' symbol.

Something is funny with the commit log (authored and committed msg, but same author)


Ngx Formly with Ngx datatable

Description
We have integrated ngx datatable with ngx formly as shown in example from link below
https://formly.dev/examples/advanced/datatable-integration
As you can see we have console the log in getField method in DatatableTypeComponent.
As we hover on the data table we see many calls to this method causing many unnecessary calls and ui to freeze.
Kindly suggest us if there is any solution to avoid this, till we get fix.
Minimal Reproduction
https://stackblitz.com/edit/angular-ngxformlydatagrid
Your Environment

Angular version: 13.1.1
Formly version: 5.10.22
ngx-datatable version: 20.0.0

Thanks for the reply.
We tried with 5.12.4 and we see this issue.
If we try to do onPush using change detection method then how we should handle the get Field? Could you show how to do this in stackblitz.

To improve get Field call, save field in columns property (see my comment above), it would be better to provide us a reproduction of the  ui freeze so we can investigate more on our side.
Thanks!

Please refer this replication of screen freeze/unresponsive when there are 18 columns/160 rows.
https://stackblitz.com/edit/angular-ngxformlydatagrid?file=src%2Fapp%2Fapp.component.ts

console should not be used in getField, the main issue I see is datatable render all fields without taking account of pagination / virtual scroll and that's the main issue of slowness so nothing to do on our side. Instead check their example to see what's the messing part to make it properly else I'd suggest to find an alternative solution of databale.


Replace name or any string representation with idx at Binder

This also includes change the mapping from name->dataChunkPos to idx->dataChunkPos.
Eventually we shouldn't deal with string representation except for parser and binder module

I no longer believe we should do this


Create a node to build URLs. v4

Changes since v3.

Added suggestions made by @barbieri
Add more tests for http split and create functions
Added commits 001f716, ec6a856, 338a1cb,  e91d052

Closing in favor of #1028


Aws ci models

Proposed changes:

...

Status (please check what you already did):

[ ] Incorporated remote storage persister classes from latest Rasa repo. + Updated call hierarchy.
[ ] Added put request endpoint for /model.

Test Evidence
see: https://synaptitude.atlassian.net/wiki/spaces/SYN/pages/271351864/PR+Test+-+Evidence?atlOrigin=eyJpIjoiZjcxZjU5ZjlhOTI2NDA2ZjkzZjRjM2VkODA1ZmJmMTQiLCJwIjoiYyJ9

I have reviewed your changes. Looks good to me. Feel free to merge this.


How to use unified library and power functions with Paper EPD

Describe the bug
I have made a project using the M5 Unified stack. Everything is good, and now I want to use the shutdown(n) and RTC wakeup features.
This porting guide is not very specific: http://docs.m5stack.com/en/quick_start/m5unified/migration
From the same site, there is: http://docs.m5stack.com/en/api/m5paper/rtc
but like most documentation for the M5 Paper, it assumes use of the M5EPD library.
However, this library can not work with the unified library.
http://docs.m5stack.com/en/api/m5paper/rtc
has example code, but the first line is
#include <M5Core2.h>
Do I need to install the library m5core2? It has many, many dependencies.
I did that, but compiling failed with this error:
In file included from /home/tim/Arduino/libraries/M5Core2/src/M5Core2.h:76,
from /home/tim/Arduino/bus_timetable/bus_timetable.ino:21:
/home/tim/Arduino/libraries/M5Core2/src/M5Display.h:90:16: error: reference to 'jpeg_div_t' is ambiguous
and others. So it seems this is not supposed to be used with the M5Unified library.
What to do?
To reproduce
Visit the documentation and see what I see,
Expected behavior
If M5 unified is to be used, then other documentation should be consistent. Power management with the Unified library for the Paper is not documented anywhere.
Screenshots
No response
Environment

OS: Linux
IDE &IDE Version: Arduino 2
Repository Version:

Additional context
No response
Issue checklist

[X] I searched for previous reports in the issue tracker
[X] My report contains all necessary details

Sorry, our documentation caused a misunderstanding
You can refer to this example, where M5.shutdown() can be filled with "seconds", "time", "date and time" to shut down Paper and wake up at the specified time.
https://github.com/m5stack/M5EPD/blob/main/examples/Basics/RTC_WakeUp/RTC_WakeUp.ino

But that example requires the old EPD library which does not work when
using M5Unified, which is the point of my issue.
In M5 Unified I can do
M5.Power.timerSleep(n) where n is seconds.
On my Paper, this turning off and waking up. But is it doing much power
saving? I am not convinced about that.
There is no documentation about what timerSleep() does with the M5 Paper.
Googling shows that people using the old EPD library had to use workarounds
to get low power use.
It would be great if here in this ticket you could provide the definitive
instructions to sleep the M5 Paper with M5 Unified library.
On Sun, 19 Mar 2023 at 02:14, Tinyu @.***> wrote:

Sorry, our documentation caused a misunderstanding
You can refer to this example, where M5.shutdown() can be filled with
"seconds", "time", "date and time" to shut down Paper and wake up at the
specified time.
https://github.com/m5stack/M5EPD/blob/main/examples/Basics/RTC_WakeUp/RTC_WakeUp.ino
—
Reply to this email directly, view it on GitHub
https://github.com/m5stack/M5EPD/issues/56#issuecomment-1474875739, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHCNYTVZWXXE3R6QLPGMJDW4XGORANCNFSM6AAAAAAV7LKPQQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Tim Richardson CPA, Director, BA, BSc, MAcc
GrowthPath. Finance transformation for SMEs via Cloud ERP, advanced
reporting, CRM
Mobile: +61 423 091 732 Office/Reception: +61 3 8678 1850.
Book call: https://vyte.in/growthpath/15
Timezone is Melbourne AU.
See this link for international time planning:
https://www.timeanddate.com/worldclock/meeting.html?year=2020&month=5&day=16&p1=152
GrowthPath Pty Ltd  ABN<PHONE_NUMBER>6
http://www.growthpath.com.au/

Sleep and wake up using M5.shutdown() in the library M5Paper.
https://github.com/m5stack/M5EPD/blob/main/examples/Basics/RTC_WakeUp/RTC_WakeUp.ino


Cloud SQL Proxy returns 404

When I try to run cloud_sql_proxy -instances XXXX:XX-XXXX:XXXX-postgres=tcp:XXX I get a 404:
googleapi: got HTTP response code 404 with body: <!DOCTYPE html>

The requested URL /sql/v1beta4/sql/v1beta4/projects/XXXXX was not found on this server.  That’s all we know.

This error does not occur when I use v1.16. Only occurs for the latest master.

A few questions for trying to replicate:

How are you trying to compile? What commands and version of go are you using?
When you say "v1.16" - are you using the compiled version (downloaded from the releases page), or the commit at that tag?
Are you using the go.mod file in the root of the proxy? Can you verify which version of google.golang.org/api you are using?

Sorry for the late response!

The go version is go1.13.5. I'm just running a script which calls cloud_sql_proxy -instances XXXX:XX-XXXX:XXXX-postgres=tcp:XXX
I believe I'm using the commit at that tag.
Yup the go.mod file is in the root of the proxy. For google.golang.org/api,  a simple git show tells me this is the latest commit b6b5836d7694afe29d5b84d9a4c15e3d7c2677f4. Let me know if I can dig in further on this.

Not sure if this is related but I thought this PR may have something to do with the bug: https://github.com/GoogleCloudPlatform/cloudsql-proxy/pull/338/files#diff-2e191ab6bb0c70e18327a004be427a10L75
I see the same v1beta4 being mentioned.
Let me know how I can help debug this further. Thanks!

Yes, the problem is that tag1.16 and the version of google.golang.org/api is b6b5836d7694afe29d5b84d9a4c15e3d7c2677f4 are imcompatible. Unfortunately google.golang.org.api had non-backwards compatible change, which we fixed in PR #338.
You'll either have to roll back to an earlier version of google.golang.org/api or use a commit off the master branch past eb5e09ef70a515db75cc59caaee50d29638ad5db

Got it, thanks @kurtisvg!


[Feature Request] Being able to configure a series of message

Version

[X] I'm using version 1.10.0

Existing requests

[X] I've checked Existing requests

What operating system are you using?
Linux
Operating System Version
Debian testing
Problem description
Would it be possible to let the user configure the message?
Possible solution
In that case, your apps would help me by taking a break and remembering me my motivation/goal/task for the week/month ...
Alternative solutions
A clear and concise description of what you want to happen.It could be even more powerful by being able to connect it to a calendar caldav or ics.
Additional information
Thank you for the configuration
Code of Conduct

[X] I agree to follow this project's Code of Conduct

You can set custom messages, but they are shown randomly:
https://github.com/hovancik/stretchly#advanced-preferences=
https://github.com/hovancik/stretchly#editing-break-ideas=


Notebook: going back to notebook does not restore focus to active cell

Steps to Reproduce:

open a notebook
click into a cell
click on another editor tab
click back into notebook

=> 🐛  focus does not return into the cell

I pushed a change to narrow the problem. I remembered vividly that almost 2 or 3 years ago @bpasero reported a similar issue with the same root cause. What happens is

Mouse down on title bar item

open notebook editor
we restore view state, focus the editor in the cell

Mouse up

the active element becomes tab control again, triggers a blur event
we set the cell focus mode to container (which means it should focus the container other than the inner editor) Even untitled files are not dirty until you start typing.

I think @roblourens made it work pretty well but not sure when it broke and how ...

A few things going on, so we do listen on onDidBlurEditorWidget and fix the cell's focusMode when the editor blurs. This doesn't take effect here because the FocusTracker delays firing its blur event with setTimeout, so it doesn't come until after the editor has had focus() called on it, so at that point, we think the cell is focused. But changing that would actually not be the right fix, because if we set focusMode to container, then we will not try to put focus back in the editor when the notebook editor gets focus. focusMode needs to be whether the cell editor is 'supposed to' have focus, not whether it actually does. So for now I'll just fix this by removing the check for whether focusMode actually changed before we fire the change event.
Maybe I should also change CodeCell/MarkdownCell's updateFocusMode to also check where focus went after onDidBlurEditorWidget. If it's inside the notebook editor, we should set focusMode to Container. If it's outside the notebook editor, it should stay as Editor. Also, maybe it would make sense for that to be a property on the editor instead of individual cells.